520e8000b9e87309d5a5f51a97b0d443f58a8018
[gnulib.git] / ChangeLog
1 2011-09-11  Bruno Haible  <bruno@clisp.org>
2
3         strings: Don't assume <strings.h> exists.
4         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
5         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
7         * doc/posix-headers/strings.texi: Mention the MSVC problem.
8
9 2011-09-11  Bruno Haible  <bruno@clisp.org>
10
11         dirent: Don't assume <dirent.h> exists.
12         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
13         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
14         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
15         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
16
17 2011-09-11  Bruno Haible  <bruno@clisp.org>
18
19         Fix wint_t on MSVC.
20         * lib/wchar.in.h (wint_t): On MSVC, override it.
21         * lib/wctype.in.h (wint_t): Likewise.
22         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
23         MSVC.
24         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
25         * doc/posix-headers/wctype.texi: Likewise.
26
27 2011-09-11  Bruno Haible  <bruno@clisp.org>
28
29         sys_types: Fix typo.
30         * lib/sys_types.in.h: Fix typo in comment.
31         Reported by Paul Eggert.
32
33         Support for MSVC compiler: Ensure size_t gets defined.
34         * modules/strings (Depends-on): Add 'sys_types'.
35         * modules/sys_uio (Depends-on): Likewise.
36         * lib/sys_uio.in.h: Update comment.
37
38         C++ tests for module 'sys_types'.
39         * modules/sys_types-c++-tests: New file.
40         * tests/test-sys_types-c++.cc: New file.
41
42         Tests for module 'sys_types'.
43         * modules/sys_types-tests: New file.
44         * tests/test-sys_types.c: New file.
45
46         New module 'sys_types'.
47         * lib/sys_types.in.h: New file.
48         * m4/sys_types_h.m4: New file.
49         * modules/sys_types: New file.
50         * doc/posix-headers/sys_types.texi: Mention the new module and the
51         size_t problem on MSVC 9.
52
53 2011-09-11  Bruno Haible  <bruno@clisp.org>
54
55         Support for MSVC compiler: Avoid division by a literal 0.
56         * lib/math.in.h (NAN): Define through a function call also on MSVC.
57         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
58         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
59         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
60         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
61         * tests/infinity.h: New file.
62         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
63         on MSVC.
64         * tests/test-ceilf1.c: Include infinity.h.
65         (main): Use Infinityf.
66         * tests/test-ceil1.c: Include infinity.h.
67         (main): Use Infinityd.
68         * tests/test-ceill.c: Include infinity.h.
69         (main): Use Infinityl.
70         * tests/test-dprintf-posix.c: Include infinity.h.
71         (test_function): Use Infinityd.
72         * tests/test-floorf1.c: Include infinity.h.
73         (main): Use Infinityf.
74         * tests/test-floor1.c: Include infinity.h.
75         (main): Use Infinityd.
76         * tests/test-floorl.c: Include infinity.h.
77         (main): Use Infinityl.
78         * tests/test-fprintf-posix.c: Include infinity.h.
79         (test_function): Use Infinityd.
80         * tests/test-frexp.c: Include infinity.h.
81         (main): Use Infinityd.
82         * tests/test-frexpl.c: Include infinity.h.
83         (main): Use Infinityl.
84         * tests/test-isfinite.c: Include infinity.h.
85         (test_isfinitef): Use Infinityf.
86         (test_isfinited): Use Infinityd.
87         (test_isfinitel): Use Infinityl.
88         * tests/test-isinf.c: Include infinity.h.
89         (test_isinff): Use Infinityf.
90         (test_isinfd): Use Infinityd.
91         (test_isinfl): Use Infinityl.
92         * tests/test-isnan.c: Include infinity.h.
93         (test_float): Use Infinityf.
94         (test_double): Use Infinityd.
95         (test_long_double): Use Infinityl.
96         * tests/test-isnanf.h: Include infinity.h.
97         (main): Use Infinityf.
98         * tests/test-isnand.h: Include infinity.h.
99         (main): Use Infinityd.
100         * tests/test-isnanl.h: Include infinity.h.
101         (main): Use Infinityl.
102         * tests/test-ldexpl.c: Include infinity.h.
103         (main): Use Infinityl.
104         * tests/test-printf-posix.h: Include infinity.h.
105         (test_function): Use Infinityd.
106         * tests/test-roundf1.c: Include infinity.h.
107         (main): Use Infinityf.
108         * tests/test-round1.c: Include infinity.h.
109         (main): Use Infinityd.
110         * tests/test-roundl.c: Include infinity.h.
111         (main): Use Infinityl.
112         * tests/test-signbit.c: Include infinity.h.
113         (test_signbitf): Use Infinityf.
114         (test_signbitd): Use Infinityd.
115         (test_signbitl): Use Infinityl.
116         * tests/test-snprintf-posix.h: Include infinity.h.
117         (test_function): Use Infinityd, Infinityl.
118         * tests/test-sprintf-posix.h: Include infinity.h.
119         (test_function): Use Infinityd, Infinityl.
120         * tests/test-truncf1.c: Include infinity.h.
121         (main): Use Infinityf.
122         * tests/test-trunc1.c: Include infinity.h.
123         (main): Use Infinityd.
124         * tests/test-truncl.c: Include infinity.h.
125         (main): Use Infinityl.
126         * tests/test-vasnprintf-posix.c: Include infinity.h.
127         (test_function): Use Infinityd, Infinityl.
128         * tests/test-vasprintf-posix.c: Include infinity.h.
129         (test_function): Use Infinityd, Infinityl.
130         * modules/ceilf-tests (Files): Add tests/infinity.h.
131         * modules/ceil-tests (Files): Likewise.
132         * modules/ceill-tests (Files): Likewise.
133         * modules/dprintf-posix-tests (Files): Likewise.
134         * modules/floorf-tests (Files): Likewise.
135         * modules/floor-tests (Files): Likewise.
136         * modules/floorl-tests (Files): Likewise.
137         * modules/fprintf-posix-tests (Files): Likewise.
138         * modules/frexp-tests (Files): Likewise.
139         * modules/frexp-nolibm-tests (Files): Likewise.
140         * modules/frexpl-tests (Files): Likewise.
141         * modules/frexpl-nolibm-tests (Files): Likewise.
142         * modules/isfinite-tests (Files): Likewise.
143         * modules/isinf-tests (Files): Likewise.
144         * modules/isnan-tests (Files): Likewise.
145         * modules/isnanf-tests (Files): Likewise.
146         * modules/isnanf-nolibm-tests (Files): Likewise.
147         * modules/isnand-tests (Files): Likewise.
148         * modules/isnand-nolibm-tests (Files): Likewise.
149         * modules/isnanl-tests (Files): Likewise.
150         * modules/isnanl-nolibm-tests (Files): Likewise.
151         * modules/ldexpl-tests (Files): Likewise.
152         * modules/printf-posix-tests (Files): Likewise.
153         * modules/roundf-tests (Files): Likewise.
154         * modules/round-tests (Files): Likewise.
155         * modules/roundl-tests (Files): Likewise.
156         * modules/signbit-tests (Files): Likewise.
157         * modules/snprintf-posix-tests (Files): Likewise.
158         * modules/sprintf-posix-tests (Files): Likewise.
159         * modules/truncf-tests (Files): Likewise.
160         * modules/trunc-tests (Files): Likewise.
161         * modules/truncl-tests (Files): Likewise.
162         * modules/vasnprintf-posix-tests (Files): Likewise.
163         * modules/vasprintf-posix-tests (Files): Likewise.
164         * modules/vdprintf-posix-tests (Files): Likewise.
165         * modules/vfprintf-posix-tests (Files): Likewise.
166         * modules/vprintf-posix-tests (Files): Likewise.
167         * modules/vsnprintf-posix-tests (Files): Likewise.
168         * modules/vsprintf-posix-tests (Files): Likewise.
169         * modules/xprintf-posix-tests (Files): Likewise.
170
171 2011-09-11  Bruno Haible  <bruno@clisp.org>
172
173         Ensure pid_t gets defined.
174         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
175         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
176         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
177         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
178         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
179         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
180         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
181         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
182         * tests/test-fcntl-h.c: Check that pid_t is defined.
183         * tests/test-sched.c: Likewise.
184         * tests/test-termios.c: Likewise.
185         * tests/test-time.c: Likewise.
186         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
187         * doc/posix-headers/signal.texi: Likewise.
188         * doc/posix-headers/sys_types.texi: Likewise.
189         * doc/posix-headers/time.texi: Likewise.
190
191 2011-09-11  Bruno Haible  <bruno@clisp.org>
192
193         acl: Fix compilation on Solaris 10 (older version).
194         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
195         of ACE_EVERYONE.
196         * lib/set-mode-acl.c (qset_acl): Likewise.
197         Reported by Christian Jullien <eligis@orange.fr>.
198
199 2011-09-10  Bruno Haible  <bruno@clisp.org>
200
201         iconv, unsetenv: Add support for MSVC compiler.
202         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
203         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
204
205 2011-09-10  Bruno Haible  <bruno@clisp.org>
206
207         *printf: Add support for MSVC compiler.
208         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
209         handles the exception caused by the %n directive. When cross-compiling,
210         guess no on native Windows.
211         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
212         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
213         emulate it through vsnprintf.
214         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
215         * doc/posix-functions/dprintf.texi: Update documentation regarding
216         MSVC 9.
217         * doc/posix-functions/fprintf.texi: Likewise.
218         * doc/posix-functions/printf.texi: Likewise.
219         * doc/posix-functions/snprintf.texi: Likewise.
220         * doc/posix-functions/sprintf.texi: Likewise.
221         * doc/posix-functions/swprintf.texi: Likewise.
222         * doc/posix-functions/vdprintf.texi: Likewise.
223         * doc/posix-functions/vfprintf.texi: Likewise.
224         * doc/posix-functions/vprintf.texi: Likewise.
225         * doc/posix-functions/vsnprintf.texi: Likewise.
226         * doc/posix-functions/vsprintf.texi: Likewise.
227         * doc/glibc-functions/asprintf.texi: Likewise.
228         * doc/glibc-functions/obstack_printf.texi: Likewise.
229         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
230         * doc/glibc-functions/vasprintf.texi: Likewise.
231
232 2011-09-10  Bruno Haible  <bruno@clisp.org>
233
234         nocrash: Add support for native Windows.
235         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
236
237 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
238             Bruno Haible  <bruno@clisp.org>
239
240         absolute-header, include-next: Add support for MSVC compiler.
241         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
242         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
243         directory separator in #line directives.
244         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
245         recognize also backslash as directory separator in #line directives.
246
247 2011-09-08  Jim Meyering  <meyering@redhat.com>
248
249         maint.mk: mark the post-release commit log with "maint: " prefix
250         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
251         one-line commit-log summary.
252
253 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
254             Bruno Haible  <bruno@clisp.org>
255
256         Doc about crypt functions.
257         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
258         systems.
259         * doc/posix-functions/encrypt.texi: Likewise.
260         * doc/posix-functions/setkey.texi: Likewise.
261
262 2011-09-08  Simon Josefsson  <simon@josefsson.org>
263
264         * lib/gc.h: Fix copyright header.
265
266 2011-09-07  Bruno Haible  <bruno@clisp.org>
267
268         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
269         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
270         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
271
272 2011-09-07  Bruno Haible  <bruno@clisp.org>
273
274         openat: Work around compilation error with OSF/1 5.1 DTK cc.
275         * lib/fopen.c: Use different syntax for include of <stdio.h>.
276         * lib/freopen.c: Likewise.
277         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
278         * lib/lstat.c: Likewise.
279         * lib/stat.c: Likewise.
280         * lib/open.c: Use different syntax for include of <fcntl.h>.
281         * lib/openat.c: Include fcntl.h again, explicitly.
282
283 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
284
285         parse-datetime: document the newly accepted format
286         * doc/parse-datetime.texi (Combined date and time of day items):
287         New section.
288
289 2011-09-06  Bruno Haible  <bruno@clisp.org>
290
291         acl: Fix a test failure on newer Solaris 10 with ZFS.
292         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
293         ENOSYS as no ACL.
294         Reported by Jim Meyering.
295
296 2011-09-06  Bruno Haible  <bruno@clisp.org>
297
298         acl: Update for AIX >= 5.3 with NFS.
299         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
300         ENOSYS as no ACL.
301
302         acl: Fix a test failure on AIX >= 5.3 with NFS.
303         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
304         as no ACL.
305
306 2011-09-06  Bruno Haible  <bruno@clisp.org>
307
308         acl: Fix a test failure on IRIX 6.5 with NFS.
309         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
310         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
311         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
312         * lib/copy-acl.c (qcopy_acl): Likewise.
313
314 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
315
316         openat: port to AIX 7.1 with large files
317         AIX 7.1 does a "#define openat open64at" if large files are in use,
318         so we can't simply #undef openat.  Use the orig_openat trick (similar
319         to orig_open in lib/open.c) to work around the problem.  Problem
320         reported by Kevin Brott for GNU tar, in the thread containing
321         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
322         * lib/openat.c (__need_system_fcntl_h): Define first.
323         Include <fcntl.h> and <sys/types.h> before undefining.
324         (orig_openat) [HAVE_OPENAT]: New inline function.
325         (openat) [HAVE_OPENAT]: Do not undef.
326         (rpl_openat): Use orig_openat, not openat.
327
328 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
329             Bruno Haible  <bruno@clisp.org>
330
331         acl: Avoid errors on NonStop Kernel.
332         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
333         ENOTSUP errors.
334
335 2011-09-05  Bruno Haible  <bruno@clisp.org>
336
337         acl: Clean up Solaris code.
338         * lib/acl-internal.h: Remove no-op #if.
339         * lib/file-has-acl.c: Likewise.
340         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
341         * lib/copy-acl.c (qcopy_acl): Likewise.
342
343 2011-09-05  Bruno Haible  <bruno@clisp.org>
344
345         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
346         binaries built on the original Solaris 10.
347         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
348         trivial.
349
350 2011-09-05  Bruno Haible  <bruno@clisp.org>
351
352         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
353         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
354         10.
355         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
356         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
357         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
358         instead of acl_get, facl_get, acl_set, facl_set.
359
360 2011-09-05  Bruno Haible  <bruno@clisp.org>
361
362         copy-file: Try unit tests on more file systems.
363         * tests/test-copy-file-1.sh: New file.
364         * tests/test-copy-file-2.sh: New file.
365         * modules/copy-file-tests (Files): Add them.
366         (Makefile.am): Add them to TESTS.
367
368         acl: Try unit tests on more file systems.
369         * tests/test-file-has-acl-1.sh: New file.
370         * tests/test-file-has-acl-2.sh: New file.
371         * tests/test-set-mode-acl-1.sh: New file.
372         * tests/test-set-mode-acl-2.sh: New file.
373         * tests/test-copy-acl-1.sh: New file.
374         * tests/test-copy-acl-2.sh: New file.
375         * modules/acl-tests (Files): Add them.
376         (Makefile.am): Add them to TESTS.
377
378 2011-09-04  Bruno Haible  <bruno@clisp.org>
379
380         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
381         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
382         10.
383         (OLD_ALLOW, OLD_DENY): New macros.
384         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
385         ACE_ACCESS_ALLOWED_ACE_TYPE.
386         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
387         ACE_ACCESS_DENIED_ACE_TYPE.
388         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
389         (NEW_ACE_EXECUTE): Fix value.
390         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
391         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
392         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
393         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
394         NEW_ACE_SYNCHRONIZE): New macros.
395         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
396         instead of acl_fromtext, acl_set, facl_set.
397         Fixes a coreutils/tests/cp/perm failure.
398
399 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
400
401         openat: test for fstatat (..., 0) bug
402         Further testing with tar suggests that fstatat (..., 0)
403         does not work in general, on AIX 7.1; see
404         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
405         So, give up entirely on AIX 7.1's fstatat, and fall back on our
406         replacement fstatat (which is what older AIX releases were using
407         anyway).
408         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
409         use is now changed to orig_fstatat.  This was probably the right
410         thing to do anyway.
411         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
412         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
413         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
414         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
415         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
416         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
417         if the bug is found.
418
419         openat: test for fstatat (AT_FDCWD, ..., 0) bug
420         This tests for another fstatat bug on AIX 7.1:
421         fstatat (AT_FDCWD, ..., 0) does not work.  See
422         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
423         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
424         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
425         (rpl_fstatat): Adjust so that it works around either (or both)
426         bugs if present.
427         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
428
429 2011-09-03  Karl Berry  <karl@gnu.org>
430
431         * doc/regex.texi (Character Class Operators): Avoid literal ":"
432         in index entries.
433
434 2011-09-02  Bruno Haible  <bruno@clisp.org>
435
436         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
437         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
438         values of AR, ARFLAGS, RANLIB.
439         Reported by John W. Eaton <jwe@gnu.org> for Octave.
440
441 2011-09-02  Bruno Haible  <bruno@clisp.org>
442
443         Find 'ar' program that fits with --host argument.
444         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
445
446 2011-09-02  Bruno Haible  <bruno@clisp.org>
447
448         tests: init.sh: Support any non-GNU diff.
449         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
450         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
451         Solaris 8.
452
453 2011-09-02  Bruno Haible  <bruno@clisp.org>
454
455         tests: init.sh: work also with any non-GNU diff that supports -u
456         * tests/init.sh: Relax check for diff -u support.
457         Rather than checking for GNU diff via --version, simply check
458         for support for -u itself.  Useful at least on OpenBSD 4.9,
459         AIX 7.1, IRIX 6.5, and Solaris 10.
460
461 2011-09-01  Bruno Haible  <bruno@clisp.org>
462
463         strtoimax, strtoumax: Document problem on HP-UX 11.
464         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
465         * doc/posix-functions/strtoumax.texi: Likewise.
466
467 2011-09-01  Bruno Haible  <bruno@clisp.org>
468
469         strtoumax: Avoid link error on OSF/1 with DTK cc.
470         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
471         defined as a function.
472         * modules/strtoumax (Depends-on, configure.ac): Test only whether
473         strtoumax is defined, not whether it is declared.
474
475 2011-09-01  Bruno Haible  <bruno@clisp.org>
476
477         strtoimax: Avoid link error on OSF/1 with DTK cc.
478         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
479         defined as a function.
480         * modules/strtoimax (Depends-on, configure.ac): Test only whether
481         strtoimax is defined, not whether it is declared.
482
483 2011-09-01  Bruno Haible  <bruno@clisp.org>
484
485         imaxdiv: Avoid link error on OSF/1 with DTK cc.
486         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
487         as a function.
488         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
489         whether it is declared.
490
491 2011-09-01  Bruno Haible  <bruno@clisp.org>
492
493         imaxabs: Avoid link error on OSF/1 with DTK cc.
494         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
495         as a function.
496         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
497         whether it is declared.
498
499 2011-09-01  Bruno Haible  <bruno@clisp.org>
500
501         Tests for module 'strtoumax'.
502         * modules/strtoumax-tests: New file.
503         * tests/test-strtoumax.c: New file.
504
505         Tests for module 'strtoimax'.
506         * modules/strtoimax-tests: New file.
507         * tests/test-strtoimax.c: New file.
508
509         Tests for module 'imaxdiv'.
510         * modules/imaxdiv-tests: New file.
511         * tests/test-imaxdiv.c: New file.
512
513         Tests for module 'imaxabs'.
514         * modules/imaxabs-tests: New file.
515         * tests/test-imaxabs.c: New file.
516
517 2011-09-01  Bruno Haible  <bruno@clisp.org>
518
519         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
520         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
521         pthread_create.
522
523 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
524
525         openat: work around AIX 7.1 fstatat issue
526         This should fix the problem that was not properly fixed
527         in the previous change, dated 2011-08-30.
528         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
529         __need_system_stat_h defined.
530         (orig_fstatat) [HAVE_FSTATAT]: New function.
531         (rpl_fstatat): Go back to the old way of doing things,
532         except call orig_fstatat instead of fstatat.
533         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
534         Remove unnecessary check whether fstatat fills in st_size etc.
535
536 2011-09-01  Bruno Haible  <bruno@clisp.org>
537
538         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
539         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
540         just include the system's header.
541
542 2011-08-31  Jim Meyering  <meyering@redhat.com>
543
544         tests: avoid spurious assertion failure in test-float.c on ppc64
545         * tests/test-float.c (test_long_double): Comment out an assertion,
546         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
547         with gcc-4.4.4.
548
549         maint: indent with spaces, not TABs
550         I need to get in the habit of running gnulib's "make check".
551         Both of these would have been caught.
552         * m4/largefile.m4: Indent with spaces, not TABs.
553         * lib/parse-datetime.y (iso_8601_time): Likewise.
554         Spotted by Pádraig Brady.
555
556         test-parse-datetime.c: accommodate a relatively strict gcc warning
557         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
558         to avoid a warning from gcc's -Werror=missing-declarations.
559         Insert a few spaces-before-funcall-parenthesis.
560
561 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
562
563         parse-datetime: accept ISO 8601 date and time rep with "T" separator
564         The parser now accepts ISO 8601 date-time strings with "T" as the
565         separator.  It has long parsed dates like "2004-02-29 16:21:42"
566         with a space between the date and time strings.  Now it also parses
567         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
568         variants like "2004-02-29T16:21:42.333-07:00"
569         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
570         of day representation using the 'T' separator character.
571         * doc/parse-datetime.texi (General date syntax): replace use of
572         deprecated --iso-8601 option with --rfc-3339 in example of date
573         command output formats that can be parsed.
574         * tests/test-parse-datetime.c (tm_diff): New function, taken from
575         lib/parse-datetime.y.
576         (gmt_offset): New function.
577         (main): Add additional test cases to validate ISO8601 extended
578         date and time of day parsing.
579
580 2011-08-31  Bruno Haible  <bruno@clisp.org>
581
582         freopen: Documentation.
583         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
584         name.
585         Reported by Claudio Bley <claudio.bley@gmail.com>.
586
587 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
588
589         freopen: Don't crash if the filename argument is NULL.
590         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
591         NULL.
592
593 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
594
595         openat: work around AIX 7.1 fstatat bug
596         Problem reported by Kevin Brott for GNU tar, in the thread containing
597         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
598         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
599         FSTATAT_ST_SIZE_ETC_BROKEN.
600         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
601         rpl_fstatat.
602         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
603         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
604         AC_CHECK_FUNCS_ONCE for fstatat.
605         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
606         fchmodat, mkdirat, openat and unlinkat.
607
608 2011-08-30  Bruno Haible  <bruno@clisp.org>
609
610         Avoid endless recursions if config.h includes some header files.
611         * lib/fopen.c (__need_FILE): Define already before including config.h.
612         * lib/freopen.c (__need_FILE): Likewise.
613         * lib/open.c (__need_system_fcntl_h): Likewise.
614         * lib/stat.c (__need_system_sys_stat_h): Likewise.
615         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
616         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
617
618 2011-08-25  Karl Berry  <karl@gnu.org>
619
620         * config/srclist.txt (ylwrap): new try.
621         * build-aux/ylwrap: new file.
622
623 2011-08-23  Bruno Haible  <bruno@clisp.org>
624
625         tmpdir: Use a good default directory on native Windows.
626         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
627         (P_tmpdir): Default to _P_tmpdir on native Windows.
628         (path_search): On native Windows, try the value returned by GetTempPath
629         before trying P_tmpdir.
630         * modules/tmpdir (Depends-on): Add pathmax.
631         Suggested by John Darrington <john@darrington.wattle.id.au>.
632
633 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
634
635         doc: fix typo in README-release
636         * top/README-release: Capitalize first word of a sentence.
637
638 2011-08-19  Jim Meyering  <meyering@redhat.com>
639
640         fts: do not exhaust memory when processing million-entry directories
641         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
642         directory would require about 256*N bytes of memory.  Thus, it was
643         easy to construct a directory too large to be processed by any of
644         those tools.  With this change, fts' maximum memory utilization is
645         now limited to around 30MB.
646         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
647         (fts_read): When we've processed the final entry (i.e., when
648         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
649         using the parent entry to read any remaining entries.  Dispatch
650         depending on what fts_build returns:
651         - NULL+stop, aka failure: stop
652         - NULL otherwise: move up in the dir hierarchy
653         - non-NULL: handle this new entry
654         (fts_build): Declare and use new local, continue_readdir.
655         Prepare to be called from fts_read, when the entries
656         from a partially-read directory have just been exhausted.
657         In that case, we'll skip the opendir and instead use the parent's
658         fts_dirp and derive dir_fd from that.
659         Finally, in the readdir loop, if we read max_entries entries,
660         exit the loop ensuring *not* to call closedir.  This is required
661         so that fts_dirp can be reused on a subsequent call.
662         Prompted by Ben England's report of memory exhaustion in find
663         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
664
665         maint: fts: move decl of `dp' down into while loop; split a long line
666         * lib/fts.c (fts_build): No semantic change.
667
668         fts: add/use new struct member, fts_dirp
669         We are about to use this to manage any directory with
670         too many entries to read all of them into memory at once.
671         To do that, we'll need to save the DIR* pointer in each
672         affected FTSENT struct.
673         * lib/fts_.h: Include <dirent.h>.
674         (struct FTSENT) [fts_dirp]: New member.
675         * lib/fts.c (closedir_and_clear): Define.
676         Use it in place of closedir so that we are sure to
677         clear the new fts_dirp member when done with it.
678         (fts_alloc): Initialize the new member.
679         (fts_lfree): Free, if needed.
680
681         maint: fts: give __opendir2 a new parameter and rename
682         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
683         than surreptitiously using sole caller's "dir_fd".
684         (fts_opendir): Rename from __opendir2.
685
686         maint: fts.c: remove __opendir2's now-unused parameter, oflag
687         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
688
689         maint: fts.c: correct off-by-one indentation
690         * lib/fts.c (fts_build): Correct indentation, change style
691         of a couple of block comments, and bracing style.
692
693         maint: fts.c: move __opendir2 #define "up" out of function body
694         * lib/fts.c (__opendir2): Move "up".  No semantic change.
695
696         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
697         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
698         out for a long time and besides was useful only on BSD systems.
699
700 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
701
702         regex: port to Stratus OpenVOS
703         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
704         define to empty, rather than attempting nonportable optimizations.
705         Problem reported by Paul Green in:
706         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
707         and fix suggested by Eric Blake in:
708         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
709
710 2011-08-17  Eric Blake  <eblake@redhat.com>
711
712         getcwd: fix test failures on mingw
713         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
714         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
715         test if long directory cannot be created, and allow mingw errno.
716
717         getcwd-lgpl: fix m4 to match relaxed test for BSD
718         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
719         (gl_FUNC_GETCWD_SIGNATURE): New macro.
720         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
721         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
722         signature problem.
723
724         getcwd: fix compilation on mingw64
725         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
726         getcwd.
727         Reported by Marc-André Lureau.
728
729         pipe2: silence compiler warning
730         * lib/pipe2.c (pipe2): Hide label if it is not used.
731
732 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
733
734         relocatable-prog: fix link error
735         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
736         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
737         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
738         into modules/relocatable-lib without noticing that
739         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
740         also needs to build relocatable.c.
741
742 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
743
744         getaddrinfo: fix sh typo in gai_strerrorA decl checking
745         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
746         shell code: it contained a 'break' that was not in a loop.
747         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
748         via a shell-language loop; this may have been true in old Autoconf
749         versions, but it's not true in Autoconf 2.68.  I found this bug
750         when testing coreutils git on Solaris 8, whose shell complains
751         about the syntax error.
752
753 2011-08-12  Simon Josefsson  <simon@josefsson.org>
754
755         * lib/base64.c: Fix comment to reference RFC 4648.
756         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
757         <gvtulder@gmail.com>.
758
759 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
760
761         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
762
763         po/Makefile.in.in: fix make -q problem
764         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
765         rule, since there's no file named 'check-macro-version' and its
766         use as a file breaks make -q.
767         (all): Don't depend on check-macro-version.
768         (CHECK_MACRO_VERSION): New macro.
769         (stamp-po): Use it.
770
771         configmake: fix make -q problem
772         * modules/configmake (configmake.h): Update configmake.h's time stamp
773         even if the file does not change.  Otherwise, 'make -q' fails.
774         Problem reported by Simon Josefsson in
775         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
776
777 2011-08-11  Jim Meyering  <meyering@redhat.com>
778
779         git-version-gen: correct the advice in a comment
780         * build-aux/git-version-gen: Correct comment.
781         Don't recommend to list .tarball-version in .gitignore.
782
783 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
784
785         base64: fix off-by-one buffer size bug
786         Problem and (trivial) fix reported by Gijs van Tulder in
787         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
788         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
789         * tests/test-base64.c (main): Catch the bug.
790
791 2011-08-10  Eric Blake  <eblake@redhat.com>
792
793         closein: correct comments
794         * lib/closein.c (close_stdin): Improve comments.
795
796 2011-08-09  Bruno Haible  <bruno@clisp.org>
797
798         More tests for 'fseeko'.
799         * tests/test-fseeko3.c: New file, from Eric Blake.
800         * tests/test-fseeko3.sh: New file.
801         * modules/fseeko-tests (Files): Add them.
802         (TESTS): Add test-fseeko3.sh.
803         (check_PROGRAMS): Add test-fseeko3.
804
805 2011-08-09  Eric Blake  <eblake@redhat.com>
806
807         fseeko: remove unneeded hack
808         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
809
810         fseeko: fix bug on glibc
811         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
812         Reported by John W. Eaton.
813
814 2011-08-08  Bruno Haible  <bruno@clisp.org>
815
816         unictype/base: Fix interoperability with preinstalled libunistring.
817         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
818         Reported by Simon Josefsson.
819
820 2011-08-08  Bruno Haible  <bruno@clisp.org>
821
822         iswblank: Detect declaration correctly.
823         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
824         AC_CHECK_DECLS invocation.
825
826 2011-08-08  Bruno Haible  <bruno@clisp.org>
827
828         tcgetsid: Detect declaration correctly.
829         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
830         AC_CHECK_DECLS invocation.
831         Reported by Simon Josefsson.
832
833 2011-08-08  Eric Blake  <eblake@redhat.com>
834
835         largefile: fix typo that regressed large file support
836         * modules/largefile (configure.ac-early): Fix section name.
837
838 2011-08-06  Karl Berry  <karl@gnu.org>
839
840         * MODULES.html.sh (func_all_files): _Noreturn is no longer
841         a separate module.
842
843 2011-08-05  Simon Josefsson  <simon@josefsson.org>
844
845         openat: Fix warnings and commens when building unlinkat.c on Hurd.
846         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
847         get prototype for free.
848
849 2011-08-04  Bruno Haible  <bruno@clisp.org>
850
851         Tests for module 'pathmax'.
852         * modules/pathmax-tests: New file.
853         * tests/test-pathmax.c: New file.
854
855         canonicalize-lgpl: Support larger filenames on the Hurd.
856         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
857         Reported by Paul Eggert.
858
859         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
860         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
861         * lib/chdir-long.h: Include pathmax.h.
862         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
863         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
864         (PATH_MAX): Remove code that is done by pathmax.h.
865         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
866         * lib/tmpfile.c: Add a comment.
867         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
868         * modules/chdir-long (Depends-on): Add pathmax.
869         * modules/getcwd (Depends-on): Add pathmax.
870         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
871         is not defined.
872         * doc/posix-headers/limits.texi: Mention the pathmax module.
873         * NEWS: Mention the change.
874
875 2011-08-02  Bruno Haible  <bruno@clisp.org>
876
877         pthread_sigmask: Actually use results of gl_THREADLIB.
878         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
879         gl_THREADLIB, not gl_[]THREADLIB.
880         Reported by Eric Blake.
881
882 2011-08-02  Jim Meyering  <meyering@redhat.com>
883
884         maint.mk: relax the default _gl_TS_function_match regexp
885         * top/maint.mk (_gl_TS_function_match): Don't require at least one
886         space between function name and "(" in an "extern" declaration.
887         That would fail to match a decl with no space there: extern void foo();
888
889 2011-07-31  Iain Nicol  <iain@thenicols.net>
890
891         git-version-gen: document that EXTRA_DIST must include .version
892         * build-aux/git-version-gen: In the how-to-use comment, document
893         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
894         will fail when run from an unpacked distribution tarball.
895
896 2011-08-01  Bruno Haible  <bruno@clisp.org>
897
898         wctype-h: Fix last change.
899         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
900         REPLACE_TOWLOWER to 0.
901         Reported by Sam Steingold <sds@gnu.org>.
902
903 2011-07-31  Bruno Haible  <bruno@clisp.org>
904
905         frexpl: Update autoconf test.
906         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
907         according to changes of 2011-06-20.
908
909 2011-07-31  Bruno Haible  <bruno@clisp.org>
910
911         sys_utsname: Add support for Minix.
912         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
913         <sys/utsname.h>.
914         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
915         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
916
917 2011-07-31  Bruno Haible  <bruno@clisp.org>
918
919         strings: Add support for Minix.
920         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
921         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
922         * doc/posix-headers/strings.texi: Document the Minix problem.
923
924 2011-07-31  Bruno Haible  <bruno@clisp.org>
925
926         wctype-h: Add support for Minix.
927         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
928         REPLACE_TOWLOWER.
929         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
930         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
931         REPLACE_ISWCNTRL.
932
933 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
934
935         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
936         This is a performance improvement for 64-bit hosts: it causes the
937         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
938
939 2011-07-31  Bruno Haible  <bruno@clisp.org>
940
941         stdioext: Add support for Minix.
942         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
943         * lib/fpurge.c (fpurge): Likewise.
944         * lib/freadahead.c (freadahead): Likewise.
945         * lib/freadable.c (freadable): Likewise.
946         * lib/freading.c (freading): Likewise.
947         * lib/freadptr.c (freadptr): Likewise.
948         * lib/freadseek.c (freadptrinc): Likewise.
949         * lib/fseeko.c (rpl_fseeko): Likewise.
950         * lib/fseterr.c (fseterr): Likewise.
951         * lib/fwritable.c (fwritable): Likewise.
952         * lib/fwriting.c (fwriting): Likewise.
953         * lib/fflush.c (clear_ungetc_buffer): Update comment.
954         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
955
956 2011-07-31  Bruno Haible  <bruno@clisp.org>
957
958         errno: Port to Minix.
959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
960         ECONNABORTED are defined.
961         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
962         GNULIB_defined_ECONNABORTED): New macros.
963         * lib/strerror-override.h (strerror_override): Test also
964         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
965         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
966         ECONNABORTED.
967         * doc/posix-headers/errno.texi: Mention the Minix problem.
968
969 2011-07-31  Bruno Haible  <bruno@clisp.org>
970
971         Work around declaration collisions on Minix.
972         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
973         defined, set REPLACE_MBSINIT.
974         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
975         defined, set REPLACE_MBRTOWC.
976         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
977         set REPLACE_MBRLEN.
978         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
979         defined, set REPLACE_MBSRTOWCS.
980         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
981         defined, set REPLACE_WCRTOMB.
982         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
983         defined, set REPLACE_WCSRTOMBS.
984
985 2011-07-31  Bruno Haible  <bruno@clisp.org>
986
987         Add support for Minix with ACK compiler.
988         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
989         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
990         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
991
992 2011-07-31  Bruno Haible  <bruno@clisp.org>
993
994         Documentation about Minix.
995         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
996         * doc/glibc-headers/*.texi: Likewise.
997         * doc/posix-functions/*.texi: Likewise.
998         * doc/glibc-functions/*.texi: Likewise.
999
1000 2011-07-31  Bruno Haible  <bruno@clisp.org>
1001
1002         snippet/warn-on-use: Fix indentation.
1003         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1004
1005 2011-07-25  Jim Meyering  <meyering@redhat.com>
1006
1007         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1008         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1009         commands.
1010
1011 2011-07-27  Jim Meyering  <meyering@redhat.com>
1012
1013         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1014         * top/maint.mk (gl_extract_significant_defines_): Now that
1015         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1016         gnulib/lib/signal.in.h, and now that we recommend to
1017         define-if-undefined those two symbols in application code,
1018         we must filter them out of the "significant" list.
1019         This avoids a "make syntax-check" failure in coreutils.
1020
1021 2011-07-26  Eric Blake  <eblake@redhat.com>
1022
1023         warnings: add comments about previous patch
1024         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1025         * m4/include_next.m4: Likewise.
1026         * m4/warn-on-use.m4: Likewise.
1027         * m4/warnings.m4: Likewise, and simplify use.
1028         Suggested by Stefano Lattarini.
1029
1030         include-next, warnings: support older autoconf
1031         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1032         AS_VAR_PUSHDEF in a way that works with older autoconf.
1033         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1034         Reported by Daniel P. Berrange.
1035
1036 2011-07-25  Bruno Haible  <bruno@clisp.org>
1037
1038         fseek, ftell: Fix doc.
1039         * doc/posix-functions/fseek.texi: Reword statement about
1040         AC_SYS_LARGEFILE.
1041         * doc/posix-functions/ftell.texi: Likewise.
1042
1043 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1044             Bruno Haible  <bruno@clisp.org>
1045
1046         Add dependencies to the 'largefile' module.
1047         * modules/fopen (Depends-on): Add 'largefile'.
1048         * modules/freopen (Depends-on): Likewise.
1049         * modules/fseeko (Depends-on): Likewise.
1050         * modules/ftello (Depends-on): Likewise.
1051         * modules/glob (Depends-on): Likewise.
1052         * modules/lseek (Depends-on): Likewise.
1053         * modules/lstat (Depends-on): Likewise.
1054         * modules/mkostemp (Depends-on): Likewise.
1055         * modules/mkostemps (Depends-on): Likewise.
1056         * modules/mkstemp (Depends-on): Likewise.
1057         * modules/mkstemps (Depends-on): Likewise.
1058         * modules/open (Depends-on): Likewise.
1059         * modules/openat (Depends-on): Likewise.
1060         * modules/pread (Depends-on): Likewise.
1061         * modules/pwrite (Depends-on): Likewise.
1062         * modules/scandir (Depends-on): Likewise.
1063         * modules/stat (Depends-on): Likewise.
1064         * modules/tmpfile (Depends-on): Likewise.
1065         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1066         since the containing module now depends on the largefile module.
1067         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1068         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1069         off_t is fixed by gnulib.
1070         * doc/posix-functions/freopen.texi: Likewise.
1071         * doc/posix-functions/fseeko.texi: Likewise.
1072         * doc/posix-functions/fstatat.texi: Likewise.
1073         * doc/posix-functions/ftello.texi: Likewise.
1074         * doc/posix-functions/glob.texi: Likewise.
1075         * doc/posix-functions/lseek.texi: Likewise.
1076         * doc/posix-functions/lstat.texi: Likewise.
1077         * doc/posix-functions/mkstemp.texi: Likewise.
1078         * doc/posix-functions/open.texi: Likewise.
1079         * doc/posix-functions/openat.texi: Likewise.
1080         * doc/posix-functions/pread.texi: Likewise.
1081         * doc/posix-functions/pwrite.texi: Likewise.
1082         * doc/posix-functions/scandir.texi: Likewise.
1083         * doc/posix-functions/stat.texi: Likewise.
1084         * doc/posix-functions/tmpfile.texi: Likewise.
1085         * doc/glibc-functions/mkostemp.texi: Likewise.
1086         * doc/glibc-functions/mkostemps.texi: Likewise.
1087         * doc/glibc-functions/mkstemps.texi: Likewise.
1088
1089 2011-07-25  Bruno Haible  <bruno@clisp.org>
1090
1091         fcntl: Move AC_LIBOBJ invocation to module description.
1092         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1093         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1094
1095         fcntl: Remove call-in from fchdir.m4.
1096         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1098
1099         dup3: Remove potential call-in from fchdir.m4.
1100         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1102
1103         dup2: Move AC_LIBOBJ invocation to module description.
1104         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1105         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1106         Don't invoke AC_LIBOBJ.
1107         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1108
1109         dup2: Remove call-in from fchdir.m4.
1110         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1111         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1112
1113         fclose: Move AC_LIBOBJ invocation to module description.
1114         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1115         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1116         to 1.
1117         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1118
1119         fclose: Remove call-in from close.m4.
1120         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1121         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1122
1123         close: Move AC_LIBOBJ invocation to module description.
1124         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1125         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1126         1.
1127         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1128
1129         close: Remove call-in from fchdir.m4.
1130         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1131         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1132
1133         open: Move AC_LIBOBJ invocation to module description.
1134         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1135         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1136         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1137
1138         open: Remove call-in from fchdir.m4.
1139         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1140         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1141
1142         fchdir: Start to remove gl_REPLACE_* idiom.
1143         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1144         (gl_FUNC_FCHDIR): Invoke it.
1145
1146 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1147
1148         * lib/ftell.c (ftell): Comment out cast.
1149
1150         close: use gl_REPLACE_FCLOSE only if defined
1151         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1152         is defined.  The close module doesn't depend on the fclose module
1153         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1155         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1156
1157 2011-07-24  Jim Meyering  <meyering@redhat.com>
1158
1159         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1160         * tests/test-select.h (test_function): Declare as "static".
1161
1162 2011-07-24  Bruno Haible  <bruno@clisp.org>
1163
1164         doc: Mention the effects of AC_SYS_LARGEFILE.
1165         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1166         on this function.
1167         * doc/posix-functions/aio_error.texi: Likewise.
1168         * doc/posix-functions/aio_fsync.texi: Likewise.
1169         * doc/posix-functions/aio_read.texi: Likewise.
1170         * doc/posix-functions/aio_return.texi: Likewise.
1171         * doc/posix-functions/aio_suspend.texi: Likewise.
1172         * doc/posix-functions/aio_write.texi: Likewise.
1173         * doc/posix-functions/fgetpos.texi: Likewise.
1174         * doc/posix-functions/fopen.texi: Likewise.
1175         * doc/posix-functions/freopen.texi: Likewise.
1176         * doc/posix-functions/fsetpos.texi: Likewise.
1177         * doc/posix-functions/fstatvfs.texi: Likewise.
1178         * doc/posix-functions/ftruncate.texi: Likewise.
1179         * doc/posix-functions/ftw.texi: Likewise.
1180         * doc/posix-functions/getrlimit.texi: Likewise.
1181         * doc/posix-functions/glob.texi: Likewise.
1182         * doc/posix-functions/lio_listio.texi: Likewise.
1183         * doc/posix-functions/lockf.texi: Likewise.
1184         * doc/posix-functions/mkstemp.texi: Likewise.
1185         * doc/posix-functions/mmap.texi: Likewise.
1186         * doc/posix-functions/nftw.texi: Likewise.
1187         * doc/posix-functions/openat.texi: Likewise.
1188         * doc/posix-functions/opendir.texi: Likewise.
1189         * doc/posix-functions/posix_fadvise.texi: Likewise.
1190         * doc/posix-functions/posix_fallocate.texi: Likewise.
1191         * doc/posix-functions/pread.texi: Likewise.
1192         * doc/posix-functions/pwrite.texi: Likewise.
1193         * doc/posix-functions/readdir.texi: Likewise.
1194         * doc/posix-functions/readdir_r.texi: Likewise.
1195         * doc/posix-functions/rewinddir.texi: Likewise.
1196         * doc/posix-functions/scandir.texi: Likewise.
1197         * doc/posix-functions/seekdir.texi: Likewise.
1198         * doc/posix-functions/setrlimit.texi: Likewise.
1199         * doc/posix-functions/statvfs.texi: Likewise.
1200         * doc/posix-functions/telldir.texi: Likewise.
1201         * doc/posix-functions/tmpfile.texi: Likewise.
1202         * doc/posix-functions/truncate.texi: Likewise.
1203         * doc/glibc-functions/fallocate.texi: Likewise.
1204         * doc/glibc-functions/fstatfs.texi: Likewise.
1205         * doc/glibc-functions/fts_children.texi: Likewise.
1206         * doc/glibc-functions/fts_read.texi: Likewise.
1207         * doc/glibc-functions/getdirentries.texi: Likewise.
1208         * doc/glibc-functions/mkostemp.texi: Likewise.
1209         * doc/glibc-functions/mkostemps.texi: Likewise.
1210         * doc/glibc-functions/mkstemps.texi: Likewise.
1211         * doc/glibc-functions/preadv.texi: Likewise.
1212         * doc/glibc-functions/pwritev.texi: Likewise.
1213         * doc/glibc-functions/sendfile.texi: Likewise.
1214         * doc/glibc-functions/statfs.texi: Likewise.
1215
1216 2011-07-24  Bruno Haible  <bruno@clisp.org>
1217
1218         doc: Fix typo.
1219         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1220
1221 2011-07-24  Bruno Haible  <bruno@clisp.org>
1222
1223         doc: Mention fsusage.
1224         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1225
1226 2011-07-24  Bruno Haible  <bruno@clisp.org>
1227
1228         doc: Mention new glibc headers and functions.
1229         * doc/glibc-headers/gshadow.texi: New file.
1230         * doc/glibc-functions/endsgent.texi: New file.
1231         * doc/glibc-functions/fgetsgent.texi: New file.
1232         * doc/glibc-functions/fgetsgent_r.texi: New file.
1233         * doc/glibc-functions/getsgent.texi: New file.
1234         * doc/glibc-functions/getsgent_r.texi: New file.
1235         * doc/glibc-functions/getsgnam.texi: New file.
1236         * doc/glibc-functions/getsgnam_r.texi: New file.
1237         * doc/glibc-functions/putsgent.texi: New file.
1238         * doc/glibc-functions/setsgent.texi: New file.
1239         * doc/glibc-functions/sgetsgent.texi: New file.
1240         * doc/glibc-functions/sgetsgent_r.texi: New file.
1241         * doc/glibc-functions/malloc_info.texi: New file.
1242         * doc/glibc-functions/preadv.texi: New file.
1243         * doc/glibc-functions/pwritev.texi: New file.
1244         * doc/glibc-functions/register_printf_modifier.texi: New file.
1245         * doc/glibc-functions/register_printf_specifier.texi: New file.
1246         * doc/glibc-functions/register_printf_type.texi: New file.
1247         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1248         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1249         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1250         * doc/glibc-functions/pthread_getname_np.texi: New file.
1251         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1252         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1253         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1254         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1255         * doc/glibc-functions/pthread_setname_np.texi: New file.
1256         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1257         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1258         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1259         * doc/glibc-functions/qsort_r.texi: New file.
1260         * doc/glibc-functions/quick_exit.texi: New file.
1261         * doc/glibc-functions/syncfs.texi: New file.
1262         * doc/gnulib.texi: Include them.
1263         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1264         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1265         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1266         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1267         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1268         * doc/glibc-functions/execvpe.texi: Likewise.
1269
1270 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1271
1272         ftell: don't include <unistd.h>
1273         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1274         guaranteed to define off_t, and the ftell module depends on the
1275         stdio module.
1276
1277         ftell: do not assume wraparound signed arithmetic
1278         * lib/ftell.c: Include <limits.h>.
1279         (ftell): Don't assume wraparound signed arithmetic.
1280
1281 2011-07-24  Bruno Haible  <bruno@clisp.org>
1282
1283         close: No longer depend on module 'fclose'.
1284         * modules/close (Depends-on): Remove fclose.
1285         * NEWS: Mention the change.
1286         Suggested by Sam Steingold <sds@gnu.org>.
1287
1288 2011-07-24  Bruno Haible  <bruno@clisp.org>
1289
1290         fsusage: Enable large volume support on AIX >= 5.2.
1291         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1292         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1293         instead of STAT_STATVFS.
1294         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1295
1296         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1297         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1298         f_blocks field only on MacOS X.
1299
1300         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1301         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1302         * modules/fsusage (Depends-on): Add largefile.
1303
1304 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1305
1306         * README: Modernize discussion of signed integers.
1307         Assuming overflow wraparound is no longer safe.
1308         Mention ones' complement and signed magnitude.
1309
1310 2011-07-22  Bruno Haible  <bruno@clisp.org>
1311
1312         select tests, pselect tests: Refactor.
1313         * tests/test-select.h: New file, extracted from tests/test-select.c.
1314         (select_fn): New type.
1315         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1316         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1317         test_pipe): Add my_select argument.
1318         (test_function): Renamed from main. Add my_select argument.
1319         * tests/test-select.c: Move most code to tests/test-select.h. Include
1320         test-select.h.
1321         * modules/select-tests (Files): Add tests/test-select.h.
1322         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1323         (my_select, main): New functions.
1324         * modules/pselect-tests (Files): Add tests/test-select.h,
1325         tests/macros.h, tests/signature.h.
1326         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1327         (configure.ac): Check for <sys/wait.h>.
1328
1329 2011-07-22  Bruno Haible  <bruno@clisp.org>
1330
1331         sys_select tests: Check the signature of FD_*.
1332         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1333         signature tests from here...
1334         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1335         here.
1336         * modules/sys_select-tests (Files): Add tests/signature.h.
1337
1338 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1339
1340         largefile: new module, replacing large-inode
1341         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1342         * MODULES.html.sh: Add largefile, remove large-inode.
1343         * modules/largefile, m4/largefile.m4: New files.
1344         * modules/large-inode, m4/large-inode.m4: Remove.
1345
1346         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1348         implementations that use only 32 bits to count blocks.
1349         On typical hosts with 1024-byte blocks, this fails with file
1350         systems as small as 4 TiB.  Problem reported by Herb Wartens
1351         <http://debbugs.gnu.org/9140> and this should also fix a similar
1352         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1353
1354         large-inode: New module
1355         * MODULES.html.sh: Add it.
1356         * modules/large-inode, m4/large-inode.m4: New files.
1357
1358         extensions: Enable extensions on MacOS X 10.5 and later.
1359         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1360
1361 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1362
1363         file-has-acl: use acl_extended_file_nofollow if available
1364         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1365         (acl_extended_file): New macro.
1366         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1367         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1368
1369 2011-07-21  Bruno Haible  <bruno@clisp.org>
1370
1371         Declare system functions in a way that works with C++.
1372         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1373         declare fdopendir as extern "C".
1374         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1375         declare frexpl as extern "C".
1376         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1377         declare gai_strerror as extern "C".
1378         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1379         programs, declare gai_strerror as extern "C".
1380         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1381         declare getlogin_r as extern "C".
1382         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1383         as extern "C".
1384         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1385         declare ldexpl as extern "C".
1386         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1387         as extern "C".
1388         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1389         program, declare getmntinfo as extern "C".
1390         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1391         stpncpy as extern "C".
1392         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1393         program, declare __xpg_strerror_r as extern "C".
1394         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1395         strndup as extern "C".
1396         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1397         declare memset and bzero as extern "C".
1398         Reported by Sam Steingold <sds@gnu.org>.
1399
1400 2011-07-12  Jim Meyering  <meyering@redhat.com>
1401
1402         maint.mk: prohibit inclusion of "verify.h" without use
1403         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1404
1405 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1406
1407         timer-time: A new module to check for timer_settime()
1408         * m4/timer_time.m4: Check for the posix function.
1409         * modules/timer-time: Add the new module.
1410         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1411         Mention it.
1412
1413 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1414             Bruno Haible  <bruno@clisp.org>
1415
1416         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1417         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1418         not defined, assume POSIX threads and look for pthread_sigmask in
1419         $LIBS, without changing $CPPFLAGS.
1420
1421 2011-07-19  Bruno Haible  <bruno@clisp.org>
1422
1423         strstr: Update cross-compilation guess.
1424         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1425         CPUs, guess no, in view of glibc
1426         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1427         Suggested by Eric Blake. Reported by Reuben Thomas.
1428
1429 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1430
1431         getopt-gnu: suppress core dumps from detection code
1432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1433         to suppress core dumps that may well occur on glibc systems.
1434         * modules/getopt-gnu: Depend on nocrash.
1435
1436 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1437
1438         pthread_sigmask: ensure usleep is declared
1439         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1440         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1441
1442 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1443
1444         doc: Document NonStop portability issues.
1445         * doc/posix-functions/sigaction.texi (sigaction):
1446         * doc/posix-headers/signal.texi (signal.h):
1447         Document NonStop.  See Joachim Schmitz in
1448         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1449
1450 2011-07-15  Bruno Haible  <bruno@clisp.org>
1451
1452         ffsl, ffsll: Avoid unportable behaviour.
1453         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1454
1455 2011-07-15  Bruno Haible  <bruno@clisp.org>
1456
1457         ffs: More tests.
1458         * tests/test-ffs.c (NBITS): New macro.
1459         (main): Add more tests.
1460         * tests/test-ffsl.c (NBITS): New macro.
1461         (main): Add more tests.
1462         * tests/test-ffsll.c (NBITS): New macro.
1463         (main): Add more tests.
1464
1465 2011-07-15  Eric Blake  <eblake@redhat.com>
1466
1467         ffsl, ffsll: new modules
1468         * modules/ffsl: New file.
1469         * modules/ffsll: Likewise.
1470         * m4/ffsl.m4: Likewise.
1471         * m4/ffsll.m4: Likewise.
1472         * lib/ffsl.c: Likewise.
1473         * lib/ffsl.h: Likewise.
1474         * lib/ffsll.c: Likewise.
1475         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1476         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1477         * modules/string (Makefile.am): Substitute witnesses.
1478         * lib/strings.in.h (ffsl, ffsll): Declare.
1479         * modules/ffsl-tests: New test file.
1480         * modules/ffsll-tests: Likewise.
1481         * tests/test-ffsl.c: Likewise.
1482         * tests/test-ffsll.c: Likewise.
1483         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1484         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1485         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1486
1487         ffs: fix m4 prerequisite
1488         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1489
1490         ffs: avoid undefined behavior
1491         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1492         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1493         Reported by Bruno Haible.
1494
1495 2011-07-12  Bruno Haible  <bruno@clisp.org>
1496
1497         pthread_sigmask: Rely on module 'threadlib'.
1498         * modules/pthread_sigmask (Depends-on): Add threadlib.
1499         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1500         is defined.
1501
1502 2011-07-12  Bruno Haible  <bruno@clisp.org>
1503
1504         regex: Depend on module 'strcase'.
1505         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1506
1507 2011-07-12  Jim Meyering  <meyering@redhat.com>
1508
1509         warn-on-use: fix typo in file name
1510         * modules/snippet/warn-on-use (Files): Correct file name:
1511         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1512
1513 2011-07-12  Bruno Haible  <bruno@clisp.org>
1514
1515         strings: Document module.
1516         * doc/posix-headers/strings.texi: Mention module 'strings'.
1517
1518 2011-07-12  Bruno Haible  <bruno@clisp.org>
1519
1520         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1521         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1522         (Files, Makefile.am): Update.
1523         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1524         * modules/stdlib (Depends-on): Update.
1525
1526 2011-07-12  Bruno Haible  <bruno@clisp.org>
1527
1528         * NEWS: Mention the changes.
1529
1530         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1531         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1532         (Files, Makefile.am): Update.
1533         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1534         * modules/arpa_inet (Depends-on): Update.
1535         * modules/ctype (Depends-on): Update.
1536         * modules/dirent (Depends-on): Update.
1537         * modules/fcntl-h (Depends-on): Update.
1538         * modules/glob (Depends-on): Update.
1539         * modules/iconv-h (Depends-on): Update.
1540         * modules/inttypes-incomplete (Depends-on): Update.
1541         * modules/langinfo (Depends-on): Update.
1542         * modules/locale (Depends-on): Update.
1543         * modules/math (Depends-on): Update.
1544         * modules/netdb (Depends-on): Update.
1545         * modules/poll-h (Depends-on): Update.
1546         * modules/pty (Depends-on): Update.
1547         * modules/search (Depends-on): Update.
1548         * modules/signal (Depends-on): Update.
1549         * modules/spawn (Depends-on): Update.
1550         * modules/stdio (Depends-on): Update.
1551         * modules/stdlib (Depends-on): Update.
1552         * modules/string (Depends-on): Update.
1553         * modules/strings (Depends-on): Update.
1554         * modules/sys_file (Depends-on): Update.
1555         * modules/sys_ioctl (Depends-on): Update.
1556         * modules/sys_select (Depends-on): Update.
1557         * modules/sys_socket (Depends-on): Update.
1558         * modules/sys_stat (Depends-on): Update.
1559         * modules/sys_time (Depends-on): Update.
1560         * modules/sys_times (Depends-on): Update.
1561         * modules/sys_utsname (Depends-on): Update.
1562         * modules/sys_wait (Depends-on): Update.
1563         * modules/termios (Depends-on): Update.
1564         * modules/time (Depends-on): Update.
1565         * modules/unistd (Depends-on): Update.
1566         * modules/wchar (Depends-on): Update.
1567         * modules/wctype-h (Depends-on): Update.
1568         * MODULES.html.sh (Support for building libraries and executables):
1569         Update.
1570
1571         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1572         * modules/snippet/unused-parameter: Renamed from
1573         modules/unused-parameter.
1574         (Files, Makefile.am): Update.
1575         * build-aux/snippet/unused-parameter.h: Renamed from
1576         build-aux/unused-parameter.h.
1577         * modules/selinux-h (Depends-on): Update.
1578         * modules/unistr/base (Depends-on): Update.
1579         * MODULES.html.sh (Core language properties): Update.
1580
1581         Rename module 'link-warning' to 'snippet/link-warning'.
1582         * modules/snippet/link-warning: Renamed from modules/link-warning.
1583         (Files, Makefile.am): Update.
1584         * build-aux/snippet/link-warning.h: Renamed from
1585         build-aux/link-warning.h.
1586         * MODULES.html.sh (Support for building libraries and executables):
1587         Update.
1588
1589         Rename module 'c++defs' to 'snippet/c++defs'.
1590         * modules/snippet/c++defs: Renamed from modules/c++defs.
1591         (Files, Makefile.am): Update.
1592         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1593         * modules/arpa_inet (Depends-on): Update.
1594         * modules/ctype (Depends-on): Update.
1595         * modules/dirent (Depends-on): Update.
1596         * modules/fcntl-h (Depends-on): Update.
1597         * modules/glob (Depends-on): Update.
1598         * modules/iconv-h (Depends-on): Update.
1599         * modules/langinfo (Depends-on): Update.
1600         * modules/locale (Depends-on): Update.
1601         * modules/math (Depends-on): Update.
1602         * modules/netdb (Depends-on): Update.
1603         * modules/poll-h (Depends-on): Update.
1604         * modules/pty (Depends-on): Update.
1605         * modules/search (Depends-on): Update.
1606         * modules/signal (Depends-on): Update.
1607         * modules/spawn (Depends-on): Update.
1608         * modules/stdio (Depends-on): Update.
1609         * modules/stdlib (Depends-on): Update.
1610         * modules/string (Depends-on): Update.
1611         * modules/strings (Depends-on): Update.
1612         * modules/sys_ioctl (Depends-on): Update.
1613         * modules/sys_select (Depends-on): Update.
1614         * modules/sys_socket (Depends-on): Update.
1615         * modules/sys_stat (Depends-on): Update.
1616         * modules/sys_time (Depends-on): Update.
1617         * modules/sys_wait (Depends-on): Update.
1618         * modules/termios (Depends-on): Update.
1619         * modules/time (Depends-on): Update.
1620         * modules/unistd (Depends-on): Update.
1621         * modules/wchar (Depends-on): Update.
1622         * modules/wctype-h (Depends-on): Update.
1623
1624         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1625         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1626         (Files, Makefile.am): Update.
1627         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1628         * modules/argv-iter (Depends-on): Update.
1629         * modules/arpa_inet (Depends-on): Update.
1630         * modules/dirent (Depends-on): Update.
1631         * modules/fcntl-h (Depends-on): Update.
1632         * modules/fnmatch (Depends-on): Update.
1633         * modules/getopt-posix (Depends-on): Update.
1634         * modules/glob (Depends-on): Update.
1635         * modules/iconv-h (Depends-on): Update.
1636         * modules/inttypes-incomplete (Depends-on): Update.
1637         * modules/locale (Depends-on): Update.
1638         * modules/math (Depends-on): Update.
1639         * modules/netdb (Depends-on): Update.
1640         * modules/search (Depends-on): Update.
1641         * modules/signal (Depends-on): Update.
1642         * modules/spawn (Depends-on): Update.
1643         * modules/stdio (Depends-on): Update.
1644         * modules/stdlib (Depends-on): Update.
1645         * modules/string (Depends-on): Update.
1646         * modules/strings (Depends-on): Update.
1647         * modules/sys_socket (Depends-on): Update.
1648         * modules/sys_stat (Depends-on): Update.
1649         * modules/sys_time (Depends-on): Update.
1650         * modules/sys_times (Depends-on): Update.
1651         * modules/sys_utsname (Depends-on): Update.
1652         * modules/time (Depends-on): Update.
1653         * modules/unistd (Depends-on): Update.
1654         * modules/wchar (Depends-on): Update.
1655         * MODULES.html.sh (Support for building libraries and executables):
1656         Update.
1657
1658 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1659
1660         Improvements on _Noreturn and related modules.
1661
1662         modules/_Exit-tests: test _Noreturn too
1663         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1664         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1665         (main): Use them.
1666
1667         stdnoreturn, stdnoreturn-tests: remove modules
1668         They're not needed here and a bit premature for use elsewhere.  See
1669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1670         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1671         * tests/test-stdnoreturn.c: Remove files.
1672         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1673         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1674         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1675         and using noreturn.
1676         * modules/openat, modules/sigpipe-die, modules/xalloc:
1677         * modules/xmemdup0, modules/xstrtol:
1678         Remove dependency on stdnoreturn.
1679
1680         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1681         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1682         Reparenthesize to avoid GCC warning.
1683         Support Microsoft's syntax.
1684         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1685
1686         _Noreturn-tests: remove module
1687         * modules/_Noreturn-tests: Remove.
1688         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1689         * tests/test-_Noreturn.c: Remove.
1690         * tests/test-stdnoreturn.c: Merge from the old
1691         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1692
1693 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1694
1695         _Noreturn, stdnoreturn, and related modules.
1696
1697         * top/maint.mk: Adjust to new noreturn support.
1698         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1699         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1700
1701         xalloc: use stdnoreturn.h
1702         * lib/xalloc.h: Include <stdnoreturn.h>.
1703         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1704         * modules/xalloc (Depends-on): Add stdnoreturn.
1705
1706         xstrtol: use stdnoreturn.h
1707         * lib/xstrtol.h: Include <stdnoreturn.h>.
1708         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1709         * modules/xstrtol (Depends-on): Add stdnoreturn.
1710
1711         xmemdup0: use stdnoreturn.h
1712         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1713         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1714         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1715
1716         sigpipe-die: use stdnoreturn.h
1717         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1718         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1719         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1720
1721         openat: use stdnoreturn.h
1722         * lib/openat.h: Include <stdnoreturn.h>.
1723         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1724         * modules/openat (Depends-on): Add stdnoreturn.
1725
1726         * lib/openat-die.c (openat_save_fail): Modernize comment.
1727
1728         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1729
1730         * lib/glthread/thread.h: Modernize comment.
1731
1732         obstack: use _Noreturn
1733         * lib/obstack.c (__attribute__): Remove macro.
1734         (print_and_abort): Use _Noreturn.
1735
1736         c-stack: use _Noreturn
1737         * lib/c-stack.c (die, overflow_handler, segv_handler):
1738         Use _Noreturn rather than __attribute__((noreturn)).
1739
1740         argmatch-tests, exclude_tests: use _Noreturn
1741         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1742         Remove.
1743         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1744
1745         stdlib: use _Noreturn
1746         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1747         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1748         * modules/stdlib (Depends-on): Add _Noreturn.
1749         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1750
1751         stdnoreturn-tests: new module
1752         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1753
1754         stdnoreturn: new module
1755         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1756         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1757
1758         _Noreturn-tests: new module
1759         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1760
1761         _Noreturn: new module
1762         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1763         New section, mentioning it.
1764         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1765
1766         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1767
1768 2011-07-11  Eric Blake  <eblake@redhat.com>
1769
1770         ffs: new module
1771         * modules/ffs: New file.
1772         * m4/ffs.m4: Likewise.
1773         * lib/ffs.c: Likewise.
1774         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1775         * modules/strings (Makefile.am): Substitute witness.
1776         (Depends-on): Add c++defs.
1777         * lib/strings.in.h (ffs): Declare.
1778         * modules/ffs-tests: New test file.
1779         * tests/test-ffs.c: Test new module.
1780         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1781         * doc/posix-functions/ffs.texi (ffs): Likewise.
1782
1783         regex: avoid compiler warning
1784         * lib/regex.c (includes): Include <strings.h>, for use of
1785         strcasecmp in regcomp.c.
1786         Reported by Joachim Schmitz.
1787
1788 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1789
1790         stdint: respect system's intmax_t if INTMAX_MAX
1791         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1792         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1793         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1794         long but int64_t is long long, and where we will clash with the
1795         system intmax_t if we override it.  See
1796         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1797         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1798         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1799         similarly for UINTMAX_C.
1800
1801 2011-07-08  Bruno Haible  <bruno@clisp.org>
1802
1803         pthread_sigmask tests: Avoid a compiler warning.
1804         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1805         non-zero.
1806
1807         sigprocmask tests: A better way to avoid a compiler warning.
1808         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1809         (main): Complain if system() returns non-zero.
1810         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1811
1812 2011-07-08  Bruno Haible  <bruno@clisp.org>
1813
1814         pthread_sigmask: Work around IRIX bug.
1815         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1816         bug.
1817         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1818         there may be unblocked pending signals.
1819         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1820
1821 2011-07-08  Bruno Haible  <bruno@clisp.org>
1822
1823         pthread_sigmask: Work around Cygwin bug.
1824         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1825         bug.
1826         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1827         the system's pthread_sigmask function.
1828         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1829
1830 2011-07-08  Bruno Haible  <bruno@clisp.org>
1831
1832         pthread_sigmask: Work around bug in single-threaded implementation.
1833         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1834         FreeBSD, HP-UX, Solaris bug.
1835         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1836         * lib/pthread_sigmask.c: Include <stddef.h>.
1837         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1838         the system's pthread_sigmask function.
1839         * modules/pthread_sigmask (configure.ac): Invoke
1840         gl_PREREQ_PTHREAD_SIGMASK.
1841         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1842         HP-UX, Solaris.
1843
1844 2011-07-08  Eric Blake  <eblake@redhat.com>
1845
1846         test-sigprocmask: avoid compiler warning
1847         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1848         * tests/test-sigprocmask.c (main): Use it to silence warning.
1849         Reported by Jim Meyering.
1850
1851         test-snprintf: avoid compiler warning
1852         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1853         * tests/test-vsnprintf.c (main): Likewise.
1854         Reported by Jim Meyering.
1855
1856 2011-07-08  Bruno Haible  <bruno@clisp.org>
1857
1858         Tests for module 'pthread_sigmask'.
1859         * modules/pthread_sigmask-tests: New file.
1860         * tests/test-pthread_sigmask1.c: New file, based on
1861         tests/test-sigprocmask.c.
1862         * tests/test-pthread_sigmask2.c: New file.
1863
1864 2011-07-08  Jim Meyering  <meyering@redhat.com>
1865
1866         test-getopt.h: avoid warning about an unused variable
1867         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1868
1869 2011-07-07  Jim Meyering  <meyering@redhat.com>
1870
1871         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1872         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1873         now that it no longer contains leading TABs.
1874         Remove unused "url=FIXME" statement.
1875
1876 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1877
1878         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1879         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1880         When gl_THREADLIB is not in use, assume that the POSIX sematics
1881         are desired.  This is better for Emacs, which uses POSIX semantics
1882         on GNUish and/or POSIXish platforms, and does not use threads at
1883         all otherwise.
1884
1885         pthread_sigmask: fix typo when testing for libraries
1886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1887         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1888
1889 2011-07-08  Eric Blake  <eblake@redhat.com>
1890
1891         fts: introduce FTS_NOATIME
1892         * lib/fts_.h (FTS_NOATIME): New bit flag.
1893         (FTS_OPTIONMASK): Adjust.
1894         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1895         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1896
1897 2011-07-08  Bruno Haible  <bruno@clisp.org>
1898
1899         Tests for module 'thread'.
1900         * modules/thread-tests: New file.
1901         * tests/test-thread_self.c: New file.
1902         * tests/test-thread_create.cc: New file.
1903
1904 2011-07-08  Bruno Haible  <bruno@clisp.org>
1905
1906         thread: Avoid gcc warnings when using gl_thread_self().
1907         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1908         'void *'.
1909         (gl_thread_self_pointer): Update.
1910
1911 2011-07-07  Bruno Haible  <bruno@clisp.org>
1912
1913         signal-c++-tests: Check declaration of pthread_sigmask.
1914         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1915         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1916         $(LIB_PTHREAD_SIGMASK).
1917
1918 2011-07-07  Bruno Haible  <bruno@clisp.org>
1919
1920         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1921         * lib/signal.in.h (pthread_sigmask): Override if
1922         REPLACE_PTHREAD_SIGMASK is 1.
1923         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1924         REPLACE_PTHREAD_SIGMASK.
1925         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1926         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1927         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1928         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1929         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1930
1931 2011-07-07  Bruno Haible  <bruno@clisp.org>
1932
1933         pthread_sigmask: Ensure declaration in <signal.h>.
1934         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1935         include <pthread.h>.
1936         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1937         problem.
1938
1939 2011-07-07  Bruno Haible  <bruno@clisp.org>
1940
1941         pthread_sigmask: Document the module.
1942         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1943
1944 2011-07-07  Bruno Haible  <bruno@clisp.org>
1945
1946         pthread_sigmask: Follow gnulib conventions.
1947         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
1948         gl_PTHREAD_SIGMASK.
1949         * modules/pthread_sigmask (configure.ac): Update.
1950
1951 2011-07-07  Bruno Haible  <bruno@clisp.org>
1952
1953         pthread_sigmask: Make declaration C++ safe.
1954         * lib/signal.in.h: In two special conditions, just do an #include_next.
1955         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1956         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
1957         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1958         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
1959         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
1960         not REPLACE_PTHREAD_MASK.
1961         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
1962         not REPLACE_PTHREAD_MASK.
1963         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1964
1965 2011-07-07  Bruno Haible  <bruno@clisp.org>
1966
1967         pthread_sigmask: Fix return value.
1968         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
1969         * lib/pthread_sigmask.c: New file.
1970         * modules/pthread_sigmask (Files): Add it.
1971         (configure.ac): Invoke AC_LIBOBJ.
1972
1973 2011-07-07  Eric Blake  <eblake@redhat.com>
1974
1975         getopt: more portable argv creation
1976         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
1977         const, use char arrays rather than strings.
1978         Suggested by Paul Eggert.
1979
1980 2011-07-07  Bruno Haible  <bruno@clisp.org>
1981
1982         Tests for module 'sigprocmask'.
1983         * modules/sigprocmask-tests: New file.
1984         * tests/test-sigprocmask.c: New file.
1985
1986 2011-07-07  Bruno Haible  <bruno@clisp.org>
1987
1988         float tests: Tweak.
1989         * tests/test-float.c (main): Tweak skip message.
1990
1991 2011-07-07  Eric Blake  <eblake@redhat.com>
1992
1993         getopt: avoid compiler warning during configure
1994         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
1995         assigning string literals to non-const pointer.
1996
1997         getopt-gnu: avoid crash in glibc getopt
1998         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
1999         * tests/test-getopt.h (test_getopt): Enhance test.
2000         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2001         * doc/posix-functions/getopt.texi (getopt): Document it.
2002         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2003         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2004         Likewise.
2005
2006 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2007
2008         getopt: handle W; without long options in getopt [BZ #12922]
2009         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2010         but no long options are defined, just return 'W'.
2011
2012 2011-07-07  Bruno Haible  <bruno@clisp.org>
2013
2014         Avoid literal tabs.
2015         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2016         variable containing a tab instead of a literal tab.
2017         Reported by Jim Meyering.
2018
2019 2011-07-07  Bruno Haible  <bruno@clisp.org>
2020
2021         Comments.
2022         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2023
2024 2011-07-06  Bruno Haible  <bruno@clisp.org>
2025
2026         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2027         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2028         <winsock2.h>.
2029         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2030         lib/sys_socket.in.h.
2031         (close, gethostname): Hide declarations from <winsock2.h>.
2032         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2033         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2034         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2035         (select): Don't override if gnulib's <sys/select.h> was already
2036         included.
2037         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2038         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2039         setsockopt, shutdown, select): Tweak indentation.
2040
2041 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2042
2043         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2044         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2045         in an application that does not use the sys_select module.
2046
2047 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2048
2049         poll: do not return 0 on timeout=-1
2050         * lib/poll.c: Loop with yield if no events occured
2051
2052 2011-07-06  Eric Blake  <eblake@redhat.com>
2053
2054         pthread_sigmask: always replace when not using pthread
2055         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2056         replacement when using some threading other than pthread.  Fix
2057         logic bug.
2058
2059 2011-07-06  Bruno Haible  <bruno@clisp.org>
2060
2061         Comments.
2062         * m4/printf.m4: Update comments about mingw.
2063
2064 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2065
2066         sys_select: define sigset_t more portably
2067         * lib/sys_select.in.h: Always include <sys/types.h>, since
2068         we now need sigset_t and mingw defines it there.
2069         Include <signal.h> before split inclusion guard, to avoid
2070         mishaps on Solaris, whose <signal.h> eventually includes us.
2071         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2072         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2073         which come from ...
2074         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2075         gl_CHECK_TYPE_SIGSET_T.
2076         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2077         does the real work.
2078         * modules/sys_select (Depends-on): Add 'signal'.
2079
2080         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2081         Suggested by Bruno Haible.
2082
2083         pselect: Use pthread_sigmask, not sigprocmask.
2084         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2085         multithreaded apps better than sigprocmask does.
2086         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2087         sigprocmask directly.
2088
2089 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2090
2091         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2092         Don't #undef,  since we don't need any underlying pselect.
2093         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2094         (Depends-on): Add select.
2095         (Link): Add $(LIBSOCKET).
2096         These changes suggested by Bruno Haible.
2097
2098         pselect: document better
2099         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2100         * doc/posix-functions/pselect.texi (pselect): Document new module.
2101
2102         pthread_sigmask: new module
2103         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2104         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2105         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2106         This is done only as a macro; I don't know how well that'll
2107         work for C++.  Move <sys/types.h> include before the include_next,
2108         to avoid mishap on Solaris.
2109         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2110         * modules/signal (Makefile.am): Substitute the check's results.
2111         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2112
2113         test-pselect: new module
2114         * modules/pselect-tests, tests/test-pselect.c: New files.
2115         * tests/test-select.c, tests/test-sys_select-c++.cc:
2116         If TEST_PSELECT is defined, test pselect instead of testing select.
2117
2118         * tests/test-sys_select.c (sigset_t): Test for it, too.
2119         Suggested by Bruno Haible.
2120
2121 2011-07-05  Eric Blake  <eblake@redhat.com>
2122
2123         snprintf: guarantee %1$d, for libintl
2124         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2125         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2126         * doc/posix-functions/snprintf.texi (snprintf): Update.
2127         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2128         * tests/test-snprintf.c (main): Enhance test.
2129         * tests/test-vsnprintf.c (main): Likewise.
2130
2131 2011-07-05  Jim Meyering  <meyering@redhat.com>
2132
2133         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2134         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2135         per Bruno's request, to accommodate this idiom (no space after "#")
2136         even when the function is inside an #if block:
2137         char *
2138         gets (char *s)
2139         #undef gets
2140         {
2141           ...
2142         }
2143
2144 2011-07-04  Jim Meyering  <meyering@redhat.com>
2145
2146         maint: indent with spaces, not TABs, and add a rule to check this
2147         * tests/test-userspec.c: Indent with spaces, not TABs.
2148         * tests/test-argp.c: Likewise.
2149         * tests/test-c-stack2.sh: Likewise.
2150         * tests/test-parse-duration.sh: Likewise
2151         * m4/strtod.m4: Likewise.
2152         * m4/alloca.m4: Likewise.
2153         * m4/pselect.m4: Likewise.
2154         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2155
2156 2011-07-03  Jim Meyering  <meyering@redhat.com>
2157
2158         maint.mk: correct omissions in prohibit_argmatch_without_use check
2159         This rule would mistakenly report that argmatch.h is included without
2160         use even when both the argmatch and invalid_arg macro were used.
2161         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2162         of argmatch and invalid_arg.
2163
2164 2011-07-03  Bruno Haible  <bruno@clisp.org>
2165
2166         Comments about EINTR.
2167         * lib/safe-read.h: Explain the purpose of this module.
2168         * lib/safe-write.h: Likewise.
2169         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2170         module.
2171         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2172         module.
2173         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2174
2175 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2176
2177         xnanosleep: Rewrite to use new dtotimespec module.
2178         It has the conversion code that used to be in xnanosleep.
2179         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2180         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2181         (TIME_T_MAX): Remove.
2182         (xnanosleep): Rewrite in terms of dtotimespec.
2183         * modules/xnanosleep (Depends-on): Add dtotimespec.
2184         Remove intprops, stdbool.
2185
2186         timespec-add, timespec-sub: new modules
2187         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2188         * lib/timespec-add.c, lib/timespec-sub.c:
2189         * modules/timespec-add, modules/timespec-sub: New files.
2190
2191         dtotimespec: new module
2192         * lib/timespec.h (dtotimespec): New decl.
2193         * lib/dtotimespec.c, modules/dtotimespec: New files.
2194
2195         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2196
2197         pselect: new module
2198         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2199         (pselect): New decls.
2200         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2201         since the standard pselect decl uses 'restrict'.
2202         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2203         HAVE_PSELECT, REPLACE_PSELECT.
2204         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2205         HAVE_PSELECT, REPLACE_PSELECT.
2206         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2207
2208         sys_select: don't depend on sys_socket
2209         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2210         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2211         This fix works on GNU and GNU-like platforms, but has not been tested
2212         on native Windows.
2213         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2214         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2215         gl_HEADER_SYS_SOCKET.
2216         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2217         gl_PREREQ_SYS_H_WINSOCK2.
2218
2219 2011-06-29  Eric Blake  <eblake@redhat.com>
2220
2221         pipe2: fix C89 compile problem
2222         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2223         Reported by Bruno Haible.
2224
2225         pipe, pipe2: don't corrupt fd on error
2226         * lib/pipe.c (pipe): Leave fd unchanged on error.
2227         * lib/pipe2.c (pipe2): Likewise.
2228         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2229         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2230
2231 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2232
2233         mmap-anon: do not use regular expressions inadvertently
2234         * m4/mmap-anon.m4: Remove trailing period from strings sought
2235         in the output.
2236
2237 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2238
2239         nanosleep: fix integer overflow problem
2240         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2241         arithmetic wraps around on overflow.
2242
2243         nanosleep: simplify carrying
2244         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2245         first call to the underyling nanosleep, not for the last one.
2246         This doesn't fix any bugs, but it simplifies the computation of
2247         the remaining delay.  Found while auditing integer overflow issues.
2248
2249         dup2: remove test for existence of fcntl
2250         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2251         "#if HAVE_FCNTL", in the configure-time test program.
2252         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2253         and therefore speeds up "configure" a bit.  Found while
2254         adding the dup2 module to Emacs.
2255
2256 2011-06-24  Eric Blake  <eblake@redhat.com>
2257
2258         maint.mk: enhance useless header checks
2259         * top/maint.mk (_sc_header_without_use): Check both include
2260         styles.
2261         (sc_prohibit_assert_without_use)
2262         (sc_prohibit_close_stream_without_use)
2263         (sc_prohibit_getopt_without_use)
2264         (sc_prohibit_quotearg_without_use)
2265         (sc_prohibit_quote_without_use)
2266         (sc_prohibit_long_options_without_use)
2267         (sc_prohibit_inttostr_without_use)
2268         (sc_prohibit_ignore_value_without_use)
2269         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2270         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2271         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2272         (sc_prohibit_hash_pjw_without_use)
2273         (sc_prohibit_safe_read_without_use)
2274         (sc_prohibit_argmatch_without_use)
2275         (sc_prohibit_canonicalize_without_use)
2276         (sc_prohibit_root_dev_ino_without_use)
2277         (sc_prohibit_openat_without_use)
2278         (sc_prohibit_c_ctype_without_use)
2279         (sc_prohibit_signal_without_use)
2280         (sc_prohibit_stdio--_without_use)
2281         (sc_prohibit_stdio-safer_without_use)
2282         (sc_prohibit_strings_without_use)
2283         (sc_prohibit_intprops_without_use)
2284         (sc_prohibit_stddef_without_use)
2285         (sc_prohibit_xfreopen_without_use): Update clients.
2286
2287 2011-06-24  Jim Meyering  <meyering@redhat.com>
2288
2289         syntax-check: keep one maint.mk rule in sync with its header
2290         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2291         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2292         I prefer to avoid temporary files here, so use <(...), but that
2293         is not supported by /bin/sh, so...
2294         (SHELL): Define to /bin/bash.
2295
2296 2011-06-24  Eric Blake  <eblake@redhat.com>
2297
2298         maint.mk: update sc_prohibit_intprops_without_use
2299         * top/maint.mk (_intprops_names): Match recent changes.
2300
2301 2011-06-24  Bruno Haible  <bruno@clisp.org>
2302
2303         strerror-override: No-op tweak.
2304         * lib/strerror-override.h (strerror_override): Reorder conditions,
2305         for consistency with lib/strerror-override.c.
2306
2307 2011-06-23  Eric Blake  <eblake@redhat.com>
2308
2309         maint.mk: test further PATH_MAX issues
2310         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2311         (sc_prohibit_path_max_allocation): ...and also test alloca.
2312         Suggested by Jim Meyering.
2313
2314 2011-06-22  Eric Blake  <eblake@redhat.com>
2315
2316         maint.mk: add syntax-check to avoid char[PATH_MAX]
2317         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2318
2319         stat: be robust to PATH_MAX definition
2320         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2321         * modules/stat (Depends-on): Add verify.
2322
2323         link: work around IRIX bug
2324         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2325         * lib/link.c (rpl_link): Work around it.
2326         * tests/test-link.h (test_link): Enhance test.
2327         * doc/posix-functions/link.texi (link): Document the bug.
2328
2329         getopt: silence clang warning
2330         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2331         dereference.
2332         Reported by Gustavo Martin Domato.
2333
2334 2011-06-22  Jim Meyering  <meyering@redhat.com>
2335
2336         bootstrap: do not insert a blank line into each .gitignore file
2337         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2338
2339 2011-06-21  Eric Blake  <eblake@redhat.com>
2340
2341         perror: test for output mismatch
2342         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2343         perror on IRIX.
2344
2345         strerror_r: fix OpenBSD behavior on out-of-range
2346         * lib/strerror_r.c (strerror_r): Always use maximal string.
2347         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2348
2349         strerror_r: fix OpenBSD behavior on 0
2350         * lib/strerror-override.c (strerror_override): Also override 0
2351         when needed.
2352         * lib/strerror-override.h (strerror_override): Likewise.
2353         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2354         earlier.
2355         * lib/strerror_r.c (strerror_r): Likewise.
2356         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2357         behavior...
2358         (gl_FUNC_STRERROR_0): ...into new macro.
2359         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2360         is overridden.
2361         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2362         * modules/strerror-override (Files): Add strerror.m4.
2363         (configure.ac): Also provide override for 0 when needed.
2364         * doc/posix-functions/strerror.texi (strerror): Document this.
2365         * doc/posix-functions/perror.texi (perror): Likewise.
2366
2367         perror: adjust array size
2368         * modules/perror (Depends-on): Add strerror-override.
2369         * lib/perror.c (perror): Use it to avoid magic number.
2370
2371         strerror-override: reduce size
2372         * lib/strerror-override.c (strerror_override): Use fewer lines.
2373
2374 2011-06-20  Bruno Haible  <bruno@clisp.org>
2375
2376         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2377         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2378
2379 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2380
2381         alloca: port to compilers that can optimize like GCC 4.6.0
2382         * lib/alloca.c (find_stack_direction): New signature, taken from
2383         Autoconf git.  This works with GCC 4.6.0.  This code should never
2384         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2385         be used with other compilers that optimize as well as GCC 4.6.0 does.
2386         (alloca): Adjust to new signature.
2387         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2388         New macro, which patches Autoconf in a similar way.
2389
2390         c-stack: stop worrying about stack direction
2391         * lib/c-stack.c (find_stack_direction): Remove.
2392         (segv_handler): Don't worry about stack direction growth, as it's
2393         too much of a pain to configure this correctly, given how compilers
2394         are optimizing-away our stack-growth detection code.  Instead, assume
2395         that any access to just before or just after the stack is OK.
2396         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2397         Don't require AC_FUNC_ALLOCA; no longer needed.
2398
2399 2011-06-20  Eric Blake  <eblake@redhat.com>
2400
2401         test-stat: don't allocate PATH_MAX bytes
2402         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2403         PATH_MAX-sized buffer.
2404         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2405         * modules/stat-tests (Depends-on): Likewise.
2406         * tests/test-fstatat.c (includes): Drop pathmax.h.
2407         * tests/test-stat.c (includes): Likewise.
2408         Reported by Bruno Haible.
2409
2410 2011-06-20  Bruno Haible  <bruno@clisp.org>
2411
2412         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2413         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2414         * lib/float.c: New file.
2415         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2416         REPLACE_FLOAT_LDBL.
2417         * modules/float (Files): Add lib/float.c.
2418         (configure.ac): Invoke AC_LIBOBJ.
2419         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2420
2421 2011-06-20  Bruno Haible  <bruno@clisp.org>
2422
2423         Tests for module 'float'.
2424         * modules/float-tests: New file.
2425         * tests/test-float.c: New file.
2426
2427 2011-06-19  Bruno Haible  <bruno@clisp.org>
2428
2429         isinf: Coding style.
2430         * lib/isinf.c: Use GNU coding style.
2431
2432 2011-06-19  Bruno Haible  <bruno@clisp.org>
2433
2434         linkat test: Avoid test failure on AIX 7.1.
2435         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2436         * tests/test-link.h (test_link): Likewise.
2437
2438 2011-06-19  Bruno Haible  <bruno@clisp.org>
2439
2440         pread test: Avoid test failure on OpenBSD 4.9.
2441         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2442
2443 2011-06-19  Bruno Haible  <bruno@clisp.org>
2444
2445         sprintf-posix: Fix test failure on AIX 7.1.
2446         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2447         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2448         on AIX.
2449         * doc/posix-functions/fprintf.texi: Likewise.
2450         * doc/posix-functions/printf.texi: Likewise.
2451         * doc/posix-functions/snprintf.texi: Likewise.
2452         * doc/posix-functions/sprintf.texi: Likewise.
2453         * doc/posix-functions/vdprintf.texi: Likewise.
2454         * doc/posix-functions/vfprintf.texi: Likewise.
2455         * doc/posix-functions/vprintf.texi: Likewise.
2456         * doc/posix-functions/vsnprintf.texi: Likewise.
2457         * doc/posix-functions/vsprintf.texi: Likewise.
2458
2459 2011-06-19  Bruno Haible  <bruno@clisp.org>
2460
2461         roundl-ieee: Fix test failure on AIX 7.1.
2462         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2463         * doc/posix-functions/roundl.texi: Mention problem with negative
2464         arguments.
2465
2466 2011-06-19  Bruno Haible  <bruno@clisp.org>
2467
2468         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2469         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2470         * doc/posix-functions/round.texi: Mention problem with negative
2471         arguments.
2472         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2473
2474 2011-06-19  Bruno Haible  <bruno@clisp.org>
2475
2476         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2477         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2478         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2479         * doc/posix-functions/roundf.texi: Mention problem with negative
2480         arguments.
2481         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2482
2483 2011-06-19  Bruno Haible  <bruno@clisp.org>
2484
2485         ceilf-ieee: Work around bug on MacOS X 10.5.
2486         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2487
2488         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2489         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2490         IEEE compliant, avoid compiler optimizations.
2491         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2492         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2493         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2494         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2495         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2496         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2497         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2498         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2499         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2500         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2501
2502 2011-06-19  Bruno Haible  <bruno@clisp.org>
2503
2504         ceilf-ieee: Work around bug on AIX 7.1.
2505         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2506         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2507
2508 2011-06-19  Bruno Haible  <bruno@clisp.org>
2509
2510         ceil-ieee: Work around bug on AIX 7.1.
2511         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2512         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2513
2514 2011-06-18  Bruno Haible  <bruno@clisp.org>
2515
2516         fsync test: Avoid test failure on MacOS X and AIX.
2517         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2518         EINVAL.
2519
2520 2011-06-18  Bruno Haible  <bruno@clisp.org>
2521
2522         openat, fdopendir tests: Fix link errors.
2523         * modules/openat-tests (Depends-on): Add progname.
2524         * modules/fdopendir-tests (Depends-on): Likewise.
2525         * tests/test-fchownat.c: Include progname.h.
2526         (main): Call set_program_name.
2527         * tests/test-fstatat.c: Include progname.h.
2528         (main): Call set_program_name.
2529         * tests/test-mkdirat.c: Include progname.h.
2530         (main): Call set_program_name.
2531         * tests/test-openat.c: Include progname.h.
2532         (main): Call set_program_name.
2533         * tests/test-unlinkat.c: Include progname.h.
2534         (main): Call set_program_name.
2535         * tests/test-fdopendir.c: Include progname.h.
2536         (main): Call set_program_name.
2537
2538 2011-06-18  Bruno Haible  <bruno@clisp.org>
2539
2540         Doc update.
2541         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2542         HP-UX.
2543         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2544
2545 2011-06-18  Bruno Haible  <bruno@clisp.org>
2546
2547         getcwd tests: Avoid compilation error on HP-UX 11.31.
2548         * modules/getcwd-tests (Depends-on): Add pathmax.
2549         * tests/test-getcwd.c: Include pathmax.h.
2550
2551 2011-06-18  Bruno Haible  <bruno@clisp.org>
2552
2553         isfinite, isinf: Fix link error on AIX 6 and 7.
2554         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2555         needed, also test the macro with a 'float' argument.
2556         * m4/isinf.m4 (gl_ISINF): Likewise.
2557
2558 2011-06-18  Bruno Haible  <bruno@clisp.org>
2559
2560         getloadavg: Don't clobber LIBS. Regression from previous commit.
2561         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2562         AC_CHECK_LIB from here...
2563         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2564         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2565         gl_func_getloadavg_done.
2566         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2567
2568 2011-06-18  Bruno Haible  <bruno@clisp.org>
2569
2570         clean-temp: Improve documentation.
2571         * lib/clean-temp.h: Explain better how to use this module.
2572         Reported by John Darrington <john@darrington.wattle.id.au>.
2573
2574 2011-06-17  Bruno Haible  <bruno@clisp.org>
2575
2576         pread, pwrite: Avoid cc warning on AIX.
2577         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2578         (pwrite): Likewise.
2579
2580 2011-06-17  Bruno Haible  <bruno@clisp.org>
2581
2582         spawn-pipe tests: Fix link error.
2583         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2584         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2585
2586 2011-06-17  Bruno Haible  <bruno@clisp.org>
2587
2588         Tests: Remove unnecessary dependency.
2589         * modules/canonicalize-tests (Depends-on): Remove progname.
2590         * modules/chown-tests (Depends-on): Likewise.
2591         * modules/dirname-tests (Depends-on): Likewise.
2592         * modules/fdopendir-tests (Depends-on): Likewise.
2593         * modules/fdutimensat-tests (Depends-on): Likewise.
2594         * modules/hash-tests (Depends-on): Likewise.
2595         * modules/lchown-tests (Depends-on): Likewise.
2596         * modules/linkat-tests (Depends-on): Likewise.
2597         * modules/renameat-tests (Depends-on): Likewise.
2598         * modules/spawn-pipe-tests (Depends-on): Likewise.
2599         * modules/utimensat-tests (Depends-on): Likewise.
2600
2601 2011-06-17  Bruno Haible  <bruno@clisp.org>
2602
2603         spawn-pipe tests: Fix link error.
2604         * tests/test-spawn-pipe-child.c: Undefine fflush.
2605
2606 2011-06-17  Bruno Haible  <bruno@clisp.org>
2607
2608         Fix tests link errors.
2609         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2610         * modules/chown-tests (Makefile.am): Don't link test-chown with
2611         LIBINTL.
2612         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2613         LIBINTL.
2614         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2615         LIBINTL.
2616         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2617         LIBINTL.
2618
2619 2011-06-16  Bruno Haible  <bruno@clisp.org>
2620
2621         crypto/gc-sha1: Fix recent regression.
2622         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2623         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2624
2625         crypto/gc-md5: Fix recent regression.
2626         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2627
2628         crypto/gc-md4: Fix recent regression.
2629         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2630         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2631
2632         crypto/gc-arctwo: Fix recent regression.
2633         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2634         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2635
2636         crypto/gc-rijndael: Fix recent regression.
2637         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2638         (configure.ac): Invoke AC_LIBOBJ here.
2639         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2640         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2641
2642         crypto/gc-hmac-sha1: Fix recent regression.
2643         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2644         (configure.ac): Invoke AC_LIBOBJ here.
2645         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2647
2648         crypto/gc-hmac-md5: Fix recent regression.
2649         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2650         (configure.ac): Invoke AC_LIBOBJ here.
2651         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2652         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2653
2654         crypto/gc-des: Fix recent regression.
2655         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2656         (configure.ac): Invoke AC_LIBOBJ here.
2657         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2658         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2659
2660         crypto/gc-arcfour: Fix recent regression.
2661         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2662         (configure.ac): Invoke AC_LIBOBJ here.
2663         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2664         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2665
2666 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2667
2668         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2669         After the 2011-05-21 change, this macro requires
2670         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2671         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2672
2673 2011-06-16  Bruno Haible  <bruno@clisp.org>
2674
2675         fprintftime: Move AC_LIBOBJ invocations to module description.
2676         * m4/fprintftime.m4: Remove file.
2677         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2678         (configure.ac): Remove gl_FPRINTFTIME call.
2679         (Makefile.am): Augment lib_SOURCES.
2680         Reported by Jim Meyering.
2681
2682 2011-06-16  Bruno Haible  <bruno@clisp.org>
2683
2684         tmpfile-safer: Finish 2011-05-23 commit.
2685         * m4/stdio-safer.m4: Really remove file.
2686         Reported by Jim Meyering.
2687
2688 2011-06-16  Bruno Haible  <bruno@clisp.org>
2689
2690         syntax-check: Fix typo.
2691         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2692         printf-posix.m4.
2693         Reported by Jim Meyering.
2694
2695 2011-06-13  Jim Meyering  <meyering@redhat.com>
2696
2697         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2698         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2699
2700 2011-05-23  Bruno Haible  <bruno@clisp.org>
2701
2702         yesno: Move AC_LIBOBJ invocations to module description.
2703         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2704         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2705
2706 2011-05-23  Bruno Haible  <bruno@clisp.org>
2707
2708         xstrtol: Move AC_LIBOBJ invocations to module description.
2709         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2710         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2711
2712 2011-05-23  Bruno Haible  <bruno@clisp.org>
2713
2714         xstrtold: Move AC_LIBOBJ invocations to module description.
2715         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2716         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2717
2718 2011-05-23  Bruno Haible  <bruno@clisp.org>
2719
2720         xstrtod: Move AC_LIBOBJ invocations to module description.
2721         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2722         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2723
2724 2011-05-23  Bruno Haible  <bruno@clisp.org>
2725
2726         xnanosleep: Move AC_LIBOBJ invocations to module description.
2727         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2728         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2729
2730 2011-05-23  Bruno Haible  <bruno@clisp.org>
2731
2732         xgetcwd: Move AC_LIBOBJ invocations to module description.
2733         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2734         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2735
2736 2011-05-23  Bruno Haible  <bruno@clisp.org>
2737
2738         xalloc: Move AC_LIBOBJ invocations to module description.
2739         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2740         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2741
2742 2011-05-23  Bruno Haible  <bruno@clisp.org>
2743
2744         write-any-file: Move AC_LIBOBJ invocations to module description.
2745         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2746         invocation.
2747         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2748
2749 2011-05-23  Bruno Haible  <bruno@clisp.org>
2750
2751         utimens: Move AC_LIBOBJ invocations to module description.
2752         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2753         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2754
2755 2011-05-23  Bruno Haible  <bruno@clisp.org>
2756
2757         utimecmp: Move AC_LIBOBJ invocations to module description.
2758         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2759         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2760
2761 2011-05-23  Bruno Haible  <bruno@clisp.org>
2762
2763         userspec: Move AC_LIBOBJ invocations to module description.
2764         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2765         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2766
2767 2011-05-23  Bruno Haible  <bruno@clisp.org>
2768
2769         unlinkdir: Move AC_LIBOBJ invocations to module description.
2770         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2771         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2772
2773 2011-05-23  Bruno Haible  <bruno@clisp.org>
2774
2775         unistd-safer: Move AC_LIBOBJ invocations to module description.
2776         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2777         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2778
2779 2011-05-23  Bruno Haible  <bruno@clisp.org>
2780
2781         tempname: Move AC_LIBOBJ invocations to module description.
2782         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2783         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2784
2785 2011-05-23  Bruno Haible  <bruno@clisp.org>
2786
2787         strftime: Move AC_LIBOBJ invocations to module description.
2788         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2789         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2790
2791 2011-05-23  Bruno Haible  <bruno@clisp.org>
2792
2793         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2794         * m4/stdlib-safer.m4: Remove file.
2795         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2796         (configure.ac): Remove gl_STDLIB_SAFER call.
2797         (Makefile.am): Augment lib_SOURCES.
2798
2799 2011-05-23  Bruno Haible  <bruno@clisp.org>
2800
2801         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2802         * m4/stdio-safer.m4: Remove file.
2803         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2804         (configure.ac): Remove gl_TMPFILE_SAFER call.
2805         (Makefile.am): Augment lib_SOURCES.
2806
2807 2011-05-23  Bruno Haible  <bruno@clisp.org>
2808
2809         popen-safer: Move AC_LIBOBJ invocations to module description.
2810         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2811         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2812         (configure.ac): Remove gl_POPEN_SAFER call.
2813         (Makefile.am): Augment lib_SOURCES.
2814
2815 2011-05-23  Bruno Haible  <bruno@clisp.org>
2816
2817         freopen-safer: Move AC_LIBOBJ invocations to module description.
2818         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2819         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2820         (configure.ac): Remove gl_FREOPEN_SAFER call.
2821         (Makefile.am): Augment lib_SOURCES.
2822
2823 2011-05-23  Bruno Haible  <bruno@clisp.org>
2824
2825         fopen-safer: Move AC_LIBOBJ invocations to module description.
2826         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2827         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2828         (configure.ac): Remove gl_FOPEN_SAFER call.
2829         (Makefile.am): Augment lib_SOURCES.
2830
2831 2011-05-23  Bruno Haible  <bruno@clisp.org>
2832
2833         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2834         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2835         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2836
2837 2011-05-23  Bruno Haible  <bruno@clisp.org>
2838
2839         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2840         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2841         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2842
2843 2011-05-23  Bruno Haible  <bruno@clisp.org>
2844
2845         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2846         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2847         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2848
2849 2011-05-23  Bruno Haible  <bruno@clisp.org>
2850
2851         settime: Move AC_LIBOBJ invocations to module description.
2852         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2853         * modules/settime (Makefile.am): Augment lib_SOURCES.
2854
2855 2011-05-23  Bruno Haible  <bruno@clisp.org>
2856
2857         savedir: Move AC_LIBOBJ invocations to module description.
2858         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2859         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2860
2861 2011-05-23  Bruno Haible  <bruno@clisp.org>
2862
2863         save-cwd: Move AC_LIBOBJ invocations to module description.
2864         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2865         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2866
2867 2011-05-23  Bruno Haible  <bruno@clisp.org>
2868
2869         same: Move AC_LIBOBJ invocations to module description.
2870         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2871         * modules/same (Makefile.am): Augment lib_SOURCES.
2872
2873 2011-05-23  Bruno Haible  <bruno@clisp.org>
2874
2875         safe-write: Move AC_LIBOBJ invocations to module description.
2876         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2877         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2878         instead of gl_SAFE_WRITE.
2879         (Makefile.am): Augment lib_SOURCES.
2880
2881 2011-05-23  Bruno Haible  <bruno@clisp.org>
2882
2883         safe-read: Move AC_LIBOBJ invocations to module description.
2884         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2885         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2886         of gl_SAFE_READ.
2887         (Makefile.am): Augment lib_SOURCES.
2888
2889 2011-05-23  Bruno Haible  <bruno@clisp.org>
2890
2891         safe-alloc: Move AC_LIBOBJ invocations to module description.
2892         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2893         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2894
2895 2011-05-23  Bruno Haible  <bruno@clisp.org>
2896
2897         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2898         * m4/rijndael.m4: Remove file.
2899         * modules/crypto/rijndael (Files): Remove it.
2900         (configure.ac): Remove gl_RIJNDAEL call.
2901         (Makefile.am): Augment lib_SOURCES.
2902
2903 2011-05-23  Bruno Haible  <bruno@clisp.org>
2904
2905         readtokens: Move AC_LIBOBJ invocations to module description.
2906         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2907         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2908
2909 2011-05-23  Bruno Haible  <bruno@clisp.org>
2910
2911         read-file: Move AC_LIBOBJ invocations to module description.
2912         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2913         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2914         of gl_FUNC_READ_FILE.
2915         (Makefile.am): Augment lib_SOURCES.
2916
2917 2011-05-23  Bruno Haible  <bruno@clisp.org>
2918
2919         quotearg: Move AC_LIBOBJ invocations to module description.
2920         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2921         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2922
2923 2011-05-23  Bruno Haible  <bruno@clisp.org>
2924
2925         quote: Move AC_LIBOBJ invocations to module description.
2926         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2927         * modules/quote (Makefile.am): Augment lib_SOURCES.
2928
2929 2011-05-23  Bruno Haible  <bruno@clisp.org>
2930
2931         posixver: Move AC_LIBOBJ invocations to module description.
2932         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2933         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2934
2935 2011-05-23  Bruno Haible  <bruno@clisp.org>
2936
2937         posixtm: Move AC_LIBOBJ invocations to module description.
2938         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2939         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2940
2941 2011-05-23  Bruno Haible  <bruno@clisp.org>
2942
2943         physmem: Move AC_LIBOBJ invocations to module description.
2944         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2945         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2946
2947 2011-05-23  Bruno Haible  <bruno@clisp.org>
2948
2949         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
2950         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
2951         invocation.
2952         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
2953
2954 2011-05-23  Bruno Haible  <bruno@clisp.org>
2955
2956         mpsort: Move AC_LIBOBJ invocations to module description.
2957         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
2958         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
2959
2960 2011-05-23  Bruno Haible  <bruno@clisp.org>
2961
2962         modechange: Move AC_LIBOBJ invocations to module description.
2963         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
2964         * modules/modechange (Makefile.am): Augment lib_SOURCES.
2965
2966 2011-05-23  Bruno Haible  <bruno@clisp.org>
2967
2968         mkdir-p: Move AC_LIBOBJ invocations to module description.
2969         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
2970         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
2971
2972 2011-05-23  Bruno Haible  <bruno@clisp.org>
2973
2974         mkancesdirs: Move AC_LIBOBJ invocations to module description.
2975         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
2976         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
2977
2978 2011-05-23  Bruno Haible  <bruno@clisp.org>
2979
2980         mgetgroups: Move AC_LIBOBJ invocations to module description.
2981         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
2982         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
2983
2984 2011-05-23  Bruno Haible  <bruno@clisp.org>
2985
2986         memxor: Move AC_LIBOBJ invocations to module description.
2987         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
2988         * modules/memxor (Makefile.am): Augment lib_SOURCES.
2989
2990 2011-05-23  Bruno Haible  <bruno@clisp.org>
2991
2992         memcoll: Move AC_LIBOBJ invocations to module description.
2993         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
2994         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
2995
2996 2011-05-23  Bruno Haible  <bruno@clisp.org>
2997
2998         memcasecmp: Move AC_LIBOBJ invocations to module description.
2999         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3000         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3001
3002 2011-05-23  Bruno Haible  <bruno@clisp.org>
3003
3004         crypto/md5: Move AC_LIBOBJ invocations to module description.
3005         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3006         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3007
3008 2011-05-23  Bruno Haible  <bruno@clisp.org>
3009
3010         crypto/md4: Move AC_LIBOBJ invocations to module description.
3011         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3012         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3013
3014 2011-05-23  Bruno Haible  <bruno@clisp.org>
3015
3016         crypto/md2: Move AC_LIBOBJ invocations to module description.
3017         * m4/md2.m4: Remove file.
3018         * modules/crypto/md2 (Files): Remove it.
3019         (configure.ac): Remove gl_MD2 call.
3020         (Makefile.am): Augment lib_SOURCES.
3021
3022 2011-05-23  Bruno Haible  <bruno@clisp.org>
3023
3024         long-options: Move AC_LIBOBJ invocations to module description.
3025         * m4/long-options.m4: Remove file.
3026         * modules/long-options (Files): Remove it.
3027         (configure.ac): Remove gl_LONG_OPTIONS call.
3028         (Makefile.am): Augment lib_SOURCES.
3029
3030 2011-05-23  Bruno Haible  <bruno@clisp.org>
3031
3032         i-ring: Move AC_LIBOBJ invocations to module description.
3033         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3034         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3035
3036 2011-05-23  Bruno Haible  <bruno@clisp.org>
3037
3038         idcache: Move AC_LIBOBJ invocations to module description.
3039         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3040         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3041
3042 2011-05-23  Bruno Haible  <bruno@clisp.org>
3043
3044         human: Move AC_LIBOBJ invocations to module description.
3045         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3046         * modules/human (Makefile.am): Augment lib_SOURCES.
3047
3048 2011-05-23  Bruno Haible  <bruno@clisp.org>
3049
3050         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3051         * m4/hmac-sha1.m4: Remove file.
3052         * modules/crypto/hmac-sha1 (Files): Remove it.
3053         (configure.ac): Remove gl_HMAC_SHA1 call.
3054         (Makefile.am): Augment lib_SOURCES.
3055
3056 2011-05-23  Bruno Haible  <bruno@clisp.org>
3057
3058         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3059         * m4/hmac-md5.m4: Remove file.
3060         * modules/crypto/hmac-md5 (Files): Remove it.
3061         (configure.ac): Remove gl_HMAC_MD5 call.
3062         (Makefile.am): Augment lib_SOURCES.
3063
3064 2011-05-23  Bruno Haible  <bruno@clisp.org>
3065
3066         hash: Move AC_LIBOBJ invocations to module description.
3067         * m4/hash.m4: Remove file.
3068         * modules/hash (Files): Remove it.
3069         (configure.ac): Remove gl_HASH call.
3070         (Makefile.am): Augment lib_SOURCES.
3071
3072 2011-05-23  Bruno Haible  <bruno@clisp.org>
3073
3074         hard-locale: Move AC_LIBOBJ invocations to module description.
3075         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3076         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3077
3078 2011-05-23  Bruno Haible  <bruno@clisp.org>
3079
3080         getugroups: Move AC_LIBOBJ invocations to module description.
3081         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3082         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3083
3084 2011-05-23  Bruno Haible  <bruno@clisp.org>
3085
3086         gettime: Move AC_LIBOBJ invocations to module description.
3087         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3088         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3089
3090 2011-05-23  Bruno Haible  <bruno@clisp.org>
3091
3092         getndelim2: Move AC_LIBOBJ invocations to module description.
3093         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3094         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3095
3096 2011-05-23  Bruno Haible  <bruno@clisp.org>
3097
3098         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3099         * m4/gc-pbkdf2-sha1.m4: Remove file.
3100         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3101         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3102         (Makefile.am): Augment lib_SOURCES.
3103
3104 2011-05-23  Bruno Haible  <bruno@clisp.org>
3105
3106         fts: Move AC_LIBOBJ invocations to module description.
3107         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3108         * modules/fts (configure.ac): ... to here.
3109
3110 2011-05-23  Bruno Haible  <bruno@clisp.org>
3111
3112         file-type: Move AC_LIBOBJ invocations to module description.
3113         * m4/file-type.m4: Remove file.
3114         * modules/file-type (Files): Remove it.
3115         (configure.ac): Remove gl_FILE_TYPE call.
3116         (Makefile.am): Augment lib_SOURCES.
3117
3118 2011-05-23  Bruno Haible  <bruno@clisp.org>
3119
3120         filenamecat*: Respect rules for use of AC_LIBOBJ.
3121         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3122         Remove AC_LIBOBJ invocation.
3123         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3124         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3125
3126 2011-05-23  Bruno Haible  <bruno@clisp.org>
3127
3128         filemode: Move AC_LIBOBJ invocations to module description.
3129         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3130         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3131
3132 2011-05-23  Bruno Haible  <bruno@clisp.org>
3133
3134         openat-safer: Move AC_LIBOBJ invocations to module description.
3135         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3136         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3137
3138 2011-05-23  Bruno Haible  <bruno@clisp.org>
3139
3140         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3141         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3142         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3143
3144 2011-05-23  Bruno Haible  <bruno@clisp.org>
3145
3146         exclude: Move AC_LIBOBJ invocations to module description.
3147         * m4/exclude.m4: Remove file.
3148         * modules/exclude (Files): Remove it.
3149         (configure.ac): Remove gl_EXCLUDE call.
3150         (Makefile.am): Augment lib_SOURCES.
3151
3152 2011-05-23  Bruno Haible  <bruno@clisp.org>
3153
3154         dirname*: Respect rules for use of AC_LIBOBJ.
3155         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3156         invocations.
3157         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3158         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3159
3160 2011-05-23  Bruno Haible  <bruno@clisp.org>
3161
3162         dirent-safer: Move AC_LIBOBJ invocations to module description.
3163         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3164         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3165
3166 2011-05-23  Bruno Haible  <bruno@clisp.org>
3167
3168         crypto/des: Move AC_LIBOBJ invocations to module description.
3169         * m4/des.m4: Remove file.
3170         * modules/crypto/des (Files): Remove it.
3171         (configure.ac): Remove gl_DES call.
3172         (Makefile.am): Augment lib_SOURCES.
3173
3174 2011-05-23  Bruno Haible  <bruno@clisp.org>
3175
3176         cycle-check: Move AC_LIBOBJ invocations to module description.
3177         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3178         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3179
3180 2011-05-23  Bruno Haible  <bruno@clisp.org>
3181
3182         c-strtold: Move AC_LIBOBJ invocations to module description.
3183         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3184         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3185
3186 2011-05-23  Bruno Haible  <bruno@clisp.org>
3187
3188         c-strtod: Move AC_LIBOBJ invocations to module description.
3189         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3190         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3191
3192 2011-05-23  Bruno Haible  <bruno@clisp.org>
3193
3194         crc: Move AC_LIBOBJ invocations to module description.
3195         * m4/crc.m4: Remove file.
3196         * modules/crc (Files): Remove it.
3197         (configure.ac): Remove gl_CRC call.
3198         (Makefile.am): Augment lib_SOURCES.
3199
3200 2011-05-23  Bruno Haible  <bruno@clisp.org>
3201
3202         close-stream: Move AC_LIBOBJ invocations to module description.
3203         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3204         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3205
3206 2011-05-23  Bruno Haible  <bruno@clisp.org>
3207
3208         closeout: Move AC_LIBOBJ invocations to module description.
3209         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3210         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3211
3212 2011-05-23  Bruno Haible  <bruno@clisp.org>
3213
3214         closein: Move AC_LIBOBJ invocations to module description.
3215         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3216         * modules/closein (Makefile.am): Augment lib_SOURCES.
3217
3218 2011-05-23  Bruno Haible  <bruno@clisp.org>
3219
3220         cloexec: Move AC_LIBOBJ invocations to module description.
3221         * m4/cloexec.m4: Remove file.
3222         * modules/cloexec (Files): Remove it.
3223         (configure.ac): Remove gl_CLOEXEC call.
3224         (Makefile.am): Augment lib_SOURCES.
3225
3226 2011-05-23  Bruno Haible  <bruno@clisp.org>
3227
3228         check-version: Move AC_LIBOBJ invocations to module description.
3229         * m4/check-version.m4: Remove file.
3230         * modules/check-version (Files): Remove it.
3231         (configure.ac): Remove gl_CHECK_VERSION call.
3232         (Makefile.am): Augment lib_SOURCES.
3233
3234 2011-05-23  Bruno Haible  <bruno@clisp.org>
3235
3236         chdir-safer: Move AC_LIBOBJ invocations to module description.
3237         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3238         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3239
3240 2011-05-23  Bruno Haible  <bruno@clisp.org>
3241
3242         canonicalize: Move AC_LIBOBJ invocations to module description.
3243         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3244         AC_LIBOBJ invocation.
3245         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3246
3247 2011-05-23  Bruno Haible  <bruno@clisp.org>
3248
3249         canon-host: Move AC_LIBOBJ invocations to module description.
3250         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3251         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3252         instead of gl_CANON_HOST.
3253         (Makefile.am): Augment lib_SOURCES.
3254
3255 2011-05-23  Bruno Haible  <bruno@clisp.org>
3256
3257         backupfile: Move AC_LIBOBJ invocations to module description.
3258         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3259         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3260
3261 2011-05-23  Bruno Haible  <bruno@clisp.org>
3262
3263         argmatch: Move AC_LIBOBJ invocations to module description.
3264         * m4/argmatch.m4: Remove file.
3265         * modules/argmatch (Files): Remove it.
3266         (configure.ac): Remove gl_ARGMATCH call.
3267         (Makefile.am): Augment lib_SOURCES.
3268
3269 2011-05-23  Bruno Haible  <bruno@clisp.org>
3270
3271         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3272         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3273         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3274
3275 2011-05-23  Bruno Haible  <bruno@clisp.org>
3276
3277         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3278         * m4/arcfour.m4: Remove file.
3279         * modules/crypto/arcfour (Files): Remove it.
3280         (configure.ac): Remove gl_ARCFOUR call.
3281         (Makefile.am): Augment lib_SOURCES.
3282
3283 2011-05-22  Bruno Haible  <bruno@clisp.org>
3284
3285         write: Move AC_LIBOBJ invocations to module description.
3286         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3287         * modules/write (configure.ac): ... to here.
3288
3289 2011-05-22  Bruno Haible  <bruno@clisp.org>
3290
3291         wmemset: Move AC_LIBOBJ invocations to module description.
3292         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3293         here...
3294         * modules/wmemset (configure.ac): ... to here.
3295
3296 2011-05-22  Bruno Haible  <bruno@clisp.org>
3297
3298         wmemmove: Move AC_LIBOBJ invocations to module description.
3299         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3300         here...
3301         * modules/wmemmove (configure.ac): ... to here.
3302
3303 2011-05-22  Bruno Haible  <bruno@clisp.org>
3304
3305         wmemcpy: Move AC_LIBOBJ invocations to module description.
3306         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3307         here...
3308         * modules/wmemcpy (configure.ac): ... to here.
3309
3310 2011-05-22  Bruno Haible  <bruno@clisp.org>
3311
3312         wmemcmp: Move AC_LIBOBJ invocations to module description.
3313         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3314         here...
3315         * modules/wmemcmp (configure.ac): ... to here.
3316
3317 2011-05-22  Bruno Haible  <bruno@clisp.org>
3318
3319         wmemchr: Move AC_LIBOBJ invocations to module description.
3320         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3321         here...
3322         * modules/wmemchr (configure.ac): ... to here.
3323
3324 2011-05-22  Bruno Haible  <bruno@clisp.org>
3325
3326         wcswidth: Move AC_LIBOBJ invocations to module description.
3327         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3328         here...
3329         * modules/wcswidth (configure.ac): ... to here.
3330
3331 2011-05-22  Bruno Haible  <bruno@clisp.org>
3332
3333         wcwidth: Respect rules for use of AC_LIBOBJ.
3334         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3335         invocation from here...
3336         * modules/wcwidth (configure.ac): ... to here.
3337         (Depends-on): Update conditions.
3338
3339 2011-05-22  Bruno Haible  <bruno@clisp.org>
3340
3341         wctype: Move AC_LIBOBJ invocations to module description.
3342         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3343         invocation from here...
3344         * modules/wctype (configure.ac): ... to here.
3345         (Depends-on): Update conditions.
3346
3347 2011-05-22  Bruno Haible  <bruno@clisp.org>
3348
3349         wctrans: Move AC_LIBOBJ invocations to module description.
3350         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3351         invocation from here...
3352         * modules/wctrans (configure.ac): ... to here.
3353
3354 2011-05-22  Bruno Haible  <bruno@clisp.org>
3355
3356         wctomb: Move AC_LIBOBJ invocations to module description.
3357         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3358         invocations from here...
3359         * modules/wctomb (configure.ac): ... to here.
3360
3361 2011-05-22  Bruno Haible  <bruno@clisp.org>
3362
3363         wctob: Move AC_LIBOBJ invocations to module description.
3364         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3365         gl_PREREQ_WCTOB invocations from here...
3366         * modules/wctob (configure.ac): ... to here.
3367         (Depends-on): Update conditions.
3368
3369 2011-05-22  Bruno Haible  <bruno@clisp.org>
3370
3371         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3372         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3373         here...
3374         * modules/wcsxfrm (configure.ac): ... to here.
3375
3376 2011-05-22  Bruno Haible  <bruno@clisp.org>
3377
3378         wcstok: Move AC_LIBOBJ invocations to module description.
3379         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3380         * modules/wcstok (configure.ac): ... to here.
3381
3382 2011-05-22  Bruno Haible  <bruno@clisp.org>
3383
3384         wcsstr: Move AC_LIBOBJ invocations to module description.
3385         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3386         * modules/wcsstr (configure.ac): ... to here.
3387
3388 2011-05-22  Bruno Haible  <bruno@clisp.org>
3389
3390         wcsspn: Move AC_LIBOBJ invocations to module description.
3391         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3392         * modules/wcsspn (configure.ac): ... to here.
3393
3394 2011-05-22  Bruno Haible  <bruno@clisp.org>
3395
3396         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3397         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3398         gl_PREREQ_WCSRTOMBS invocations from here...
3399         * modules/wcsrtombs (configure.ac): ... to here.
3400
3401 2011-05-22  Bruno Haible  <bruno@clisp.org>
3402
3403         wcsrchr: Move AC_LIBOBJ invocations to module description.
3404         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3405         here...
3406         * modules/wcsrchr (configure.ac): ... to here.
3407
3408 2011-05-22  Bruno Haible  <bruno@clisp.org>
3409
3410         wcspbrk: Move AC_LIBOBJ invocations to module description.
3411         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3412         here...
3413         * modules/wcspbrk (configure.ac): ... to here.
3414
3415 2011-05-22  Bruno Haible  <bruno@clisp.org>
3416
3417         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3418         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3419         gl_PREREQ_WCSNRTOMBS invocations from here...
3420         * modules/wcsnrtombs (configure.ac): ... to here.
3421
3422 2011-05-22  Bruno Haible  <bruno@clisp.org>
3423
3424         wcsnlen: Move AC_LIBOBJ invocations to module description.
3425         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3426         here...
3427         * modules/wcsnlen (configure.ac): ... to here.
3428
3429 2011-05-22  Bruno Haible  <bruno@clisp.org>
3430
3431         wcsncpy: Move AC_LIBOBJ invocations to module description.
3432         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3433         here...
3434         * modules/wcsncpy (configure.ac): ... to here.
3435
3436 2011-05-22  Bruno Haible  <bruno@clisp.org>
3437
3438         wcsncmp: Move AC_LIBOBJ invocations to module description.
3439         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3440         here...
3441         * modules/wcsncmp (configure.ac): ... to here.
3442
3443 2011-05-22  Bruno Haible  <bruno@clisp.org>
3444
3445         wcsncat: Move AC_LIBOBJ invocations to module description.
3446         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3447         here...
3448         * modules/wcsncat (configure.ac): ... to here.
3449
3450 2011-05-22  Bruno Haible  <bruno@clisp.org>
3451
3452         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3453         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3454         from here...
3455         * modules/wcsncasecmp (configure.ac): ... to here.
3456
3457 2011-05-22  Bruno Haible  <bruno@clisp.org>
3458
3459         wcslen: Move AC_LIBOBJ invocations to module description.
3460         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3461         * modules/wcslen (configure.ac): ... to here.
3462
3463 2011-05-22  Bruno Haible  <bruno@clisp.org>
3464
3465         wcsdup: Move AC_LIBOBJ invocations to module description.
3466         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3467         * modules/wcsdup (configure.ac): ... to here.
3468
3469 2011-05-22  Bruno Haible  <bruno@clisp.org>
3470
3471         wcscspn: Move AC_LIBOBJ invocations to module description.
3472         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3473         here...
3474         * modules/wcscspn (configure.ac): ... to here.
3475
3476 2011-05-22  Bruno Haible  <bruno@clisp.org>
3477
3478         wcscpy: Move AC_LIBOBJ invocations to module description.
3479         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3480         * modules/wcscpy (configure.ac): ... to here.
3481
3482 2011-05-22  Bruno Haible  <bruno@clisp.org>
3483
3484         wcscoll: Move AC_LIBOBJ invocations to module description.
3485         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3486         here...
3487         * modules/wcscoll (configure.ac): ... to here.
3488
3489 2011-05-22  Bruno Haible  <bruno@clisp.org>
3490
3491         wcscmp: Move AC_LIBOBJ invocations to module description.
3492         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3493         * modules/wcscmp (configure.ac): ... to here.
3494
3495 2011-05-22  Bruno Haible  <bruno@clisp.org>
3496
3497         wcschr: Move AC_LIBOBJ invocations to module description.
3498         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3499         * modules/wcschr (configure.ac): ... to here.
3500
3501 2011-05-22  Bruno Haible  <bruno@clisp.org>
3502
3503         wcscat: Move AC_LIBOBJ invocations to module description.
3504         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3505         * modules/wcscat (configure.ac): ... to here.
3506
3507 2011-05-22  Bruno Haible  <bruno@clisp.org>
3508
3509         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3510         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3511         here...
3512         * modules/wcscasecmp (configure.ac): ... to here.
3513
3514 2011-05-22  Bruno Haible  <bruno@clisp.org>
3515
3516         wcrtomb: Move AC_LIBOBJ invocations to module description.
3517         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3518         invocations from here...
3519         * modules/wcrtomb (configure.ac): ... to here.
3520
3521 2011-05-22  Bruno Haible  <bruno@clisp.org>
3522
3523         wcpncpy: Move AC_LIBOBJ invocations to module description.
3524         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3525         here...
3526         * modules/wcpncpy (configure.ac): ... to here.
3527
3528 2011-05-22  Bruno Haible  <bruno@clisp.org>
3529
3530         wcpcpy: Move AC_LIBOBJ invocations to module description.
3531         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3532         * modules/wcpcpy (configure.ac): ... to here.
3533
3534 2011-05-22  Bruno Haible  <bruno@clisp.org>
3535
3536         waitpid: Move AC_LIBOBJ invocations to module description.
3537         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3538         invocation from here...
3539         * modules/waitpid (configure.ac): ... to here.
3540
3541 2011-05-22  Bruno Haible  <bruno@clisp.org>
3542
3543         utimensat: Move AC_LIBOBJ invocations to module description.
3544         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3545         here...
3546         * modules/utimensat (configure.ac): ... to here.
3547
3548 2011-05-22  Bruno Haible  <bruno@clisp.org>
3549
3550         usleep: Move AC_LIBOBJ invocations to module description.
3551         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3552         here...
3553         * modules/usleep (configure.ac): ... to here.
3554
3555 2011-05-22  Bruno Haible  <bruno@clisp.org>
3556
3557         unlockpt: Move AC_LIBOBJ invocations to module description.
3558         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3559         gl_PREREQ_UNLOCKPT invocations from here...
3560         * modules/unlockpt (configure.ac): ... to here.
3561
3562 2011-05-22  Bruno Haible  <bruno@clisp.org>
3563
3564         unlink: Respect rules for use of AC_LIBOBJ.
3565         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3566         * modules/unlink (configure.ac): ... to here.
3567
3568 2011-05-22  Bruno Haible  <bruno@clisp.org>
3569
3570         uname: Move AC_LIBOBJ invocations to module description.
3571         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3572         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3573         here...
3574         * modules/uname (configure.ac): ... to here.
3575
3576 2011-05-22  Bruno Haible  <bruno@clisp.org>
3577
3578         ttyname_r: Move AC_LIBOBJ invocations to module description.
3579         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3580         gl_PREREQ_TTYNAME_R invocations from here...
3581         * modules/ttyname_r (configure.ac): ... to here.
3582
3583 2011-05-22  Bruno Haible  <bruno@clisp.org>
3584
3585         tsearch: Move AC_LIBOBJ invocations to module description.
3586         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3587         invocations from here...
3588         * modules/tsearch (configure.ac): ... to here.
3589
3590 2011-05-22  Bruno Haible  <bruno@clisp.org>
3591
3592         towctrans: Move AC_LIBOBJ invocations to module description.
3593         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3594         AC_LIBOBJ invocation from here...
3595         * modules/towctrans (configure.ac): ... to here.
3596
3597 2011-05-22  Bruno Haible  <bruno@clisp.org>
3598
3599         tmpfile: Move AC_LIBOBJ invocations to module description.
3600         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3601         invocations from here...
3602         * modules/tmpfile (configure.ac): ... to here.
3603
3604 2011-05-22  Bruno Haible  <bruno@clisp.org>
3605
3606         times: Move AC_LIBOBJ invocations to module description.
3607         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3608         * modules/times (configure.ac): ... to here.
3609
3610 2011-05-22  Bruno Haible  <bruno@clisp.org>
3611
3612         time_r: Move AC_LIBOBJ invocations to module description.
3613         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3614         invocations from here...
3615         * modules/time_r (configure.ac): ... to here.
3616
3617 2011-05-22  Bruno Haible  <bruno@clisp.org>
3618
3619         timegm: Move AC_LIBOBJ invocations to module description.
3620         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3621         invocations from here...
3622         * modules/timegm (configure.ac): ... to here.
3623
3624 2011-05-22  Bruno Haible  <bruno@clisp.org>
3625
3626         tcgetsid: Move AC_LIBOBJ invocations to module description.
3627         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3628         and gl_PREREQ_TCGETSID invocations from here...
3629         * modules/tcgetsid (configure.ac): ... to here.
3630         (Depends-on): Update conditions.
3631
3632 2011-05-22  Bruno Haible  <bruno@clisp.org>
3633
3634         symlinkat: Move AC_LIBOBJ invocations to module description.
3635         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3636         here...
3637         * modules/symlinkat (configure.ac): ... to here.
3638
3639 2011-05-22  Bruno Haible  <bruno@clisp.org>
3640
3641         symlink: Move AC_LIBOBJ invocations to module description.
3642         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3643         here...
3644         * modules/symlink (configure.ac): ... to here.
3645
3646 2011-05-22  Bruno Haible  <bruno@clisp.org>
3647
3648         strverscmp: Move AC_LIBOBJ invocations to module description.
3649         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3650         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3651         from here...
3652         * modules/strverscmp (configure.ac): ... to here.
3653
3654 2011-05-22  Bruno Haible  <bruno@clisp.org>
3655
3656         strtok_r: Move AC_LIBOBJ invocations to module description.
3657         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3658         and gl_PREREQ_STRTOK_R invocations from here...
3659         * modules/strtok_r (configure.ac): ... to here.
3660         (Depends-on): Update conditions.
3661
3662 2011-05-22  Bruno Haible  <bruno@clisp.org>
3663
3664         strtoumax: Move AC_LIBOBJ invocations to module description.
3665         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3667         from here...
3668         * modules/strtoumax (configure.ac): ... to here.
3669
3670 2011-05-22  Bruno Haible  <bruno@clisp.org>
3671
3672         strtoimax: Move AC_LIBOBJ invocations to module description.
3673         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3674         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3675         from here...
3676         * modules/strtoimax (configure.ac): ... to here.
3677
3678 2011-05-22  Bruno Haible  <bruno@clisp.org>
3679
3680         strtoull: Move AC_LIBOBJ invocations to module description.
3681         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3682         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3683         from here...
3684         * modules/strtoull (configure.ac): ... to here.
3685
3686 2011-05-22  Bruno Haible  <bruno@clisp.org>
3687
3688         strtoll: Move AC_LIBOBJ invocations to module description.
3689         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3690         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3691         here...
3692         * modules/strtoll (configure.ac): ... to here.
3693
3694 2011-05-22  Bruno Haible  <bruno@clisp.org>
3695
3696         strtoul: Move AC_LIBOBJ invocations to module description.
3697         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3698         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3699         * modules/strtoul (configure.ac): ... to here.
3700
3701 2011-05-22  Bruno Haible  <bruno@clisp.org>
3702
3703         strtol: Move AC_LIBOBJ invocations to module description.
3704         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3705         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3706         * modules/strtol (configure.ac): ... to here.
3707
3708 2011-05-22  Bruno Haible  <bruno@clisp.org>
3709
3710         strtod: Move AC_LIBOBJ invocations to module description.
3711         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3712         invocations from here...
3713         * modules/strtod (configure.ac): ... to here.
3714
3715 2011-05-22  Bruno Haible  <bruno@clisp.org>
3716
3717         strstr*: Move AC_LIBOBJ invocations to module description.
3718         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3719         invocations from here...
3720         * modules/strstr-simple (configure.ac): ... to here.
3721         * modules/strstr (configure.ac): ... and here.
3722
3723 2011-05-22  Bruno Haible  <bruno@clisp.org>
3724
3725         strsignal: Move AC_LIBOBJ invocations to module description.
3726         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3727         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3728         * modules/strsignal (configure.ac): ... to here.
3729         (Depends-on): Update conditions.
3730
3731 2011-05-22  Bruno Haible  <bruno@clisp.org>
3732
3733         strsep: Move AC_LIBOBJ invocations to module description.
3734         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3735         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3736         here...
3737         * modules/strsep (configure.ac): ... to here.
3738
3739 2011-05-22  Bruno Haible  <bruno@clisp.org>
3740
3741         strptime: Move AC_LIBOBJ invocations to module description.
3742         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3743         gl_PREREQ_STRPTIME invocations from here...
3744         * modules/strptime (configure.ac): ... to here.
3745
3746 2011-05-22  Bruno Haible  <bruno@clisp.org>
3747
3748         strpbrk: Move AC_LIBOBJ invocations to module description.
3749         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3750         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3751         here...
3752         * modules/strpbrk (configure.ac): ... to here.
3753
3754 2011-05-22  Bruno Haible  <bruno@clisp.org>
3755
3756         strnlen: Move AC_LIBOBJ invocations to module description.
3757         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3758         invocations from here...
3759         * modules/strnlen (configure.ac): ... to here.
3760
3761 2011-05-22  Bruno Haible  <bruno@clisp.org>
3762
3763         strndup: Move AC_LIBOBJ invocations to module description.
3764         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3765         invocations from here...
3766         * modules/strndup (configure.ac): ... to here.
3767         (Depends-on): Update conditions.
3768
3769 2011-05-22  Bruno Haible  <bruno@clisp.org>
3770
3771         strncat: Move AC_LIBOBJ invocations to module description.
3772         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3773         invocations from here...
3774         * modules/strncat (configure.ac): ... to here.
3775
3776 2011-05-22  Bruno Haible  <bruno@clisp.org>
3777
3778         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3779         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3780         invocations from here...
3781         * modules/strdup (configure.ac): ... to here.
3782         * modules/strdup-posix (configure.ac): ... and here.
3783
3784 2011-05-22  Bruno Haible  <bruno@clisp.org>
3785
3786         strcspn: Move AC_LIBOBJ invocations to module description.
3787         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3789         here...
3790         * modules/strcspn (configure.ac): ... to here.
3791
3792 2011-05-22  Bruno Haible  <bruno@clisp.org>
3793
3794         strchrnul: Move AC_LIBOBJ invocations to module description.
3795         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3796         gl_PREREQ_STRCHRNUL invocations from here...
3797         * modules/strchrnul (configure.ac): ... to here.
3798
3799 2011-05-22  Bruno Haible  <bruno@clisp.org>
3800
3801         strcasestr*: Move AC_LIBOBJ invocations to module description.
3802         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3803         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3804         * modules/strcasestr-simple (configure.ac): ... to here.
3805         * modules/strcasestr (configure.ac): ... and here.
3806
3807 2011-05-22  Bruno Haible  <bruno@clisp.org>
3808
3809         strcase: Move AC_LIBOBJ invocations to module description.
3810         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3811         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3812         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3813         gl_PREREQ_STRNCASECMP invocations from here...
3814         * modules/strcase (configure.ac): ... to here.
3815
3816 2011-05-22  Bruno Haible  <bruno@clisp.org>
3817
3818         stpncpy: Move AC_LIBOBJ invocations to module description.
3819         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3820         here...
3821         * modules/stpncpy (configure.ac): ... to here.
3822
3823 2011-05-22  Bruno Haible  <bruno@clisp.org>
3824
3825         stpcpy: Move AC_LIBOBJ invocations to module description.
3826         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3827         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3828         here...
3829         * modules/stpcpy (configure.ac): ... to here.
3830
3831 2011-05-21  Bruno Haible  <bruno@clisp.org>
3832
3833         stat: Move AC_LIBOBJ invocations to module description.
3834         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3835         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3836         here...
3837         * modules/stat (configure.ac): ... to here.
3838
3839 2011-05-21  Bruno Haible  <bruno@clisp.org>
3840
3841         sleep: Move AC_LIBOBJ invocations to module description.
3842         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3843         * modules/sleep (configure.ac): ... to here.
3844
3845 2011-05-21  Bruno Haible  <bruno@clisp.org>
3846
3847         signbit: Move AC_LIBOBJ invocations to module description.
3848         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3849         * modules/signbit (configure.ac): ... to here.
3850
3851 2011-05-21  Bruno Haible  <bruno@clisp.org>
3852
3853         sigprocmask: Move AC_LIBOBJ invocations to module description.
3854         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3855         gl_PREREQ_SIGPROMASK invocations from here...
3856         * modules/sigprocmask (configure.ac): ... to here.
3857
3858 2011-05-21  Bruno Haible  <bruno@clisp.org>
3859
3860         sigaction: Move AC_LIBOBJ invocations to module description.
3861         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3862         gl_PREREQ_SIGACTION invocations from here...
3863         * modules/sigaction (configure.ac): ... to here.
3864
3865 2011-05-21  Bruno Haible  <bruno@clisp.org>
3866
3867         sig2str: Move AC_LIBOBJ invocations to module description.
3868         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3869         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3870         here...
3871         * modules/sig2str (configure.ac): ... to here.
3872
3873 2011-05-21  Bruno Haible  <bruno@clisp.org>
3874
3875         setlocale: Move AC_LIBOBJ invocations to module description.
3876         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3877         gl_PREREQ_SETLOCALE invocations from here...
3878         * modules/setlocale (configure.ac): ... to here.
3879
3880 2011-05-21  Bruno Haible  <bruno@clisp.org>
3881
3882         unsetenv: Move AC_LIBOBJ invocations to module description.
3883         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3884         and gl_PREREQ_UNSETENV invocations from here...
3885         * modules/unsetenv (configure.ac): ... to here.
3886         (Depends-on): Update.
3887
3888 2011-05-21  Bruno Haible  <bruno@clisp.org>
3889
3890         setenv: Move AC_LIBOBJ invocations to module description.
3891         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3892         here...
3893         * modules/setenv (configure.ac): ... to here.
3894
3895 2011-05-21  Bruno Haible  <bruno@clisp.org>
3896
3897         selinux-h: Move AC_LIBOBJ invocations to module description.
3898         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3899         AC_LIBOBJ invocation from here...
3900         * modules/selinux-h (configure.ac): ... to here.
3901
3902 2011-05-21  Bruno Haible  <bruno@clisp.org>
3903
3904         select: Respect rules for use of AC_LIBOBJ.
3905         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3906         here...
3907         * modules/select (configure.ac): ... to here.
3908
3909 2011-05-21  Bruno Haible  <bruno@clisp.org>
3910
3911         scandir: Move AC_LIBOBJ invocations to module description.
3912         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3913         invocations from here...
3914         * modules/scandir (configure.ac): ... to here.
3915
3916 2011-05-21  Bruno Haible  <bruno@clisp.org>
3917
3918         rpmatch: Move AC_LIBOBJ invocations to module description.
3919         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3920         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3921         here...
3922         * modules/rpmatch (configure.ac): ... to here.
3923
3924 2011-05-21  Bruno Haible  <bruno@clisp.org>
3925
3926         rmdir: Respect rules for use of AC_LIBOBJ.
3927         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3928         * modules/rmdir (configure.ac): ... to here.
3929
3930 2011-05-21  Bruno Haible  <bruno@clisp.org>
3931
3932         renameat: Move AC_LIBOBJ invocations to module description.
3933         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3934         here...
3935         * modules/renameat (configure.ac): ... to here.
3936
3937 2011-05-21  Bruno Haible  <bruno@clisp.org>
3938
3939         rename: Respect rules for use of AC_LIBOBJ.
3940         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3941         here...
3942         * modules/rename (configure.ac): ... to here.
3943
3944 2011-05-21  Bruno Haible  <bruno@clisp.org>
3945
3946         remove: Move AC_LIBOBJ invocations to module description.
3947         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
3948         here...
3949         * modules/remove (configure.ac): ... to here.
3950
3951 2011-05-21  Bruno Haible  <bruno@clisp.org>
3952
3953         relocatable-lib: Move AC_LIBOBJ invocations to module description.
3954         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
3955         macro.
3956         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
3957         * modules/relocatable-lib (configure.ac): ... to here.
3958         * modules/relocatable-prog-wrapper (configure.ac): Invoke
3959         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
3960
3961 2011-05-21  Bruno Haible  <bruno@clisp.org>
3962
3963         relocatable-prog: Move AC_LIBOBJ invocations to module description.
3964         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
3965         here...
3966         * modules/relocatable-prog (configure.ac): ... to here.
3967
3968 2011-05-21  Bruno Haible  <bruno@clisp.org>
3969
3970         regex: Move AC_LIBOBJ invocations to module description.
3971         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
3972         invocations from here...
3973         * modules/regex (configure.ac): ... to here.
3974
3975 2011-05-21  Bruno Haible  <bruno@clisp.org>
3976
3977         realloc-*: Move AC_LIBOBJ invocations to module description.
3978         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
3979         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
3980         AC_LIBOBJ invocations from here...
3981         * modules/realloc-gnu (configure.ac): ... to here.
3982         * modules/realloc-posix (configure.ac): ... and here.
3983
3984 2011-05-21  Bruno Haible  <bruno@clisp.org>
3985
3986         readutmp: Move AC_LIBOBJ invocations to module description.
3987         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
3988         * modules/readutmp (configure.ac): ... to here.
3989
3990 2011-05-21  Bruno Haible  <bruno@clisp.org>
3991
3992         readlinkat: Move AC_LIBOBJ invocations to module description.
3993         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
3994         here...
3995         * modules/readlinkat (configure.ac): ... to here.
3996
3997 2011-05-21  Bruno Haible  <bruno@clisp.org>
3998
3999         readlink: Move AC_LIBOBJ invocations to module description.
4000         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4001         gl_PREREQ_READLINK invocations from here...
4002         * modules/readlink (configure.ac): ... to here.
4003
4004 2011-05-21  Bruno Haible  <bruno@clisp.org>
4005
4006         readline: Move AC_LIBOBJ invocations to module description.
4007         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4008         gl_PREREQ_READLINE invocations from here...
4009         * modules/readline (configure.ac): ... to here.
4010
4011 2011-05-21  Bruno Haible  <bruno@clisp.org>
4012
4013         read: Move AC_LIBOBJ invocations to module description.
4014         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4015         * modules/read (configure.ac): ... to here.
4016
4017 2011-05-21  Bruno Haible  <bruno@clisp.org>
4018
4019         rawmemchr: Move AC_LIBOBJ invocations to module description.
4020         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4022         from here...
4023         * modules/rawmemchr (configure.ac): ... to here.
4024
4025 2011-05-21  Bruno Haible  <bruno@clisp.org>
4026
4027         random_r: Move AC_LIBOBJ invocations to module description.
4028         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4029         gl_PREREQ_RANDOM_R invocations from here...
4030         * modules/random_r (configure.ac): ... to here.
4031
4032 2011-05-21  Bruno Haible  <bruno@clisp.org>
4033
4034         pwrite: Move AC_LIBOBJ invocations to module description.
4035         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4036         * modules/pwrite (configure.ac): ... to here.
4037
4038 2011-05-21  Bruno Haible  <bruno@clisp.org>
4039
4040         putenv: Move AC_LIBOBJ invocations to module description.
4041         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4042         * modules/putenv (configure.ac): ... to here.
4043
4044 2011-05-21  Bruno Haible  <bruno@clisp.org>
4045
4046         login_tty: Move AC_LIBOBJ invocations to module description.
4047         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4048         * modules/login_tty (configure.ac): ... to here.
4049
4050 2011-05-21  Bruno Haible  <bruno@clisp.org>
4051
4052         openpty: Move AC_LIBOBJ invocations to module description.
4053         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4054         * modules/openpty (configure.ac): ... to here.
4055
4056 2011-05-21  Bruno Haible  <bruno@clisp.org>
4057
4058         forkpty: Move AC_LIBOBJ invocations to module description.
4059         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4060         * modules/forkpty (configure.ac): ... to here.
4061
4062 2011-05-21  Bruno Haible  <bruno@clisp.org>
4063
4064         ptsname: Move AC_LIBOBJ invocations to module description.
4065         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4066         invocations from here...
4067         * modules/ptsname (configure.ac): ... to here.
4068
4069 2011-05-21  Bruno Haible  <bruno@clisp.org>
4070
4071         pread: Move AC_LIBOBJ invocations to module description.
4072         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4073         * modules/pread (configure.ac): ... to here.
4074
4075 2011-05-21  Bruno Haible  <bruno@clisp.org>
4076
4077         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4078         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4079         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4080         * modules/posix_spawn (configure.ac): ... to here.
4081         * modules/posix_spawnp (configure.ac): ... and here.
4082
4083 2011-05-21  Bruno Haible  <bruno@clisp.org>
4084
4085         popen: Move AC_LIBOBJ invocations to module description.
4086         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4087         invocations from here...
4088         * modules/popen (configure.ac): ... to here.
4089
4090 2011-05-21  Bruno Haible  <bruno@clisp.org>
4091
4092         poll: Move AC_LIBOBJ invocations to module description.
4093         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4094         invocations from here...
4095         * modules/poll (configure.ac): ... to here.
4096
4097 2011-05-21  Bruno Haible  <bruno@clisp.org>
4098
4099         pipe-posix: Move AC_LIBOBJ invocations to module description.
4100         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4101         * modules/pipe-posix (configure.ac): ... to here.
4102
4103 2011-05-21  Bruno Haible  <bruno@clisp.org>
4104
4105         openat: Respect rules for use of AC_LIBOBJ.
4106         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4107         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4108         * modules/openat (configure.ac): ... to here.
4109
4110 2011-05-21  Bruno Haible  <bruno@clisp.org>
4111
4112         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4113         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4114         invocation from here...
4115         * modules/obstack-printf (configure.ac): ... to here.
4116         * modules/obstack-printf-posix (configure.ac): ... and here.
4117
4118 2011-05-21  Bruno Haible  <bruno@clisp.org>
4119
4120         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4121         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4122         from here...
4123         * modules/nl_langinfo (configure.ac): ... to here.
4124
4125 2011-05-21  Bruno Haible  <bruno@clisp.org>
4126
4127         nanosleep: Move AC_LIBOBJ invocations to module description.
4128         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4129         gl_PREREQ_NANOSLEEP invocations from here...
4130         * modules/nanosleep (configure.ac): ... to here.
4131
4132 2011-05-21  Bruno Haible  <bruno@clisp.org>
4133
4134         mountlist: Move AC_LIBOBJ invocations to module description.
4135         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4136         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4137         * modules/mountlist (configure.ac): ... to here.
4138
4139 2011-05-21  Bruno Haible  <bruno@clisp.org>
4140
4141         mktime: Respect rules for use of AC_LIBOBJ.
4142         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4143         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4144         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4145         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4146         * modules/mktime (configure.ac): ... to here.
4147         * modules/mktime-internal (configure.ac): ... and here.
4148         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4149
4150 2011-05-21  Bruno Haible  <bruno@clisp.org>
4151
4152         mkstemps: Move AC_LIBOBJ invocations to module description.
4153         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4154         here...
4155         * modules/mkstemps (configure.ac): ... to here.
4156
4157 2011-05-21  Bruno Haible  <bruno@clisp.org>
4158
4159         mkstemp: Move AC_LIBOBJ invocations to module description.
4160         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4161         gl_PREREQ_MKSTEMP invocations from here...
4162         * modules/mkstemp (configure.ac): ... to here.
4163
4164 2011-05-21  Bruno Haible  <bruno@clisp.org>
4165
4166         mkostemps: Move AC_LIBOBJ invocations to module description.
4167         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4168         here...
4169         * modules/mkostemps (configure.ac): ... to here.
4170
4171 2011-05-21  Bruno Haible  <bruno@clisp.org>
4172
4173         mkostemp: Move AC_LIBOBJ invocations to module description.
4174         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4175         gl_PREREQ_MKOSTEMP invocations from here...
4176         * modules/mkostemp (configure.ac): ... to here.
4177
4178 2011-05-21  Bruno Haible  <bruno@clisp.org>
4179
4180         mknod: Move AC_LIBOBJ invocations to module description.
4181         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4182         * modules/mknod (configure.ac): ... to here.
4183
4184 2011-05-21  Bruno Haible  <bruno@clisp.org>
4185
4186         mkfifoat: Move AC_LIBOBJ invocations to module description.
4187         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4188         here...
4189         * modules/mkfifoat (configure.ac): ... to here.
4190
4191 2011-05-21  Bruno Haible  <bruno@clisp.org>
4192
4193         mkfifo: Respect rules for use of AC_LIBOBJ.
4194         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4195         here...
4196         * modules/mkfifo (configure.ac): ... to here.
4197
4198 2011-05-21  Bruno Haible  <bruno@clisp.org>
4199
4200         mkdtemp: Move AC_LIBOBJ invocations to module description.
4201         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4202         invocations from here...
4203         * modules/mkdtemp (configure.ac): ... to here.
4204
4205 2011-05-21  Bruno Haible  <bruno@clisp.org>
4206
4207         mkdir: Move AC_LIBOBJ invocations to module description.
4208         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4209         * modules/mkdir (configure.ac): ... to here.
4210
4211 2011-05-21  Bruno Haible  <bruno@clisp.org>
4212
4213         memset: Move AC_LIBOBJ invocations to module description.
4214         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4216         here...
4217         * modules/memset (configure.ac): ... to here.
4218
4219 2011-05-21  Bruno Haible  <bruno@clisp.org>
4220
4221         memrchr: Move AC_LIBOBJ invocations to module description.
4222         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4223         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4224         here...
4225         * modules/memrchr (configure.ac): ... to here.
4226
4227 2011-05-21  Bruno Haible  <bruno@clisp.org>
4228
4229         mempcpy: Move AC_LIBOBJ invocations to module description.
4230         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4231         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4232         here...
4233         * modules/mempcpy (configure.ac): ... to here.
4234
4235 2011-05-21  Bruno Haible  <bruno@clisp.org>
4236
4237         memmove: Move AC_LIBOBJ invocations to module description.
4238         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4239         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4240         here...
4241         * modules/memmove (configure.ac): ... to here.
4242
4243 2011-05-21  Bruno Haible  <bruno@clisp.org>
4244
4245         memmem*: Move AC_LIBOBJ invocations to module description.
4246         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4247         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4248         here...
4249         (gl_FUNC_MEMMEM): ... and here...
4250         * modules/memmem-simple (configure.ac): ... to here.
4251         * modules/memmem (configure.ac): ... and here.
4252
4253 2011-05-21  Bruno Haible  <bruno@clisp.org>
4254
4255         memcpy: Move AC_LIBOBJ invocations to module description.
4256         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4257         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4258         here...
4259         * modules/memcpy (configure.ac): ... to here.
4260
4261 2011-05-21  Bruno Haible  <bruno@clisp.org>
4262
4263         memcmp: Simplify autoconf macro.
4264         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4265         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4266         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4267
4268 2011-05-21  Bruno Haible  <bruno@clisp.org>
4269
4270         memcmp: Move AC_LIBOBJ invocations to module description.
4271         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4272         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4273         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4274         * modules/memcmp (configure.ac): ... to here.
4275         (Depends-on): Update conditions.
4276
4277 2011-05-21  Bruno Haible  <bruno@clisp.org>
4278
4279         memchr: Respect rules for use of AC_LIBOBJ.
4280         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4281         invocations from here...
4282         * modules/memchr (configure.ac): ... to here.
4283
4284 2011-05-21  Bruno Haible  <bruno@clisp.org>
4285
4286         mbtowc: Move AC_LIBOBJ invocations to module description.
4287         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4288         invocations from here...
4289         * modules/mbtowc (configure.ac): ... to here.
4290
4291 2011-05-21  Bruno Haible  <bruno@clisp.org>
4292
4293         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4294         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4295         gl_PREREQ_MBSRTOWCS invocations from here...
4296         * modules/mbsrtowcs (configure.ac): ... to here.
4297
4298 2011-05-21  Bruno Haible  <bruno@clisp.org>
4299
4300         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4301         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4302         gl_PREREQ_MBSNRTOWCS invocations from here...
4303         * modules/mbsnrtowcs (configure.ac): ... to here.
4304
4305 2011-05-21  Bruno Haible  <bruno@clisp.org>
4306
4307         mbsinit: Move AC_LIBOBJ invocations to module description.
4308         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4309         invocations from here...
4310         * modules/mbsinit (configure.ac): ... to here.
4311
4312 2011-05-21  Bruno Haible  <bruno@clisp.org>
4313
4314         mbrlen: Move AC_LIBOBJ invocations to module description.
4315         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4316         invocations from here...
4317         * modules/mbrlen (configure.ac): ... to here.
4318
4319 2011-05-21  Bruno Haible  <bruno@clisp.org>
4320
4321         mbrtowc: Respect rules for use of AC_LIBOBJ.
4322         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4323         invocations from here...
4324         * modules/mbrtowc (configure.ac): ... to here.
4325
4326 2011-05-21  Bruno Haible  <bruno@clisp.org>
4327
4328         malloc-*: Move AC_LIBOBJ invocations to module description.
4329         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4330         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4331         AC_LIBOBJ invocations from here...
4332         * modules/malloc-gnu (configure.ac): ... to here.
4333         * modules/malloc-posix (configure.ac): ... and here.
4334
4335 2011-05-21  Bruno Haible  <bruno@clisp.org>
4336
4337         lstat, openat: Respect rules for use of AC_LIBOBJ.
4338         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4339         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4340         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4341         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4342         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4343         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4344         here.
4345         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4346
4347 2011-05-21  Bruno Haible  <bruno@clisp.org>
4348
4349         lseek: Move AC_LIBOBJ invocations to module description.
4350         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4351         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4352         * modules/lseek (configure.ac): ... to here.
4353
4354 2011-05-21  Bruno Haible  <bruno@clisp.org>
4355
4356         linkat: Move AC_LIBOBJ invocations to module description.
4357         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4358         here...
4359         * modules/linkat (configure.ac): ... to here.
4360
4361 2011-05-21  Bruno Haible  <bruno@clisp.org>
4362
4363         link: Respect rules for use of AC_LIBOBJ.
4364         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4365         * modules/link (configure.ac): ... to here.
4366
4367 2011-05-21  Bruno Haible  <bruno@clisp.org>
4368
4369         lchown: Move AC_LIBOBJ invocations to module description.
4370         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4371         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4372         * modules/lchown (configure.ac): ... to here.
4373
4374 2011-05-21  Bruno Haible  <bruno@clisp.org>
4375
4376         iswctype: Move AC_LIBOBJ invocations to module description.
4377         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4378         here...
4379         * modules/iswctype (configure.ac): ... to here.
4380
4381 2011-05-21  Bruno Haible  <bruno@clisp.org>
4382
4383         iswblank: Move AC_LIBOBJ invocations to module description.
4384         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4385         here...
4386         * modules/iswblank (configure.ac): ... to here.
4387
4388 2011-05-21  Bruno Haible  <bruno@clisp.org>
4389
4390         atanl: Move AC_LIBOBJ invocations to module description.
4391         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4392         * modules/atanl (configure.ac): ... to here.
4393
4394 2011-05-21  Bruno Haible  <bruno@clisp.org>
4395
4396         acosl: Move AC_LIBOBJ invocations to module description.
4397         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4398         * modules/acosl (configure.ac): ... to here.
4399
4400 2011-05-21  Bruno Haible  <bruno@clisp.org>
4401
4402         asinl: Respect rules for use of AC_LIBOBJ.
4403         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4404         * modules/asinl (configure.ac): ... to here.
4405
4406 2011-05-21  Bruno Haible  <bruno@clisp.org>
4407
4408         tanl: Move AC_LIBOBJ invocations to module description.
4409         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4410         * modules/tanl (configure.ac): ... to here.
4411
4412 2011-05-21  Bruno Haible  <bruno@clisp.org>
4413
4414         cosl: Move AC_LIBOBJ invocations to module description.
4415         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4416         * modules/cosl (configure.ac): ... to here.
4417
4418 2011-05-21  Bruno Haible  <bruno@clisp.org>
4419
4420         sinl: Move AC_LIBOBJ invocations to module description.
4421         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4422         * modules/sinl (configure.ac): ... to here.
4423
4424 2011-05-21  Bruno Haible  <bruno@clisp.org>
4425
4426         logl: Move AC_LIBOBJ invocations to module description.
4427         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4428         * modules/logl (configure.ac): ... to here.
4429
4430 2011-05-21  Bruno Haible  <bruno@clisp.org>
4431
4432         expl: Move AC_LIBOBJ invocations to module description.
4433         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4434         * modules/expl (configure.ac): ... to here.
4435
4436 2011-05-21  Bruno Haible  <bruno@clisp.org>
4437
4438         roundl: Move AC_LIBOBJ invocations to module description.
4439         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4440         * modules/roundl (configure.ac): ... to here.
4441
4442 2011-05-21  Bruno Haible  <bruno@clisp.org>
4443
4444         round: Move AC_LIBOBJ invocations to module description.
4445         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4446         * modules/round (configure.ac): ... to here.
4447
4448 2011-05-21  Bruno Haible  <bruno@clisp.org>
4449
4450         roundf: Move AC_LIBOBJ invocations to module description.
4451         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4452         * modules/roundf (configure.ac): ... to here.
4453
4454 2011-05-21  Bruno Haible  <bruno@clisp.org>
4455
4456         truncl: Move AC_LIBOBJ invocations to module description.
4457         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4458         * modules/truncl (configure.ac): ... to here.
4459
4460 2011-05-21  Bruno Haible  <bruno@clisp.org>
4461
4462         trunc: Move AC_LIBOBJ invocations to module description.
4463         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4464         * modules/trunc (configure.ac): ... to here.
4465
4466 2011-05-21  Bruno Haible  <bruno@clisp.org>
4467
4468         truncf: Move AC_LIBOBJ invocations to module description.
4469         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4470         * modules/truncf (configure.ac): ... to here.
4471
4472 2011-05-21  Bruno Haible  <bruno@clisp.org>
4473
4474         ceill: Move AC_LIBOBJ invocations to module description.
4475         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4476         * modules/ceill (configure.ac): ... to here.
4477
4478 2011-05-21  Bruno Haible  <bruno@clisp.org>
4479
4480         ceil: Move AC_LIBOBJ invocations to module description.
4481         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4482         * modules/ceil (configure.ac): ... to here.
4483
4484 2011-05-21  Bruno Haible  <bruno@clisp.org>
4485
4486         ceilf: Move AC_LIBOBJ invocations to module description.
4487         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4488         * modules/ceilf (configure.ac): ... to here.
4489
4490 2011-05-21  Bruno Haible  <bruno@clisp.org>
4491
4492         floorl: Respect rules for use of AC_LIBOBJ.
4493         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4494         * modules/floorl (configure.ac): ... to here.
4495
4496 2011-05-21  Bruno Haible  <bruno@clisp.org>
4497
4498         floor: Respect rules for use of AC_LIBOBJ.
4499         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4500         * modules/floor (configure.ac): ... to here.
4501
4502 2011-05-21  Bruno Haible  <bruno@clisp.org>
4503
4504         floorf: Move AC_LIBOBJ invocations to module description.
4505         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4506         * modules/floorf (configure.ac): ... to here.
4507
4508 2011-05-20  Bruno Haible  <bruno@clisp.org>
4509
4510         sqrtl: Respect rules for use of AC_LIBOBJ.
4511         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4512         * modules/sqrtl (configure.ac): ... to here.
4513
4514 2011-05-20  Bruno Haible  <bruno@clisp.org>
4515
4516         ldexpl: Respect rules for use of AC_LIBOBJ.
4517         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4518         * modules/ldexpl (configure.ac): ... to here.
4519
4520 2011-05-20  Bruno Haible  <bruno@clisp.org>
4521
4522         frexpl*: Respect rules for use of AC_LIBOBJ.
4523         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4524         invocation from here...
4525         * modules/frexpl (configure.ac): ... to here.
4526         * modules/frexpl-nolibm (configure.ac): ... and here.
4527
4528 2011-05-20  Bruno Haible  <bruno@clisp.org>
4529
4530         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4531         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4532         invocation from here...
4533         * modules/frexp (configure.ac): ... to here.
4534         * modules/frexp-nolibm (configure.ac): ... and here.
4535
4536 2011-05-20  Bruno Haible  <bruno@clisp.org>
4537
4538         isnan: Respect rules for use of AC_LIBOBJ.
4539         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4540         invocations here.
4541         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4542         REPLACE_ISNAN.
4543         * modules/isnand (configure.ac): Likewise.
4544         * modules/isnanl (configure.ac): Likewise.
4545
4546 2011-05-20  Bruno Haible  <bruno@clisp.org>
4547
4548         isnanl*: Respect rules for use of AC_LIBOBJ.
4549         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4550         invocation from here...
4551         * modules/isnanl (configure.ac): ... to here.
4552         * modules/isnanl-nolibm (configure.ac): ... and here.
4553
4554 2011-05-20  Bruno Haible  <bruno@clisp.org>
4555
4556         isnand*: Move AC_LIBOBJ invocations to module description.
4557         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4558         invocation from here...
4559         * modules/isnand (configure.ac): ... to here.
4560         * modules/isnand-nolibm (configure.ac): ... and here.
4561
4562 2011-05-20  Bruno Haible  <bruno@clisp.org>
4563
4564         isnanf*: Move AC_LIBOBJ invocations to module description.
4565         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4566         invocation from here...
4567         * modules/isnanf (configure.ac): ... to here.
4568         * modules/isnanf-nolibm (configure.ac): ... and here.
4569
4570 2011-05-20  Bruno Haible  <bruno@clisp.org>
4571
4572         isnan*: Separate the AC_LIBOBJ invocations.
4573         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4574         AC_LIBOBJ invocation.
4575         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4576         here.
4577         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4578         AC_LIBOBJ invocation.
4579         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4580         here.
4581         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4582         AC_LIBOBJ invocation.
4583         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4584         here.
4585         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4586
4587 2011-05-08  Bruno Haible  <bruno@clisp.org>
4588
4589         isinf: Move AC_LIBOBJ invocations to module description.
4590         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4591         * modules/isinf (configure.ac): ... to here.
4592
4593 2011-05-08  Bruno Haible  <bruno@clisp.org>
4594
4595         isfinite: Move AC_LIBOBJ invocations to module description.
4596         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4597         * modules/isfinite (configure.ac): ... to here.
4598
4599 2011-05-08  Bruno Haible  <bruno@clisp.org>
4600
4601         isblank: Move AC_LIBOBJ invocations to module description.
4602         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4603         here...
4604         * modules/isblank (configure.ac): ... to here.
4605
4606 2011-05-08  Bruno Haible  <bruno@clisp.org>
4607
4608         isapipe: Move AC_LIBOBJ invocations to module description.
4609         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4610         gl_PREREQ_ISAPIPE invocations from here...
4611         * modules/isapipe (configure.ac): ... to here.
4612         (Depends-on): Update condition.
4613
4614 2011-05-08  Bruno Haible  <bruno@clisp.org>
4615
4616         ioctl: Move AC_LIBOBJ invocations to module description.
4617         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4618         invocations from here...
4619         * modules/ioctl (configure.ac): ... to here.
4620         (Depends-on): Update condition.
4621
4622 2011-05-08  Bruno Haible  <bruno@clisp.org>
4623
4624         imaxdiv: Move AC_LIBOBJ invocations to module description.
4625         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4626         invocations from here...
4627         * modules/imaxdiv (configure.ac): ... to here.
4628
4629 2011-05-08  Bruno Haible  <bruno@clisp.org>
4630
4631         imaxabs: Move AC_LIBOBJ invocations to module description.
4632         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4633         invocations from here...
4634         * modules/imaxabs (configure.ac): ... to here.
4635
4636 2011-05-08  Bruno Haible  <bruno@clisp.org>
4637
4638         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4639         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4640         AC_LIBOBJ invocations from here...
4641         * modules/getaddrinfo (configure.ac): ... to here.
4642         (Depends-on): Add conditions.
4643
4644 2011-05-08  Bruno Haible  <bruno@clisp.org>
4645
4646         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4647         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4648         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4649         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4650         (gl_PREREQ_INET_PTON): ... from here.
4651         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4652         gl_PREREQ_INET_PTON here.
4653         (Depends-on): Update condition.
4654
4655 2011-05-08  Bruno Haible  <bruno@clisp.org>
4656
4657         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4658         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4659         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4660         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4661         (gl_PREREQ_INET_NTOP): ... from here.
4662         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4663         gl_PREREQ_INET_NTOP here.
4664         (Depends-on): Update condition.
4665
4666 2011-05-08  Bruno Haible  <bruno@clisp.org>
4667
4668         iconv_open: Move AC_LIBOBJ invocations to module description.
4669         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4670         AC_LIBOBJ invocations from here...
4671         * modules/iconv_open (configure.ac): ... to here.
4672
4673 2011-05-08  Bruno Haible  <bruno@clisp.org>
4674
4675         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4676         If module 'iconv_open' is among the main modules and module
4677         'iconv_open-utf' is among the tests dependencies, then
4678         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4679         return the special iconv_t values. Therefore iconv() and iconv_close()
4680         must support these special iconv_t values, already in lib, not only in
4681         tests.
4682         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4683         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4684         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4685         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4686         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4687         (Depends-on): Add the dependencies of iconv_open-utf.
4688         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4689         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4690         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4691
4692 2011-05-08  Bruno Haible  <bruno@clisp.org>
4693
4694         group-member: Move AC_LIBOBJ invocations to module description.
4695         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4696         gl_PREREQ_GROUP_MEMBER invocations from here...
4697         * modules/group-member (configure.ac): ... to here.
4698
4699 2011-05-08  Bruno Haible  <bruno@clisp.org>
4700
4701         grantpt: Move AC_LIBOBJ invocations to module description.
4702         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4703         invocations from here...
4704         * modules/grantpt (configure.ac): ... to here.
4705
4706 2011-05-08  Bruno Haible  <bruno@clisp.org>
4707
4708         glob: Move AC_LIBOBJ invocations to module description.
4709         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4710         from here...
4711         * modules/glob (configure.ac): ... to here.
4712
4713 2011-05-08  Bruno Haible  <bruno@clisp.org>
4714
4715         getusershell: Move AC_LIBOBJ invocations to module description.
4716         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4717         Move AC_LIBOBJ invocation from here...
4718         * modules/getusershell (configure.ac): ... to here.
4719         (Depends-on): Update condition.
4720
4721 2011-05-08  Bruno Haible  <bruno@clisp.org>
4722
4723         gettimeofday: Move AC_LIBOBJ invocations to module description.
4724         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4725         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4726         gl_PREREQ_GETTIMEOFDAY invocations from here...
4727         * modules/gettimeofday (configure.ac): ... to here.
4728
4729 2011-05-08  Bruno Haible  <bruno@clisp.org>
4730
4731         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4732         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4733         just gl_FUNC_TZSET.
4734         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4735         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4736         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4737         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4738
4739 2011-05-08  Bruno Haible  <bruno@clisp.org>
4740
4741         getsubopt: Move AC_LIBOBJ invocations to module description.
4742         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4743         gl_PREREQ_GETSUBOPT invocations from here...
4744         * modules/getsubopt (configure.ac): ... to here.
4745
4746 2011-05-08  Bruno Haible  <bruno@clisp.org>
4747
4748         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4749         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4750         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4751         * modules/getpass-gnu (configure.ac): ... to here.
4752
4753 2011-05-08  Bruno Haible  <bruno@clisp.org>
4754
4755         getpass: Move AC_LIBOBJ invocations to module description.
4756         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4757         gl_PREREQ_GETPASS invocations from here...
4758         * modules/getpass (configure.ac): ... to here.
4759
4760 2011-05-08  Bruno Haible  <bruno@clisp.org>
4761
4762         getpagesize: Move AC_LIBOBJ invocations to module description.
4763         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4764         from here...
4765         * modules/getpagesize (configure.ac): ... to here.
4766
4767 2011-05-08  Bruno Haible  <bruno@clisp.org>
4768
4769         getopt: Move AC_LIBOBJ invocations to module description.
4770         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4771         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4772         invocations from here...
4773         * modules/getopt-gnu (configure.ac): ... to here.
4774         * modules/getopt-posix (configure.ac): ... and here.
4775         (Depends-on): Update condition.
4776
4777 2011-05-08  Bruno Haible  <bruno@clisp.org>
4778
4779         getopt, argp: Respect rules for use of AC_LIBOBJ.
4780         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4781         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4782         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4783         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4784
4785 2011-05-08  Bruno Haible  <bruno@clisp.org>
4786
4787         getlogin_r: Move AC_LIBOBJ invocations to module description.
4788         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4789         gl_PREREQ_GETLOGIN_R invocations from here...
4790         * modules/getlogin_r (configure.ac): ... to here.
4791
4792 2011-05-08  Bruno Haible  <bruno@clisp.org>
4793
4794         getlogin: Move AC_LIBOBJ invocations to module description.
4795         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4796         here...
4797         * modules/getlogin (configure.ac): ... to here.
4798
4799 2011-05-08  Bruno Haible  <bruno@clisp.org>
4800
4801         getloadavg: Move AC_LIBOBJ invocations to module description.
4802         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4803         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4804         * modules/getloadavg (configure.ac): ... to here.
4805
4806 2011-05-08  Bruno Haible  <bruno@clisp.org>
4807
4808         gethrxtime: Move AC_LIBOBJ invocations to module description.
4809         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4810         LIB_GETHRXTIME from here...
4811         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4812         invocations from here...
4813         * modules/gethrxtime (configure.ac): ... to here.
4814
4815 2011-05-08  Bruno Haible  <bruno@clisp.org>
4816
4817         gethostname: Move AC_LIBOBJ invocations to module description.
4818         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4819         gl_PREREQ_GETHOSTNAME invocations from here...
4820         * modules/gethostname (configure.ac): ... to here.
4821
4822 2011-05-08  Bruno Haible  <bruno@clisp.org>
4823
4824         getgroups: Move AC_LIBOBJ invocations to module description.
4825         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4826         here...
4827         * modules/getgroups (configure.ac): ... to here.
4828
4829 2011-05-08  Bruno Haible  <bruno@clisp.org>
4830
4831         getdtablesize: Move AC_LIBOBJ invocations to module description.
4832         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4833         invocation from here...
4834         * modules/getdtablesize (configure.ac): ... to here.
4835
4836 2011-05-08  Bruno Haible  <bruno@clisp.org>
4837
4838         getdomainname: Move AC_LIBOBJ invocations to module description.
4839         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4840         gl_PREREQ_GETDOMAINNAME invocations from here...
4841         * modules/getdomainname (configure.ac): ... to here.
4842
4843 2011-05-08  Bruno Haible  <bruno@clisp.org>
4844
4845         getline: Move AC_LIBOBJ invocations to module description.
4846         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4847         invocations from here...
4848         * modules/getline (configure.ac): ... to here.
4849
4850 2011-05-08  Bruno Haible  <bruno@clisp.org>
4851
4852         getline: Simplify.
4853         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4854         It's already handled through the module dependency.
4855
4856 2011-05-08  Bruno Haible  <bruno@clisp.org>
4857
4858         getdelim: Move AC_LIBOBJ invocations to module description.
4859         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4860         and gl_PREREQ_GETDELIM invocations from here...
4861         * modules/getdelim (configure.ac): ... to here.
4862         (Depends-on): Fix condition.
4863
4864 2011-05-08  Bruno Haible  <bruno@clisp.org>
4865
4866         getcwd: Move AC_LIBOBJ invocations to module description.
4867         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4868         invocations from here...
4869         * modules/getcwd (configure.ac): ... to here.
4870
4871 2011-05-08  Bruno Haible  <bruno@clisp.org>
4872
4873         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4874         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4875         here...
4876         * modules/getcwd-lgpl (configure.ac): ... to here.
4877
4878 2011-05-07  Bruno Haible  <bruno@clisp.org>
4879
4880         crypto/gc: Move AC_LIBOBJ invocations to module description.
4881         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4882         * modules/crypto/gc (configure.ac): ... to here.
4883
4884 2011-05-07  Bruno Haible  <bruno@clisp.org>
4885
4886         fwriting: Move AC_LIBOBJ invocations to module description.
4887         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4888         here...
4889         * modules/fwriting (configure.ac): ... to here.
4890
4891 2011-05-07  Bruno Haible  <bruno@clisp.org>
4892
4893         fwritable: Move AC_LIBOBJ invocations to module description.
4894         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4895         here...
4896         * modules/fwritable (configure.ac): ... to here.
4897
4898 2011-05-07  Bruno Haible  <bruno@clisp.org>
4899
4900         futimens: Move AC_LIBOBJ invocations to module description.
4901         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4902         here...
4903         * modules/futimens (configure.ac): ... to here.
4904
4905 2011-05-07  Bruno Haible  <bruno@clisp.org>
4906
4907         ftruncate: Move AC_LIBOBJ invocations to module description.
4908         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4909         gl_PREREQ_FTRUNCATE invocations from here...
4910         * modules/ftruncate (configure.ac): ... to here.
4911
4912 2011-05-07  Bruno Haible  <bruno@clisp.org>
4913
4914         fsync: Move AC_LIBOBJ invocations to module description.
4915         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4916         invocations from here...
4917         * modules/fsync (configure.ac): ... to here.
4918
4919 2011-05-07  Bruno Haible  <bruno@clisp.org>
4920
4921         fsusage: Move AC_LIBOBJ invocations to module description.
4922         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4923         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4924         * modules/fsusage (configure.ac): ... to here.
4925
4926 2011-05-07  Bruno Haible  <bruno@clisp.org>
4927
4928         freopen: Move AC_LIBOBJ invocations to module description.
4929         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4930         invocations from here...
4931         * modules/freopen (configure.ac): ... to here.
4932
4933 2011-05-07  Bruno Haible  <bruno@clisp.org>
4934
4935         free: Move AC_LIBOBJ invocations to module description.
4936         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4937         invocations from here...
4938         * modules/free (configure.ac): ... to here.
4939
4940 2011-05-07  Bruno Haible  <bruno@clisp.org>
4941
4942         freadable: Move AC_LIBOBJ invocations to module description.
4943         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4944         here...
4945         * modules/freadable (configure.ac): ... to here.
4946
4947 2011-05-07  Bruno Haible  <bruno@clisp.org>
4948
4949         fpurge: Move AC_LIBOBJ invocations to module description.
4950         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
4951         invocations from here...
4952         * modules/fpurge (configure.ac): ... to here.
4953
4954 2011-05-07  Bruno Haible  <bruno@clisp.org>
4955
4956         fpending: Move AC_LIBOBJ invocations to module description.
4957         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
4958         gl_FUNC_FPENDING.
4959         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
4960         invocations from here...
4961         * modules/fpending (configure.ac): ... to here.
4962
4963 2011-05-07  Bruno Haible  <bruno@clisp.org>
4964
4965         fopen: Move AC_LIBOBJ invocations to module description.
4966         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
4967         invocations from here...
4968         * modules/fopen (configure.ac): ... to here.
4969
4970 2011-05-07  Bruno Haible  <bruno@clisp.org>
4971
4972         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
4973         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
4974         gl_FUNC_FNMATCH_POSIX.
4975         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
4976         invocations from here...
4977         * modules/fnmatch (configure.ac): ... to here.
4978         * modules/fnmatch-gnu (configure.ac): ... and here.
4979
4980 2011-05-07  Bruno Haible  <bruno@clisp.org>
4981
4982         flock: Move AC_LIBOBJ invocations to module description.
4983         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
4984         invocations from here...
4985         * modules/flock (configure.ac): ... to here.
4986
4987 2011-05-07  Bruno Haible  <bruno@clisp.org>
4988
4989         fileblocks: Move AC_LIBOBJ invocations to module description.
4990         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
4991         gl_PREREQ_FILEBLOCKS invocations from here...
4992         * modules/fileblocks (configure.ac): ... to here.
4993
4994 2011-05-06  Bruno Haible  <bruno@clisp.org>
4995
4996         fflush: Move AC_LIBOBJ invocations to module description.
4997         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
4998         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
4999         invocations from here...
5000         * modules/fflush (configure.ac): ... to here.
5001
5002 2011-05-06  Bruno Haible  <bruno@clisp.org>
5003
5004         fdopendir: Move AC_LIBOBJ invocations to module description.
5005         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5006         here...
5007         * modules/fdopendir (configure.ac): ... to here.
5008         (Depends-on): Improve conditions.
5009
5010 2011-05-06  Bruno Haible  <bruno@clisp.org>
5011
5012         _Exit: Move AC_LIBOBJ invocations to module description.
5013         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5014         invocations from here...
5015         * modules/_Exit (configure.ac): ... to here.
5016
5017 2011-05-21  Bruno Haible  <bruno@clisp.org>
5018
5019         euidaccess: Respect rules for use of AC_LIBOBJ.
5020         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5022         from here...
5023         * modules/euidaccess (configure.ac): ... to here.
5024
5025 2011-05-06  Bruno Haible  <bruno@clisp.org>
5026
5027         error: Move AC_LIBOBJ invocations to module description.
5028         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5029         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5030         invocations from here...
5031         * modules/error (configure.ac): ... to here.
5032
5033 2011-05-06  Bruno Haible  <bruno@clisp.org>
5034
5035         duplocale: Move AC_LIBOBJ invocations to module description.
5036         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5037         gl_PREREQ_DUPLOCALE invocations from here...
5038         * modules/duplocale (configure.ac): ... to here.
5039
5040 2011-05-05  Bruno Haible  <bruno@clisp.org>
5041
5042         dirfd: Move AC_LIBOBJ invocations to module description.
5043         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5044         gl_FUNC_DIRFD.
5045         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5046         here...
5047         * modules/dirfd (configure.ac): ... to here.
5048         (Depends-on): Fix condition.
5049
5050 2011-05-05  Bruno Haible  <bruno@clisp.org>
5051
5052         chown: Respect rules for use of AC_LIBOBJ.
5053         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5054         * modules/chown (configure.ac): ... to here.
5055
5056 2011-05-05  Bruno Haible  <bruno@clisp.org>
5057
5058         chdir-long: Move AC_LIBOBJ invocations to module description.
5059         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5060         gl_PREREQ_CHDIR_LONG invocations from here...
5061         * modules/chdir-long (configure.ac): ... to here.
5062
5063 2011-05-05  Bruno Haible  <bruno@clisp.org>
5064
5065         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5066         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5067         from here...
5068         * modules/canonicalize-lgpl (configure.ac): ... to here.
5069
5070 2011-05-05  Bruno Haible  <bruno@clisp.org>
5071
5072         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5073         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5074         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5075         REPLACE_CALLOC.
5076         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5077         * modules/calloc-gnu (configure.ac): Likewise.
5078
5079 2011-05-05  Bruno Haible  <bruno@clisp.org>
5080
5081         btowc: Move AC_LIBOBJ invocations to module description.
5082         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5083         invocations from here...
5084         * modules/btowc (configure.ac): ... to here.
5085
5086 2011-05-21  Bruno Haible  <bruno@clisp.org>
5087
5088         atexit: Move AC_LIBOBJ invocations to module description.
5089         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5091         here...
5092         * modules/atexit (configure.ac): ... to here.
5093
5094 2011-05-05  Bruno Haible  <bruno@clisp.org>
5095
5096         atoll: Move AC_LIBOBJ invocations to module description.
5097         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5098         invocations from here...
5099         * modules/atoll (configure.ac): ... to here.
5100
5101 2011-05-05  Bruno Haible  <bruno@clisp.org>
5102
5103         argz: Move AC_LIBOBJ invocations to module description.
5104         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5105         * modules/argz (configure.ac): ... to here.
5106
5107 2011-05-05  Bruno Haible  <bruno@clisp.org>
5108
5109         alphasort: Move AC_LIBOBJ invocations to module description.
5110         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5111         gl_PREREQ_ALPHASORT invocations from here...
5112         * modules/alphasort (configure.ac): ... to here.
5113
5114 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5115
5116         verify: new macro verify_expr; verify_true deprecated
5117         * NEWS: Mention this.
5118         * doc/verify.texi (Compile-time Assertions): Document this.
5119         * lib/verify.h (verify_true): Deprecate.
5120         (verify_expr): New macro.
5121         * tests/test-verify.c (function): Test verify_expr.
5122
5123 2011-06-14  Jim Meyering  <meyering@redhat.com>
5124
5125         init.sh: give more portable redirection-related advice in a comment
5126         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5127         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5128         for lots of discussion.  Stefano Lattarini suggested the solution
5129         of putting "9>&2" after the command.  Reported by Bruno Haible.
5130
5131 2011-06-13  Bruno Haible  <bruno@clisp.org>
5132
5133         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5134         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5135         'none'.
5136
5137 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5138
5139         ftoastr: use strtof only if HAVE_STRTOF
5140         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5141         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5142         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5143         * modules/ftoastr (configure.ac): Check for strtof.
5144
5145 2011-06-13  Bruno Haible  <bruno@clisp.org>
5146
5147         gnulib-tool: Addendum to 2011-06-08 commit.
5148         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5149         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5150
5151 2011-06-13  Bruno Haible  <bruno@clisp.org>
5152
5153         fseeko: Provide a non-inline replacement of fseek().
5154         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5155         * modules/fseeko (Depends-on): Add fseek.
5156         * modules/fseek (License): Change to LGPLv2+.
5157
5158 2011-06-13  Bruno Haible  <bruno@clisp.org>
5159
5160         ftello: Provide a non-inline replacement of ftell().
5161         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5162         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5163         not have ftello() (such as on mingw).
5164         * modules/ftello (Depends-on): Add ftell.
5165         * modules/ftell (License): Change to LGPLv2+.
5166
5167 2011-05-07  Bruno Haible  <bruno@clisp.org>
5168
5169         ftell: Move AC_LIBOBJ invocations to module description.
5170         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5171         * modules/ftell (configure.ac): ... to here.
5172
5173 2011-05-07  Bruno Haible  <bruno@clisp.org>
5174
5175         ftello: Respect rules for use of AC_LIBOBJ.
5176         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5177         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5178         here...
5179         * modules/ftello (configure.ac): ... to here.
5180
5181 2011-05-07  Bruno Haible  <bruno@clisp.org>
5182
5183         fseeko: Simplify.
5184         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5185         (gl_FUNC_FSEEKO): Inline it here.
5186
5187 2011-05-07  Bruno Haible  <bruno@clisp.org>
5188
5189         fseek: Move AC_LIBOBJ invocations to module description.
5190         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5191         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5192         * modules/fseek (configure.ac): ... to here.
5193
5194 2011-05-07  Bruno Haible  <bruno@clisp.org>
5195
5196         fseek: Respect rules for use of AC_LIBOBJ.
5197         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5198         here...
5199         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5200
5201 2011-05-07  Bruno Haible  <bruno@clisp.org>
5202
5203         fseeko: Respect rules for use of AC_LIBOBJ.
5204         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5205         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5206         here...
5207         * modules/fseeko (configure.ac): ... to here.
5208
5209 2011-06-13  Bruno Haible  <bruno@clisp.org>
5210
5211         gnulib-tool: Allow comments in the 'Depends-on' section.
5212         * doc/gnulib.texi (Module description): Mention comment syntax in the
5213         Depends-on section.
5214         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5215
5216 2011-06-13  Bruno Haible  <bruno@clisp.org>
5217
5218         file-set.h: guard __attibute__ use, now that it's not always defined
5219         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5220         versions that support it.  This fixes a coreutils build failure with
5221         the vendor cc on HP-UX 11.31.
5222
5223 2011-06-12  Bruno Haible  <bruno@clisp.org>
5224
5225         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5226         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5227         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5228         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5229         (acl, aclsort): New declarations.
5230         (aclv_nontrivial): New declaration.
5231         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5232         (file_has_acl): Read also the second kind of HP-UX ACLs.
5233         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5234         kind of HP-UX ACLs if the first kind fails.
5235         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5236         second kind of HP-UX ACLs.
5237         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5238         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5239         agree.
5240         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5241         hpuxjfs.
5242         Handle hpuxjfs.
5243         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5244         hpuxjfs.
5245         Handle hpuxjfs.
5246         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5247         (func_test_same_acls): Use both lsacl and getacl.
5248         Handle hpuxjfs.
5249         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5250         (func_test_same_acls): Use both lsacl and getacl.
5251         Handle hpuxjfs.
5252
5253 2011-06-12  Bruno Haible  <bruno@clisp.org>
5254
5255         acl: Complete the 2010-08-10 fix.
5256         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5257         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5258         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5259         explicitly.
5260         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5261         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5262
5263 2011-06-12  Bruno Haible  <bruno@clisp.org>
5264
5265         spawn-pipe tests: Comments.
5266         * tests/test-spawn-pipe-child.c (main): Update comment.
5267         Reported by James Youngman <jay@gnu.org>.
5268
5269 2011-06-11  James Youngman  <jay@gnu.org>
5270
5271         New module 'stat-size'.
5272         * modules/stat-size: New module.  Provides macros for accessing
5273         file size information in instances of struct stat.  Depends on the
5274         fileblocks module because it calls st_blocks.
5275         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5276         * doc/gnulib.texi: Include stat-size.texi.
5277         * doc/stat-size.texi: Documentation for this module.
5278         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5279         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5280         AC_STRUCT_ST_BLOCKS.
5281
5282 2011-06-09  Bruno Haible  <bruno@clisp.org>
5283
5284         thread: Support pthreads-win32.
5285         * lib/glthread/thread.h (gl_thread_self): Define differently on
5286         pthreads-win32.
5287         (gl_null_thread): New declaration.
5288         (gl_thread_self_pointer): New macro.
5289         * lib/glthread/thread.c (gl_null_thread): New constant.
5290         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5291         gl_thread_self.
5292         * tests/test-tls.c: Likewise.
5293         Suggested by Paul Eggert. Reported by Eric Blake.
5294
5295 2011-06-09  Bruno Haible  <bruno@clisp.org>
5296
5297         thread: Fix confusion between NULL and 0.
5298         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5299         Reported by Paul Eggert.
5300
5301 2011-06-09  Bruno Haible  <bruno@clisp.org>
5302
5303         spawn-pipe tests: Avoid test failure on HP-UX 11.
5304         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5305         is closed.
5306
5307 2011-06-09  Bruno Haible  <bruno@clisp.org>
5308
5309         acl tests: Fix compilation error on HP-UX 11.
5310         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5311
5312 2011-06-09  Bruno Haible  <bruno@clisp.org>
5313
5314         rmdir: Avoid test failure on HP-UX 10.20.
5315         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5316         EEXIST.
5317
5318 2011-06-08  Eric Blake  <eblake@redhat.com>
5319
5320         perror: fix test on mingw
5321         * modules/perror-tests (Depends-on): Add dup2.
5322
5323         strerror_r-posix: fix on MacOS
5324         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5325         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5326         logic bug.
5327         * lib/strerror_r.c (strerror_r): Fix the bug.
5328         * lib/strerror.c (strerror): Likewise.
5329         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5330         problem.
5331         * doc/posix-functions/strerror.texi (strerror): Likewise.
5332         * doc/posix-functions/perror.texi (perror): Likewise.
5333         * tests/test-strerror.c (main): Enhance test.
5334         * tests/test-strerror_r.c (main): Likewise.
5335
5336 2011-06-08  Bruno Haible  <bruno@clisp.org>
5337
5338         gnulib-tool: Better isolation between different gnulib-tool invocations.
5339         * gnulib-tool: New option --witness-c-macro.
5340         (witness_c_macro): New variable.
5341         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5342         AM_CPPFLAGS define it as a C macro.
5343         (func_emit_tests_Makefile_am): Likewise.
5344         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5345         read it from there.
5346         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5347         m4_define, not AC_DEFUN.
5348         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5349         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5350         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5351         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5352         s|...|...|, to substitute the values of the GNULIB_* module indicator
5353         variables.
5354         * modules/dirent (Makefile.am): Likewise.
5355         * modules/fcntl-h (Makefile.am): Likewise.
5356         * modules/iconv-h (Makefile.am): Likewise.
5357         * modules/langinfo (Makefile.am): Likewise.
5358         * modules/locale (Makefile.am): Likewise.
5359         * modules/math (Makefile.am): Likewise.
5360         * modules/netdb (Makefile.am): Likewise.
5361         * modules/poll-h (Makefile.am): Likewise.
5362         * modules/pty (Makefile.am): Likewise.
5363         * modules/search (Makefile.am): Likewise.
5364         * modules/signal (Makefile.am): Likewise.
5365         * modules/spawn (Makefile.am): Likewise.
5366         * modules/stdio (Makefile.am): Likewise.
5367         * modules/stdlib (Makefile.am): Likewise.
5368         * modules/string (Makefile.am): Likewise.
5369         * modules/sys_ioctl (Makefile.am): Likewise.
5370         * modules/sys_select (Makefile.am): Likewise.
5371         * modules/sys_socket (Makefile.am): Likewise.
5372         * modules/sys_stat (Makefile.am): Likewise.
5373         * modules/sys_times (Makefile.am): Likewise.
5374         * modules/sys_utsname (Makefile.am): Likewise.
5375         * modules/sys_wait (Makefile.am): Likewise.
5376         * modules/termios (Makefile.am): Likewise.
5377         * modules/time (Makefile.am): Likewise.
5378         * modules/unistd (Makefile.am): Likewise.
5379         * modules/wchar (Makefile.am): Likewise.
5380
5381 2011-06-08  Eric Blake  <eblake@redhat.com>
5382
5383         strerror: simplify replacement
5384         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5385         * modules/strerror (configure.ac): No prereqs needed here...
5386         * modules/strerror-override (configure.ac): ...but this needs it.
5387         (Files): Add file for needed prereq macro.
5388
5389 2011-06-08  Bruno Haible  <bruno@clisp.org>
5390
5391         strerror_r-posix: Tweaks.
5392         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5393         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5394         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5395         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5396         (gl_FUNC_STRERROR_R): ... to here.
5397         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5398
5399 2011-06-07  Eric Blake  <eblake@redhat.com>
5400
5401         perror: document fixed bugs
5402         * doc/posix-functions/perror.texi (perror): Document recent
5403         patches.
5404
5405 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5406
5407         stat-time: get_stat_birthtime failure is better-defined
5408         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5409         return a timestamp whose tv_sec and tv_nsec values are both -1.
5410         Previously, the spec said only that the tv_nsec value was negative.
5411         This upward-compatible change simplifies GNU tar a bit.
5412
5413 2011-06-07  Eric Blake  <eblake@redhat.com>
5414
5415         strerror_r-posix: work around cygwin 1.7.9
5416         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5417         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5418         bug without replacing strerror_r.
5419         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5420         strerror_r is buggy, but without requiring strerror_r compilation.
5421         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5422
5423         test-perror: relax test to ignore cygwin bug
5424         * tests/test-perror2.c (main): Relax test on requiring detection
5425         of stream errors, and use unbuffered stream.
5426         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5427         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5428         * doc/posix-functions/fputc.texi (fputc): Likewise.
5429         * doc/posix-functions/fputs.texi (fputs): Likewise.
5430         * doc/posix-functions/fputws.texi (fputws): Likewise.
5431         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5432         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5433         * doc/posix-functions/getopt.texi (getopt): Likewise.
5434         * doc/posix-functions/perror.texi (perror): Likewise.
5435         * doc/posix-functions/printf.texi (printf): Likewise.
5436         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5437         * doc/posix-functions/psignal.texi (psignal): Likewise.
5438         * doc/posix-functions/putc.texi (putc): Likewise.
5439         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5440         Likewise.
5441         * doc/posix-functions/putchar.texi (putchar): Likewise.
5442         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5443         Likewise.
5444         * doc/posix-functions/puts.texi (puts): Likewise.
5445         * doc/posix-functions/putwc.texi (putwc): Likewise.
5446         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5447         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5448         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5449         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5450         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5451         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5452         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5453         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5454
5455 2011-05-22  Bruno Haible  <bruno@clisp.org>
5456
5457         strerror: Move AC_LIBOBJ invocations to module description.
5458         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5459         gl_PREREQ_STRERROR invocations from here...
5460         * modules/strerror (configure.ac): ... to here.
5461
5462 2011-05-21  Bruno Haible  <bruno@clisp.org>
5463
5464         perror: Use common idiom.
5465         * modules/perror (configure.ac): Reorder statements.
5466
5467 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5468
5469         tests: fix usage message in 'mktempd_'
5470         * tests/init.sh (mktempd_): In the usage message, use literal
5471         'mktempd_', not '$ME' (which is even undefined), as the name of
5472         the subroutine.
5473
5474 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5475
5476         tests init: new function 'fatal_', for hard errors
5477         Before this patch, the only way offered by tests/init.sh to
5478         properly signal a hard error was the `framework_failure_'
5479         function.  But the error message issued by that function,
5480         as its name would suggest, refers to a set-up failure in the
5481         testsuite, while hard errors can obviously also be due to
5482         other reasons.  The best way to fix this inconsistency is to
5483         introduce a new function with a more general error message.
5484         * tests/init.sh (fatal_): New function.
5485
5486 2011-06-06  Eric Blake  <eblake@redhat.com>
5487
5488         canonicalize-lgpl: use common idiom
5489         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5490         over newer POSIX -Rf.
5491         Reported by Bruno Haible.
5492
5493         canonicalize-lgpl: work around AIX realpath bug
5494         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5495         * doc/posix-functions/realpath.texi (realpath): Document it.
5496         Reported by Bruno Haible.
5497
5498         strerror: work around FreeBSD bug
5499         * lib/strerror.c (strerror): Special case 0.
5500         Reported by Bruno Haible.
5501
5502         strerror-override: avoid bloating errno module
5503         * modules/errno (Files, configure.ac): Move replacement strings...
5504         * modules/strerror-override: ...to new module.
5505         * modules/strerror (Depends-on): Add strerror-override.
5506         * modules/strerror_r-posix (Depends-on): Likewise.
5507         * MODULES.html.sh: Document new module.
5508         Reported by Bruno Haible.
5509
5510 2011-06-06  Bruno Haible  <bruno@clisp.org>
5511
5512         spawn-pipe tests: Rename program.
5513         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5514         * tests/test-spawn-pipe-child.c: Update comment.
5515         * tests/test-spawn-pipe.sh: Update.
5516         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5517
5518         spawn-pipe tests: Link the child program only against libc.
5519         * tests/test-spawn-pipe-child.c: New file, extracted from
5520         tests/test-spawn-pipe.c.
5521         (main): Expect only one argument.
5522         (is_open): New function, copied from tests/test-pipe.c.
5523         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5524         (child_main): Remove function.
5525         (test_pipe): Pass only one argument to the child program.
5526         (main): Remove child process code. Expect the child program's name as
5527         first argument.
5528         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5529         argument.
5530         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5531         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5532         test-spawn-pipe-child against no libraries.
5533
5534 2011-06-06  Bruno Haible  <bruno@clisp.org>
5535
5536         careadlinkat: Avoid mismatch between ssize_t and int.
5537         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5538         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5539
5540 2011-06-06  Jim Meyering  <meyering@redhat.com>
5541
5542         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5543         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5544         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5545
5546 2011-06-05  Bruno Haible  <bruno@clisp.org>
5547
5548         ansi-c++-opt: Interoperability with libtool.
5549         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5550         set the variable to "no", not to ":".
5551         * NEWS: Mention the change.
5552
5553 2011-06-05  Bruno Haible  <bruno@clisp.org>
5554
5555         acl: Fix test failure on AIX 7.
5556         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5557         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5558
5559 2011-06-05  Bruno Haible  <bruno@clisp.org>
5560
5561         pipe-filter-ii: Fix test failure on AIX and IRIX.
5562         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5563         with EAGAIN, retry with a smaller buffer size.
5564
5565 2011-06-05  Bruno Haible  <bruno@clisp.org>
5566
5567         localename: Fix link dependencies.
5568         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5569         * modules/localename-tests (Makefile.am): Link test-localename with
5570         $(LIBTHREAD).
5571
5572 2011-06-05  Bruno Haible  <bruno@clisp.org>
5573
5574         error: Avoid gcc warning.
5575         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5576
5577 2011-06-05  Bruno Haible  <bruno@clisp.org>
5578
5579         unsetenv: Avoid gcc warning.
5580         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5581
5582 2011-06-05  Bruno Haible  <bruno@clisp.org>
5583
5584         setenv: Avoid gcc warning.
5585         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5586
5587 2011-06-05  Bruno Haible  <bruno@clisp.org>
5588
5589         sys_select: Ensure memset is declared also on AIX 7.
5590         * lib/sys_select.in.h: Include <string.h> also on AIX.
5591         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5592         self-contained also on AIX 7.1.
5593
5594 2011-06-04  Jim Meyering  <meyering@redhat.com>
5595
5596         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5597         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5598         function name, "error".
5599         (_gl_translatable_diag_func_re): New configurable variable.
5600
5601 2011-06-04  Bruno Haible  <bruno@clisp.org>
5602
5603         getopt: Avoid gcc warning.
5604         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5605
5606 2011-06-04  Bruno Haible  <bruno@clisp.org>
5607
5608         strerror_r: Fix comments.
5609         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5610         commit.
5611
5612 2011-06-04  Bruno Haible  <bruno@clisp.org>
5613
5614         perror: Fix compilation error.
5615         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5616         Undefine fprintf, not sprintf.
5617         * modules/perror (Depends-on): Remove intprops, verify.
5618
5619 2011-06-04  Bruno Haible  <bruno@clisp.org>
5620
5621         setlocale: Enable replacement on Cygwin 1.5.
5622         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5623         Cygwin 1.5.x.
5624         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5625         LC_CTYPE category also exists on Cygwin 1.5.x.
5626
5627 2011-06-04  Bruno Haible  <bruno@clisp.org>
5628
5629         strerror-override: Don't disable symbol renamings.
5630         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5631         * lib/strerror-override.c: Include config.h.
5632         (strerror_override): Don't undefine.
5633
5634 2011-06-03  Bruno Haible  <bruno@clisp.org>
5635
5636         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5637         * lib/localename.h: Update copyright header.
5638         * lib/localename.c: Likewise.
5639         * lib/relocatable.h: Likewise.
5640         * lib/relocatable.c: Likewise.
5641
5642 2011-06-02  Bruno Haible  <bruno@clisp.org>
5643
5644         doc: Fix a module name.
5645         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5646
5647 2011-06-02  Bruno Haible  <bruno@clisp.org>
5648
5649         pipe2: Remove dependency on 'nonblocking' module.
5650         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5651         O_NONBLOCK is defined by gnulib.
5652         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5653         is zero.
5654         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5655         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5656         defined by gnulib.
5657         (get_nonblocking_flag): New function.
5658         (main): Test O_NONBLOCK flag only if it is nonzero.
5659         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5660
5661 2011-06-03  Jim Meyering  <meyering@redhat.com>
5662
5663         maint: three new prohibit-header-without-use rules
5664         Prohibit use of cloexec.h, posixver.h, same.h without use.
5665         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5666         (sc_prohibit_posixver_without_use): Likewise.
5667         (sc_prohibit_same_without_use): Likewise.
5668
5669 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5670
5671         allocator: 'die' routine is now given requested size
5672         * lib/allocator.h (struct allocator.die): New size arg.
5673         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5674         If the actual problem is an ssize_t limitation, not a size_t or
5675         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5676
5677 2011-06-01  Eric Blake  <eblake@redhat.com>
5678
5679         strerror: drop strerror_r dependency
5680         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5681         * lib/strerror-override.c (strerror_override): ...to new file.
5682         * lib/strerror-override.h: Add prototype.
5683         * lib/strerror-impl.h: Delete.
5684         * lib/strerror.c (strerror): New implementation.
5685         * modules/errno (Files): Add new files.
5686         (configure.ac): Compile new file as appropriate.
5687         * modules/strerror (Files): Drop unused file.
5688         (Depends-on): Drop strerror_r-posix.
5689         * MODULES.html.sh: Document strerror_r-posix.
5690         Requested by Sam Steingold.
5691
5692         perror: call strerror_r directly
5693         * modules/perror (Files): Drop strerror-impl.h.
5694         * lib/perror.c (perror): Use our own stack buffer, rather than
5695         calling a wrapper that uses static storage.
5696         * doc/posix-functions/perror.texi (perror): Document a limitation
5697         of our replacement.
5698
5699         strerror_r: fix includes for FreeBSD
5700         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5701         since we use abort on some platforms.
5702         Reported by Matthias Bolte.
5703
5704 2011-05-31  Bruno Haible  <bruno@clisp.org>
5705
5706         Fix link errors in tests: openat-die uses gettext-h.
5707         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5708         against $(LIBINTL).
5709         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5710         against $(LIBINTL).
5711         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5712         $(LIBINTL).
5713         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5714         against $(LIBINTL).
5715         * modules/linkat-tests (Makefile.am): Link test-linkat against
5716         $(LIBINTL).
5717         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5718         $(LIBINTL).
5719         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5720         against $(LIBINTL).
5721         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5722         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5723         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5724         $(LIBINTL).
5725         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5726         $(LIBINTL).
5727         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5728         $(LIBINTL).
5729         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5730
5731 2011-05-31  Bruno Haible  <bruno@clisp.org>
5732
5733         Fix link errors in tests: wait-process uses gettext-h.
5734         * modules/nonblocking-pipe-tests (Makefile.am): Set
5735         test_nonblocking_pipe_main_LDADD.
5736         * modules/nonblocking-socket-tests (Makefile.am): Link
5737         test-nonblocking-socket-main against $(LIBINTL).
5738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5739
5740 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5741
5742         assert-h: work around 'verify' incompatibility
5743         * lib/verify.h: Use @...@ directives, not ifdef.
5744         * modules/assert-h (assert.h): Implement the directives.
5745         (assert.h): Substitute the symbol-prefix more consistently.
5746
5747 2011-05-29  Jim Meyering  <meyering@redhat.com>
5748
5749         trim: remove three superfluous assignments
5750         * lib/trim.c (trim2): Remove three superfluous assignments
5751         and correct brace positioning.
5752
5753 2011-05-29  Bruno Haible  <bruno@clisp.org>
5754
5755         wctype-h: Avoid namespace pollution on Solaris 2.6.
5756         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5757         identifiers.
5758         * doc/posix-headers/wctype.texi: Mention the problem.
5759         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5760
5761 2011-05-28  Jim Meyering  <meyering@redhat.com>
5762
5763         parse-datetime.y: accommodate -Wstrict-overflow
5764         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5765         placate -Wstrict-overflow.
5766
5767         trim: avoid a warning from -O2 -Wstrict-overflow
5768         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5769
5770 2011-05-29  Bruno Haible  <bruno@clisp.org>
5771
5772         gnulib-tool: Fix bug in yesterday's commit.
5773         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5774         twice.
5775
5776 2011-05-29  Bruno Haible  <bruno@clisp.org>
5777
5778         Allow multiple gnulib generated include files to be combined.
5779         * gnulib-tool (func_compute_include_guard_prefix): New function.
5780         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5781         ${gl_include_guard_prefix} references.
5782         (func_import, func_create_testdir): Invoke
5783         func_compute_include_guard_prefix.
5784         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5785         * lib/ctype.in.h: Likewise.
5786         * lib/dirent.in.h: Likewise.
5787         * lib/errno.in.h: Likewise.
5788         * lib/fcntl.in.h: Likewise.
5789         * lib/float.in.h: Likewise.
5790         * lib/getopt.in.h: Likewise.
5791         * lib/iconv.in.h: Likewise.
5792         * lib/langinfo.in.h: Likewise.
5793         * lib/locale.in.h: Likewise.
5794         * lib/math.in.h: Likewise.
5795         * lib/netdb.in.h: Likewise.
5796         * lib/netinet_in.in.h: Likewise.
5797         * lib/poll.in.h: Likewise.
5798         * lib/pthread.in.h: Likewise.
5799         * lib/pty.in.h: Likewise.
5800         * lib/sched.in.h: Likewise.
5801         * lib/se-selinux.in.h: Likewise.
5802         * lib/search.in.h: Likewise.
5803         * lib/signal.in.h: Likewise.
5804         * lib/spawn.in.h: Likewise.
5805         * lib/stdarg.in.h: Likewise.
5806         * lib/stddef.in.h: Likewise.
5807         * lib/stdint.in.h: Likewise.
5808         * lib/stdio.in.h: Likewise.
5809         * lib/stdlib.in.h: Likewise.
5810         * lib/string.in.h: Likewise.
5811         * lib/strings.in.h: Likewise.
5812         * lib/sys_file.in.h: Likewise.
5813         * lib/sys_ioctl.in.h: Likewise.
5814         * lib/sys_select.in.h: Likewise.
5815         * lib/sys_socket.in.h: Likewise.
5816         * lib/sys_stat.in.h: Likewise.
5817         * lib/sys_time.in.h: Likewise.
5818         * lib/sys_times.in.h: Likewise.
5819         * lib/sys_uio.in.h: Likewise.
5820         * lib/sys_utsname.in.h: Likewise.
5821         * lib/sys_wait.in.h: Likewise.
5822         * lib/sysexits.in.h: Likewise.
5823         * lib/termios.in.h: Likewise.
5824         * lib/time.in.h: Likewise.
5825         * lib/unistd.in.h: Likewise.
5826         * lib/wchar.in.h: Likewise.
5827         * lib/wctype.in.h: Likewise.
5828         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5829         * modules/ctype (Makefile.am): Likewise.
5830         * modules/dirent (Makefile.am): Likewise.
5831         * modules/errno (Makefile.am): Likewise.
5832         * modules/fcntl-h (Makefile.am): Likewise.
5833         * modules/float (Makefile.am): Likewise.
5834         * modules/getopt-posix (Makefile.am): Likewise.
5835         * modules/iconv-h (Makefile.am): Likewise.
5836         * modules/langinfo (Makefile.am): Likewise.
5837         * modules/locale (Makefile.am): Likewise.
5838         * modules/math (Makefile.am): Likewise.
5839         * modules/netdb (Makefile.am): Likewise.
5840         * modules/netinet_in (Makefile.am): Likewise.
5841         * modules/poll-h (Makefile.am): Likewise.
5842         * modules/pthread (Makefile.am): Likewise.
5843         * modules/pty (Makefile.am): Likewise.
5844         * modules/sched (Makefile.am): Likewise.
5845         * modules/search (Makefile.am): Likewise.
5846         * modules/selinux-h (Makefile.am): Likewise.
5847         * modules/signal (Makefile.am): Likewise.
5848         * modules/spawn (Makefile.am): Likewise.
5849         * modules/stdarg (Makefile.am): Likewise.
5850         * modules/stddef (Makefile.am): Likewise.
5851         * modules/stdint (Makefile.am): Likewise.
5852         * modules/stdio (Makefile.am): Likewise.
5853         * modules/stdlib (Makefile.am): Likewise.
5854         * modules/string (Makefile.am): Likewise.
5855         * modules/strings (Makefile.am): Likewise.
5856         * modules/sys_file (Makefile.am): Likewise.
5857         * modules/sys_ioctl (Makefile.am): Likewise.
5858         * modules/sys_select (Makefile.am): Likewise.
5859         * modules/sys_socket (Makefile.am): Likewise.
5860         * modules/sys_stat (Makefile.am): Likewise.
5861         * modules/sys_time (Makefile.am): Likewise.
5862         * modules/sys_times (Makefile.am): Likewise.
5863         * modules/sys_uio (Makefile.am): Likewise.
5864         * modules/sys_utsname (Makefile.am): Likewise.
5865         * modules/sys_wait (Makefile.am): Likewise.
5866         * modules/sysexits (Makefile.am): Likewise.
5867         * modules/termios (Makefile.am): Likewise.
5868         * modules/time (Makefile.am): Likewise.
5869         * modules/unistd (Makefile.am): Likewise.
5870         * modules/wchar (Makefile.am): Likewise.
5871         * modules/wctype-h (Makefile.am): Likewise.
5872         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5873
5874 2011-05-29  Bruno Haible  <bruno@clisp.org>
5875
5876         assert-h: Allow multiple gnulib generated replacements to coexist.
5877         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5878
5879 2011-05-29  Bruno Haible  <bruno@clisp.org>
5880
5881         argp: Allow coexistence with strerror_r-posix module.
5882         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5883         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5884         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5885         not the glibc signature.
5886
5887 2011-05-28  Bruno Haible  <bruno@clisp.org>
5888
5889         gnulib-tool: Alternative structure of testdirs, similar to --import.
5890         * gnulib-tool: New option --single-configure.
5891         (func_usage): Document it.
5892         (single_configure): New variable.
5893         (func_modules_transitive_closure_separately,
5894         func_modules_transitive_closure_separately,
5895         func_determine_use_libtests, func_modules_add_dummy_separately,
5896         func_modules_to_filelist_separately): New functions, extracted from
5897         func_import.
5898         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5899         (func_import): Use the new functions.
5900         (func_create_testdir): Set final_modules. Handle $single_configure =
5901         true case.
5902
5903 2011-05-28  Bruno Haible  <bruno@clisp.org>
5904
5905         getloadavg: Remove an unreliable safety check.
5906         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5907         getloadavg.c is in place.
5908         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5909         Reported by Sam Steingold <sds@gnu.org>.
5910
5911 2011-05-28  Bruno Haible  <bruno@clisp.org>
5912
5913         doc: Cleanup yet another file produced by texinfo.tex.
5914         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5915
5916 2011-05-28  Bruno Haible  <bruno@clisp.org>
5917
5918         Finish the conditional dependencies mechanism.
5919         * gnulib-tool: New option --no-conditional-dependencies.
5920         (func_usage): Document it. Don't mark --conditional-dependencies as
5921         experimental.
5922         (cond_dependencies): The possible values can now be true, false, empty.
5923         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5924         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5925         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5926
5927 2011-05-28  Bruno Haible  <bruno@clisp.org>
5928
5929         doc: Use a recent texinfo.tex.
5930         * doc/Makefile (tex_opts): New variable.
5931         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5932
5933 2011-05-28  Jim Meyering  <meyering@redhat.com>
5934
5935         intprops.h: adjust comment to match code change
5936         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5937         only once, it *may* have side effects.  Also fix an unrelated typo.
5938         (_GL_INT_SIGNED): Likewise.
5939
5940 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5941
5942         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5943
5944 2011-05-26  Bruno Haible  <bruno@clisp.org>
5945
5946         mbsrchr: Avoid collision with system function on Interix.
5947         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
5948         Reported by Markus Duft <mduft@gentoo.org>.
5949
5950 2011-05-15  James Youngman  <jay@gnu.org>
5951
5952         getopt: for ambiguous options, enumerate the possibilities.
5953         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
5954         the ambiguous options when an ambiguous prefix is given. This was
5955         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
5956         glibc change was
5957         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
5958
5959 2011-05-25  Eric Blake  <eblake@redhat.com>
5960
5961         getcwd: work around mingw bug
5962         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
5963         * doc/posix-functions/getcwd.texi (getcwd): Document it.
5964         Reported by Matthias Bolte.
5965
5966 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
5967
5968         test-intprops: disable -Wtype-limits diagnostics
5969         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
5970         diagnostics.  Otherwise, the integer overflow macros generate many
5971         diagnostics.  Reported by Jim Meyering in
5972         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5973
5974         intprops: shorten, to pacify gcc -Woverlength-strings
5975         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
5976         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
5977         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
5978         likely to run afoul of C compiler limits for string constant lengths.
5979         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
5980
5981 2011-05-24  Eric Blake  <eblake@redhat.com>
5982
5983         docs: document recently fixed glibc printf bug
5984         * doc/posix-functions/fprintf.texi (fprintf): Document it.
5985         * doc/posix-functions/printf.texi (printf): Likewise.
5986         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5987         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5988
5989         closein-tests: convert to init.sh
5990         * modules/closein-tests (Files): Add init.sh
5991         * tests/test-closein.sh Use it.
5992
5993         yesno-tests: convert to init.sh
5994         * modules/yesno-tests (Files): Add init.sh.
5995         * tests/test-yesno.sh: Use it.
5996
5997         atexit-tests: ensure reliable exit status
5998         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
5999         Reported by Bruno Haible.
6000
6001 2011-05-24  Bruno Haible  <bruno@clisp.org>
6002
6003         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6004         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6005         gl_PREREQ_STRERROR_R invocations from here...
6006         * modules/strerror_r-posix (configure.ac): ... to here.
6007
6008 2011-05-24  Eric Blake  <eblake@redhat.com>
6009
6010         strerror_r: fix missing header
6011         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6012
6013         strerror_r: fix AIX test failures
6014         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6015         ERANGE failure.
6016
6017         strerror_r: fix Solaris test failures
6018         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6019         failures.
6020         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6021
6022         strerror_r: enforce POSIX recommendations
6023         * lib/strerror_r.c (safe_copy): New helper method.
6024         (strerror_r): Guarantee a non-empty string.
6025         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6026         recent POSIX rulings and to match our strerror guarantees.
6027         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6028
6029 2011-05-24  Jim Meyering  <meyering@redhat.com>
6030
6031         test-perror2.c: avoid warning about unused variable
6032         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6033
6034 2011-05-24  Eric Blake  <eblake@redhat.com>
6035
6036         perror: avoid spurious test failure on HP-UX
6037         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6038
6039         tests: fix logic bug in init.sh
6040         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6041         shell.
6042
6043 2011-05-24  Jim Meyering  <meyering@redhat.com>
6044
6045         utimensat: do not reference an out-of-scope buffer
6046         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6047         declared in an inner scope, yet "times" would be dereferenced outside
6048         the scope in which "ts" was valid.
6049         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6050         of ts[2] "out/up", so that the use of aliased "times" (via
6051         "times = ts;") does not end up referencing an out-of-scope "ts"
6052
6053         opendir-safer.c: don't clobber errno; don't close negative FD
6054         * lib/opendir-safer.c (opendir_safer):
6055         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6056         file descriptor, and more importantly, don't clobber the
6057         offending errno value with EINVAL.  Before, upon failure
6058         of dup_safer, we would pass the negative file descriptor to
6059         fdopendir, which would clobber errno.
6060
6061 2011-05-23  Bruno Haible  <bruno@clisp.org>
6062
6063         idcache: Fix module description.
6064         * modules/idcache (Include): Set to "idcache.h".
6065
6066 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6067
6068         gnulib-tool: fix portability problem with MacOS sed
6069         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6070         before the "}".  Problem reported by Leo in
6071         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6072         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6073         sed_extract_condition1, sed_extract_condition2.
6074
6075 2011-05-23  Bruno Haible  <bruno@clisp.org>
6076
6077         hash: Simplify autoconf macro.
6078         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6079
6080 2011-05-23  Bruno Haible  <bruno@clisp.org>
6081
6082         getugroups: Fix module description.
6083         * modules/getugroups (Include): Set to "getugroups.h".
6084
6085 2011-05-23  Bruno Haible  <bruno@clisp.org>
6086
6087         linkat: Simplify autoconf macro.
6088         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6089
6090 2011-05-23  Bruno Haible  <bruno@clisp.org>
6091             Eric Blake  <eblake@redhat.com>
6092
6093         linkat, renameat: Update dependencies.
6094         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6095         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6096         symlinkat.
6097
6098 2011-05-23  Jim Meyering  <meyering@redhat.com>
6099
6100         maint.mk: more tight_scope improvements
6101         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6102         (_gl_TS_headers): Define only in if-0'd block.
6103         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6104         sometimes we must *not* use it.  Adjust uses accordingly.
6105         (sc_tight_scope): Use much simpler grep-based test to determine
6106         whether we skip this rule.
6107
6108         maint.mk: generalize/improve the tight-scope rule
6109         * top/maint.mk: Emit a warning when the test is skipped.
6110         (_gl_TS_dir): Add $(srcdir)/ prefix.
6111         (_gl_TS_function_match): Simplify, rather than trying
6112         to enumerate common types.  Otherwise, it would fail to match an
6113         "extern unsigned char const *" declaration in idutils.
6114         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6115         a way to support use of that type of macro.
6116         (_gl_TS_var_match): Simplify regexp.
6117         (_gl_TS_obj_files): New configurable variable.
6118         (_gl_TS_headers): Likewise.
6119
6120 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6121
6122         verify: fix bug when gnulib <assert.h> is also included
6123         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6124         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6125         Perhaps there's a better way, but this fixes the immediate problem.
6126         Problem reported by Bruno Haible in
6127         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6128
6129 2011-05-22  Bruno Haible  <bruno@clisp.org>
6130
6131         xgetcwd: Simplify autoconf macro.
6132         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6133
6134 2011-05-22  Bruno Haible  <bruno@clisp.org>
6135
6136         New module 'mktime-internal'.
6137         * modules/mktime-internal: New file.
6138         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6139         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6140         mktime_internal as a C macro if libc has __mktime_internal.
6141         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6142         conditions.
6143         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6144
6145 2011-05-22  Bruno Haible  <bruno@clisp.org>
6146
6147         timegm: Correct mktime replacement statements.
6148         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6149         defining mktime as a C macro. This completes a 2009-07-28 commit.
6150
6151 2011-05-22  Bruno Haible  <bruno@clisp.org>
6152
6153         timegm: Simplify autoconf macro.
6154         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6155
6156 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6157
6158         clock-time: change to LGPLv2+.
6159         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6160         BSD-like but we have no mark for that; this is good enough for now.
6161
6162 2011-05-21  Bruno Haible  <bruno@clisp.org>
6163
6164         strerror_r: Fix comments.
6165         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6166
6167 2011-05-21  Bruno Haible  <bruno@clisp.org>
6168
6169         relocatable-prog-wrapper: Fix possible link error.
6170         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6171         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6172         (gl_FUNC_SETENV): ... to here.
6173         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6174         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6175
6176 2011-05-21  Bruno Haible  <bruno@clisp.org>
6177
6178         relocatable-prog-wrapper: Assume strerror() exists.
6179         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6180         m4/strerror.m4.
6181         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6182         * lib/relocwrapper.c: Remove mention of strerror module.
6183         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6184         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6185         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6186         C macro.
6187
6188 2011-05-21  Bruno Haible  <bruno@clisp.org>
6189
6190         select: Simplify replacement idiom.
6191         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6192         Win32 platforms.
6193         * lib/sys_select.in.h (select): Simplify accordingly.
6194         * modules/select (Depends-on): Likewise.
6195
6196 2011-05-21  Bruno Haible  <bruno@clisp.org>
6197
6198         mkdir-p: Simplify autoconf macro.
6199         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6200         gl_FUNC_LCHOWN.
6201
6202 2011-05-21  Eric Blake  <eblake@redhat.com>
6203
6204         strerror_r: avoid clobbering strerror on cygwin
6205         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6206         fall back instead to sys_errlist.
6207         * modules/strerror (configure.ac): Add witness.
6208         * tests/test-strerror_r.c (main): Enhance test.
6209         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6210         * tests/test-perror2.c (main): Free memory before exit.
6211
6212 2011-05-21  Bruno Haible  <bruno@clisp.org>
6213
6214         mkdtemp: Use gnulib naming conventions.
6215         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6216         * modules/mkdtemp (configure.ac): Update.
6217
6218 2011-05-20  Eric Blake  <eblake@redhat.com>
6219
6220         strerror_r: avoid corrupting errno on Solaris
6221         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6222         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6223
6224         strerror_r: avoid compiler warning
6225         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6226
6227         strerror_r: simplify AIX code
6228         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6229
6230         test-perror: avoid spurious failure on FreeBSD
6231         * modules/perror-tests (Depends-on): Add strerror, now that
6232         strerror_r no longer pulls it in.
6233
6234 2011-05-20  Bruno Haible  <bruno@clisp.org>
6235
6236         strerror_r-posix: Remove unused dependencies.
6237         * modules/strerror_r-posix (Depends-on): Remove strerror.
6238         Reported by Eric Blake.
6239
6240 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6241
6242         intprops: remove assumption about A|B representation
6243         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6244         is a valid integer if both A and B are.  Although this is true for
6245         all known practical hosts, the C standard doesn't guarantee it,
6246         and the code need not assume it.  Also, this change may work around
6247         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6248         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6249
6250 2011-05-20  Eric Blake  <eblake@redhat.com>
6251
6252         perror: work around FreeBSD bug
6253         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6254         is broken.  Move AC_LIBOBJ...
6255         * modules/perror (configure.ac): Here.
6256         * doc/posix-functions/perror.texi (perror): Document this.
6257         * tests/test-perror2.c (main): Enhance test.
6258
6259         test-perror: check for strerror interactions
6260         * tests/macros.h (STREQ): Add macro.
6261         * modules/perror-tests (Files): Add second test.
6262         * tests/test-perror2.c (main): New file.
6263         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6264
6265         test-perror: rewrite to use init script
6266         * modules/perror-tests (Files): Add init.sh.
6267         * tests/test-perror.sh: Use temporary directory.
6268
6269 2011-05-20  Jim Meyering  <meyering@redhat.com>
6270
6271         maint: replace misused "a" with "an"
6272         * doc/intprops.texi: "a integer"
6273         * doc/regex.texi: "a explanation"
6274         * lib/alignof.h: "a object"
6275         * lib/argmatch.h: "a explanation"
6276         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6277         * lib/stdint.in.h: "a integer"
6278         * lib/userspec.c: "a owner"
6279         * doc/gnulib.texi: Fix "a idea", and reword.
6280
6281 2011-05-19  Jim Meyering  <meyering@redhat.com>
6282
6283         maint: correct misuse of "a" and "an"
6284         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6285         * lib/argp-help.c: "an docum...": s/an/a/
6286         * lib/argp-parse.c: "An vector": s/An/A/
6287         * lib/execute.c: "an native": s/an/a/
6288         * lib/spawn-pipe.c: Likewise.
6289         * lib/gc.h: "an Gc_rc": s/an/a/
6290         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6291         * lib/fts.c: "an stat.st_dev": s/an/a/
6292
6293 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         intprops-tests: work around HP-UX 11.23 cc bug with constants
6296         * tests/test-intprops.c (VERIFY): New macro.
6297         (main): Use it, instead of verify, to work around the compiler bug; see
6298         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6299
6300         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6301         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6302         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6303         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6304         (_GL_REMAINDER_OVERFLOW): Use it.
6305
6306         intprops-tests: revert unsigned part of previous change
6307         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6308         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6309         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6310         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6311
6312 2011-05-19  Bruno Haible  <bruno@clisp.org>
6313
6314         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6315         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6316         strerror_r() returned without filling the buffer.
6317         Reported by Eric Blake.
6318
6319 2011-05-19  Eric Blake  <eblake@redhat.com>
6320
6321         strerror_r: guarantee unchanged errno
6322         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6323         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6324         failure.
6325         * tests/test-strerror_r.c (main): Enhance test.
6326
6327 2011-05-19  Bruno Haible  <bruno@clisp.org>
6328
6329         strerror_r: Reorder #if blocks.
6330         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6331         for consistency with the previous commit.
6332
6333 2011-05-19  Bruno Haible  <bruno@clisp.org>
6334
6335         perror: Avoid clobbering the strerror buffer when possible.
6336         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6337         * lib/strerror.c: Include it.
6338         * modules/strerror (Files): Add lib/strerror-impl.h.
6339         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6340         (my_strerror): New function, defined through lib/strerror-impl.h.
6341         (perror): Use it instead of strerror.
6342         * modules/perror (Files): Add lib/strerror-impl.h.
6343         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6344
6345 2011-05-19  Eric Blake  <eblake@redhat.com>
6346
6347         strerror_r: fix on newer cygwin
6348         * lib/strerror_r.c (strerror_r): Cygwin now has
6349         __xpg_strerror_r, use it.
6350
6351 2011-05-19  Bruno Haible  <bruno@clisp.org>
6352
6353         strerror_r: Avoid clobbering the strerror buffer when possible.
6354         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6355         (sys_nerr, sys_errlist): New declarations.
6356         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6357         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6358         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6359
6360 2011-05-19  Bruno Haible  <bruno@clisp.org>
6361
6362         strerror_r: Fix test failure on mingw.
6363         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6364         EXTEND_STRERROR_R.
6365         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6366         macros from errno.in.h instead.
6367
6368 2011-05-19  Eric Blake  <eblake@redhat.com>
6369
6370         strerror: relax test for Solaris
6371         * tests/test-strerror.c (main): Permit Solaris behavior.
6372         * tests/test-strerror_r.c (main): Likewise.
6373
6374         strerror: enforce POSIX ruling on strerror(0)
6375         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6376         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6377         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6378         * doc/posix-functions/strerror.texi (strerror): Document it.
6379         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6380         * tests/test-strerror.c (main): Strengthen test.
6381         * tests/test-strerror_r.c (main): Likewise.
6382
6383 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6384
6385         intprop-tests: port to older and more-pedantic compilers
6386         * modules/intprops-tests (Files): Add tests/macros.h.
6387         * tests/test-intprops.c: Include macros.h.
6388         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6389         it's no longer documented to expand to an integer constant expression.
6390         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6391         argument is floating point, as it's no longer documented to expand
6392         to an integer constant expression in that case.
6393         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6394         compiler bugs reported by Bruno Haible.  See
6395         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6396         (U0, U1): New constants, to work around the same bugs.  Also,
6397         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6398
6399         intprops: work around C compiler bugs
6400         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6401         bug in Sun C 5.11 2010/08/13 and other compilers; see
6402         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6403
6404         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6405         * doc/intprops.texi (Integer Type Determination): Fix
6406         documentation for TYPE_IS_INTEGER: it returns an constant
6407         expression, not an integer constant expression.  Fix doc for
6408         TYPE_SIGNED: it returns an integer constant expression only if its
6409         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6410         hardly worth documented that way....)
6411
6412 2011-05-18  Bruno Haible  <bruno@clisp.org>
6413
6414         strerror_r: Avoid clobbering the strerror buffer when possible.
6415         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6416         Handle gnulib defined errno values here. When strerror() returns NULL
6417         or an empty string, return EINVAL.
6418         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6419         gnulib defined errno values here.
6420         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6421
6422 2011-05-18  Eric Blake  <eblake@redhat.com>
6423
6424         fnmatch: avoid compiler warning
6425         * lib/fnmatch_loop.c (FCT): Use correct type.
6426         Reported by Matthias Bolte.
6427
6428 2011-05-13  Jim Meyering  <meyering@redhat.com>
6429
6430         maint.mk: three new prohibit_<HDR>_without_use rules
6431         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6432         (sc_prohibit_stdio-safer_without_use): Likewise.
6433         (sc_prohibit_xfreopen_without_use): Likewise.
6434
6435 2011-05-17  Jim Meyering  <meyering@redhat.com>
6436
6437         announce-gen: fail if the NEWS delta is empty
6438         If there's nothing noteworthy in NEWS, then either you forgot
6439         or you shouldn't be releasing.
6440         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6441
6442 2011-05-17  Pádraig Brady <P@draigBrady.com>
6443
6444         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6445         reserved symbols starting with double underscore from the check.
6446
6447 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6448
6449         intprops: add doc
6450         * doc/intprops.texi: New file, documenting intprops.
6451         * doc/gnulib.texi (Particular Modules): Include it.
6452
6453         verify: add doc to gnulib manual and fix example
6454         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6455         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6456         (Compile-time Assertions): Fix example so it can't overflow.
6457
6458 2011-05-17  Jim Meyering  <meyering@redhat.com>
6459
6460         warnings.m4: don't usurp save_CPPFLAGS variable name
6461         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6462
6463         doc: fix typo
6464         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6465
6466 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6467             Bruno Haible  <bruno@clisp.org>
6468
6469         doc: Tweak recent change.
6470         * README (Portability guidelines): Tweak new text.
6471         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6472         Interix 6.1.
6473
6474 2011-05-16  Eric Blake  <eblake@redhat.com>
6475
6476         inttypes: avoid autoconf warning
6477         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6478         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6479
6480 2011-05-16  Sam Steingold <sds@gnu.org>
6481         and Eric Blake  <eblake@redhat.com>
6482
6483         vc-list-files: accept multiple directory operands
6484         * build-aux/vc-list-files: Iterate over all remaining operands.
6485
6486 2011-05-16  Bruno Haible  <bruno@clisp.org>
6487
6488         Fix confusion regarding deprecated modules.
6489         * modules/calloc (Status, Notice): Mark module as deprecated, not
6490         obsolete.
6491         * modules/fnmatch-posix (Status, Notice): Likewise.
6492         * modules/getdate (Status, Notice): Likewise.
6493         * modules/getopt (Status, Notice): Likewise.
6494         * modules/malloc (Status, Notice): Likewise.
6495         * modules/pipe (Status, Notice): Likewise.
6496         * modules/realloc (Status, Notice): Likewise.
6497         * modules/rename-dest-slash (Status, Notice): Likewise.
6498         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6499         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6500         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6501         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6502         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6503
6504 2011-05-16  Bruno Haible  <bruno@clisp.org>
6505
6506         doc: List the target platforms.
6507         * doc/gnulib-intro.texi (Target Platforms): New section.
6508         * doc/gnulib.texi (Introduction): Update menu.
6509         * README (Portability guidelines): Refer to the new section. Update
6510         statement about oldest supported environment. Remove rationale why
6511         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6512         unportable C89 function.
6513         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6514         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6515
6516 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6517
6518         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6519
6520 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6521
6522         intprops-tests: new module
6523         * modules/intprops-tests, tests/test-intprops.c: New files.
6524
6525         intprops: add safe, portable integer overflow checking
6526         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6527         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6528         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6529         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6530         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6531         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6532         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6533         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6534         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6535         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6536         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6537
6538 2011-05-12  James Youngman  <jay@gnu.org>
6539
6540         Add a test for glibc's Bugzilla bug #12378.
6541         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6542         doesn't allow the literal matching of a lone "[" (which is
6543         required by POSIX).
6544         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6545
6546 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6547
6548         Sync glibc change fixing Bugzilla bug #12378.
6549         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6550         beginning and fall back to matching as normal character if the
6551         string ends before the matching ']' is found.  This is what POSIX
6552         requires.
6553
6554 2011-05-13  Eric Blake  <eblake@redhat.com>
6555
6556         getcwd-lgpl: relax test for FreeBSD
6557         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6558         issue.
6559         * tests/test-getcwd-lgpl.c (main): Relax test.
6560         Reported by Matthias Bolte.
6561
6562 2011-05-11  Eric Blake  <eblake@redhat.com>
6563
6564         test-fflush: silence compiler warning
6565         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6566
6567 2011-05-11  Bruno Haible  <bruno@clisp.org>
6568
6569         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6570         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6571         * modules/canonicalize (Depends-on): Add 'nocrash'.
6572         * modules/canonicalize-lgpl (Depends-on): Likewise.
6573         * doc/posix-functions/realpath.texi: Update platforms list.
6574         Reported by Ryan Schmidt <ryandesign@macports.org>.
6575
6576 2011-05-11  Bruno Haible  <bruno@clisp.org>
6577
6578         group-member: Declare function in <unistd.h>.
6579         * lib/unistd.in.h (group_member): New declaration.
6580         * lib/group-member.h: Remove file.
6581         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6582         * tests/test-unistd-c++.cc: Check signature of group_member.
6583         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6584         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6585         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6586         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6587         HAVE_GROUP_MEMBER.
6588         * modules/group-member (Files): Remove lib/group-member.h.
6589         (Depends-on): Add unistd. Specify conditions.
6590         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6591         (Include): Change to <unistd.h>.
6592         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6593         HAVE_GROUP_MEMBER.
6594         * NEWS: Mention the change.
6595         * lib/euidaccess.c: Don't include group-member.h.
6596
6597 2011-05-11  Bruno Haible  <bruno@clisp.org>
6598
6599         group-member: Document module.
6600         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6601         module.
6602
6603 2011-05-11  Bruno Haible  <bruno@clisp.org>
6604
6605         fclose: Fix mistake earlier today.
6606         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6607
6608 2011-05-11  Eric Blake  <eblake@redhat.com>
6609
6610         fclose: preserve fflush errors
6611         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6612         Reported by Jim Meyering.
6613
6614         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6615         * build-aux/bootstrap (check_versions): When no specific version
6616         is required, merely check that the app produces an exit status
6617         that indicates its existence.
6618
6619         maint.mk: drop redundant check
6620         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6621         the same but better.
6622
6623 2011-05-11  Bruno Haible  <bruno@clisp.org>
6624
6625         fclose: Fix possible link error.
6626         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6627         unregister_shadow_fd. Improve comments.
6628         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6629         Eric Blake.
6630
6631 2011-05-11  Jim Meyering  <meyering@redhat.com>
6632
6633         maint.mk: improve "can not" detection and generalize rule name
6634         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6635         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6636         Use the same technique as in sc_prohibit_doubled_word, so that
6637         we recognize "can not" also when the words are separated by a newline.
6638         Suggested by Eric Blake.
6639         (perl_filename_lineno_text_): Define.  Factored out of...
6640         (prohibit_doubled_word_): ...here.  Use the new definition.
6641         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6642         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6643         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6644
6645 2011-05-10  Eric Blake  <eblake@redhat.com>
6646
6647         fclose: avoid double close race when possible
6648         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6649         all but WINDOWS_SOCKETS.
6650
6651 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6652
6653         openat: correct new comment
6654         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6655
6656 2011-05-10  Jim Meyering  <meyering@redhat.com>
6657
6658         openat: add comments
6659         * lib/openat-proc.c (openat_proc_name): Add comments,
6660         mostly from Eric Blake.
6661
6662 2011-05-09  Eric Blake  <eblake@redhat.com>
6663
6664         openat: reduce syscalls in first probe of /proc
6665         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6666         be a directory.  Simplify the probe for .. bugs.
6667         * modules/openat (Depends-on): Drop same-inode.
6668         Reported by Bastien ROUCARIES.
6669
6670 2011-05-09  Jim Meyering  <meyering@redhat.com>
6671
6672         maint.mk: change semantics/name of tight_scope variables
6673         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6674         Rename variables to align with semantics that make them more useful.
6675
6676         maint.mk: tweak new rule's name not to impinge
6677         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6678         (sc_tight_scope): Use new rule name rather than $@-0.
6679
6680         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6681         * top/maint.mk (sc_tight_scope): New rule.
6682         (sc_tight_scope-0): New rule, ifdef'd out.
6683         (_gl_TS_dir): Default.
6684         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6685         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6686
6687 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6688
6689         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6690         Haible <bruno@clisp.org>.
6691
6692 2011-05-08  Bruno Haible  <bruno@clisp.org>
6693
6694         Comments.
6695         * m4/isnanf.m4: Add comment.
6696         * m4/isnanl.m4: Likewise.
6697
6698 2011-05-08  Bruno Haible  <bruno@clisp.org>
6699
6700         glob: Remove obsolete macro.
6701         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6702
6703 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6704
6705         intprops: Sun C 5.11 supports __typeof__
6706         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6707         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6708         which is new.
6709         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6710
6711         intprops: switch to usual gnulib indenting and naming
6712         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6713         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6714
6715         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6716
6717 2011-05-08  Jim Meyering  <meyering@redhat.com>
6718
6719         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6720         * top/maint.mk (release-prep): Use make's --no-print-directory
6721         option when generating the announcement.  This eliminates the
6722         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6723         generated announcement template.
6724
6725 2011-05-08  Bruno Haible  <bruno@clisp.org>
6726
6727         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6728         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6729         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6730
6731 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6732
6733         ignore-value, verify: Omit include files from lib_SOURCES.
6734         * modules/ignore-value, modules/verify (Makefile.am):
6735         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6736         that leads Automake to duplicate use of am__objects_... variables
6737         in Makefile.in.  See
6738         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6739
6740 2011-05-07  Bruno Haible  <bruno@clisp.org>
6741
6742         fclose: Simplify autoconf macro.
6743         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6744         defined.
6745
6746 2011-05-07  Bruno Haible  <bruno@clisp.org>
6747
6748         canonicalize-lgpl: Fix autoconf macro ordering bug.
6749         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6750         gl_STDLIB_H_DEFAULTS.
6751
6752 2011-05-06  Eric Blake  <eblake@redhat.com>
6753
6754         maintainer-makefile: make sc_po_check easier to tune
6755         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6756         to probe for strings, such as an alternate location for gnulib.
6757
6758         fclose: guarantee behavior on seekable stdin
6759         * modules/fclose (Depends-on): Add fflush.
6760         * doc/posix-functions/fclose.texi (fclose): Document this.
6761         * tests/test-fclose.c (main): Make test for this unconditional.
6762
6763 2011-05-06  Bruno Haible  <bruno@clisp.org>
6764
6765         fflush, fpurge: Relicense under LGPLv2+.
6766         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6767         * modules/fpurge (License): Likewise.
6768         With permission from Eric Blake and Jim Meyering.
6769         Suggested by Eric Blake.
6770
6771 2011-05-06  Karl Berry  <karl@gnu.org>
6772
6773         * MODULES.html.sh (func_all_modules): remove exit.
6774
6775 2011-05-06  Jim Meyering  <meyering@redhat.com>
6776
6777         maint.mk: use info-gnu@ as the default only for a stable release
6778         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6779         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6780         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6781         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6782
6783 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6784
6785         assert-h: new module, which supports C1X-style static_assert
6786         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6787         * lib/verify.h: Revamp so that this can be copied into assert.h,
6788         while retaining the ability to use it standalone as before.
6789         Rename private identifiers so as not to encroach on the
6790         standard C namespace, since this is now used by assert.h.
6791         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6792         the old verify_true.
6793         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6794         the old verify_true.  Use _GL_VERIFY_TYPE.
6795         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6796         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6797         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6798         defined when this file is copied into the replacement assert.h.
6799         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6800         and _Static_assert is not built in.
6801         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6802         defined, and use the new macros mentioned above.
6803         * doc/posix-headers/assert.texi: Document this.
6804
6805 2011-05-05  Bruno Haible  <bruno@clisp.org>
6806
6807         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6808         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6809         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6810         gl_REPLACE_FCLOSE here.
6811         * modules/fflush (Depends-on): Remove fclose.
6812         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6813         combination with module 'fclose'.
6814
6815 2011-05-05  Bruno Haible  <bruno@clisp.org>
6816
6817         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6818         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6819         gl_FUNC_FFLUSH.
6820         (gl_FUNC_FFLUSH): Use it.
6821         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6822         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6823         gl_REPLACE_FSEEKO here.
6824
6825 2011-05-05  Bruno Haible  <bruno@clisp.org>
6826
6827         tzset: Relicense under LGPL.
6828         * modules/tzset (License): Change to LGPL.
6829         No agreement needed; it's a no-op.
6830
6831         strtoimax, strtoumax: Relicense under LGPL.
6832         * modules/strtoimax (License): Change to LGPL.
6833         * modules/strtoumax (License): Likewise.
6834         With permission from Jim Meyering, Paul Eggert:
6835         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6836         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6837
6838         getgroups: Relicense under LGPL.
6839         * modules/getgroups (License): Change to LGPL.
6840         With permission from Jim Meyering, Paul Eggert, Eric Blake:
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
6845         nanosleep: Relicense under LGPL.
6846         * modules/nanosleep (License): Change to LGPL.
6847         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6848         Haible:
6849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6850         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6852         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6853
6854         futimens: Relicense under LGPL.
6855         * modules/futimens (License): Change to LGPL.
6856         With permission from Eric Blake:
6857         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6858
6859         fflush: Relicense under LGPL.
6860         * modules/fflush (License): Change to LGPL.
6861         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6862         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6864         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6865
6866         tmpfile: Relicense under LGPL.
6867         * modules/tmpfile (License): Change to LGPL.
6868         With permission from Ben Pfaff:
6869         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6870
6871         isfinite: Relicense under LGPL.
6872         * modules/isfinite (License): Change to LGPL.
6873         With permission from Ben Pfaff, Bruno Haible:
6874         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6876
6877         acosl..tanl: Relicense under LGPL.
6878         * modules/acosl (License): Change to LGPL.
6879         * modules/asinl (License): Likewise.
6880         * modules/atanl (License): Likewise.
6881         * modules/cosl (License): Likewise.
6882         * modules/expl (License): Likewise.
6883         * modules/logl (License): Likewise.
6884         * modules/sinl (License): Likewise.
6885         * modules/sqrtl (License): Likewise.
6886         * modules/tanl (License): Likewise.
6887         Source code originally from glibc and Paolo Bonzini. Agreements:
6888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6890
6891 2011-05-05  Bruno Haible  <bruno@clisp.org>
6892
6893         signal: Define sighandler_t.
6894         * lib/signal.in.h (sighandler_t): New type.
6895         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6896         whether sighandler_t is defined.
6897         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6898         * modules/signal (Depends-on): Add extensions.
6899         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6900         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6901         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6902
6903 2011-05-05  Eric Blake  <eblake@redhat.com>
6904
6905         maint: remove useless REPLACE_*_H macros
6906         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6907         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6908         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6909         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6910         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6911         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6912         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6913         * m4/btowc.m4: Update callers.
6914         * m4/dirfd.m4: Likewise.
6915         * m4/duplocale.m4: Likewise.
6916         * m4/fchdir.m4: Likewise.
6917         * m4/fdopendir.m4: Likewise.
6918         * m4/inet_ntop.m4: Likewise.
6919         * m4/inet_pton.m4: Likewise.
6920         * m4/ioctl.m4: Likewise.
6921         * m4/mbrlen.m4: Likewise.
6922         * m4/mbrtowc.m4: Likewise.
6923         * m4/mbsinit.m4: Likewise.
6924         * m4/mbsnrtowcs.m4: Likewise.
6925         * m4/mbsrtowcs.m4: Likewise.
6926         * m4/poll.m4: Likewise.
6927         * m4/setlocale.m4: Likewise.
6928         * m4/wcrtomb.m4: Likewise.
6929         * m4/wcsnrtombs.m4: Likewise.
6930         * m4/wcsrtombs.m4: Likewise.
6931         * m4/wctob.m4: Likewise.
6932         * m4/wcwidth.m4: Likewise.
6933         * modules/posix_spawn: Likewise.
6934         * modules/posix_spawn_file_actions_addclose: Likewise.
6935         * modules/posix_spawn_file_actions_adddup2: Likewise.
6936         * modules/posix_spawn_file_actions_addopen: Likewise.
6937         * modules/posix_spawn_file_actions_destroy: Likewise.
6938         * modules/posix_spawn_file_actions_init: Likewise.
6939         * modules/posix_spawnattr_destroy: Likewise.
6940         * modules/posix_spawnattr_getflags: Likewise.
6941         * modules/posix_spawnattr_getpgroup: Likewise.
6942         * modules/posix_spawnattr_getschedparam: Likewise.
6943         * modules/posix_spawnattr_getschedpolicy: Likewise.
6944         * modules/posix_spawnattr_getsigdefault: Likewise.
6945         * modules/posix_spawnattr_getsigmask: Likewise.
6946         * modules/posix_spawnattr_init: Likewise.
6947         * modules/posix_spawnattr_setflags: Likewise.
6948         * modules/posix_spawnattr_setpgroup: Likewise.
6949         * modules/posix_spawnattr_setschedparam: Likewise.
6950         * modules/posix_spawnattr_setschedpolicy: Likewise.
6951         * modules/posix_spawnattr_setsigdefault: Likewise.
6952         * modules/posix_spawnattr_setsigmask: Likewise.
6953         * modules/posix_spawnp: Likewise.
6954
6955 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
6956
6957         Add option to do-release-commit-and-tag to specify branch.
6958         * build-aux/do-release-commit-and-tag: Add --branch.
6959
6960 2011-05-03  Bruno Haible  <bruno@clisp.org>
6961
6962         Avoid unnecessary compilation units, through conditional dependencies.
6963         * modules/accept (Depends-on): Add conditions to the dependencies.
6964         * modules/acosl (Depends-on): Likewise.
6965         * modules/argz (Depends-on): Likewise.
6966         * modules/asinl (Depends-on): Likewise.
6967         * modules/atanl (Depends-on): Likewise.
6968         * modules/atoll (Depends-on): Likewise.
6969         * modules/bind (Depends-on): Likewise.
6970         * modules/btowc (Depends-on): Likewise.
6971         * modules/canonicalize-lgpl (Depends-on): Likewise.
6972         * modules/ceil (Depends-on): Likewise.
6973         * modules/ceilf (Depends-on): Likewise.
6974         * modules/ceill (Depends-on): Likewise.
6975         * modules/chdir-long (Depends-on): Likewise.
6976         * modules/chown (Depends-on): Likewise.
6977         * modules/close (Depends-on): Likewise.
6978         * modules/connect (Depends-on): Likewise.
6979         * modules/cosl (Depends-on): Likewise.
6980         * modules/dirfd (Depends-on): Likewise.
6981         * modules/dprintf (Depends-on): Likewise.
6982         * modules/dprintf-posix (Depends-on): Likewise.
6983         * modules/error (Depends-on): Likewise.
6984         * modules/euidaccess (Depends-on): Likewise.
6985         * modules/expl (Depends-on): Likewise.
6986         * modules/faccessat (Depends-on): Likewise.
6987         * modules/fchdir (Depends-on): Likewise.
6988         * modules/fclose (Depends-on): Likewise.
6989         * modules/fcntl (Depends-on): Likewise.
6990         * modules/fdopendir (Depends-on): Likewise.
6991         * modules/fflush (Depends-on): Likewise.
6992         * modules/floor (Depends-on): Likewise.
6993         * modules/floorf (Depends-on): Likewise.
6994         * modules/floorl (Depends-on): Likewise.
6995         * modules/fnmatch (Depends-on): Likewise.
6996         * modules/fopen (Depends-on): Likewise.
6997         * modules/fprintf-posix (Depends-on): Likewise.
6998         * modules/frexp (Depends-on): Likewise.
6999         * modules/frexp-nolibm (Depends-on): Likewise.
7000         * modules/frexpl (Depends-on): Likewise.
7001         * modules/frexpl-nolibm (Depends-on): Likewise.
7002         * modules/fseek (Depends-on): Likewise.
7003         * modules/fsusage (Depends-on): Likewise.
7004         * modules/ftell (Depends-on): Likewise.
7005         * modules/ftello (Depends-on): Likewise.
7006         * modules/futimens (Depends-on): Likewise.
7007         * modules/getcwd (Depends-on): Likewise.
7008         * modules/getcwd-lgpl (Depends-on): Likewise.
7009         * modules/getdelim (Depends-on): Likewise.
7010         * modules/getdomainname (Depends-on): Likewise.
7011         * modules/getgroups (Depends-on): Likewise.
7012         * modules/gethostname (Depends-on): Likewise.
7013         * modules/getline (Depends-on): Likewise.
7014         * modules/getlogin_r (Depends-on): Likewise.
7015         * modules/getopt-posix (Depends-on): Likewise.
7016         * modules/getpeername (Depends-on): Likewise.
7017         * modules/getsockname (Depends-on): Likewise.
7018         * modules/getsockopt (Depends-on): Likewise.
7019         * modules/getsubopt (Depends-on): Likewise.
7020         * modules/getusershell (Depends-on): Likewise.
7021         * modules/glob (Depends-on): Likewise.
7022         * modules/grantpt (Depends-on): Likewise.
7023         * modules/iconv_open (Depends-on): Likewise.
7024         * modules/iconv_open-utf (Depends-on): Likewise.
7025         * modules/inet_ntop (Depends-on): Likewise.
7026         * modules/inet_pton (Depends-on): Likewise.
7027         * modules/ioctl (Depends-on): Likewise.
7028         * modules/isapipe (Depends-on): Likewise.
7029         * modules/isfinite (Depends-on): Likewise.
7030         * modules/isinf (Depends-on): Likewise.
7031         * modules/lchown (Depends-on): Likewise.
7032         * modules/ldexpl (Depends-on): Likewise.
7033         * modules/link (Depends-on): Likewise.
7034         * modules/linkat (Depends-on): Likewise.
7035         * modules/listen (Depends-on): Likewise.
7036         * modules/logl (Depends-on): Likewise.
7037         * modules/lstat (Depends-on): Likewise.
7038         * modules/mbrlen (Depends-on): Likewise.
7039         * modules/mbrtowc (Depends-on): Likewise.
7040         * modules/mbsinit (Depends-on): Likewise.
7041         * modules/mbsnrtowcs (Depends-on): Likewise.
7042         * modules/mbsrtowcs (Depends-on): Likewise.
7043         * modules/mbtowc (Depends-on): Likewise.
7044         * modules/memcmp (Depends-on): Likewise.
7045         * modules/mkdir (Depends-on): Likewise.
7046         * modules/mkdtemp (Depends-on): Likewise.
7047         * modules/mkfifo (Depends-on): Likewise.
7048         * modules/mkfifoat (Depends-on): Likewise.
7049         * modules/mknod (Depends-on): Likewise.
7050         * modules/mkostemp (Depends-on): Likewise.
7051         * modules/mkostemps (Depends-on): Likewise.
7052         * modules/mkstemp (Depends-on): Likewise.
7053         * modules/mkstemps (Depends-on): Likewise.
7054         * modules/mktime (Depends-on): Likewise.
7055         * modules/nanosleep (Depends-on): Likewise.
7056         * modules/open (Depends-on): Likewise.
7057         * modules/openat (Depends-on): Likewise.
7058         * modules/perror (Depends-on): Likewise.
7059         * modules/poll (Depends-on): Likewise.
7060         * modules/popen (Depends-on): Likewise.
7061         * modules/posix_spawn (Depends-on): Likewise.
7062         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7063         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7064         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7065         * modules/posix_spawnp (Depends-on): Likewise.
7066         * modules/pread (Depends-on): Likewise.
7067         * modules/printf-posix (Depends-on): Likewise.
7068         * modules/ptsname (Depends-on): Likewise.
7069         * modules/putenv (Depends-on): Likewise.
7070         * modules/pwrite (Depends-on): Likewise.
7071         * modules/readline (Depends-on): Likewise.
7072         * modules/readlink (Depends-on): Likewise.
7073         * modules/readlinkat (Depends-on): Likewise.
7074         * modules/recv (Depends-on): Likewise.
7075         * modules/recvfrom (Depends-on): Likewise.
7076         * modules/regex (Depends-on): Likewise.
7077         * modules/remove (Depends-on): Likewise.
7078         * modules/rename (Depends-on): Likewise.
7079         * modules/renameat (Depends-on): Likewise.
7080         * modules/rmdir (Depends-on): Likewise.
7081         * modules/round (Depends-on): Likewise.
7082         * modules/roundf (Depends-on): Likewise.
7083         * modules/roundl (Depends-on): Likewise.
7084         * modules/rpmatch (Depends-on): Likewise.
7085         * modules/select (Depends-on): Likewise.
7086         * modules/send (Depends-on): Likewise.
7087         * modules/sendto (Depends-on): Likewise.
7088         * modules/setenv (Depends-on): Likewise.
7089         * modules/setlocale (Depends-on): Likewise.
7090         * modules/setsockopt (Depends-on): Likewise.
7091         * modules/shutdown (Depends-on): Likewise.
7092         * modules/sigaction (Depends-on): Likewise.
7093         * modules/signbit (Depends-on): Likewise.
7094         * modules/sigprocmask (Depends-on): Likewise.
7095         * modules/sinl (Depends-on): Likewise.
7096         * modules/sleep (Depends-on): Likewise.
7097         * modules/snprintf (Depends-on): Likewise.
7098         * modules/snprintf-posix (Depends-on): Likewise.
7099         * modules/socket (Depends-on): Likewise.
7100         * modules/sprintf-posix (Depends-on): Likewise.
7101         * modules/sqrtl (Depends-on): Likewise.
7102         * modules/stat (Depends-on): Likewise.
7103         * modules/strchrnul (Depends-on): Likewise.
7104         * modules/strdup-posix (Depends-on): Likewise.
7105         * modules/strerror (Depends-on): Likewise.
7106         * modules/strerror_r-posix (Depends-on): Likewise.
7107         * modules/strndup (Depends-on): Likewise.
7108         * modules/strnlen (Depends-on): Likewise.
7109         * modules/strptime (Depends-on): Likewise.
7110         * modules/strsep (Depends-on): Likewise.
7111         * modules/strsignal (Depends-on): Likewise.
7112         * modules/strstr-simple (Depends-on): Likewise.
7113         * modules/strtod (Depends-on): Likewise.
7114         * modules/strtoimax (Depends-on): Likewise.
7115         * modules/strtok_r (Depends-on): Likewise.
7116         * modules/strtoumax (Depends-on): Likewise.
7117         * modules/symlink (Depends-on): Likewise.
7118         * modules/symlinkat (Depends-on): Likewise.
7119         * modules/tanl (Depends-on): Likewise.
7120         * modules/tcgetsid (Depends-on): Likewise.
7121         * modules/tmpfile (Depends-on): Likewise.
7122         * modules/trunc (Depends-on): Likewise.
7123         * modules/truncf (Depends-on): Likewise.
7124         * modules/truncl (Depends-on): Likewise.
7125         * modules/uname (Depends-on): Likewise.
7126         * modules/unlink (Depends-on): Likewise.
7127         * modules/unlockpt (Depends-on): Likewise.
7128         * modules/unsetenv (Depends-on): Likewise.
7129         * modules/usleep (Depends-on): Likewise.
7130         * modules/utimensat (Depends-on): Likewise.
7131         * modules/vasprintf (Depends-on): Likewise.
7132         * modules/vdprintf (Depends-on): Likewise.
7133         * modules/vdprintf-posix (Depends-on): Likewise.
7134         * modules/vfprintf-posix (Depends-on): Likewise.
7135         * modules/vprintf-posix (Depends-on): Likewise.
7136         * modules/vsnprintf (Depends-on): Likewise.
7137         * modules/vsnprintf-posix (Depends-on): Likewise.
7138         * modules/vsprintf-posix (Depends-on): Likewise.
7139         * modules/wcrtomb (Depends-on): Likewise.
7140         * modules/wcscasecmp (Depends-on): Likewise.
7141         * modules/wcscspn (Depends-on): Likewise.
7142         * modules/wcsdup (Depends-on): Likewise.
7143         * modules/wcsncasecmp (Depends-on): Likewise.
7144         * modules/wcsnrtombs (Depends-on): Likewise.
7145         * modules/wcspbrk (Depends-on): Likewise.
7146         * modules/wcsrtombs (Depends-on): Likewise.
7147         * modules/wcsspn (Depends-on): Likewise.
7148         * modules/wcsstr (Depends-on): Likewise.
7149         * modules/wcstok (Depends-on): Likewise.
7150         * modules/wcswidth (Depends-on): Likewise.
7151         * modules/wctob (Depends-on): Likewise.
7152         * modules/wctomb (Depends-on): Likewise.
7153         * modules/wctype (Depends-on): Likewise.
7154         * modules/wcwidth (Depends-on): Likewise.
7155         * modules/write (Depends-on): Likewise.
7156
7157 2011-05-03  Bruno Haible  <bruno@clisp.org>
7158
7159         Support for conditional dependencies.
7160         * doc/gnulib.texi (Module description): Document the syntax of
7161         conditional dependencies.
7162         * gnulib-tool: New option --conditional-dependencies.
7163         (func_usage): Document it.
7164         (cond_dependencies): New variable.
7165         (func_get_automake_snippet_conditional,
7166         func_get_automake_snippet_unconditional): New functions, extracted from
7167         func_get_automake_snippet.
7168         (func_get_automake_snippet): Use them.
7169         (sed_first_32_chars): New variable.
7170         (func_module_shellfunc_name): New function.
7171         (func_module_shellvar_name): New function.
7172         (func_module_conditional_name): New function.
7173         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7174         func_cond_module_condition): New functions.
7175         (func_modules_transitive_closure): Add support for conditional
7176         dependencies.
7177         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7178         conditional automake snippet in an automake conditional.
7179         (func_emit_autoconf_snippets): Emit shell functions that contain the
7180         code for conditional modules.
7181         (func_import, func_create_testdir): Update specification.
7182
7183 2011-05-03  Eric Blake  <eblake@redhat.com>
7184
7185         test-getaddrinfo: report error information
7186         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7187
7188 2011-05-03  Jim Meyering  <meyering@redhat.com>
7189
7190         bootstrap: avoid build failure when $GZIP is set
7191         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7192         program name.  If defined at all, it is supposed to list gzip options.
7193         Reported by Alan Curry in http://debbugs.gnu.org/8609
7194
7195 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7196
7197         readme-release: new module with release instructions
7198         * modules/readme-release: New module.
7199         * top/README-release: New file, from coreutils, grep, diffutils.
7200         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7201
7202 2011-05-02  Eric Blake  <eblake@redhat.com>
7203
7204         fflush: also replace fclose when fixing fflush
7205         * modules/fflush (Depends-on): Add fclose.
7206         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7207         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7208         memstreams with no backing fd.
7209         * doc/posix-functions/fclose.texi (fclose): Document the use of
7210         fflush module to fix the bug.
7211         * tests/test-fclose.c (main): Relax test when fclose is used in
7212         isolation.
7213
7214         fclose: add some tests
7215         * modules/fclose-tests: New test module.
7216         * tests/test-fclose.c: New file.
7217         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7218
7219         fclose: reduced dependencies
7220         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7221         simpler lseek.
7222         * lib/fclose.c (rpl_fclose): Likewise.
7223         Reported by Simon Josefsson.
7224
7225         exit: drop remaining clients
7226         * modules/argmatch (Depends-on): Replace exit with stdlib.
7227         * modules/copy-file (Depends-on): Likewise.
7228         * modules/execute (Depends-on): Likewise.
7229         * modules/exitfail (Depends-on): Likewise.
7230         * modules/obstack (Depends-on): Likewise.
7231         * modules/pagealign_alloc (Depends-on): Likewise.
7232         * modules/pipe-filter-gi (Depends-on): Likewise.
7233         * modules/pipe-filter-ii (Depends-on): Likewise.
7234         * modules/savewd (Depends-on): Likewise.
7235         * modules/spawn-pipe (Depends-on): Likewise.
7236         * modules/wait-process (Depends-on): Likewise.
7237         * modules/xsetenv (Depends-on): Likewise.
7238         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7239         * modules/git-merge-changelog (Depends-on): Likewise.
7240         * modules/long-options (Depends-on): Likewise.
7241         * modules/pt_chown (Depends-on): Likewise.
7242         * modules/sysexits (Depends-on): Likewise.
7243
7244         freading: relax license from LGPLv3+ to LGPLv2+
7245         * modules/freading (License): Relax LGPL version.
7246
7247 2011-05-02  Bruno Haible  <bruno@clisp.org>
7248
7249         fchdir: Remove unused dependencies.
7250         * modules/fchdir (Depends-on): Remove include_next.
7251
7252 2011-05-02  Bruno Haible  <bruno@clisp.org>
7253
7254         gnulib-tool: Refactor.
7255         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7256         from func_emit_autoconf_snippets.
7257         (func_emit_autoconf_snippets): Use it.
7258
7259 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7260
7261         * NEWS: Document removal of 'exit'.
7262         * modules/exit: Remove file.
7263
7264 2011-05-01  Bruno Haible  <bruno@clisp.org>
7265
7266         Update DEPENDENCIES.
7267         * DEPENDENCIES (gettext): Recommend the newest release.
7268         Reported by Simon Josefsson.
7269
7270 2011-05-01  Bruno Haible  <bruno@clisp.org>
7271
7272         gnulib-tool: Reduce code duplication.
7273         * gnulib-tool (func_emit_autoconf_snippets): New function.
7274         (func_import, func_create_testdir): Use it.
7275
7276 2011-04-30  Eric Blake  <eblake@redhat.com>
7277
7278         fclose: don't fail on non-seekable input stream
7279         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7280         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7281         since fflush is allowed to fail in that case.
7282
7283 2011-04-30  Bruno Haible  <bruno@clisp.org>
7284
7285         dup3: cleanup
7286         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7287
7288 2011-04-30  Bruno Haible  <bruno@clisp.org>
7289
7290         netdb: Make it work in C++ mode.
7291         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7292         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7293         module.
7294         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7295         gl_MODULE_INDICATOR_FOR_TESTS.
7296         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7297         * modules/netdb-c++-tests: New file.
7298         * tests/test-netdb-c++.cc: New file.
7299
7300 2011-04-30  Bruno Haible  <bruno@clisp.org>
7301
7302         New modules 'vfscanf', 'vscanf'.
7303         * modules/vfscanf: New file.
7304         * modules/vscanf: New file.
7305         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7306         here.
7307         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7308         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7309
7310 2011-04-30  Bruno Haible  <bruno@clisp.org>
7311
7312         passfd: Add comments.
7313         * lib/passfd.c: Add comments about platforms.
7314
7315 2011-04-30  Bruno Haible  <bruno@clisp.org>
7316
7317         sys_uio: Make <sys/uio.h> self-contained.
7318         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7319         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7320
7321 2011-04-30  Bruno Haible  <bruno@clisp.org>
7322
7323         sys_socket: Ensure 'struct iovec' definition.
7324         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7325         <sys/socket.h>.
7326         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7327
7328 2011-04-30  Bruno Haible  <bruno@clisp.org>
7329
7330         sys_uio: Protect definition of 'struct iovec'.
7331         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7332         it as a C struct.
7333
7334 2011-04-30  Bruno Haible  <bruno@clisp.org>
7335
7336         manywarnings: fix indentation
7337         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7338
7339 2011-04-30  Pádraig Brady <P@draigBrady.com>
7340
7341         manywarnings: add -Wno-missing-field-initializers if needed.
7342         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7343         option if it's needed to allow initialization with { 0, }
7344
7345 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7346
7347         announce-gen: cosmetic improvement
7348         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7349
7350 2011-04-29  Jim Meyering  <meyering@redhat.com>
7351
7352         vc-list-files: indent with spaces, not TABs
7353         * build-aux/vc-list-files: Convert leading TABs to spaces,
7354         to match the style of most other files in gnulib.
7355
7356         announce-gen: indent with spaces, not TABs
7357         * build-aux/announce-gen: Convert all TABs to spaces, to match
7358         the style of most other files in gnulib.
7359
7360 2011-04-29  Eric Blake  <eblake@redhat.com>
7361
7362         quotearg: avoid uninitialized variable use
7363         * lib/quotearg.c (quoting_options_from_style): Initialize
7364         remaining fields, and ensure that custom styles are only used via
7365         quoting_options rather than quoting_style.
7366
7367 2011-04-29  Jim Meyering  <meyering@redhat.com>
7368
7369         maint.mk: remove unused VC-tag variable
7370         * top/maint.mk (VC-tag): Remove unused variable.
7371
7372 2011-04-29  Bruno Haible  <bruno@clisp.org>
7373
7374         netdb: fix gai_strerror replacements
7375         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7376         * modules/netdb: Substitute it.
7377
7378 2011-04-29  Jim Meyering  <meyering@redhat.com>
7379
7380         test-getcwd.c: avoid new set-but-not-used warning
7381         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7382         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7383         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7384         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7385
7386         test-hash.c: avoid a new shadowing warning
7387         * tests/test-hash.c (main): Don't shadow "dup".
7388
7389 2011-04-28  Eric Blake  <eblake@redhat.com>
7390
7391         getaddrinfo: fix gai_strerror signature
7392         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7393         and work around mingw with UNICODE defined.
7394         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7395         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7396         * modules/netdb (Makefile.am): Substitute it.
7397         * lib/netdb.in.h (gai_strerror): Declare replacement.
7398         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7399         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7400         the fix.
7401
7402         getsockopt: avoid compiler warning
7403         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7404         Reported by Matthias Bolte.
7405
7406         tests: drop unused link dependency
7407         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7408         * modules/dirent-safer-tests (Makefile.am): Likewise.
7409         * modules/fdopendir-tests (Makefile.am): Likewise.
7410         * modules/mkfifoat-tests (Makefile.am): Likewise.
7411         * modules/openat-safer-tests (Makefile.am): Likewise.
7412         * modules/openat-tests (Makefile.am): Likewise.
7413         * modules/readlinkat-tests (Makefile.am): Likewise.
7414         * modules/symlinkat-tests (Makefile.am): Likewise.
7415         * modules/linkat-tests (Makefile.am): Likewise.
7416         (Depends-on): Switch to filenamecat-lgpl.
7417         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7418         LIBINTL.
7419         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7420         * tests/test-linkat.c (main): Don't require xalloc.
7421
7422         hash, mgetgroups: drop xalloc dependency
7423         * lib/hash.c (includes): Adjust includes.
7424         * lib/mgetgroups.c (includes): Likewise.
7425         (xgetgroups): Move...
7426         * lib/xgetgroups.c: ...to new file.
7427         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7428         * modules/xgetgroups: New file, split from...
7429         * modules/mgetgroups: ...here.
7430         (Depends-on): Add xalloc-oversized.
7431         * modules/hash (Depends-on): Likewise.
7432         * modules/hash-tests (Depends-on): Drop xalloc.
7433         (test_hash_LDADD): Drop unused library.
7434         * tests/test-hash.c (main): Break xalloc dependency.
7435         (includes): Drop unused include.
7436
7437         xalloc-oversized: new module
7438         * modules/xalloc-oversized: New module.
7439         * modules/xalloc (Depends-on): Add it.
7440         * lib/xalloc.h (xalloc_oversized): Move...
7441         * lib/xalloc-oversized.h: ...into new file.
7442
7443         utimecmp: drop dependency on xmalloc
7444         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7445         due to memory pressure.
7446         * modules/utimecmp (Depends-on): Drop xalloc.
7447
7448 2011-04-27  Eric Blake  <eblake@redhat.com>
7449
7450         getcwd: fix mingw bugs
7451         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7452         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7453         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7454
7455 2011-04-27  Bruno Haible  <bruno@clisp.org>
7456
7457         mkstemps: Ensure declaration on MacOS X 10.5.
7458         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7459         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7460         MacOS X.
7461
7462 2011-04-27  Bruno Haible  <bruno@clisp.org>
7463
7464         mkstemp: More documentation.
7465         * doc/posix-functions/mkstemp.texi: Document header file problem on
7466         MacOS X.
7467
7468 2011-04-27  Bruno Haible  <bruno@clisp.org>
7469
7470         mkstemp: Tweak configure message when cross-compiling.
7471         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7472         result as a guess.
7473
7474 2011-04-27  Bruno Haible  <bruno@clisp.org>
7475
7476         clean-temp: Clarify what it does.
7477         * lib/clean-temp.h: Add more comments.
7478         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7479         module.
7480         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7481         * doc/glibc-functions/mkstemps.texi: Likewise.
7482         * doc/glibc-functions/mkostemps.texi: Likewise.
7483
7484 2011-04-27  Eric Blake  <eblake@redhat.com>
7485
7486         fchdir: avoid extra chdir and fix test
7487         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7488         getcwd-lgpl.
7489         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7490         have to be canonical.
7491         (canonicalize_file_name): Drop unused macro.
7492         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7493
7494         filenamecat-lgpl: fix licence
7495         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7496         when it was first created.
7497
7498         linkat, renameat: add missing dependency
7499         * modules/linkat (Depends-on): Require getcwd-lgpl.
7500         * modules/renameat (Depends-on): Likewise.
7501
7502         tests: reduce dependencies
7503         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7504         * tests/test-renameat.c (main): Likewise.
7505         * modules/linkat-tests (Depends-on): Relax dependency.
7506         * modules/renameat-tests (Depends-on): Likewise.
7507         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7508         dependency explicit.
7509
7510         save-cwd: reduce default dependency
7511         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7512         * lib/save-cwd.c: Update comments.
7513         * NEWS: Document the semantic change.
7514
7515         getcwd: enhance tests
7516         * tests/test-getcwd-lgpl.c: New file, taken from...
7517         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7518         repeat long path stress tests from m4 probe.
7519         * modules/getcwd-lgpl-tests: New module.
7520         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7521         * m4/getcwd-abort-bug.m4: Update comment.
7522         * m4/getcwd-path-max.m4: Likewise.
7523
7524         getcwd-lgpl: new module
7525         * modules/getcwd-lgpl: New module.
7526         * lib/getcwd-lgpl.c: New file.
7527         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7528         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7529         * modules/getcwd (configure.ac): Set C witness.
7530         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7531
7532         getcwd: tweak comments
7533         * m4/getcwd-abort-bug.m4: Fix comments.
7534         * m4/getcwd-path-max.m4: Likewise.
7535         * m4/getcwd.m4: Likewise.
7536
7537 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7538         and Eric Blake  <eblake@redhat.com>
7539
7540         mkstemp: replace if system version uses wrong permissions
7541         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7542         read/write mode bits set in file created by mkstemp.
7543         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7544
7545 2011-04-27  Eric Blake  <eblake@redhat.com>
7546
7547         passfd: avoid compiler warning
7548         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7549         Reported by Laine Stump.
7550
7551 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7552
7553         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7554         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7555
7556 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7557         and Eric Blake  <eblake@redhat.com>
7558
7559         mkstemp: mention clean-temp module
7560         * lib/mkstemp.c: Add comment.
7561         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7562
7563 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7564
7565         inttypes: also provide default values for 32-bit tests
7566         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7567         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7568
7569 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7570
7571         strtoumax: remove dependency on strtoimax
7572         This is like the strtoull change of yesterday.
7573         * modules/strtoumax (Files): Add lib/strtoimax.c.
7574         (Depends-on): Remove strtoimax and add verify.
7575
7576         inttypes-incomplete: new module
7577         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7578         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7579         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7580         of gl_INTTYPES_H.
7581         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7582         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7583         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7584         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7585         * modules/strtoumax, modules/xstrtol (Depends-on):
7586         Depend on inttypes-incomplete, not inttypes.
7587         * modules/inttypes-incomplete: New module, containing the contents
7588         of the old modules/inttypes module, except that the Files: section
7589         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7590         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7591         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7592         (Depends-on): Depend only on inttypes-incomplete.
7593         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7594
7595         inttypes: omit now-redundant strtoimax and strtoumax work
7596         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7597         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7598
7599         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7600         This supports apps that need pointers to strtoimax and strtoumax,
7601         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7602         nonexistent functions.  See
7603         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7604         et seq.
7605         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7606         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7607         a macro.
7608         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7609
7610 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7611
7612         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7613
7614 2011-04-25  Bruno Haible  <bruno@clisp.org>
7615
7616         strtol, strtoul: Mark modules as obsolete.
7617         * modules/strtol (Status, Notice): New sections.
7618         * modules/strtoul (Status, Notice): New sections.
7619
7620 2011-04-25  Bruno Haible  <bruno@clisp.org>
7621
7622         strtod: Remove check for strtod, unless supporting old platforms.
7623         * modules/strtod-obsolete: New file.
7624         * m4/strtod-obsolete.m4: New file.
7625         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7626         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7627         * modules/strtod (Depends-on): Add strtod-obsolete.
7628         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7629
7630 2011-04-25  Bruno Haible  <bruno@clisp.org>
7631
7632         strcase: Make module obsolete.
7633         * modules/strcase (Status, Notice): New sections.
7634
7635 2011-04-25  Bruno Haible  <bruno@clisp.org>
7636
7637         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7638         * modules/dup2-obsolete: New file.
7639         * m4/dup2-obsolete.m4: New file.
7640         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7641         gl_FUNC_DUP2_OBSOLETE is not also defined.
7642         * modules/dup2 (Depends-on): Add dup2-obsolete.
7643         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7644
7645 2011-04-25  Bruno Haible  <bruno@clisp.org>
7646
7647         strnlen: Avoid memchr related link error on old obsolete platforms.
7648         * modules/memchr-obsolete: New file.
7649         * m4/memchr-obsolete.m4: New file.
7650         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7651         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7652         * modules/memchr (Depends-on): Add memchr-obsolete.
7653         * modules/strnlen (Depends-on): Likewise.
7654         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7655
7656 2011-04-25  Jim Meyering  <meyering@redhat.com>
7657
7658         maint.mk: makefile_at_at_check extend and clean up
7659         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7660         in addition to */Makefile.am.
7661         Exempt legitimate uses of @VAR@ notation, e.g.,
7662         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7663         Remove obsolete coreutils-specific comment.
7664         Prompted by discussion here:
7665         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7666
7667 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7668
7669         strtoul: remove dependency on strtol
7670         This is so that 'configure' need not check for strtol merely because
7671         the application needs strtoul.
7672         * modules/strtoul (Files): Add lib/strtol.c.
7673         (Depends-on): Remove strtol.
7674
7675         strtoull: remove dependency on strtoul
7676         This is like the strtoll change.
7677         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7678         (Depends-on): Remove strtoul.
7679
7680         strtoll: remove dependency on strtol
7681         This is so that 'configure' need not check for strtol merely because
7682         the application needs strtoll.
7683         * modules/strtoll (Files): Add lib/strtol.c.
7684         (Depends-on): Remove strtol.
7685
7686 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7687
7688         inttypes: Move some configure check to module 'imaxdiv'.
7689         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7690         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7691         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7692
7693 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7694
7695         inttypes: Move some configure check to module 'imaxabs'.
7696         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7697         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7698         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7699
7700 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7701
7702         inttypes: Remove configure tests that are not needed since 2009-12-31.
7703         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7704         gl_cv_header_working_inttypes_h.
7705
7706 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7707
7708         * modules/strnlen (Depends-on): Remove memchr.
7709         The strnlen implementation doesn't need the memchr module's fixes; see
7710         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7711
7712         strtol: remove dependency on wchar
7713         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7714         * modules/strtol (Depends-on): Remove wchar.
7715
7716 2011-04-21  Eric Blake  <eblake@redhat.com>
7717
7718         passfd: fix test regression on Linux
7719         * modules/passfd-tests (configure.ac): Correct socketpair check.
7720
7721         passfd: speed up configure and drop unused code
7722         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7723         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7724         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7725         Instead of probing at configure for unix_scm_rights_bsd44_way,
7726         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7727         check to a struct member probe.
7728         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7729         (sendfd, recvfd): Update preprocessor checks.
7730         * modules/passfd (Files): Reflect rename, and drop unused file.
7731         (Depends-on): Drop unused dependency.
7732
7733         passfd: allow compilation on mingw
7734         * modules/sys_socket (Depends-on): Add sys_uio.
7735         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7736         iovec and a minimal struct msghdr.
7737         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7738         * tests/test-sys_socket.c (main): Enhance test.
7739         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7740         guaranteed to provide what we need.
7741         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7742         * modules/passfd-tests (Depends-on): Add sys_wait.
7743         * tests/test-passfd.c (main): Skip test on mingw, for now.
7744         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7745         partial 'struct msghdr' implementation.
7746
7747         sys_uio: new module
7748         * modules/sys_uio: New module.
7749         * modules/sys_uio-tests: Likewise.
7750         * lib/sys_uio.in.h: New file.
7751         * m4/sys_uio_h.m4: Likewise.
7752         * tests/test-sys_uio.c: Likewise.
7753         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7754         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7755
7756 2011-04-20  Jim Meyering  <meyering@redhat.com>
7757
7758         useless-if-before-free: avoid false-positive
7759         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7760         disjunct so that it too requires a terminating ";".  Without that,
7761         this script would identify as useless one statement from gcc that
7762         was not:
7763           if (aligned_ptr)
7764             free (((void **) aligned_ptr) [-1]);
7765
7766 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7767
7768         doc: update users.txt.
7769         * users.txt: Add barcode.
7770
7771 2011-04-19  Bruno Haible  <bruno@clisp.org>
7772
7773         ioctl: Remove link dependency on native Windows.
7774         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7775         (gl_close_fn, gl_ioctl_fn): New types.
7776         (struct fd_hook): Renamed from struct close_hook. Change type of
7777         private_close_fn field. Add private_ioctl_fn field.
7778         (close_hook_fn): Add parameter for primary close method.
7779         (execute_close_hooks, execute_all_close_hooks): Likewise.
7780         (ioctl_hook_fn): New type.
7781         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7782         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7783         argument.
7784         (unregister_fd_hook): Renamed from unregister_close_hook.
7785         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7786         Don't include <unistd.h>.
7787         (close): Remove undef.
7788         (anchor): Update.
7789         (execute_close_hooks): Add argument for primary close method.
7790         (execute_all_close_hooks): Likewise.
7791         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7792         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7793         argument. Allow each argument to be NULL.
7794         (unregister_fd_hook): Renamed from unregister_close_hook.
7795         * lib/close.c (rpl_close): Pass 'close' function pointer to
7796         execute_all_close_hooks.
7797         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7798         (primary_ioctl): New function.
7799         (ioctl): Don't call ioctlsocket here. Instead, call
7800         execute_all_ioctl_hooks.
7801         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7802         close method.
7803         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7804         (fd_sockets_hook): Renamed from close_sockets_hook.
7805         (gl_sockets_startup, gl_sockets_cleanup): Update.
7806         * modules/fd-hook: Renamed from modules/close-hook. Update.
7807         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7808         * modules/sockets (Depends-on): Likewise.
7809         * modules/ioctl (Depends-on): Add fd-hook.
7810         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7811         GNULIB_SOCKET.
7812
7813 2011-04-19  Bruno Haible  <bruno@clisp.org>
7814
7815         Move the support of O_NONBLOCK in open() to the 'open' module.
7816         * modules/nonblocking (Depends-on): Remove 'open'.
7817         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7818         gl_cv_have_open_O_NONBLOCK.
7819         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7820         O_NONBLOCK support.
7821         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7822
7823 2011-04-17  Bruno Haible  <bruno@clisp.org>
7824
7825         pipe2: Simplify code.
7826         * lib/pipe2.c (pipe2): Reduce code duplication.
7827
7828 2011-04-17  Bruno Haible  <bruno@clisp.org>
7829
7830         nonblocking: Add comment.
7831         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7832
7833 2011-04-17  Bruno Haible  <bruno@clisp.org>
7834
7835         nonblocking: Add tests for sockets.
7836         * tests/test-nonblocking-socket.sh: New file.
7837         * tests/test-nonblocking-socket-main.c: New file.
7838         * tests/test-nonblocking-socket-child.c: New file.
7839         * tests/test-nonblocking-socket.h: New file.
7840         * tests/socket-server.h: New file.
7841         * tests/socket-client.h: New file.
7842         * modules/nonblocking-socket-tests: New file.
7843         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7844
7845 2011-04-17  Bruno Haible  <bruno@clisp.org>
7846
7847         nonblocking: Add tests for pipes.
7848         * tests/test-nonblocking-pipe.sh: New file.
7849         * tests/test-nonblocking-pipe-main.c: New file.
7850         * tests/test-nonblocking-pipe-child.c: New file.
7851         * tests/test-nonblocking-pipe.h: New file.
7852         * tests/test-nonblocking-writer.h: New file.
7853         * tests/test-nonblocking-reader.h: New file.
7854         * tests/test-nonblocking-misc.h: New file.
7855         * modules/nonblocking-pipe-tests: New file.
7856         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7857
7858 2011-04-16  Bruno Haible  <bruno@clisp.org>
7859
7860         gettext: Clarify the needed programmer actions.
7861         * modules/gettext (Notice): New field.
7862         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7863
7864 2011-04-16  Bruno Haible  <bruno@clisp.org>
7865
7866         strchrnul: Tweak last commit.
7867         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7868         bug.
7869         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7870         as in _GL_FUNCDECL_SYS.
7871         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7872         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7873
7874 2011-04-15  Eric Blake  <eblake@redhat.com>
7875
7876         strchrnul: work around cygwin bug
7877         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7878         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7879         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7880         * modules/string (Makefile.am): Substitute it.
7881         * lib/string.in.h (strchrnul): Use it.
7882
7883 2011-04-15  Bruno Haible  <bruno@clisp.org>
7884
7885         Don't require lib/stdio-write.c when only module 'stdio' is used.
7886         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7887         invocation.
7888         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7889
7890 2011-04-14  Bruno Haible  <bruno@clisp.org>
7891
7892         Support non-blocking pipe I/O in read() on native Windows.
7893         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7894         (read): New declaration.
7895         * lib/read.c: New file.
7896         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7897         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7898         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7899         vscanf): New declarations.
7900         * lib/stdio-read.c: New file.
7901         * m4/read.m4: New file.
7902         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7903         REPLACE_READ.
7904         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7905         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7906         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7907         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7908         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7909         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7910         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7911         * modules/read: New file.
7912         * modules/nonblocking (Files): Add lib/stdio-read.c.
7913         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7914         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7915         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7916         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7917         * modules/pread (Depends-on): Add read.
7918         * modules/safe-read (Depends-on): Likewise.
7919         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7920         gets, scanf, vfscanf, vscanf): Verify signatures.
7921         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7922         problem with non-blocking pipes.
7923         * doc/posix-functions/fgetc.texi: Likewise.
7924         * doc/posix-functions/fgets.texi: Likewise.
7925         * doc/posix-functions/fread.texi: Likewise.
7926         * doc/posix-functions/fscanf.texi: Likewise.
7927         * doc/posix-functions/getc.texi: Likewise.
7928         * doc/posix-functions/getchar.texi: Likewise.
7929         * doc/posix-functions/gets.texi: Likewise.
7930         * doc/posix-functions/scanf.texi: Likewise.
7931         * doc/posix-functions/vfscanf.texi: Likewise.
7932         * doc/posix-functions/vscanf.texi: Likewise.
7933
7934 2011-04-14  Bruno Haible  <bruno@clisp.org>
7935
7936         Support non-blocking pipe I/O in write() on native Windows.
7937         * lib/write.c (rpl_write): Split a write request that failed merely
7938         because the byte count was larger than the pipe buffer's size.
7939         * doc/posix-functions/write.texi: Mention the problem with large byte
7940         counts.
7941
7942 2011-04-14  Bruno Haible  <bruno@clisp.org>
7943
7944         wchar: Ensure that wchar_t gets defined on uClibc.
7945         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7946         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
7947
7948 2011-04-13  Bruno Haible  <bruno@clisp.org>
7949
7950         safe-write, full-read: Avoid unnecessary compilation units.
7951         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
7952         (Depends-on): Remove safe-read. Add ssize_t.
7953         * modules/full-read (Files): Add lib/full-write.c.
7954         (Depends-on): Add full-write.
7955
7956 2011-04-13  Bruno Haible  <bruno@clisp.org>
7957
7958         Support non-blocking pipe I/O and SIGPIPE in pwrite().
7959         * modules/pwrite (Depends-on): Add 'write'.
7960
7961 2011-04-13  Bruno Haible  <bruno@clisp.org>
7962
7963         Support non-blocking pipe I/O in write() on native Windows.
7964         * lib/unistd.in.h (write): Enable replacement also if
7965         GNULIB_UNISTD_H_NONBLOCKING is 1.
7966         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
7967         (rpl_write): When failing to write on a non-blocking pipe, change
7968         errno from ENOSPC to EAGAIN.
7969         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
7970         putchar, puts, vfprintf, vprintf): Enable replacement also if
7971         GNULIB_STDIO_H_NONBLOCKING is 1.
7972         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
7973         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
7974         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
7975         CALL_WITH_SIGPIPE_EMULATION.
7976         (CALL_WITH_SIGPIPE_EMULATION): Use them.
7977         * m4/nonblocking.m4: New file.
7978         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
7979         for non-blocking I/O support.
7980         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
7981         GNULIB_UNISTD_H_NONBLOCKING.
7982         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
7983         required for non-blocking I/O support.
7984         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
7985         * modules/nonblocking (Files): Add m4/nonblocking.m4,
7986         lib/stdio-write.c, m4/asm-underscore.m4.
7987         (Depends-on): Add stdio, unistd.
7988         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
7989         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
7990         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
7991         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
7992         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
7993         problem with non-blocking pipes.
7994         * doc/posix-functions/fputc.texi: Likewise.
7995         * doc/posix-functions/fputs.texi: Likewise.
7996         * doc/posix-functions/fwrite.texi: Likewise.
7997         * doc/posix-functions/printf.texi: Likewise.
7998         * doc/posix-functions/putc.texi: Likewise.
7999         * doc/posix-functions/putchar.texi: Likewise.
8000         * doc/posix-functions/puts.texi: Likewise.
8001         * doc/posix-functions/vfprintf.texi: Likewise.
8002         * doc/posix-functions/vprintf.texi: Likewise.
8003         * doc/posix-functions/write.texi: Likewise.
8004
8005 2011-04-10  Jim Meyering  <meyering@redhat.com>
8006
8007         maint.mk: prohibit doubled words
8008         Detect them also when they're separated by a newline.
8009         There are 3 ways to customize it:
8010           - disable the test on a per file basis, as usual with rules using
8011             $(VC_LIST_EXCEPT)
8012           - replace the default doubled-word-selecting regexp (affects all files)
8013           - ignore a particular file-vs-doubled-word match
8014         I nearly used that last one to ignore the "is is" match in
8015         coreutils' NEWS file, since the text was "ls -is is ..."
8016         To do that, I would have added this line to cfg.mk:
8017           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8018         but it would have ignored any "is is" match in NEWS.
8019         Low probability, but still...
8020         Instead, I changed the text, slightly:
8021           -  ls -is is now consistent with ls -lis in ignoring values returned
8022           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8023         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8024         (prohibit_doubled_word_): Define.
8025         (sc_prohibit_doubled_word): New rule.
8026         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8027
8028 2011-04-10  Jim Meyering  <meyering@redhat.com>
8029
8030         maint: fix doubled-word typo in comment
8031         * m4/gethostname.m4: s/is is/it is/
8032         * m4/getdomainname.m4: Likewise.
8033
8034 2011-04-10  Jim Meyering  <meyering@redhat.com>
8035
8036         maint: remove doubled word: s/it it/it/
8037         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8038
8039 2011-04-10  Jim Meyering  <meyering@redhat.com>
8040
8041         maint.mk: remove useless semicolon and backslash
8042         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8043         semicolon and backslash.
8044
8045 2011-04-10  Bruno Haible  <bruno@clisp.org>
8046
8047         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8048         * modules/stdint-tests (Depends-on): Add wchar.
8049
8050 2011-04-10  Jim Meyering  <meyering@redhat.com>
8051
8052         maint: remove doubled words in comments, e.g., s/a a/a/
8053         * lib/strptime.c (day_of_the_week): s/the the/the/
8054         * tests/test-chown.h (test_chown): s/a a/a/
8055
8056         test-chown.h: correct a cast
8057         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8058         when the destination is a stat.st_gid.
8059
8060 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8061
8062         getaddrinfo: Fix test for sa_len member.
8063         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8064         include <sys/types.h> before <sys/socket.h>.
8065
8066 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8067
8068         maint: change "can not" to "cannot"
8069         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8070         boundaries.
8071
8072 2011-04-09  Jim Meyering  <meyering@redhat.com>
8073
8074         maint: change "a a" to "a"
8075         * tests/test-lchown.h (test_lchown): s/a a/a/
8076
8077         maint.mk: prohibit \<the the\>
8078         * top/maint.mk (sc_prohibit_the_the): New rule.
8079
8080         maint: fix "the the" in comment
8081         * lib/count-one-bits.h: s/the the/the/
8082
8083         maint: change "can not" to "cannot"
8084         But do not change the occurrences in maintain.texi or in
8085         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8086         * doc/gnulib-tool.texi: s/can not/cannot/
8087         * doc/posix-functions/accept.texi (accept): Likewise.
8088         * doc/posix-functions/socket.texi (socket): Likewise.
8089         * lib/mbrtowc.c: Likewise.
8090
8091         maint.mk: prohibit use of "can not"
8092         * top/maint.mk (sc_prohibit_can_not): New rule.
8093         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8094
8095 2011-04-09  Bruno Haible  <bruno@clisp.org>
8096
8097         careadlinkat: Guard against misuse of careadlinkatcwd.
8098         * lib/careadlinkat.c: Include <stdlib.h>.
8099         (careadlinkatcwd): Check that the fd argument is as expected.
8100
8101 2011-04-09  Bruno Haible  <bruno@clisp.org>
8102
8103         careadlinkat: Use common coding style.
8104         * lib/careadlinkat.c: Move gnulib includes after system includes.
8105
8106 2011-04-09  Bruno Haible  <bruno@clisp.org>
8107
8108         careadlinkat: Clarify specification.
8109         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8110         (careadlinkatcwd): Add comment.
8111         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8112
8113 2011-04-09  Bruno Haible  <bruno@clisp.org>
8114
8115         areadlinkat: Avoid link error on many platforms.
8116         * modules/areadlinkat (Depends-on): Add areadlink.
8117
8118 2011-04-09  Bruno Haible  <bruno@clisp.org>
8119
8120         allocator, careadlinkat: Fix double-inclusion guard.
8121         * lib/allocator.h: Fix double-inclusion guard.
8122         * lib/careadlinkat.h: Likewise.
8123
8124 2011-04-09  Bruno Haible  <bruno@clisp.org>
8125
8126         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8127         * lib/relocwrapper.c: Update dependencies hierarchy.
8128         * build-aux/install-reloc: Update list of files to be compiled.
8129         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8130         lib/allocator.[hc].
8131
8132 2011-04-08  Eric Blake  <eblake@redhat.com>
8133
8134         strftime: silence gnulib-tool warning
8135         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8136
8137 2011-04-08  Bruno Haible  <bruno@clisp.org>
8138
8139         verify: Fix syntax error with GCC 4.6 in C++ mode.
8140         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8141         (HAVE_STATIC_ASSERT): New macro.
8142         (verify_true, verify): Use 'static_assert' if it is supported and
8143         '_Static_assert' is not supported.
8144
8145 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8146
8147         allocator: New module.
8148         * modules/allocator, lib/allocator.c: New files.
8149         * lib/allocator.h (stdlib_allocator): New decl.
8150         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8151         Remove.  Do not include <stdlib.h>.
8152         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8153         * modules/careadlinkat (Files): Remove lib/allocator.h.
8154         (Depends-on): Add allocator.
8155
8156         stdlib: let modules use system malloc, realloc
8157         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8158         if !_GL_USE_STDLIB_ALLOC.
8159         (malloc, realloc): Limit this change to a smaller scope.
8160
8161         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8162         (malloc, realloc): Don't #undef; no longer needed.
8163         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8164         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8165         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8166         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8167         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8168         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8169         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8170         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8171
8172         careadlinkat: rename members to avoid problem
8173         * lib/allocator.h (struct allocator): Rename members from
8174         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8175         and realloc are #define'd.  Reported by Eric Blake in
8176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8177         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8178
8179 2011-04-08  Eric Blake  <eblake@redhat.com>
8180
8181         nonblocking: reduce dependency
8182         * tests/test-nonblocking.c: Only test sockets when in use.
8183         * modules/nonblocking-tests (Depends-on): Drop socket.
8184         (Makefile.am): Link even if sockets are not present.
8185         * modules/pipe2-tests (Makefile.am): Likewise.
8186         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8187
8188         pipe2: fix O_NONBLOCK support on mingw
8189         * modules/pipe2 (Depends-on): Add nonblocking.
8190         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8191         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8192         * tests/test-nonblocking.c (main): Likewise.
8193         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8194
8195         fcntl-h: fix O_ACCMODE on cygwin
8196         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8197         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8198
8199         pipe-filter: drop O_NONBLOCK workarounds
8200         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8201         * modules/pipe-filter-ii (Depends-on): Likewise.
8202         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8203
8204         nonblocking: provide O_NONBLOCK for mingw
8205         * modules/nonblocking (Depends-on): Add open.
8206         (configure.ac): Set new witness macro.
8207         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8208         * modules/fcntl-h (Makefile.am): Substitute it.
8209         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8210         nonblocking module is in use.
8211         * lib/nonblocking.c: Adjust portability test.
8212         * lib/open.c (open): Don't let native open see gnulib flag.
8213         * tests/test-fcntl-h.c (main): Enhance test.
8214         * tests/test-open.h (test_open): Likewise.
8215         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8216
8217         careadlinkat: fix compilation error on mingw
8218         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8219         within struct allocator.
8220
8221 2011-04-06  Eric Blake  <eblake@redhat.com>
8222
8223         binary-io: relicense under LGPLv2+
8224         * modules/binary-io (License): Relax to LGPLv2+.
8225         Requested for libvirt, and required by pipe2.
8226
8227 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8228
8229         verify: use _Static_assert if available
8230         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8231         (verify_true, verify): Use it if available.  This generates better
8232         diagnostics with GCC 4.6.0 and later.
8233
8234 2011-04-05  Bruno Haible  <bruno@clisp.org>
8235
8236         Remove leftover generated .h files after config.status changed.
8237
8238         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8239         GL_GENERATE_ALLOCA_H.
8240         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8241         GL_GENERATE_ALLOCA_H evaluates to false.
8242
8243         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8244         GL_GENERATE_ARGZ_H.
8245         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8246         evaluates to false.
8247
8248         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8249         GL_GENERATE_BYTESWAP_H.
8250         * modules/byteswap (Makefile.am): Remove byteswap.h if
8251         GL_GENERATE_BYTESWAP_H evaluates to false.
8252
8253         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8254         GL_GENERATE_ERRNO_H.
8255         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8256         evaluates to false.
8257
8258         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8259         GL_GENERATE_FLOAT_H.
8260         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8261         evaluates to false.
8262
8263         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8264         GL_GENERATE_FNMATCH_H.
8265         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8266         GL_GENERATE_FNMATCH_H evaluates to false.
8267
8268         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8269         GL_GENERATE_GLOB_H.
8270         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8271         evaluates to false.
8272
8273         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8274         automake conditional GL_GENERATE_ICONV_H.
8275         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8276         evaluates to false.
8277
8278         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8279         GL_GENERATE_NETINET_IN_H.
8280         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8281         GL_GENERATE_NETINET_IN_H evaluates to false.
8282
8283         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8284         conditional GL_GENERATE_PTHREAD_H.
8285         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8286         * modules/pthread (Makefile.am): Remove pthread.h if
8287         GL_GENERATE_PTHREAD_H evaluates to false.
8288
8289         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8290         GL_GENERATE_SCHED_H.
8291         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8292         evaluates to false.
8293
8294         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8295         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8296         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8297         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8298
8299         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8300         GL_GENERATE_STDARG_H.
8301         * modules/stdarg (Makefile.am): Remove stdarg.h if
8302         GL_GENERATE_STDARG_H evaluates to false.
8303
8304         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8305         GL_GENERATE_STDBOOL_H.
8306         * modules/stdbool (Makefile.am): Remove stdbool.h if
8307         GL_GENERATE_STDBOOL_H evaluates to false.
8308
8309         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8310         conditional GL_GENERATE_STDDEF_H.
8311         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8312         * modules/stddef (Makefile.am): Remove stddef.h if
8313         GL_GENERATE_STDDEF_H evaluates to false.
8314
8315         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8316         GL_GENERATE_STDINT_H.
8317         * modules/stdint (Makefile.am): Remove stdint.h if
8318         GL_GENERATE_STDINT_H evaluates to false.
8319
8320         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8321         GL_GENERATE_SYSEXITS_H.
8322         * modules/sysexits (Makefile.am): Remove sysexits.h if
8323         GL_GENERATE_SYSEXITS_H evaluates to false.
8324
8325         Reported by Karl Berry and Ralf Wildenhues.
8326
8327 2011-04-05  Bruno Haible  <bruno@clisp.org>
8328
8329         Ensure to rebuild generated .h files when config.status has changed.
8330         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8331         config.status.
8332         * modules/ctype (Makefile.am): Likewise.
8333         * modules/dirent (Makefile.am): Likewise.
8334         * modules/errno (Makefile.am): Likewise.
8335         * modules/fcntl-h (Makefile.am): Likewise.
8336         * modules/float (Makefile.am): Likewise.
8337         * modules/getopt-posix (Makefile.am): Likewise.
8338         * modules/glob (Makefile.am): Likewise.
8339         * modules/iconv-h (Makefile.am): Likewise.
8340         * modules/inttypes (Makefile.am): Likewise.
8341         * modules/langinfo (Makefile.am): Likewise.
8342         * modules/locale (Makefile.am): Likewise.
8343         * modules/math (Makefile.am): Likewise.
8344         * modules/netdb (Makefile.am): Likewise.
8345         * modules/netinet_in (Makefile.am): Likewise.
8346         * modules/poll-h (Makefile.am): Likewise.
8347         * modules/pthread (Makefile.am): Likewise.
8348         * modules/pty (Makefile.am): Likewise.
8349         * modules/sched (Makefile.am): Likewise.
8350         * modules/search (Makefile.am): Likewise.
8351         * modules/selinux-h (Makefile.am): Likewise.
8352         * modules/signal (Makefile.am): Likewise.
8353         * modules/spawn (Makefile.am): Likewise.
8354         * modules/stdarg (Makefile.am): Likewise.
8355         * modules/stdbool (Makefile.am): Likewise.
8356         * modules/stddef (Makefile.am): Likewise.
8357         * modules/stdint (Makefile.am): Likewise.
8358         * modules/stdio (Makefile.am): Likewise.
8359         * modules/stdlib (Makefile.am): Likewise.
8360         * modules/string (Makefile.am): Likewise.
8361         * modules/strings (Makefile.am): Likewise.
8362         * modules/sys_file (Makefile.am): Likewise.
8363         * modules/sys_ioctl (Makefile.am): Likewise.
8364         * modules/sys_select (Makefile.am): Likewise.
8365         * modules/sys_socket (Makefile.am): Likewise.
8366         * modules/sys_stat (Makefile.am): Likewise.
8367         * modules/sys_time (Makefile.am): Likewise.
8368         * modules/sys_times (Makefile.am): Likewise.
8369         * modules/sys_utsname (Makefile.am): Likewise.
8370         * modules/sys_wait (Makefile.am): Likewise.
8371         * modules/sysexits (Makefile.am): Likewise.
8372         * modules/termios (Makefile.am): Likewise.
8373         * modules/time (Makefile.am): Likewise.
8374         * modules/unistd (Makefile.am): Likewise.
8375         * modules/wchar (Makefile.am): Likewise.
8376         * modules/wctype-h (Makefile.am): Likewise.
8377         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8378
8379 2011-04-05  Bruno Haible  <bruno@clisp.org>
8380
8381         pipe2: Relicense under LGPLv2+.
8382         * modules/pipe2 (License): Change to LGPLv2+.
8383         Requested by Eric Blake, for libvirt.
8384
8385 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8386
8387         bootstrap: compute gnulib_extra_files after updating build_aux
8388         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8389         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8390
8391 2011-04-05  Eric Blake  <eblake@redhat.com>
8392
8393         bootstrap: preserve git whitelist item sorting
8394         * build-aux/bootstrap (sort_patterns): New function.
8395         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8396
8397 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8398
8399         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8400         sc_space_tab check.
8401
8402 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8403
8404         areadlink, areadlinkat: rewrite in terms of careadlinkat
8405         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8406         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8407         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8408         (malloc, realloc): Remove #undefs.
8409         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8410         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8411         readlink, ssize_t, stdint, unistd.
8412         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8413         areadlink, stdint.
8414
8415         careadlinkat: new module
8416         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8417         * modules/careadlinkat: New files, written by me with
8418         a review and feedback from Ben Pfaff in
8419         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8420
8421 2011-04-01  Bruno Haible  <bruno@clisp.org>
8422
8423         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8424         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8425         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8426         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8427         Reported by Bruce Korb <bruce.korb@gmail.com>.
8428
8429 2011-04-01  Bruno Haible  <bruno@clisp.org>
8430
8431         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8432         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8433         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8434         * modules/wcpcpy (Depends-on): Add extensions.
8435         * modules/wcpncpy (Depends-on): Likewise.
8436         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8437         systems.
8438         * doc/posix-functions/wcpncpy.texi: Likewise.
8439         * doc/posix-functions/wcwidth.texi: Likewise.
8440
8441 2011-03-31  Eric Blake  <eblake@redhat.com>
8442
8443         nonblocking: fix mingw test failures
8444         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8445         non-blocking flag on regular file.
8446         (get_nonblocking_flag): Set errno on invalid fd.
8447         * tests/test-nonblocking.c (main): Avoid test failure on
8448         directories if fchdir is not active.
8449         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8450
8451 2011-03-31  Bruno Haible  <bruno@clisp.org>
8452
8453         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8454         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8455         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8456         Reported by Simon Josefsson <simon@josefsson.org>.
8457
8458 2011-03-31  Bruno Haible  <bruno@clisp.org>
8459         and Eric Blake  <eblake@redhat.com>
8460
8461         nonblocking: new module
8462         * modules/nonblocking: New module.
8463         * modules/nonblocking-tests: Likewise.
8464         * lib/nonblocking.h: New file.
8465         * lib/nonblocking.c: Likewise.
8466         * tests/test-nonblocking.c: New test.
8467         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8468
8469 2011-03-30  Bruno Haible  <bruno@clisp.org>
8470
8471         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8472         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8473         instead of 'printf' format for GCC >= 4.4.
8474         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8475         (fprintf, printf, vfprintf, vprintf): Declare with
8476         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8477         the system's vfprintf() function.
8478         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8479
8480 2011-03-30  Eric Blake  <eblake@redhat.com>
8481
8482         passfd: fix scoping bug
8483         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8484         before sendmsg/recvmsg.
8485
8486         passfd: standardize coding conventions
8487         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8488         can be learned at compile time.
8489         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8490         ifdefs.
8491         (sendfd, recvfd): Follow gnulib code conventions.
8492
8493         passfd: fix incorrect sendmsg arguments
8494         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8495         incorrect msg_controllen value.
8496         * modules/passfd-tests (Depends-on): Check for alarm.
8497         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8498         Reported by Bastien ROUCARIES.
8499
8500 2011-03-30  Bruno Haible  <bruno@clisp.org>
8501
8502         c-strcasestr: Relicense under LGPLv2+.
8503         * modules/c-strcasestr (License): Change to LGPLv2+.
8504         Requested by Eric Blake, for libvirt.
8505
8506 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8507
8508         * users.txt: Add libidn2.  Fix libtasn1 link.
8509
8510 2011-03-30  Jim Meyering  <meyering@redhat.com>
8511
8512         tests: readlink* ("",... fails with EINVAL on newer kernels
8513         readlink and readlinkat have typically failed with ENOENT for
8514         the invalid, empty file name,  "".  However, with the advent
8515         of linux-2.6.39, they fail with EINVAL.
8516         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8517         when operating on the empty file name.
8518         * tests/test-readlink.h (test_readlink): Likewise.
8519
8520 2011-03-29  Bruno Haible  <bruno@clisp.org>
8521
8522         Relicense some modules under LGPLv2+, for libidn2.
8523         * modules/array-mergesort (License): Change to LGPLv2+.
8524         * modules/c-strcaseeq (License): Likewise.
8525         * modules/striconveh (License): Likewise.
8526         * modules/striconveha (License): Likewise.
8527         * modules/uniconv/base (License): Likewise.
8528         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8529         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8530         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8531         * modules/unictype/base (License): Likewise.
8532         * modules/unictype/bidiclass-of (License): Likewise.
8533         * modules/unictype/category-M (License): Likewise.
8534         * modules/unictype/category-none (License): Likewise.
8535         * modules/unictype/category-of (License): Likewise.
8536         * modules/unictype/category-test (License): Likewise.
8537         * modules/unictype/category-test-withtable (License): Likewise.
8538         * modules/unictype/combining-class (License): Likewise.
8539         * modules/unictype/joiningtype-of (License): Likewise.
8540         * modules/unictype/scripts (License): Likewise.
8541         * modules/uninorm/base (License): Likewise.
8542         * modules/uninorm/canonical-decomposition (License): Likewise.
8543         * modules/uninorm/composition (License): Likewise.
8544         * modules/uninorm/decompose-internal (License): Likewise.
8545         * modules/uninorm/decomposition-table (License): Likewise.
8546         * modules/uninorm/nfc (License): Likewise.
8547         * modules/uninorm/nfd (License): Likewise.
8548         * modules/uninorm/u32-normalize (License): Likewise.
8549         * modules/unistr/base (License): Likewise.
8550         * modules/unistr/u32-cpy (License): Likewise.
8551         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8552         * modules/unistr/u32-to-u8 (License): Likewise.
8553         * modules/unistr/u32-uctomb (License): Likewise.
8554         * modules/unistr/u8-check (License): Likewise.
8555         * modules/unistr/u8-mblen (License): Likewise.
8556         * modules/unistr/u8-mbtouc (License): Likewise.
8557         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8558         * modules/unistr/u8-mbtoucr (License): Likewise.
8559         * modules/unistr/u8-prev (License): Likewise.
8560         * modules/unistr/u8-strlen (License): Likewise.
8561         * modules/unistr/u8-to-u32 (License): Likewise.
8562         * modules/unistr/u8-uctomb (License): Likewise.
8563         * modules/unitypes (License): Likewise.
8564         Requested by Simon Josefsson.
8565
8566 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8567
8568         lib-symbol-visibility: Add a notice.
8569         * modules/lib-symbol-visibility (Notice): New field.
8570
8571 2011-03-29  Bruno Haible  <bruno@clisp.org>
8572
8573         getaddrinfo: Doc fix.
8574         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8575         section "fixed in Gnulib".
8576
8577 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8578
8579         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8580         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8581
8582 2011-03-26  Bruno Haible  <bruno@clisp.org>
8583
8584         unictype/property-byname: Reduce the number of load-time relocations.
8585         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8586         (UC_PROPERTY_INDEX_*): New enumeration values.
8587         (uc_property_byname): Convert an index from the lookup table to an
8588         uc_property_t.
8589         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8590         values.
8591
8592 2011-03-26  Bruno Haible  <bruno@clisp.org>
8593
8594         unictype/property-byname: Allow omitted word separators and aliases.
8595         * lib/unictype/pr_byname.gperf: Add property names without word
8596         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8597         for 'space'.
8598
8599 2011-03-26  Bruno Haible  <bruno@clisp.org>
8600
8601         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8602         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8603         also hyphens to space.
8604         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8605         without spaces.
8606         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8607
8608 2011-03-26  Bruno Haible  <bruno@clisp.org>
8609
8610         unictype/joiningtype-byname: Recognize long names as well.
8611         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8612         a long name.
8613         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8614         unictype/joiningtype_byname.h.
8615         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8616         * lib/unictype/joiningtype_byname.gperf: New file.
8617         * modules/unictype/joiningtype-byname (Files): Add
8618         lib/unictype/joiningtype_byname.gperf.
8619         (Depends-on): Add gperf.
8620         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8621         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8622         long names.
8623
8624         Tests for module 'unictype/joiningtype-longname'.
8625         * modules/unictype/joiningtype-longname-tests: New file.
8626         * tests/unictype/test-joiningtype_longname.c: New file.
8627
8628         New module 'unictype/joiningtype-longname'.
8629         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8630         * lib/unictype/joiningtype_longname.c: New file.
8631         * modules/unictype/joiningtype-longname: New file.
8632         * modules/unictype/joiningtype-all (Depends-on): Add
8633         unictype/joiningtype-longname.
8634
8635 2011-03-26  Bruno Haible  <bruno@clisp.org>
8636
8637         unictype/bidiclass-byname: Recognize long names as well.
8638         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8639         name.
8640         * lib/unictype/bidi_byname.c: Include <string.h>,
8641         unictype/bidi_byname.h.
8642         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8643         * lib/unictype/bidi_byname.gperf: New file.
8644         * modules/unictype/bidiclass-byname (Files): Add
8645         lib/unictype/bidi_byname.gperf.
8646         (Depends-on): Add gperf.
8647         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8648         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8649         long names.
8650
8651         Tests for module 'unictype/bidiclass-longname'.
8652         * modules/unictype/bidiclass-longname-tests: New file.
8653         * tests/unictype/test-bidi_longname.c: New file.
8654
8655         New module 'unictype/bidiclass-longname'.
8656         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8657         * lib/unictype/bidi_longname.c: New file.
8658         * modules/unictype/bidiclass-longname: New file.
8659         * modules/unictype/bidiclass-all (Depends-on): Add
8660         unictype/bidiclass-longname.
8661
8662 2011-03-26  Bruno Haible  <bruno@clisp.org>
8663
8664         unictype/bidi*: Rename modules.
8665         * modules/unictype/bidiclass-all: Renamed from
8666         modules/unictype/bidicategory-all.
8667         * modules/unictype/bidiclass-name: Renamed from
8668         modules/unictype/bidiclass-name.
8669         (Description): Update.
8670         * modules/unictype/bidiclass-name-tests: Renamed from
8671         modules/unictype/bidicategory-name-tests.
8672         * modules/unictype/bidiclass-byname: Renamed from
8673         modules/unictype/bidicategory-byname.
8674         (Description): Update.
8675         * modules/unictype/bidiclass-byname-tests: Renamed from
8676         modules/unictype/bidicategory-byname-tests.
8677         * modules/unictype/bidiclass-of: Renamed from
8678         modules/unictype/bidicategory-of.
8679         (Description): Update.
8680         * modules/unictype/bidiclass-of-tests: Renamed from
8681         modules/unictype/bidicategory-of-tests.
8682         * modules/unictype/bidiclass-test: Renamed from
8683         modules/unictype/bidicategory-test.
8684         (Description): Update.
8685         * modules/unictype/bidiclass-test-tests: Renamed from
8686         modules/unictype/bidicategory-test-tests.
8687         * modules/unictype/bidicategory-all: New file, a simple redirection.
8688         * modules/unictype/bidicategory-name: Likewise.
8689         * modules/unictype/bidicategory-byname: Likewise.
8690         * modules/unictype/bidicategory-of: Likewise.
8691         * modules/unictype/bidicategory-test: Likewise.
8692         * modules/unictype/property-bidi-* (Dependencies): Update.
8693         * lib/unictype/bidi_*.c: Update comment.
8694
8695 2011-03-26  Bruno Haible  <bruno@clisp.org>
8696
8697         unictype/bidi*: Rename functions, part 2.
8698         * modules/unictype/bidicategory-name (configure.ac): Update required
8699         libunistring version.
8700         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8701
8702 2011-03-25  Bruno Haible  <bruno@clisp.org>
8703
8704         New module 'unictype/combining-class-all'.
8705         * modules/unictype/combining-class-all: New file.
8706
8707         Tests for module 'unictype/combining-class-byname'.
8708         * modules/unictype/combining-class-byname-tests: New file.
8709         * tests/unictype/test-combiningclass_byname.c: New file.
8710
8711         New module 'unictype/combining-class-byname'.
8712         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8713         * lib/unictype/combiningclass_byname.c: New file.
8714         * lib/unictype/combiningclass_byname.gperf: New file.
8715         * modules/unictype/combining-class-byname: New file.
8716
8717         Tests for module 'unictype/combining-class-longname'.
8718         * modules/unictype/combining-class-longname-tests: New file.
8719         * tests/unictype/test-combiningclass_longname.c: New file.
8720
8721         New module 'unictype/combining-class-longname'.
8722         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8723         * lib/unictype/combiningclass_longname.c: New file.
8724         * modules/unictype/combining-class-longname: New file.
8725
8726         Tests for module 'unictype/combining-class-name'.
8727         * modules/unictype/combining-class-name-tests: New file.
8728         * tests/unictype/test-combiningclass_name.c: New file.
8729
8730         New module 'unictype/combining-class-name'.
8731         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8732         * lib/unictype/combiningclass_name.c: New file.
8733         * modules/unictype/combining-class-name: New file.
8734
8735 2011-03-25  Bruno Haible  <bruno@clisp.org>
8736
8737         unictype/combining-class: Rename source files.
8738         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8739         of unictype/combining.h.
8740         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8741         Update.
8742         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8743         * modules/unictype/combining-class (Description): Fix.
8744         (Files, Makefile.am): Update.
8745         * tests/unictype/test-combiningclass.c: Renamed from
8746         tests/unictype/test-combining.c.
8747         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8748
8749 2011-03-25  Bruno Haible  <bruno@clisp.org>
8750
8751         unictype: Update list of canonical combining classes.
8752         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8753
8754 2011-03-25  Bruno Haible  <bruno@clisp.org>
8755
8756         unictype/category-byname: Recognize long names as well.
8757         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8758         a long name.
8759         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8760         unictype/categ_byname.h.
8761         (UC_CATEGORY_INDEX_*): New enumeration values.
8762         (uc_general_category_byname): Use uc_general_category_lookup and
8763         convert from index to value.
8764         * lib/unictype/categ_byname.gperf: New file.
8765         * modules/unictype/category-byname (Files): Add
8766         lib/unictype/categ_byname.gperf.
8767         (Depends-on): Add gperf.
8768         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8769         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8770         long names.
8771
8772         Tests for module 'unictype/category-longname'.
8773         * modules/unictype/category-longname-tests: New file.
8774         * tests/unictype/test-categ_longname.c: New file.
8775
8776         New module 'unictype/category-longname'.
8777         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8778         * lib/unictype/categ_longname.c: New file.
8779         * modules/unictype/category-longname: New file.
8780         * modules/unictype/category-all (Depends-on): Add it.
8781
8782 2011-03-25  Bruno Haible  <bruno@clisp.org>
8783
8784         Tests for module 'unictype/category-LC'.
8785         * modules/unictype/category-LC-tests: New file.
8786         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8787
8788         New module 'unictype/category-LC'.
8789         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8790         (UC_CATEGORY_LC): New declaration.
8791         (UC_CASED_LETTER): New macro.
8792         * lib/gen-uni-tables.c (is_category_LC): New function.
8793         (output_categories): Also handle category LC.
8794         (UC_CATEGORY_MASK_LC): New enumeration value.
8795         (general_category_byname): Also handle category LC.
8796         * lib/unictype/categ_LC.c: New file.
8797         * lib/unictype/categ_LC.h: New file, automatically generated.
8798         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8799         category LC.
8800         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8801         * modules/unictype/category-LC: New file.
8802         * modules/unictype/category-byname (Depends-on): Add
8803         unictype/category-LC.
8804         * modules/unictype/category-all (Depends-on): Likewise.
8805
8806 2011-03-25  Eric Blake  <eblake@redhat.com>
8807
8808         xmalloc: revert yesterday's regression
8809         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8810         realloc's underlying behavior (allowing allocation of zero-size
8811         objects, especially if malloc-gnu is also in use).
8812
8813 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8814
8815         maint.mk: add missing version to VC-tag
8816         * top/maint.mk: git tag was missing actual tag name; add it.
8817
8818         valgrind: do leak checking, and exit with code 1 on error (not 0)
8819         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8820         to VALGRIND.
8821
8822 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8823
8824         posix-modules: say what it does.
8825         * posix-modules: Add a line to the --help output saying what it does.
8826
8827 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8828
8829         xmalloc: Do not leak if underlying realloc is C99 compatible.
8830         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8831         This avoids a leak on C99-based systems.  See
8832         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8833
8834 2011-03-24  Eric Blake  <eblake@redhat.com>
8835
8836         realloc: document portability problem
8837         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8838         passing 0 size to realloc.
8839
8840 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8841
8842         doc: update users.txt
8843         * users.txt: Add cvsps, tmpwatch
8844
8845 2011-03-23  Matt Rice  <ratmice@gmail.com>
8846
8847         doc: update users.txt
8848         * users.txt: Add gdb.
8849
8850 2011-03-23  Jim Meyering  <meyering@redhat.com>
8851
8852         doc: update users.txt
8853         Looking through matches up to the following URL (there are still
8854         several more pages), I found several projects that use gnulib:
8855         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8856         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8857         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8858
8859 2011-03-22  Bruno Haible  <bruno@clisp.org>
8860
8861         unictype/bidi*: Rename functions.
8862         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8863         uc_bidi_class, uc_is_bidi_class): New declarations.
8864         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8865         uc_bidi_category_byname.
8866         (uc_bidi_category_byname): New function.
8867         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8868         u_bidi_category_name.
8869         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8870         (uc_bidi_category_name): New function.
8871         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8872         uc_bidi_category.
8873         (uc_bidi_category): New function.
8874         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8875         uc_is_bidi_category. Invoke uc_bidi_class.
8876         (uc_is_bidi_category): New function.
8877         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8878         instead of uc_bidi_category_byname.
8879         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8880         instead of uc_bidi_category_name.
8881         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8882         uc_bidi_category.
8883         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8884         instead of uc_is_bidi_category.
8885
8886 2011-03-21  Bruno Haible  <bruno@clisp.org>
8887
8888         New module 'unictype/joininggroup-all'.
8889         * modules/unictype/joininggroup-all: New file.
8890
8891         Tests for module 'unictype/joininggroup-of'.
8892         * modules/unictype/joininggroup-of-tests: New file.
8893         * tests/unictype/test-joininggroup_of.c: New file.
8894         * tests/unictype/test-joininggroup_of.h: New file, automatically
8895         generated by gen-uni-tables.
8896
8897         New module 'unictype/joininggroup-of'.
8898         * modules/unictype/joininggroup-of: New file.
8899         * lib/unictype/joininggroup_of.c: New file.
8900         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8901         gen-uni-tables.
8902
8903         Tests for module 'unictype/joininggroup-byname'.
8904         * modules/unictype/joininggroup-byname-tests: New file.
8905         * tests/unictype/test-joininggroup_byname.c: New file.
8906
8907         New module 'unictype/joininggroup-byname'.
8908         * modules/unictype/joininggroup-byname: New file.
8909         * lib/unictype/joininggroup_byname.c: New file.
8910         * lib/unictype/joininggroup_byname.gperf: New file.
8911
8912         Tests for module 'unictype/joininggroup-name'.
8913         * modules/unictype/joininggroup-name-tests: New file.
8914         * tests/unictype/test-joininggroup_name.c: New file.
8915
8916         New module 'unictype/joininggroup-name'.
8917         * modules/unictype/joininggroup-name: New file.
8918         * lib/unictype/joininggroup_name.c: New file.
8919         * lib/unictype/joininggroup_name.h: New file.
8920
8921         New module 'unictype/joiningtype-all'.
8922         * modules/unictype/joiningtype-all: New file.
8923
8924         Tests for module 'unictype/joiningtype-of'.
8925         * modules/unictype/joiningtype-of-tests: New file.
8926         * tests/unictype/test-joiningtype_of.c: New file.
8927         * tests/unictype/test-joiningtype_of.h: New file, automatically
8928         generated by gen-uni-tables.
8929
8930         New module 'unictype/joiningtype-of'.
8931         * modules/unictype/joiningtype-of: New file.
8932         * lib/unictype/joiningtype_of.c: New file.
8933         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8934         gen-uni-tables.
8935
8936         Tests for module 'unictype/joiningtype-byname'.
8937         * modules/unictype/joiningtype-byname-tests: New file.
8938         * tests/unictype/test-joiningtype_byname.c: New file.
8939
8940         New module 'unictype/joiningtype-byname'.
8941         * modules/unictype/joiningtype-byname: New file.
8942         * lib/unictype/joiningtype_byname.c: New file.
8943
8944         Tests for module 'unictype/joiningtype-name'.
8945         * modules/unictype/joiningtype-name-tests: New file.
8946         * tests/unictype/test-joiningtype_name.c: New file.
8947
8948         New module 'unictype/joiningtype-name'.
8949         * modules/unictype/joiningtype-name: New file.
8950         * lib/unictype/joiningtype_name.c: New file.
8951
8952         unictype: Add support for Arabic shaping properties.
8953         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
8954         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
8955         declarations.
8956         (UC_JOINING_GROUP_*): New enumeration values.
8957         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
8958         declarations.
8959         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
8960         (unicode_joining_type): New variable.
8961         (UC_JOINING_GROUP_*): New enumeration values.
8962         (unicode_joining_group): New variable.
8963         (fill_arabicshaping, joining_type_as_c_identifier,
8964         output_joining_type_test, output_joining_type,
8965         joining_group_as_c_identifier, output_joining_group_test,
8966         output_joining_group): New functions.
8967         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
8968         fill_arabicshaping and output_joining_type_test, output_joining_type,
8969         output_joining_group_test, output_joining_group.
8970         Reported by Simon Josefsson.
8971
8972 2011-03-21  Jim Meyering  <meyering@redhat.com>
8973
8974         strftime: fix a bug in yesterday's change
8975         * lib/strftime.c (add): Accommodate width's initial value of -1.
8976         Otherwise, nstrftime would copy uninitialized data into
8977         the result buffer.
8978
8979 2011-03-21  Jim Meyering  <meyering@redhat.com>
8980
8981         tests: add strftime-tests module
8982         * tests/test-strftime.c: New file.
8983         * modules/strftime-tests: New module.
8984
8985 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8986
8987         strftime: don't assume a byte count fits in 'int'
8988         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
8989         found this problem by static analysis, using gcc -Wstrict-overflow
8990         (GCC 4.5.2, x86-64).  This reported an optimization that depended
8991         on an integer overflow having undefined behavior, but it turns out
8992         that the argument is a size, which might not fit in 'int' anyway,
8993
8994 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
8995
8996         stdio: don't require ignore_value around fwrite
8997
8998         This patch works around libc bug 11959
8999         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9000         Without this patch, applications must often write
9001         ignore_value (fwrite (...)) even though the ignore_value is
9002         not helpful here.  It's common to write many objects, using
9003         fwrite/printf/etc., and then use ferror to detect output error.
9004
9005         I considered making this patch optional, but decided against it,
9006         because libc is obviously being inconsistent here: there is no
9007         reason libc should insist that user code must inspect fwrite
9008         return's value without also insisting that it inspect printf's,
9009         putchar's, etc.  If user code wants to have a strict style where
9010         all these functions' values are checked (so that ferror need not
9011         be checked), we could add support for that style in a new gnulib
9012         module, but in the meantime it's better to be consistent and to
9013         support common usage.
9014
9015         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9016         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9017         that we are compiling in checking mode, and if not C++, and
9018         if not already wrapping fwrite for some other reason.
9019         (fwrite): #define to rpl_fwrite if the latter is defined.
9020
9021 2011-03-20  Bruno Haible  <bruno@clisp.org>
9022
9023         verror: Fix compilation error introduced on 2011-02-13.
9024         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9025         instead of __attribute__.
9026         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9027
9028 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9029             Bruno Haible  <bruno@clisp.org>
9030
9031         socklen: do not depend on sys_socket
9032         While trying to modify Emacs to use gnulib's socklen module,
9033         I discovered a circular dependency: socklen depends on sys_socket
9034         and vice versa.  Emacs can use socklen, but it does not need
9035         sys_socket because it has its own substitute for sys/socket.h.
9036         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9037         gl_TYPE_SOCKLEN_T.
9038         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9039         gl_PREREQ_SYS_H_SOCKET.
9040         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9041         gl_PREREQ_SYS_H_SOCKET.
9042         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9043         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9044         * modules/socklen (Depends-on): Do not depend on sys_socket.
9045         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9046
9047 2011-03-20  Jim Meyering  <meyering@redhat.com>
9048
9049         maint.mk: sort file names *after* new transformation
9050         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9051         prefix would have led to an unwarranted failure in GNU parted.
9052         Sort after that transformation.
9053
9054 2011-03-19  Jim Meyering  <meyering@redhat.com>
9055
9056         maint.mk: fix po-file syntax-check rule
9057         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9058         Patch by Bruno Haible.
9059
9060 2011-03-19  Bruno Haible  <bruno@clisp.org>
9061
9062         socklen: Update comment.
9063         * m4/socklen.m4: Update comment about platforms.
9064
9065 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9066             Bruno Haible  <bruno@clisp.org>
9067
9068         inet_ntop, inet_pton: Simplify.
9069         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9070         documented to provide socklen_t and we already depend on sys_socket.
9071         * modules/inet_pton (Depends-on): Likewise.
9072         * lib/arpa_inet.in.h: Adjust comment.
9073
9074 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9075             Bruno Haible  <bruno@clisp.org>
9076
9077         netdb: Simplify.
9078         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9079         documented to provide socklen_t and we already depend on sys_socket.
9080         * lib/netdb.in.h: Adjust comment.
9081
9082 2011-03-19  Bruno Haible  <bruno@clisp.org>
9083
9084         sys_socket, netdb: Document problem with socklen_t.
9085         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9086         platforms.
9087         * doc/posix-headers/netdb.texi: Likewise.
9088
9089 2011-03-18  Eric Blake  <eblake@redhat.com>
9090
9091         maint.mk: let po check work in VPATH build
9092         * top/maint.mk (po_file): Allow cfg.mk override.
9093         (sc_po_check): Allow VPATH use.
9094         Reported by Jiri Denemark.
9095
9096 2011-03-16  Jim Meyering  <meyering@redhat.com>
9097
9098         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9099         Before, you would have had to create one .x-sc_ file per rule in order
9100         to exempt offending files.  Now, you may instead use a Make variable --
9101         usually defined in cfg.mk -- whose name identifies the affected rule.
9102         * top/maint.mk (_sc_excl): Define.
9103         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9104         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9105
9106 2011-03-13  Bruno Haible  <bruno@clisp.org>
9107
9108         ignore-value tests: Avoid warnings.
9109         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9110         empty for gcc < 3.4.
9111
9112 2011-03-13  Bruno Haible  <bruno@clisp.org>
9113
9114         passfd: Fix link error on Solaris.
9115         * modules/passfd (Description): Correct.
9116         (Depends-on): Add socketlib.
9117         (Link): New section.
9118         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9119
9120 2011-03-13  Bruno Haible  <bruno@clisp.org>
9121
9122         passfd: Fix link error on AIX 5.2.
9123         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9124
9125 2011-03-13  Bruno Haible  <bruno@clisp.org>
9126
9127         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9128         * lib/sys_socket.in.h: Include <stddef.h>.
9129         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9130         CMSG_FIRSTHDR. Remove unused variable.
9131
9132 2011-03-13  Bruno Haible  <bruno@clisp.org>
9133
9134         passfd: Fix compilation error on OpenBSD.
9135         * lib/passfd.c: Include <sys/uio.h>.
9136
9137 2011-03-13  Bruno Haible  <bruno@clisp.org>
9138
9139         passfd test: Fix warnings.
9140         * tests/test-passfd.c: Include <sys/wait.h>.
9141         (main): Fix typo.
9142
9143 2011-03-13  Bruno Haible  <bruno@clisp.org>
9144
9145         passfd module, part 4, tweaks.
9146         * tests/test-passfd.c: Reorder includes.
9147         (main): Fix perror and printf calls.
9148
9149 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9150
9151         passfd module, part 4.
9152         * modules/passfd-tests: New file.
9153         * tests/test-passfd.c: New file.
9154
9155 2011-03-13  Jim Meyering  <meyering@redhat.com>
9156
9157         Makefile: rely on GNU make; derive syntax-check rule names
9158         Rather than requiring that each sc_ rule be listed as a dependent
9159         of "check", use features of GNU make to derive the list.
9160         * Makefile (syntax-check-rules): Define.
9161         (check): Depend on the new variable, not the hard-coded list.
9162
9163 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9164             Bruno Haible  <bruno@clisp.org>
9165
9166         passfd module, part 3.
9167         * lib/passfd.h (recvfd): Add a flags argument.
9168         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9169         (recvfd): Add a flags argument.
9170         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9171         exists.
9172         * modules/passfd (Depends-on): Add cloexec.
9173         Suggested by Eric Blake.
9174
9175 2011-03-13  Bruno Haible  <bruno@clisp.org>
9176
9177         passfd module, part 2, tweaks.
9178         * modules/passfd (Files): Reorder.
9179         (Depends-on): Remove errno.
9180         (Include): Remove <sys/socket.h>, <sys/un.h>.
9181         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9182         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9183         specification header. Include <sys/socket.h> always. Don't include
9184         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9185         (sendfd): Clarify that it sets errno when it fails.
9186         (recvfd): Fix specification.
9187
9188 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9189
9190         passfd module, part 2.
9191         * modules/passfd: New file.
9192         * lib/passfd.h: New file.
9193         * lib/passfd.c: New file.
9194
9195 2011-03-12  Bruno Haible  <bruno@clisp.org>
9196
9197         wcswidth, mbswidth: Avoid integer overflow.
9198         * lib/wcswidth.c: Include <limits.h>.
9199         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9200         * lib/mbswidth.c: Include <limits.h>.
9201         (mbsnwidth): Avoid 'int' overflow.
9202         Reported by Jim Meyering.
9203
9204 2011-03-12  Bruno Haible  <bruno@clisp.org>
9205
9206         futimens, utimensat: Avoid endless recursion on Solaris 10.
9207         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9208         Solaris.
9209         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9210         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9211
9212 2011-03-11  Jim Meyering  <meyering@redhat.com>
9213
9214         maint.mk: relax a regexp to accommodate other formatting styles
9215         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9216         between "ngettext" and the following "(".
9217
9218 2011-03-11  Pádraig Brady <P@draigBrady.com>
9219
9220         maint.mk: suppress a false positive warning
9221         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9222         diagnostics are marked with ngettext.
9223
9224 2011-03-10  Eric Blake  <eblake@redhat.com>
9225
9226         wchar: add explicit dependencies, for Tru64
9227         * modules/mbmemcasecoll (Depends-on): Add wchar.
9228         * modules/mbtowc (Depends-on): Likewise.
9229         * modules/vasnprintf (Depends-on): Likewise.
9230         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9231         * modules/wctomb (Depends-on): Likewise.
9232         Reported by Peter O'Gorman.
9233
9234 2011-03-08  Bruno Haible  <bruno@clisp.org>
9235
9236         passfd module, part 1, tweaks.
9237         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9238         Improve indentation. Improve AC_MSG_CHECKING messages.
9239         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9240         gl_SOCKET_FAMILIES.
9241
9242 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9243
9244         passfd module, part 1.
9245         * m4/afunix.m4: New file.
9246         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9247         sockets.
9248
9249 2011-03-08  Bruno Haible  <bruno@clisp.org>
9250
9251         regex-quote: New API.
9252         * lib/regex-quote.h: Include <stdbool.h>.
9253         (struct regex_quote_spec): New type.
9254         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9255         New declarations.
9256         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9257         'const struct regex_quote_spec *' argument.
9258         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9259         (pcre_special): New constant.
9260         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9261         New functions.
9262         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9263         'const struct regex_quote_spec *' argument.
9264         * modules/regex-quote (Depends-on): Add stdbool.
9265         * tests/test-regex-quote.c (check): Update for new API. Add test for
9266         anchored results.
9267         * NEWS: Mention the API change.
9268         Reported by Reuben Thomas and Eric Blake.
9269
9270 2011-03-06  Bruno Haible  <bruno@clisp.org>
9271
9272         regex-quote: Fix creation of POSIX extended regular expressions.
9273         * lib/regex-quote.c (ere_special): Add grouping and alternation
9274         operators.
9275
9276 2011-03-05  Bruno Haible  <bruno@clisp.org>
9277
9278         doc: Improve doc regarding autopoint vs. gnulib.
9279         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9280         disable autopoint while running autoreconf.
9281         Suggested by Ralf Wildenhues.
9282
9283 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9284
9285         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9286         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9287
9288 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9289
9290         parse-duration: remove xalloc.h dependency
9291         * lib/parse-duration.c (parse_period): handle NULL return from
9292         strdup instead of calling xstrdup().
9293         * modules/parse-duration: remove "xalloc" dependency
9294
9295 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9296
9297         bootstrap: honor m4_base when running aclocal
9298         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9299
9300 2011-03-02  Jim Meyering  <meyering@redhat.com>
9301
9302         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9303         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9304         on request from Matt Booth.
9305
9306 2011-03-01  Eric Blake  <eblake@redhat.com>
9307
9308         test-link: work on Hurd
9309         * tests/test-link.h (test_link): Hurd rejects linking directories
9310         with EISDIR instead of the POSIX-mandated EPERM.
9311
9312 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9313
9314         stdio: simplify by moving files to printf-posix, sigpipe
9315         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9316         since this symbol is needed only if printf is replaced.
9317         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9318         Require gl_ASM_SYMBOL_PREFIX.
9319         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9320         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9321         (Depends-on): Add 'raise'.
9322         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9323         * modules/stdio (Files): Remove lib/stdio-write.c,
9324         m4/asm-underscore.m4.
9325         (Depends-on): Remove 'raise'.
9326
9327         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9328         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9329         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9330         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9331
9332 2011-02-28  Bruno Haible  <bruno@clisp.org>
9333
9334         localcharset: Assume ANSI C behaviour of free().
9335         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9336         calling free().
9337         Suggested by Simon Josefsson <simon@josefsson.org>.
9338
9339 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9340             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9341             Bruno Haible  <bruno@clisp.org>  (tiny change)
9342
9343         On Cygwin, use /proc file system instead of win32 API.
9344         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9345         Win32 file names.
9346         (DllMain): Simplify by removing Cygwin specific code.
9347         (find_shared_library_fullname): Use Linux specific implementation also
9348         for Cygwin.
9349         (get_shared_library_fullname): Update accordingly.
9350         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9351         Win32 file names.
9352         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9353         Cygwin specific code.
9354
9355 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9356             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9357
9358         Fix OpenMP flag detection for various Fortran compilers.
9359         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9360         OpenMP-conditional compilation construct, to force compile
9361         failure with missing OpenMP flag.
9362         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9363
9364 2011-02-25  Eric Blake  <eblake@redhat.com>
9365
9366         strstr: expand test coverage
9367         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9368         compilation.
9369         * tests/test-memmem.c (main): Duplicate tests.
9370         * tests/test-strcasestr.c (main): Likewise.
9371         * tests/test-c-strcasestr.c (main): Likewise.
9372
9373 2011-02-25  Jim Meyering  <meyering@redhat.com>
9374
9375         maint.mk: detect missing-NL-at-EOF, too
9376         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9377         it also detects when a file lacks a newline at EOF.
9378         (require_exactly_one_NL_at_EOF_): Renamed from
9379         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9380         since people may well have .x-sc_... file names tied to the
9381         existing name.  Suggested by Eric Blake.
9382
9383 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9384
9385         dirname: move m4/dos.m4 functionality into lib/dosname.h
9386
9387         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9388         extracts symbols from it, puts them into config.h; but it's much
9389         easier to use the symbols directly.  filename.h already does this,
9390         but it disagrees with dos.m4 in some respects.  This patch
9391         introduces a different include file dosname.h that packages up
9392         dos.m4, and then later we can work on merging filename.h and
9393         dosname.h.  Applications that need only the easy-to-configure
9394         symbols should consider including dosname.h rather than dirname.h.
9395         * NEWS: Mention incompatible changes.
9396         * m4/dos.m4: Remove.
9397         * lib/dosname.h, modules/dosname: New files.
9398         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9399         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9400         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9401         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9402         Include dosname.h, not dirname.h.
9403         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9404         Include dosname.h, for definitions of symbols like ISSLASH
9405         that used to be in config.h.
9406         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9407         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9408         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9409         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9410         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9411         * modules/rmdir (Files): Likewise.
9412         * modules/stat (Files): Likewise.
9413         * modules/unlink (Files): Likewise.
9414         * modules/dirname-lgpl (Depends-on): Add dosname.
9415         * modules/lstat (Depends-on): Likewise.
9416         * modules/openat (Depends-on): Likewise.
9417         * modules/rmdir (Depends-on): Likewise.
9418         * modules/savewd (Depends-on): Likewise.
9419         * modules/stat (Depends-on): Likewise.
9420         * modules/unlink (Depends-on): Likewise.
9421         * modules/openat (Depends-on): Remove dirname-lgpl.
9422         * modules/savewd (Depends-on): Likewise.
9423         * tests/test-dirname.c: Do not use removed symbols like
9424         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9425         the remaining symbols, e.g., ISSLASH ('\\').
9426
9427 2011-02-25  Eric Blake  <eblake@redhat.com>
9428
9429         strstr: revert patches that introduced bug and pessimization
9430         * lib/str-two-way.h: Add another reference.
9431         (two_way_short_needle, two_way_long_needle): Revert changes from
9432         2011-02-24; they pessimize search speed.
9433         (critical_factorization): Partially revert changes from
9434         2010-06-22; they violate the requirement that the left half of the
9435         needle be smaller than the period of the needle.
9436
9437 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9438
9439         filenamecat: remove unnecessary dependency on dirname-lgpl
9440         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9441         is no direct dependency, just an indirect one via filenamecat-lgpl.
9442
9443         remove: remove unnecessary use of m4/dos.m4
9444         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9445         * modules/remove (FILES): Remove m4/dos.m4.
9446
9447         * lib/openat-proc.c: Don't include dirname.h; not needed.
9448
9449         backupfile: remove unnecessary use of m4/dos.m4
9450         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9451         of its symbols are used by the backupfile code.  backupfile.c does
9452         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9453         for the rare case of programs that want all their backup file
9454         names to live within 8+3 limits, and dos.m4 doesn't address that.
9455         * modules/backupfile (Files): Remove m4/dos.m4.
9456
9457 2011-02-24  Jim Meyering  <meyering@redhat.com>
9458
9459         strstr: fix a bug whereby strstr would mistakenly return NULL
9460         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9461         in period calculation.
9462         (two_way_long_needle): Likewise.
9463         The original problem was reported by Mike Stump in
9464         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9465         Ralf Wildenhues provided the short needle and haystack.
9466         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9467         Add a more involved test to trigger the bug in two_way_long_needle.
9468
9469 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9470
9471         gnulib-tool: remove use of bold display in help screen
9472         * gnulib-tool (func_usage): Do not use bold display anymore in the
9473         help screen.  That was just meant to be a temporary emphasis for a
9474         backward-incompatible change.
9475
9476 2011-02-23  Bruno Haible  <bruno@clisp.org>
9477
9478         Fix misindentation of preprocessor directives.
9479         * lib/argp-namefrob.h: Reindent preprocessor directives.
9480         * lib/getopt_int.h (struct _getopt_data): Likewise.
9481         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9482         * lib/vasnprintf.c (decode_long_double): Likewise.
9483         * tests/test-argmatch.c: Insert blank lines, for clarity.
9484         * tests/test-exclude.c: Likewise.
9485
9486 2011-02-22  Bruno Haible  <bruno@clisp.org>
9487
9488         ioctl: Fix for MacOS X in 64-bit mode.
9489         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9490         value.
9491         Suggested by Eric Blake.
9492         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9493
9494 2011-02-22  Jim Meyering  <meyering@redhat.com>
9495
9496         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9497         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9498         in lib/.
9499
9500 2011-02-22  Eric Blake  <eblake@redhat.com>
9501
9502         maint: avoid any CDPATH issue
9503         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9504
9505         maint: adjust cpp indentation for my modules, as well
9506         * Makefile (sc_cpp_indent_check): Add my name.
9507         * lib/fbufmode.c: Filter through cppi.
9508         * lib/fpurge.c: Likewise.
9509         * lib/freadable.c: Likewise.
9510         * lib/freading.c: Likewise.
9511         * lib/fwritable.c: Likewise.
9512         * lib/fwriting.c: Likewise.
9513         * lib/sigaction.c: Likewise.
9514
9515 2011-02-22  Jim Meyering  <meyering@redhat.com>
9516
9517         maint: adjust cpp indentation to reflect nesting depth
9518         I.e., in a block of code that begins with an unnested "#if",
9519         put one space between the "#" in column 1 and following token.
9520         For example,
9521         -#include <sys/vfs.h>
9522         +# include <sys/vfs.h>
9523         Do this only in .c files that are part of a module I maintain.
9524         * lib/linkat.c: Filter through cppi.
9525         * lib/nanosleep.c: Likewise.
9526         * lib/openat.c: Likewise.
9527         * lib/openat-die.c: Likewise.
9528         * lib/dup3.c: Likewise.
9529         * lib/fchownat.c: Likewise.
9530         * lib/flock.c: Likewise.
9531         * lib/fsync.c: Likewise.
9532         * lib/fts.c: Likewise.
9533         * lib/getpass.c: Likewise.
9534         * lib/gettimeofday.c: Likewise.
9535         * lib/userspec.c: Likewise.
9536         * Makefile (sc_cpp_indent_check): New rule, to check this.
9537
9538 2011-02-22  Bruno Haible  <bruno@clisp.org>
9539
9540         New module 'wctomb'.
9541         * lib/stdlib.in.h (wctomb): New declaration.
9542         * lib/wctomb.c: New file.
9543         * lib/wctomb-impl.h: New file.
9544         * m4/wctomb.m4: New file.
9545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9546         REPLACE_WCTOMB.
9547         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9548         REPLACE_WCTOMB.
9549         * modules/wctomb: New file.
9550         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9551         * doc/posix-functions/wctomb.texi: Mention the new module.
9552         * modules/wctob (Depends-on): Add wctomb.
9553
9554 2011-02-22  Bruno Haible  <bruno@clisp.org>
9555
9556         New module 'mbtowc'.
9557         * lib/stdlib.in.h (mbtowc): New declaration.
9558         * lib/mbtowc.c: New file.
9559         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9560         * m4/mbtowc.m4: New file.
9561         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9562         REPLACE_MBTOWC.
9563         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9564         REPLACE_MBTOWC.
9565         * modules/mbtowc: New file.
9566         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9567         * doc/posix-functions/mbtowc.texi: Mention the new module.
9568         * modules/btowc (Depends-on): Add mbtowc.
9569
9570 2011-02-22  Bruno Haible  <bruno@clisp.org>
9571
9572         wcrtomb: Add more tests for native Windows platforms.
9573         * tests/test-wcrtomb-w32-1.sh: New file.
9574         * tests/test-wcrtomb-w32-2.sh: New file.
9575         * tests/test-wcrtomb-w32-3.sh: New file.
9576         * tests/test-wcrtomb-w32-4.sh: New file.
9577         * tests/test-wcrtomb-w32-5.sh: New file.
9578         * tests/test-wcrtomb-w32.c: New file.
9579         * modules/wcrtomb-tests (Files): Add them.
9580         (Makefile.am): Arrange to run these tests.
9581         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9582         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9583
9584 2011-02-20  Bruno Haible  <bruno@clisp.org>
9585
9586         wcrtomb: Enhance test.
9587         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9588
9589 2011-02-20  Bruno Haible  <bruno@clisp.org>
9590
9591         mbrtowc: Tiny optimization.
9592         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9593
9594 2011-02-20  Jim Meyering  <meyering@redhat.com>
9595
9596         test-exclude.c: remove unmatched #endif
9597         * tests/test-exclude.c: Remove stray #endif, left over from
9598         the change of a week ago.
9599
9600 2011-02-19  Jim Meyering  <meyering@redhat.com>
9601
9602         git-version-gen: skip "-dirty" check when appropriate
9603         * build-aux/git-version-gen: Don't run any git commands when the
9604         version string comes from .tarball-version.  Prior to this, we
9605         would run git update-index --refresh even from a just-unpacked
9606         tarball directory, and that could affect a .git/ directory in a
9607         parent of the build directory.  Reported by Mike Frysinger.
9608
9609 2011-02-19  Bruno Haible  <bruno@clisp.org>
9610
9611         unictype/property-byname: Reduce the size of the 'data' segment.
9612         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9613
9614 2011-02-19  Bruno Haible  <bruno@clisp.org>
9615
9616         unictype/scripts: Reduce the size of the 'data' segment.
9617         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9618         '%pic'.
9619         * lib/unictype/scripts_byname.gperf: Regenerated.
9620
9621 2011-02-19  Bruno Haible  <bruno@clisp.org>
9622
9623         stdint: Update documentation.
9624         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9625
9626 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9627
9628         stdint: omit redundant check for wchar.h
9629         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9630         always tests whether wchar.h exists, so remove the now-redundant test.
9631
9632 2011-02-18  Bruno Haible  <bruno@clisp.org>
9633
9634         stdint: Cut dependency to module 'wchar'.
9635         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9636         include the necessary prerequisites.
9637         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9638         * modules/stdint (Depends-on): Remove wchar.
9639         (Makefile.am): Substitute HAVE_WCHAR_H.
9640         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9641
9642 2011-02-18  Eric Blake  <eblake@redhat.com>
9643
9644         longlong: skip, rather than fail, on cross-compilation
9645         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9646         when cross-compiling; regression from 2011-02-16.
9647
9648 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9649
9650         * NEWS: Mention 2011-02-08 change to stdlib.
9651
9652 2011-02-17  Bruno Haible  <bruno@clisp.org>
9653
9654         getloadavg: Add comments about platforms.
9655         * m4/getloadavg.m4: Add comment.
9656         * lib/getloadavg.c: Likewise.
9657
9658 2011-02-17  Bruno Haible  <bruno@clisp.org>
9659
9660         getloadavg: Fix link error on Solaris 2.6.
9661         * modules/getloadavg (Link): New section.
9662         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9663         linking test-getloadavg.
9664         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9665         getloadavg.
9666
9667 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9668
9669         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9670         It was 'int', but this doesn't match the IRIX 6.5 manual.
9671         Suggested by Bruno Haible in
9672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9673
9674 2011-02-17  Bruno Haible  <bruno@clisp.org>
9675
9676         havelib: Fix comments.
9677         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9678         change.
9679
9680 2011-02-17  Bruno Haible  <bruno@clisp.org>
9681
9682         havelib: Update config.rpath.
9683         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9684
9685 2011-02-17  Bruno Haible  <bruno@clisp.org>
9686
9687         getloadavg test: Add some plausibility checks.
9688         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9689         is improbable.
9690
9691 2011-02-16  Eric Blake  <eblake@redhat.com>
9692
9693         maintainer-makefile: make syntax-check a no-op from tarballs
9694         * top/maint.mk (no-vc-detected): New rule.
9695         (local-checks-available): Use it to avoid hanging if someone tries
9696         'make syntax-check' from a tarball.  Also append to any non-syntax
9697         checks already defined in cfg.mk.
9698
9699 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9700
9701         longlong: tune, particularly for common case of c99
9702
9703         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9704         or running anything if c99, or if unsigned long long int does not
9705         work.  In either case, we know the answer without further tests.
9706         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9707         it at most once, and use its results for both long long int and
9708         unsigned long long int.  This is more likely to be efficient in
9709         the common case where the program wants to check for both long
9710         long int and unsigned long long int.
9711         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9712         since the answer is already known.
9713
9714 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9715
9716         getloadavg: set errno
9717         * lib/getloadavg.c: Set errno when returning -1.  If no other
9718         error number looks appropriate, set it to ENOSYS if the getloadavg
9719         looks like it can't possibly ever work, ENOTSUP otherwise.
9720         Suggested by Bruno Haible in
9721         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9722
9723         getloadavg: trim unused parts and speed up 'configure'
9724         * NEWS: Document this.
9725         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9726         always compiled if getloadavg is absent.
9727         Move test code to ...
9728         * tests/test-getloadavg.c: New file, containing previous
9729         contents of test from lib/getloadavg.c.  It also contains
9730         suggestions by Bruno Haible in
9731         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9732         * modules/getloadavg-tests: New file.
9733         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9734         Do tests in the same order as they're needed for getloadavg.c.
9735         Omit setgid-related tests that generate symbols KMEM_GROUP,
9736         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9737         Do only the tests that are needed to see whether the system has
9738         getloadavg, moving the other tests into ...
9739         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9740         NLIST_NAME_UNION; nobody should be using it.  Do not define
9741         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9742         relevant, as the user of this module shouldn't care how getloadavg
9743         is implemented.
9744
9745         getloadavg: omit unused var
9746         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9747
9748 2011-02-15  Jim Meyering  <meyering@redhat.com>
9749
9750         doc: update users.txt
9751         * users.txt: Update iwhd's URL.
9752
9753 2011-02-13  Bruno Haible  <bruno@clisp.org>
9754
9755         Consistent macro naming for macros that use GCC __attribute__.
9756         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9757         _ATTRIBUTE_NONNULL_.
9758         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9759         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9760         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9761         ATTRIBUTE_DEPRECATED.
9762         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9763         ATTRIBUTE_NORETURN.
9764         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9765         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9766         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9767         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9768         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9769         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9770         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9771         ATTRIBUTE_SENTINEL.
9772         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9773         ATTRIBUTE_RETURN_CHECK.
9774         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9775         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9776         ATTRIBUTE_NORETURN.
9777         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9778         Reported by Paul Eggert.
9779
9780 2011-02-13  Bruno Haible  <bruno@clisp.org>
9781
9782         Don't interfere with a program's definition of __attribute__.
9783         * lib/argp.h (__attribute__): Remove definition.
9784         (_GL_ATTRIBUTE_FORMAT): New macro.
9785         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9786         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9787         (_GL_ATTRIBUTE_FORMAT): New macro.
9788         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9789         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9790         GCC 3 or newer.
9791         * lib/error.h (__attribute__): Remove definition.
9792         (_GL_ATTRIBUTE_FORMAT): New macro.
9793         (error, error_at_line): Use it.
9794         * lib/hash.h (__attribute__): Remove definition.
9795         (ATTRIBUTE_WUR): Update definition. Define always.
9796         * lib/openat.h (__attribute__): Remove definition.
9797         (ATTRIBUTE_NORETURN): Update definition. Define always.
9798         * lib/sigpipe-die.h (__attribute__): Remove definition.
9799         (ATTRIBUTE_NORETURN): Update definition. Define always.
9800         * lib/vasnprintf.h (__attribute__): Remove definition.
9801         (_GL_ATTRIBUTE_FORMAT): New macro.
9802         (asnprintf, vasnprintf): Use it.
9803         * lib/xalloc.h (__attribute__): Remove definition.
9804         (ATTRIBUTE_NORETURN): Update definition. Define always.
9805         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9806         * lib/xmemdup0.h (__attribute__): Remove definition.
9807         (ATTRIBUTE_NORETURN): Update definition. Define always.
9808         * lib/xprintf.h (__attribute__): Remove definition.
9809         (_GL_ATTRIBUTE_FORMAT): New macro.
9810         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9811         * lib/xstrtol.h (__attribute__): Remove definition.
9812         (ATTRIBUTE_NORETURN): Update definition. Define always.
9813         * lib/xvasprintf.h (__attribute__): Remove definition.
9814         (_GL_ATTRIBUTE_FORMAT): New macro.
9815         (xasprintf, xvasprintf): Use it.
9816         * tests/test-argmatch.c (__attribute__): Remove definition.
9817         (ATTRIBUTE_NORETURN): Update definition. Define always.
9818         * tests/test-exclude.c (__attribute__): Remove definition.
9819         (ATTRIBUTE_NORETURN): Update definition. Define always.
9820         Reported by Paul Eggert.
9821
9822 2011-02-13  Bruno Haible  <bruno@clisp.org>
9823
9824         mbrtowc: Add more tests for native Windows platforms.
9825         * tests/test-mbrtowc-w32-1.sh: New file.
9826         * tests/test-mbrtowc-w32-2.sh: New file.
9827         * tests/test-mbrtowc-w32-3.sh: New file.
9828         * tests/test-mbrtowc-w32-4.sh: New file.
9829         * tests/test-mbrtowc-w32-5.sh: New file.
9830         * tests/test-mbrtowc-w32.c: New file.
9831         * modules/mbrtowc-tests (Files): Add them.
9832         (Makefile.am): Arrange to run these tests.
9833         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9834         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9835
9836 2011-02-13  Bruno Haible  <bruno@clisp.org>
9837
9838         mbrtowc: Work around native Windows bug.
9839         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9840         guess when no suitable locale for testing was found.
9841         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9842
9843 2011-02-13  Bruno Haible  <bruno@clisp.org>
9844
9845         mbsinit: Work around mingw bug.
9846         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9847         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9848         Windows.
9849         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9850
9851 2011-02-13  Bruno Haible  <bruno@clisp.org>
9852
9853         mbsinit: Don't crash for a NULL argument.
9854         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9855         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9856
9857 2011-02-13  Bruno Haible  <bruno@clisp.org>
9858
9859         Don't interfere with a program's definition of __attribute__.
9860         * lib/stdio.in.h (__attribute__): Remove definition.
9861         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9862         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9863         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9864         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9865         * lib/string.in.h (__attribute__): Remove definition.
9866         Reported by Paul Eggert.
9867
9868 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9869
9870         stdlib: don't get in the way of non-GCC __attribute__
9871         See thread starting at
9872         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9873         Revert previous stdlib change, installing the following instead:
9874         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9875         to get in the way of a non-GCC compiler that supports __attribute__.
9876         (_GL_ATTRIBUTE_RETURN): New macro.
9877         (_Exit): Use it instead of __attribute__.
9878
9879 2011-02-12  Bruno Haible  <bruno@clisp.org>
9880
9881         quotearg test: Avoid test failure on mingw.
9882         * tests/test-quotearg.sh: Convert the locale identifier from native
9883         Windows syntax to Unix syntax.
9884
9885 2011-02-12  Bruno Haible  <bruno@clisp.org>
9886
9887         setlocale: Prefer gnulib's override over libintl's override.
9888         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9889         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9890         GNULIB_defined_setlocale is set.
9891
9892 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9893
9894         stdlib: support non-GCC __attribute__
9895
9896         Fix a serious and tricky problem encountered when attempting to
9897         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9898         5.5, but it crashed due to memory corruption on Solaris 10 with
9899         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9900         bits that are otherwise zero.  This tagging is optional inside
9901         Emacs but is preferred and is used when __attribute__ ((__aligned
9902         (8))) works, as it does with both recent-enough GCC and with Sun C
9903         5.11.  However, Sun C 5.11 is not GCC and does not #define
9904         __GNUC__ and __GNUC_MINOR__.
9905
9906         When I added the getloadavg module to Emacs, it brought in
9907         stdlib.in.h, which contained this fragment:
9908
9909            #ifndef __attribute__
9910            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9911            #  define __attribute__(Spec)   /* empty */
9912            # endif
9913            #endif
9914
9915         When files that include <stdlib.h> were compiled with Sun C 5.11,
9916         the above code disabled __attribute__ ((__aligned (8))), which
9917         caused variables to not be properly aligned, which eventually led
9918         to the pointer corruption mentioned above.  (This was a bit hard
9919         to diagnose, unfortunately.)
9920
9921         Several "#define __attribute__(X) /* empty */" code snippets need
9922         to be eradicated from Gnulib to work with non-GCC compilers that
9923         support __attribute__.  The Autoconf way to do this is to test for
9924         each kind of attribute that we want support for, and selectively
9925         enable that in source code.
9926
9927         Fix this problem just for stdlib.h, by adding a test for the
9928         __noreturn__ attribute, and change stdlib.in.h to use that test
9929         when needed.  This technique can be easily generalized to the
9930         other *.in.h files and attributes, and a similar technique can be
9931         used for *.h and *.c files.  This patch is enough to solve the
9932         problem for Emacs + getloadavg, and I thought I'd publish it for
9933         feedback before undertaking further, similar fixes in other
9934         modules.
9935
9936         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9937         because it's not needed for stdlib.h.  It merely substitutes the
9938         value directly into stdlib.h.  We may well need to #define it, or
9939         similar symbols, for other modules, but it's nice to also have an
9940         option to not #define it for applications like Emacs that do not
9941         need it.
9942
9943         * lib/stdlib.in.h (__attribute__): Do not #define.
9944         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9945         be defined only if the _Exit module is also used.
9946         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
9947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
9948         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
9949         platforms.
9950         * modules/_Exit (Files): Add m4/attribute.m4.
9951         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
9952         * m4/attribute.m4: New file.
9953
9954 2011-02-12  Bruno Haible  <bruno@clisp.org>
9955
9956         wcsrtombs: Work around bug on native Windows.
9957         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
9958         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
9959         instead of len.
9960         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
9961
9962 2011-02-12  Bruno Haible  <bruno@clisp.org>
9963
9964         mbsrtowcs: Work around bug on native Windows.
9965         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
9966         against mingw bug.
9967         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
9968
9969 2011-02-12  Bruno Haible  <bruno@clisp.org>
9970
9971         Avoid setlocale bugs in tests.
9972         * modules/btowc (Dependencies): Add setlocale.
9973         * modules/c-strcase (Dependencies): Likewise.
9974         * modules/mbmemcasecmp (Dependencies): Likewise.
9975         * modules/mbmemcasecoll (Dependencies): Likewise.
9976         * modules/mbrtowc (Dependencies): Likewise.
9977         * modules/mbscasecmp (Dependencies): Likewise.
9978         * modules/mbscasestr (Dependencies): Likewise.
9979         * modules/mbschr (Dependencies): Likewise.
9980         * modules/mbscspn (Dependencies): Likewise.
9981         * modules/mbsinit (Dependencies): Likewise.
9982         * modules/mbsncasecmp (Dependencies): Likewise.
9983         * modules/mbsnrtowcs (Dependencies): Likewise.
9984         * modules/mbspbrk (Dependencies): Likewise.
9985         * modules/mbspcasecmp (Dependencies): Likewise.
9986         * modules/mbsrchr (Dependencies): Likewise.
9987         * modules/mbsrtowcs (Dependencies): Likewise.
9988         * modules/mbsspn (Dependencies): Likewise.
9989         * modules/mbsstr (Dependencies): Likewise.
9990         * modules/nl_langinfo (Dependencies): Likewise.
9991         * modules/quotearg (Dependencies): Likewise.
9992         * modules/unicase/locale-language (Dependencies): Likewise.
9993         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
9994         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
9995         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
9996         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
9997         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
9998         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
9999         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10000         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10001         * modules/vasnprintf-posix (Dependencies): Likewise.
10002         * modules/wcrtomb (Dependencies): Likewise.
10003         * modules/wcsnrtombs (Dependencies): Likewise.
10004         * modules/wcsrtombs (Dependencies): Likewise.
10005
10006 2011-02-12  Bruno Haible  <bruno@clisp.org>
10007
10008         setlocale: Workaround native Windows bug.
10009         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10010         succeeds but sets LC_CTYPE to "C", report a failure.
10011         * tests/test-setlocale2.sh: New file.
10012         * tests/test-setlocale2.c: New file.
10013         * modules/setlocale-tests (Files): Add the new files.
10014         (Makefile.am): Enable test-setlocale2.sh test.
10015         * doc/posix-functions/setlocale.texi: Mention workaround.
10016
10017 2011-02-11  Bruno Haible  <bruno@clisp.org>
10018
10019         Tests for module 'setlocale'.
10020         * modules/setlocale-tests: New file.
10021         * tests/test-setlocale1.sh: New file.
10022         * tests/test-setlocale1.c: New file.
10023
10024         New module 'setlocale'.
10025         * lib/locale.in.h (setlocale): New declaration.
10026         * lib/setlocale.c: New file, based on
10027         gettext/gettext-runtime/intl/setlocale.c.
10028         * m4/setlocale.m4: New file.
10029         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10030         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10031         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10032         REPLACE_SETLOCALE.
10033         * modules/setlocale: New file.
10034         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10035         * doc/posix-functions/setlocale.texi: Mention the new module.
10036
10037 2011-02-11  Bruno Haible  <bruno@clisp.org>
10038
10039         Prepare for locale dependent tests on mingw.
10040         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10041         because it has the wrong locale encoding.
10042         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10043         French_France.1252 instead of "fr".
10044         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10045         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10046         because it has the wrong locale encoding.
10047         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10048         native Windows, try Turkish_Turkey.65001.
10049         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10050         Chinese_China.54936.
10051
10052         Prepare for locale dependent tests on mingw.
10053         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10054         differently.
10055         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10056         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10057         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10058         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10059
10060 2011-02-11  Eric Blake  <eblake@redhat.com>
10061
10062         strptime: avoid compiler warnings
10063         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10064         compiler warnings about dead code.
10065         Reported by Daniel P. Berrange.
10066
10067 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10068
10069         doc: update users.txt
10070         * users.txt: Add rcs.
10071
10072 2011-02-10  John W. Eaton  <jwe@gnu.org>
10073
10074         doc: update users.txt
10075         * users.txt: Add octave.
10076
10077 2011-02-10  Jim Meyering  <meyering@redhat.com>
10078
10079         doc: update users.txt
10080         * users.txt: Add iwhd.
10081
10082 2011-02-09  Bruno Haible  <bruno@clisp.org>
10083
10084         gnulib-tool: Make copyright notice adjustment more robust.
10085         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10086         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10087         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10088         License".
10089         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10090
10091 2011-02-06  Bruno Haible  <bruno@clisp.org>
10092
10093         New module 'towctrans'.
10094         * modules/towctrans: New file.
10095         * lib/wctype.in.h (towctrans): New declaration.
10096         * lib/towctrans.c: New file.
10097         * lib/towctrans-impl.h: New file.
10098         * m4/towctrans.m4: New file.
10099         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10100         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10101         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10102         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10103         * doc/posix-functions/towctrans.texi: Mention the new module.
10104
10105 2011-02-06  Bruno Haible  <bruno@clisp.org>
10106
10107         New module 'wctrans'.
10108         * modules/wctrans: New file.
10109         * lib/wctype.in.h (wctrans): New declaration.
10110         * lib/wctrans.c: New file.
10111         * lib/wctrans-impl.h: New file.
10112         * m4/wctrans.m4: New file.
10113         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10114         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10115         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10116         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10117         * doc/posix-functions/wctrans.texi: Mention the new module.
10118
10119 2011-02-06  Bruno Haible  <bruno@clisp.org>
10120
10121         New module 'iswctype'.
10122         * modules/iswctype: New file.
10123         * lib/wctype.in.h (iswctype): New declaration.
10124         * lib/iswctype.c: New file.
10125         * lib/iswctype-impl.h: New file.
10126         * m4/iswctype.m4: New file.
10127         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10128         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10129         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10130         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10131         * doc/posix-functions/iswctype.texi: Mention the new module and the
10132         HP-UX 11.00 problem.
10133
10134 2011-02-06  Bruno Haible  <bruno@clisp.org>
10135
10136         New module 'wctype'.
10137         * modules/wctype: Change to represent the wctype() substitute.
10138         * lib/wctype.in.h (wctype): New declaration.
10139         * lib/wctype.c: New file.
10140         * lib/wctype-impl.h: New file.
10141         * m4/wctype.m4: New file.
10142         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10143         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10144         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10145         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10146         * doc/posix-functions/wctype.texi: Mention the new module and the
10147         HP-UX 11.00 problem.
10148
10149 2011-02-06  Bruno Haible  <bruno@clisp.org>
10150
10151         wctype-h: Ensure wctype_t and wctrans_t are defined.
10152         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10153         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10154         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10155         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10156         HAVE_WCTRANS_T.
10157         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10158
10159 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10160
10161         flock: fix license typo
10162
10163         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10164         omitted.
10165
10166 2011-02-08  Bruno Haible  <bruno@clisp.org>
10167
10168         Split large sed scripts, for HP-UX sed.
10169         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10170         to avoid HP-UX limit of 99 commands, in the near future.
10171         * modules/stdlib (Makefile.am): Likewise.
10172         * modules/unistd (Makefile.am): Likewise.
10173         * modules/wchar (Makefile.am): Likewise.
10174         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10175         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10176         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10177
10178 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10179             Bruno Haible  <bruno@clisp.org>
10180
10181         stdlib: improve random_r modularization
10182         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10183         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10184         you also need the random_r module to get this material right.
10185         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10186         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10187         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10188
10189 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10190
10191         stdlib: don't depend on stdint
10192         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10193         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10194         be independent of whether stdint.h is needed.
10195         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10196         here, instead of ...
10197         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10198         struct random_data should be using the random_r module, not just
10199         the stdlib module (which wouldn't make sense: what package needs
10200         just struct random_data without also needing random_r?).
10201         * modules/stdlib (Depends-on): Remove stdint.
10202
10203         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10204         See the thread rooted at
10205         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10206         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10207         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10208         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10209         __VMS)); previously it was always included (via fcntl--.h).
10210         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10211         hand; this is good enough for load averages.  Also, do not use
10212         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10213         flags directly if available and don't bother otherwise.  (Packages
10214         that need the extra reliability should use the modules that define
10215         these flags on older platforms that lack them.)
10216         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10217         fcntl-safer.
10218
10219 2011-02-08  Jim Meyering  <meyering@redhat.com>
10220
10221         di-set.h, ino-map.h: add multiple-inclusion guard
10222         Technically, the guard is required only for ino-map.h, due to its
10223         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10224         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10225         * lib/ino-map.h: Likewise.
10226
10227 2011-02-06  Bruno Haible  <bruno@clisp.org>
10228
10229         iswblank: Ensure declaration on glibc systems.
10230         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10231         * modules/iswblank (Dependencies): Add 'extensions'.
10232         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10233
10234 2011-02-06  Bruno Haible  <bruno@clisp.org>
10235
10236         New module 'iswblank'.
10237         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10238         * modules/iswblank: New file.
10239         * modules/wctype-h (Files): Remove lib/iswblank.c.
10240         (Makefile.am): Substitute GNULIB_ISWBLANK.
10241         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10242         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10243         (gl_WCTYPE_H_DEFAULTS): New macro.
10244         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10245         * modules/iswblank-tests: New file.
10246         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10247         * tests/test-wctype-h.c (main): Remove iswblank tests.
10248         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10249         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10250         of 'wctype-h'.
10251         * NEWS: Mention the change.
10252         * modules/mbchar (Depends-on): Add iswblank.
10253
10254 2011-02-08  Bruno Haible  <bruno@clisp.org>
10255
10256         di-set tests: Refactor.
10257         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10258         unnecessary includes.
10259         (ASSERT): Remove macro.
10260         (main): Make C90 compliant by avoiding variable declaration after
10261         statement.
10262         * modules/di-set-tests (Files): Add tests/macros.h.
10263
10264 2011-02-08  Bruno Haible  <bruno@clisp.org>
10265
10266         ino-map tests: Refactor.
10267         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10268         unnecessary includes.
10269         (ASSERT): Remove macro.
10270         (main): Make C90 compliant by avoiding variable declaration after
10271         statement.
10272         * modules/ino-map-tests (Files): Add tests/macros.h.
10273
10274 2011-02-08  Jim Meyering  <meyering@redhat.com>
10275
10276         di-set: add "const" to a cast
10277         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10278         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10279
10280 2011-02-06  Bruno Haible  <bruno@clisp.org>
10281
10282         Rename module 'wctype' to 'wctype-h'.
10283         * modules/wctype-h: Renamed from modules/wctype.
10284         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10285         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10286         (Files, Depends-on, Makefile.am): Update.
10287         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10288         (Files, Makefile.am): Update.
10289         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10290         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10291         * doc/posix-headers/wctype.texi: Update.
10292         * doc/posix-functions/iswalnum.texi: Update.
10293         * doc/posix-functions/iswalpha.texi: Update.
10294         * doc/posix-functions/iswblank.texi: Update.
10295         * doc/posix-functions/iswcntrl.texi: Update.
10296         * doc/posix-functions/iswdigit.texi: Update.
10297         * doc/posix-functions/iswgraph.texi: Update.
10298         * doc/posix-functions/iswlower.texi: Update.
10299         * doc/posix-functions/iswprint.texi: Update.
10300         * doc/posix-functions/iswpunct.texi: Update.
10301         * doc/posix-functions/iswspace.texi: Update.
10302         * doc/posix-functions/iswupper.texi: Update.
10303         * doc/posix-functions/iswxdigit.texi: Update.
10304         * doc/posix-functions/towlower.texi: Update.
10305         * doc/posix-functions/towupper.texi: Update.
10306         * NEWS: Mention the change.
10307         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10308         * modules/mbchar (Dependencies): Likewise.
10309         * modules/mbswidth (Dependencies): Likewise.
10310         * modules/quotearg (Dependencies): Likewise.
10311         * modules/regex (Dependencies): Likewise.
10312         * modules/wcscasecmp (Dependencies): Likewise.
10313         * modules/wcsncasecmp (Dependencies): Likewise.
10314         * modules/wcwidth (Dependencies): Likewise.
10315
10316 2011-02-06  Bruno Haible  <bruno@clisp.org>
10317
10318         New module 'wcswidth'.
10319         * modules/wcswidth: New file.
10320         * lib/wchar.in.h (wcswidth): New declaration.
10321         * lib/wcswidth.c: New file.
10322         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10323         * m4/wcswidth.m4: New file.
10324         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10325         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10326         REPLACE_WCSWIDTH.
10327         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10328         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10329         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10330         * doc/posix-functions/wcswidth.texi: Mention the new module.
10331
10332 2011-02-06  Bruno Haible  <bruno@clisp.org>
10333
10334         New module 'wcstok'.
10335         * modules/wcstok: New file.
10336         * lib/wchar.in.h (wcstok): New declaration.
10337         * lib/wcstok.c: New file.
10338         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10339         * m4/wcstok.m4: New file.
10340         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10341         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10342         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10343         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10344         * doc/posix-functions/wcstok.texi: Mention the new module.
10345
10346 2011-02-06  Bruno Haible  <bruno@clisp.org>
10347
10348         New module 'wcsstr'.
10349         * modules/wcsstr: New file.
10350         * lib/wchar.in.h (wcsstr): New declaration.
10351         * lib/wcsstr.c: New file.
10352         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10353         * m4/wcsstr.m4: New file.
10354         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10355         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10356         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10357         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10358         * doc/posix-functions/wcsstr.texi: Mention the new module.
10359
10360 2011-02-06  Bruno Haible  <bruno@clisp.org>
10361
10362         New module 'wcspbrk'.
10363         * modules/wcspbrk: New file.
10364         * lib/wchar.in.h (wcspbrk): New declaration.
10365         * lib/wcspbrk.c: New file.
10366         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10367         * m4/wcspbrk.m4: New file.
10368         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10369         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10370         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10371         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10372         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10373
10374 2011-02-06  Bruno Haible  <bruno@clisp.org>
10375
10376         New module 'wcsspn'.
10377         * modules/wcsspn: New file.
10378         * lib/wchar.in.h (wcsspn): New declaration.
10379         * lib/wcsspn.c: New file.
10380         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10381         * m4/wcsspn.m4: New file.
10382         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10383         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10384         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10385         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10386         * doc/posix-functions/wcsspn.texi: Mention the new module.
10387
10388 2011-02-06  Bruno Haible  <bruno@clisp.org>
10389
10390         New module 'wcscspn'.
10391         * modules/wcscspn: New file.
10392         * lib/wchar.in.h (wcscspn): New declaration.
10393         * lib/wcscspn.c: New file.
10394         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10395         * m4/wcscspn.m4: New file.
10396         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10397         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10398         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10399         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10400         * doc/posix-functions/wcscspn.texi: Mention the new module.
10401
10402 2011-02-06  Bruno Haible  <bruno@clisp.org>
10403
10404         New module 'wcsrchr'.
10405         * modules/wcsrchr: New file.
10406         * lib/wchar.in.h (wcsrchr): New declaration.
10407         * lib/wcsrchr.c: New file.
10408         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10409         * m4/wcsrchr.m4: New file.
10410         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10411         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10412         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10413         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10414         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10415
10416 2011-02-06  Bruno Haible  <bruno@clisp.org>
10417
10418         New module 'wcschr'.
10419         * modules/wcschr: New file.
10420         * lib/wchar.in.h (wcschr): New declaration.
10421         * lib/wcschr.c: New file.
10422         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10423         * m4/wcschr.m4: New file.
10424         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10425         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10426         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10427         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10428         * doc/posix-functions/wcschr.texi: Mention the new module.
10429
10430 2011-02-06  Bruno Haible  <bruno@clisp.org>
10431
10432         New module 'wcsdup'.
10433         * modules/wcsdup: New file.
10434         * lib/wchar.in.h (wcsdup): New declaration.
10435         * lib/wcsdup.c: New file.
10436         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10437         * m4/wcsdup.m4: New file.
10438         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10439         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10440         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10441         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10442         * doc/posix-functions/wcsdup.texi: Mention the new module.
10443
10444 2011-02-06  Bruno Haible  <bruno@clisp.org>
10445
10446         New module 'wcsxfrm'.
10447         * modules/wcsxfrm: New file.
10448         * lib/wchar.in.h (wcsxfrm): New declaration.
10449         * lib/wcsxfrm.c: New file.
10450         * lib/wcsxfrm-impl.h: New file.
10451         * m4/wcsxfrm.m4: New file.
10452         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10453         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10454         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10455         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10456         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10457
10458 2011-02-06  Bruno Haible  <bruno@clisp.org>
10459
10460         New module 'wcscoll'.
10461         * modules/wcscoll: New file.
10462         * lib/wchar.in.h (wcscoll): New declaration.
10463         * lib/wcscoll.c: New file.
10464         * lib/wcscoll-impl.h: New file.
10465         * m4/wcscoll.m4: New file.
10466         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10467         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10468         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10469         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10470         * doc/posix-functions/wcscoll.texi: Mention the new module.
10471
10472 2011-02-06  Bruno Haible  <bruno@clisp.org>
10473
10474         New module 'wcsncasecmp'.
10475         * modules/wcsncasecmp: New file.
10476         * lib/wchar.in.h (wcsncasecmp): New declaration.
10477         * lib/wcsncasecmp.c: New file.
10478         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10479         * m4/wcsncasecmp.m4: New file.
10480         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10481         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10482         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10483         HAVE_WCSNCASECMP.
10484         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10485         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10486
10487 2011-02-06  Bruno Haible  <bruno@clisp.org>
10488
10489         New module 'wcscasecmp'.
10490         * modules/wcscasecmp: New file.
10491         * lib/wchar.in.h (wcscasecmp): New declaration.
10492         * lib/wcscasecmp.c: New file.
10493         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10494         * m4/wcscasecmp.m4: New file.
10495         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10496         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10497         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10498         HAVE_WCSCASECMP.
10499         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10500         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10501
10502 2011-02-05  Bruno Haible  <bruno@clisp.org>
10503
10504         New module 'wcsncmp'.
10505         * modules/wcsncmp: New file.
10506         * lib/wchar.in.h (wcsncmp): New declaration.
10507         * lib/wcsncmp.c: New file.
10508         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10509         * m4/wcsncmp.m4: New file.
10510         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10511         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10512         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10513         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10514         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10515
10516 2011-02-05  Bruno Haible  <bruno@clisp.org>
10517
10518         New module 'wcscmp'.
10519         * modules/wcscmp: New file.
10520         * lib/wchar.in.h (wcscmp): New declaration.
10521         * lib/wcscmp.c: New file.
10522         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10523         * m4/wcscmp.m4: New file.
10524         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10525         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10526         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10527         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10528         * doc/posix-functions/wcscmp.texi: Mention the new module.
10529
10530 2011-02-05  Bruno Haible  <bruno@clisp.org>
10531
10532         New module 'wcsncat'.
10533         * modules/wcsncat: New file.
10534         * lib/wchar.in.h (wcsncat): New declaration.
10535         * lib/wcsncat.c: New file.
10536         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10537         * m4/wcsncat.m4: New file.
10538         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10539         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10540         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10541         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10542         * doc/posix-functions/wcsncat.texi: Mention the new module.
10543
10544 2011-02-05  Bruno Haible  <bruno@clisp.org>
10545
10546         New module 'wcscat'.
10547         * modules/wcscat: New file.
10548         * lib/wchar.in.h (wcscat): New declaration.
10549         * lib/wcscat.c: New file.
10550         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10551         * m4/wcscat.m4: New file.
10552         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10553         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10554         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10555         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10556         * doc/posix-functions/wcscat.texi: Mention the new module.
10557
10558 2011-02-05  Bruno Haible  <bruno@clisp.org>
10559
10560         New module 'wcpncpy'.
10561         * modules/wcpncpy: New file.
10562         * lib/wchar.in.h (wcpncpy): New declaration.
10563         * lib/wcpncpy.c: New file.
10564         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10565         * m4/wcpncpy.m4: New file.
10566         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10567         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10568         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10569         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10570         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10571
10572 2011-02-05  Bruno Haible  <bruno@clisp.org>
10573
10574         New module 'wcsncpy'.
10575         * modules/wcsncpy: New file.
10576         * lib/wchar.in.h (wcsncpy): New declaration.
10577         * lib/wcsncpy.c: New file.
10578         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10579         * m4/wcsncpy.m4: New file.
10580         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10581         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10582         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10583         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10584         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10585
10586 2011-02-05  Bruno Haible  <bruno@clisp.org>
10587
10588         New module 'wcpcpy'.
10589         * modules/wcpcpy: New file.
10590         * lib/wchar.in.h (wcpcpy): New declaration.
10591         * lib/wcpcpy.c: New file.
10592         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10593         * m4/wcpcpy.m4: New file.
10594         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10595         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10596         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10597         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10598         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10599
10600 2011-02-05  Bruno Haible  <bruno@clisp.org>
10601
10602         New module 'wcscpy'.
10603         * modules/wcscpy: New file.
10604         * lib/wchar.in.h (wcscpy): New declaration.
10605         * lib/wcscpy.c: New file.
10606         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10607         * m4/wcscpy.m4: New file.
10608         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10609         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10610         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10611         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10612         * doc/posix-functions/wcscpy.texi: Mention the new module.
10613
10614 2011-02-05  Bruno Haible  <bruno@clisp.org>
10615
10616         New module 'wcsnlen'.
10617         * modules/wcsnlen: New file.
10618         * lib/wchar.in.h (wcsnlen): New declaration.
10619         * lib/wcsnlen.c: New file.
10620         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10621         * m4/wcsnlen.m4: New file.
10622         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10623         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10624         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10625         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10626         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10627
10628 2011-02-05  Bruno Haible  <bruno@clisp.org>
10629
10630         New module 'wcslen'.
10631         * modules/wcslen: New file.
10632         * lib/wchar.in.h (wcslen): New declaration.
10633         * lib/wcslen.c: New file.
10634         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10635         * m4/wcslen.m4: New file.
10636         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10637         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10638         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10639         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10640         * doc/posix-functions/wcslen.texi: Mention the new module.
10641
10642 2011-02-05  Bruno Haible  <bruno@clisp.org>
10643
10644         New module 'wmemset'.
10645         * modules/wmemset: New file.
10646         * lib/wchar.in.h (wmemset): New declaration.
10647         * lib/wmemset.c: New file.
10648         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10649         * m4/wmemset.m4: New file.
10650         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10651         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10652         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10653         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10654         * doc/posix-functions/wmemset.texi: Mention the new module.
10655
10656 2011-02-05  Bruno Haible  <bruno@clisp.org>
10657
10658         New module 'wmemmove'.
10659         * modules/wmemmove: New file.
10660         * lib/wchar.in.h (wmemmove): New declaration.
10661         * lib/wmemmove.c: New file.
10662         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10663         * m4/wmemmove.m4: New file.
10664         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10665         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10666         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10667         HAVE_WMEMMOVE.
10668         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10669         * doc/posix-functions/wmemmove.texi: Mention the new module.
10670
10671 2011-02-05  Bruno Haible  <bruno@clisp.org>
10672
10673         New module 'wmemcpy'.
10674         * modules/wmemcpy: New file.
10675         * lib/wchar.in.h (wmemcpy): New declaration.
10676         * lib/wmemcpy.c: New file.
10677         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10678         * m4/wmemcpy.m4: New file.
10679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10681         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10682         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10683         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10684
10685 2011-02-05  Bruno Haible  <bruno@clisp.org>
10686
10687         New module 'wmemcmp'.
10688         * modules/wmemcmp: New file.
10689         * lib/wchar.in.h (wmemcmp): New declaration.
10690         * lib/wmemcmp.c: New file.
10691         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10692         * m4/wmemcmp.m4: New file.
10693         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10694         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10695         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10696         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10697         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10698
10699 2011-02-07  Jim Meyering  <meyering@redhat.com>
10700
10701         di-set, ino-map: new modules, from coreutils
10702         * lib/di-set.c: New file.
10703         * lib/di-set.h: Likewise.
10704         * lib/ino-map.c: Likewise.
10705         * lib/ino-map.h: Likewise.
10706         * modules/di-set: Likewise.
10707         * modules/di-set-tests: Likewise.
10708         * modules/ino-map: Likewise.
10709         * modules/ino-map-tests: Likewise.
10710         * tests/test-di-set.c: Likewise.
10711         * tests/test-ino-map.c: Likewise.
10712
10713 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10714
10715         getloadavg: merge minor changes from Emacs
10716
10717         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10718         (getloadavg): Use memset, not bzero.
10719
10720         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10721         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10722         clash (bug#86).
10723
10724 2010-11-14  Bruno Haible  <bruno@clisp.org>
10725
10726         Allow multiple gnulib generated replacements to coexist.
10727         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10728         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10729         * lib/langinfo.in.h (nl_item): Likewise.
10730         * lib/math.in.h (_NaN, NAN): Likewise.
10731         * lib/netdb.in.h (struct addrinfo): Likewise.
10732         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10733         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10734         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10735         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10736         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10737         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10738         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10739         pthread_mutexattr_init, pthread_mutexattr_settype,
10740         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10741         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10742         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10743         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10744         * lib/sched.in.h (struct sched_param): Likewise.
10745         * lib/se-selinux.in.h (security_class_t, security_context_t,
10746         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10747         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10748         lsetfilecon, fsetfilecon, security_check_context,
10749         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10750         Likewise.
10751         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10752         Likewise.
10753         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10754         _gl_function_taking_int_returning_void_t, union sigval,
10755         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10756         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10757         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10758         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10759         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10760         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10761         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10762         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10763         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10764         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10765         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10766         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10767         socklen_t, rpl_fd_isset): Likewise.
10768         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10769         * lib/sys_time.in.h (struct timeval): Likewise.
10770         * lib/sys_times.in.h (struct tms): Likewise.
10771         * lib/sys_utsname.in.h (struct utsname):
10772         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10773         * lib/unistd.in.h (getpagesize): Likewise.
10774         * lib/wchar.in.h (mbstate_t): Likewise.
10775         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10776         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10777         towlower, towupper): Likewise.
10778         Reported by Sam Steingold <sds@gnu.org>.
10779
10780 2011-02-05  Eric Blake  <eblake@redhat.com>
10781
10782         unsetenv: work around Haiku issues
10783         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10784         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10785
10786 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10787
10788         libposix: avoid calling error() within libposix
10789         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10790         is defined.
10791
10792 2011-02-05  Eric Blake  <eblake@redhat.com>
10793
10794         strerror_r-posix: port to cygwin
10795         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10796         implementation.
10797         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10798         * tests/test-strerror_r.c (main): Fix test.
10799         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10800         issue.
10801
10802 2011-02-05  Bruno Haible  <bruno@clisp.org>
10803
10804         New module 'wmemchr'.
10805         * modules/wmemchr: New file.
10806         * lib/wchar.in.h (wmemchr): New declaration.
10807         * lib/wmemchr.c: New file.
10808         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10809         * m4/wmemchr.m4: New file.
10810         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10811         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10812         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10813         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10814         * doc/posix-functions/wmemchr.texi: Mention the new module.
10815
10816 2011-02-04  Eric Blake  <eblake@redhat.com>
10817
10818         fdopendir: detect FreeBSD bug
10819         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10820         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10821
10822 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10823
10824         stdbool: do not define HAVE_STDBOOL_H
10825         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10826         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10827         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10828         imported from the latest Autoconf git.  It was motivated by Emacs,
10829         which uses gnulib but does not need HAVE_STDBOOL_H.
10830
10831 2011-02-04  Bruno Haible  <bruno@clisp.org>
10832
10833         wcsnrtombs: Prepare for new module wwcsnrtombs.
10834         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10835         * lib/wcsnrtombs.c: Include it.
10836         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10837
10838         wcsrtombs: Prepare for new module wwcsrtombs.
10839         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10840         * lib/wcsrtombs.c: Include it.
10841         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10842
10843         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10844         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10845         * lib/mbsnrtowcs.c: Include it.
10846         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10847
10848         mbsrtowcs: Prepare for new module mbsrtowwcs.
10849         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10850         * lib/mbsrtowcs.c: Include it.
10851         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10852
10853 2011-02-04  Bruno Haible  <bruno@clisp.org>
10854
10855         vasnprintf: Reduce use of malloc for small format strings.
10856         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10857         (arguments): Add room for the first 7 arguments.
10858         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10859         (char_directives, u8_directives, u16_directives, u32_directives): Add
10860         room for the first 7 directives.
10861         * lib/printf-parse.c: Include <string.h>.
10862         (PRINTF_PARSE): Change memory handling code so that it uses the first
10863         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10864         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10865         Reported by Pádraig Brady <P@draigbrady.com>.
10866
10867 2011-01-31  Eric Blake  <eblake@redhat.com>
10868
10869         dup2: work around Haiku bug
10870         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10871         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10872         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10873         * tests/test-dup2.c (main): Enhance test.
10874
10875 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10876
10877         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10878         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10879         declared by eglibc 2.11.2.
10880         * lib/stdio.in.h: Likewise.
10881
10882 2011-01-31  Eric Blake  <eblake@redhat.com>
10883
10884         ignore-value: add missing test dependency
10885         * tests/test-ignore-value.c: Revert previous change; stdio.h
10886         provides off_t.
10887         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10888
10889 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10890
10891         mktime: clarify long_int width checking
10892         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10893         the top level, to make it clearer that the assumption about
10894         long_int width is being checked.  See
10895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10896
10897 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10898
10899         ignore-value: Fix self-test.
10900         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10901
10902 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10903
10904         TYPE_MAXIMUM: avoid theoretically undefined behavior
10905         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10906         negative number, which the C Standard says has undefined behavior.
10907         In practice this is not a problem, but might as well do it by the book.
10908         Reported by Rich Felker and Eric Blake; see
10909         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10910         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10911         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10912         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10913         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10914         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10915         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10916
10917         mktime: #undef mktime before #defining it
10918         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10919
10920         mktime: systematically normalize tm_isdst comparisons
10921         * lib/mktime.c (isdst_differ): New function.
10922         (__mktime_internal): Use it systematically for all isdst comparisons.
10923         This completes the fix for libc BZ #6723, and removes the need for
10924         normalizing tm_isdst.  See
10925         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10926         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10927
10928         mktime: fix some integer overflow issues and sidestep the rest
10929
10930         This was prompted by a bug report by Benjamin Lindner for MinGW
10931         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10932         His bug is due to signed integer overflow (0 - INT_MIN), and I
10933         I scanned through mktime.c looking for other integer overflow
10934         problems, fixing all the bugs I found.
10935
10936         Although the C Standard says the resulting code is still not safe
10937         in the presence of integer overflow, in practice it should be good
10938         enough for all real-world two's-complement implementations, except
10939         for debugging environments that deliberately trap on integer
10940         overflow (e.g., gcc -ftrapv).
10941
10942         * lib/mktime.c (WRAPV): New macro.
10943         (SHR): Also check that long_int and time_t shift right in the
10944         usual way, before using the fast-but-unportable method.
10945         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10946         used.  The code already assumed two's complement, so there's
10947         no need to test for alternatives.  All uses removed.
10948         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
10949         the C standard.  Problem reported by Rich Felker in
10950         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
10951         (twos_complement_arithmetic): Also check long_int and time_t.
10952         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
10953         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
10954         (__mktime_internal): Avoid integer overflow with unary subtraction
10955         in two instances where -1 - X is an adequate replacement for -X,
10956         since the calculations are approximate.
10957
10958 2011-01-29  Eric Blake  <eblake@redhat.com>
10959
10960         mktime: avoid infinite loop
10961         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
10962         type; behavior is still undefined but portable to all known targets.
10963         Reported by Rich Felker.
10964
10965 2011-01-29  Simon Josefsson  <simon@josefsson.org>
10966
10967         rename, unlink, same-inode: Relicense.
10968         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
10969         * modules/unlink (License): Likewise.
10970         * modules/same-inode (License): Likewise.
10971
10972 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
10973
10974         mktime: avoid problems on NetBSD 5 / i386
10975         * lib/mktime.c (long_int): New type.  This works around a problem
10976         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
10977         but time_t is 64 bits, and where I expect the existing code is
10978         wrong in some cases.
10979         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
10980         (ydhms_diff): Bring back the compile-time check for wide-enough
10981         year and yday.
10982
10983         mktime: fix misspelling in comment
10984         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
10985         This merges all recent glibc changes of importance.
10986
10987 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10988
10989         move-if-change: cope with concurrent mv of identical file.
10990         * build-aux/move-if-change (CMPPROG): Accept environment
10991         variable as an override for `cmp'.
10992         (usage): Document CMPPROG.
10993         Adjust comparison to drop stdout.  Cope with failure of mv if
10994         the target file exists and is identical to the source, for
10995         parallel builds.
10996         Report from H.J. Lu against binutils in PR binutils/12283.
10997
10998 2011-01-28  Bruce Korb  <bkorb@gnu.org>
10999
11000         * users.txt: Mention sharutils.
11001
11002 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11003
11004         * users.txt: Mention OATH Toolkit.
11005
11006 2011-01-27  Bruno Haible  <bruno@clisp.org>
11007
11008         Prepare for supporting FreeBSD 10.
11009         * build-aux/config.libpath: Remove handling of freebsd1*.
11010
11011 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11012
11013         Prepare for supporting FreeBSD 10.
11014         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11015         match FreeBSD 10.0.
11016
11017 2011-01-27  Bruno Haible  <bruno@clisp.org>
11018
11019         vma-iter, get-rusage-as: Add OpenBSD support.
11020         * modules/vma-iter (configure.ac): Test for mquery.
11021         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11022         * lib/vma-iter.c: Include <sys/mman.h>.
11023         (vma_iterate): Add an implementation based on mquery().
11024         * lib/resource-ext.h (get_rusage_as): Update comments.
11025         * lib/get-rusage-as.c: Likewise.
11026         * lib/get-rusage-data.c: Likewise.
11027
11028 2011-01-26  Karl Berry  <karl@gnu.org>
11029
11030         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11031         variables to make it easier to override the makeinfo program used.
11032
11033 2011-01-26  Eric Blake  <eblake@redhat.com>
11034
11035         fcntl: work around Haiku F_DUPFD bugs
11036         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11037         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11038         cloexec bit on duplication.
11039         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11040
11041 2011-01-26  Bruno Haible  <bruno@clisp.org>
11042
11043         Enable memory leak tests on AIX.
11044         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11045         * tests/test-fprintf-posix3.c (main): Likewise.
11046
11047 2011-01-26  Bruno Haible  <bruno@clisp.org>
11048
11049         Tests for module 'get-rusage-data'.
11050         * modules/get-rusage-data-tests: New file.
11051         * tests/test-get-rusage-data.c: New file.
11052
11053         New module 'get-rusage-data'.
11054         * lib/resource-ext.h (get_rusage_data): New declaration.
11055         * lib/get-rusage-data.c: New file.
11056         * modules/get-rusage-data: New file.
11057
11058 2011-01-25  Bruno Haible  <bruno@clisp.org>
11059
11060         get-rusage-as: Allow for easier testing.
11061         * lib/resource-ext.h (get_rusage_as): Add comment.
11062         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11063         (main): New function for interactive testing.
11064
11065 2011-01-25  Bruno Haible  <bruno@clisp.org>
11066
11067         vma-iter: Treat Haiku like BeOS.
11068         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11069         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11070
11071 2011-01-25  Eric Blake  <eblake@redhat.com>
11072
11073         c-stack: fix regression on cygwin when libsigsegv is present
11074         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11075
11076 2011-01-24  Bruno Haible  <bruno@clisp.org>
11077
11078         vma-iter: Avoid empty intervals.
11079         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11080         on an empty interval.
11081
11082 2011-01-24  Jim Meyering  <meyering@redhat.com>
11083
11084         u64: remove unnecessary #include
11085         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11086
11087 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11088
11089         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11090         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11091
11092 2011-01-23  Bruno Haible  <bruno@clisp.org>
11093
11094         New module 'vma-iter'.
11095         * lib/vma-iter.h: New file.
11096         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11097         * modules/vma-iter: New file.
11098         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11099         for get_rusage_as_via_iterator.
11100         (vma_iterate_callback): New function.
11101         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11102         * modules/get-rusage-as (Depends-on): Add vma-iter.
11103
11104 2011-01-23  Bruno Haible  <bruno@clisp.org>
11105
11106         uninorm: Tweak includes.
11107         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11108         Reported by Jim Meyering.
11109
11110 2011-01-23  Bruno Haible  <bruno@clisp.org>
11111
11112         get-rusage-as: Improve on NetBSD.
11113         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11114         /proc, like on FreeBSD.
11115
11116 2011-01-23  Jim Meyering  <meyering@redhat.com>
11117
11118         xreadlink.h: remove unnecessary #include
11119         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11120
11121         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11122         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11123
11124 2011-01-23  Bruno Haible  <bruno@clisp.org>
11125
11126         get-rusage-as: Fix bug.
11127         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11128         original limit when aborting the first loop.
11129
11130 2011-01-23  Bruno Haible  <bruno@clisp.org>
11131
11132         wctype: Ensure valid C syntax.
11133         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11134         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11135
11136 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11137
11138         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11139         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11140         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11141         as they are needed only for configure's test case.
11142         This removes two unnecessary symbols from config.h.
11143
11144         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11145         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11146         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11147         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11148         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11149         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11150         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11151         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11152         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11153         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11154         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11155         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11156         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11157         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11158         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11159         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11160         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11161         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11162
11163 2011-01-21  Eric Blake  <eblake@redhat.com>
11164
11165         maintainer-makefile: work with older git for submodule check
11166         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11167         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11168         Reported by Matthias Bolte.
11169
11170         bootstrap: minor portability fixes
11171         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11172         (usage): Omit leading capital and trailing . on help phrases, per
11173         GNU Coding Standards.
11174         (check_versions, top level): Prefix messages with script name.
11175
11176 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11177
11178         bootstrap: support --no-git option
11179         * build-aux/bootstrap: Add --no-git option, to be used when
11180         --gnulib-srcdir points to the exact desired checkout.
11181
11182 2011-01-21  Eric Blake  <eblake@redhat.com>
11183
11184         strerror_r-posix: work with glibc 2.13
11185         * lib/strerror_r.c (strerror_r): Fix return type.
11186
11187 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11188             Bruno Haible  <bruno@clisp.org>
11189
11190         uN_strstr: New unit tests.
11191         * modules/unistr/u8-strstr-tests: New file.
11192         * modules/unistr/u16-strstr-tests: New file.
11193         * modules/unistr/u32-strstr-tests: New file.
11194         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11195         * tests/unistr/test-u8-strstr.c: New file.
11196         * tests/unistr/test-u16-strstr.c: New file.
11197         * tests/unistr/test-u32-strstr.c: New file.
11198
11199 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11200             Bruno Haible  <bruno@clisp.org>
11201
11202         Make uN_strstr functions O(n) worst-case.
11203         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11204         16-bit and 32-bit unit cases, use the unibyte algorithm from
11205         lib/mbsstr.c.
11206         * lib/unistr/u8-strstr.c: Include <string.h>.
11207         (UNIT_IS_UINT8_T): New macro.
11208         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11209         (U_STRLEN, U_STRNLEN): New macros.
11210         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11211         (U_STRLEN, U_STRNLEN): New macros.
11212         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11213         (configure.ac): Update required libunistring version.
11214         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11215         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11216         malloca.
11217         (configure.ac): Update required libunistring version.
11218         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11219         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11220         malloca.
11221         (configure.ac): Update required libunistring version.
11222
11223 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11224             Bruno Haible  <bruno@clisp.org>
11225
11226         Prepare for faster uN_strstr functions.
11227         * lib/str-kmp.h: Support definable UNITs.
11228         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11229         needle_len argument.
11230         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11231         * lib/mbscasestr.c (mbscasestr): Likewise.
11232
11233 2011-01-21  Pádraig Brady <P@draigBrady.com>
11234
11235         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11236         * tests/test-malloca.c (main): Unset the environment variable
11237         to greatly speed up the test.
11238         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11239         * modules/malloca-tests: Depend on unsetenv.
11240
11241 2011-01-21  Pádraig Brady <P@draigBrady.com>
11242
11243         ignore-value: remove stdint dependency
11244         * lib/ignore-value.h: Remove <stdint.h>
11245         * modules/ignore-value: Remove stdint dependency.
11246
11247 2011-01-21  Jim Meyering  <meyering@redhat.com>
11248
11249         maint.mk: adjust variable name to be consistent with other gl_ vars
11250         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11251         to be lower case.
11252
11253 2011-01-20  Jim Meyering  <meyering@redhat.com>
11254
11255         maint.mk: make "check" depend on public-submodule-commit by default
11256         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11257
11258 2011-01-20  Bruno Haible  <bruno@clisp.org>
11259
11260         mbfile, mbiter: Complete change from 2008-12-21.
11261         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11262         * m4/mbiter.m4 (gl_MBITER): Likewise.
11263
11264 2011-01-20  Jim Meyering  <meyering@redhat.com>
11265
11266         init.sh: insert space between each function name and "()"
11267         * tests/init.sh: Make it a little easier to see that a function's
11268         name is "warn_", and not "warn" when looking at the first part of
11269         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11270
11271 2011-01-20  Jim Meyering  <meyering@redhat.com>
11272
11273         mountlist: clean up code formatting
11274         * lib/mountlist.c (read_file_system_list): Split a long line,
11275         correct bracing style, use NULL in place of "(struct statfs *)0",
11276         don't parenthesize return value, add spaces around "=" and after
11277         ";-in-for-stmt".
11278
11279 2011-01-14  Markus Duft <mduft@gentoo.org>
11280
11281         mountlist: add support for Interix
11282         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11283         Apply statvfs to all entries of /dev/fs.
11284         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11285         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11286
11287 2011-01-20  Jim Meyering  <meyering@redhat.com>
11288
11289         maint.mk: improve the public-submodule-commit rule
11290         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11291         to suppress printing of its commands... unless V=1.
11292         Add git submodule's --quiet option to suppress printing of e.g.,
11293         "Entering gnulib" output.
11294         "cd" into $(srcdir) before running git submodule.
11295
11296 2011-01-20  Bruno Haible  <bruno@clisp.org>
11297
11298         include_next: Fix bug introduced on 2011-01-18.
11299         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11300         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11301         ac_cv_header_... variable if the second argument is not 'check'.
11302         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11303         gl_NEXT_HEADERS_INTERNAL.
11304
11305 2011-01-20  Bruno Haible  <bruno@clisp.org>
11306
11307         Allow the user to avoid the GNULIB_TEST_* macros.
11308         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11309         Suggested by Paul Eggert.
11310
11311 2011-01-14  Jim Meyering  <meyering@redhat.com>
11312
11313         bootstrap: avoid failure when there is no .gitmodules file
11314         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11315         has been assigned to, even when its value is the empty string.
11316         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11317         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11318         Reported by John W. Eaton <jwe@gnu.org>.
11319
11320 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11321
11322         assume <ctype.h>, ..., <time.h> exist
11323         For years gnulib has been assuming the existence of the headers
11324         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11325         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11326         them, since they don't appear to be needed.
11327         * README (Portability guidelines): Document this.
11328         * lib/flock.c: Assume <fcntl.h> exists.
11329         * lib/regex_internal.h: Assume <locale.h> exists.
11330         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11331         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11332         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11333         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11334         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11335         * m4/regex.m4 (gl_REGEX): Likewise.
11336         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11337         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11338         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11339         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11340         * tests/test-argp.c: Likewise.
11341         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11342
11343         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11344         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11345         AA_APPLE_UNIVERSAL_BUILD.  See
11346         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11347         * NEWS: Document this.
11348
11349 2011-01-19  Eric Blake  <eblake@redhat.com>
11350
11351         c-stack: assume stack overflow if SA_SIGINFO unsupported
11352         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11353         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11354         sigaction will work.
11355         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11356         behavior match Linux.
11357         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11358
11359         stdbool-tests: accomodate Haiku
11360         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11361
11362         binary-io: fix O_TEXT on Haiku
11363         * modules/binary-io (Depends-on): Add fcntl-h.
11364         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11365         than blindly undefining O_TEXT.
11366         Reported by Scott McCreary.
11367
11368 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11369
11370         include_next: do not check for standard headers like stddef.h
11371
11372         I found this problem when modifying Emacs to use gnulib.
11373         I noticed that it added HAVE_STDDEF_H to config.h, even though
11374         gnulib always assumes <stddef.h> exists as per README and this
11375         symbol is unnecessary.
11376         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11377         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11378         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11379         faster for headers like stddef.h that are known to exist.
11380         (gl_CHECK_NEXT_HEADERS): Use it.
11381         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11382         rather than gl_CHECK_NEXT_HEADERS.
11383         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11384         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11385
11386 2011-01-18  Eric Blake  <eblake@redhat.com>
11387
11388         ansi-c++-opt: skip C++ dependency style if C++ is unused
11389         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11390         tests when we know C++ compilation is not desired.
11391         Reported by Scott McCreary.
11392
11393 2011-01-18  Bruno Haible  <bruno@clisp.org>
11394
11395         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11396         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11397         (main): Perform test also when getrlimit and setrlimit don't exist or
11398         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11399         limiting the address space size using setrlimit, compare the address
11400         space size before and after the the test.
11401         * tests/test-dprintf-posix2.c: Likewise.
11402         * tests/test-fprintf-posix3.sh: Update skip messages.
11403         * tests/test-dprintf-posix2.sh: Likewise.
11404         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11405         * modules/dprintf-posix-tests (Depends-on): Likewise.
11406         Reported by Bruce Korb <bkorb@gnu.org> and
11407         Gary V. Vaughan <gary@gnu.org>.
11408
11409 2011-01-18  Bruno Haible  <bruno@clisp.org>
11410
11411         get-rusage-as: Improvement for Cygwin.
11412         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11413         areas that are merely reserved.
11414
11415 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11416
11417         strftime: remove dependencies on multibyte modules
11418
11419         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11420         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11421         only if __osf__ is defined, and I suspect OSF doesn't need these
11422         other modules.  If my guess is wrong, we'll need to come up with a
11423         variant of strftime that doesn't need the multibyte modules.
11424
11425         I discovered this problem when attempting modify Emacs to use the
11426         strftime module.  With the previous gnulib, this caused Emacs to
11427         need 31 new files, ranging from lib/config.charset to
11428         m4/wint_t.m4.  This was overkill and I expect would be offputting
11429         to the Emacs maintainers.  After this change, only 6 new files are
11430         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11431         stdbool.m4, and tm_gmtoff.m4.
11432
11433         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11434         Suggested by Bruno Haible in
11435         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11436         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11437         and do not check for wchar.h.
11438         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11439         (Depends-on): Remove mbrlen, mbsinit, wchar.
11440
11441 2011-01-18  Bruno Haible  <bruno@clisp.org>
11442
11443         Tests for module 'get-rusage-as'.
11444         * modules/get-rusage-as-tests: New file.
11445         * tests/test-get-rusage-as.c: New file.
11446
11447         New module 'get-rusage-as'.
11448         * modules/get-rusage-as: New file.
11449         * lib/resource-ext.h: New file.
11450         * lib/get-rusage-as.c: New file.
11451
11452 2011-01-17  Eric Blake  <eblake@redhat.com>
11453
11454         sigaction: relax license from LGPLv3+ to LGPLv2+
11455         * modules/sigaction (License): Relax to LGPLv2+.
11456
11457 2011-01-14  Bruno Haible  <bruno@clisp.org>
11458
11459         filemode: Make function declarations usable in C++ mode.
11460         * lib/filemode.h: Enclose function declarations in extern "C" block.
11461         Reported by John W. Eaton <jwe@gnu.org>.
11462
11463 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11464
11465         save-cwd: no longer include "xgetcwd.h"
11466         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11467         This avoids a compilation failure in projects that use save-cwd
11468         without also using the xgetcwd module.
11469
11470 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11471
11472         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11473         This is so that a program like Emacs, which needs only dtoastr,
11474         does not have to bother with distributing and compiling ftoastr
11475         and ldtoastr.
11476         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11477         * modules/dtoastr, modules/ldtoastr: New files.
11478         * modules/ftoastr: Now works just for 'float'.
11479         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11480         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11481         dtoastr.c, ldtoastr.c.
11482
11483 2011-01-11  Jim Meyering  <meyering@redhat.com>
11484
11485         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11486         There is no need to work around the lack of the fchdir function,
11487         since gnulib can now provide a replacement when required.
11488         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11489         * modules/save-cwd (Depends-on): Add fchdir.
11490
11491 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11492
11493         openat, save-cwd: avoid xmalloc
11494
11495         This removes a direct (but undocumented) dependency of openat on
11496         xalloc, along with an indirect dependency via save-cwd.  It also
11497         removes a dependency of save-cwd on xgetcwd, and thereby
11498         indirectly on xalloc.  This change causes the openat substitute
11499         to fall back on save_cwd when memory is tight, and for save_cwd to
11500         fail instead of dying when memory is tight, but that's good enough.
11501         Problem and initial idea for fix reported by Bastien Roucaries in
11502         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11503
11504         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11505         xalloc.h (for xmalloc).
11506         (openat_proc_name): Use malloc, not xmalloc.
11507         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11508         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11509
11510         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11511         This avoids heap allocation for file names whose lengths are in
11512         the range 512..1023, with the upper bound increasing to at most
11513         4031 depending on the platform's PATH_MAX.  (We do not want
11514         pathmax.h here as it might supply a non-constant PATH_MAX.)
11515         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11516         Perhaps they should be moved to malloca.h?
11517         (OPENAT_BUFFER_SIZE): Use them.
11518
11519 2011-01-10  Bruno Haible  <bruno@clisp.org>
11520
11521         doc: Update users.txt.
11522         * users.txt: Add recutils.
11523
11524 2011-01-09  Karl Berry  <karl@gnu.org>
11525
11526         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11527
11528         * doc/configmake.texi: New file.
11529         * doc/gnulib.texi: Include it.
11530         * modules/configmake: Move documentation from here.
11531
11532 2011-01-09  Bruno Haible  <bruno@clisp.org>
11533
11534         Update to Unicode 6.0.0.
11535         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11536         (get_lbp): Update for Unicode 6.0.0.
11537         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11538         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11539         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11540         U+11001, U+11038..U+11046. Remove U+06DE.
11541         (uc_width): Fix bounds of planes.
11542         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11543         lib/uniwidth/width.c.
11544         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11545         trailing whitespace removed.
11546         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11547         without comments, but with the original copyright notice.
11548         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11549         * lib/unicase/ignorable.h: Likewise.
11550         * lib/unicase/tocasefold.h: Likewise.
11551         * lib/unicase/tolower.h: Likewise.
11552         * lib/unicase/totitle.h: Likewise.
11553         * lib/unicase/toupper.h: Likewise.
11554         * lib/unictype/bidi_of.h: Likewise.
11555         * lib/unictype/blocks.h: Likewise.
11556         * lib/unictype/categ_C.h: Likewise.
11557         * lib/unictype/categ_Cn.h: Likewise.
11558         * lib/unictype/categ_L.h: Likewise.
11559         * lib/unictype/categ_Ll.h: Likewise.
11560         * lib/unictype/categ_Lm.h: Likewise.
11561         * lib/unictype/categ_Lo.h: Likewise.
11562         * lib/unictype/categ_Lu.h: Likewise.
11563         * lib/unictype/categ_M.h: Likewise.
11564         * lib/unictype/categ_Mc.h: Likewise.
11565         * lib/unictype/categ_Me.h: Likewise.
11566         * lib/unictype/categ_Mn.h: Likewise.
11567         * lib/unictype/categ_N.h: Likewise.
11568         * lib/unictype/categ_Nd.h: Likewise.
11569         * lib/unictype/categ_No.h: Likewise.
11570         * lib/unictype/categ_P.h: Likewise.
11571         * lib/unictype/categ_Po.h: Likewise.
11572         * lib/unictype/categ_S.h: Likewise.
11573         * lib/unictype/categ_Sc.h: Likewise.
11574         * lib/unictype/categ_Sk.h: Likewise.
11575         * lib/unictype/categ_Sm.h: Likewise.
11576         * lib/unictype/categ_So.h: Likewise.
11577         * lib/unictype/categ_of.h: Likewise.
11578         * lib/unictype/combining.h: Likewise.
11579         * lib/unictype/ctype_alnum.h: Likewise.
11580         * lib/unictype/ctype_alpha.h: Likewise.
11581         * lib/unictype/ctype_graph.h: Likewise.
11582         * lib/unictype/ctype_lower.h: Likewise.
11583         * lib/unictype/ctype_print.h: Likewise.
11584         * lib/unictype/ctype_punct.h: Likewise.
11585         * lib/unictype/ctype_upper.h: Likewise.
11586         * lib/unictype/decdigit.h: Likewise.
11587         * lib/unictype/digit.h: Likewise.
11588         * lib/unictype/numeric.h: Likewise.
11589         * lib/unictype/pr_alphabetic.h: Likewise.
11590         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11591         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11592         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11593         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11594         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11595         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11596         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11597         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11598         * lib/unictype/pr_case_ignorable.h: Likewise.
11599         * lib/unictype/pr_cased.h: Likewise.
11600         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11601         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11602         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11603         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11604         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11605         * lib/unictype/pr_combining.h: Likewise.
11606         * lib/unictype/pr_composite.h: Likewise.
11607         * lib/unictype/pr_currency_symbol.h: Likewise.
11608         * lib/unictype/pr_decimal_digit.h: Likewise.
11609         * lib/unictype/pr_deprecated.h: Likewise.
11610         * lib/unictype/pr_format_control.h: Likewise.
11611         * lib/unictype/pr_grapheme_base.h: Likewise.
11612         * lib/unictype/pr_grapheme_extend.h: Likewise.
11613         * lib/unictype/pr_grapheme_link.h: Likewise.
11614         * lib/unictype/pr_id_continue.h: Likewise.
11615         * lib/unictype/pr_id_start.h: Likewise.
11616         * lib/unictype/pr_ideographic.h: Likewise.
11617         * lib/unictype/pr_lowercase.h: Likewise.
11618         * lib/unictype/pr_math.h: Likewise.
11619         * lib/unictype/pr_numeric.h: Likewise.
11620         * lib/unictype/pr_other_alphabetic.h: Likewise.
11621         * lib/unictype/pr_other_id_continue.h: Likewise.
11622         * lib/unictype/pr_other_math.h: Likewise.
11623         * lib/unictype/pr_punctuation.h: Likewise.
11624         * lib/unictype/pr_sentence_terminal.h: Likewise.
11625         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11626         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11627         * lib/unictype/pr_unified_ideograph.h: Likewise.
11628         * lib/unictype/pr_uppercase.h: Likewise.
11629         * lib/unictype/pr_xid_continue.h: Likewise.
11630         * lib/unictype/pr_xid_start.h: Likewise.
11631         * lib/unictype/scripts.h: Likewise.
11632         * lib/unictype/scripts_byname.gperf: Likewise.
11633         * lib/unictype/sy_java_ident.h: Likewise.
11634         * lib/unigbrk/gbrkprop.h: Likewise.
11635         * lib/unilbrk/lbrkprop1.h: Likewise.
11636         * lib/unilbrk/lbrkprop2.h: Likewise.
11637         * lib/uninorm/decomposition-table2.h: Likewise.
11638         * lib/uniwbrk/wbrkprop.h: Likewise.
11639         * tests/unicase/test-cased.c: Likewise.
11640         * tests/unicase/test-ignorable.c: Likewise.
11641         * tests/unicase/test-uc_tolower.c: Likewise.
11642         * tests/unicase/test-uc_totitle.c: Likewise.
11643         * tests/unicase/test-uc_toupper.c: Likewise.
11644         * tests/unictype/test-categ_C.c: Likewise.
11645         * tests/unictype/test-categ_Cn.c: Likewise.
11646         * tests/unictype/test-categ_L.c: Likewise.
11647         * tests/unictype/test-categ_Ll.c: Likewise.
11648         * tests/unictype/test-categ_Lm.c: Likewise.
11649         * tests/unictype/test-categ_Lo.c: Likewise.
11650         * tests/unictype/test-categ_Lu.c: Likewise.
11651         * tests/unictype/test-categ_M.c: Likewise.
11652         * tests/unictype/test-categ_Mc.c: Likewise.
11653         * tests/unictype/test-categ_Me.c: Likewise.
11654         * tests/unictype/test-categ_Mn.c: Likewise.
11655         * tests/unictype/test-categ_N.c: Likewise.
11656         * tests/unictype/test-categ_Nd.c: Likewise.
11657         * tests/unictype/test-categ_No.c: Likewise.
11658         * tests/unictype/test-categ_P.c: Likewise.
11659         * tests/unictype/test-categ_Po.c: Likewise.
11660         * tests/unictype/test-categ_S.c: Likewise.
11661         * tests/unictype/test-categ_Sc.c: Likewise.
11662         * tests/unictype/test-categ_Sk.c: Likewise.
11663         * tests/unictype/test-categ_Sm.c: Likewise.
11664         * tests/unictype/test-categ_So.c: Likewise.
11665         * tests/unictype/test-ctype_alnum.c: Likewise.
11666         * tests/unictype/test-ctype_alpha.c: Likewise.
11667         * tests/unictype/test-ctype_graph.c: Likewise.
11668         * tests/unictype/test-ctype_lower.c: Likewise.
11669         * tests/unictype/test-ctype_print.c: Likewise.
11670         * tests/unictype/test-ctype_punct.c: Likewise.
11671         * tests/unictype/test-ctype_upper.c: Likewise.
11672         * tests/unictype/test-decdigit.h: Likewise.
11673         * tests/unictype/test-digit.h: Likewise.
11674         * tests/unictype/test-numeric.h: Likewise.
11675         * tests/unictype/test-pr_alphabetic.c: Likewise.
11676         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11677         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11678         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11679         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11680         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11681         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11682         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11683         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11684         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11685         * tests/unictype/test-pr_cased.c: Likewise.
11686         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11687         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11688         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11689         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11690         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11691         * tests/unictype/test-pr_combining.c: Likewise.
11692         * tests/unictype/test-pr_composite.c: Likewise.
11693         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11694         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11695         * tests/unictype/test-pr_deprecated.c: Likewise.
11696         * tests/unictype/test-pr_format_control.c: Likewise.
11697         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11698         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11699         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11700         * tests/unictype/test-pr_id_continue.c: Likewise.
11701         * tests/unictype/test-pr_id_start.c: Likewise.
11702         * tests/unictype/test-pr_ideographic.c: Likewise.
11703         * tests/unictype/test-pr_lowercase.c: Likewise.
11704         * tests/unictype/test-pr_math.c: Likewise.
11705         * tests/unictype/test-pr_numeric.c: Likewise.
11706         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11707         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11708         * tests/unictype/test-pr_other_math.c: Likewise.
11709         * tests/unictype/test-pr_punctuation.c: Likewise.
11710         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11711         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11712         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11713         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11714         * tests/unictype/test-pr_uppercase.c: Likewise.
11715         * tests/unictype/test-pr_xid_continue.c: Likewise.
11716         * tests/unictype/test-pr_xid_start.c: Likewise.
11717         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11718         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11719         changes.
11720         * lib/unictype/categ_Cc.h: Likewise.
11721         * lib/unictype/categ_Cf.h: Likewise.
11722         * lib/unictype/categ_Co.h: Likewise.
11723         * lib/unictype/categ_Cs.h: Likewise.
11724         * lib/unictype/categ_Lt.h: Likewise.
11725         * lib/unictype/categ_Nl.h: Likewise.
11726         * lib/unictype/categ_Pc.h: Likewise.
11727         * lib/unictype/categ_Pd.h: Likewise.
11728         * lib/unictype/categ_Pe.h: Likewise.
11729         * lib/unictype/categ_Pf.h: Likewise.
11730         * lib/unictype/categ_Pi.h: Likewise.
11731         * lib/unictype/categ_Ps.h: Likewise.
11732         * lib/unictype/categ_Z.h: Likewise.
11733         * lib/unictype/categ_Zl.h: Likewise.
11734         * lib/unictype/categ_Zp.h: Likewise.
11735         * lib/unictype/categ_Zs.h: Likewise.
11736         * lib/unictype/ctype_blank.h: Likewise.
11737         * lib/unictype/ctype_cntrl.h: Likewise.
11738         * lib/unictype/ctype_digit.h: Likewise.
11739         * lib/unictype/ctype_space.h: Likewise.
11740         * lib/unictype/ctype_xdigit.h: Likewise.
11741         * lib/unictype/mirror.h: Likewise.
11742         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11743         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11744         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11745         * lib/unictype/pr_bidi_control.h: Likewise.
11746         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11747         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11748         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11749         * lib/unictype/pr_bidi_pdf.h: Likewise.
11750         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11751         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11752         * lib/unictype/pr_dash.h: Likewise.
11753         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11754         * lib/unictype/pr_diacritic.h: Likewise.
11755         * lib/unictype/pr_extender.h: Likewise.
11756         * lib/unictype/pr_hex_digit.h: Likewise.
11757         * lib/unictype/pr_hyphen.h: Likewise.
11758         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11759         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11760         * lib/unictype/pr_ignorable_control.h: Likewise.
11761         * lib/unictype/pr_iso_control.h: Likewise.
11762         * lib/unictype/pr_join_control.h: Likewise.
11763         * lib/unictype/pr_left_of_pair.h: Likewise.
11764         * lib/unictype/pr_line_separator.h: Likewise.
11765         * lib/unictype/pr_logical_order_exception.h: Likewise.
11766         * lib/unictype/pr_non_break.h: Likewise.
11767         * lib/unictype/pr_not_a_character.h: Likewise.
11768         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11769         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11770         * lib/unictype/pr_other_id_start.h: Likewise.
11771         * lib/unictype/pr_other_lowercase.h: Likewise.
11772         * lib/unictype/pr_other_uppercase.h: Likewise.
11773         * lib/unictype/pr_paired_punctuation.h: Likewise.
11774         * lib/unictype/pr_paragraph_separator.h: Likewise.
11775         * lib/unictype/pr_pattern_syntax.h: Likewise.
11776         * lib/unictype/pr_pattern_white_space.h: Likewise.
11777         * lib/unictype/pr_private_use.h: Likewise.
11778         * lib/unictype/pr_quotation_mark.h: Likewise.
11779         * lib/unictype/pr_radical.h: Likewise.
11780         * lib/unictype/pr_soft_dotted.h: Likewise.
11781         * lib/unictype/pr_space.h: Likewise.
11782         * lib/unictype/pr_titlecase.h: Likewise.
11783         * lib/unictype/pr_variation_selector.h: Likewise.
11784         * lib/unictype/pr_white_space.h: Likewise.
11785         * lib/unictype/pr_zero_width.h: Likewise.
11786         * lib/unictype/sy_c_ident.h: Likewise.
11787         * lib/unictype/sy_c_whitespace.h: Likewise.
11788         * lib/unictype/sy_java_whitespace.h: Likewise.
11789         * lib/uninorm/composition-table.gperf: Likewise.
11790         * lib/uninorm/decomposition-table1.h: Likewise.
11791         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11792         LB8.
11793         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11794         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11795         * modules/unictype/*: Bump version number of expected libunistring
11796         version.
11797
11798 2011-01-09  Bruno Haible  <bruno@clisp.org>
11799
11800         Update to Unicode 5.2.0.
11801         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11802         trailing whitespace removed.
11803
11804 2011-01-09  Bruno Haible  <bruno@clisp.org>
11805
11806         New Unicode character properties, from Unicode 5.2.0.
11807         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11808         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11809         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11810         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11811         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11812         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11813         uc_is_property_cased, uc_is_property_case_ignorable,
11814         uc_is_property_changes_when_lowercased,
11815         uc_is_property_changes_when_uppercased,
11816         uc_is_property_changes_when_titlecased,
11817         uc_is_property_changes_when_casefolded,
11818         uc_is_property_changes_when_casemapped): New declarations.
11819         * lib/unictype/pr_byname.gperf: Add the new properties.
11820         * modules/unictype/property-byname (Depends-on): Depend on the new
11821         properties modules.
11822         * modules/unictype/property-all (Depends-on): Likewise.
11823         * MODULES.html.sh (Unicode string functions): Add
11824         unictype/property-case-ignorable, unictype/property-cased,
11825         unictype/property-changes-when-casefolded,
11826         unictype/property-changes-when-casemapped,
11827         unictype/property-changes-when-lowercased,
11828         unictype/property-changes-when-titlecased,
11829         unictype/property-changes-when-uppercased.
11830
11831         New module 'unictype/property-changes-when-casemapped'.
11832         * modules/unictype/property-changes-when-casemapped: New file.
11833         * lib/unictype/pr_changes_when_casemapped.c: New file.
11834         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11835         generated by gen-uni-tables.
11836         * modules/unictype/property-changes-when-casemapped-tests: New file.
11837         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11838         automatically generated by gen-uni-tables.
11839
11840         New module 'unictype/property-changes-when-casefolded'.
11841         * modules/unictype/property-changes-when-casefolded: New file.
11842         * lib/unictype/pr_changes_when_casefolded.c: New file.
11843         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11844         generated by gen-uni-tables.
11845         * modules/unictype/property-changes-when-casefolded-tests: New file.
11846         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11847         automatically generated by gen-uni-tables.
11848
11849         New module 'unictype/property-changes-when-titlecased'.
11850         * modules/unictype/property-changes-when-titlecased: New file.
11851         * lib/unictype/pr_changes_when_titlecased.c: New file.
11852         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11853         generated by gen-uni-tables.
11854         * modules/unictype/property-changes-when-titlecased-tests: New file.
11855         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11856         automatically generated by gen-uni-tables.
11857
11858         New module 'unictype/property-changes-when-uppercased'.
11859         * modules/unictype/property-changes-when-uppercased: New file.
11860         * lib/unictype/pr_changes_when_uppercased.c: New file.
11861         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11862         generated by gen-uni-tables.
11863         * modules/unictype/property-changes-when-uppercased-tests: New file.
11864         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11865         automatically generated by gen-uni-tables.
11866
11867         New module 'unictype/property-changes-when-lowercased'.
11868         * modules/unictype/property-changes-when-lowercased: New file.
11869         * lib/unictype/pr_changes_when_lowercased.c: New file.
11870         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11871         generated by gen-uni-tables.
11872         * modules/unictype/property-changes-when-lowercased-tests: New file.
11873         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11874         automatically generated by gen-uni-tables.
11875
11876         New module 'unictype/property-case-ignorable'.
11877         * modules/unictype/property-case-ignorable: New file.
11878         * lib/unictype/pr_case_ignorable.c: New file.
11879         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11880         by gen-uni-tables.
11881         * modules/unictype/property-case-ignorable-tests: New file.
11882         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11883         generated by gen-uni-tables.
11884
11885         New module 'unictype/property-cased'.
11886         * modules/unictype/property-cased: New file.
11887         * lib/unictype/pr_cased.c: New file.
11888         * lib/unictype/pr_cased.h: New file, automatically generated by
11889         gen-uni-tables.
11890         * modules/unictype/property-cased-tests: New file.
11891         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11892         gen-uni-tables.
11893
11894 2011-01-09  Bruno Haible  <bruno@clisp.org>
11895
11896         Update to Unicode 5.2.0.
11897         * lib/gen-uni-tables.c (output_predicate, output_category,
11898         output_combclass, output_bidi_category, output_decimal_digit_test,
11899         output_decimal_digit, output_digit_test, output_digit,
11900         output_numeric_test, output_numeric, output_mirror, output_scripts,
11901         output_scripts_byname, output_blocks, output_ident_category): Fix
11902         comment header.
11903         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11904         get_wbp.
11905         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11906         items.
11907         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11908         Changes_When_Lowercased, Changes_When_Uppercased,
11909         Changes_When_Titlecased, Changes_When_Casefolded,
11910         Changes_When_Casemapped.
11911         (is_property_alphabetic, is_property_default_ignorable_code_point):
11912         Update for Unicode 5.2.0.
11913         (is_property_cased, is_property_case_ignorable,
11914         is_property_changes_when_lowercased,
11915         is_property_changes_when_uppercased,
11916         is_property_changes_when_titlecased,
11917         is_property_changes_when_casefolded,
11918         is_property_changes_when_casemapped): New functions.
11919         (output_properties): Output also the properties cased, case_ignorable,
11920         changes_when_lowercased, changes_when_uppercased,
11921         changes_when_titlecased, changes_when_casefolded,
11922         changes_when_casemapped.
11923         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11924         Unicode TR#11 revision 17 -> 19.
11925         (LBP_CP): New enumeration value.
11926         (LBP_*): Adjust values accordingly.
11927         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11928         TR#14 revision 22 -> 24.
11929         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11930         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11931         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11932         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11933         is_WBP_MIDLETTER.
11934         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11935         the code1 and code2 of each composition rule.
11936         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11937         * lib/unicase/ignorable.h: Likewise.
11938         * lib/unicase/tocasefold.h: Likewise.
11939         * lib/unicase/tolower.h: Likewise.
11940         * lib/unicase/totitle.h: Likewise.
11941         * lib/unicase/toupper.h: Likewise.
11942         * lib/unictype/bidi_of.h: Likewise.
11943         * lib/unictype/blocks.h: Likewise.
11944         * lib/unictype/categ_C.h: Likewise.
11945         * lib/unictype/categ_Cf.h: Likewise.
11946         * lib/unictype/categ_Cn.h: Likewise.
11947         * lib/unictype/categ_L.h: Likewise.
11948         * lib/unictype/categ_Ll.h: Likewise.
11949         * lib/unictype/categ_Lm.h: Likewise.
11950         * lib/unictype/categ_Lo.h: Likewise.
11951         * lib/unictype/categ_Lu.h: Likewise.
11952         * lib/unictype/categ_M.h: Likewise.
11953         * lib/unictype/categ_Mc.h: Likewise.
11954         * lib/unictype/categ_Mn.h: Likewise.
11955         * lib/unictype/categ_N.h: Likewise.
11956         * lib/unictype/categ_Nd.h: Likewise.
11957         * lib/unictype/categ_Nl.h: Likewise.
11958         * lib/unictype/categ_No.h: Likewise.
11959         * lib/unictype/categ_P.h: Likewise.
11960         * lib/unictype/categ_Pd.h: Likewise.
11961         * lib/unictype/categ_Po.h: Likewise.
11962         * lib/unictype/categ_S.h: Likewise.
11963         * lib/unictype/categ_Sc.h: Likewise.
11964         * lib/unictype/categ_So.h: Likewise.
11965         * lib/unictype/categ_of.h: Likewise.
11966         * lib/unictype/combining.h: Likewise.
11967         * lib/unictype/ctype_alnum.h: Likewise.
11968         * lib/unictype/ctype_alpha.h: Likewise.
11969         * lib/unictype/ctype_graph.h: Likewise.
11970         * lib/unictype/ctype_lower.h: Likewise.
11971         * lib/unictype/ctype_print.h: Likewise.
11972         * lib/unictype/ctype_punct.h: Likewise.
11973         * lib/unictype/ctype_upper.h: Likewise.
11974         * lib/unictype/decdigit.h: Likewise.
11975         * lib/unictype/digit.h: Likewise.
11976         * lib/unictype/numeric.h: Likewise.
11977         * lib/unictype/pr_alphabetic.h: Likewise.
11978         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11979         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11980         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11981         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11982         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11983         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11984         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11985         * lib/unictype/pr_combining.h: Likewise.
11986         * lib/unictype/pr_composite.h: Likewise.
11987         * lib/unictype/pr_currency_symbol.h: Likewise.
11988         * lib/unictype/pr_dash.h: Likewise.
11989         * lib/unictype/pr_decimal_digit.h: Likewise.
11990         * lib/unictype/pr_deprecated.h: Likewise.
11991         * lib/unictype/pr_diacritic.h: Likewise.
11992         * lib/unictype/pr_extender.h: Likewise.
11993         * lib/unictype/pr_grapheme_base.h: Likewise.
11994         * lib/unictype/pr_grapheme_extend.h: Likewise.
11995         * lib/unictype/pr_grapheme_link.h: Likewise.
11996         * lib/unictype/pr_id_continue.h: Likewise.
11997         * lib/unictype/pr_id_start.h: Likewise.
11998         * lib/unictype/pr_ideographic.h: Likewise.
11999         * lib/unictype/pr_ignorable_control.h: Likewise.
12000         * lib/unictype/pr_logical_order_exception.h: Likewise.
12001         * lib/unictype/pr_lowercase.h: Likewise.
12002         * lib/unictype/pr_numeric.h: Likewise.
12003         * lib/unictype/pr_other_alphabetic.h: Likewise.
12004         * lib/unictype/pr_punctuation.h: Likewise.
12005         * lib/unictype/pr_sentence_terminal.h: Likewise.
12006         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12007         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12008         * lib/unictype/pr_unified_ideograph.h: Likewise.
12009         * lib/unictype/pr_uppercase.h: Likewise.
12010         * lib/unictype/pr_xid_continue.h: Likewise.
12011         * lib/unictype/pr_xid_start.h: Likewise.
12012         * lib/unictype/pr_zero_width.h: Likewise.
12013         * lib/unictype/scripts.h: Likewise.
12014         * lib/unictype/scripts_byname.gperf: Likewise.
12015         * lib/unictype/sy_java_ident.h: Likewise.
12016         * lib/unigbrk/gbrkprop.h: Likewise.
12017         * lib/unilbrk/lbrkprop1.h: Likewise.
12018         * lib/unilbrk/lbrkprop2.h: Likewise.
12019         * lib/unilbrk/lbrktables.h: Likewise.
12020         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12021         LBP_CP. Implement rule LB30.
12022         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12023         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12024         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12025         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12026         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12027         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12028         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12029         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12030         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12031         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12032         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12033         bits instead of 16 bits in the code1 and code2 of each composition
12034         rule.
12035         (uc_composition): Update for Unicode 5.2.0.
12036         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12037         * lib/uninorm/decomposition-table2.h: Likewise.
12038         * lib/uniwbrk/wbrkprop.h: Likewise.
12039         * tests/unicase/test-cased.c: Likewise.
12040         * tests/unicase/test-ignorable.c: Likewise.
12041         * tests/unicase/test-uc_tolower.c: Likewise.
12042         * tests/unicase/test-uc_totitle.c: Likewise.
12043         * tests/unicase/test-uc_toupper.c: Likewise.
12044         * tests/unictype/test-categ_C.c: Likewise.
12045         * tests/unictype/test-categ_Cf.c: Likewise.
12046         * tests/unictype/test-categ_Cn.c: Likewise.
12047         * tests/unictype/test-categ_L.c: Likewise.
12048         * tests/unictype/test-categ_Ll.c: Likewise.
12049         * tests/unictype/test-categ_Lm.c: Likewise.
12050         * tests/unictype/test-categ_Lo.c: Likewise.
12051         * tests/unictype/test-categ_Lu.c: Likewise.
12052         * tests/unictype/test-categ_M.c: Likewise.
12053         * tests/unictype/test-categ_Mc.c: Likewise.
12054         * tests/unictype/test-categ_Mn.c: Likewise.
12055         * tests/unictype/test-categ_N.c: Likewise.
12056         * tests/unictype/test-categ_Nd.c: Likewise.
12057         * tests/unictype/test-categ_Nl.c: Likewise.
12058         * tests/unictype/test-categ_No.c: Likewise.
12059         * tests/unictype/test-categ_P.c: Likewise.
12060         * tests/unictype/test-categ_Pd.c: Likewise.
12061         * tests/unictype/test-categ_Po.c: Likewise.
12062         * tests/unictype/test-categ_S.c: Likewise.
12063         * tests/unictype/test-categ_Sc.c: Likewise.
12064         * tests/unictype/test-categ_So.c: Likewise.
12065         * tests/unictype/test-ctype_alnum.c: Likewise.
12066         * tests/unictype/test-ctype_alpha.c: Likewise.
12067         * tests/unictype/test-ctype_graph.c: Likewise.
12068         * tests/unictype/test-ctype_lower.c: Likewise.
12069         * tests/unictype/test-ctype_print.c: Likewise.
12070         * tests/unictype/test-ctype_punct.c: Likewise.
12071         * tests/unictype/test-ctype_upper.c: Likewise.
12072         * tests/unictype/test-decdigit.h: Likewise.
12073         * tests/unictype/test-digit.h: Likewise.
12074         * tests/unictype/test-numeric.h: Likewise.
12075         * tests/unictype/test-pr_alphabetic.c: Likewise.
12076         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12077         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12078         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12079         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12080         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12081         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12082         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12083         * tests/unictype/test-pr_combining.c: Likewise.
12084         * tests/unictype/test-pr_composite.c: Likewise.
12085         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12086         * tests/unictype/test-pr_dash.c: Likewise.
12087         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12088         * tests/unictype/test-pr_deprecated.c: Likewise.
12089         * tests/unictype/test-pr_diacritic.c: Likewise.
12090         * tests/unictype/test-pr_extender.c: Likewise.
12091         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12092         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12093         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12094         * tests/unictype/test-pr_id_continue.c: Likewise.
12095         * tests/unictype/test-pr_id_start.c: Likewise.
12096         * tests/unictype/test-pr_ideographic.c: Likewise.
12097         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12098         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12099         * tests/unictype/test-pr_lowercase.c: Likewise.
12100         * tests/unictype/test-pr_numeric.c: Likewise.
12101         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12102         * tests/unictype/test-pr_punctuation.c: Likewise.
12103         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12104         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12105         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12106         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12107         * tests/unictype/test-pr_uppercase.c: Likewise.
12108         * tests/unictype/test-pr_xid_continue.c: Likewise.
12109         * tests/unictype/test-pr_xid_start.c: Likewise.
12110         * tests/unictype/test-pr_zero_width.c: Likewise.
12111         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12112         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12113         changed behaviour: line breaking is now disallowed between a letter
12114         or '=' and '('.
12115         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12116         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12117         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12118         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12119         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12120         lib/uniwidth/width.c.
12121         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12122         without comments, but with the original copyright notice.
12123         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12124         changes.
12125         * lib/unictype/categ_Cc.h: Likewise.
12126         * lib/unictype/categ_Co.h: Likewise.
12127         * lib/unictype/categ_Cs.h: Likewise.
12128         * lib/unictype/categ_Lt.h: Likewise.
12129         * lib/unictype/categ_Me.h: Likewise.
12130         * lib/unictype/categ_Pc.h: Likewise.
12131         * lib/unictype/categ_Pe.h: Likewise.
12132         * lib/unictype/categ_Pf.h: Likewise.
12133         * lib/unictype/categ_Pi.h: Likewise.
12134         * lib/unictype/categ_Ps.h: Likewise.
12135         * lib/unictype/categ_Sk.h: Likewise.
12136         * lib/unictype/categ_Sm.h: Likewise.
12137         * lib/unictype/categ_Z.h: Likewise.
12138         * lib/unictype/categ_Zl.h: Likewise.
12139         * lib/unictype/categ_Zp.h: Likewise.
12140         * lib/unictype/categ_Zs.h: Likewise.
12141         * lib/unictype/ctype_blank.h: Likewise.
12142         * lib/unictype/ctype_cntrl.h: Likewise.
12143         * lib/unictype/ctype_digit.h: Likewise.
12144         * lib/unictype/ctype_space.h: Likewise.
12145         * lib/unictype/ctype_xdigit.h: Likewise.
12146         * lib/unictype/mirror.h: Likewise.
12147         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12148         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12149         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12150         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12151         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12152         * lib/unictype/pr_bidi_control.h: Likewise.
12153         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12154         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12155         * lib/unictype/pr_bidi_pdf.h: Likewise.
12156         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12157         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12158         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12159         * lib/unictype/pr_format_control.h: Likewise.
12160         * lib/unictype/pr_hex_digit.h: Likewise.
12161         * lib/unictype/pr_hyphen.h: Likewise.
12162         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12163         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12164         * lib/unictype/pr_iso_control.h: Likewise.
12165         * lib/unictype/pr_join_control.h: Likewise.
12166         * lib/unictype/pr_left_of_pair.h: Likewise.
12167         * lib/unictype/pr_line_separator.h: Likewise.
12168         * lib/unictype/pr_math.h: Likewise.
12169         * lib/unictype/pr_non_break.h: Likewise.
12170         * lib/unictype/pr_not_a_character.h: Likewise.
12171         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12172         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12173         * lib/unictype/pr_other_id_continue.h: Likewise.
12174         * lib/unictype/pr_other_id_start.h: Likewise.
12175         * lib/unictype/pr_other_lowercase.h: Likewise.
12176         * lib/unictype/pr_other_math.h: Likewise.
12177         * lib/unictype/pr_other_uppercase.h: Likewise.
12178         * lib/unictype/pr_paired_punctuation.h: Likewise.
12179         * lib/unictype/pr_paragraph_separator.h: Likewise.
12180         * lib/unictype/pr_pattern_syntax.h: Likewise.
12181         * lib/unictype/pr_pattern_white_space.h: Likewise.
12182         * lib/unictype/pr_private_use.h: Likewise.
12183         * lib/unictype/pr_quotation_mark.h: Likewise.
12184         * lib/unictype/pr_radical.h: Likewise.
12185         * lib/unictype/pr_soft_dotted.h: Likewise.
12186         * lib/unictype/pr_space.h: Likewise.
12187         * lib/unictype/pr_titlecase.h: Likewise.
12188         * lib/unictype/pr_variation_selector.h: Likewise.
12189         * lib/unictype/pr_white_space.h: Likewise.
12190         * lib/unictype/sy_c_ident.h: Likewise.
12191         * lib/unictype/sy_c_whitespace.h: Likewise.
12192         * lib/unictype/sy_java_whitespace.h: Likewise.
12193         * modules/uni*/*: Bump version number of expected libunistring version.
12194         Reported by Simon Josefsson.
12195
12196 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12197
12198         useless-if-before-free: fix typo in --help and make the internal,
12199         automatic version date update process work once again.
12200         --help output contained a NUL character instead of the
12201         backslash-zero that was intended.  Also, the "must lie within
12202         the first 8 lines" line is on line 9, and hence not getting
12203         automatically updated.
12204         * build-aux/useless-if-before-free: Fix the former by adding a
12205         backslash, and the latter by condensing the three lines of what-it-does
12206         to a single line, leaving one line of slack for the future.
12207
12208 2011-01-09  Bruno Haible  <bruno@clisp.org>
12209
12210         uniwidth/width: Fix width of U+1D173..U+1D17A.
12211         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12212         symbolic_width, output_width_property_test): New functions.
12213         (main): Invoke output_nonspacing_property, output_width_property_test.
12214         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12215         U+1D173..U+1D17A.
12216         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12217         1.
12218         * modules/uniwidth/*: Bump version number of expected libunistring
12219         version.
12220         * modules/unilbrk/*: Likewise.
12221
12222 2011-01-08  Bruno Haible  <bruno@clisp.org>
12223
12224         uninorm tests: Preserve copyright of Unicode data file.
12225         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12226         Mention modifications.
12227
12228 2011-01-08  Bruno Haible  <bruno@clisp.org>
12229
12230         gen-uni-tables: Prepare for Unicode 5.2.0.
12231         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12232         (debug_output_lbp, output_lbp): Update.
12233
12234 2011-01-08  Bruno Haible  <bruno@clisp.org>
12235
12236         unilbrk: Clarify gen-uni-tables.c code.
12237         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12238         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12239         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12240
12241 2011-01-07  Bruno Haible  <bruno@clisp.org>
12242
12243         strtod: Restore errno when successfully parsing Infinity or NaN.
12244         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12245         restore the original errno.
12246
12247 2011-01-07  Bruno Haible  <bruno@clisp.org>
12248
12249         remove test: Avoid failure on HP-UX 11.
12250         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12251
12252 2011-01-07  Bruno Haible  <bruno@clisp.org>
12253
12254         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12255         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12256         error code.
12257
12258 2011-01-07  Pádraig Brady <P@draigBrady.com>
12259
12260         ignore-value: fixup comments, and add Eric Blake
12261         as an author since he rewrote the macros.
12262         * lib/ignore-value.h (ignore_value):  State that
12263         we now support aggregates.  Also specify exactly
12264         when the GCC warn_unused_result feature was added.
12265
12266 2011-01-06  Eric Blake  <eblake@redhat.com>
12267
12268         ignore-value: support aggregate types
12269         * lib/ignore-value.h (ignore_value): Provide separate gcc
12270         definition.
12271         * modules/ignore-value-tests: New test module.
12272         * tests/test-ignore-value.c: New test.
12273
12274         maint.mk: improve sc_prohibit_strcmp regex
12275         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12276         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12277         definition of STRNEQ.
12278
12279         signal: work around Haiku issue with SIGBUS
12280         * lib/siglist.h: Add comment.
12281         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12282         strsignal's favoring of SIGSEGV.
12283         * tests/test-signal.c (main): Avoid test failure.
12284         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12285         Reported by Scott McCreary.
12286
12287         maint.mk: add pre-release check to ensure submodule commits are public
12288         * top/maint.mk (public-submodule-commit): New rule.
12289         (submodule-checks): New variable.
12290         (alpha beta stable): Depend on the variable.
12291
12292 2011-01-05  Pádraig Brady <P@draigBrady.com>
12293         and Jim Meyering  <meyering@redhat.com>
12294
12295         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12296         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12297         (ATTRIBUTE_DEPRECATED): Define.
12298         (_ignore_case): New function.
12299         (ignore_value): New macro, to replace the old function.
12300         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12301         * modules/ignore-value (Depends-on): Add stdint.
12302
12303 2011-01-04  Eric Blake  <eblake@redhat.com>
12304
12305         doc: regenerate INSTALL
12306         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12307         @firstparagraphindent support, now that autoconf dropped it.
12308         (INSTALL_PRELUDE): Reinstate old macro.
12309         * doc/install.texi: Resync from autoconf.
12310         * doc/INSTALL: Reflect recent autoconf update.
12311         * doc/INSTALL.ISO: Likewise.
12312         * doc/INSTALL.UTF-8: Likewise.
12313         Reported by Karl Berry.
12314
12315 2011-01-04  Bruce Korb  <address@hidden>
12316
12317         git-version-gen: avoid a sub-shell
12318         * build-aux/git-version-gen: Redirect stderr in `...` via
12319         "exec 2>...", rather than via an added sub-shell.
12320
12321 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12322
12323         git-version-gen: use (...) rather than sh -c '...'
12324         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12325         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12326
12327 2011-01-03  Jim Meyering  <meyering@redhat.com>
12328
12329         git-version-gen: convert leading TABs to spaces
12330         * build-aux/git-version-gen: Expand leading TABs.
12331
12332         git-version-gen: handle failed "git rev-list"
12333         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12334         from git and proceeding as if it had succeeded but printed no SHA1
12335         checksums, suppress the diagnostic and handle the failure.
12336         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12337
12338         git-version-gen: include command name in one more diagnostic
12339         * build-aux/git-version-gen: When the required .tarball-version file
12340         was missing or unreadable, you might see the diagnostic from "cat",
12341         but no trace of the name of the invoking script.  Now, you still see
12342         the diagnostic from cat, but also get one from "git-version-gen: ".
12343         Inspired by a patch from Bruce Korb.
12344
12345         update-copyright: adjust test to match changed code
12346         * tests/test-update-copyright.sh: Change test's expected output
12347         to match new actual output.
12348
12349 2011-01-02  Bruno Haible  <bruno@clisp.org>
12350
12351         getlogin_r: Avoid test failure on HP-UX 11.
12352         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12353         ERANGE when the second argument is zero.
12354         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12355         portability problem.
12356
12357 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12358
12359         * build-aux/update-copyright: doc Simon's changes
12360
12361 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12362
12363         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12364         environment variable.
12365
12366 2011-01-02  Bruno Haible  <bruno@clisp.org>
12367
12368         unigbrk: Avoid gcc warnings.
12369         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12370         unused variable.
12371         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12372         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12373         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12374         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12375         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12376         Change type of first argument to 'const char *'.
12377         (main): Remove unused variable.
12378         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12379         type of first argument to 'const char *'.
12380         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12381         Likewise.
12382         (main): Change type of variable 's'.
12383         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12384         to 'int'.
12385
12386 2011-01-02  Bruno Haible  <bruno@clisp.org>
12387
12388         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12389         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12390         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12391         bug.
12392         * lib/pwrite.c: Undo 2010-12-31 patch.
12393         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12394
12395 2011-01-02  Bruno Haible  <bruno@clisp.org>
12396
12397         pread: Fix test whether it works.
12398         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12399
12400 2011-01-02  Bruno Haible  <bruno@clisp.org>
12401
12402         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12403         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12404         ends in "6". Don't require a specific month name. Try also the locale
12405         names found on HP-UX 11 and Solaris 7.
12406
12407 2011-01-02  Bruno Haible  <bruno@clisp.org>
12408
12409         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12410         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12411         C linkage.
12412         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12413
12414 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12415
12416         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12417         for consistency, since the "cluster" term is not used elsewhere.
12418         * lib/unigbrk.in.h: Update name.
12419         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12420         * lib/unigbrk/u16-grapheme-next.c: Update name.
12421         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12422         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12423         * lib/unigbrk/u32-grapheme-next.c: Update name.
12424         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12425         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12426         * lib/unigbrk/u8-grapheme-next.c: Update name.
12427         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12428         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12429         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12430         Suggested by Bruno Haible.
12431
12432 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12433
12434         Remove module 'u8-grapheme-len' as too redundant with
12435         'u8-grapheme-next'.
12436         * modules/unigbrk/u8-grapheme-len: Delete file.
12437         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12438         * lib/unigbrk.in.h: Remove prototype for deleted function.
12439         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12440         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12441
12442         Remove module 'u16-grapheme-len' as too redundant with
12443         'u16-grapheme-next'.
12444         * modules/unigbrk/u16-grapheme-len: Delete file.
12445         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12446         * lib/unigbrk.in.h: Remove prototype for deleted function.
12447         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12448         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12449
12450         Remove module 'u32-grapheme-len' as too redundant with
12451         'u32-grapheme-next'.
12452         * modules/unigbrk/u32-grapheme-len: Delete file.
12453         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12454         * lib/unigbrk.in.h: Remove prototype for deleted function.
12455         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12456         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12457
12458         Suggested by Bruno Haible.
12459
12460 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12461
12462         * unigbrk.in.h: Fix typo: "ben" => "been".
12463         Reported by Bruno Haible.
12464
12465 2011-01-01  Jim Meyering  <meyering@redhat.com>
12466
12467         maint: update almost all copyright ranges to include 2011
12468         Run the new "make update-copyright" rule.
12469
12470 2011-01-01  Jim Meyering  <meyering@redhat.com>
12471
12472         maint: update-copyright: exempt doc/INSTALL*
12473         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12474         since they are generated.  Suggested by Bruno Haible.
12475
12476 2011-01-01  Jim Meyering  <meyering@redhat.com>
12477
12478         maint: refine the update-copyright rule
12479         * Makefile (update-copyright): Also exclude any file that includes
12480         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12481         code that merely generates the comment.
12482
12483 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12484
12485         New module 'u8-grapheme-len'.
12486         * modules/unigbrk/u8-grapheme-len: New file.
12487         * modules/unigbrk/u8-grapheme-len-tests: New file.
12488         * lib/unigbrk.in.h: Add prototype for new function.
12489         * lib/unigbrk/u8-grapheme-len.c: New file.
12490         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12491
12492         New module 'u16-grapheme-len'.
12493         * modules/unigbrk/u16-grapheme-len: New file.
12494         * modules/unigbrk/u16-grapheme-len-tests: New file.
12495         * lib/unigbrk.in.h: Add prototype for new function.
12496         * lib/unigbrk/u16-grapheme-len.c: New file.
12497         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12498
12499         New module 'u32-grapheme-len'.
12500         * modules/unigbrk/u32-grapheme-len: New file.
12501         * modules/unigbrk/u32-grapheme-len-tests: New file.
12502         * lib/unigbrk.in.h: Add prototype for new function.
12503         * lib/unigbrk/u32-grapheme-len.c: New file.
12504         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12505
12506         New module 'u8-grapheme-next'.
12507         * modules/unigbrk/u8-grapheme-next: New file.
12508         * modules/unigbrk/u8-grapheme-next-tests: New file.
12509         * lib/unigbrk.in.h: Add prototype for new function.
12510         * lib/unigbrk/u8-grapheme-next.c: New file.
12511         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12512
12513         New module 'u16-grapheme-next'.
12514         * modules/unigbrk/u16-grapheme-next: New file.
12515         * modules/unigbrk/u16-grapheme-next-tests: New file.
12516         * lib/unigbrk.in.h: Add prototype for new function.
12517         * lib/unigbrk/u16-grapheme-next.c: New file.
12518         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12519
12520         New module 'u32-grapheme-next'.
12521         * modules/unigbrk/u32-grapheme-next: New file.
12522         * modules/unigbrk/u32-grapheme-next-tests: New file.
12523         * lib/unigbrk.in.h: Add prototype for new function.
12524         * lib/unigbrk/u32-grapheme-next.c: New file.
12525         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12526
12527         New module 'u8-grapheme-prev'.
12528         * modules/unigbrk/u8-grapheme-prev: New file.
12529         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12530         * lib/unigbrk.in.h: Add prototype for new function.
12531         * lib/unigbrk/u8-grapheme-prev.c: New file.
12532         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12533
12534         New module 'u16-grapheme-prev'.
12535         * modules/unigbrk/u16-grapheme-prev: New file.
12536         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12537         * lib/unigbrk.in.h: Add prototype for new function.
12538         * lib/unigbrk/u16-grapheme-prev.c: New file.
12539         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12540
12541         New module 'u32-grapheme-prev'.
12542         * modules/unigbrk/u32-grapheme-prev: New file.
12543         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12544         * lib/unigbrk.in.h: Add prototype for new function.
12545         * lib/unigbrk/u32-grapheme-prev.c: New file.
12546         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12547
12548         New module 'u8-grapheme-breaks'.
12549         * modules/unigbrk/u8-grapheme-breaks: New file.
12550         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12551         * lib/unigbrk.in.h: Add prototype for new function.
12552         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12553         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12554
12555         New module 'u16-grapheme-breaks'.
12556         * modules/unigbrk/u16-grapheme-breaks: New file.
12557         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12558         * lib/unigbrk.in.h: Add prototype for new function.
12559         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12560         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12561
12562         New module 'u32-grapheme-breaks'.
12563         * modules/unigbrk/u32-grapheme-breaks: New file.
12564         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12565         * lib/unigbrk.in.h: Add prototype for new function.
12566         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12567         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12568
12569         New module 'ulc-grapheme-breaks'.
12570         * modules/unigbrk/ulc-grapheme-breaks: New file.
12571         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12572         * m4/locale-ar.m4: New file.
12573         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12574         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12575         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12576
12577 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12578
12579         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12580         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12581         modified how this file was generated before I initially submitted
12582         the module, but failed to regenerate it.  This meant that several
12583         of the level2 entries were wrong.
12584         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12585         Remove the division-by-2 that is folded into the table now that
12586         gbrkprop.h has been regenerated properly.  Now -1 entries are
12587         handled correctly.
12588
12589         New module 'unigbrk/uc-gbrk-prop-tests'.
12590         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12591         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12592         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12593         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12594
12595 2011-01-01  Bruno Haible  <bruno@clisp.org>
12596
12597         Avoid use of hexadecimal escapes.
12598         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12599         instead of hexadecimal escapes.
12600
12601 2011-01-01  Jim Meyering  <meyering@redhat.com>
12602
12603         maint: new rule to update copyright year ranges
12604         * Makefile (update-copyright): New rule.
12605
12606         maint: indent with TABs in Makefile
12607         * Makefile: Expand leading sequences of spaces to TABs
12608
12609         version-etc: update the copyright year it reports
12610         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12611
12612 2010-12-31  Bruno Haible  <bruno@clisp.org>
12613
12614         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12615         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12616         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12617         zero.
12618
12619 2010-12-31  Bruno Haible  <bruno@clisp.org>
12620
12621         pwrite: Work around HP-UX 11.11 bug.
12622         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12623         works and set REPLACE_PWRITE if not.
12624         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12625         function.
12626         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12627
12628 2010-12-31  Bruno Haible  <bruno@clisp.org>
12629
12630         pread: Work around HP-UX 11 bugs.
12631         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12632         and set REPLACE_PREAD if not.
12633         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12634
12635 2010-12-31  Eric Blake  <eblake@redhat.com>
12636
12637         nl_langinfo: fix YESEXPR on Irix 6.5
12638         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12639         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12640         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12641         it.
12642
12643 2010-12-31  Bruno Haible  <bruno@clisp.org>
12644
12645         iconv: Document HP-UX 11 bug.
12646         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12647
12648 2010-12-31  Bruno Haible  <bruno@clisp.org>
12649
12650         ldexpl: Fix link error on HP-UX 11.
12651         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12652         LDEXPL_LIBM, using $ISNANL_LIBM.
12653
12654 2010-12-31  Eric Blake  <eblake@redhat.com>
12655
12656         ftello: avoid compilation failure with SunStudio c89
12657         * lib/ftello.c (ftello): Use lseek, not llseek.
12658
12659         tests: avoid failing coreutils tests on cygwin
12660         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12661         (create_exe_shims_): Return 0 when skipping.
12662
12663 2010-12-31  Bruno Haible  <bruno@clisp.org>
12664
12665         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12666         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12667
12668 2010-12-31  Bruno Haible  <bruno@clisp.org>
12669
12670         waitpid: Fix link error in C++ mode.
12671         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12672
12673 2010-12-31  Bruno Haible  <bruno@clisp.org>
12674
12675         isnan: Use GCC built-ins when possible.
12676         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12677         __builtin_isnan.
12678         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12679         (isnan): Define using GCC built-ins for GCC >= 4.0.
12680
12681 2010-12-31  Bruno Haible  <bruno@clisp.org>
12682
12683         isnand: Fix mistake.
12684         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12685         __builtin_isnand.
12686
12687 2010-12-31  Bruno Haible  <bruno@clisp.org>
12688
12689         open: Avoid C++ error on HP-UX 11.
12690         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12691
12692 2010-12-31  Bruno Haible  <bruno@clisp.org>
12693
12694         time_r: Add missing declarations on HP-UX 11.
12695         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12696         instead of HAVE_LOCALTIME_R.
12697         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12698         HAVE_LOCALTIME_R always.
12699         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12700         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12701         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12702         HAVE_LOCALTIME_R.
12703         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12704         * doc/posix-functions/localtime_r.texi: Likewise.
12705
12706 2010-12-29  Eric Blake  <eblake@redhat.com>
12707
12708         mountlist: tweak previous commit
12709         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12710         Reported by Paul Eggert.
12711
12712         mountlist: fix local drive detection on cygwin
12713         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12714         that works for cygwin.
12715
12716 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12717
12718         ftoastr, snprintf: ftoastr + snprintf module
12719         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12720         since the snprintf module now should be good enough here.
12721         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12722         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12723         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12724         GNULIB_SNPRINTF only for the test directory, and the latter
12725         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12726         seems to suffice by itself.
12727
12728 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12729
12730         alloca: one step towards thread-safety
12731         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12732         need for a static variable.  All callers changed.  This does not
12733         make the alloca replacement thread-safe, but it's one step.
12734
12735         tests: minor indenting change
12736         * tests/init.sh: Sync from coreutils housekeeping patch
12737         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12738         to keep lines within 80 columns.
12739
12740 2010-12-28  Jim Meyering  <meyering@redhat.com>
12741
12742         regex: don't infloop on persistent failing calloc
12743         * lib/regexec.c (build_trtable): Return failure indication upon
12744         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12745         In glibc, this was fixed for version 2.13:
12746         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12747
12748 2010-12-28  Bruno Haible  <bruno@clisp.org>
12749             Paul Eggert <eggert@cs.ucla.edu>
12750
12751         linkat: Make implementation robust against system behaviour variations.
12752         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12753         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12754         way, and to -2 if it needs a generic runtime test.
12755         * lib/linkat.c (solaris_optimized_link_immediate,
12756         solaris_optimized_link_follow): New functions.
12757         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12758         (check_same_link): Use it.
12759
12760 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12761
12762         New module 'unigbrk/base'.
12763         * modules/unigbrk/base: New file.
12764         * lib/unigbrk.in.h: New file.
12765
12766         New module 'unigbrk/uc-gbrk-prop'.
12767         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12768         * modules/unigbrk/uc-gbrk-prop: New file.
12769         * lib/unigbrk/gbrkprop.h: New file.
12770         * lib/unigbrk/uc-gbrk-prop.c: New file.
12771
12772         New module 'unigbrk/uc-is-grapheme-break'.
12773         * modules/unigbrk/uc-is-grapheme-break: New file.
12774         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12775         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12776         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12777         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12778         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12779
12780         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12781
12782 2010-12-27  Bruno Haible  <bruno@clisp.org>
12783
12784         linkat test: Avoid failure on Solaris 11 2010-11.
12785         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12786
12787 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12788
12789         utimens: work around glibc rounding bug on more platforms
12790         * lib/utimens.c (fdutimens): Work around rounding bug even if
12791         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12792         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12793
12794 2010-12-27  Bruno Haible  <bruno@clisp.org>
12795
12796         select tests: Improve comments.
12797         * tests/test-select.c (do_select): Add comments.
12798
12799 2010-12-27  Bruno Haible  <bruno@clisp.org>
12800
12801         select tests: Safer way of handling timeout.
12802         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12803         at every invocation.
12804
12805 2010-12-27  Bruno Haible  <bruno@clisp.org>
12806
12807         select tests: Use 'bool' where appropriate.
12808         * tests/test-select.c (connect_to_socket): Change argument type to
12809         'bool'.
12810
12811 2010-12-27  Bruno Haible  <bruno@clisp.org>
12812
12813         select tests: Use existing modules.
12814         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12815         (configure.ac): Don't test for unistd.h.
12816         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12817         declared in <unistd.h>.
12818
12819 2010-12-27  Bruno Haible  <bruno@clisp.org>
12820
12821         mbrtowc: Work around a Solaris 7 bug.
12822         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12823         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12824         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12825         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12826         MBRTOWC_NULL_ARG1_BUG.
12827         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12828         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12829         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12830         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12831
12832 2010-12-27  Jim Meyering  <meyering@redhat.com>
12833
12834         read-file.c: tweak syntax
12835         * lib/read-file.c (fread_file): Remove space after "*" in function
12836         definitions.
12837
12838 2010-12-27  Bruno Haible  <bruno@clisp.org>
12839
12840         times test: Avoid gcc warnings on OSF/1.
12841         * tests/test-times.c (main): Cast printf arguments from clock_t to
12842         'long int'.
12843
12844 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12845
12846         utimens: work around glibc rounding bug on older Linux kernels
12847         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12848         on Linux with a glibc whose utimes might not work, then work
12849         around a longstanding glibc bug involving rounding rather than
12850         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12851         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12852
12853 2010-12-26  Bruno Haible  <bruno@clisp.org>
12854
12855         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12856         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12857         _GL_CXXALIAS_SYS.
12858         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12859
12860 2010-12-26  Bruno Haible  <bruno@clisp.org>
12861
12862         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12863         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12864         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12865         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12866         looking for the declaration.
12867         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12868         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12869         problem.
12870         * doc/posix-functions/inet_pton.texi: Likewise.
12871
12872 2010-12-26  Bruno Haible  <bruno@clisp.org>
12873
12874         arpa_inet: Use the common idioms with C++ support.
12875         * lib/arpa_inet.in.h: Include c++defs.h.
12876         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12877         support.
12878         * modules/arpa_inet (Depends-on): Add c++defs.
12879         (Makefile.am): Substitute the contents of c++defs.h.
12880         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12881         * modules/arpa_inet-c++-tests: New file.
12882         * tests/test-arpa_inet-c++.cc: New file.
12883
12884 2010-12-25  Bruno Haible  <bruno@clisp.org>
12885
12886         Fix more C++ link errors on Solaris 8.
12887         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12888         $(LIB_EACCESS).
12889         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12890         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12891         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12892         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12893         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12894
12895 2010-12-25  Bruno Haible  <bruno@clisp.org>
12896
12897         printf-posix: Fix link error when a non-GCC compiler is used.
12898         * lib/stdio.in.h (printf): When not using GCC, override printf
12899         correctly.
12900         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12901
12902 2010-12-25  Bruno Haible  <bruno@clisp.org>
12903
12904         strerror_r-posix: Update doc.
12905         * doc/posix-functions/strerror_r.texi: Update doc about the return
12906         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12907
12908 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12909
12910         utimens: simplify the logic of the previous change
12911         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12912         This should not affect whether the test succeeds or fails.
12913
12914         utimens: configure better on hosts with NFS clock skew
12915         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12916         uses the clock of the local host.  It might use the clock of the
12917         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12918         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12919
12920 2010-12-25  Bruno Haible  <bruno@clisp.org>
12921
12922         ptsname test: Avoid failure on Solaris.
12923         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12924         open a pseudo-terminal; don't use BSD-style ptys.
12925         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12926
12927 2010-12-25  Bruno Haible  <bruno@clisp.org>
12928
12929         ptsname: Avoid ERANGE failure on some systems.
12930         * lib/ptsname.c (buffer): Increase size.
12931
12932 2010-12-25  Bruno Haible  <bruno@clisp.org>
12933
12934         rename, renameat: Avoid test failures at NFS mounted locations.
12935         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12936         so that subsequent mkdir calls succeed.
12937
12938 2010-12-25  Bruno Haible  <bruno@clisp.org>
12939
12940         iswblank: Fix C++ link error on Solaris 8.
12941         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12942         _GL_FUNCDECL_SYS.
12943
12944 2010-12-25  Bruno Haible  <bruno@clisp.org>
12945
12946         unistd: Fix C++ link error on Solaris 8.
12947         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
12948
12949 2010-12-25  Bruno Haible  <bruno@clisp.org>
12950
12951         readlink doc: Mention an old glibc bug.
12952         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
12953
12954 2010-12-25  Bruno Haible  <bruno@clisp.org>
12955
12956         fcntl-h: Fix for use of C++ on glibc systems.
12957         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
12958         also on glibc systems in C++ mode.
12959         Reported by Gary V. Vaughan <gary@gnu.org>.
12960
12961 2010-12-25  Bruno Haible  <bruno@clisp.org>
12962
12963         roundl-ieee: Make it work on OSF/1 5.1 with cc.
12964         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
12965
12966 2010-12-25  Bruno Haible  <bruno@clisp.org>
12967
12968         truncl-ieee: Make it work on OSF/1 5.1 with cc.
12969         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
12970         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
12971         test whether truncl works according to ISO C 99 with IEC 60559.
12972         * m4/truncl-ieee.m4: New file.
12973         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
12974         m4/signbit.m4.
12975         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
12976
12977 2010-12-25  Bruno Haible  <bruno@clisp.org>
12978
12979         ceill-ieee: Make it work on OSF/1 5.1 with cc.
12980         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
12981         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
12982         test whether ceill works according to ISO C 99 with IEC 60559.
12983         * m4/ceill-ieee.m4: New file.
12984         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
12985         m4/signbit.m4.
12986         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
12987
12988 2010-12-25  Bruno Haible  <bruno@clisp.org>
12989
12990         Ensure all prerequisites of <wchar.h> are included.
12991         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
12992         before <wchar.h>.
12993         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
12994         gl_MBRLEN_NUL_RETVAL): Likewise.
12995         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12996         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
12997         AC_FUNC_MBRTOWC): Likewise.
12998         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12999         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13000         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13001         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13002         Likewise.
13003         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13004         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13005         (gl_WCHAR_H): Improve comments.
13006         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13007
13008 2010-12-25  Bruno Haible  <bruno@clisp.org>
13009
13010         strtok_r: Fix C syntax error in autoconf macro.
13011         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13012         characters in test program.
13013
13014 2010-12-24  Bruno Haible  <bruno@clisp.org>
13015
13016         ceil, trunc, round: Fix gcc warnings.
13017         * lib/ceil.c (MIN): Undefine before redefining.
13018         * lib/trunc.c (MIN): Likewise.
13019         * lib/round.c (MIN): Likewise.
13020         Include <math.h> first.
13021
13022 2010-12-24  Bruno Haible  <bruno@clisp.org>
13023
13024         select tests: Avoid failures on OSF/1 5.1.
13025         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13026         failure of closing the last socket; it may fail with ECONNRESET.
13027
13028 2010-12-24  Eric Blake  <eblake@redhat.com>
13029
13030         stdint: avoid HP-UX 10.20 preprocessor bug
13031         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13032         than #if.
13033         * tests/test-floor2.c (main): Likewise.
13034         Reported by Peter O'Gorman.
13035
13036         pipe: make obsoletion transition easier
13037         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13038         * modules/pipe (Files): Include revived file.
13039         (Include): Drop reference, to mirror getdate's behavior.
13040
13041 2010-12-24  Bruno Haible  <bruno@clisp.org>
13042
13043         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13044         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13045         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13046         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13047
13048 2010-12-24  Bruno Haible  <bruno@clisp.org>
13049
13050         gethostname: Ensure declaration on NonStop Kernel.
13051         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13052         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13053
13054 2010-12-24  Bruno Haible  <bruno@clisp.org>
13055
13056         sys_select: Ensure all necessary types on NonStop Kernel.
13057         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13058         include <sys/time.h>.
13059         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13060         NonStop Kernel.
13061         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13062
13063 2010-12-24  Bruno Haible  <bruno@clisp.org>
13064
13065         sys_select: Remove unneeded include.
13066         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13067         have <sys/select.h>.
13068
13069 2010-12-24  Bruno Haible  <bruno@clisp.org>
13070
13071         gethostname: Provide a fallback for HOST_NAME_MAX.
13072         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13073         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13074         instead.
13075         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13076
13077 2010-12-24  Bruno Haible  <bruno@clisp.org>
13078
13079         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13080         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13081         (SA_RESTART): Likewise.
13082         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13083
13084 2010-12-24  Bruno Haible  <bruno@clisp.org>
13085
13086         signal: Define NSIG.
13087         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13088         * tests/test-signal.c (nsig): New variable.
13089         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13090
13091 2010-12-24  Bruno Haible  <bruno@clisp.org>
13092
13093         rename, renameat: Avoid test failures on OSF/1 5.1.
13094         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13095         alternative error codes.
13096         * tests/test-renameat.c (main): Likewise.
13097
13098 2010-12-24  Bruno Haible  <bruno@clisp.org>
13099
13100         *printf: Detect large precisions bug on Solaris 10/SPARC.
13101         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13102         by Paul Eggert.
13103         * tests/test-snprintf-posix.h (test_function): Add this test code here
13104         too.
13105         * tests/test-sprintf-posix.h (test_function): Likewise.
13106         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13107         * tests/test-vasprintf-posix.c (test_function): Likewise.
13108         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13109         around by gnulib.
13110         * doc/posix-functions/printf.texi: Likewise.
13111         * doc/posix-functions/snprintf.texi: Likewise.
13112         * doc/posix-functions/sprintf.texi: Likewise.
13113         * doc/posix-functions/vfprintf.texi: Likewise.
13114         * doc/posix-functions/vprintf.texi: Likewise.
13115         * doc/posix-functions/vsnprintf.texi: Likewise.
13116         * doc/posix-functions/vsprintf.texi: Likewise.
13117         * doc/posix-functions/dprintf.texi: Undo last commit.
13118         * doc/posix-functions/vdprintf.texi: Likewise.
13119
13120 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13121
13122         tests: port test-fdutimensat.c to Solaris 8
13123         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13124         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13125         On Solaris 8, it fails with errno == ENOSYS, because there is no
13126         futimens (so it can't use the fd), and there is no lutimens (so it
13127         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13128
13129         vsnprintf: make more consistent with snprintf; doc fixes
13130
13131         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13132         the byte count return problem was promoted from the snprintf-posix
13133         to the snprintf module.
13134         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13135         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13136         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13137         * tests/test-snprintf.c (main): Check the byte count returned.
13138         * tests/test-vsnprintf.c (main): Likewise.
13139
13140 2010-12-23  Eric Blake  <eblake@redhat.com>
13141
13142         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13143         * modules/sigpipe (License): Relax license.
13144
13145 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13146
13147         doc: document Solaris printf bug with large float precisions
13148         * doc/posix-functions/dprintf.texi (dprintf):
13149         * doc/posix-functions/fprintf.texi (fprintf):
13150         * doc/posix-functions/printf.texi (printf):
13151         * doc/posix-functions/snprintf.texi (snprintf):
13152         * doc/posix-functions/sprintf.texi (sprintf):
13153         * doc/posix-functions/vdprintf.texi (vdprintf):
13154         * doc/posix-functions/vfprintf.texi (vfprintf):
13155         * doc/posix-functions/vprintf.texi (vprintf):
13156         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13157         * doc/posix-functions/vsprintf.texi (vsprintf):
13158         Mention that these functions mishandle large floating point
13159         precisions on Solaris 10.  The same bug is also present in Solaris
13160         8, and I assume earlier.  This causes "cd gnulib-tests; make
13161         check" to fail on Solaris 8 (and I assume, later) when building
13162         the latest coreutils, in test-vasprintf-posix's call to
13163         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13164         the wide flavors (e.g., wprintf) so this patch just updates the
13165         documentation for the narrow ones.
13166
13167         test-posixtm.c: add two tests
13168         * tests/test-posixtm.c: Add two tests, to highlight the
13169         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13170         around this bug; this is merely to document it.
13171
13172 2010-12-22  Bruno Haible  <bruno@clisp.org>
13173
13174         getlogin_r: Work around portability problem on OSF/1.
13175         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13176         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13177         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13178         test for a truncated result.
13179         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13180         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13181         * modules/getlogin_r (Depends-on): Add memchr.
13182         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13183
13184 2010-12-22  Bruno Haible  <bruno@clisp.org>
13185
13186         ptsname: Avoid test failure on OSF/1 5.1.
13187         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13188         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13189         (same_slave): New function.
13190         (main): Use it to compare ptsname's result with the expected file name.
13191
13192 2010-12-22  Bruno Haible  <bruno@clisp.org>
13193
13194         Port extended stdio modules to HP NonStop Kernel.
13195         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13196         macros.
13197         * lib/fbufmode.c: Update comments.
13198         * lib/fflush.c: Likewise.
13199         * lib/fpurge.c: Likewise.
13200         * lib/freadable.c: Likewise.
13201         * lib/freadahead.c: Likewise.
13202         * lib/freading.c: Likewise.
13203         * lib/freadptr.c: Likewise.
13204         * lib/freadseek.c: Likewise.
13205         * lib/fseeko.c: Likewise.
13206         * lib/fseterr.c: Likewise.
13207         * lib/fwritable.c: Likewise.
13208         * lib/fwriting.c: Likewise.
13209         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13210
13211 2010-12-22  Bruno Haible  <bruno@clisp.org>
13212
13213         ttyname_r: Work around bug on OSF/1 5.1.
13214         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13215         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13216         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13217         present.
13218         * lib/ttyname_r.c (ttyname_r): Update comments.
13219
13220 2010-12-22  Bruno Haible  <bruno@clisp.org>
13221
13222         round: Implement result sign according to IEEE 754.
13223         * lib/round.c (MIN, MINUS_ZERO): New macros.
13224         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13225         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13226         * tests/test-round-ieee.c (main): Likewise.
13227         * tests/test-roundl-ieee.c (main): Likewise.
13228
13229         trunc: Implement result sign according to IEEE 754.
13230         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13231         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13232         * tests/test-trunc2.c: Include minus-zero.h.
13233         (MINUS_ZERO): New macro.
13234         (trunc_reference): Keep in sync with lib/trunc.c.
13235         * tests/test-truncf2.c: Include minus-zero.h.
13236         (MINUS_ZERO): New macro.
13237         (truncf_reference): Keep in sync with lib/trunc.c.
13238         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13239         * tests/test-trunc-ieee.c (main): Likewise.
13240         * tests/test-truncl-ieee.c (main): Likewise.
13241
13242         ceil: Implement result sign according to IEEE 754.
13243         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13244         (FUNC): Return -0.0 for -1 < x < 0.
13245         * tests/test-ceil2.c: Include minus-zero.h.
13246         (MINUS_ZERO): New macro.
13247         (ceil_reference): Keep in sync with lib/ceil.c.
13248         * tests/test-ceilf2.c: Include minus-zero.h.
13249         (MINUS_ZERO): New macro.
13250         (ceilf_reference): Keep in sync with lib/ceil.c.
13251         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13252         * tests/test-ceil-ieee.c (main): Likewise.
13253         * tests/test-ceill-ieee.c (main): Likewise.
13254
13255         floor: Implement result sign according to IEEE 754.
13256         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13257         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13258         * tests/test-floorf2.c (floorf_reference): Likewise.
13259         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13260         * tests/test-floor-ieee.c (main): Likewise.
13261         * tests/test-floorl-ieee.c (main): Likewise.
13262
13263 2010-12-22  Bruno Haible  <bruno@clisp.org>
13264
13265         getaddrinfo: Update doc.
13266         * doc/posix-functions/gai_strerror.texi: Return type is also different
13267         on AIX and HP-UX.
13268
13269 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13270
13271         getaddrinfo, inet_ntop: Update doc for Solaris.
13272         * doc/posix-functions/gai_strerror.texi: Return type is also an
13273         issue on Solaris 9 and earlier.
13274         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13275         on Solaris 10 and earlier.
13276
13277 2010-12-21  Bruno Haible  <bruno@clisp.org>
13278
13279         New module 'roundl-ieee'.
13280         * modules/roundl-ieee: New file.
13281         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13282         test whether roundl works according to ISO C 99 with IEC 60559.
13283         * m4/roundl-ieee.m4: New file.
13284         * modules/roundl-ieee-tests: New file.
13285         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13286         * tests/test-roundl.c (main): Remove signbit tests.
13287         * modules/roundl-tests (Depends-on): Remove signbit.
13288         * doc/posix-functions/roundl.texi: Mention the new module.
13289
13290 2010-12-21  Bruno Haible  <bruno@clisp.org>
13291
13292         New module 'truncl-ieee'.
13293         * modules/truncl-ieee: New file.
13294         * modules/truncl-ieee-tests: New file.
13295         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13296         * tests/test-truncl.c (main): Remove signbit tests.
13297         * modules/truncl-tests (Depends-on): Remove signbit.
13298         * doc/posix-functions/truncl.texi: Mention the new module.
13299
13300 2010-12-21  Bruno Haible  <bruno@clisp.org>
13301
13302         New module 'ceill-ieee'.
13303         * modules/ceill-ieee: New file.
13304         * modules/ceill-ieee-tests: New file.
13305         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13306         * tests/test-ceill.c (main): Remove signbit tests.
13307         * modules/ceill-tests (Depends-on): Remove signbit.
13308         * doc/posix-functions/ceill.texi: Mention the new module.
13309
13310 2010-12-21  Bruno Haible  <bruno@clisp.org>
13311
13312         New module 'floorl-ieee'.
13313         * modules/floorl-ieee: New file.
13314         * modules/floorl-ieee-tests: New file.
13315         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13316         * tests/test-floorl.c (main): Remove signbit tests.
13317         * modules/floorl-tests (Depends-on): Remove signbit.
13318         * doc/posix-functions/floorl.texi: Mention the new module.
13319
13320 2010-12-21  Bruno Haible  <bruno@clisp.org>
13321
13322         New module 'round-ieee'.
13323         * modules/round-ieee: New file.
13324         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13325         whether round works according to ISO C 99 with IEC 60559.
13326         * m4/round-ieee.m4: New file.
13327         * modules/round-ieee-tests: New file.
13328         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13329         * tests/test-round1.c (main): Remove signbit tests.
13330         * modules/round-tests (Depends-on): Remove 'signbit'.
13331         * doc/posix-functions/round.texi: Mention the new module.
13332
13333 2010-12-21  Bruno Haible  <bruno@clisp.org>
13334
13335         New module 'trunc-ieee'.
13336         * modules/trunc-ieee: New file.
13337         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13338         whether trunc works according to ISO C 99 with IEC 60559.
13339         * m4/trunc-ieee.m4: New file.
13340         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13341         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13342         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13343         * modules/trunc-ieee-tests: New file.
13344         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13345         * tests/test-trunc1.c (main): Remove signbit tests.
13346         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13347         * doc/posix-functions/trunc.texi: Mention the new module.
13348
13349 2010-12-21  Bruno Haible  <bruno@clisp.org>
13350
13351         New module 'ceil-ieee'.
13352         * modules/ceil-ieee: New file.
13353         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13354         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13355         ISO C 99 with IEC 60559.
13356         * m4/ceil-ieee.m4: New file.
13357         * modules/ceil (Files): Add lib/ceil.c.
13358         (Depends-on): Add 'float'.
13359         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13360         * lib/math.in.h (ceil): New declaration.
13361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13362         REPLACE_CEIL.
13363         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13364         * modules/ceil-ieee-tests: New file.
13365         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13366         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13367         * doc/posix-functions/ceil.texi: Mention the new module.
13368
13369 2010-12-21  Bruno Haible  <bruno@clisp.org>
13370
13371         New module 'floor-ieee'.
13372         * modules/floor-ieee: New file.
13373         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13374         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13375         ISO C 99 with IEC 60559.
13376         * m4/floor-ieee.m4: New file.
13377         * modules/floor (Files): Add lib/floor.c.
13378         (Depends-on): Add 'float'.
13379         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13380         * lib/math.in.h (floor): New declaration.
13381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13382         REPLACE_FLOOR.
13383         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13384         * modules/floor-ieee-tests: New file.
13385         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13386         * tests/test-math-c++.cc: Check the signature of 'floor'.
13387         * doc/posix-functions/floor.texi: Mention the new module.
13388
13389 2010-12-21  Bruno Haible  <bruno@clisp.org>
13390
13391         New module 'roundf-ieee'.
13392         * modules/roundf-ieee: New file.
13393         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13394         test whether roundf works according to ISO C 99 with IEC 60559.
13395         * m4/roundf-ieee.m4: New file.
13396         * modules/roundf-ieee-tests: New file.
13397         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13398         * tests/test-roundf1.c (main): Remove signbit tests.
13399         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13400         * doc/posix-functions/roundf.texi: Mention the new module.
13401
13402 2010-12-21  Bruno Haible  <bruno@clisp.org>
13403
13404         New module 'truncf-ieee'.
13405         * modules/truncf-ieee: New file.
13406         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13407         test whether truncf works according to ISO C 99 with IEC 60559.
13408         * m4/truncf-ieee.m4: New file.
13409         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13410         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13411         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13412         * modules/truncf-ieee-tests: New file.
13413         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13414         * tests/test-truncf1.c (main): Remove signbit tests.
13415         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13416         * doc/posix-functions/truncf.texi: Mention the new module.
13417
13418 2010-12-21  Bruno Haible  <bruno@clisp.org>
13419
13420         New module 'ceilf-ieee'.
13421         * modules/ceilf-ieee: New file.
13422         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13423         test whether ceilf works according to ISO C 99 with IEC 60559.
13424         * m4/ceilf-ieee.m4: New file.
13425         * modules/ceilf-ieee-tests: New file.
13426         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13427         * tests/test-ceilf1.c (main): Remove signbit tests.
13428         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13429         * doc/posix-functions/ceilf.texi: Mention the new module.
13430
13431 2010-12-21  Bruno Haible  <bruno@clisp.org>
13432
13433         New module 'floorf-ieee'.
13434         * modules/floorf-ieee: New file.
13435         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13436         test whether floorf works according to ISO C 99 with IEC 60559.
13437         * m4/floorf-ieee.m4: New file.
13438         * modules/floorf-ieee-tests: New file.
13439         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13440         * tests/test-floorf1.c (main): Remove signbit tests.
13441         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13442         * doc/posix-functions/floorf.texi: Mention the new module.
13443
13444 2010-12-21  Bruno Haible  <bruno@clisp.org>
13445
13446         Support for minus zero in autoconf macros.
13447         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13448         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13449         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13450         * tests/minus-zero.h: Update comments.
13451
13452 2010-12-21  Bruno Haible  <bruno@clisp.org>
13453
13454         Tests for module 'ceil'.
13455         * modules/ceil-tests: New file.
13456         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13457         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13458
13459 2010-12-21  Bruno Haible  <bruno@clisp.org>
13460
13461         Tests for module 'floor'.
13462         * modules/floor-tests: New file.
13463         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13464         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13465
13466 2010-12-21  Bruno Haible  <bruno@clisp.org>
13467
13468         math: Fix indentation.
13469         * lib/math.in.h (floorf): Fix indentation.
13470
13471 2010-12-21  Bruno Haible  <bruno@clisp.org>
13472
13473         Fix cross-compilation guesses on Solaris.
13474         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13475         not match "solaris2.10".
13476         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13477         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13478         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13479
13480 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13481
13482         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13483         This fixes a problem observed with the latest coreutils snapshot
13484         that caused a test to fail on Solaris 8.  src/csplit.c's call
13485         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13486         earlier, instead of returning the number of bytes that would have
13487         been generated; this causes csplit to incorrectly report memory
13488         exhaustion.
13489         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13490         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13491         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13492         comments to match.
13493         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13494         Fix typo in matching older versions of Solaris: "solaris2.10"
13495         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13496         only for guessing while cross-compiling.
13497         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13498
13499 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13500
13501         ftoastr: fix comment again
13502         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13503         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13504         Also, simplify example a bit by using flags = 0.
13505
13506 2010-12-20  Bruno Haible  <bruno@clisp.org>
13507
13508         round*, trunc*: Update documentation regarding glibc.
13509         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13510         * doc/posix-functions/round.texi: Likewise.
13511         * doc/posix-functions/roundl.texi: Likewise.
13512         * doc/posix-functions/truncf.texi: Likewise.
13513         * doc/posix-functions/trunc.texi: Likewise.
13514         * doc/posix-functions/truncl.texi: Likewise.
13515
13516 2010-12-20  Bruno Haible  <bruno@clisp.org>
13517
13518         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13519         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13520         * doc/posix-functions/round.texi: Likewise.
13521         * doc/posix-functions/roundl.texi: Likewise.
13522
13523 2010-12-20  Bruno Haible  <bruno@clisp.org>
13524
13525         ttyname_r: Add missing declaration on HP-UX 11.
13526         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13527         HAVE_TTYNAME_R.
13528         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13529         declared. Set HAVE_TTYNAME_R always.
13530         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13531         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13532         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13533         HAVE_TTYNAME_R.
13534         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13535
13536 2010-12-20  Bruno Haible  <bruno@clisp.org>
13537
13538         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13539         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13540         * doc/posix-functions/getlogin_r.texi: Likewise.
13541         * tests/test-getlogin.c: Include <errno.h>.
13542         (main): Avoid test failure on HP-UX 11.11.
13543         * tests/test-getlogin_r.c (main): Likewise.
13544
13545 2010-12-20  Bruno Haible  <bruno@clisp.org>
13546
13547         getlogin_r: Add missing declaration on HP-UX 11.
13548         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13549         declared also when it exists as a function.
13550         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13551
13552 2010-12-20  Bruno Haible  <bruno@clisp.org>
13553
13554         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13555         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13556         through wcrtomb.
13557
13558 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13559
13560         ftoastr: fix comment
13561         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13563
13564 2010-12-19  Bruno Haible  <bruno@clisp.org>
13565
13566         isnan: Ensure it is a macro.
13567         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13568         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13569         Solaris.
13570
13571 2010-12-19  Bruno Haible  <bruno@clisp.org>
13572
13573         ldexpl test: Fix link error on OSF/1 5.1.
13574         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13575
13576 2010-12-19  Bruno Haible  <bruno@clisp.org>
13577
13578         wctype: Make it work in C++ mode on OSF/1 5.1.
13579         * lib/wctype.in.h (iswblank): Declare but not define here.
13580         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13581         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13582         * modules/wctype (Files): Add lib/iswblank.c.
13583
13584 2010-12-19  Bruno Haible  <bruno@clisp.org>
13585
13586         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13587         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13588         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13589
13590 2010-12-19  Bruno Haible  <bruno@clisp.org>
13591
13592         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13593         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13594         _POSIX_PII_SOCKET.
13595         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13596         * doc/posix-functions/recvfrom.texi: Likewise.
13597         * doc/posix-functions/send.texi: Likewise.
13598         * doc/posix-functions/sendto.texi: Likewise.
13599
13600 2010-12-19  Bruno Haible  <bruno@clisp.org>
13601
13602         tcgetsid: Add missing declaration on OSF/1 5.1.
13603         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13604         HAVE_TCGETSID.
13605         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13606         Don't set HAVE_TCGETSID.
13607         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13608         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13609         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13610         HAVE_TCGETSID.
13611         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13612
13613 2010-12-19  Bruno Haible  <bruno@clisp.org>
13614
13615         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13616         * lib/stdio.in.h: During the include_next statement, let recursive
13617         includes of this file include only the system header file.
13618
13619 2010-12-19  Bruno Haible  <bruno@clisp.org>
13620
13621         iconv_open: Fix regression from 2010-12-04.
13622         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13623         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13624
13625 2010-12-19  Bruno Haible  <bruno@clisp.org>
13626
13627         stdbool test: Avoid a gcc warning.
13628         * tests/test-stdbool.c (main): Fail if e1 is false.
13629         Reported by Jim Meyering.
13630
13631 2010-12-19  Jim Meyering  <meyering@redhat.com>
13632
13633         setenv: restore to working order
13634         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13635         mistakenly removed.
13636         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13637         HAVE_SETENV.
13638         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13639         HAVE_SETENV.
13640
13641 2010-12-19  Bruno Haible  <bruno@clisp.org>
13642
13643         Document some different function declarations on OSF/1 5.1.
13644         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13645         * doc/posix-functions/inet_ntop.texi: Likewise.
13646         * doc/posix-functions/gethostname.texi: Likewise.
13647         * lib/unistd.in.h (gethostname): Update comment.
13648
13649 2010-12-19  Bruno Haible  <bruno@clisp.org>
13650
13651         doc: Mention vasprintf-posix module.
13652         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13653         the 'vasprintf-posix' module.
13654         * doc/glibc-functions/vasprintf.texi: Likewise.
13655
13656 2010-12-19  Bruno Haible  <bruno@clisp.org>
13657
13658         unsetenv: Add missing declaration on OSF/1 5.1.
13659         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13660         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13661         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13662         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13663         not HAVE_UNSETENV.
13664         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13665         HAVE_UNSETENV.
13666         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13667
13668 2010-12-19  Bruno Haible  <bruno@clisp.org>
13669
13670         setenv: Add missing declaration on OSF/1 5.1.
13671         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13672         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13673         declared. Don't set HAVE_SETENV.
13674         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13675         not HAVE_SETENV.
13676         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13677         HAVE_SETENV.
13678         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13679
13680 2010-12-19  Bruno Haible  <bruno@clisp.org>
13681
13682         nl_langinfo tests: Avoid gcc warning.
13683         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13684
13685 2010-12-19  Bruno Haible  <bruno@clisp.org>
13686
13687         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13688         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13689         _GL_CXXALIAS_SYS.
13690
13691 2010-12-19  Bruno Haible  <bruno@clisp.org>
13692
13693         stdbool: Relax test.
13694         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13695         address to 'bool' work in static initializer, for compilers other than
13696         GCC.
13697
13698 2010-12-19  Bruno Haible  <bruno@clisp.org>
13699
13700         ftello: Add missing declaration on OSF/1 5.1.
13701         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13702         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13703         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13704         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13705         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13706
13707 2010-12-19  Bruno Haible  <bruno@clisp.org>
13708
13709         fseeko: Add missing declaration on OSF/1 5.1.
13710         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13711         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13712         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13713         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13714         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13715
13716 2010-12-19  Bruno Haible  <bruno@clisp.org>
13717
13718         fchdir: Add missing declaration on OSF/1 5.1.
13719         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13720         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13722         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13723         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13724
13725 2010-12-19  Bruno Haible  <bruno@clisp.org>
13726
13727         relocatable-prog-wrapper: Separate from relocatable-prog.
13728         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13729         uninstall-relocwrapper rule here.
13730         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13731         Reported by Ian Beckwith <ianb@erislabs.net>.
13732
13733 2010-12-19  Bruno Haible  <bruno@clisp.org>
13734
13735         unistr/u8-mbsnlen: Add missing dependency.
13736         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13737         Reported by Ian Beckwith <ianb@erislabs.net>.
13738
13739 2010-12-19  Bruno Haible  <bruno@clisp.org>
13740
13741         iconv: Make it possible again to use this module without 'iconv-h'.
13742         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13743         if it is not defined.
13744         Reported by Ian Beckwith <ianb@erislabs.net>.
13745
13746 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13747
13748         acl: port to Solaris 8 when copying from tmpfs to ufs
13749         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13750         error number.  Problem observed on Solaris 8 with latest
13751         coreutils, with "mv A B", where A is on a tmpfs file system and B
13752         is on a ufs file system.  This caused coreutils' mv/part-symlink
13753         test to fail.
13754
13755         tests: set fail=0 at start
13756         * tests/init.sh (setup_): Move fail=0 initialization here ...
13757         (mktempd_): ... from here, so that tests can rely on fail being
13758         set to 0 initially.  This fixes a problem in coreutils; see:
13759         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13760
13761 2010-12-18  Bruno Haible  <bruno@clisp.org>
13762
13763         memmem-simple: Stylistic changes.
13764         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13765         Fix preprocessor directive indentation.
13766
13767 2010-12-15  Pádraig Brady <P@draigBrady.com>
13768
13769         memmem, memmem-simple: reorganize and expand empty needle check
13770         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13771         functional checks to memmem-simple so that one has a fully functional
13772         memmem by using just this module.
13773         Restrict the performance only check to the memmem module.
13774         Also expand the empty needle check to ensure the correct
13775         pointer is returned, not just a non NULL pointer.
13776         * doc/glibc-functions/memmem.texi: Rearrange the portability
13777         documentation to correlate with the rearranged checks.
13778         Clarify exactly how the memmem and memmem-simple modules
13779         relate to each other.
13780
13781 2010-12-15  Pádraig Brady <P@draigBrady.com>
13782             Bruno Haible  <bruno@clisp.org>
13783
13784         Improve cross-compilation guesses for uClibc.
13785         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13786         that uClibc does not have the glibc bug.
13787         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13788         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13789
13790 2010-12-14  Eric Blake  <eblake@redhat.com>
13791
13792         configmake: provide fallbacks for oldest supported autotools
13793         * m4/configmake.m4: New file.
13794         * modules/configmake (Files): Ship it.
13795         (configure.ac): Use it to guarantee fallbacks.
13796
13797 2010-12-13  Pádraig Brady <P@draigBrady.com>
13798
13799         read-file: Improve handling of large files
13800         * lib/read-file.c (fread_file): Minimize realloc()s
13801         for regular files, and better manage sizes around SIZE_MAX.
13802
13803 2010-12-13  Eric Blake  <eblake@redhat.com>
13804
13805         cloexec, fcntl: relax license
13806         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13807         consent from all contributors.
13808         * modules/fcntl (License): Likewise.
13809
13810 2010-12-10  Bruno Haible  <bruno@clisp.org>
13811
13812         Tests for module 'pipe-posix'.
13813         * modules/pipe-posix-tests: New file.
13814         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13815
13816 2010-12-10  Bruno Haible  <bruno@clisp.org>
13817
13818         pipe-posix: Make it work in C++ mode.
13819         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13820         (pipe): Use common idiom, not a macro definition.
13821         * lib/pipe.c: New file.
13822         * m4/pipe.m4: New file.
13823         * modules/pipe-posix (Description): Enhance.
13824         (Files): Add lib/pipe.c, m4/pipe.m4.
13825         (configure.ac): Invoke gl_FUNC_PIPE.
13826         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13827         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13828         * tests/test-unistd-c++.cc: Check the signature of pipe.
13829
13830 2010-12-10  Bruno Haible  <bruno@clisp.org>
13831
13832         Rename module 'pipe' to 'spawn-pipe'.
13833         * modules/spawn-pipe: New file, renamed from modules/pipe.
13834         (Files, configure.ac, Makefile.am): Update.
13835         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13836         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13837         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13838         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13839         "spawn-pipe.h" instead of "pipe.h".
13840         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13841         to gl_SPAWN_PIPE.
13842         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13843         (Files, Makefile.am): Update.
13844         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13845         Update.
13846         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13847         Include "spawn-pipe.h" instead of "pipe.h".
13848         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13849         * lib/javacomp.c: Likewise.
13850         * lib/javaversion.c: Likewise.
13851         * lib/pipe-filter-gi.c: Likewise.
13852         * lib/pipe-filter-ii.c: Likewise.
13853         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13854         * modules/javacomp (Depends-on): Likewise.
13855         * modules/javaversion (Depends-on): Likewise.
13856         * modules/pipe-filter-gi (Depends-on): Likewise.
13857         * modules/pipe-filter-ii (Depends-on): Likewise.
13858         * MODULES.html.sh (Executing programs): Update.
13859         * NEWS: Mention the change.
13860
13861 2010-12-10  Eric Blake  <eblake@redhat.com>
13862
13863         pipe-posix: new module
13864         * modules/pipe-posix: New file.
13865         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13866         (gl_UNISTD_H): Check for declaration.
13867         * modules/unistd (Makefile.am): Substitute it.
13868         * lib/unistd.in.h (pipe): Provide it for mingw.
13869         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13870         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13871
13872 2010-12-07  Bruno Haible  <bruno@clisp.org>
13873
13874         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13875         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13876         u8_strcmp_gnu.
13877         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13878
13879 2010-12-06  Bruno Haible  <bruno@clisp.org>
13880
13881         Update internal documentation.
13882         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13883
13884 2010-12-04  Bruno Haible  <bruno@clisp.org>
13885
13886         Put more information about failed tests into the test return codes.
13887         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13888         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13889         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13891         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13892         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13893         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13894         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13895         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13896         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13897         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13898         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13899         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13900         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13901         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13902         returns a bit mask.
13903         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13904         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13905         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13906         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13907         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13908         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13909         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13910         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13911         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13912         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13913         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13914         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13915         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13916         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13917         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13918         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13919         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13920         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13921         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13922         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13923         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13924         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13925         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13926         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13927         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13928         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13929         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13930         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13931         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13932         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13933         gl_PRINTF_PRECISION): Likewise.
13934         * m4/regex.m4 (gl_REGEX): Likewise.
13935         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13936         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13937         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13938         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13939         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13940         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13941         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13942         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13943         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13944         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13945         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13946         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
13947         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
13948         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
13949         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
13950         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
13951         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
13952         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13953         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
13954         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
13955         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
13956         enumerated value.
13957         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
13958
13959 2010-12-04  Bruno Haible  <bruno@clisp.org>
13960
13961         Update for Solaris 11 2010-11.
13962         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
13963         Express, released in November 2010.
13964
13965 2010-12-04  Bruno Haible  <bruno@clisp.org>
13966
13967         nproc: Relax license.
13968         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
13969         and Paul Eggert.
13970         Requested by Ludovic Courtès <ludo@gnu.org>.
13971
13972 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13973
13974         utimecmp: fine-grained src to nearby coarse-grained dest
13975
13976         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
13977         and the source is on a file system with higher-resolution time
13978         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
13979         not work, and the time stamps are close together, the algorithm to
13980         determine the exact resolution from the read-back mtime was buggy:
13981         it had a "!=" where it should have had an "==".  This bug has been
13982         in the code ever since it was introduced to gnulib.
13983         Problem reported by Dan Jacobson in
13984         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
13985
13986 2010-11-30  Bruno Haible  <bruno@clisp.org>
13987
13988         strerror_r-posix: Fix autoconf test.
13989         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
13990
13991 2010-11-28  Bruno Haible  <bruno@clisp.org>
13992             Paul Eggert  <eggert@cs.ucla.edu>
13993
13994         Tests for module 'getdomainname'.
13995         * modules/getdomainname-tests: New file.
13996         * tests/test-getdomainname.c: New file, based on
13997         tests/test-gethostname.c.
13998
13999 2010-11-28  Bruno Haible  <bruno@clisp.org>
14000             Paul Eggert  <eggert@cs.ucla.edu>
14001
14002         getdomainname: Use the system function when possible.
14003         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14004         (getdomainname): Replace if needed. Provide the declaration if it is
14005         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14006         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14007         (getdomainname): When the system has getdomainname, call the system
14008         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14009         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14010         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14011         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14012         the function if its second argument is of type 'int' or if it is found
14013         in libnsl.
14014         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14015         <sys/systeminfo.h> and sysinfo().
14016         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14018         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14019         HAVE_GETDOMAINNAME.
14020         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14021         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14022         * doc/glibc-functions/getdomainname.texi: Document the problems with
14023         the getdomainname declaration.
14024
14025 2010-11-28  Bruno Haible  <bruno@clisp.org>
14026
14027         sys_socket: Ensure ss_family field on AIX.
14028         * lib/sys_socket.in.h (ss_family): New macro definition.
14029         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14030         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14031         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14032         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14033         * modules/sys_socket (Makefile.am): Substitute
14034         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14035         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14036
14037 2010-11-27  Bruno Haible  <bruno@clisp.org>
14038
14039         readline: Improve configure output.
14040         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14041         "checking for readline..." result understandable.
14042
14043 2010-11-27  Bruno Haible  <bruno@clisp.org>
14044
14045         *printf-posix: Detect a bug on Solaris 10/x86.
14046         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14047         for floating-point output.
14048         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14049         directive.
14050         * tests/test-snprintf-posix.h (test_function): Likewise.
14051         * tests/test-sprintf-posix.h (test_function): Likewise.
14052         * tests/test-vasprintf-posix.c (test_function): Likewise.
14053         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14054         * doc/posix-functions/printf.texi: Likewise.
14055         * doc/posix-functions/snprintf.texi: Likewise.
14056         * doc/posix-functions/sprintf.texi: Likewise.
14057         * doc/posix-functions/vfprintf.texi: Likewise.
14058         * doc/posix-functions/vprintf.texi: Likewise.
14059         * doc/posix-functions/vsnprintf.texi: Likewise.
14060         * doc/posix-functions/vsprintf.texi: Likewise.
14061         * doc/glibc-functions/obstack_printf.texi: Likewise.
14062         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14063
14064 2010-11-27  Bruno Haible  <bruno@clisp.org>
14065
14066         Fix link error when module libunistring-optional is in use.
14067         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14068         * modules/striconveha-tests (Makefile.am): Likewise.
14069
14070 2010-11-27  Bruno Haible  <bruno@clisp.org>
14071
14072         regex: Mention link dependencies.
14073         * modules/regex (Link): New section.
14074         * modules/rpmatch (Link): Likewise.
14075         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14076
14077 2010-11-27  Bruno Haible  <bruno@clisp.org>
14078
14079         ftoastr: Fix compilation error on Solaris.
14080         * lib/ftoastr.c: Include <config.h>.
14081
14082 2010-11-27  Bruno Haible  <bruno@clisp.org>
14083
14084         getloadavg: Update documentation.
14085         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14086
14087 2010-11-27  Bruno Haible  <bruno@clisp.org>
14088
14089         sys_socket: Fix test whether the functions are declared.
14090         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14091         not <sys/select.h>.
14092
14093 2010-11-27  Bruno Haible  <bruno@clisp.org>
14094
14095         getpass: Make sure to get system declaration on some platforms.
14096         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14097         gl_USE_SYSTEM_EXTENSIONS.
14098         * modules/getpass (Depends-on): Add extensions.
14099
14100 2010-11-26  Bruno Haible  <bruno@clisp.org>
14101
14102         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14103         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14104         'iconv' module is present.
14105         (ICONV_CONST): New macro.
14106         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14107         ICONV_CONST.
14108         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14109         set ICONV_CONST.
14110         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14111         here.
14112         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14113         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14114         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14115         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14116         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14117         present.
14118
14119 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14120
14121         ftoastr: comment fix
14122         * lib/ftoastr.c: "little" -> "little or no" in comment
14123
14124 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14125
14126         stdint: port to GCC 4.3 + OSX + Octave
14127         On this platform, stdint.h is buggy and defines int64_t to long
14128         long int.  The replacement defined it to long int, causing
14129         problems with C++ style name mangling.  Instead, trust the system
14130         definition if INT64_MAX is defined, and likewise for the unsigned
14131         variant.   Problem reported by Jarno Rajahalme in
14132         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14133         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14134         and don't mess with int64_t and INT64_MAX in this case.
14135         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14136
14137 2010-11-24  Bruno Haible  <bruno@clisp.org>
14138
14139         doc: Corrections regarding MacOS X 10.4 and 10.5.
14140         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14141         MacOS X.
14142         Reported by Simon Josefsson.
14143
14144 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14145
14146         Uninstall ".bin" files installed by relocwrapper.
14147         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14148         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14149         unless it is already there.
14150
14151 2010-11-21  Bruno Haible  <bruno@clisp.org>
14152
14153         Update for NetBSD 5.0.
14154         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14155         NetBSD; the test fails on NetBSD 5.0.
14156         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14157         about NetBSD.
14158
14159 2010-11-21  Bruno Haible  <bruno@clisp.org>
14160
14161         Update for HP-UX 11.23 and HP-UX 11.31.
14162         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14163         HP-UX.
14164
14165 2010-11-21  Bruno Haible  <bruno@clisp.org>
14166
14167         Update for MacOS X 10.5.
14168         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14169         MacOS X; the test fails on MacOS X 10.5.8.
14170         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14171         about MacOS X.
14172
14173 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14174
14175         bootstrap: add bootstrap_sync option.
14176         See discussion at
14177         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14178         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14179         * build-aux/bootstrap: Accept --bootstrap-sync to update
14180         bootstrap if it is not identical to the local gnulib's
14181         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14182         enable this by default.  Accept --no-bootstrap-sync to disable
14183         it.
14184
14185 2010-11-20  Bruno Haible  <bruno@clisp.org>
14186
14187         Ensure that <features.h> is included before __GLIBC__ is tested.
14188         * lib/printf-parse.h: Include <features.h>.
14189         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14190         Reported by Mike Frysinger <vapier@gentoo.org>.
14191
14192         Ensure that <features.h> is included before __GLIBC__ is tested.
14193         * lib/wchar.in.h: Include <features.h>.
14194         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14195         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14196         Reported by Mike Frysinger <vapier@gentoo.org>.
14197
14198         Ensure that <features.h> is included before __GLIBC__ is tested.
14199         * lib/arpa_inet.in.h: Include <features.h>.
14200         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14201         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14202         Reported by Mike Frysinger <vapier@gentoo.org>.
14203
14204         Ensure that <features.h> is included before __GLIBC__ is tested.
14205         * build-aux/link-warning.h: Include <features.h>.
14206         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14207         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14208         Reported by Mike Frysinger <vapier@gentoo.org>.
14209
14210         Ensure that <features.h> is included before __GLIBC__ is tested.
14211         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14212         Reported by Mike Frysinger <vapier@gentoo.org>.
14213
14214 2010-11-20  Bruno Haible  <bruno@clisp.org>
14215
14216         memmem: Fix autoconf test.
14217         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14218
14219 2010-11-20  Bruno Haible  <bruno@clisp.org>
14220
14221         Port to uClibc.
14222         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14223         * lib/fcntl.in.h: Likewise.
14224         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14225         * lib/mbrtowc.c (mbrtowc): Likewise.
14226         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14227         * lib/strerror_r.c: Likewise.
14228         * lib/unistr/u8-strnlen.c: Likewise.
14229         * lib/vasnprintf.c (decimal_point_char): Likewise.
14230         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14231         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14232         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14233         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14234         * tests/test-sigaction.c (handler, main): Likewise.
14235         * lib/freading.h: Treat uClibc like a non-glibc platform.
14236         * lib/freading.c: Likewise.
14237         * lib/gettext.h: Likewise.
14238         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14239         Likewise.
14240         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14241         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14242         * lib/propername.c (proper_name_utf8): Likewise.
14243         * lib/spawn.in.h: Likewise.
14244         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14245         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14246         mem_cd_iconveh_internal): Likewise.
14247         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14248         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14249         strstr, strcasestr): Likewise.
14250         * lib/unicodeio.c (unicode_to_mb): Likewise.
14251         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14252         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14253         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14254         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14255         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14256         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14257         * lib/unistr/u8-stpncpy.c: Likewise.
14258         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14259         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14260         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14261         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14262         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14263         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14264         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14265         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14266         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14267         Likewise.
14268         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14269         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14270         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14271         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14272         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14273         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14274         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14275         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14276         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14277         * tests/test-striconveha.c (main): Likewise.
14278         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14279         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14280         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14281         * doc/posix-functions/getline.texi: Likewise.
14282         Reported by Mike Frysinger <vapier@gentoo.org>.
14283
14284 2010-11-20  Bruno Haible  <bruno@clisp.org>
14285
14286         nproc: Fix condition.
14287         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14288         HAVE_PTHREAD_AFFINITY_NP.
14289
14290 2010-11-20  Bruno Haible  <bruno@clisp.org>
14291
14292         Fix a comment.
14293         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14294
14295 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14296
14297         ftoastr: don't assume snprintf
14298         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14299         Implement a subset of snprintf here, by using sprintf safely.
14300         * modules/ftoastr (Depends-on): Remove snprintf.
14301
14302 2010-11-19  Jim Meyering  <meyering@redhat.com>
14303
14304         test-rename.h: fix compilation failure
14305         * tests/test-rename.h (test_rename): Add omitted "}".
14306
14307 2010-11-17  Jim Meyering  <meyering@redhat.com>
14308
14309         maint.mk: add a URL discussing the no-@acronym policy
14310         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14311
14312 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14313
14314         ftoastr: depend on snprintf, improve comments
14315         * lib/ftoastr.c: Also mention Loitsch's draft.
14316         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14317         needed in the current implementation, but it might simplify
14318         speeding up the code later.
14319         * modules/ftoastr: Depend on snprintf; this improves portability.
14320         Suggested by Bruno Haible in the same email.
14321
14322         ftoastr: port to hosts lacking strtof and strtold
14323         Problem reported by Bruno Haible in
14324         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14325         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14326         environment and strtold (and presumably strtof) are not available.
14327         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14328         (configure.ac): Require gl_C99_STRTOLD.
14329
14330 2010-11-18  Bruno Haible  <bruno@clisp.org>
14331
14332         c-strtold: Avoid link error on AIX 7.
14333         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14334         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14335         (gl_C_STRTOLD): Test whether strtold_l exists.
14336         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14337
14338 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14339
14340         intprops: new macro INT_BITS_STRLEN_BOUND
14341         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14342         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14343         not exposed.  Also, it uses a slightly tighter bound than before;
14344         though this makes no practical difference, we might as well be as
14345         tight as we easily can.
14346
14347         ftoastr: new module, for lossless conversion of floats to short strings
14348         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14349         * modules/ftoastr: New files.
14350
14351 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14352
14353         bootstrap: port to Solaris sed
14354         * build-aux/bootstrap (get_version): Port to Solaris sed.
14355         See Ralf Wildenhues's note in
14356         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14357
14358 2010-11-14  Jim Meyering  <meyering@redhat.com>
14359
14360         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14361         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14362         and move definition closer to sole use.
14363
14364 2010-11-13  Jim Meyering  <meyering@redhat.com>
14365
14366         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14367         Now we require at least autoconf-2.59, which means the work-around
14368         is no longer needed.
14369         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14370         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14371         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14372         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14373         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14374
14375 2010-11-13  Bruno Haible  <bruno@clisp.org>
14376
14377         rename, renameat: Avoid test failures at NFS mounted locations.
14378         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14379         functions.
14380         (test_rename): Use assert_nonexistent.
14381         * tests/test-rename.c: Include <dirent.h>.
14382         * tests/test-renameat.c: Likewise.
14383         Reported by Gary V. Vaughan <gary@gnu.org>.
14384
14385         rename, renameat: Document Linux bug with NFS
14386         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14387         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14388         * doc/posix-functions/renameat.texi: Likewise.
14389         Suggested by Eric Blake.
14390
14391 2010-11-13  Bruno Haible  <bruno@clisp.org>
14392
14393         rename test: Add comments.
14394         * tests/test-rename.h (test_rename): Add structure and comments.
14395
14396 2010-11-13  Eric Blake  <eblake@redhat.com>
14397
14398         maintainer-makefile: cover a few more files
14399         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14400         scripts generated within C files, for libvirt.
14401
14402 2010-11-13  Bruno Haible  <bruno@clisp.org>
14403
14404         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14405         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14406         character, return the number of bytes that belong together, not always
14407         1.
14408         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14409         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14410         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14411         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14412         number of bytes of an invalid character.
14413         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14414         (main): Invoke it.
14415         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14416         results.
14417         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14418         malformed byte sequences.
14419         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14420         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14421         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14422         Reported by Ben Pfaff and Paolo Bonzini.
14423
14424 2010-11-13  Bruno Haible  <bruno@clisp.org>
14425
14426         openat: Work around glibc bug with fchownat() and empty file names.
14427         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14428         (gl_FUNC_FCHOWNAT): Invoke it.
14429         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14430         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14431         Reported by Gary V. Vaughan <gary@gnu.org>.
14432
14433 2010-11-13  Bruno Haible  <bruno@clisp.org>
14434
14435         openat: Ensure autoconf macro ordering.
14436         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14437         gl_USE_SYSTEM_EXTENSIONS.
14438         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14439
14440 2010-11-13  Bruno Haible  <bruno@clisp.org>
14441
14442         Update comments.
14443         * lib/unistr/u8-check.c: Update file name in comments.
14444         * lib/unistr/u8-mblen.c: Likewise.
14445         * lib/unistr/u8-prev.c: Likewise.
14446         * lib/unistr/u8-strmblen.c: Likewise.
14447         * lib/unistr/u8-strmbtouc.c: Likewise.
14448
14449 2010-11-13  Jim Meyering  <meyering@redhat.com>
14450
14451         tests: avoid test failure on Solaris 10 due to lack of PATH export
14452         * tests/test-update-copyright.sh: Don't forget to export PATH.
14453
14454         init.sh: ensure that IFS is defined, just in case...
14455         * tests/init.sh (setup_): Ensure that IFS is defined,
14456         so that saving and restoring it works as expected.  This
14457         appears to be useful at least for an old version of dash
14458         from a long time ago (RH 6).  See here for details:
14459         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14460
14461         maint.mk: tighten "test a == b" check
14462         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14463         test to files that contain something like #!/bin/sh.
14464         Without this, coreutils would get two false positives in
14465         the comments of C source files.
14466
14467 2010-11-12  Eric Blake  <eblake@redhat.com>
14468
14469         bootstrap: fix typo in previous attempt
14470         * build-aux/bootstrap (buildreq): Correct the grouping.
14471         Reported by Paul Eggert.
14472
14473         maintainer-makefile: prohibit test x == x
14474         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14475         Based on a report by Matthias Bolte.
14476
14477         bootstrap: allow FreeBSD gzip
14478         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14479         which has no '.' and goes to stderr.
14480         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14481         Reported by Matthias Bolte.
14482
14483         maintainer-makefile: check for i18n setup
14484         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14485         will likely work.
14486
14487 2010-11-12  Bruno Haible  <bruno@clisp.org>
14488
14489         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14490         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14491         * lib/nanosleep.c (nanosleep): Likewise.
14492
14493 2010-11-11  Bruno Haible  <bruno@clisp.org>
14494
14495         fcntl-h: Fix for use of C++ on glibc systems.
14496         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14497         also on glibc systems in C++ mode.
14498         Reported by Gary V. Vaughan <gary@gnu.org>.
14499
14500 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14501
14502         mknod: avoid false failure with dash
14503         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14504
14505 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14506
14507         unlink: Fix "is it should" typo in diagnostic.
14508         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14509         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14510
14511 2010-11-11  Bruno Haible  <bruno@clisp.org>
14512
14513         Tests for module 'strerror_r-posix'.
14514         * modules/strerror_r-posix-tests: New file.
14515         * tests/test-strerror_r.c: New file.
14516         * tests/test-string-c++.cc: Check the signature of strerror_r.
14517
14518         New module 'strerror_r-posix'.
14519         * lib/string.in.h (strerror_r): New declaration.
14520         * lib/strerror_r.c: New file.
14521         * m4/strerror_r.m4: New file.
14522         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14523         of strerror_r.
14524         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14525         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14526         * modules/strerror_r-posix: New file.
14527         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14528         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14529         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14530         portability problems.
14531
14532 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14533
14534         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14535         line is also considered for output. Quoted function name in shell
14536         command, so temporary files for functions like MyClass::operator()
14537         are removed correctly without errors.
14538
14539 2010-11-09  Bruno Haible  <bruno@clisp.org>
14540
14541         * doc/posix-functions/strerror.texi: List more failing platforms.
14542
14543         * doc/posix-functions/strerror.texi: Add a comment.
14544
14545 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14546
14547         fdopendir: fix bug on MacOS X when low on file descriptors
14548
14549         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14550         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14551         All callers changed.
14552         (fdopendir): Invoke save_cwd at the top level, not after using
14553         multiple dup() calls to use up file descriptors.  Then retry
14554         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14555         less than the maximum number of open file descriptors, because
14556         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14557         on Mac OS X 10.6.4 for tar 1.24
14558         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14559         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14560         and for tar 1.25
14561         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14562
14563 2010-11-07  Bruno Haible  <bruno@clisp.org>
14564
14565         vasnprintf: Support I flag on glibc systems.
14566         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14567         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14568         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14569         snprintf function.
14570         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14571         glibc systems.
14572         * tests/test-vasnprintf-posix3.c: New file.
14573         * modules/vasnprintf-posix-tests (Files): Add it.
14574         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14575
14576 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14577
14578         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14579         * MODULES.html.sh: For compiler warnings, use name
14580         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14581
14582 2010-11-05  Eric Blake  <eblake@redhat.com>
14583
14584         ceil, floor: avoid spurious failure with icc
14585         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14586         [denormals-as-zero] when optimizing without -mieee-fp option.
14587         * tests/test-floorf2.c (floorf_reference): Likewise.
14588         * tests/test-ceilf1.c (dummy): New function.
14589         (main): Use it to outsmart icc's optimization.
14590         * tests/test-floorf1.c (dummy, main): Likewise.
14591
14592         tests: require working signbit
14593         * modules/ceilf-tests (Depends-on): Add signbit.
14594         * modules/ceill-tests (Depends-on): Likewise.
14595         * modules/floorf-tests (Depends-on): Likewise.
14596         * modules/floorl-tests (Depends-on): Likewise.
14597         * modules/round-tests (Depends-on): Likewise.
14598         * modules/roundf-tests (Depends-on): Likewise.
14599         * modules/roundl-tests (Depends-on): Likewise.
14600         * modules/trunc-tests (Depends-on): Likewise.
14601         * modules/truncf-tests (Depends-on): Likewise.
14602         * modules/truncl-tests (Depends-on): Likewise.
14603
14604         strtod: work around icc bug
14605         * lib/strtod.c (minus_zero): Define to working value.
14606         (strtod): Use it to avoid icc bug.
14607
14608         copysign: enhance tests
14609         * modules/copysign-tests (Files): Add minus-zero.h.
14610         * tests/test-copysign.c (main): Also test zeros.
14611
14612 2010-11-04  Eric Blake  <eblake@redhat.com>
14613
14614         ceil, floor, round, trunc: enhance tests of -0
14615         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14616         * tests/test-ceill.c (main): Likewise.
14617         * tests/test-floorf1.c (main): Likewise.
14618         * tests/test-floorl.c (main): Likewise.
14619         * tests/test-round1.c (main): Likewise.
14620         * tests/test-roundf1.c (main): Likewise.
14621         * tests/test-roundl.c (main): Likewise.
14622         * tests/test-trunc1.c (main): Likewise.
14623         * tests/test-truncf1.c (main): Likewise.
14624         * tests/test-truncl.c (main): Likewise.
14625
14626 2010-11-04  Eric Blake  <eblake@redhat.com>
14627
14628         frexp, tests: work around ICC bug with -zero
14629         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14630         works with more compilers.
14631         * tests/minus-zero.h: New file.
14632         * modules/ceilf-tests (Files): Include it.
14633         * modules/ceill-tests (Files): Likewise.
14634         * modules/floorf-tests (Files): Likewise.
14635         * modules/floorl-tests (Files): Likewise.
14636         * modules/frexp-nolibm-tests (Files): Likewise.
14637         * modules/frexp-tests (Files): Likewise.
14638         * modules/frexpl-nolibm-tests (Files): Likewise.
14639         * modules/frexpl-tests (Files): Likewise.
14640         * modules/isnan-tests (Files): Likewise.
14641         * modules/isnand-nolibm-tests (Files): Likewise.
14642         * modules/isnand-tests (Files): Likewise.
14643         * modules/isnanf-nolibm-tests (Files): Likewise.
14644         * modules/isnanf-tests (Files): Likewise.
14645         * modules/isnanl-nolibm-tests (Files): Likewise.
14646         * modules/isnanl-tests (Files): Likewise.
14647         * modules/round-tests (Files): Likewise.
14648         * modules/roundf-tests (Files): Likewise.
14649         * modules/roundl-tests (Files): Likewise.
14650         * modules/ldexpl-tests (Files): Likewise.
14651         * modules/signbit-tests (Files): Likewise.
14652         * modules/snprintf-posix-tests (Files): Likewise.
14653         * modules/sprintf-posix-tests (Files): Likewise.
14654         * modules/strtod-tests (Files): Likewise.
14655         * modules/trunc-tests (Files): Likewise.
14656         * modules/truncf-tests (Files): Likewise.
14657         * modules/truncl-tests (Files): Likewise.
14658         * modules/vsnprintf-posix-tests (Files): Likewise.
14659         * modules/vsprintf-posix-tests (Files): Likewise.
14660         * modules/vasnprintf-posix-tests (Files): Likewise.
14661         * modules/vasprintf-posix-tests (Files): Likewise.
14662         * tests/test-ceilf1.c (main): Use it.
14663         * tests/test-ceill.c (main): Likewise.
14664         * tests/test-floorf1.c (main): Likewise.
14665         * tests/test-floorl.c (main): Likewise.
14666         * tests/test-frexp.c (main): Likewise.
14667         * tests/test-frexpl.c (main): Likewise.
14668         * tests/test-isnan.c (main): Likewise.
14669         * tests/test-isnand.h (main): Likewise.
14670         * tests/test-isnanf.h (main): Likewise.
14671         * tests/test-isnanl.h (main): Likewise.
14672         * tests/test-ldexpl.c (main): Likewise.
14673         * tests/test-round.c (main): Likewise.
14674         * tests/test-roundf.c (main): Likewise.
14675         * tests/test-roundl.c (main): Likewise.
14676         * tests/test-signbit.c (test_signbitf, test_signbitd)
14677         (test_signbitl): Likewise.
14678         * tests/test-snprintf-posix.h (test_function): Likewise.
14679         * tests/test-sprintf-posix.h (test_function): Likewise.
14680         * tests/test-strtod.c (main): Likewise.
14681         * tests/test-trunc1.c (main): Likewise.
14682         * tests/test-truncf1.c (main): Likewise.
14683         * tests/test-truncl.c (main): Likewise.
14684
14685         isnanl: work around icc bug
14686         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14687
14688 2010-11-03  Eric Blake  <eblake@redhat.com>
14689
14690         tests: fix compiler warnings
14691         * tests/test-getopt.h (test_getopt): Fix condition.
14692         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14693         * tests/test-pipe2.c (main): Likewise.
14694         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14695
14696         utimens: fix broken m4 test
14697         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14698
14699 2010-10-28  Bruno Haible  <bruno@clisp.org>
14700
14701         posix_spawn*, getdtablesize: Relax license.
14702         * modules/posix_spawn (License): Change to LGPLv2+.
14703         * modules/posix_spawnp (License): Likewise.
14704         * modules/posix_spawn-internal (License): Likewise.
14705         * modules/posix_spawnattr_init (License): Likewise.
14706         * modules/posix_spawnattr_getflags (License): Likewise.
14707         * modules/posix_spawnattr_setflags (License): Likewise.
14708         * modules/posix_spawnattr_getpgroup (License): Likewise.
14709         * modules/posix_spawnattr_setpgroup (License): Likewise.
14710         * modules/posix_spawnattr_getschedparam (License): Likewise.
14711         * modules/posix_spawnattr_setschedparam (License): Likewise.
14712         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14713         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14714         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14715         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14716         * modules/posix_spawnattr_getsigmask (License): Likewise.
14717         * modules/posix_spawnattr_setsigmask (License): Likewise.
14718         * modules/posix_spawnattr_destroy (License): Likewise.
14719         * modules/posix_spawn_file_actions_init (License): Likewise.
14720         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14721         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14722         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14723         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14724         * modules/getdtablesize (License): Likewise.
14725         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14726
14727 2010-10-26  Bruno Haible  <bruno@clisp.org>
14728
14729         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14730         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14731         Cygwin and mingw.
14732         Suggested by Eric Blake.
14733
14734 2010-10-26  Bruno Haible  <bruno@clisp.org>
14735
14736         stdio: Work around compilation error due to renameat() on Solaris 10.
14737         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14738         * lib/renameat.c: Don't include <unistd.h> here.
14739         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14740         Reported by Paul Eggert and Eric Blake.
14741
14742 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14743
14744         renameat: port to Solaris 10, which declares renameat in unistd.h
14745
14746         * lib/renameat.c: Include unistd.h before stdio.h, because
14747         Solaris 10 declares renameat in unistd.h.  Problem encountered
14748         when building GNU tar 1.24 on Solaris 10.
14749
14750 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14751
14752         fdopendir: fix C89 compilation
14753         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14754         compilers.
14755
14756 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14757
14758         inttostr: simplify by removing unnecessary redundancy
14759         * lib/anytostr.c: Don't include verify.h.
14760         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14761         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14762         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14763         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14764         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14765         Likewise.
14766         * modules/inttostr (Depends-on): Remove 'verify'.
14767
14768 2010-10-23  Bruno Haible  <bruno@clisp.org>
14769
14770         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14771         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14772         Reported by Eric Blake.
14773
14774 2010-10-23  Bruno Haible  <bruno@clisp.org>
14775
14776         Tests: Fix LOCALE_JA on MirBSD 10.
14777         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14778         to an UTF-8 locale.
14779         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14780         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14781         Reported by Eric Blake.
14782
14783 2010-10-21  Bruno Haible  <bruno@clisp.org>
14784
14785         nl_langinfo test: Avoid test failure on NetBSD 5.
14786         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14787         Reported by Eric Blake.
14788
14789 2010-10-21  Eric Blake  <eblake@redhat.com>
14790
14791         c-stack: work around libsigsegv 2.8 bug
14792         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14793         overflow on at least PowerPC64.
14794
14795 2010-10-17  Bruno Haible  <bruno@clisp.org>
14796
14797         userspec: Drop redundant file.
14798         * modules/userspec (Files): Remove lib/inttostr.h.
14799
14800 2010-10-17  Bruno Haible  <bruno@clisp.org>
14801
14802         nl_langinfo tests: Silence some warnings.
14803         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14804         Reported by Jim Meyering.
14805
14806 2010-10-17  Bruno Haible  <bruno@clisp.org>
14807
14808         Make use of GCC's attribute __alloc_size__.
14809         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14810         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14811         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14812         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14813         __alloc_size__.
14814         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14815         Suggested by Jim Meyering.
14816
14817 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14818
14819         bootstrap: anchor .gitignore entries.
14820         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14821         with...
14822         (insert_vc_ignore): ... this new function, which prepends `/' to
14823         all .gitignore entries before passing them to
14824         insert_sorted_if_absent.
14825
14826 2010-10-16  Bruno Haible  <bruno@clisp.org>
14827
14828         nextafter: Fix configure check.
14829         * modules/nextafter (configure.ac): Correct expected prototype.
14830
14831 2010-10-16  Bruno Haible  <bruno@clisp.org>
14832
14833         termios: Update documentation.
14834         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14835
14836 2010-10-16  Bruno Haible  <bruno@clisp.org>
14837
14838         tests: Make them compile with TinyCC.
14839         * tests/test-strstr.c (main): Remove parentheses around array
14840         initializer.
14841
14842 2010-10-15  Eric Blake  <eblake@redhat.com>
14843
14844         ignore-value: make header idempotent
14845         * lib/ignore-value.h: Add double-inclusion guards.
14846         Reported by Stefan Berger.
14847
14848 2010-10-15  Jim Meyering  <meyering@redhat.com>
14849
14850         GNUmakefile: handle "stable" target, not "major"
14851         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14852         lists in maint.mk and announce-gen.  Without this, "make stable"
14853         would fail to ensure that $(VERSION) is up to date.
14854
14855 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14856
14857         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14858         & co.
14859
14860 2010-10-14  Bruno Haible  <bruno@clisp.org>
14861
14862         vasnprintf: Don't set errno to 0.
14863         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14864         block that sets it to 0.
14865         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14866
14867 2010-10-14  Bruno Haible  <bruno@clisp.org>
14868
14869         socketlib: Fix.
14870         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14871         gl_PREREQ_SYS_H_WINSOCK2.
14872         Reported by Ian Beckwith <ianb@erislabs.net>.
14873
14874 2010-10-13  Jim Meyering  <meyering@redhat.com>
14875
14876         test-select-stdin.c: avoid warn_unused_result warnings
14877         * tests/test-select-stdin.c: Include "macros.h".
14878         ASSERT that read and fflush succeed.
14879
14880 2010-10-13  Jim Meyering  <meyering@redhat.com>
14881
14882         git-version-gen: do require git-VC'd files in cwd
14883         * build-aux/git-version-gen: Reject a git version string
14884         if there are no commits associated with the current directory.
14885         This avoids an unlikely false-positive (unrelated dir whose parent
14886         repository also contains a tag matching v*), as pointed out
14887         by Giuseppe Scrivano in
14888         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14889
14890 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14891
14892         argv-iter: omit nonconforming declaration
14893         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14894         enum arg_iter_err declaration, which doesn't conform to C99.
14895         Solaris 10 cc warns about this.
14896
14897 2010-10-13  Eric Blake  <eblake@redhat.com>
14898
14899         termios: fix compilation on mingw
14900         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14901         (gl_TERMIOS_H): Adjust it on mingw.
14902         * modules/termios (Makefile.am): Substitute new key.
14903         * lib/termios.in.h (includes): Make include_next conditional.
14904         * doc/posix-headers/termios.texi (termios.h): Update
14905         documentation.
14906         Reported by Daniel P. Berrange.
14907
14908 2010-10-13  Jim Meyering  <meyering@redhat.com>
14909
14910         git-version-gen: don't require that .git/ be in the current dir
14911         * build-aux/git-version-gen: Adjust this script so that it works
14912         when run from any working directory beneath the top-level .git/-
14913         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14914         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14915
14916         test-select: avoid warn_unused_result warnings
14917         * tests/test-select.c: Include "macros.h".
14918         ASSERT that each call to read, write, and pipe succeeds.
14919         While not technically required, also check each "close".
14920         * modules/select-tests (Files): Add tests/macros.h.
14921
14922         test-symlinkat: remove declaration of unused local
14923         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14924
14925         test-inttostr: avoid shadowing warnings
14926         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14927         and use malloc rather than the stack for the same reason as
14928         mentioned in the comment justifying the other allocation.
14929
14930 2010-10-11  Bruno Haible  <bruno@clisp.org>
14931
14932         stdlib: Allow multiple gnulib generated replacements to coexist.
14933         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14934         Reported by Sam Steingold <sds@gnu.org>.
14935
14936 2010-10-11  Jim Meyering  <meyering@redhat.com>
14937
14938         fix a documentation typo
14939         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14940
14941 2010-10-11  Eric Blake  <eblake@redhat.com>
14942
14943         futimens: work around Solaris 11 bug
14944         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14945         * tests/test-futimens.h (test_futimens): Enhance, rather than
14946         weaken test.
14947         * doc/posix-functions/futimens.texi (futimens): Document the bug.
14948
14949 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
14950
14951         Indentation.
14952         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
14953         higher-level operators more to the left.
14954
14955 2010-10-11  Jim Meyering  <meyering@redhat.com>
14956
14957         test-futimens: avoid unwarranted test failure on Solaris 5.11
14958         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
14959         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
14960         because it tries to dereference the NULL name argument.
14961
14962 2010-10-11  Bruno Haible  <bruno@clisp.org>
14963
14964         Indentation.
14965         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
14966         indentation.
14967
14968 2010-10-11  Jim Meyering  <meyering@redhat.com>
14969
14970         spawn.in.h: make indentation consistent with parentheses
14971         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
14972         Make indentation consistent with parentheses.
14973
14974 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
14975
14976         Fix mismatched parens in previous commit
14977         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
14978         parens.
14979
14980 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14981
14982         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
14983
14984         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
14985         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
14986         * lib/malloca.c: Include "verify.h".
14987         (verify1): Remove, replacing with a verify call.
14988         * lib/relocwrapper.c (verify1): Likewise.
14989         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
14990         Likewise.
14991         * modules/malloca (Depends-on): Add 'verify'.
14992         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
14993         * modules/vasnprintf (Depends-on): Add 'verify'.
14994         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
14995         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
14996         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
14997         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
14998         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
14999         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15000         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15001
15002         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15003
15004         Formerly the style was sometimes 2*X - 1, because the C standard
15005         was wrongly thought to disallow ?: in integral constant expressions.
15006         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15007         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15008         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15009         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15010         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15011         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15012         verify that time_t cannot be floating.
15013
15014 2010-10-08  Eric Blake  <eblake@redhat.com>
15015
15016         time: enforce recent POSIX ruling that time_t is integral
15017         * lib/time.in.h (__time_t_must_be_integral): Detect any
15018         problematic systems, allowing the rest of gnulib to assume POSIX.
15019
15020 2010-10-08  Jim Meyering  <meyering@redhat.com>
15021
15022         fdopendir: fix a bug on systems lacking openat and /proc support
15023         OpenBSD 4.7 is one such system.  The most noticeable effect was
15024         failure of any application making nontrivial use of fts: rm, du,
15025         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15026           ./rm: traversal failed: `a': Bad file descriptor
15027         Debugging that, you see that even though FD 6 was closed just
15028         prior to the opendir call in fd_clone_opendir, its resulting
15029         dir->dd_fd was 8, rather than the expected value of 6:
15030
15031         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15032         93                close (fd);
15033         (gdb) n
15034         94                dir = fd_clone_opendir (dupfd);
15035         (gdb) n
15036         95                saved_errno = errno;
15037         (gdb) p dir->dd_fd
15038         $11 = 8
15039
15040         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15041         The problem is that on OpenBSD, fd_clone_opendir has to resort
15042         to using the old-style save/restore CWD mechanism, due to its
15043         lack of openat/proc support, and *that* would steal the FD (6)
15044         that opendir was supposed to use.
15045
15046         The fix is to squirrel away the desired FD so that save_cwd uses a
15047         different one, and then free the dest FD right before calling opendir.
15048         That guarantees opendir will use the required file descriptor.
15049
15050         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15051
15052 2010-10-08  Bruno Haible  <bruno@clisp.org>
15053
15054         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15055         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15056
15057 2010-10-08  Bruno Haible  <bruno@clisp.org>
15058
15059         nanosleep: Make replacement POSIX compliant.
15060         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15061         is out of range.
15062         Reported by Jim Meyering.
15063
15064 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15065
15066         bootstrap: add hook for altering gnulib.mk, for Bison
15067         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15068         the Bison bootstrapping process can rewrite file names and variables
15069         in this file before later parts of 'bootstrap' use the file.
15070         Bison wants to include lib/gnulib.mk from the top-level makefile,
15071         so it needs the file names in this file to be relative to the top
15072         level, not relative to lib; plus it needs variable names to be
15073         rewritten.
15074         (slurp): Use the new function.
15075
15076         bootstrap: reformat for readability
15077         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15078
15079 2010-10-08  Eric Blake  <eblake@redhat.com>
15080
15081         docs: update cygwin progress
15082         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15083         1.7.7.
15084         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15085         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15086         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15087         * doc/posix-functions/carg.texi (carg): Likewise.
15088         * doc/posix-functions/cargf.texi (cargf): Likewise.
15089         * doc/posix-functions/casin.texi (casin): Likewise.
15090         * doc/posix-functions/casinf.texi (casinf): Likewise.
15091         * doc/posix-functions/casinh.texi (casinh): Likewise.
15092         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15093         * doc/posix-functions/catan.texi (catan): Likewise.
15094         * doc/posix-functions/catanf.texi (catanf): Likewise.
15095         * doc/posix-functions/catanh.texi (catanh): Likewise.
15096         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15097         * doc/posix-functions/ccos.texi (ccos): Likewise.
15098         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15099         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15100         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15101         * doc/posix-functions/cexp.texi (cexp): Likewise.
15102         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15103         * doc/posix-functions/cimag.texi (cimag): Likewise.
15104         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15105         * doc/posix-functions/clog.texi (clog): Likewise.
15106         * doc/posix-functions/clogf.texi (clogf): Likewise.
15107         * doc/posix-functions/conj.texi (conj): Likewise.
15108         * doc/posix-functions/conjf.texi (conjf): Likewise.
15109         * doc/posix-functions/cpow.texi (cpow): Likewise.
15110         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15111         * doc/posix-functions/cproj.texi (cproj): Likewise.
15112         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15113         * doc/posix-functions/creal.texi (creal): Likewise.
15114         * doc/posix-functions/crealf.texi (crealf): Likewise.
15115         * doc/posix-functions/csin.texi (csin): Likewise.
15116         * doc/posix-functions/csinf.texi (csinf): Likewise.
15117         * doc/posix-functions/csinh.texi (csinh): Likewise.
15118         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15119         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15120         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15121         * doc/posix-functions/ctan.texi (ctan): Likewise.
15122         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15123         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15124         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15125         * doc/posix-headers/complex.texi (complex.h): Likewise.
15126
15127 2010-10-07  Jim Meyering  <meyering@redhat.com>
15128
15129         parse-datetime: avoid compilation failure on OpenBSD 4.7
15130         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15131         This works around a compilation failure on OpenBSD 4.7:
15132         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15133
15134 2010-10-07  Eric Blake  <eblake@redhat.com>
15135
15136         docs: update cygwin progress
15137         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15138         1.7.6.
15139         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15140         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15141         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15142         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15143         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15144         Likewise.
15145         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15146         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15147         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15148         Likewise.
15149         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15150         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15151         Likewise.
15152         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15153         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15154         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15155         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15156         Likewise.
15157         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15158         Likewise.
15159         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15160
15161         docs: update parse-datetime history
15162         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15163         documentation of this function's history and alternatives.
15164
15165         cygwin: use more robust version check
15166         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15167         exclude an eventual cygwin 1.9.1.
15168         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15169         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15170         (gl_FUNC_STRCASESTR): Likewise.
15171         Reported by Bruno Haible.
15172
15173 2010-10-06  Bruno Haible  <bruno@clisp.org>
15174
15175         string, sys_select: Avoid #including large headers unless necessary.
15176         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15177         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15178         OSF/1, BeOS, Haiku.
15179         Reported by Jim Meyering.
15180
15181 2010-10-05  Eric Blake  <eblake@redhat.com>
15182
15183         memmem, strstr, strcasestr: fix bug with long periodic needle
15184         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15185         periodic needle having false positive.
15186         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15187         and cygwin 1.7.7.
15188         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15190         (gl_FUNC_STRCASESTR): Likewise.
15191         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15192         * tests/test-memmem.c (main): Expose the bug.
15193         * tests/test-strcasestr.c (main): Likewise.
15194         * tests/test-strstr.c (main): Likewise.
15195         * tests/test-c-strcasestr.c (main): Likewise.
15196         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15197         * doc/posix-functions/strstr.texi (strstr): Likewise.
15198         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15199         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15200
15201 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15202
15203         parse-datetime: do some more renaming
15204         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15205         parse_datetime, not get_date.  Mention the renaming.
15206         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15207         in comments.
15208         * m4/bison.m4: Likewise.
15209
15210 2010-10-05  Eric Blake  <eblake@redhat.com>
15211
15212         parse-datetime: better name than get_date
15213         * NEWS: Reword the deprecation notice.
15214         * modules/get_date: Rename to modules/parse-datetime.
15215         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15216         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15217         * lib/get_date.y: Rename to lib/parse-datetime.y.
15218         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15219         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15220         * doc/getdate.texi: Provide fallback wrapper.
15221         * lib/getdate.h: Move guts, and wrap...
15222         * lib/parse-datetime.h: ...new file.
15223         * lib/parse-datetime.y (get_date): Rename...
15224         (parse_datetime): ...to this.
15225         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15226         (gl_PARSE_DATETIME): ...to this.
15227         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15228         documentation.
15229         * modules/getdate (Files): Provide fallback docs and header.
15230         (Notice, Depends-on): Update references.
15231         * tests/test-parse-datetime.c: Likewise.
15232         * DEPENDENCIES: Likewise.
15233         * MODULES.html.sh (Date and time <time.h>): Likewise.
15234         * doc/parse-datetime.texi (Date input formats)
15235         (Authors of parse_datetime): Likewise.
15236         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15237         (Include): Likewise.
15238         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15239         * gnulib-tool: Likewise.
15240         * m4/bison.m4 (gl_BISON): Likewise.
15241         Suggested by Bruno Haible.
15242
15243 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15244
15245         more ports to Solaris tr, which needs [] around ranges
15246         * gnulib-tool: Solaris tr needs [] around ranges.
15247         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15248         * tests/test-pipe-filter-gi1.c (main): Likewise.
15249         * tests/test-pipe-filter-ii1.c (main): Likewise.
15250
15251 2010-10-05  Eric Blake  <eblake@redhat.com>
15252
15253         bootstrap: fix Solaris regression
15254         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15255         around ranges.
15256         Reported by Pádraig Brady.
15257
15258         bootstrap: work with pkg-config
15259         * build-aux/bootstrap (check_versions): Also transliterate - in
15260         prerequisite name.
15261         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15262         prerequisites that were already found, to avoid confusion.
15263         Reported by Justin Clift.
15264
15265         faccessat: remove unused wrappers
15266         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15267         presence of these wrappers dragged in -lgen on Solaris.
15268         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15269
15270 2010-10-05  Jim Meyering  <meyering@redhat.com>
15271
15272         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15273         * Makefile (sc_pragma_columns): New syntax-check rule.
15274
15275 2010-10-04  Bruno Haible  <bruno@clisp.org>
15276
15277         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15278         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15279         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15280         Reported by Bruce Korb and Eric Blake.
15281
15282 2010-10-04  Bruno Haible  <bruno@clisp.org>
15283
15284         threadlib: Make option --with-libpth-prefix work.
15285         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15286         use $LIBPTH, not just -lpth.
15287
15288 2010-10-04  Bruno Haible  <bruno@clisp.org>
15289
15290         Avoid line length limitation from HP NonStop system header files.
15291         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15292         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15293         * lib/ctype.in.h: Likewise.
15294         * lib/dirent.in.h: Likewise.
15295         * lib/errno.in.h: Likewise.
15296         * lib/fcntl.in.h: Likewise.
15297         * lib/float.in.h: Likewise.
15298         * lib/getopt.in.h: Likewise.
15299         * lib/iconv.in.h: Likewise.
15300         * lib/inttypes.in.h: Likewise.
15301         * lib/langinfo.in.h: Likewise.
15302         * lib/locale.in.h: Likewise.
15303         * lib/math.in.h: Likewise.
15304         * lib/netdb.in.h: Likewise.
15305         * lib/netinet_in.in.h: Likewise.
15306         * lib/poll.in.h: Likewise.
15307         * lib/pthread.in.h: Likewise.
15308         * lib/pty.in.h: Likewise.
15309         * lib/sched.in.h: Likewise.
15310         * lib/se-selinux.in.h: Likewise.
15311         * lib/search.in.h: Likewise.
15312         * lib/signal.in.h: Likewise.
15313         * lib/spawn.in.h: Likewise.
15314         * lib/stdarg.in.h: Likewise.
15315         * lib/stddef.in.h: Likewise.
15316         * lib/stdint.in.h: Likewise.
15317         * lib/stdio.in.h: Likewise.
15318         * lib/stdlib.in.h: Likewise.
15319         * lib/string.in.h: Likewise.
15320         * lib/strings.in.h: Likewise.
15321         * lib/sys_file.in.h: Likewise.
15322         * lib/sys_ioctl.in.h: Likewise.
15323         * lib/sys_select.in.h: Likewise.
15324         * lib/sys_socket.in.h: Likewise.
15325         * lib/sys_stat.in.h: Likewise.
15326         * lib/sys_time.in.h: Likewise.
15327         * lib/sys_times.in.h: Likewise.
15328         * lib/sys_utsname.in.h: Likewise.
15329         * lib/sys_wait.in.h: Likewise.
15330         * lib/sysexits.in.h: Likewise.
15331         * lib/termios.in.h: Likewise.
15332         * lib/time.in.h: Likewise.
15333         * lib/unistd.in.h: Likewise.
15334         * lib/wchar.in.h: Likewise.
15335         * lib/wctype.in.h: Likewise.
15336         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15337         * modules/ctype (Makefile.am): Likewise.
15338         * modules/dirent (Makefile.am): Likewise.
15339         * modules/errno (Makefile.am): Likewise.
15340         * modules/fcntl-h (Makefile.am): Likewise.
15341         * modules/float (Makefile.am): Likewise.
15342         * modules/getopt-posix (Makefile.am): Likewise.
15343         * modules/iconv-h (Makefile.am): Likewise.
15344         * modules/inttypes (Makefile.am): Likewise.
15345         * modules/langinfo (Makefile.am): Likewise.
15346         * modules/locale (Makefile.am): Likewise.
15347         * modules/math (Makefile.am): Likewise.
15348         * modules/netdb (Makefile.am): Likewise.
15349         * modules/netinet_in (Makefile.am): Likewise.
15350         * modules/poll-h (Makefile.am): Likewise.
15351         * modules/pthread (Makefile.am): Likewise.
15352         * modules/pty (Makefile.am): Likewise.
15353         * modules/sched (Makefile.am): Likewise.
15354         * modules/search (Makefile.am): Likewise.
15355         * modules/selinux-h (Makefile.am): Likewise.
15356         * modules/signal (Makefile.am): Likewise.
15357         * modules/spawn (Makefile.am): Likewise.
15358         * modules/stdarg (Makefile.am): Likewise.
15359         * modules/stddef (Makefile.am): Likewise.
15360         * modules/stdint (Makefile.am): Likewise.
15361         * modules/stdio (Makefile.am): Likewise.
15362         * modules/stdlib (Makefile.am): Likewise.
15363         * modules/string (Makefile.am): Likewise.
15364         * modules/strings (Makefile.am): Likewise.
15365         * modules/sys_file (Makefile.am): Likewise.
15366         * modules/sys_ioctl (Makefile.am): Likewise.
15367         * modules/sys_select (Makefile.am): Likewise.
15368         * modules/sys_socket (Makefile.am): Likewise.
15369         * modules/sys_stat (Makefile.am): Likewise.
15370         * modules/sys_time (Makefile.am): Likewise.
15371         * modules/sys_times (Makefile.am): Likewise.
15372         * modules/sys_utsname (Makefile.am): Likewise.
15373         * modules/sys_wait (Makefile.am): Likewise.
15374         * modules/sysexits (Makefile.am): Likewise.
15375         * modules/termios (Makefile.am): Likewise.
15376         * modules/time (Makefile.am): Likewise.
15377         * modules/unistd (Makefile.am): Likewise.
15378         * modules/wchar (Makefile.am): Likewise.
15379         * modules/wctype (Makefile.am): Likewise.
15380
15381 2010-10-04  Bruno Haible  <bruno@clisp.org>
15382
15383         read-file tests: Avoid a test failure on NonStop Kernel.
15384         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15385         a regular file.
15386         Reported by Joachim Schmitz <schmitz@hp.com>.
15387
15388 2010-10-03  Bruno Haible  <bruno@clisp.org>
15389
15390         gnulib-tool: Fixes for --create-testdir with --libtool.
15391         * gnulib-tool (func_get_automake_snippet): Don't augment
15392         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15393         an executable.
15394         (func_create_testdir): Handle module 'alloca' like func_import.
15395         Reported by Bruce Korb <bruce.korb@gmail.com>.
15396
15397 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15398
15399         Avoid some lines longer than 80 characters.
15400         * lib/stdint.in.h: Break long comment lines.
15401         * lib/math.in.h: Likewise.
15402         (_GL_NUM_UINT_WORDS): New macro, for readability.
15403         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15404         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15405         * lib/stdlib.in.h: Likewise.
15406         * lib/spawn.in.h: Likewise.
15407         * lib/sys_socket.in.h: Update an URL.
15408         * lib/sys_stat.in.h: Break long line.
15409
15410 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15411
15412         Improve pmccabe2html.
15413         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15414         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15415         when the sources change. Remove the line in the HTML about "Used
15416         ranges" (which implied that there might be other unused ranges),
15417         rename "Resume" to "Summary" (easier to understand for more users).
15418         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15419         styles, and some unnecessary blank lines.
15420
15421 2010-10-03  Bruno Haible  <bruno@clisp.org>
15422             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15423
15424         acl: Add support for ACLs on NonStop Kernel.
15425         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15426         Check whether the function aclsort() exists.
15427         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15428         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15429         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15430         (acl_nontrivial [HAVE_ACLSORT]: New function.
15431         (file_has_acl): Implement for NonStop Kernel.
15432         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15433         (qset_acl): Implement for NonStop Kernel.
15434         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15435         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15436         (main): Implement for NonStop Kernel.
15437         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15438         Kernel. Handle this flavor.
15439         * tests/test-set-mode-acl.sh: Likewise.
15440         * tests/test-copy-acl.sh: Likewise.
15441         * tests/test-copy-file.sh: Likewise.
15442
15443 2010-10-03  Bruno Haible  <bruno@clisp.org>
15444
15445         Info about ACLs on NonStop Kernel.
15446         * doc/acl-resources.txt: Add info about NonStop Kernel.
15447         References by Joachim Schmitz <schmitz@hp.com>.
15448
15449 2010-10-02  Bruno Haible  <bruno@clisp.org>
15450
15451         Define missing EDQUOT on NonStop Kernel.
15452         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15453         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15455         missing.
15456         * doc/posix-headers/errno.texi: Mention the NSK bug.
15457         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15458         Reported by Joachim Schmitz <schmitz@hp.com>.
15459
15460 2010-10-02  Bruno Haible  <bruno@clisp.org>
15461
15462         Update doc for POSIX:2008.
15463         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15464         Update URL of POSIX specification.
15465
15466 2010-10-02  Bruno Haible  <bruno@clisp.org>
15467
15468         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15469         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15470         from gnulib, not from Automake.
15471
15472 2010-10-02  Bruno Haible  <bruno@clisp.org>
15473
15474         New module 'system-posix'.
15475         * modules/system-posix: New file.
15476         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15477         module is present.
15478         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15479         GNULIB_SYSTEM_POSIX.
15480         * modules/stdlib (Depends-on): Remove sys_wait.
15481         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15482         * doc/posix-functions/system.texi: Mention the new module.
15483         * doc/posix-headers/stdlib.texi: Likewise.
15484         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15485         define test_sys_wait_macros to a no-op.
15486         Reported by Sam Steingold <sds@gnu.org>.
15487
15488 2010-09-30  Bruno Haible  <bruno@clisp.org>
15489
15490         More renaming from 'getdate' to 'get_date'.
15491         * doc/get_date.texi: Renamed from doc/getdate.texi.
15492         * modules/get_date (Files): Update.
15493         * MODULES.html.sh (Date and time <time.h>): Update.
15494         * DEPENDENCIES: Update.
15495         * gnulib-tool: Update comment.
15496         * m4/bison.m4 (gl_BISON): Likewise.
15497         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15498
15499 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15500
15501         bootstrap: support ACLOCAL_FLAGS during aclocal
15502         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15503         can add additional -I dir for third-party .m4 files.
15504
15505 2010-09-30  Eric Blake  <eblake@redhat.com>
15506
15507         bootstrap: use glibtoolize on MacOS
15508         * build-aux/bootstrap (check_versions): Convert libtool into
15509         libtoolize.
15510         (tool search): Move libtool check earlier, and look for
15511         glibtoolize for MacOS.
15512         (gnulib_tool_options): Auto-add --libtool when appropriate.
15513         Reported by Justin Clift.
15514
15515         poll: fix typo that broke test on MacOS
15516         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15517         Reported by Justin Clift.
15518
15519         getdate: rename to get_date
15520         Note: getdate.h is not renamed, to minimize client impact.
15521         * modules/getdate: Mark obsolete.  Move old contents...
15522         * modules/get_date: ...to new module name.
15523         * modules/getdate-tests: Move...
15524         * modules/get_date-tests: ...here.
15525         * m4/getdate.m4: Move...
15526         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15527         * lib/getdate.y: Move...
15528         * lib/get_date.y: ...here.
15529         * tests/test-getdate.c: Move...
15530         * tests/test-get_date.c: ...here.
15531         * doc/posix-functions/getdate.texi (getdate): Update name.
15532         * NEWS: Mention the change.
15533
15534 2010-09-29  Bruno Haible  <bruno@clisp.org>
15535
15536         Separate the module 'waitpid' from the module 'sys_wait'.
15537         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15538         present.
15539         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15540         gl_MODULE_INDICATOR_FOR_TESTS.
15541         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15542         * modules/sys_wait (Depends-on): Remove waitpid.
15543         (Makefile.am): Substitute GNULIB_WAITPID.
15544         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15545         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15546         signature only if the 'waitpid' module is present.
15547         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15548         * NEWS: Mention the change.
15549         * modules/grantpt (Depends-on): Add waitpid.
15550         * modules/wait-process (Depends-on): Likewise.
15551
15552 2010-09-29  Bruno Haible  <bruno@clisp.org>
15553
15554         More tests for module 'sys_wait'.
15555         * modules/sys_wait-c++-tests: New file.
15556         * tests/test-sys_wait-c++.cc: New file.
15557         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15558         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15559
15560 2010-09-29  Bruno Haible  <bruno@clisp.org>
15561
15562         New module 'waitpid'.
15563         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15564         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15565         Don't include <process.h>.
15566         (waitpid): Declare only, using modern idiom.
15567         * m4/waitpid.m4: New file.
15568         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15569         * modules/waitpid: New file.
15570         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15571         (Makefile.am): Update.
15572         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15573
15574 2010-09-28  Bruno Haible  <bruno@clisp.org>
15575
15576         poll: Assume ANSI C.
15577         * lib/poll.c (poll): Use an ANSI C declaration.
15578
15579 2010-09-28  Bruno Haible  <bruno@clisp.org>
15580
15581         poll-h: Create poll.h on all platforms.
15582         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15583         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15584         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15585         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15586         (gl_REPLACE_POLL_H): Don't set POLL_H.
15587         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15588         * modules/poll-h (Depends-on): Add include_next.
15589         (Makefile.am): Create poll.h unconditionally. Substitute also
15590         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15591
15592 2010-09-28  Bruno Haible  <bruno@clisp.org>
15593
15594         Tests for module 'poll-h'.
15595         * modules/poll-h-c++-tests: New file.
15596         * tests/test-poll-h-c++.cc: New file.
15597
15598         Tests for module 'poll-h'.
15599         * modules/poll-h-tests: New file.
15600         * tests/test-poll-h.c: New file.
15601
15602 2010-09-28  Bruno Haible  <bruno@clisp.org>
15603
15604         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15605         * modules/poll-h (Depends-on): Add 'extensions'.
15606
15607 2010-09-28  Bruno Haible  <bruno@clisp.org>
15608
15609         New module 'poll-h'.
15610         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15611         (poll): Use modern idiom.
15612         * modules/poll-h: New file.
15613         * modules/poll (Files): Remove lib/poll.in.h.
15614         (Depends-on): Add poll-h.
15615         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15616         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15617         * m4/poll_h.m4: New file.
15618         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15619         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15620         and invoke gl_REPLACE_POLL_H.
15621         * lib/poll.c: Use common idiom.
15622         * tests/test-poll.c: Likewise.
15623         * doc/posix-headers/poll.texi: Mention the poll-h module.
15624         Suggested by Eric Blake.
15625
15626 2010-09-26  Bruno Haible  <bruno@clisp.org>
15627
15628         sys_wait: Implement WSTOPSIG.
15629         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15630         Reported by Simon Josefsson.
15631
15632 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15633
15634         stdlib, sys_wait: Avoid compilation error on mingw.
15635         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15636
15637 2010-09-26  Bruno Haible  <bruno@clisp.org>
15638
15639         stdlib tests: Avoid code duplication.
15640         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15641         * modules/sys_wait-tests (Files): Likewise.
15642         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15643         * tests/test-stdlib.c: Include test-sys_wait.h.
15644         (main): Invoke test_sys_wait_macros.
15645         * tests/test-sys_wait.c: Include test-sys_wait.h.
15646         (main): Invoke test_sys_wait_macros.
15647
15648 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15649
15650         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15651         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15652         sure Windows sockets are working before calling getaddrinfo.
15653         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15654         * doc/gnulib.texi (Windows sockets): Fix typo.
15655
15656 2010-09-25  Bruno Haible  <bruno@clisp.org>
15657
15658         Tests for module 'regex-quote'.
15659         * modules/regex-quote-tests: New file.
15660         * tests/test-regex-quote.c: New file.
15661
15662         New module 'regex-quote'.
15663         * lib/regex-quote.h: New file.
15664         * lib/regex-quote.c: New file.
15665         * modules/regex-quote: New file.
15666         Suggested by Reuben Thomas <rrt@sc3d.org>.
15667
15668 2010-09-24  Bruno Haible  <bruno@clisp.org>
15669
15670         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15671         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15672
15673 2010-09-23  Bruno Haible  <bruno@clisp.org>
15674
15675         setenv: Relax license.
15676         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15677         Blake.
15678         Requested by Eric Blake.
15679
15680 2010-09-22  Bruno Haible  <bruno@clisp.org>
15681
15682         termios: Relax license.
15683         * modules/termios (License): Change to LGPLv2+.
15684         Requested by Eric Blake.
15685
15686 2010-09-22  Bruno Haible  <bruno@clisp.org>
15687
15688         threadlib: Allow the package to change the default to 'no'.
15689         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15690         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15691         Reported by Paul Eggert.
15692
15693 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15694             Bruno Haible  <bruno@clisp.org>
15695
15696         Fix endless loop in mbmemcasecoll.
15697         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15698         byte.
15699         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15700
15701 2010-09-22  Bruno Haible  <bruno@clisp.org>
15702
15703         Tests for module 'memcoll'.
15704         * modules/memcoll-tests: New file.
15705         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15706
15707         memcoll, xmemcoll: Clarify size vs. length.
15708         * modules/memcoll.c (memcoll0): Clarify specification.
15709         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15710         passed to collate_error.
15711
15712 2010-09-22  Bruno Haible  <bruno@clisp.org>
15713
15714         Tests for module 'memcasecmp'.
15715         * modules/memcasecmp-tests: New file.
15716         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15717
15718 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15719
15720         * lib/pthread.in.h: Add split double-inclusion guard, and include
15721         system <pthread.h> if there is one.  Use @@-style as in other
15722         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15723         pthread.h doesn't.
15724         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15725         (pthread_mutexattr_settype, pthread_mutex_trylock):
15726         New static inline functions, if there's no system <pthread.h>.
15727         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15728         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15729         Approximate with mutexes if the system lacks spinlocks, as in
15730         MacOS.
15731         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15732         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15733         @@-style.  Check for spinlocks separately.
15734         (gl_PTHREAD_DEFAULTS): New macro.
15735         * modules/pthread: Redo to use a more typical style for in.h files.
15736
15737 2010-09-21  Eric Blake  <eblake@redhat.com>
15738
15739         net_if: enhance tests
15740         * tests/test-net_if.c (main): Move signature checks earlier.
15741         Print failures to stderr.
15742         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15743         Document the bug that we do not yet fix.
15744
15745 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15746
15747         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15748         about gnulib, not GSS.
15749
15750 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15751
15752         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15753         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15754         for Emacs.
15755         * build-aux/pmccabe2html: Make Makefile.am example code more
15756         cut-and-paste friendly.
15757
15758 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15759
15760         * tests/test-net_if.c: New file.
15761         * modules/net_if-tests: New file.
15762
15763 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15764
15765         pthread: add pthread_spin_destroy
15766         * lib/pthread.in.h (pthread_spin_destroy): New function.
15767
15768 2010-09-19  Bruno Haible  <bruno@clisp.org>
15769
15770         gnulib-tool: Fix --help output.
15771         * gnulib-tool (func_usage): Fix help message.
15772         Reported by Reuben Thomas <rrt@sc3d.org>.
15773
15774 2010-09-18  Jim Meyering  <meyering@redhat.com>
15775
15776         maint.mk: avoid unexpanded \n in two diagnostics
15777         * top/maint.mk (sc_prohibit_always_true_header_tests):
15778         Don't use a literal \n in a halt=... assignment.  It would not be
15779         expanded, and the two \n bytes would appear in the diagnostic output
15780         rather than the desired newline.  Use halt=$$(printf ... instead.
15781         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15782
15783 2010-09-18  Bruno Haible  <bruno@clisp.org>
15784
15785         netinet_in: Doc tweak.
15786         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15787         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15788
15789 2010-09-18  Jim Meyering  <meyering@redhat.com>
15790
15791         init.sh: correct an outdated comment
15792         * tests/init.sh (create_exe_shims_):  s/function/alias/
15793
15794         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15795         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15796         a file named "*.exe" is removed between the glob expansion and the
15797         processing of that oddly named file.
15798
15799 2010-09-17  Eric Blake  <eblake@redhat.com>
15800
15801         mirbsd: add some more support
15802         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15803         in BSD family.
15804         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15805         devices as OpenBSD.
15806         * m4/host-os.m4 (mirbsd): Add MirBSD.
15807
15808         tests: fix unportable assumption on sys/wait.h
15809         * tests/test-sys_wait.c (main): Relax test.
15810         * tests/test-stdlib.c (main): Likewise.
15811
15812         init.sh: accomodate directory with no .exes
15813         * tests/init.sh: Accomodate directory containing only scripts.
15814
15815         tests: avoid compiler warning
15816         * tests/test-stdlib.c (main): Use the variable.
15817
15818         fdutimens, fdutimensat: update signature, again
15819         * lib/utimens.h (gl_futimens): Delete, and move signature...
15820         (fdutimens): ...here.
15821         (fdutimensat): Rearrange signature.
15822         (lutimensat): Rename variable for clarity.
15823         * lib/fdutimensat.c (fdutimensat): Update signature.
15824         * lib/utimens.c (fdutimens): Likewise.
15825         (gl_futimens): Delete.
15826         (utimens, lutimens): Update callers.
15827         * lib/futimens.c (futimens): Likewise.
15828         * tests/test-fdutimensat.c: Likewise.
15829         * tests/test-utimens.c: Likewise.
15830         * tests/test-futimens.h: Update comment.
15831         * NEWS: Mention this.
15832         Suggested by Paul Eggert.
15833
15834 2010-09-17  Bruno Haible  <bruno@clisp.org>
15835
15836         Take over the maintenance of some older macros from Autoconf.
15837         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15838         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15839         GNU Autoconf.
15840         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15841         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15842
15843 2010-09-17  Eric Blake  <eblake@redhat.com>
15844
15845         fdutimensat: drop atflag validation
15846         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15847         with valid fd, to close a race scenario where futimens is
15848         unsupported and FILE was replaced by a symlink.
15849         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15850         accordingly.
15851         Suggested by Paul Eggert.
15852
15853 2010-09-16  Bruno Haible  <bruno@clisp.org>
15854
15855         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15856         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15857
15858 2010-09-16  Bruno Haible  <bruno@clisp.org>
15859
15860         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15861         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15862         login_tty exists.
15863         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15864
15865 2010-09-16  Bruno Haible  <bruno@clisp.org>
15866
15867         login_tty: Make the replacement code work on BSD systems.
15868         * lib/login_tty.c: Include <sys/ioctl.h>.
15869         (login_tty): Use ioctl TIOCSCTTY when available.
15870         * modules/login_tty (Depends-on): Add sys_ioctl.
15871         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15872
15873 2010-09-16  Bruno Haible  <bruno@clisp.org>
15874
15875         login_tty: Stricter unit test.
15876         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15877         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15878         and tcgetsid() after login_tty.
15879         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15880
15881 2010-09-16  Bruno Haible  <bruno@clisp.org>
15882
15883         New module 'tcgetsid'.
15884         * lib/tcgetsid.c: New file.
15885         * m4/tcgetsid.m4: New file.
15886         * modules/tcgetsid: New file.
15887         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15888         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15889         GNULIB_TCGETSID, HAVE_TCGETSID.
15890         * lib/termios.in.h: Include <sys/types.h>.
15891         (tcgetsid): New declaration.
15892         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15893         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15894         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15895         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15896
15897 2010-09-16  Bruno Haible  <bruno@clisp.org>
15898
15899         Tests for module 'termios'.
15900         * modules/termios-c++-tests: New file.
15901         * modules/termios-tests: New file.
15902         * tests/test-termios-c++.cc: New file.
15903         * tests/test-termios.c: New file.
15904
15905         New module 'termios'.
15906         * modules/termios: New file.
15907         * lib/termios.in.h: New file.
15908         * m4/termios_h.m4: New file.
15909         * doc/posix-headers/termios.texi: Mention the new module.
15910
15911 2010-09-16  Eric Blake  <eblake@redhat.com>
15912
15913         fdutimensat: add an atflag parameter
15914         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15915         * lib/utimens.h (fdutimensat): Update prototype.
15916         * tests/test-fdutimensat.c: Adjust test to match.
15917         * NEWS: Document the change.
15918         Suggested by Paul Eggert.
15919
15920 2010-09-16  Bruno Haible  <bruno@clisp.org>
15921
15922         Fix typos in comments.
15923         * lib/striconveh.h: Fix typo in comment.
15924         * lib/login_tty.c (login_tty): Likewise.
15925
15926 2010-09-15  Bruno Haible  <bruno@clisp.org>
15927
15928         stdlib: clarify MirBSD WEXITSTATUS bug
15929         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15930         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15931
15932 2010-09-15  Eric Blake  <eblake@redhat.com>
15933
15934         stdlib: work around MirBSD WEXITSTATUS bug
15935         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15936         * modules/stdlib (Depends-on): Add sys_wait.
15937         * tests/test-sys_wait.c (main): Enhance test.
15938         * tests/test-stdlib.c (main): Likewise.
15939         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15940
15941         docs: mention MacOS issue with WEXITSTATUS(constant)
15942         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15943         issue.
15944         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15945
15946         strnlen: add tests
15947         * modules/strnlen-tests: New file.
15948         * tests/test-strnlen.c: Likewise.
15949
15950 2010-09-14  Bruno Haible  <bruno@clisp.org>
15951
15952         unistr/base: Avoid link errors when module 'libunistring' is also used.
15953         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
15954         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
15955         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
15956         Declare also when HAVE_LIBUNISTRING is set.
15957         Reported by Pádraig Brady <P@draigbrady.com>.
15958
15959 2010-09-14  Eric Blake  <eblake@redhat.com>
15960
15961         test-rawmemchr: make more robust
15962         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
15963         (Depends-on, configure.ac): Add needed prerequisites to use it.
15964         * modules/memchr-tests (Files, Depends-on, configure.ac):
15965         Likewise, to avoid implicit reliance on memchr module prereqs.
15966         * tests/test-memchr.c (main): Ensure proper masking.
15967         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
15968         reads.
15969
15970         memchr: detect glibc Alpha bug
15971         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
15972         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
15973         Alpha.
15974         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
15975         * tests/test-memchr.c (main): Enhance test.
15976         Reported by Nelson H. F. Beebe.
15977
15978 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
15979
15980         fts, getcwd, glob: audit for dirfd returning -1
15981         * lib/fts.c (opendir): Remove #define; no longer used.
15982         (opendirat): New arg PDIR_FD.  All callers changed.
15983         (fts_build, _opendir2): Use new opendirat to avoid the need for
15984         dirfd, or for checking whether dirfd returns a negative value.
15985         Don't use opendir; always use openat followed by fdopendir.
15986         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
15987         it.
15988         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
15989         returns -1 here.
15990         * modules/fts (Depends-on): Remove dirfd.
15991         * modules/getcwd (Depends-on): Likewise.
15992
15993 2010-09-13  Eric Blake  <eblake@redhat.com>
15994
15995         float: fix broken MirBSD header
15996         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
15997         * doc/posix-headers/float.texi (float.h): Document it.
15998
15999 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16000
16001         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16002         * lib/fts.c (opendirat): New arg extra_flags.
16003         (__opendir2): Use it to avoid following symlinks when opening
16004         a directory, if symlinks are not supposed to be followed.  See
16005         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16006
16007         fdopendir: preserve argument fd before returning
16008         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16009         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16010         (fdopendir): Use them, arranging for FD to be open to the same
16011         directory that it was when it started.  (It might be temporarily
16012         closed while fdopendir is running, so this not thread- or
16013         signal-safe.)  Be careful to do the right thing even when file
16014         descriptors are scarce and dup fails with errno == EMFILE.  See
16015         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16016
16017 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16018
16019         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16020         * NEWS: Document change.
16021         * m4/regex.m4: Disable test for regoff_t size.
16022
16023 2010-09-13  Jim Meyering  <meyering@redhat.com>
16024
16025         fts: don't operate on an invalid file descriptor after failed dup
16026         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16027         negative file descriptor.
16028
16029 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16030
16031         savedir: add streamsavedir, deprecate fdsavedir
16032         * NEWS: Mention deprecation of fdsavedir.
16033         * lib/savedir.c (streamsavedir): New extern function, whose name
16034         ends in "savedir" to be consistent with the others.  This differs
16035         from savedirstream in that it doesn't close its argument.  The
16036         next version of GNU tar will use this instead of fdsavedir, to
16037         avoid some race conditions and conserve file descriptors.
16038         (savedirstream): Reimplement as a wrapper around streamsavedir.
16039         (fdsavedir): Add a comment deprecating this function.  As far as
16040         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16041         * lib/savedir.h (streamsavedir): New decl.
16042         (fdsavedir): Add a comment deprecating this.
16043
16044 2010-09-10  Bruno Haible  <bruno@clisp.org>
16045
16046         langinfo: Fix last commit.
16047         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16048         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16049         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16050
16051 2010-09-10  Bruno Haible  <bruno@clisp.org>
16052
16053         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16054         * lib/progreloc.c (O_EXEC): Define fallback.
16055
16056 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16057
16058         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16059         * NEWS: Document recent changes to fcntl-h.
16060         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16061         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16062         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16063         Similarly for O_SEARCH; this last was already true, but not documented.
16064         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16065         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16066         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16067         Likewise.
16068         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16069         is zero, not whether it is defined.
16070         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16071         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16072         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16073
16074 2010-09-10  Bruno Haible  <bruno@clisp.org>
16075
16076         langinfo, nl_langinfo: Fix for IRIX 5.3.
16077         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16078         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16079         HAVE_LANGINFO_YESEXPR.
16080         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16081         HAVE_LANGINFO_YESEXPR.
16082         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16083         HAVE_LANGINFO_T_FMT_AMPM is 0.
16084         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16085         HAVE_LANGINFO_YESEXPR is 0.
16086         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16087         NOEXPR.
16088         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16089         * doc/posix-functions/nl_langinfo.texi: Likewise.
16090         Reported by Eric Blake.
16091
16092 2010-09-10  Bruno Haible  <bruno@clisp.org>
16093
16094         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16095         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16096         on FreeBSD 8.0 and OpenBSD 4.6.
16097         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16098         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16099         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16100         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16101         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16102         ac_includes_default.
16103         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16104
16105 2010-09-09  Eric Blake  <eblake@redhat.com>
16106
16107         strsignal: work around NetBSD bug
16108         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16109         * lib/string.in.h (includes): Likewise.
16110         * doc/posix-functions/strsignal.texi (strsignal): Document the
16111         bug.
16112         Reported by Nelson H. F. Beebe.
16113
16114         gnulib-tool: work with NetBSD /bin/sh
16115         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16116         (func_get_description, func_get_comment, func_get_status)
16117         (func_get_notice, func_get_applicability, func_get_filelist)
16118         (func_get_dependencies, func_get_autoconf_early_snippet)
16119         (func_get_autoconf_snippet, func_get_automake_snippet)
16120         (func_get_include_directive, func_get_link_directive)
16121         (func_get_license, func_get_maintainer, func_import): Avoid
16122         shell syntax errors from parsing syntax extensions.
16123
16124 2010-09-09  Bruno Haible  <bruno@clisp.org>
16125
16126         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16127         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16128         a reliable way to determine whether the 'alias' command works.
16129
16130 2010-09-08  Jim Meyering  <meyering@redhat.com>
16131
16132         init.sh: penalize a set-x-impaired shell; don't disqualify it
16133         * tests/init.sh: Too many shells corrupt application stderr when
16134         you set -x, so we can't afford to disqualify them, since at least
16135         on Irix-6.5, that would disqualify all bourne shells.
16136         Instead, use a two-pass approach.
16137         On the first pass, try to find a shell that meets the stricter
16138         condition that set -x does not corrupt stderr.
16139         If no shell meets the stricter condition, retest each candidate
16140         shell, but without that extra condition.  Finally, when
16141         VERBOSE=yes is requested and set -x might cause trouble, simply
16142         issue a warning and refrain from enabling debug output.
16143
16144 2010-09-08  Eric Blake  <eblake@redhat.com>
16145
16146         unsetenv: fix OpenBSD bug
16147         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16148         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16149         documentation.
16150         Reported by Jim Meyering.
16151
16152         strtod: work around IRIX 6.5 bug
16153         * lib/strtod.c (strtod): Reparse number on shorter string if
16154         exponent parse was invalid.
16155         * tests/test-strtod.c (main): Add check for "0x1p 2".
16156         Reported by Tom G. Christensen.
16157
16158         getopt: optimize previous patch
16159         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16160         empty variable.  Speed up awk script.
16161         Reported by Paolo Bonzini.
16162
16163 2010-09-08  Jim Meyering  <meyering@redhat.com>
16164
16165         test.sh: disqualify shells for which set -x corrupts stderr
16166         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16167         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16168         appear in stderr output.  For example, this command:
16169             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16170         prints "P=1" on those two systems:
16171
16172 2010-09-08  Bruno Haible  <bruno@clisp.org>
16173
16174         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16175         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16176         commands, because some shells ignore redirections when there is an
16177         error in the command lookup.
16178         Reported by Eric Blake.
16179
16180 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16181
16182         * lib/regex.h: Fix a mention of `regex_compile' (should be
16183         `re_compile_pattern').
16184         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16185         (re_set_registers): Correct name of parameter in comment.
16186
16187         * doc/regex.texi: Add documentation for missing syntax flags.
16188         Remove commented-out documentation of defunct syntax option
16189         RE_NO_EMPTY_ALTS.
16190         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16191         Add documentation of re_set_registers.
16192         Document trick to re-use a pattern buffer by setting fastmap manually.
16193         Update documentation of struct re_pattern_buffer per public members.
16194         Uncomment documentation of equivalence class operators and
16195         collating symbol operators, since they are now implemented,
16196         Explain leftmost-longest matching in relation to alternatives.
16197         Tidy documentation of substring matching.
16198         Remove POSIX documentation, which is done better in
16199         glibc, and refer the reader there. Keep BSD API documentation, as
16200         that is not readily available elsewhere.
16201
16202 2010-09-07  Eric Blake  <eblake@redhat.com>
16203
16204         getopt: handle POSIXLY_CORRECT set but not exported
16205         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16206         export state of POSIXLY_CORRECT, due to bash set -o posix.
16207         Reported by Dustin J. Mitchell.
16208
16209 2010-09-05  Bruno Haible  <bruno@clisp.org>
16210
16211         gnulib-tool: Highlight the changed options.
16212         * gnulib-tool (func_usage): Display the --import, --add-import,
16213         --remove-import explanations in bold font.
16214
16215 2010-09-06  Karl Berry  <karl@gnu.org>
16216
16217         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16218
16219 2010-09-05  Bruno Haible  <bruno@clisp.org>
16220
16221         uniwidth/width: Update comment.
16222         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16223         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16224
16225 2010-09-05  Bruno Haible  <bruno@clisp.org>
16226
16227         isinf, isnan: Relax license.
16228         * modules/isinf (License): Change from GPL to LGPL, with consent from
16229         Ben Pfaff.
16230         * modules/isnan (License): Likewise.
16231         Requested by Ludovic Courtès.
16232
16233 2010-09-04  Bruno Haible  <bruno@clisp.org>
16234
16235         gnulib-tool: Help migration from --import to --add-import or --update.
16236         * gnulib-tool: Emit a verbose error message when --import is used
16237         without any module name.
16238
16239 2010-09-04  Bruno Haible  <bruno@clisp.org>
16240
16241         Update doc about gnulib-tool.
16242         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16243         'gnulib-tool --update' in more detail.
16244         Reported by Eric Blake.
16245
16246 2010-09-04  Bruno Haible  <bruno@clisp.org>
16247
16248         gnulib-tool: Change --import. New options --add/remove-import.
16249         * gnulib-tool: New options --add-import, --remove-import.
16250         (func_usage): Document them.
16251         (have_associative): Define always.
16252         (func_import): In import mode, don't merge the specified settings with
16253         the cached settings. Implement remove-import mode.
16254         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16255         Explain when to use them versus --import.
16256         (Simple update): Use --add-import instead of --import.
16257         * NEWS: Mention the change.
16258
16259 2010-09-04  Bruno Haible  <bruno@clisp.org>
16260
16261         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16262         separate gnulib.mk.
16263
16264 2010-09-04  Bruno Haible  <bruno@clisp.org>
16265
16266         gnulib-tool: Don't talk about CVS any more.
16267         * gnulib-tool (func_usage, func_import): Write "version control"
16268         instead of CVS.
16269
16270 2010-09-04  Jim Meyering  <meyering@redhat.com>
16271
16272         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16273         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16274         false positives (whose names may be ill-chosen) when searching
16275         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16276         would cause a false-positive.
16277
16278         avoid coreutils "make distcheck" failure
16279         Coreutils tests with an absolute build directory name that contains
16280         a space.  Not quoting this directory name caused a failure.
16281         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16282         * tests/test-vc-list-files-cvs.sh: Likewise.
16283
16284 2010-09-04  Bruno Haible  <bruno@clisp.org>
16285
16286         gnulib-tool: Avoid error when run in a package without Makefile.am.
16287         * gnulib-tool: When collecting the m4dirs in a package that does not
16288         have a Makefile.am, eliminate those directories that contain no
16289         gnulib-cache.m4. Fix expression that counts these directories.
16290
16291 2010-09-04  Bruno Haible  <bruno@clisp.org>
16292
16293         update-copyright test: Improve output when perl is missing or too old.
16294         * tests/test-update-copyright.sh: Move test of Perl version down after
16295         the test whether Perl exists. Provide an explanation relating Perl's
16296         error message to Automake's SKIP: message.
16297
16298 2010-09-04  Bruno Haible  <bruno@clisp.org>
16299
16300         Don't augment PATH in TESTS_ENVIRONMENT.
16301         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16302         set abs_aux_dir instead of augmenting PATH.
16303         * modules/vc-list-files-tests (Makefile.am): Likewise.
16304         * tests/test-update-copyright.sh: Augment PATH here.
16305         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16306         path_prepend_.
16307         * tests/test-vc-list-files-git.sh: Likewise.
16308
16309 2010-09-04  Jim Meyering  <meyering@redhat.com>
16310
16311         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16312         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16313
16314 2010-09-04  Bruno Haible  <bruno@clisp.org>
16315
16316         strdup: Fix compilation error in C++ mode.
16317         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16318         the macro.
16319
16320 2010-09-04  Bruno Haible  <bruno@clisp.org>
16321
16322         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16323         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16324         macro into a function.
16325         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16326
16327 2010-09-04  Bruno Haible  <bruno@clisp.org>
16328
16329         Set PATH_SEPARATOR the same way autoconf does.
16330         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16331         the value of PATH_SEPARATOR the same way autoconf-generated configure
16332         scripts do.
16333         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16334         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16335
16336 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16337
16338         Set PATH_SEPARATOR the same way autoconf does.
16339         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16340         the same way autoconf-generated configure scripts do.
16341         * posix-modules: Likewise.
16342
16343 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16344
16345         hash: fix safe_hasher const typo
16346         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16347         const; otherwise, there is a type error later.
16348
16349 2010-09-02  Jim Meyering  <meyering@redhat.com>
16350
16351         test-update-copyright.sh: require perl 5.8.0
16352         * tests/test-update-copyright.sh: Require 5.8.0,
16353         which Tom G. Christensen has confirmed is adequate,
16354         while 5.6.1 is not.
16355
16356 2010-09-02  Eric Blake  <eblake@redhat.com>
16357
16358         tests: init.sh improvements for re-exec'ing with zsh
16359         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16360         -vx through shell re-exec.
16361         Reported by Tom G. Christensen.
16362
16363         wctype: fix typo in previous commit
16364         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16365         Reported by Ludovic Courtès.
16366
16367 2010-09-02  Jim Meyering  <meyering@redhat.com>
16368
16369         test-update-copyright.sh: skip test if Perl is too old
16370         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16371         Reported by Tom G. Christensen.
16372
16373 2010-09-02  Bruno Haible  <bruno@clisp.org>
16374
16375         wctype: Avoid compilation error on IRIX 6.5.30.
16376         * lib/wctype.in.h (iswblank): Declare with a replacement if
16377         REPLACE_ISWBLANK is set.
16378         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16379         declared. Set REPLACE_ISWBLANK.
16380         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16381         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16382         * doc/posix-headers/wctype.texi: Likewise.
16383         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16384
16385 2010-09-01  Bruno Haible  <bruno@clisp.org>
16386
16387         New module 'socketlib'.
16388         * modules/socketlib: New file.
16389         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16390         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16391         * modules/sockets (Depends-on): Add socketlib.
16392         Suggested by Sam Steingold <sds@gnu.org>.
16393
16394 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16395
16396         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16397
16398         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16399         when one needs search access to a directory but not read access.
16400         On systems where it is available, it works in some cases where
16401         O_RDONLY does not, namely on directories that are searchable but
16402         not readable, and which need only to be searchable.  If O_SEARCH
16403         is not available, fall back to the traditional method of using
16404         O_RDONLY.
16405
16406         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16407         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16408         when opening a directory that needs only to be searchable.
16409         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16410         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16411         * lib/openat-proc.c (openat_proc_name): Likewise.
16412         * lib/openat.c (openat_needs_fchdir): Likewise.
16413         * lib/save-cwd.c (save_cwd): Likewise.
16414         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16415
16416 2010-08-28  Bruno Haible  <bruno@clisp.org>
16417
16418         New module 'host-cpu-c-abi'.
16419         * modules/host-cpu-c-abi: New file.
16420         * m4/host-cpu-c-abi.m4: New file, based on part of
16421         clisp/src/m4/general.m4.
16422         Requested by Sam Steingold <sds@gnu.org>.
16423
16424 2010-08-31  Eric Blake  <eblake@redhat.com>
16425         and Jim Meyering  <meyering@redhat.com>
16426
16427         hash: factor, and guard against misbehaving hasher function
16428         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16429         of table->hasher's return value.  Also protect against a hash value
16430         so large that adding it to table->bucket results in a NULL pointer.
16431         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16432         Use it in place of open-coded check-and-abort.
16433
16434 2010-08-30  Bruno Haible  <bruno@clisp.org>
16435
16436         hash: silence spurious clang warning
16437         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16438         Reported by Eric Blake.
16439
16440 2010-08-30  Eric Blake  <eblake@redhat.com>
16441
16442         strstr, memmem, strcasestr: avoid leaked shell message
16443         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16444         FreeBSD.
16445         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16446         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16447
16448         tests: silence clang warning
16449         * tests/test-malloca.c (do_allocation): Avoid dead store.
16450
16451 2010-08-29  Bruno Haible  <bruno@clisp.org>
16452
16453         gettext: Fix recent mistake.
16454         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16455
16456 2010-08-29  Bruno Haible  <bruno@clisp.org>
16457
16458         selinux-h: Offer a --without-selinux option.
16459         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16460         --without-selinux was specified, skip all tests and define
16461         HAVE_SELINUX_SELINUX_H to 0.
16462         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16463         set LIB_SELINUX to empty.
16464         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16465         gl_LIBSELINUX. If --without-selinux was specified, replace
16466         selinux/context.h.
16467         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16468
16469 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16470             Bruno Haible  <bruno@clisp.org>
16471
16472         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16473         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16474         of HAVE_REALLOC.
16475         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16476         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16477         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16478         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16479
16480 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16481             Bruno Haible  <bruno@clisp.org>
16482
16483         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16484         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16485         HAVE_CALLOC.
16486         * lib/xmalloc.c: Update accordingly.
16487         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16488         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16489         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16490
16491 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16492             Bruno Haible  <bruno@clisp.org>
16493
16494         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16495         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16496         HAVE_MALLOC.
16497         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16498         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16499         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16500
16501 2010-08-29  Bruno Haible  <bruno@clisp.org>
16502
16503         Update modules list.
16504         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16505         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16506         (String handling <string.h>): Add astrxfrm.
16507         (File system functions): Add readlinkat.
16508
16509 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16510
16511         Tests for module 'realloc-gnu'.
16512         * modules/realloc-gnu-tests: New file.
16513         * tests/test-realloc-gnu.c: New file.
16514
16515         Tests for module 'calloc-gnu'.
16516         * modules/calloc-gnu-tests: New file.
16517         * tests/test-calloc-gnu.c: New file.
16518
16519         Tests for module 'malloc-gnu'.
16520         * modules/malloc-gnu-tests: New file.
16521         * tests/test-malloc-gnu.c: New file.
16522
16523 2010-08-28  Bruno Haible  <bruno@clisp.org>
16524
16525         Rename module 'realloc' -> 'realloc-gnu'.
16526         * modules/realloc-gnu: New file, copied from modules/realloc.
16527         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16528         obsolete.
16529         * modules/mgetgroups (Depends-on): Update.
16530         * doc/posix-functions/realloc.texi: Update.
16531         * NEWS: Mention the change.
16532
16533         Rename module 'calloc' -> 'calloc-gnu'.
16534         * modules/calloc-gnu: New file, copied from modules/calloc.
16535         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16536         obsolete.
16537         * doc/posix-functions/calloc.texi: Update.
16538         * NEWS: Mention the change.
16539
16540         Rename module 'malloc' -> 'malloc-gnu'.
16541         * modules/malloc-gnu: New file, copied from modules/malloc.
16542         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16543         obsolete.
16544         * modules/argp (Depends-on): Update.
16545         * modules/regex (Depends-on): Update.
16546         * doc/posix-functions/malloc.texi: Update.
16547         * NEWS: Mention the change.
16548
16549 2010-08-28  Eric Blake  <eblake@redhat.com>
16550
16551         pread, pwrite: add missing dependency
16552         * modules/pread (Depends-on): Add extensions.
16553         * modules/pwrite (Depends-on): Likewise.
16554
16555 2010-08-28  Bruno Haible  <bruno@clisp.org>
16556
16557         unistr/u*-strchr: Fix tests dependencies.
16558         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16559         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16560         Reported by Ian Beckwith <ianb@erislabs.net>.
16561
16562 2010-08-28  Bruno Haible  <bruno@clisp.org>
16563
16564         read-file: Don't occupy too much unused memory.
16565         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16566
16567 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16568             Eric Blake  <eblake@redhat.com>
16569             Bruno Haible  <bruno@clisp.org>
16570
16571         read-file: Avoid memory reallocations with regular files.
16572         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16573         (fread_file): With regular files, use the remaining length as the
16574         initial buffer size.  Check against overflow.
16575         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16576         sys_stat.
16577
16578 2010-08-28  Bruno Haible  <bruno@clisp.org>
16579
16580         ftello: Relax license.
16581         * modules/ftello (License): Relax to LGPLv2+.
16582         Reported by Eric Blake.
16583
16584 2010-08-28  Bruno Haible  <bruno@clisp.org>
16585
16586         Avoid relocwrapper link errors due to gnulib replacement functions.
16587         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16588         function.
16589         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16590
16591 2010-08-28  Bruno Haible  <bruno@clisp.org>
16592
16593         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16594         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16595         defined.
16596         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16597         Suggested by Eric Blake.
16598
16599 2010-08-28  Bruno Haible  <bruno@clisp.org>
16600
16601         sys_socket, netdb: Ensure socklen_t gets defined.
16602         * modules/sys_socket (Depends-on): Add socklen.
16603         * modules/netdb (Depends-on): Likewise.
16604         * modules/getaddrinfo (Depends-on): Remove socklen.
16605         * modules/getsockopt (Depends-on): Likewise.
16606         * modules/setsockopt (Depends-on): Likewise.
16607         * tests/test-sys_socket.c: Check that socklen_t is defined.
16608         * tests/test-netdb.c: Likewise.
16609         * m4/socklen.m4: Update comments.
16610         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16611
16612 2010-08-27  Eric Blake  <eblake@redhat.com>
16613
16614         login_tty: add missing dependency
16615         * modules/login_tty (Depends-on): Add pty.
16616
16617 2010-08-26  Eric Blake  <eblake@redhat.com>
16618
16619         lib-symbol-versions: fix m4 quoting
16620         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16621         format for AC_LINK_IFELSE.
16622
16623         glob: fix compile test
16624         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16625
16626         btowc: fix missing file
16627         * modules/btowc (Files): Also ship locale-fr.m4.
16628
16629         lseek: fix link test
16630         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16631         AC_LINK_IFELSE.
16632
16633         include_next: silence autoconf 2.68 warning
16634         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16635         AC_COMPILE_IFELSE as special.
16636         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16637         autoconf < 2.68.
16638
16639         acl: fix compilation test
16640         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16641         AC_COMPILE_IFELSE.
16642
16643 2010-08-26  Bruno Haible  <bruno@clisp.org>
16644
16645         Modernize AC_TRY_RUN invocations.
16646         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16647         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16648         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16649         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16650         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16651         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16652         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16653         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16654         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16655         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16656         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16657         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16658         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16659         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16660         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16661         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16662         gl_MBRLEN_NUL_RETVAL): Likewise.
16663         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16664         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16665         Likewise.
16666         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16667         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16668         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16669         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16670         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16671         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16672         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16673         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16674         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16675         Likewise.
16676         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16677         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16679         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16680         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16681         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16682         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16683         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16684         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16685         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16686
16687 2010-08-26  Bruno Haible  <bruno@clisp.org>
16688
16689         Modernize AC_TRY_LINK invocations.
16690         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16691         AC_TRY_LINK.
16692         * m4/argp.m4 (gl_ARGP): Likewise.
16693         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16694         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16695         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16696         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16697         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16698         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16699         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16700         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16701         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16702         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16703         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16704         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16705         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16706         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16707         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16708         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16709         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16710         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16711         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16712         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16713         Likewise.
16714         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16715         Likewise.
16716         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16717         Likewise.
16718         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16719         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16720         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16721         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16722         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16723         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16724         * m4/servent.m4 (gl_SERVENT): Likewise.
16725         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16726         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16727         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16728         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16729         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16730         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16731         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16732         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16733         * modules/tsearch-tests (configure.ac): Likewise.
16734
16735 2010-08-26  Bruno Haible  <bruno@clisp.org>
16736
16737         Modernize AC_TRY_COMPILE invocations.
16738         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16739         AC_TRY_COMPILE.
16740         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16741         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16742         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16743         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16744         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16745         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16746         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16747         * m4/lock.m4 (gl_LOCK): Likewise.
16748         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16749         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16750         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16751         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16752         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16753         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16754         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16755         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16756         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16757         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16758         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16759         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16760         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16761         extraneous semicolon.
16762
16763 2010-08-26  Jim Meyering  <meyering@redhat.com>
16764
16765         stat-time: relax license LGPL
16766         * modules/stat-time (License): Change from GPL to LGPL,
16767         with consent from all contributors, for use in libguile.
16768         Requested by Ludovic Courtès.
16769
16770 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16771
16772         poll: return immediately on POLLHUP.
16773         * lib/poll.c (poll): Always set timeout before wait_timeout is
16774         computed.
16775
16776 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16777
16778         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16779         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16780         rmdir ("dir/.//"), unlinkat.
16781
16782 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16783
16784         stdbool: avoid spurious failure with modern xlc
16785         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16786
16787 2010-08-24  Bruno Haible  <bruno@clisp.org>
16788
16789         getloadavg: simplify code
16790         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16791         gl_have_func. Update comments.
16792
16793 2010-08-24  Eric Blake  <eblake@redhat.com>
16794
16795         getloadavg: don't define SVR4 on cygwin
16796         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16797         only define SVR4 when -lkvm is required.
16798         Reported by Yaakov Selkowitz.
16799
16800 2010-08-24  Bruno Haible  <bruno@clisp.org>
16801
16802         priv-set: fix comment
16803         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16804
16805 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16806
16807         priv-set: fix comments
16808         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16809         to match code, as suggested by David Bartley in:
16810         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16811
16812 2010-08-23  Eric Blake  <eblake@redhat.com>
16813
16814         stdbool: avoid rejecting clang
16815         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16816         * tests/test-stdbool.c: Enable more tests if using the system
16817         <stdbool.h> instead of the gnulib replacement.
16818         (main): Move xlc bug test to a runtime test for all compilers.
16819         Reported by Anders Kaseorg.
16820
16821         argz: fix shell quoting issue
16822         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16823         Reported by Charles Wilson.
16824
16825 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16826             Erik Faye-Lund <kusmabite@gmail.com>
16827
16828         poll, select: handle ERROR_BROKEN_PIPE.
16829         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16830         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16831         * lib/select.c (win32_compute_revents): Do not mark a pipe
16832         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16833
16834 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16835
16836         fts: allow compilation with C++
16837         * lib/fts_.h: Specify extern "C" linkage with C++.
16838
16839 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16840
16841         Fix gnulib-tool sed script de-commentation for AIX sed.
16842         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16843         sed.
16844
16845 2010-08-17  Eric Blake  <eblake@redhat.com>
16846
16847         test-stddef: test for (some) offsetof bugs
16848         * tests/test-stddef.c: Enhance test to ensure correct type of
16849         offsetof.
16850         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16851         that we are not fixing at this time.
16852
16853 2010-08-15  Bruno Haible  <bruno@clisp.org>
16854
16855         stpncpy: Allow stpncpy to be defined as a macro.
16856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16857         if it's already correctly declared.
16858         * lib/string.in.h (stpncpy): Undefine before redefining.
16859         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16860
16861 2010-08-14  Bruno Haible  <bruno@clisp.org>
16862
16863         Rename module 'memxfrm' to 'amemxfrm'.
16864         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16865         (amemxfrm): Renamed from memxfrm.
16866         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16867         (amemxfrm): Renamed from memxfrm.
16868         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16869         * NEWS: Mention the change.
16870         * MODULES.html.sh (String handling <string.h>): Update.
16871         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16872         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16873         * lib/unicase/u16-casexfrm.c: Likewise.
16874         * lib/unicase/u32-casexfrm.c: Likewise.
16875         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16876         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16877         * lib/uninorm/u16-normxfrm.c: Likewise.
16878         * lib/uninorm/u32-normxfrm.c: Likewise.
16879         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16880         memxfrm.
16881         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16882         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16883         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16884         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16885         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16886         Suggested by Paul Eggert.
16887
16888 2010-08-14  Bruno Haible  <bruno@clisp.org>
16889
16890         Tests for module 'astrxfrm'.
16891         * modules/astrxfrm-tests: New file.
16892         * tests/test-astrxfrm.c: New file.
16893
16894         New module 'astrxfrm'.
16895         * lib/astrxfrm.h: New file.
16896         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16897         * modules/astrxfrm: New file.
16898
16899 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16900
16901         regex: Tweak doc.
16902         * doc/regex.texi (Overview): Don't mention regex.c.
16903         (GNU Regular Expression Compiling): Likewise.
16904         (Match-end-of-line Operator): Mention 'not_eol'.
16905
16906 2010-08-14  Brian Gough  <bjg@gnu.org>
16907             Bruno Haible  <bruno@clisp.org>
16908
16909         git-merge-changelog: add doc relating to use with bzr and hg.
16910         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16911
16912 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16913
16914         pthread: fix pthread.h creation for srcdir != builddir
16915         * modules/pthread (Makefile.am): Fix the rule to work also in a
16916         non-srcdir build.
16917
16918 2010-08-13  Karl Berry  <karl@gnu.org>
16919
16920         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16921         * doc/posix-*/*: force line break before @url of POSIX
16922         specifications.
16923         Suggested by Werner Lemberg.
16924
16925 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16926
16927         strtod: fix const diagnostic
16928         * lib/strtod.c (strtod): Don't assign const char * to char *,
16929         as this elicits a warning from GCC when warnings are enabled.
16930
16931 2010-08-10  Pádraig Brady <P@draigbrady.com>
16932         and Eric Blake  <eblake@redhat.com>
16933
16934         copy-acl: ignore ENOTSUP on HP-UX
16935         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16936         so that it is available for HP-UX.
16937         * lib/copy-acl.c (qcopy_acl): Use it.
16938         Reported by Patrick M. Callahan.
16939
16940 2010-08-10  Eric Blake  <eblake@redhat.com>
16941
16942         open, chown: relax license
16943         * modules/open (License): Change to LGPLv2+, with consent by all
16944         authors, for use in augeas.
16945         * modules/chown (License): Likewise.
16946         * modules/lchown (Likewise): Likewise.
16947         Requested by Adam Stokes.
16948
16949 2010-08-09  Karl Berry  <karl@gnu.org>
16950
16951         * build-aux/ar-lib: new file, import from Automake.
16952         * config/srclist.txt: autocheck for updates.
16953
16954 2010-08-09  Eric Blake  <eblake@redhat.com>
16955
16956         readlinkat: adjust client modules
16957         * modules/areadlinkat (Depends-on): Use readlinkat, not
16958         symlinkat.
16959         * modules/areadlinkat-with-size (Depends-on): Likewise.
16960
16961         mknod: be more vocal about danger of running tests as root
16962         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
16963         root, since that is just asking for problems.
16964         Suggested by Bruno Haible, based on a report by Rainer Tammer.
16965
16966         readlinkat: split into its own module
16967         * modules/symlinkat: Split readlinkat...
16968         * modules/readlinkat: ...into separate module.
16969         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
16970         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
16971         * lib/symlinkat.c (readlinkat): Move...
16972         * lib/readlinkat.c: ...into new file.
16973         * modules/symlinkat-tests: Split readlinkat test...
16974         * modules/readlinkat-tests: ...into separate module.
16975         * tests/test-symlinkat.c: Split...
16976         * tests/test-readlinkat.c: ...into new file.
16977         * NEWS: Document the split.
16978         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
16979         * lib/unistd.in.h (readlinkat): Likewise.
16980         Suggested by Bruno Haible.
16981
16982 2010-08-08  Bruno Haible  <bruno@clisp.org>
16983
16984         memxfrm: Speed up.
16985         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
16986         that usually only one call to strxfrm is necessary for each string
16987         part.
16988         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16989
16990 2010-08-07  Karl Berry  <karl@gnu.org>
16991
16992         * doc/posix-headers/limits.texi,
16993         * doc/posix-functions/malloc.texi,
16994         * doc/posix-functions/strsignal.texi: missing @item.
16995         * doc/ld-version-script.texi: spurious leading i.
16996         * doc/regex.texi (Interval Operators): no commas inside @var.
16997
16998 2010-08-01  Bruno Haible  <bruno@clisp.org>
16999
17000         Integrate the regex documentation.
17001         * doc/gnulib.texi: Define 'cn' index.
17002         (Regular expressions): New a chapter that includes regex.texi and
17003         regexprops-generic.texi.
17004         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17005         syntax.
17006
17007         Whitespace cleanup.
17008         * doc/regex.texi: Remove trailing spaces.
17009
17010         Add regex documentation.
17011         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17012         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17013         Written by Kathy A. Hargreaves and Karl Berry.
17014
17015 2010-08-01  Bruno Haible  <bruno@clisp.org>
17016
17017         link: Update documentation.
17018         * doc/posix-functions/link.texi: Update regarding Solaris.
17019
17020 2010-07-31  Bruno Haible  <bruno@clisp.org>
17021
17022         Update modules list.
17023         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17024         (String handling <string.h>): Add memcmp2, memxfrm.
17025         (Container data structures): Add xlist, xsublist, xoset.
17026         (Core language properties): Add alignof, unused-parameter.
17027         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17028         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17029         (Unibyte characters <ctype.h>): New section.
17030         (String handling <string.h>): New section.
17031         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17032         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17033         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17034         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17035         tan, tanh, tanl, y0, y1, yn.
17036         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17037         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17038         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17039         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17040         unlockpt, vdprintf, vdprintf-posix.
17041         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17042         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17043         xconcat-filename.
17044         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17045         getdtablesize, pipe2, pipe2-safer.
17046         (Security): New section.
17047         (Networking functions): Add accept4.
17048         (Signal handling): Add sigpipe.
17049         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17050         mbmemcasecoll.
17051         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17052         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17053         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17054         pipe-filter-ii.
17055         (Misc): Add argp-version-etc, login_tty, parse-duration.
17056
17057 2010-07-31  Bruno Haible  <bruno@clisp.org>
17058
17059         Improve doc in MODULES.html.
17060         * modules/linkat (Description): Add the word "function".
17061         * modules/mkfifo (Description): Likewise.
17062         * modules/mknod (Description): Likewise.
17063         * modules/remove (Description): Likewise.
17064         * modules/renameat (Description): Likewise.
17065         * modules/stat (Description): Likewise.
17066         * modules/symlink (Description): Likewise.
17067         * modules/unlink (Description): Likewise.
17068
17069 2010-07-31  Bruno Haible  <bruno@clisp.org>
17070
17071         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17072         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17073         option --enable/disable-c++ instead of --enable/disable-cxx.
17074         * NEWS: Mention the change.
17075
17076 2010-07-31  Bruno Haible  <bruno@clisp.org>
17077
17078         readlink, areadlink: Relax test a bit.
17079         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17080         alternative to ENOTDIR.
17081         * tests/test-areadlink.h (test_areadlink): Likewise.
17082         Reported by Rainer Tammer.
17083
17084 2010-07-31  Bruno Haible  <bruno@clisp.org>
17085
17086         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17087         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17088         character, perform the search using U_STRCHR.
17089         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17090         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17091         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17092         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17093         Suggested by Paolo Bonzini.
17094
17095 2010-07-31  Bruno Haible  <bruno@clisp.org>
17096
17097         unistr/u*-strstr: Fix dependencies.
17098         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17099         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17100         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17101
17102 2010-07-31  Bruno Haible  <bruno@clisp.org>
17103
17104         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17105         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17106         the beginning of the loop.
17107         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17108         cases in 'switch' statement.
17109
17110         unistr/u8-strchr: Fix several bugs.
17111         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17112         the string. When not found, return NULL, not a pointer near the end.
17113
17114         More tests for unistr/u8-strchr.
17115         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17116         that the function does not read past the first occurrence of the byte
17117         being searched.
17118         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17119         * tests/unistr/test-u16-strchr.c (main): New function.
17120         * tests/unistr/test-u32-strchr.c (main): New function.
17121
17122 2010-07-31  Bruno Haible  <bruno@clisp.org>
17123
17124         posix-modules: Ignore backup files of documentation files.
17125         * posix-modules: grep only through files named *.texi.
17126
17127 2010-07-31  Bruno Haible  <bruno@clisp.org>
17128
17129         symlinkat: Fix documentation.
17130         * doc/posix-functions/readlinkat.texi: Fix module name.
17131
17132 2010-07-31  Bruno Haible  <bruno@clisp.org>
17133
17134         fchownat: Replace also when chown has the trailing slash bug.
17135         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17136         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17137         introduced on 2010-04-10.
17138         Reported by Rainer Tammer.
17139
17140 2010-07-31  Bruno Haible  <bruno@clisp.org>
17141
17142         linkat: Work around AIX 7.1 bug.
17143         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17144         whether linkat handles trailing slash correctly. If not, replace linkat
17145         and define LINKAT_TRAILING_SLASH_BUG.
17146         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17147         check whether (fd1,file1) points to a directory if file1 or file2 ends
17148         in a slash. Code taken from lib/link.c.
17149         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17150         Reported by Rainer Tammer.
17151
17152 2010-07-31  Bruno Haible  <bruno@clisp.org>
17153
17154         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17155         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17156         This disables an xlc optimization that was causing wrong test results.
17157         Reported by Rainer Tammer.
17158
17159 2010-07-31  Bruno Haible  <bruno@clisp.org>
17160
17161         iconv: Work around AIX 6.1..7.1 bug.
17162         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17163         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17164         cross-compiling, guess no on all versions of AIX.
17165         Reported by Rainer Tammer.
17166
17167 2010-07-31  Bruno Haible  <bruno@clisp.org>
17168
17169         readlink: Relax test a bit.
17170         * tests/test-readlink.h (test_readlink): Allow different errno value
17171         when readlink is called with a file name that ends in / and refers to
17172         a file.
17173         Suggested by Eric Blake.
17174         Reported by Rainer Tammer.
17175
17176 2010-07-31  Bruno Haible  <bruno@clisp.org>
17177
17178         copysign: Does not require -lm on glibc systems.
17179         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17180         gl_COMMON_DOUBLE_MATHFUNC.
17181         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17182
17183 2010-07-31  Bruno Haible  <bruno@clisp.org>
17184
17185         duplocale: Work around AIX 7.1 bug.
17186         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17187         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17188         * lib/duplocale.c (rpl_duplocale): Update comment.
17189         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17190         Reported by Rainer Tammer.
17191
17192 2010-07-30  Bruno Haible  <bruno@clisp.org>
17193
17194         dirfd: Avoid link error on AIX 7.1.
17195         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17196         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17197         exist, set REPLACE_DIRFD.
17198         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17199         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17200         * doc/posix-functions/dirfd.texi: Update.
17201         Reported by Rainer Tammer.
17202
17203 2010-07-30  Eric Blake  <eblake@redhat.com>
17204
17205         strtod: next round of AIX fixes
17206         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17207         exponent.
17208         * tests/test-strtod.c (main): Enhance tests.
17209         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17210         Reported by Rainer Tammer.
17211
17212         futimens: fix configure check
17213         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17214         Reported by Bruno Haible.
17215
17216 2010-07-30  Bruno Haible  <bruno@clisp.org>
17217
17218         getline: Update regarding AIX.
17219         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17220         Reported by Rainer Tammer.
17221
17222 2010-07-30  Bruno Haible  <bruno@clisp.org>
17223
17224         wcwidth: Drop replacement on AIX 7.
17225         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17226         AIX 7.
17227         Reported by Rainer Tammer.
17228
17229 2010-07-30  Bruno Haible  <bruno@clisp.org>
17230
17231         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17232         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17233         a 'char *'.
17234         Reported by Rainer Tammer.
17235
17236 2010-07-30  Bruno Haible  <bruno@clisp.org>
17237
17238         unlink: Update regarding AIX.
17239         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17240         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17241         Reported by Rainer Tammer.
17242
17243 2010-07-30  Bruno Haible  <bruno@clisp.org>
17244
17245         symlink: Update regarding AIX.
17246         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17247         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17248         Reported by Rainer Tammer.
17249
17250 2010-07-30  Bruno Haible  <bruno@clisp.org>
17251
17252         strndup: Update regarding AIX.
17253         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17254         AIX 7.
17255         Reported by Rainer Tammer.
17256
17257 2010-07-30  Bruno Haible  <bruno@clisp.org>
17258
17259         stat: Update regarding AIX.
17260         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17261         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17262         Reported by Rainer Tammer.
17263
17264 2010-07-30  Bruno Haible  <bruno@clisp.org>
17265
17266         truncl: Fix autoconf test.
17267         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17268         whether truncl works.
17269         Reported by Rainer Tammer.
17270
17271 2010-07-30  Bruno Haible  <bruno@clisp.org>
17272
17273         round: Update regarding AIX.
17274         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17275         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17276         Reported by Rainer Tammer.
17277
17278 2010-07-30  Bruno Haible  <bruno@clisp.org>
17279
17280         rename: Update regarding AIX.
17281         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17282         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17283         Reported by Rainer Tammer.
17284
17285 2010-07-30  Bruno Haible  <bruno@clisp.org>
17286
17287         printf.m4: Update regarding AIX.
17288         * m4/printf.m4: Update comments regarding AIX.
17289         Reported by Rainer Tammer.
17290
17291 2010-07-30  Bruno Haible  <bruno@clisp.org>
17292
17293         iconv: Update regarding AIX.
17294         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17295         AIX 7.
17296         Reported by Rainer Tammer.
17297
17298 2010-07-30  Bruno Haible  <bruno@clisp.org>
17299
17300         getopt: Update regarding AIX.
17301         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17302         no on AIX.
17303         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17304         Reported by Rainer Tammer.
17305
17306 2010-07-30  Bruno Haible  <bruno@clisp.org>
17307
17308         ldexpl; Update regarding AIX.
17309         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17310         on AIX 7.
17311         Reported by Rainer Tammer.
17312
17313 2010-07-30  Bruno Haible  <bruno@clisp.org>
17314
17315         frexpl: Update regarding AIX.
17316         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17317         on AIX 7.
17318         Reported by Rainer Tammer.
17319
17320 2010-07-30  Bruno Haible  <bruno@clisp.org>
17321
17322         open, fopen: Update regarding AIX.
17323         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17324         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17325         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17326         * doc/posix-functions/fopen.texi: Likewise.
17327         Reported by Rainer Tammer.
17328
17329 2010-07-30  Bruno Haible  <bruno@clisp.org>
17330
17331         chown: Update doc regarding AIX.
17332         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17333         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17334         Reported by Rainer Tammer.
17335
17336 2010-07-30  Eric Blake  <eblake@redhat.com>
17337
17338         strtod: fix bug in replacement function on AIX
17339         * lib/strtod.c (strtod): Special case broken "0x" parse in
17340         underlying strtod.
17341         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17342         * doc/posix-functions/strtod.texi (strtod): Likewise.
17343         Reported by Rainer Tammer.
17344
17345 2010-07-30  Bruno Haible  <bruno@clisp.org>
17346
17347         mbrlen: Fix cross-compilation guess for AIX.
17348         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17349         guess. Leftover from 2008-12-22.
17350
17351 2010-07-30  Bruno Haible  <bruno@clisp.org>
17352
17353         mbrtowc: Fix cross-compilation guess for AIX.
17354         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17355         guess. Leftover from 2008-12-21.
17356
17357 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17358
17359         init.sh: work around trap limitation of some shells
17360         * tests/init.sh (setup_): Move exit trap outside of shell function.
17361
17362 2010-07-29  Eric Blake  <eblake@redhat.com>
17363
17364         strtod: aid debugging
17365         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17366         understanding why strtod is rejected.
17367
17368 2010-07-28  Bruno Haible  <bruno@clisp.org>
17369
17370         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17371         * lib/unistr/u8-chr.c: Include <string.h>.
17372         * tests/unistr/test-u8-chr.c: Likewise.
17373         * tests/unistr/test-u16-chr.c: Likewise.
17374         * tests/unistr/test-u32-chr.c: Likewise.
17375         * tests/unistr/test-u8-strchr.c: Likewise.
17376         * tests/unistr/test-u16-strchr.c: Likewise.
17377         * tests/unistr/test-u32-strchr.c: Likewise.
17378         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17379         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17380         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17381         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17382
17383 2010-07-28  Bruno Haible  <bruno@clisp.org>
17384
17385         Use spaces for indentation, not tabs.
17386         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17387
17388 2010-07-27  Bruno Haible  <bruno@clisp.org>
17389
17390         mbspcasecmp: Fix function specification.
17391         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17392         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17393         Reported by Eric Blake <eblake@redhat.com>.
17394
17395 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17396
17397         timespec: use cast and not conditional, as truncation isn't possible
17398         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17399         instead of a conditional.  Comment about the situation in more detail.
17400         This undoes most of the 2009-10-29 patch.
17401
17402 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17403
17404         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17405         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17406         * lib/unistr/u8-strchr.c: Likewise.
17407         * modules/unistr/u8-chr: Depend on memchr.
17408
17409         unistr/u*-strchr: add tests
17410         * modules/unistr/u8-strchr-tests: New file.
17411         * modules/unistr/u16-strchr-tests: New file.
17412         * modules/unistr/u32-strchr-tests: New file.
17413         * tests/unistr/test-strchr.h: New file.
17414         * tests/unistr/test-u8-strchr.c: New file.
17415         * tests/unistr/test-u16-strchr.c: New file.
17416         * tests/unistr/test-u32-strchr.c: New file.
17417
17418         unistr/u*-chr: test multibyte sequences more
17419         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17420         test vector.
17421         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17422         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17423         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17424
17425         unistr/u*-chr: test multibyte sequences
17426         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17427
17428         unistr/u*-chr: prepare for multibyte tests
17429         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17430         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17431         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17432         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17433         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17434         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17435
17436 2010-07-18  Bruno Haible  <bruno@clisp.org>
17437
17438         unistr/u8-strchr: Optimize non-ASCII argument case.
17439         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17440         because the first byte often matches anyway.
17441         Reported by Pádraig Brady <P@draigbrady.com>.
17442
17443 2010-07-15  Karl Berry  <karl@gnu.org>
17444
17445         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17446
17447 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17448
17449         getcwd: on Solaris, work better if ancestors are inaccessible
17450         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17451         buffer and size, try again with a large buffer.  This works better
17452         on Solaris, since its getcwd succeeds even if the path to the root
17453         is inaccessible, and this is helpful in common cases such as .zfs
17454         hidden directories.  Problem reported by J Chapman Flack in
17455         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17456         Use system getcwd if it's declared, not merely if it's partly
17457         working; use the partly-working test only to avoid needless effort
17458         if the system getcwd fails.
17459         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17460         comment that was already obsolete and is now even more obsolete.
17461         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17462         now might call strdup.
17463
17464 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17465
17466         pthread: Add enough so that coreutils/src/sort.c compiles.
17467         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17468         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17469         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17470         Include <sys/types.h>, in case it defines pthread_t.
17471         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17472         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17473         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17474         (pthread_rwlockattr_t, pthread_spinlock_t):
17475         New typedefs, if HAVE_PTHREAD_T is not defined.
17476         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17477         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17478         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17479         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17480         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17481         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17482         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17483         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17484         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17485         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17486         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17487         New macros.
17488         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17489         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17490         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17491         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17492         (pthread_spin_unlock): New dummy functions.
17493         (pthread_create): Return EAGAIN; don't set errno.
17494         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17495         require AC_C_INLINE.
17496         * modules/pthread (Depends-on): Add sched, time.
17497         (pthread.h): Use AM_V_GEN.
17498
17499 2010-07-13  Bruno Haible  <bruno@clisp.org>
17500
17501         striconveh: Don't malloc memory if the result buffer is sufficient.
17502         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17503         buffer if its size is sufficient.
17504         Reported by Ludovic Courtès <ludo@gnu.org>.
17505
17506 2010-07-13  Bruno Haible  <bruno@clisp.org>
17507
17508         strtod: Add safety check.
17509         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17510
17511 2010-07-12  Bruno Haible  <bruno@clisp.org>
17512
17513         Unify tests that set gl_cv_func_ldexpl_no_libm.
17514         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17515         gl_FUNC_LDEXPL.
17516         (gl_FUNC_LDEXPL): Invoke it.
17517         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17518
17519 2010-07-12  Bruno Haible  <bruno@clisp.org>
17520
17521         Unify tests that set gl_cv_func_ldexp_no_libm.
17522         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17523         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17524         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17525         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17526         * modules/strtod (Files): Add m4/ldexp.m4.
17527
17528 2010-07-12  Bruno Haible  <bruno@clisp.org>
17529
17530         Unify tests that set gl_cv_func_frexpl_no_libm.
17531         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17532         gl_FUNC_FREXPL_NO_LIBM.
17533         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17534         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17535
17536 2010-07-12  Bruno Haible  <bruno@clisp.org>
17537
17538         Unify tests that set gl_cv_func_frexp_no_libm.
17539         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17540         gl_FUNC_FREXP_NO_LIBM.
17541         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17542         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17543
17544 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17545
17546         memcoll: clarify sizes versus lengths, document better, and tweak perf
17547         * lib/memcoll.c (strcoll_loop, memcoll0):
17548         Improve quality of descriptive comments.  Name variables
17549         consistently as to whether they are lengths (which do not include
17550         terminating null) versus sizes (which do).
17551         * lib/xmemcoll.c (xmemcoll0): Likewise.
17552         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17553         returned when s1size == 0; this is easier to compile and saves
17554         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17555
17556 2010-07-12  Bruno Haible  <bruno@clisp.org>
17557
17558         Tests for module '_Exit'.
17559         * modules/_Exit-tests: New file.
17560         * tests/test-_Exit.sh: New file.
17561         * tests/test-_Exit.c: New file.
17562
17563         New module '_Exit'.
17564         * lib/stdlib.in.h (__attribute__): New macro.
17565         (_Exit): New declaration.
17566         * lib/_Exit.c: New file.
17567         * m4/_Exit.m4: New file.
17568         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17569         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17570         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17571         * modules/_Exit: New file.
17572         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17573         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17574
17575 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17576
17577         strtod: make it more-accurate typically, and don't require libm
17578         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17579         Include limits.h.  Don't include string.h.
17580         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17581         (locale_isspace): New function, so that no casts are needed to
17582         check whether *s is a space.
17583         (ldexp): Provide an unused dummy if not available.
17584         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17585         (strtod): Use them.  This implementation prefers to use the
17586         underlying strtod if available, falling back on our own code
17587         only to fix known bugs.  This is more likely to produce an
17588         accurate result.  Also, it avoids the use of libm functions.
17589         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17590         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17591         was absent, but it caused a test failure with coreutils.
17592         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17593         with libm.
17594         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17595         * modules/strtod-tests (Makefile.am): Likewise.
17596
17597 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17598             Bruno Haible  <bruno@clisp.org>
17599
17600         unistr/u8-strchr: Optimize ASCII argument case.
17601         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17602
17603 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17604
17605         (x)memcoll: minor tweaks
17606         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17607         is after the type that it qualifies.
17608         (memcoll0): Likewise.
17609         * lib/memcoll.h (memcoll0): Likewise.
17610         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17611         * lib/xmemcoll.h (xmemcoll0): Likewise.
17612         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17613         differs from memcoll in that the NUL byte is part of the argument.
17614         Omit the abort-checks, as performance is a real issue here.  Plus,
17615         the checks were wrong anyway (an off-by-one error).  Omit local
17616         variable 'diff', as it's a bit clearer that way.
17617         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17618         no longer needed.
17619
17620 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17621
17622         (x)memcoll: speedup when input is known to be NUL delimited
17623         * lib/memcoll.c: Include stdlib.
17624         (memcoll0): New function.
17625         (strcoll_loop): New function, refactored for use in both memcoll
17626         and memcoll0.
17627         * lib/memcoll.h (memcoll0): Add prototype.
17628         * lib/xmemcoll.c (xmemcoll0): New function.
17629         (collate_error): New function, refactored for use in both xmemcoll
17630         and xmemcoll0.
17631         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17632         * m4/memcoll.m4: add inline invocation.
17633
17634 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17635
17636         * build-aux/bootstrap: Remove any local translations
17637         from the translation project synchronization directory,
17638         so that local only translations are not distributed.
17639
17640 2010-07-04  Bruno Haible  <bruno@clisp.org>
17641
17642         fsusage: Clarify which code applies to which platforms.
17643         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17644         platform.
17645         * lib/fsusage.c (get_fs_usage): Likewise.
17646
17647 2010-07-04  Bruno Haible  <bruno@clisp.org>
17648
17649         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17650         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17651         Reported by Martin Lambers <marlam@marlam.de>.
17652
17653 2010-07-04  Jim Meyering  <meyering@redhat.com>
17654
17655         hash: once again explicitly disallow insertion of NULL
17656         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17657         inserting a NULL pointer cannot work with these functions.
17658         Add a comment with details.
17659         This reverts part of the 2010-07-01 commit, 5bef1a35
17660         "hash: extend module to deal with non-pointer keys".
17661
17662 2010-07-01  Bruno Haible  <bruno@clisp.org>
17663
17664         stdbool: Update doc.
17665         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17666         Info from Christian Weisgerber <naddy@mips.inka.de>.
17667
17668 2010-07-01  Jim Meyering  <meyering@redhat.com>
17669
17670         hash: extend module to deal with non-pointer keys
17671         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17672         but that allows insertion of non-pointer entries.
17673         Do not disallow an ENTRY value of NULL.
17674         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17675         * lib/hash.h (hash_insert0): Declare.
17676
17677 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17678
17679         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17680         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17681         not present (i.e. with autoconf 2.59 and when using gettextize, not
17682         gnulib), require AC_GNU_SOURCE instead.
17683
17684 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17685
17686         idpriv-drop: Fix tests.
17687         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17688         not to the test-idpriv-droptemp program.
17689
17690 2010-06-29  Bruno Haible  <bruno@clisp.org>
17691
17692         string: Fix syntax error with g++ 2.96.
17693         * lib/string.in.h (__pure__): Remove definition.
17694         (_GL_ATTRIBUTE_PURE): New macro.
17695         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17696         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17697         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17698
17699 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17700
17701         unitypes: Fix bug introduced on 2010-05-18.
17702         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17703
17704 2010-06-22  Eric Blake  <eblake@redhat.com>
17705
17706         memmem: slight optimization
17707         * lib/str-two-way.h (critical_factorization): Update comments.
17708         Reduce work during factorization phase.
17709         Reported by Carlos Bueno <carlos@bueno.org>.
17710
17711 2010-06-21  Bruno Haible  <bruno@clisp.org>
17712
17713         Fix HAVE_CALLOC_POSIX misnomer.
17714         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17715         !HAVE_CALLOC_POSIX.
17716         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17717         HAVE_CALLOC_POSIX.
17718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17719         instead of HAVE_CALLOC_POSIX.
17720         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17721         HAVE_CALLOC_POSIX.
17722
17723         Use modern idiom for calloc() replacement.
17724         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17725         AC_FUNC_CALLOC.
17726         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17727         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17728         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17729         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17730         (gl_REPLACE_CALLOC): New macro.
17731
17732 2010-06-21  Bruno Haible  <bruno@clisp.org>
17733
17734         Fix HAVE_REALLOC_POSIX misnomer.
17735         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17736         !HAVE_REALLOC_POSIX.
17737         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17738         HAVE_REALLOC_POSIX.
17739         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17740         instead of HAVE_REALLOC_POSIX.
17741         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17742         HAVE_REALLOC_POSIX.
17743
17744         Use modern idiom for realloc() replacement.
17745         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17746         AC_FUNC_REALLOC.
17747         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17748         Autoconf's AC_FUNC_REALLOC.
17749         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17750         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17751         (gl_REPLACE_REALLOC): New macro.
17752         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17753
17754 2010-06-21  Bruno Haible  <bruno@clisp.org>
17755
17756         Fix HAVE_MALLOC_POSIX misnomer.
17757         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17758         !HAVE_MALLOC_POSIX.
17759         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17760         HAVE_MALLOC_POSIX.
17761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17762         instead of HAVE_MALLOC_POSIX.
17763         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17764         HAVE_MALLOC_POSIX.
17765
17766         Use modern idiom for malloc() replacement.
17767         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17768         AC_FUNC_MALLOC.
17769         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17770         Autoconf's AC_FUNC_MALLOC.
17771         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17772         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17773         (gl_REPLACE_MALLOC): New macro.
17774         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17775
17776 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17777
17778         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17779         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17780         This macro takes 3 arguments, not 4.
17781
17782 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17783
17784         ipv6: fix detection under mingw
17785         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17786         in6_addr.
17787
17788 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17789
17790         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17791         that strtod() works when cross-compiling to a glibc version known
17792         to work.
17793
17794 2010-06-15  Bruno Haible  <bruno@clisp.org>
17795
17796         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17797
17798 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17799
17800         select: Correct timeout.
17801         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17802
17803 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17804
17805         git-version-gen: init shell var to avoid env var influence
17806         * build-aux/git-version-gen (v): Init shell var to empty.
17807
17808 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17809
17810         priv-set: Don't assume that priv.h exists merely because getppriv does.
17811         See Jan Andersen's bug report about AIX 5L in
17812         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17813         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17814         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17815         * lib/priv-set.h: Likewise.
17816         * tests/test-priv-set.c: Likewise.
17817
17818 2010-06-13  Bruno Haible  <bruno@clisp.org>
17819
17820         relocatable: Make it easier to test whether to install wrappers.
17821         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17822         RELOCATABLE_VIA_WRAPPER.
17823
17824 2010-06-13  Bruno Haible  <bruno@clisp.org>
17825
17826         gnulib-tool: Display specified modules and dependencies differently.
17827         * gnulib-tool (func_show_module_list): New function.
17828         (func_import, func_create_testdir): Invoke it.
17829         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17830
17831 2010-06-13  Bruno Haible  <bruno@clisp.org>
17832
17833         gnulib-tool: Align code of func_import and func_create_testdir.
17834         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17835         specified_modules.
17836
17837 2010-06-12  Jim Meyering  <meyering@redhat.com>
17838
17839         test-inttostr: avoid spurious failure on Solaris 9
17840         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17841         to accept "%ju".  Reported by Bruno Haible.
17842
17843 2010-06-11  Jim Meyering  <meyering@redhat.com>
17844
17845         test-sys_socket: mark variables as used more readably
17846         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17847         as "used" explicitly via (void) statement casts.  This is more
17848         readable than using them in an artificial return expression.
17849         Suggestion from Bruno Haible.
17850
17851 2010-06-11  Bruno Haible  <bruno@clisp.org>
17852
17853         Avoid some more warnings from "gcc -Wwrite-strings".
17854         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17855         to 'const char *'.
17856         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17857         * tests/test-c-strcasestr.c (main): Likewise.
17858         * tests/test-mbscasestr1.c (main): Likewise.
17859         * tests/test-mbscasestr2.c (main): Likewise.
17860         * tests/test-memmem.c (main): Likewise.
17861         * tests/test-strstr.c (main): Likewise.
17862         * tests/test-strcasestr.c (main): Likewise.
17863
17864 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17865
17866         init.sh: change framework_failure_ to fail with status 99, not 1
17867         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17868         automake's parallel-tests rule that this is an unexpected failure,
17869         even if the test is listed in XFAIL_TESTS.
17870
17871 2010-06-11  Jim Meyering  <meyering@redhat.com>
17872
17873         test-inttostr: avoid warnings about 4-6KB literal strings
17874         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17875         Include "macros.h", for its definition of ASSERT.
17876         (CK): s/assert/ASSERT/
17877         * modules/inttostr-tests (Files): Add macros.h.
17878
17879         init.sh: don't use $ME_ or skip_ before they are defined
17880         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17881         their first uses.  Also hoist their companions: warn_, fail_,
17882         framework_failure_, $stderr_fileno.  Prompted by a patch from
17883         Stefano Lattarini.
17884
17885         test-sys_socket: avoid set-but-not-used warnings from gcc
17886         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17887         avoid warning about set-but-not-used variables.
17888
17889         test-xvasprintf: avoid 'const' discard warnings
17890         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17891         "const" when assigning from literal strings.
17892         (test_xasprintf): Add "void" in function argument list to placate
17893         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17894
17895         tests: avoid compilation warnings in argmatch and exclude tests...
17896         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17897         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17898         Since it always exits, declare with the "noreturn" attribute.
17899         * tests/test-argmatch.c: Likewise.
17900
17901         tests: avoid 'const' discard warnings in mbsstr tests
17902         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17903         * tests/test-mbsstr2.c (main): Likewise.
17904
17905         test-verify: avoid warning from gcc's -Wmissing-declarations
17906         * tests/test-verify.c (function): Declare to be static.
17907
17908         test-inttostr.c: include <string.h> for use of strcmp
17909         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17910
17911         test-linkat: avoid failed assertion on "other" architectures
17912         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17913         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17914         sparc: https://bugs.launchpad.net/bugs/591968
17915
17916 2010-06-11  Jim Meyering  <meyering@redhat.com>
17917
17918         printf.m4: avoid autoconf's "Expanded Before Required" warning
17919         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17920         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17921         autoconf warning.
17922
17923 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17924
17925         Replacement header templates are now named with ".in", not "_".
17926         * doc/gnulib-intro.texi: Correct.
17927
17928 2010-06-10  Jim Meyering  <meyering@redhat.com>
17929
17930         inttostr-tests: depend on snprintf, not snprintf-posix
17931         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17932         snprintf-posix, to avoid this aclocal failure:
17933           missing file gnulib-tests/vasnprintf.c
17934           configure.ac:45: error: expected source file, required through \
17935           AC_LIBSOURCES, not found
17936
17937 2010-06-10  Jim Meyering  <meyering@redhat.com>
17938
17939         inttostr: add a new function, inttostr, and tests
17940         The namesake function was not available.  The existence of the
17941         template file, inttostr.c makes its addition nontrivial.
17942         * lib/anytostr.c: Rename from inttostr.c.
17943         (anytostr): Rename from inttostr.
17944         * lib/inttostr.c: New file.
17945         * modules/inttostr (Files): Add anytostr.c.
17946         (Makefile.am): Set lib_SOURCES instead of ...
17947         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
17948         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
17949         * lib/offtostr.c: Likewise.
17950         * lib/uinttostr.c: Likewise.
17951         * lib/umaxtostr.c: Likewise.
17952         * modules/inttostr-tests: New file.
17953         * tests/test-inttostr.c: New file.  Test these functions.
17954
17955 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
17956             Bruno Haible  <bruno@clisp.org>
17957
17958         Add "Extending Gnulib" chapter to manual.
17959         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
17960         chapter.
17961         (Extending Gnulib): New chapter.
17962         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
17963         chapter.
17964
17965 2010-06-09  Bruno Haible  <bruno@clisp.org>
17966
17967         Avoid relocwrapper link errors due to gnulib replacement functions.
17968         * lib/areadlink.c: Use the system's malloc, realloc functions.
17969         (areadlink): Set errno to ENOMEM explicitly.
17970         * modules/areadlink (Depends-on): Remove malloc-posix.
17971         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17972
17973 2010-06-09  Bruno Haible  <bruno@clisp.org>
17974
17975         Avoid relocwrapper link errors due to gnulib replacement functions.
17976         * lib/canonicalize-lgpl.c: Use the system's malloc function.
17977         * lib/malloca.c: Likewise.
17978         * lib/relocatable.c: Likewise.
17979         * lib/progreloc.c: Use the system's malloc, sprintf functions.
17980         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
17981         * lib/setenv.c: Use the system's malloc, realloc functions.
17982         * lib/strerror.c: Use the system's sprintf function.
17983         Reported by Ben Pfaff <blp@cs.stanford.edu>.
17984
17985 2010-06-04  Bruno Haible  <bruno@clisp.org>
17986
17987         Prefer documented low-level autoconf macro names.
17988         * m4/lib-link.m4: Use m4_translit instead of translit.
17989         * m4/environ.m4: Likewise.
17990         * m4/mathfunc.m4: Likewise.
17991         * m4/onceonly.m4: Likewise.
17992         * m4/stdint.m4: Likewise.
17993         Suggested by Eric Blake.
17994
17995 2010-06-04  Martin Lambers  <marlam@marlam.de>
17996             Bruno Haible  <bruno@clisp.org>
17997
17998         havelib: Allow library names with '+' characters.
17999         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18000         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18001
18002 2010-06-09  Bruno Haible  <bruno@clisp.org>
18003
18004         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18005         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18006         realloc failed.
18007
18008 2010-06-08  Peter Simons  <simons@cryp.to>
18009
18010         maint.mk: make the news-check rule more configurable
18011         * top/maint.mk (news-check-lines-spec): New variable.
18012         (news-check): Use "sed -n 1,10p" in place of "head".
18013
18014 2010-06-07  Jim Meyering  <meyering@redhat.com>
18015
18016         do-release-commit-and-tag: fix typo in --help
18017         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18018
18019         regex: avoid new dead-code warning with gcc-4.6.0
18020         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18021         if-block containing a while-loop.  It's been unused for at least
18022         5 years.
18023
18024 2010-06-05  Bruno Haible  <bruno@clisp.org>
18025
18026         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18027         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18028
18029 2010-06-04  Bruno Haible  <bruno@clisp.org>
18030
18031         Update to GNU gettext 0.18.1.
18032         * modules/gettext (configure.ac): Require gettext infrastructure from
18033         version 0.18.1.
18034
18035 2010-06-03  Bruno Haible  <bruno@clisp.org>
18036
18037         Don't use AC_LIBOBJ with file names in subdirectories.
18038         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18039         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18040         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18041         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18042         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18043         gl_LIBUNISTRING_LIBSOURCE.
18044         (Makefile.am): Augment lib_SOURCES here, conditionally.
18045         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18046
18047 2010-06-03  Bruno Haible  <bruno@clisp.org>
18048
18049         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18050         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18051         expansion does not end with a newline.
18052         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18053         unnecessary newline.
18054
18055 2010-06-03  Bruno Haible  <bruno@clisp.org>
18056
18057         Reduce dependencies.
18058         * tests/test-quotearg.h: New file, extracted from
18059         tests/test-quotearg.c.
18060         * tests/test-quotearg-simple.c: New file, extracted from
18061         tests/test-quotearg.c.
18062         * tests/test-quotearg.c: Don't include <ctype.h>.
18063         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18064         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18065         use_quote_double_quotes, use_quotearg_colon): Moved to
18066         tests/test-quotearg.h.
18067         (results_g, flag_results, custom_quotes, custom_results): Moved
18068         to tests/test-quotearg-simple.c.
18069         (main): Moved the part that does not depend on gettext to
18070         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18071         performed.
18072         * modules/quotearg-simple: New file.
18073         * modules/quotearg-simple-tests: New file.
18074         * modules/quotearg (Depends-on): Add quotearg-simple.
18075         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18076         (Files): Add tests/test-quotearg.h.
18077         Reported by Paolo Bonzini.
18078
18079 2010-06-03  Bruno Haible  <bruno@clisp.org>
18080
18081         Reduce dependencies.
18082         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18083
18084 2010-06-03  Bruno Haible  <bruno@clisp.org>
18085
18086         time: Undefine more broken macros.
18087         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18088         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18089         Reported by Eric Blake.
18090
18091 2010-06-03  Bruno Haible  <bruno@clisp.org>
18092
18093         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18094         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18095         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18096         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18097         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18098         Reported by Ludovic Courtès <ludo@gnu.org>.
18099
18100 2010-06-02  Eric Blake  <eblake@redhat.com>
18101
18102         time: work with mingw + pthreads-win32 library
18103         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18104         if timespec is defined only in pthread.h.
18105         * modules/time (Makefile.am): Substitute it.
18106         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18107         <pthread.h>, when needed.
18108         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18109         from the library.
18110
18111 2010-05-31  Bruno Haible  <bruno@clisp.org>
18112
18113         Avoid expanding two macros in the wrong order.
18114         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18115         gl_LIBUNISTRING if it is defined.
18116         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18117         autoconf >= 2.64.
18118         Reported by Ludovic Courtès <ludo@gnu.org>.
18119
18120 2010-05-27  Jim Meyering  <meyering@redhat.com>
18121
18122         maint.mk: also prohibit "#undef" of always-defined symbols
18123         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18124         Allow more than one space before the symbol name.
18125         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18126         the regexp uses alternation.
18127
18128 2010-05-26  Eric Blake  <eblake@redhat.com>
18129
18130         maint.mk: avoid echo -e
18131         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18132         Convert all uses of echo -* to printf.
18133         Reported by Matthias Bolte.
18134
18135 2010-05-25  Bruno Haible  <bruno@clisp.org>
18136
18137         Update to GNU gettext 0.18, part 2.
18138         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18139         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18140
18141 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18142
18143         Add missing include in test-pwrite.c.
18144         * tests/test-pwrite.c: Include string.h, for strcmp.
18145
18146 2010-05-24  Bruno Haible  <bruno@clisp.org>
18147
18148         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18149
18150 2010-05-24  Bruno Haible  <bruno@clisp.org>
18151
18152         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18153         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18154         iconveh_error argument.
18155         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18156         U_STRCONV_TO_LOCALE.
18157         * lib/unistr/u16-strcoll.c: Likewise.
18158         * lib/unistr/u32-strcoll.c: Likewise.
18159         * modules/unistr/u8-strcoll (Depends-on): Add
18160         uniconv/u8-strconv-to-enc, localcharset. Remove
18161         uniconv/u8-strconv-to-locale.
18162         (configure.ac): Bump version number.
18163         * modules/unistr/u16-strcoll (Depends-on): Add
18164         uniconv/u16-strconv-to-enc, localcharset. Remove
18165         uniconv/u16-strconv-to-locale.
18166         (configure.ac): Bump version number.
18167         * modules/unistr/u32-strcoll (Depends-on): Add
18168         uniconv/u32-strconv-to-enc, localcharset. Remove
18169         uniconv/u32-strconv-to-locale.
18170         (configure.ac): Bump version number.
18171
18172 2010-05-24  Bruno Haible  <bruno@clisp.org>
18173
18174         Avoid a test failure on NetBSD 5.0.
18175         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18176         an iconv() bug.
18177
18178 2010-05-24  Bruno Haible  <bruno@clisp.org>
18179
18180         Adjust #include directive style.
18181         * modules/regex (Includes): Recommend to write <regex.h>.
18182
18183 2010-05-24  Bruno Haible  <bruno@clisp.org>
18184
18185         regex: Don't require alloca.
18186         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18187         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18188         only inside if (0).
18189
18190 2010-05-23  Jim Meyering  <meyering@redhat.com>
18191
18192         test-renameat.c: include <sys/stat.h>
18193         * tests/test-renameat.c: Include <sys/stat.h>; required for
18194         definition of S_IS* macros.
18195
18196 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18197
18198         Update maintainer documentation for 'relocatable-prog' module.
18199         * doc/relocatable-maint.texi: Update.
18200         Comments by Bruno Haible.
18201
18202 2010-05-23  Bruno Haible  <bruno@clisp.org>
18203
18204         git-merge-changelog: Enable --split-merged-entry by default.
18205         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18206         (usage): Don't mention this option any more.
18207         Reported by Ralf Wildenhues.
18208
18209 2010-05-23  Jim Meyering  <meyering@redhat.com>
18210
18211         test-pwrite: do not leave behind a test file named "out"
18212         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18213         The trivial-looking use of init.sh is really necessary.
18214         It ensures that the temporary file, "out", is created in
18215         a temporary directory, and removed upon termination.
18216         * tests/test-pwrite.sh: Re-add file.
18217         * modules/pwrite-tests: Reference it.
18218
18219 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18220
18221         Fix output redirection buglet in init.sh.
18222         * tests/init.sh: Fix redirection of stderr.
18223
18224 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18225
18226         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18227
18228 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18229
18230         * modules/valgrind-tests: New file.
18231         * m4/valgrind-tests.m4: New file.
18232         * doc/valgrind-tests.texi: New file.
18233         * doc/gnulib.texi (Running self-tests under valgrind): New
18234         section.
18235
18236 2010-05-19  Bruno Haible  <bruno@clisp.org>
18237
18238         Clean up dead code in recent commit.
18239         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18240         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18241         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18242         Suggested by Paolo Bonzini.
18243
18244 2010-05-19  Bruno Haible  <bruno@clisp.org>
18245
18246         Avoid valgrind error reports from libunistring.
18247         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18248         * modules/libunistring (Files): Add it.
18249         * modules/libunistring-optional (Files): Likewise.
18250
18251 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18252             Bruno Haible  <bruno@clisp.org>
18253
18254         New module 'libunistring-optional'.
18255         * modules/libunistring-optional: New file.
18256         * m4/libunistring-base.m4: New file.
18257         * m4/libunistring-optional.m4: New file.
18258         * lib/unicase.in.h: Renamed from lib/unicase.h.
18259         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18260         * lib/unictype.in.h: Renamed from lib/unictype.h.
18261         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18262         * lib/uniname.in.h: Renamed from lib/uniname.h.
18263         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18264         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18265         * lib/unistr.in.h: Renamed from lib/unistr.h.
18266         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18267         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18268         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18269         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18270         gl_LIBUNISTRING. If the library was found, determine the installed
18271         version and set LIBUNISTRING_VERSION.
18272         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18273         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18274         handle a configuration option --with-included-libunistring.
18275         * modules/libunistring (Files): Add m4/absolute-header.m4.
18276         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18277         Add m4/libunistring-base.m4.
18278         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18279         (Makefile.am): Build unicase.h from unicase.in.h.
18280         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18281         Add m4/libunistring-base.m4.
18282         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18283         (Makefile.am): Build uniconv.h from uniconv.in.h.
18284         * modules/unictype/base (Files): Use unictype.in.h instead of
18285         unictype.h. Add m4/libunistring-base.m4.
18286         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18287         (Makefile.am): Build unictype.h from unictype.in.h.
18288         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18289         Add m4/libunistring-base.m4.
18290         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18291         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18292         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18293         Add m4/libunistring-base.m4.
18294         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18295         (Makefile.am): Build uniname.h from uniname.in.h.
18296         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18297         Add m4/libunistring-base.m4.
18298         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18299         (Makefile.am): Build uninorm.h from uninorm.in.h.
18300         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18301         unistdio.h. Add m4/libunistring-base.m4.
18302         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18303         (Makefile.am): Build unistdio.h from unistdio.in.h.
18304         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18305         Add m4/libunistring-base.m4.
18306         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18307         (Makefile.am): Build unistr.h from unistr.in.h.
18308         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18309         Add m4/libunistring-base.m4.
18310         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18311         (Makefile.am): Build unitypes.h from unitypes.in.h.
18312         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18313         Add m4/libunistring-base.m4.
18314         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18315         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18316         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18317         uniwidth.h. Add m4/libunistring-base.m4.
18318         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18319         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18320         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18321         instead of augmenting lib_SOURCES.
18322         * modules/unicase/empty-suffix-context: Likewise.
18323         * modules/unicase/locale-language: Likewise.
18324         * modules/unicase/tolower: Likewise.
18325         * modules/unicase/totitle: Likewise.
18326         * modules/unicase/toupper: Likewise.
18327         * modules/unicase/u8-casecmp: Likewise.
18328         * modules/unicase/u8-casecoll: Likewise.
18329         * modules/unicase/u8-casefold: Likewise.
18330         * modules/unicase/u8-casexfrm: Likewise.
18331         * modules/unicase/u8-ct-casefold: Likewise.
18332         * modules/unicase/u8-ct-tolower: Likewise.
18333         * modules/unicase/u8-ct-totitle: Likewise.
18334         * modules/unicase/u8-ct-toupper: Likewise.
18335         * modules/unicase/u8-is-cased: Likewise.
18336         * modules/unicase/u8-is-casefolded: Likewise.
18337         * modules/unicase/u8-is-lowercase: Likewise.
18338         * modules/unicase/u8-is-titlecase: Likewise.
18339         * modules/unicase/u8-is-uppercase: Likewise.
18340         * modules/unicase/u8-prefix-context: Likewise.
18341         * modules/unicase/u8-suffix-context: Likewise.
18342         * modules/unicase/u8-tolower: Likewise.
18343         * modules/unicase/u8-totitle: Likewise.
18344         * modules/unicase/u8-toupper: Likewise.
18345         * modules/unicase/u16-casecmp: Likewise.
18346         * modules/unicase/u16-casecoll: Likewise.
18347         * modules/unicase/u16-casefold: Likewise.
18348         * modules/unicase/u16-casexfrm: Likewise.
18349         * modules/unicase/u16-ct-casefold: Likewise.
18350         * modules/unicase/u16-ct-tolower: Likewise.
18351         * modules/unicase/u16-ct-totitle: Likewise.
18352         * modules/unicase/u16-ct-toupper: Likewise.
18353         * modules/unicase/u16-is-cased: Likewise.
18354         * modules/unicase/u16-is-casefolded: Likewise.
18355         * modules/unicase/u16-is-lowercase: Likewise.
18356         * modules/unicase/u16-is-titlecase: Likewise.
18357         * modules/unicase/u16-is-uppercase: Likewise.
18358         * modules/unicase/u16-prefix-context: Likewise.
18359         * modules/unicase/u16-suffix-context: Likewise.
18360         * modules/unicase/u16-tolower: Likewise.
18361         * modules/unicase/u16-totitle: Likewise.
18362         * modules/unicase/u16-toupper: Likewise.
18363         * modules/unicase/u32-casecmp: Likewise.
18364         * modules/unicase/u32-casecoll: Likewise.
18365         * modules/unicase/u32-casefold: Likewise.
18366         * modules/unicase/u32-casexfrm: Likewise.
18367         * modules/unicase/u32-ct-casefold: Likewise.
18368         * modules/unicase/u32-ct-tolower: Likewise.
18369         * modules/unicase/u32-ct-totitle: Likewise.
18370         * modules/unicase/u32-ct-toupper: Likewise.
18371         * modules/unicase/u32-is-cased: Likewise.
18372         * modules/unicase/u32-is-casefolded: Likewise.
18373         * modules/unicase/u32-is-lowercase: Likewise.
18374         * modules/unicase/u32-is-titlecase: Likewise.
18375         * modules/unicase/u32-is-uppercase: Likewise.
18376         * modules/unicase/u32-prefix-context: Likewise.
18377         * modules/unicase/u32-suffix-context: Likewise.
18378         * modules/unicase/u32-tolower: Likewise.
18379         * modules/unicase/u32-totitle: Likewise.
18380         * modules/unicase/u32-toupper: Likewise.
18381         * modules/unicase/ulc-casecmp: Likewise.
18382         * modules/unicase/ulc-casecoll: Likewise.
18383         * modules/unicase/ulc-casexfrm: Likewise.
18384         * modules/uniconv/u8-conv-from-enc: Likewise.
18385         * modules/uniconv/u8-conv-to-enc: Likewise.
18386         * modules/uniconv/u8-strconv-from-enc: Likewise.
18387         * modules/uniconv/u8-strconv-from-locale: Likewise.
18388         * modules/uniconv/u8-strconv-to-enc: Likewise.
18389         * modules/uniconv/u8-strconv-to-locale: Likewise.
18390         * modules/uniconv/u16-conv-from-enc: Likewise.
18391         * modules/uniconv/u16-conv-to-enc: Likewise.
18392         * modules/uniconv/u16-strconv-from-enc: Likewise.
18393         * modules/uniconv/u16-strconv-from-locale: Likewise.
18394         * modules/uniconv/u16-strconv-to-enc: Likewise.
18395         * modules/uniconv/u16-strconv-to-locale: Likewise.
18396         * modules/uniconv/u32-conv-from-enc: Likewise.
18397         * modules/uniconv/u32-conv-to-enc: Likewise.
18398         * modules/uniconv/u32-strconv-from-enc: Likewise.
18399         * modules/uniconv/u32-strconv-from-locale: Likewise.
18400         * modules/uniconv/u32-strconv-to-enc: Likewise.
18401         * modules/uniconv/u32-strconv-to-locale: Likewise.
18402         * modules/unictype/bidicategory-byname: Likewise.
18403         * modules/unictype/bidicategory-name: Likewise.
18404         * modules/unictype/bidicategory-of: Likewise.
18405         * modules/unictype/bidicategory-test: Likewise.
18406         * modules/unictype/block-list: Likewise.
18407         * modules/unictype/block-test: Likewise.
18408         * modules/unictype/category-C: Likewise.
18409         * modules/unictype/category-Cc: Likewise.
18410         * modules/unictype/category-Cf: Likewise.
18411         * modules/unictype/category-Cn: Likewise.
18412         * modules/unictype/category-Co: Likewise.
18413         * modules/unictype/category-Cs: Likewise.
18414         * modules/unictype/category-L: Likewise.
18415         * modules/unictype/category-Ll: Likewise.
18416         * modules/unictype/category-Lm: Likewise.
18417         * modules/unictype/category-Lo: Likewise.
18418         * modules/unictype/category-Lt: Likewise.
18419         * modules/unictype/category-Lu: Likewise.
18420         * modules/unictype/category-M: Likewise.
18421         * modules/unictype/category-Mc: Likewise.
18422         * modules/unictype/category-Me: Likewise.
18423         * modules/unictype/category-Mn: Likewise.
18424         * modules/unictype/category-N: Likewise.
18425         * modules/unictype/category-Nd: Likewise.
18426         * modules/unictype/category-Nl: Likewise.
18427         * modules/unictype/category-No: Likewise.
18428         * modules/unictype/category-P: Likewise.
18429         * modules/unictype/category-Pc: Likewise.
18430         * modules/unictype/category-Pd: Likewise.
18431         * modules/unictype/category-Pe: Likewise.
18432         * modules/unictype/category-Pf: Likewise.
18433         * modules/unictype/category-Pi: Likewise.
18434         * modules/unictype/category-Po: Likewise.
18435         * modules/unictype/category-Ps: Likewise.
18436         * modules/unictype/category-S: Likewise.
18437         * modules/unictype/category-Sc: Likewise.
18438         * modules/unictype/category-Sk: Likewise.
18439         * modules/unictype/category-Sm: Likewise.
18440         * modules/unictype/category-So: Likewise.
18441         * modules/unictype/category-Z: Likewise.
18442         * modules/unictype/category-Zl: Likewise.
18443         * modules/unictype/category-Zp: Likewise.
18444         * modules/unictype/category-Zs: Likewise.
18445         * modules/unictype/category-and: Likewise.
18446         * modules/unictype/category-and-not: Likewise.
18447         * modules/unictype/category-byname: Likewise.
18448         * modules/unictype/category-name: Likewise.
18449         * modules/unictype/category-none: Likewise.
18450         * modules/unictype/category-of: Likewise.
18451         * modules/unictype/category-or: Likewise.
18452         * modules/unictype/category-test: Likewise.
18453         * modules/unictype/combining-class: Likewise.
18454         * modules/unictype/ctype-alnum: Likewise.
18455         * modules/unictype/ctype-alpha: Likewise.
18456         * modules/unictype/ctype-blank: Likewise.
18457         * modules/unictype/ctype-cntrl: Likewise.
18458         * modules/unictype/ctype-digit: Likewise.
18459         * modules/unictype/ctype-graph: Likewise.
18460         * modules/unictype/ctype-lower: Likewise.
18461         * modules/unictype/ctype-print: Likewise.
18462         * modules/unictype/ctype-punct: Likewise.
18463         * modules/unictype/ctype-space: Likewise.
18464         * modules/unictype/ctype-upper: Likewise.
18465         * modules/unictype/ctype-xdigit: Likewise.
18466         * modules/unictype/decimal-digit: Likewise.
18467         * modules/unictype/digit: Likewise.
18468         * modules/unictype/mirror: Likewise.
18469         * modules/unictype/numeric: Likewise.
18470         * modules/unictype/property-alphabetic: Likewise.
18471         * modules/unictype/property-ascii-hex-digit: Likewise.
18472         * modules/unictype/property-bidi-arabic-digit: Likewise.
18473         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18474         * modules/unictype/property-bidi-block-separator: Likewise.
18475         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18476         * modules/unictype/property-bidi-common-separator: Likewise.
18477         * modules/unictype/property-bidi-control: Likewise.
18478         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18479         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18480         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18481         * modules/unictype/property-bidi-european-digit: Likewise.
18482         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18483         * modules/unictype/property-bidi-left-to-right: Likewise.
18484         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18485         * modules/unictype/property-bidi-other-neutral: Likewise.
18486         * modules/unictype/property-bidi-pdf: Likewise.
18487         * modules/unictype/property-bidi-segment-separator: Likewise.
18488         * modules/unictype/property-bidi-whitespace: Likewise.
18489         * modules/unictype/property-byname: Likewise.
18490         * modules/unictype/property-combining: Likewise.
18491         * modules/unictype/property-composite: Likewise.
18492         * modules/unictype/property-currency-symbol: Likewise.
18493         * modules/unictype/property-dash: Likewise.
18494         * modules/unictype/property-decimal-digit: Likewise.
18495         * modules/unictype/property-default-ignorable-code-point: Likewise.
18496         * modules/unictype/property-deprecated: Likewise.
18497         * modules/unictype/property-diacritic: Likewise.
18498         * modules/unictype/property-extender: Likewise.
18499         * modules/unictype/property-format-control: Likewise.
18500         * modules/unictype/property-grapheme-base: Likewise.
18501         * modules/unictype/property-grapheme-extend: Likewise.
18502         * modules/unictype/property-grapheme-link: Likewise.
18503         * modules/unictype/property-hex-digit: Likewise.
18504         * modules/unictype/property-hyphen: Likewise.
18505         * modules/unictype/property-id-continue: Likewise.
18506         * modules/unictype/property-id-start: Likewise.
18507         * modules/unictype/property-ideographic: Likewise.
18508         * modules/unictype/property-ids-binary-operator: Likewise.
18509         * modules/unictype/property-ids-trinary-operator: Likewise.
18510         * modules/unictype/property-ignorable-control: Likewise.
18511         * modules/unictype/property-iso-control: Likewise.
18512         * modules/unictype/property-join-control: Likewise.
18513         * modules/unictype/property-left-of-pair: Likewise.
18514         * modules/unictype/property-line-separator: Likewise.
18515         * modules/unictype/property-logical-order-exception: Likewise.
18516         * modules/unictype/property-lowercase: Likewise.
18517         * modules/unictype/property-math: Likewise.
18518         * modules/unictype/property-non-break: Likewise.
18519         * modules/unictype/property-not-a-character: Likewise.
18520         * modules/unictype/property-numeric: Likewise.
18521         * modules/unictype/property-other-alphabetic: Likewise.
18522         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18523         * modules/unictype/property-other-grapheme-extend: Likewise.
18524         * modules/unictype/property-other-id-continue: Likewise.
18525         * modules/unictype/property-other-id-start: Likewise.
18526         * modules/unictype/property-other-lowercase: Likewise.
18527         * modules/unictype/property-other-math: Likewise.
18528         * modules/unictype/property-other-uppercase: Likewise.
18529         * modules/unictype/property-paired-punctuation: Likewise.
18530         * modules/unictype/property-paragraph-separator: Likewise.
18531         * modules/unictype/property-pattern-syntax: Likewise.
18532         * modules/unictype/property-pattern-white-space: Likewise.
18533         * modules/unictype/property-private-use: Likewise.
18534         * modules/unictype/property-punctuation: Likewise.
18535         * modules/unictype/property-quotation-mark: Likewise.
18536         * modules/unictype/property-radical: Likewise.
18537         * modules/unictype/property-sentence-terminal: Likewise.
18538         * modules/unictype/property-soft-dotted: Likewise.
18539         * modules/unictype/property-space: Likewise.
18540         * modules/unictype/property-terminal-punctuation: Likewise.
18541         * modules/unictype/property-test: Likewise.
18542         * modules/unictype/property-titlecase: Likewise.
18543         * modules/unictype/property-unassigned-code-value: Likewise.
18544         * modules/unictype/property-unified-ideograph: Likewise.
18545         * modules/unictype/property-uppercase: Likewise.
18546         * modules/unictype/property-variation-selector: Likewise.
18547         * modules/unictype/property-white-space: Likewise.
18548         * modules/unictype/property-xid-continue: Likewise.
18549         * modules/unictype/property-xid-start: Likewise.
18550         * modules/unictype/property-zero-width: Likewise.
18551         * modules/unictype/scripts: Likewise.
18552         * modules/unictype/syntax-c-ident: Likewise.
18553         * modules/unictype/syntax-c-whitespace: Likewise.
18554         * modules/unictype/syntax-java-ident: Likewise.
18555         * modules/unictype/syntax-java-whitespace: Likewise.
18556         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18557         * modules/unilbrk/u8-width-linebreaks: Likewise.
18558         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18559         * modules/unilbrk/u16-width-linebreaks: Likewise.
18560         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18561         * modules/unilbrk/u32-width-linebreaks: Likewise.
18562         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18563         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18564         * modules/uniname/uniname: Likewise.
18565         * modules/uninorm/canonical-decomposition: Likewise.
18566         * modules/uninorm/composition: Likewise.
18567         * modules/uninorm/decomposing-form: Likewise.
18568         * modules/uninorm/decomposition: Likewise.
18569         * modules/uninorm/filter: Likewise.
18570         * modules/uninorm/nfc: Likewise.
18571         * modules/uninorm/nfd: Likewise.
18572         * modules/uninorm/nfkc: Likewise.
18573         * modules/uninorm/nfkd: Likewise.
18574         * modules/uninorm/u8-normalize: Likewise.
18575         * modules/uninorm/u8-normcmp: Likewise.
18576         * modules/uninorm/u8-normcoll: Likewise.
18577         * modules/uninorm/u8-normxfrm: Likewise.
18578         * modules/uninorm/u16-normalize: Likewise.
18579         * modules/uninorm/u16-normcmp: Likewise.
18580         * modules/uninorm/u16-normcoll: Likewise.
18581         * modules/uninorm/u16-normxfrm: Likewise.
18582         * modules/uninorm/u32-normalize: Likewise.
18583         * modules/uninorm/u32-normcmp: Likewise.
18584         * modules/uninorm/u32-normcoll: Likewise.
18585         * modules/uninorm/u32-normxfrm: Likewise.
18586         * modules/unistdio/u8-asnprintf: Likewise.
18587         * modules/unistdio/u8-asprintf: Likewise.
18588         * modules/unistdio/u8-snprintf: Likewise.
18589         * modules/unistdio/u8-sprintf: Likewise.
18590         * modules/unistdio/u8-u8-asnprintf: Likewise.
18591         * modules/unistdio/u8-u8-asprintf: Likewise.
18592         * modules/unistdio/u8-u8-snprintf: Likewise.
18593         * modules/unistdio/u8-u8-sprintf: Likewise.
18594         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18595         * modules/unistdio/u8-u8-vasprintf: Likewise.
18596         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18597         * modules/unistdio/u8-u8-vsprintf: Likewise.
18598         * modules/unistdio/u8-vasnprintf: Likewise.
18599         * modules/unistdio/u8-vasprintf: Likewise.
18600         * modules/unistdio/u8-vsnprintf: Likewise.
18601         * modules/unistdio/u8-vsprintf: Likewise.
18602         * modules/unistdio/u16-asnprintf: Likewise.
18603         * modules/unistdio/u16-asprintf: Likewise.
18604         * modules/unistdio/u16-snprintf: Likewise.
18605         * modules/unistdio/u16-sprintf: Likewise.
18606         * modules/unistdio/u16-u16-asnprintf: Likewise.
18607         * modules/unistdio/u16-u16-asprintf: Likewise.
18608         * modules/unistdio/u16-u16-snprintf: Likewise.
18609         * modules/unistdio/u16-u16-sprintf: Likewise.
18610         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18611         * modules/unistdio/u16-u16-vasprintf: Likewise.
18612         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18613         * modules/unistdio/u16-u16-vsprintf: Likewise.
18614         * modules/unistdio/u16-vasnprintf: Likewise.
18615         * modules/unistdio/u16-vasprintf: Likewise.
18616         * modules/unistdio/u16-vsnprintf: Likewise.
18617         * modules/unistdio/u16-vsprintf: Likewise.
18618         * modules/unistdio/u32-asnprintf: Likewise.
18619         * modules/unistdio/u32-asprintf: Likewise.
18620         * modules/unistdio/u32-snprintf: Likewise.
18621         * modules/unistdio/u32-sprintf: Likewise.
18622         * modules/unistdio/u32-u32-asnprintf: Likewise.
18623         * modules/unistdio/u32-u32-asprintf: Likewise.
18624         * modules/unistdio/u32-u32-snprintf: Likewise.
18625         * modules/unistdio/u32-u32-sprintf: Likewise.
18626         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18627         * modules/unistdio/u32-u32-vasprintf: Likewise.
18628         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18629         * modules/unistdio/u32-u32-vsprintf: Likewise.
18630         * modules/unistdio/u32-vasnprintf: Likewise.
18631         * modules/unistdio/u32-vasprintf: Likewise.
18632         * modules/unistdio/u32-vsnprintf: Likewise.
18633         * modules/unistdio/u32-vsprintf: Likewise.
18634         * modules/unistdio/ulc-asnprintf: Likewise.
18635         * modules/unistdio/ulc-asprintf: Likewise.
18636         * modules/unistdio/ulc-fprintf: Likewise.
18637         * modules/unistdio/ulc-snprintf: Likewise.
18638         * modules/unistdio/ulc-sprintf: Likewise.
18639         * modules/unistdio/ulc-vasnprintf: Likewise.
18640         * modules/unistdio/ulc-vasprintf: Likewise.
18641         * modules/unistdio/ulc-vfprintf: Likewise.
18642         * modules/unistdio/ulc-vsnprintf: Likewise.
18643         * modules/unistdio/ulc-vsprintf: Likewise.
18644         * modules/unistr/u8-check: Likewise.
18645         * modules/unistr/u8-chr: Likewise.
18646         * modules/unistr/u8-cmp: Likewise.
18647         * modules/unistr/u8-cmp2: Likewise.
18648         * modules/unistr/u8-cpy: Likewise.
18649         * modules/unistr/u8-cpy-alloc: Likewise.
18650         * modules/unistr/u8-endswith: Likewise.
18651         * modules/unistr/u8-mblen: Likewise.
18652         * modules/unistr/u8-mbsnlen: Likewise.
18653         * modules/unistr/u8-mbtouc: Likewise.
18654         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18655         * modules/unistr/u8-mbtoucr: Likewise.
18656         * modules/unistr/u8-move: Likewise.
18657         * modules/unistr/u8-next: Likewise.
18658         * modules/unistr/u8-prev: Likewise.
18659         * modules/unistr/u8-set: Likewise.
18660         * modules/unistr/u8-startswith: Likewise.
18661         * modules/unistr/u8-stpcpy: Likewise.
18662         * modules/unistr/u8-stpncpy: Likewise.
18663         * modules/unistr/u8-strcat: Likewise.
18664         * modules/unistr/u8-strchr: Likewise.
18665         * modules/unistr/u8-strcmp: Likewise.
18666         * modules/unistr/u8-strcoll: Likewise.
18667         * modules/unistr/u8-strcpy: Likewise.
18668         * modules/unistr/u8-strcspn: Likewise.
18669         * modules/unistr/u8-strdup: Likewise.
18670         * modules/unistr/u8-strlen: Likewise.
18671         * modules/unistr/u8-strmblen: Likewise.
18672         * modules/unistr/u8-strmbtouc: Likewise.
18673         * modules/unistr/u8-strncat: Likewise.
18674         * modules/unistr/u8-strncmp: Likewise.
18675         * modules/unistr/u8-strncpy: Likewise.
18676         * modules/unistr/u8-strnlen: Likewise.
18677         * modules/unistr/u8-strpbrk: Likewise.
18678         * modules/unistr/u8-strrchr: Likewise.
18679         * modules/unistr/u8-strspn: Likewise.
18680         * modules/unistr/u8-strstr: Likewise.
18681         * modules/unistr/u8-strtok: Likewise.
18682         * modules/unistr/u8-to-u16: Likewise.
18683         * modules/unistr/u8-to-u32: Likewise.
18684         * modules/unistr/u8-uctomb: Likewise.
18685         * modules/unistr/u16-check: Likewise.
18686         * modules/unistr/u16-chr: Likewise.
18687         * modules/unistr/u16-cmp: Likewise.
18688         * modules/unistr/u16-cmp2: Likewise.
18689         * modules/unistr/u16-cpy: Likewise.
18690         * modules/unistr/u16-cpy-alloc: Likewise.
18691         * modules/unistr/u16-endswith: Likewise.
18692         * modules/unistr/u16-mblen: Likewise.
18693         * modules/unistr/u16-mbsnlen: Likewise.
18694         * modules/unistr/u16-mbtouc: Likewise.
18695         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18696         * modules/unistr/u16-mbtoucr: Likewise.
18697         * modules/unistr/u16-move: Likewise.
18698         * modules/unistr/u16-next: Likewise.
18699         * modules/unistr/u16-prev: Likewise.
18700         * modules/unistr/u16-set: Likewise.
18701         * modules/unistr/u16-startswith: Likewise.
18702         * modules/unistr/u16-stpcpy: Likewise.
18703         * modules/unistr/u16-stpncpy: Likewise.
18704         * modules/unistr/u16-strcat: Likewise.
18705         * modules/unistr/u16-strchr: Likewise.
18706         * modules/unistr/u16-strcmp: Likewise.
18707         * modules/unistr/u16-strcoll: Likewise.
18708         * modules/unistr/u16-strcpy: Likewise.
18709         * modules/unistr/u16-strcspn: Likewise.
18710         * modules/unistr/u16-strdup: Likewise.
18711         * modules/unistr/u16-strlen: Likewise.
18712         * modules/unistr/u16-strmblen: Likewise.
18713         * modules/unistr/u16-strmbtouc: Likewise.
18714         * modules/unistr/u16-strncat: Likewise.
18715         * modules/unistr/u16-strncmp: Likewise.
18716         * modules/unistr/u16-strncpy: Likewise.
18717         * modules/unistr/u16-strnlen: Likewise.
18718         * modules/unistr/u16-strpbrk: Likewise.
18719         * modules/unistr/u16-strrchr: Likewise.
18720         * modules/unistr/u16-strspn: Likewise.
18721         * modules/unistr/u16-strstr: Likewise.
18722         * modules/unistr/u16-strtok: Likewise.
18723         * modules/unistr/u16-to-u32: Likewise.
18724         * modules/unistr/u16-to-u8: Likewise.
18725         * modules/unistr/u16-uctomb: Likewise.
18726         * modules/unistr/u32-check: Likewise.
18727         * modules/unistr/u32-chr: Likewise.
18728         * modules/unistr/u32-cmp: Likewise.
18729         * modules/unistr/u32-cmp2: Likewise.
18730         * modules/unistr/u32-cpy: Likewise.
18731         * modules/unistr/u32-cpy-alloc: Likewise.
18732         * modules/unistr/u32-endswith: Likewise.
18733         * modules/unistr/u32-mblen: Likewise.
18734         * modules/unistr/u32-mbsnlen: Likewise.
18735         * modules/unistr/u32-mbtouc: Likewise.
18736         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18737         * modules/unistr/u32-mbtoucr: Likewise.
18738         * modules/unistr/u32-move: Likewise.
18739         * modules/unistr/u32-next: Likewise.
18740         * modules/unistr/u32-prev: Likewise.
18741         * modules/unistr/u32-set: Likewise.
18742         * modules/unistr/u32-startswith: Likewise.
18743         * modules/unistr/u32-stpcpy: Likewise.
18744         * modules/unistr/u32-stpncpy: Likewise.
18745         * modules/unistr/u32-strcat: Likewise.
18746         * modules/unistr/u32-strchr: Likewise.
18747         * modules/unistr/u32-strcmp: Likewise.
18748         * modules/unistr/u32-strcoll: Likewise.
18749         * modules/unistr/u32-strcpy: Likewise.
18750         * modules/unistr/u32-strcspn: Likewise.
18751         * modules/unistr/u32-strdup: Likewise.
18752         * modules/unistr/u32-strlen: Likewise.
18753         * modules/unistr/u32-strmblen: Likewise.
18754         * modules/unistr/u32-strmbtouc: Likewise.
18755         * modules/unistr/u32-strncat: Likewise.
18756         * modules/unistr/u32-strncmp: Likewise.
18757         * modules/unistr/u32-strncpy: Likewise.
18758         * modules/unistr/u32-strnlen: Likewise.
18759         * modules/unistr/u32-strpbrk: Likewise.
18760         * modules/unistr/u32-strrchr: Likewise.
18761         * modules/unistr/u32-strspn: Likewise.
18762         * modules/unistr/u32-strstr: Likewise.
18763         * modules/unistr/u32-strtok: Likewise.
18764         * modules/unistr/u32-to-u16: Likewise.
18765         * modules/unistr/u32-to-u8: Likewise.
18766         * modules/unistr/u32-uctomb: Likewise.
18767         * modules/uniwbrk/u8-wordbreaks: Likewise.
18768         * modules/uniwbrk/u16-wordbreaks: Likewise.
18769         * modules/uniwbrk/u32-wordbreaks: Likewise.
18770         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18771         * modules/uniwbrk/wordbreak-property: Likewise.
18772         * modules/uniwidth/u8-strwidth: Likewise.
18773         * modules/uniwidth/u8-width: Likewise.
18774         * modules/uniwidth/u16-strwidth: Likewise.
18775         * modules/uniwidth/u16-width: Likewise.
18776         * modules/uniwidth/u32-strwidth: Likewise.
18777         * modules/uniwidth/u32-width: Likewise.
18778         * modules/uniwidth/width: Likewise.
18779         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18780         with $(LIBUNISTRING).
18781         * modules/unicase/ignorable-tests: Likewise.
18782         * modules/unicase/locale-language-tests: Likewise.
18783         * modules/unicase/tolower-tests: Likewise.
18784         * modules/unicase/totitle-tests: Likewise.
18785         * modules/unicase/toupper-tests: Likewise.
18786         * modules/unicase/u8-casecmp-tests: Likewise.
18787         * modules/unicase/u8-casecoll-tests: Likewise.
18788         * modules/unicase/u8-casefold-tests: Likewise.
18789         * modules/unicase/u8-is-cased-tests: Likewise.
18790         * modules/unicase/u8-is-casefolded-tests: Likewise.
18791         * modules/unicase/u8-is-lowercase-tests: Likewise.
18792         * modules/unicase/u8-is-titlecase-tests: Likewise.
18793         * modules/unicase/u8-is-uppercase-tests: Likewise.
18794         * modules/unicase/u8-tolower-tests: Likewise.
18795         * modules/unicase/u8-totitle-tests: Likewise.
18796         * modules/unicase/u8-toupper-tests: Likewise.
18797         * modules/unicase/u16-casecmp-tests: Likewise.
18798         * modules/unicase/u16-casecoll-tests: Likewise.
18799         * modules/unicase/u16-casefold-tests: Likewise.
18800         * modules/unicase/u16-is-cased-tests: Likewise.
18801         * modules/unicase/u16-is-casefolded-tests: Likewise.
18802         * modules/unicase/u16-is-lowercase-tests: Likewise.
18803         * modules/unicase/u16-is-titlecase-tests: Likewise.
18804         * modules/unicase/u16-is-uppercase-tests: Likewise.
18805         * modules/unicase/u16-tolower-tests: Likewise.
18806         * modules/unicase/u16-totitle-tests: Likewise.
18807         * modules/unicase/u16-toupper-tests: Likewise.
18808         * modules/unicase/u32-casecmp-tests: Likewise.
18809         * modules/unicase/u32-casecoll-tests: Likewise.
18810         * modules/unicase/u32-casefold-tests: Likewise.
18811         * modules/unicase/u32-is-cased-tests: Likewise.
18812         * modules/unicase/u32-is-casefolded-tests: Likewise.
18813         * modules/unicase/u32-is-lowercase-tests: Likewise.
18814         * modules/unicase/u32-is-titlecase-tests: Likewise.
18815         * modules/unicase/u32-is-uppercase-tests: Likewise.
18816         * modules/unicase/u32-tolower-tests: Likewise.
18817         * modules/unicase/u32-totitle-tests: Likewise.
18818         * modules/unicase/u32-toupper-tests: Likewise.
18819         * modules/unicase/ulc-casecmp-tests: Likewise.
18820         * modules/unicase/ulc-casecoll-tests: Likewise.
18821         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18822         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18823         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18824         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18825         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18826         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18827         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18828         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18829         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18830         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18831         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18832         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18833         * modules/unictype/bidicategory-byname-tests: Likewise.
18834         * modules/unictype/bidicategory-name-tests: Likewise.
18835         * modules/unictype/bidicategory-of-tests: Likewise.
18836         * modules/unictype/bidicategory-test-tests: Likewise.
18837         * modules/unictype/block-list-tests: Likewise.
18838         * modules/unictype/block-of-tests: Likewise.
18839         * modules/unictype/block-test-tests: Likewise.
18840         * modules/unictype/category-C-tests: Likewise.
18841         * modules/unictype/category-Cc-tests: Likewise.
18842         * modules/unictype/category-Cf-tests: Likewise.
18843         * modules/unictype/category-Cn-tests: Likewise.
18844         * modules/unictype/category-Co-tests: Likewise.
18845         * modules/unictype/category-Cs-tests: Likewise.
18846         * modules/unictype/category-L-tests: Likewise.
18847         * modules/unictype/category-Ll-tests: Likewise.
18848         * modules/unictype/category-Lm-tests: Likewise.
18849         * modules/unictype/category-Lo-tests: Likewise.
18850         * modules/unictype/category-Lt-tests: Likewise.
18851         * modules/unictype/category-Lu-tests: Likewise.
18852         * modules/unictype/category-M-tests: Likewise.
18853         * modules/unictype/category-Mc-tests: Likewise.
18854         * modules/unictype/category-Me-tests: Likewise.
18855         * modules/unictype/category-Mn-tests: Likewise.
18856         * modules/unictype/category-N-tests: Likewise.
18857         * modules/unictype/category-Nd-tests: Likewise.
18858         * modules/unictype/category-Nl-tests: Likewise.
18859         * modules/unictype/category-No-tests: Likewise.
18860         * modules/unictype/category-P-tests: Likewise.
18861         * modules/unictype/category-Pc-tests: Likewise.
18862         * modules/unictype/category-Pd-tests: Likewise.
18863         * modules/unictype/category-Pe-tests: Likewise.
18864         * modules/unictype/category-Pf-tests: Likewise.
18865         * modules/unictype/category-Pi-tests: Likewise.
18866         * modules/unictype/category-Po-tests: Likewise.
18867         * modules/unictype/category-Ps-tests: Likewise.
18868         * modules/unictype/category-S-tests: Likewise.
18869         * modules/unictype/category-Sc-tests: Likewise.
18870         * modules/unictype/category-Sk-tests: Likewise.
18871         * modules/unictype/category-Sm-tests: Likewise.
18872         * modules/unictype/category-So-tests: Likewise.
18873         * modules/unictype/category-Z-tests: Likewise.
18874         * modules/unictype/category-Zl-tests: Likewise.
18875         * modules/unictype/category-Zp-tests: Likewise.
18876         * modules/unictype/category-Zs-tests: Likewise.
18877         * modules/unictype/category-and-not-tests: Likewise.
18878         * modules/unictype/category-and-tests: Likewise.
18879         * modules/unictype/category-byname-tests: Likewise.
18880         * modules/unictype/category-name-tests: Likewise.
18881         * modules/unictype/category-none-tests: Likewise.
18882         * modules/unictype/category-of-tests: Likewise.
18883         * modules/unictype/category-or-tests: Likewise.
18884         * modules/unictype/category-test-withtable-tests: Likewise.
18885         * modules/unictype/combining-class-tests: Likewise.
18886         * modules/unictype/ctype-alnum-tests: Likewise.
18887         * modules/unictype/ctype-alpha-tests: Likewise.
18888         * modules/unictype/ctype-blank-tests: Likewise.
18889         * modules/unictype/ctype-cntrl-tests: Likewise.
18890         * modules/unictype/ctype-digit-tests: Likewise.
18891         * modules/unictype/ctype-graph-tests: Likewise.
18892         * modules/unictype/ctype-lower-tests: Likewise.
18893         * modules/unictype/ctype-print-tests: Likewise.
18894         * modules/unictype/ctype-punct-tests: Likewise.
18895         * modules/unictype/ctype-space-tests: Likewise.
18896         * modules/unictype/ctype-upper-tests: Likewise.
18897         * modules/unictype/ctype-xdigit-tests: Likewise.
18898         * modules/unictype/decimal-digit-tests: Likewise.
18899         * modules/unictype/digit-tests: Likewise.
18900         * modules/unictype/mirror-tests: Likewise.
18901         * modules/unictype/numeric-tests: Likewise.
18902         * modules/unictype/property-alphabetic-tests: Likewise.
18903         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18904         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18905         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18906         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18907         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18908         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18909         * modules/unictype/property-bidi-control-tests: Likewise.
18910         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18911         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18912         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18913         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18914         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18915         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18916         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18917         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18918         * modules/unictype/property-bidi-pdf-tests: Likewise.
18919         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18920         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18921         * modules/unictype/property-byname-tests: Likewise.
18922         * modules/unictype/property-combining-tests: Likewise.
18923         * modules/unictype/property-composite-tests: Likewise.
18924         * modules/unictype/property-currency-symbol-tests: Likewise.
18925         * modules/unictype/property-dash-tests: Likewise.
18926         * modules/unictype/property-decimal-digit-tests: Likewise.
18927         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18928         * modules/unictype/property-deprecated-tests: Likewise.
18929         * modules/unictype/property-diacritic-tests: Likewise.
18930         * modules/unictype/property-extender-tests: Likewise.
18931         * modules/unictype/property-format-control-tests: Likewise.
18932         * modules/unictype/property-grapheme-base-tests: Likewise.
18933         * modules/unictype/property-grapheme-extend-tests: Likewise.
18934         * modules/unictype/property-grapheme-link-tests: Likewise.
18935         * modules/unictype/property-hex-digit-tests: Likewise.
18936         * modules/unictype/property-hyphen-tests: Likewise.
18937         * modules/unictype/property-id-continue-tests: Likewise.
18938         * modules/unictype/property-id-start-tests: Likewise.
18939         * modules/unictype/property-ideographic-tests: Likewise.
18940         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18941         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18942         * modules/unictype/property-ignorable-control-tests: Likewise.
18943         * modules/unictype/property-iso-control-tests: Likewise.
18944         * modules/unictype/property-join-control-tests: Likewise.
18945         * modules/unictype/property-left-of-pair-tests: Likewise.
18946         * modules/unictype/property-line-separator-tests: Likewise.
18947         * modules/unictype/property-logical-order-exception-tests: Likewise.
18948         * modules/unictype/property-lowercase-tests: Likewise.
18949         * modules/unictype/property-math-tests: Likewise.
18950         * modules/unictype/property-non-break-tests: Likewise.
18951         * modules/unictype/property-not-a-character-tests: Likewise.
18952         * modules/unictype/property-numeric-tests: Likewise.
18953         * modules/unictype/property-other-alphabetic-tests: Likewise.
18954         * modules/unictype/property-other-default-ignorable-code-point-tests:
18955         Likewise.
18956         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
18957         * modules/unictype/property-other-id-continue-tests: Likewise.
18958         * modules/unictype/property-other-id-start-tests: Likewise.
18959         * modules/unictype/property-other-lowercase-tests: Likewise.
18960         * modules/unictype/property-other-math-tests: Likewise.
18961         * modules/unictype/property-other-uppercase-tests: Likewise.
18962         * modules/unictype/property-paired-punctuation-tests: Likewise.
18963         * modules/unictype/property-paragraph-separator-tests: Likewise.
18964         * modules/unictype/property-pattern-syntax-tests: Likewise.
18965         * modules/unictype/property-pattern-white-space-tests: Likewise.
18966         * modules/unictype/property-private-use-tests: Likewise.
18967         * modules/unictype/property-punctuation-tests: Likewise.
18968         * modules/unictype/property-quotation-mark-tests: Likewise.
18969         * modules/unictype/property-radical-tests: Likewise.
18970         * modules/unictype/property-sentence-terminal-tests: Likewise.
18971         * modules/unictype/property-soft-dotted-tests: Likewise.
18972         * modules/unictype/property-space-tests: Likewise.
18973         * modules/unictype/property-terminal-punctuation-tests: Likewise.
18974         * modules/unictype/property-test-tests: Likewise.
18975         * modules/unictype/property-titlecase-tests: Likewise.
18976         * modules/unictype/property-unassigned-code-value-tests: Likewise.
18977         * modules/unictype/property-unified-ideograph-tests: Likewise.
18978         * modules/unictype/property-uppercase-tests: Likewise.
18979         * modules/unictype/property-variation-selector-tests: Likewise.
18980         * modules/unictype/property-white-space-tests: Likewise.
18981         * modules/unictype/property-xid-continue-tests: Likewise.
18982         * modules/unictype/property-xid-start-tests: Likewise.
18983         * modules/unictype/property-zero-width-tests: Likewise.
18984         * modules/unictype/scripts-tests: Likewise.
18985         * modules/unictype/syntax-c-ident-tests: Likewise.
18986         * modules/unictype/syntax-c-whitespace-tests: Likewise.
18987         * modules/unictype/syntax-java-ident-tests: Likewise.
18988         * modules/unictype/syntax-java-whitespace-tests: Likewise.
18989         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
18990         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
18991         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
18992         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
18993         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
18994         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
18995         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
18996         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
18997         * modules/uniname/uniname-tests: Likewise.
18998         * modules/uninorm/canonical-decomposition-tests: Likewise.
18999         * modules/uninorm/compat-decomposition-tests: Likewise.
19000         * modules/uninorm/composition-tests: Likewise.
19001         * modules/uninorm/decomposing-form-tests: Likewise.
19002         * modules/uninorm/decomposition-tests: Likewise.
19003         * modules/uninorm/filter-tests: Likewise.
19004         * modules/uninorm/nfc-tests: Likewise.
19005         * modules/uninorm/nfd-tests: Likewise.
19006         * modules/uninorm/nfkc-tests: Likewise.
19007         * modules/uninorm/nfkd-tests: Likewise.
19008         * modules/uninorm/u8-normcmp-tests: Likewise.
19009         * modules/uninorm/u8-normcoll-tests: Likewise.
19010         * modules/uninorm/u16-normcmp-tests: Likewise.
19011         * modules/uninorm/u16-normcoll-tests: Likewise.
19012         * modules/uninorm/u32-normcmp-tests: Likewise.
19013         * modules/uninorm/u32-normcoll-tests: Likewise.
19014         * modules/unistdio/u8-asnprintf-tests: Likewise.
19015         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19016         * modules/unistdio/u8-vasprintf-tests: Likewise.
19017         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19018         * modules/unistdio/u8-vsprintf-tests: Likewise.
19019         * modules/unistdio/u16-asnprintf-tests: Likewise.
19020         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19021         * modules/unistdio/u16-vasprintf-tests: Likewise.
19022         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19023         * modules/unistdio/u16-vsprintf-tests: Likewise.
19024         * modules/unistdio/u32-asnprintf-tests: Likewise.
19025         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19026         * modules/unistdio/u32-vasprintf-tests: Likewise.
19027         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19028         * modules/unistdio/u32-vsprintf-tests: Likewise.
19029         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19030         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19031         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19032         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19033         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19034         * modules/unistr/u8-check-tests: Likewise.
19035         * modules/unistr/u8-chr-tests: Likewise.
19036         * modules/unistr/u8-cmp-tests: Likewise.
19037         * modules/unistr/u8-cmp2-tests: Likewise.
19038         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19039         * modules/unistr/u8-cpy-tests: Likewise.
19040         * modules/unistr/u8-mblen-tests: Likewise.
19041         * modules/unistr/u8-mbsnlen-tests: Likewise.
19042         * modules/unistr/u8-mbtouc-tests: Likewise.
19043         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19044         * modules/unistr/u8-mbtoucr-tests: Likewise.
19045         * modules/unistr/u8-move-tests: Likewise.
19046         * modules/unistr/u8-next-tests: Likewise.
19047         * modules/unistr/u8-prev-tests: Likewise.
19048         * modules/unistr/u8-set-tests: Likewise.
19049         * modules/unistr/u8-stpcpy-tests: Likewise.
19050         * modules/unistr/u8-stpncpy-tests: Likewise.
19051         * modules/unistr/u8-strcat-tests: Likewise.
19052         * modules/unistr/u8-strcmp-tests: Likewise.
19053         * modules/unistr/u8-strcoll-tests: Likewise.
19054         * modules/unistr/u8-strcpy-tests: Likewise.
19055         * modules/unistr/u8-strdup-tests: Likewise.
19056         * modules/unistr/u8-strlen-tests: Likewise.
19057         * modules/unistr/u8-strmblen-tests: Likewise.
19058         * modules/unistr/u8-strmbtouc-tests: Likewise.
19059         * modules/unistr/u8-strncat-tests: Likewise.
19060         * modules/unistr/u8-strncmp-tests: Likewise.
19061         * modules/unistr/u8-strncpy-tests: Likewise.
19062         * modules/unistr/u8-strnlen-tests: Likewise.
19063         * modules/unistr/u8-to-u16-tests: Likewise.
19064         * modules/unistr/u8-to-u32-tests: Likewise.
19065         * modules/unistr/u8-uctomb-tests: Likewise.
19066         * modules/unistr/u16-check-tests: Likewise.
19067         * modules/unistr/u16-chr-tests: Likewise.
19068         * modules/unistr/u16-cmp-tests: Likewise.
19069         * modules/unistr/u16-cmp2-tests: Likewise.
19070         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19071         * modules/unistr/u16-cpy-tests: Likewise.
19072         * modules/unistr/u16-mblen-tests: Likewise.
19073         * modules/unistr/u16-mbsnlen-tests: Likewise.
19074         * modules/unistr/u16-mbtouc-tests: Likewise.
19075         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19076         * modules/unistr/u16-mbtoucr-tests: Likewise.
19077         * modules/unistr/u16-move-tests: Likewise.
19078         * modules/unistr/u16-next-tests: Likewise.
19079         * modules/unistr/u16-prev-tests: Likewise.
19080         * modules/unistr/u16-set-tests: Likewise.
19081         * modules/unistr/u16-stpcpy-tests: Likewise.
19082         * modules/unistr/u16-stpncpy-tests: Likewise.
19083         * modules/unistr/u16-strcat-tests: Likewise.
19084         * modules/unistr/u16-strcmp-tests: Likewise.
19085         * modules/unistr/u16-strcoll-tests: Likewise.
19086         * modules/unistr/u16-strcpy-tests: Likewise.
19087         * modules/unistr/u16-strdup-tests: Likewise.
19088         * modules/unistr/u16-strlen-tests: Likewise.
19089         * modules/unistr/u16-strmblen-tests: Likewise.
19090         * modules/unistr/u16-strmbtouc-tests: Likewise.
19091         * modules/unistr/u16-strncat-tests: Likewise.
19092         * modules/unistr/u16-strncmp-tests: Likewise.
19093         * modules/unistr/u16-strncpy-tests: Likewise.
19094         * modules/unistr/u16-strnlen-tests: Likewise.
19095         * modules/unistr/u16-to-u32-tests: Likewise.
19096         * modules/unistr/u16-to-u8-tests: Likewise.
19097         * modules/unistr/u16-uctomb-tests: Likewise.
19098         * modules/unistr/u32-check-tests: Likewise.
19099         * modules/unistr/u32-chr-tests: Likewise.
19100         * modules/unistr/u32-cmp-tests: Likewise.
19101         * modules/unistr/u32-cmp2-tests: Likewise.
19102         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19103         * modules/unistr/u32-cpy-tests: Likewise.
19104         * modules/unistr/u32-mblen-tests: Likewise.
19105         * modules/unistr/u32-mbsnlen-tests: Likewise.
19106         * modules/unistr/u32-mbtouc-tests: Likewise.
19107         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19108         * modules/unistr/u32-mbtoucr-tests: Likewise.
19109         * modules/unistr/u32-move-tests: Likewise.
19110         * modules/unistr/u32-next-tests: Likewise.
19111         * modules/unistr/u32-prev-tests: Likewise.
19112         * modules/unistr/u32-set-tests: Likewise.
19113         * modules/unistr/u32-stpcpy-tests: Likewise.
19114         * modules/unistr/u32-stpncpy-tests: Likewise.
19115         * modules/unistr/u32-strcat-tests: Likewise.
19116         * modules/unistr/u32-strcmp-tests: Likewise.
19117         * modules/unistr/u32-strcoll-tests: Likewise.
19118         * modules/unistr/u32-strcpy-tests: Likewise.
19119         * modules/unistr/u32-strdup-tests: Likewise.
19120         * modules/unistr/u32-strlen-tests: Likewise.
19121         * modules/unistr/u32-strmblen-tests: Likewise.
19122         * modules/unistr/u32-strmbtouc-tests: Likewise.
19123         * modules/unistr/u32-strncat-tests: Likewise.
19124         * modules/unistr/u32-strncmp-tests: Likewise.
19125         * modules/unistr/u32-strncpy-tests: Likewise.
19126         * modules/unistr/u32-strnlen-tests: Likewise.
19127         * modules/unistr/u32-to-u16-tests: Likewise.
19128         * modules/unistr/u32-to-u8-tests: Likewise.
19129         * modules/unistr/u32-uctomb-tests: Likewise.
19130         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19131         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19132         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19133         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19134         * modules/uniwidth/u8-strwidth-tests: Likewise.
19135         * modules/uniwidth/u8-width-tests: Likewise.
19136         * modules/uniwidth/u16-strwidth-tests: Likewise.
19137         * modules/uniwidth/u16-width-tests: Likewise.
19138         * modules/uniwidth/u32-strwidth-tests: Likewise.
19139         * modules/uniwidth/u32-width-tests: Likewise.
19140         * modules/uniwidth/width-tests: Likewise.
19141
19142 2010-05-18  Richard Jones  <rjones@redhat.com>
19143
19144         doc: users.txt: list hivex
19145         * users.txt: Add hivex.
19146
19147 2010-05-18  Richard Jones  <rjones@redhat.com>
19148
19149         doc: users.txt: list febootstrap
19150         * users.txt: Add febootstrap.
19151
19152 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19153
19154         bootstrap: fix an error when gnulib is not used as a git submodule
19155         * build-aux/bootstrap (gnulib_path): If its length is zero then
19156         assign "gnulib" to it.
19157         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19158
19159 2010-05-16  Bruno Haible  <bruno@clisp.org>
19160
19161         Avoid autoconf warnings about AM_ICONV.
19162         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19163         2.64.
19164
19165 2010-05-16  Bruno Haible  <bruno@clisp.org>
19166
19167         absolute-header: Make the macro usable in more situations.
19168         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19169         from gl_ABSOLUTE_HEADER.
19170         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19171
19172 2010-05-16  James Youngman  <jay@gnu.org>
19173
19174         doc: update users.txt
19175         * users.txt: Add CSSC.
19176
19177 2010-05-16  Jim Meyering  <meyering@redhat.com>
19178
19179         init.sh: fix an error in the previous change; add more comments
19180         * tests/init.sh: Compare exit code in loop against 9, not 2.
19181         Patch by Bruno Haible.
19182         Make the two tests more similar by adding an empty "then" clause.
19183         Add comments.
19184
19185         init.sh: avoid unnecessary shell re-exec
19186         * tests/init.sh: Improve the re-exec-required check to first test the
19187         current shell.  If it passes the test, do not search for a shell that
19188         does pass, and do not re-exec.  This test is particularly contorted to
19189         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19190         of $(...) evokes a syntax error and causes immediate shell exit with
19191         status 2.  Bruno Haible reported that the re-exec made it impossible
19192         to single-step through any init.sh-using script.
19193
19194 2010-05-16  Bruno Haible  <bruno@clisp.org>
19195
19196         Fix collision between gnulib's and libintl's printf replacements.
19197         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19198         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19199         (printf): When using GNU C, map the __printf__ function to rpl_printf
19200         via __asm__. When not using GNU C, define rpl_printf instead of
19201         __printf__.
19202         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19203         commit.
19204         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19205         commit.
19206         * m4/asm-underscore.m4: New file.
19207         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19208         * modules/stdio (Files): Add m4/asm-underscore.m4.
19209         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19210         Reported by Ben Pfaff.
19211
19212 2010-05-16  Bruno Haible  <bruno@clisp.org>
19213
19214         verify: Avoid skipping the test on openSUSE 11.0.
19215         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19216
19217 2010-05-13  Bruno Haible  <bruno@clisp.org>
19218
19219         Avoid useless warnings from G++.
19220         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19221         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19222         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19223
19224 2010-05-11  Jim Meyering  <meyering@redhat.com>
19225
19226         maint.mk: tweak preceding change
19227         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19228         regexps tighter by anchoring at EOL, and make the new group "shy"
19229         for slightly decreased overhead.
19230
19231 2010-05-11  Eric Blake  <eblake@redhat.com>
19232
19233         maint.mk: gnulib doesn't guarantee NSIG
19234         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19235
19236 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19237
19238         test-pwrite.c: Remove unused variable declaration.
19239         * tests/test-pwrite.c (main): Remove read_buf declaration.
19240
19241         Remove useless test-pwrite.sh file.
19242         * tests/test-pwrite.sh: Delete file.
19243         * modules/pwrite-tests: Remove references.
19244         Reported by Bruno Haible.
19245
19246 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19247
19248         init.sh: fix a typo
19249         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19250
19251 2010-05-10  Jim Meyering  <meyering@redhat.com>
19252
19253         maint.mk: avoid using a temporary file in the always-defined-macros check
19254         * top/maint.mk (.re-defmac): Remove rule.
19255         (gl_trap_): Remove definition.
19256         (sc_prohibit_always-defined_macros): Rewrite not to create and
19257         depend on a temporary file.  Instead, depend on GNU grep's ability
19258         to read a list of regular expressions from stdin when given "-f -".
19259
19260 2010-05-09  Bruno Haible  <bruno@clisp.org>
19261
19262         Update to GNU gettext 0.18, part 1.
19263         * m4/gettext.m4: Update to GNU gettext 0.18.
19264         * m4/intl.m4: Likewise.
19265         * m4/po.m4: Likewise.
19266         * modules/gettext (Files): Add m4/fcntl-o.m4.
19267         (configure.ac): Require gettext infrastructure from version 0.18.
19268
19269 2010-05-09  Jim Meyering  <meyering@redhat.com>
19270
19271         init.sh: enable MALLOC_PERTURB_
19272         * tests/init.sh: Enable glibc's malloc-perturbing option.
19273
19274         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19275         With my recent change in init.sh from the two-line form:
19276             -#   : ${srcdir=.}
19277             -#   . "$srcdir/init.sh"; path_prepend_ .
19278             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19279         I noticed that using the one-line form would cause this test
19280         to fail with a false-positive, or to stop working altogether,
19281         depending on whether help-version changed or all the tests did.
19282         * top/maint.mk (_hv_regex): Remove this definition.
19283         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19284         (_hv_regex_strong): Use a stronger regex to check for conformance.
19285         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19286         Give a separate diagnostic for lack of conforming use.
19287
19288         maint.mk: prohibit definition of symbols defined by gnulib
19289         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19290         definition of symbols defined by gnulib.
19291
19292 2010-05-09  Bruno Haible  <bruno@clisp.org>
19293
19294         acl: Avoid test failure on Cygwin-hosted mingw.
19295         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19296
19297 2010-05-09  Bruno Haible  <bruno@clisp.org>
19298
19299         error: Use system's fcntl function.
19300         * lib/error.c (fcntl): Undefine.
19301
19302 2010-05-09  Jim Meyering  <meyering@redhat.com>
19303
19304         verify: adjust formatting to be more consistent
19305         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19306         argument-list '('s, and after one comma.
19307
19308 2010-05-09  Bruno Haible  <bruno@clisp.org>
19309
19310         error: More reliable output on mingw.
19311         * lib/error.c: Include <windows.h>.
19312         (is_open): New function.
19313         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19314         defined.
19315
19316 2010-05-09  Bruno Haible  <bruno@clisp.org>
19317
19318         vasnprintf: Fix syntax errors in libintl build on mingw.
19319         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19320         pad_ourselves and prec_ourselves after use.
19321
19322 2010-05-08  Bruno Haible  <bruno@clisp.org>
19323
19324         * lib/config.charset: Update comments for Cygwin 1.7.
19325         * lib/localcharset.c: Likewise.
19326
19327 2010-05-07  Jim Meyering  <meyering@redhat.com>
19328
19329         init.sh: improve comments
19330         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19331         . "${srcdir=.}/init.sh"; path_prepend_ .
19332         Add a note about path_prepend_ and the alternative of using
19333         TESTS_ENVIRONMENT.
19334
19335 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19336
19337         exclude: Unescape hashed patterns in wildcard mode.
19338         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19339         to the hash list.
19340         * tests/test-exclude8.sh: New test case.
19341         * modules/exclude-tests: Add new test.
19342
19343 2010-05-05  Eric Blake  <eblake@redhat.com>
19344
19345         verify: automate tests
19346         * modules/verify-tests: New module.
19347         * tests/test-verify.sh: New file.
19348         * tests/test-verify.c: Guard each negative test with a unique id.
19349         Also avoid warning about unused left hand of comma expressions.
19350
19351 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19352
19353         Further improvements to verify.h, suggested by Eric Blake.
19354         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19355         the GL_* versions, to avoid collision with OpenGL.
19356         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19357         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19358         than testing merely whether it's defined.
19359
19360         Modify verify.h to pacify gcc -Wredundant_decls.
19361         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19362         These use the prefix "GL_" since they're likely to be useful elsewhere.
19363         We may need to break them out into a different .h file.
19364         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19365         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19366         of verify_function__.
19367
19368 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19369
19370         Tests for module pwrite.
19371         * modules/pwrite-tests: New file.
19372         * tests/test-pwrite.sh: New file.
19373         * tests/test-pwrite.c: New file.
19374
19375         New module pwrite.
19376         * lib/unistd.in.h (pwrite): New declaration.
19377         * lib/pwrite.c: New file, from glibc with modifications.
19378         * m4/pwrite.m4: New file.
19379         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19380         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19381         REPLACE_PWRITE.
19382         * modules/pwrite: New file.
19383         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19384         REPLACE_PWRITE.
19385         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19386         * doc/posix-functions/pwrite.texi: Mention the new module.
19387
19388 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19389
19390         pread: Update documentation.
19391         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19392
19393 2010-05-04  Eric Blake  <eblake@redhat.com>
19394
19395         docs: update cygwin progress
19396         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19397         this bug.
19398         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19399         Added in cygwin 1.7.2.
19400         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19401         Likewise.
19402         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19403         Likewise.
19404         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19405         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19406         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19407         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19408         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19409         Mention nproc module.
19410         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19411         bug in cygwin 1.7.5 addition.
19412         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19413         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19414         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19415         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19416         1.7.5.
19417         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19418         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19419         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19420         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19421         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19422         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19423         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19424         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19425         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19426         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19427         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19428         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19429         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19430         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19431         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19432         Likewise.
19433         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19434         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19435         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19436         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19437         Likewise.
19438         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19439         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19440         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19441         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19442         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19443         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19444         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19445         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19446         Likewise.
19447         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19448         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19449         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19450         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19451         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19452         Likewise.
19453         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19454         Likewise.
19455         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19456         Likewise.
19457         * doc/glibc-functions/xdrrec_endofrecord.texi
19458         (xdrrec_endofrecord): Likewise.
19459         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19460         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19461         Likewise.
19462         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19463         Likewise.
19464
19465 2010-05-04  Jim Meyering  <meyering@redhat.com>
19466
19467         gendocs.sh: make its "-s FILE" option more useful
19468         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19469         $PACKAGE to reflect the probably-different basename of "FILE".
19470
19471 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19472
19473         bootstrap: don't ignore download_po_files failure
19474         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19475         failure.
19476
19477 2010-05-03  Jim Meyering  <meyering@redhat.com>
19478
19479         maint.mk: allow to pass options to gendocs.sh
19480         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19481         (gendocs_options_): New overridable variable.
19482
19483         gnu-web-doc-update: don't ignore configure or build failure
19484         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19485
19486         announce-gen: backslash-escape '@'s in --help output
19487         * build-aux/announce-gen: Fix syntax errors.
19488
19489         maint.mk, announce-gen: allow project-specific announcement mail headers
19490         * top/maint.mk (translation_project_): Define default.
19491         (announcement_Cc_, announcement_mail_headers_): Likewise.
19492         (announcement): Invoke announce-gen with new --mail-headers option.
19493         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19494
19495         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19496         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19497         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19498         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19499         line in the "err2" output file when running "make check" in verbose
19500         mode (i.e., with set -x enabled).
19501
19502 2010-05-03  Bruno Haible  <bruno@clisp.org>
19503
19504         wctob: Fix for weird platforms.
19505         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19506         argument value.
19507
19508 2010-05-03  Jim Meyering  <meyering@redhat.com>
19509
19510         maint.mk: prohibit unwarranted use of <strings.h>
19511         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19512         strings.h in a file that does not also use strcasecmp, strncasecmp,
19513         ffs or ffsll.
19514
19515         maint.mk: remove obsolete comments
19516         * top/maint.mk: Remove stale, commented-out rules.
19517
19518 2010-05-02  Bruno Haible  <bruno@clisp.org>
19519
19520         wcwidth: Declare also when it's aliased.
19521         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19522         macro.
19523
19524 2010-05-02  Bruno Haible  <bruno@clisp.org>
19525
19526         Fix regression from 2010-04-25.
19527         * gnulib-tool (func_modules_transitive_closure): Check the status of
19528         all modules, not only of the tests that are of the form foo-tests where
19529         foo is a module.
19530
19531 2010-05-02  Bruno Haible  <bruno@clisp.org>
19532
19533         wctob: Work around nasty Cygwin 1.7.2 bug.
19534         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19535         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19536
19537 2010-05-01  Bruno Haible  <bruno@clisp.org>
19538
19539         fpurge: Sharper test.
19540         * tests/test-fpurge.c (main): Add one more ftell check.
19541         * modules/fpurge-tests (Depends-on): Add ftell.
19542         Suggested by Eric Blake.
19543
19544 2010-05-01  Bruno Haible  <bruno@clisp.org>
19545
19546         ftello: Another test.
19547         * tests/test-ftello3.c: New file.
19548         * modules/ftello-tests (Files): Add it.
19549         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19550         MOSTLYCLEANFILES.
19551
19552         ftell: Another test.
19553         * tests/test-ftell3.c: New file.
19554         * modules/ftell-tests (Files): Add it.
19555         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19556         MOSTLYCLEANFILES.
19557
19558 2010-05-01  Bruno Haible  <bruno@clisp.org>
19559
19560         ftell, ftello: Work around Solaris bug.
19561         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19562         * lib/ftello.c: Include stdio-impl.h.
19563         (ftello): On Solaris, when _IOWRT is set, compute the result without
19564         looking at _IOREAD.
19565         * modules/ftello (Files): Add lib/stdio-impl.h.
19566         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19567         * doc/posix-functions/ftello.texi: Likewise.
19568         Reported by Eric Blake.
19569
19570 2010-05-01  Bruno Haible  <bruno@clisp.org>
19571
19572         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19573         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19574         the _IOWRT flag is also set.
19575
19576 2010-05-01  Bruno Haible  <bruno@clisp.org>
19577
19578         Fix doc about a HP-UX stdio bug.
19579         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19580         * doc/posix-functions/ftello.texi: Likewise.
19581
19582 2010-05-01  Bruno Haible  <bruno@clisp.org>
19583
19584         lseek test: Fix failure on Solaris.
19585         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19586         output.
19587
19588 2010-04-30  Jim Meyering  <meyering@redhat.com>
19589
19590         bootstrap: don't ignore failure to generate po*/Makevars
19591         * build-aux/bootstrap (with_gettext): Don't ignore failure
19592         to create po/Makevars or runtime-po/Makevars.
19593
19594 2010-04-29  Eric Blake  <eblake@redhat.com>
19595
19596         headers: relax license to LGPLv2+
19597         * modules/fcntl-h (License): Relax license.
19598         * modules/getopt-posix (License): Likewise.
19599         * modules/locale (License): Likewise.
19600         * modules/math (License): Likewise.
19601         * modules/pty (License): Likewise.
19602         * modules/sched (License): Likewise.
19603         * modules/search (License): Likewise.
19604         * modules/spawn (License): Likewise.
19605         * modules/stdarg (License): Likewise.
19606         * modules/sysexits (License): Likewise.
19607
19608 2010-04-29  Jim Meyering  <meyering@redhat.com>
19609
19610         inttypes: relax license to LGPLv2+
19611         * modules/inttypes (License): Relax license.
19612
19613 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19614
19615         * top/maint.mk (indent): Run twice to produce idempotent results.
19616
19617 2010-04-28  Bruno Haible  <bruno@clisp.org>
19618
19619         getdate: Generate getdate.c in the source directory.
19620         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19621         MOSTLYCLEANFILES.
19622         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19623
19624 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19625
19626         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19627         is not declared as a const *; avoid warnings in that case.
19628
19629 2010-04-28  Eric Blake  <eblake@redhat.com>
19630
19631         canonicalize-lgpl: avoid compiler warning
19632         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19633         declaration' / 'extraneous semicolon' warning with some compilers.
19634         Reported by Andreas Gruenbacher.
19635
19636 2010-04-28  Jim Meyering  <meyering@redhat.com>
19637
19638         init.sh: ensure a more reliable exit status when exiting via trap
19639         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19640         Inspired by patches from Dmitry V. Levin.
19641         Also trap on signal 3 (SIGQUIT).
19642
19643 2010-04-27  Bruno Haible  <bruno@clisp.org>
19644
19645         Update doc about utimes().
19646         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19647         'utimens' module.
19648         Reported by Andreas Gruenbacher <agruen@suse.de>.
19649
19650 2010-04-27  Eric Blake  <eblake@redhat.com>
19651
19652         full-read, full-write: relax license
19653         * modules/full-read (License): Drop to LGPLv2+.
19654         * modules/full-write (License): Likewise.
19655         * modules/safe-read (License): Likewise.
19656         * modules/safe-write (License): Likewise.
19657
19658         pthread: mention library for linking
19659         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19660
19661 2010-04-27  Jim Meyering  <meyering@redhat.com>
19662
19663         maint.mk: fix a bug introduced in last change
19664         * top/maint.mk (gl_assured_headers_): Now that all names are on
19665         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19666         is not anchored to end of word, it should be adequate.
19667
19668         maint.mk: avoid side-effect in latest syntax-check
19669         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19670         to run commands via $(shell...), and hence to incur cost only when
19671         the new rule is actually run.
19672
19673         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19674         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19675         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19676         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19677         (gl_assured_headers_, az_, AZ_): Define.
19678         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19679
19680 2010-04-26  Jim Meyering  <jim@meyering.net>
19681             Bruno Haible  <bruno@clisp.org>
19682
19683         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19684         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19685         Prompted by an exchange with Gilles Espinasse.
19686
19687 2010-04-26  Jim Meyering  <meyering@redhat.com>
19688
19689         git-version-gen: aesthetic tweak
19690         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19691         so that the command remains on a single line.
19692
19693 2010-04-26  Eric Blake  <eblake@redhat.com>
19694
19695         git-version-gen: allow use on EBCDIC hosts
19696         * build-aux/git-version-gen (dirty): Use literal rather than tying
19697         ourselves to ascii.
19698         Reported by Steve Goetze.
19699
19700 2010-04-25  Bruno Haible  <bruno@clisp.org>
19701
19702         netdb: Add support for GNULIB_POSIXCHECK.
19703         * lib/netdb.in.h: Include warn-on-use.h.
19704         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19705         functions are used when GNULIB_POSIXCHECK is defined and the
19706         getaddrinfo module is not in use.
19707         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19708         freeaddrinfo, gai_strerror, getnameinfo are declared.
19709         * modules/netdb (Depends-on): Add warn-on-use.
19710         (Makefile.am): Include warn-on-use.h in netdb.h.
19711
19712 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19713
19714         build: avoid "make check" failure without .git/ directory
19715         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19716         there is no .git/ directory.
19717
19718 2010-04-25  Bruno Haible  <bruno@clisp.org>
19719
19720         ptsname: Fix misuse of ttyname_r.
19721         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19722         of errno.
19723
19724 2010-04-25  Bruno Haible  <bruno@clisp.org>
19725
19726         ttyname_r: Make it work on Solaris 10.
19727         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19728         if the system function has the POSIX declaration. Test whether the
19729         function fails if the buffer is less than 128 bytes large.
19730         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19731         system's ttyname_r function. Provide a reasonably large buffer.
19732         * modules/ttyname_r (Depends-on): Add extensions.
19733         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19734
19735 2010-04-25  Bruno Haible  <bruno@clisp.org>
19736
19737         Use the 'extensions' module for some more functions on Solaris.
19738         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19739         module.
19740         * doc/posix-functions/ctime_r.texi: Likewise.
19741         * doc/posix-functions/getgrgid_r.texi: Likewise.
19742         * doc/posix-functions/getgrnam_r.texi: Likewise.
19743         * doc/posix-functions/getpwnam_r.texi: Likewise.
19744         * doc/posix-functions/getpwuid_r.texi: Likewise.
19745         * doc/posix-functions/readdir_r.texi: Likewise.
19746         * doc/posix-functions/sigwait.texi: Likewise.
19747         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19748         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19749
19750 2010-04-25  Bruno Haible  <bruno@clisp.org>
19751
19752         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19753         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19754         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19755         * lib/ttyname_r.c: Include <limits.h>.
19756         (ttyname_r): Define using the system's ttyname_r function, if it exists
19757         and not on Solaris.
19758         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19759         set.
19760         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19761         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19762         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19763         Reported by Simon Josefsson.
19764
19765 2010-04-25  Bruno Haible  <bruno@clisp.org>
19766
19767         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19768         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19769         * doc/posix-functions/ctime_r.texi: Likewise.
19770         * doc/posix-functions/getgrgid_r.texi: Likewise.
19771         * doc/posix-functions/getgrnam_r.texi: Likewise.
19772         * doc/posix-functions/getlogin_r.texi: Likewise.
19773         * doc/posix-functions/getpwnam_r.texi: Likewise.
19774         * doc/posix-functions/getpwuid_r.texi: Likewise.
19775         * doc/posix-functions/readdir_r.texi: Likewise.
19776         * doc/posix-functions/sigwait.texi: Likewise.
19777         * doc/posix-functions/ttyname_r.texi: Likewise.
19778         Reported by Simon Josefsson.
19779
19780 2010-04-25  Bruno Haible  <bruno@clisp.org>
19781
19782         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19783         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19784         also to --create-testdir.
19785         (func_acceptable): Don't consider the status of *-tests modules here.
19786         (func_modules_transitive_closure): Consider it here, before including a
19787         test module.
19788         (func_import, func_create_testdir): Set inc_all_direct_tests,
19789         inc_all_indirect_tests.
19790         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19791         --create-testdir and --create-megatestdir.
19792
19793 2010-04-25  Bruno Haible  <bruno@clisp.org>
19794
19795         gnulib-tool: Add --without-*-tests options.
19796         * gnulib-tool (func_usage): Document the --without-*-tests options.
19797         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19798         excl_unportable_tests): New variables.
19799         Fail if they are specified with --import or --update.
19800         (func_acceptable): Respect the excl_*_tests variables.
19801         (func_import): Set the excl_*_tests variables to empty.
19802
19803 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19804             Bruno Haible  <bruno@clisp.org>
19805
19806         Work around a MacOS X 10.4 bug with openpty.
19807         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19808         * tests/test-openpty.c (main): Close the master side explicitly.
19809
19810 2010-04-25  Bruno Haible  <bruno@clisp.org>
19811
19812         strnlen: Fix a C++ test error on MacOS X and Solaris.
19813         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19814         the function is not declared.
19815         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19816         Simon Josefsson.
19817
19818 2010-04-24  Bruno Haible  <bruno@clisp.org>
19819
19820         Avoid a gcc warning.
19821         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19822         of correct type for %08lx directive.
19823         Reported by Eric Blake.
19824
19825 2010-04-24  Bruno Haible  <bruno@clisp.org>
19826
19827         vasnprintf: Correct errno value in case of out-of-memory.
19828         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19829         or sprintf. Use the errno value from SNPRINTF or sprintf.
19830         Reported by Ian Beckwith <ianb@erislabs.net>.
19831
19832 2010-04-24  Bruno Haible  <bruno@clisp.org>
19833
19834         ansi-c++-opt: Find correct compiler when cross-compiling.
19835         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19836         AC_CHECK_PROGS.
19837         Reported by Simon Josefsson.
19838
19839 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19840
19841         vc-list-files: Add support for subversion
19842         * build-aux/vc-list-files: Use "svn list" to generate the list of
19843         files controlled by subversion.
19844
19845 2010-04-23  Jim Meyering  <meyering@redhat.com>
19846
19847         vc-list-files tests: convert to use init.sh
19848         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19849         path_prepend_.
19850         Use Exit, not exit.
19851         Use skip_ rather than open coding it.
19852         Remove trap set-up and compare definitions.
19853         * tests/test-vc-list-files-git.sh: Likewise.
19854         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19855
19856 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19857
19858         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19859         backup files.
19860
19861 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19862
19863         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19864
19865 2010-04-20  Eric Blake  <eblake@redhat.com>
19866
19867         tests: be robust to ignored SIGPIPE
19868         * tests/test-select-in.sh: Consume all output.
19869         * tests/test-lseek.sh: Check correct exit status, while avoiding
19870         EPIPE.
19871
19872 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19873             Bruno Haible  <bruno@clisp.org>
19874
19875         visibility: Don't use -fvisibility if it leads to a warning.
19876         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19877         yes, don't pretend that visibility works if it leads to a warning.
19878         Reported by Mike Gran <spk121@yahoo.com>.
19879
19880 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19881
19882         * build-aux/bootstrap: Use "git -h" for testing for supported options
19883         instead of "git --help".  The short-form option only shows a summary,
19884         and doesn't layout the full man page.  Grep for the full option name
19885         in the summary, too.
19886
19887 2010-04-19  Bruno Haible  <bruno@clisp.org>
19888
19889         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19890         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19891         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19892         mention of RELOCATABLE_STRIP.
19893         Reported by Sylvain Beucler <beuc@beuc.net>.
19894
19895 2010-04-19  Bruno Haible  <bruno@clisp.org>
19896
19897         * lib/diffseq.h: Fix typo in comment.
19898         Reported by Eric Blake.
19899
19900 2010-04-19  Bruno Haible  <bruno@clisp.org>
19901
19902         ioctl: Move autoconf macro to a .m4 file.
19903         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19904         * modules/ioctl (Files): Add it.
19905         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19906         Reported by Ian Beckwith <ianb@erislabs.net>.
19907
19908 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19909             Bruno Haible  <bruno@clisp.org>
19910
19911         diffseq: Accommodate use-case with abstract arrays.
19912         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19913         is not defined.
19914         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19915         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19916
19917 2010-04-18  Bruno Haible  <bruno@clisp.org>
19918
19919         * doc/posix-headers/stdbool.texi: More precise wording.
19920
19921 2010-04-17  Jim Meyering  <meyering@redhat.com>
19922
19923         maint.mk: use gnu-style indentation in an embedded perl script
19924         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19925         Rename variable: s/two/last_two_bytes/
19926
19927 2010-04-16  Eric Blake  <eblake@redhat.com>
19928
19929         test-stdbool: skip test that fails with Solaris CC
19930         * tests/test-stdbool.c (f): Skip test that causes compilation
19931         error under buggy C++ compiler.
19932         * lib/stdbool.in.h: Document the limitation.
19933         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19934
19935         setenv: allow compilation with C++
19936         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19937         register keyword.
19938
19939         stdint: allow test to pass with C++
19940         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19941
19942         getopt: allow compilation with C++
19943         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19944         struct.
19945         * lib/getopt.c (_getopt_internal_r): Use correct type.
19946         Reported by Dagobert Michelson, via Joel E. Denny.
19947
19948 2010-04-16  Bruno Haible  <bruno@clisp.org>
19949
19950         Override netdb.h always.
19951         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
19952         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
19953         Reported by Ludovic Courtès <ludo@gnu.org>.
19954
19955 2010-04-15  Bruno Haible  <bruno@clisp.org>
19956
19957         openpty: Fix mistake from 2010-03-21.
19958         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
19959         Reported by Simon Josefsson.
19960
19961 2010-04-15  Eric Blake  <eblake@redhat.com>
19962
19963         test-forkpty: fix expected signature
19964         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
19965         Reported by Simon Josefsson.
19966
19967 2010-04-15  Jim Meyering  <meyering@redhat.com>
19968
19969         maint.mk: texinfo_suffix_re_: correct the default regexp
19970         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
19971
19972         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
19973         make it configurable via texinfo_suffix_re_.
19974
19975 2010-04-14  Eric Blake  <eblake@redhat.com>
19976
19977         strtok_r: relax license to LGPLv2+
19978         * modules/strtok_r (License): Relax license.
19979         Reported by Matthias Bolte.
19980
19981 2010-04-14  Simon Josefsson  <simon@josefsson.org>
19982
19983         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
19984         version 1.4.4 by default instead of requiring the libgcrypt
19985         version used during build.  This makes it possible to use the
19986         application with older but still binary compatible libgcrypt
19987         versions.
19988
19989 2010-04-13  Eric Blake  <eblake@redhat.com>
19990
19991         getopt-gnu: match recent glibc fixes and posix ruling
19992         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
19993         '+' handling, when requesting extensions.
19994         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
19995         'W;' handling.
19996         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
19997         * doc/posix-functions/getopt.texi (getopt): Document this.
19998         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
19999         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20000         Likewise.
20001
20002         getopt: merge bug fixes from glibc
20003         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20004         diagnostics.  Honor '+:' correctly.  Reject ';'.
20005
20006         getopt-posix: detect MacOS bug
20007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20008         optind when missing a required argument.
20009         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20010         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20011         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20012         Likewise.
20013
20014         getopt-posix: avoid spurious failure on Solaris
20015         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20016         an indicator that setting optind=1 is sufficient for reset.
20017
20018         getopt-posix: avoid spurious failure on FreeBSD
20019         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20020         in POSIX mode, since the m4 test uses it.
20021
20022         gnulib-tool: silence warning on BSD sh
20023         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20024
20025 2010-04-13  Jim Meyering  <meyering@redhat.com>
20026
20027         doc: users.txt: GNU patch now uses gnulib
20028         * users.txt: Add patch.
20029
20030 2010-04-12  Jim Meyering  <meyering@redhat.com>
20031
20032         maint.mk: generate more concise timing data for syntax-check rules
20033         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20034         " done" from each line that reports a syntax-check test duration.
20035
20036 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20037
20038         git-version-gen: use "git update-index..." rather than "git status"
20039         * build-aux/git-version-gen: Use git update-index --refresh, not
20040         "git status".  With some versions of git, "git status" would fail
20041         to update the index and result in an unwarranted "-dirty" suffix.
20042
20043 2010-04-11  Jim Meyering  <meyering@redhat.com>
20044
20045         openat: correct formatting (no semantic change)
20046         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20047         Suggested by Bruno Haible.
20048
20049 2010-04-11  Bruno Haible  <bruno@clisp.org>
20050
20051         Stricter declaration checking in testdirs.
20052         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20053         If for_tests is true, augment AM_CPPFLAGS to define
20054         GNULIB_STRICT_CHECKING.
20055         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20056         GNULIB_STRICT_CHECKING is defined, verify that the function is
20057         declared.
20058
20059 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20060             Bruno Haible  <bruno@clisp.org>
20061
20062         libunistring: Improve configure output.
20063         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20064         Don't say "consider installing GNU libunistring" when checking again
20065         with libiconv.
20066
20067 2010-04-11  Bruno Haible  <bruno@clisp.org>
20068
20069         libunistring: Correct value of $LTLIBUNISTRING.
20070         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20071         correct the value of $LTLIBUNISTRING.
20072
20073 2010-04-11  Bruno Haible  <bruno@clisp.org>
20074
20075         havelib: Add static libraries to LIBS in the right order.
20076         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20077         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20078
20079 2010-04-11  Bruno Haible  <bruno@clisp.org>
20080
20081         libunistring: Detect libunistring also when it depends on libiconv.
20082         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20083         the second AC_LIB_HAVE_LINKFLAGS invocation.
20084
20085 2010-04-11  James Youngman  <jay@gnu.org>
20086
20087         close-stream: declare local scalars to be "const"
20088         * lib/close-stream.c (close_stream): Make boolean variables const
20089         to document the fact that we set but do not change them.
20090
20091 2010-04-11  Bruno Haible  <bruno@clisp.org>
20092
20093         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20094
20095 2010-04-11  Jim Meyering  <meyering@redhat.com>
20096
20097         maint.mk: don't include dist-check.mk
20098         * top/maint.mk: Remove bogus include directive.
20099
20100         maint.mk: improve empty-line-at-EOF check
20101         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20102         solution, rather than tail+Perl-based one.  The latter would read
20103         a few kilobytes from the end of each file, and did not handle empty
20104         files properly.
20105
20106         maint.mk: print the elapsed time for each syntax-check rule
20107         * top/maint.mk (sc_m_rules_): Save start time in a file.
20108         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20109         (local-check): Interpose the .z rules
20110
20111 2010-04-11  Jim Meyering  <meyering@redhat.com>
20112
20113         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20114         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20115         empty file with one that ends in an empty line.
20116
20117 2010-04-10  Bruno Haible  <bruno@clisp.org>
20118
20119         mkdir: Make it work on mingw64.
20120         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20121         * lib/mkdir.c: Update comment.
20122         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20123
20124 2010-04-10  Bruno Haible  <bruno@clisp.org>
20125
20126         Don't override improved macro from newer autoconf.
20127         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20128         autoconf >= 2.62.
20129         Reported by Joel E. Denny <jdenny@clemson.edu>.
20130
20131 2010-04-10  Jim Meyering  <meyering@redhat.com>
20132
20133         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20134         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20135
20136         maint.mk: correct a diagnostic
20137         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20138         in diagnostic; now use $prohibit.
20139
20140 2010-04-10  Bruno Haible  <address@hidden>
20141
20142         fchownat: Fix a C++ test error on Solaris 8.
20143         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20144         the function does not exist.
20145
20146 2010-04-10  Bruno Haible  <bruno@clisp.org>
20147
20148         vasnprintf: Add more tests.
20149         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20150         (test_function): Test converting an invalid wide string.
20151
20152         vasnprintf: Correct handling of unconvertible wide string arguments.
20153         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20154         VASNPRINTF.
20155         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20156         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20157         smaller than the expected maximum need for the directive. Set errno to
20158         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20159         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20160         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20161         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20162         * modules/vasnprintf (Files): Add m4/printf.m4.
20163         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20164
20165 2010-04-10  Bruno Haible  <bruno@clisp.org>
20166
20167         vasnprintf: Fix crash in %ls directive.
20168         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20169         string is passed as argument to %ls, with no precision and no width.
20170         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20171
20172 2010-04-10  Bruno Haible  <bruno@clisp.org>
20173
20174         vasnprintf: Fix multiple test failures on mingw.
20175         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20176         _snprintf, or snwprintf, not _snwprintf.
20177
20178 2010-04-10  Bruno Haible  <bruno@clisp.org>
20179
20180         write: Fix a C++ test error on mingw.
20181         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20182
20183 2010-04-10  Bruno Haible  <bruno@clisp.org>
20184
20185         vasnprintf test: Reduce code duplication.
20186         * tests/test-vasnprintf.c (test_function): New function, extracted from
20187         test_vasnprintf.
20188         (test_vasnprintf, test_asnprintf): Invoke it.
20189
20190 2010-04-10  Bruno Haible  <bruno@clisp.org>
20191
20192         strnlen: Fix warning in C++ mode on MacOS X.
20193         * lib/string.in.h (strnlen): Use the modern idiom.
20194         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20195         defining strnlen as a macro already in <config.h>.
20196         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20197         REPLACE_STRNLEN.
20198         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20199         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20200
20201 2010-04-08  James Youngman  <jay@gnu.org>
20202
20203         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20204         the example.
20205
20206 2010-04-09  Jim Meyering  <meyering@redhat.com>
20207
20208         maint.mk: print better diagnostic when there is no $(_hv_file)
20209         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20210         announce that when $(_hv_file) (aka help-version) does not exist.
20211
20212         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20213         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20214         not try to interpret its random input bytes.  Jarno Rajahalme reported
20215         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20216         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20217         (mktempd_): Likewise, just in case.
20218
20219         ftruncate: add two years to projected module removal date: 2012
20220         * m4/ftruncate.m4: Adjust comments.
20221
20222         ftruncate: mark module as obsolete; even MinGW provides it, now
20223         * modules/ftruncate (Status): Obsolete.
20224         (Notice): Say that.
20225         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20226         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20227
20228 2010-04-08  Bruno Haible  <bruno@clisp.org>
20229
20230         Fix side effects from tests-related modules.
20231         * modules/dprintf-posix (Comment): New section.
20232         * modules/fprintf-posix (Comment): Likewise.
20233         * modules/obstack-printf-posix (Comment): Likewise.
20234         * modules/printf-posix (Comment): Likewise.
20235         * modules/snprintf-posix (Comment): Likewise.
20236         * modules/sprintf-posix (Comment): Likewise.
20237         * modules/vasnprintf-posix (Comment): Likewise.
20238         * modules/vasprintf-posix (Comment): Likewise.
20239         * modules/vdprintf-posix (Comment): Likewise.
20240         * modules/vfprintf-posix (Comment): Likewise.
20241         * modules/vprintf-posix (Comment): Likewise.
20242         * modules/vsnprintf-posix (Comment): Likewise.
20243         * modules/vsprintf-posix (Comment): Likewise.
20244         * modules/xprintf-posix (Comment): Likewise.
20245         * modules/xvasprintf-posix (Comment): Likewise.
20246         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20247         * modules/floorf-tests (Depends-on): Likewise.
20248         * modules/round-tests (Depends-on): Likewise.
20249         * modules/roundf-tests (Depends-on): Likewise.
20250         * modules/trunc-tests (Depends-on): Likewise.
20251         * modules/truncf-tests (Depends-on): Likewise.
20252         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20253         'fprintf-posix' module is not present.
20254         * tests/test-floorf2.c (check): Likewise.
20255         * tests/test-trunc2.c (check): Likewise.
20256         * tests/test-truncf2.c (check): Likewise.
20257         * tests/test-round2.c (equal): Likewise.
20258         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20259
20260 2010-04-07  Karl Berry  <karl@gnu.org>
20261
20262         * config/srclist.txt,
20263         * config/srclistvars.sh,
20264         * config/srclist-update: doc fixes.
20265
20266 2010-04-07  Jim Meyering  <meyering@redhat.com>
20267
20268         maint.mk: add a PATH crosschecking syntax-check rule
20269         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20270         Useful if you use a test like the one in help-version (coreutils,
20271         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20272         printed by prog --version.
20273
20274 2010-04-06  Bruno Haible  <bruno@clisp.org>
20275
20276         Fix link error on mingw.
20277         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20278         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20279
20280 2010-04-06  Bruno Haible  <bruno@clisp.org>
20281
20282         Assume rmdir exists.
20283         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20284
20285 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20286
20287         doc: update users.txt
20288         * users.txt: Add gcal.
20289
20290 2010-04-06  Jim Meyering  <meyering@redhat.com>
20291
20292         init.sh: simply unset TMPDIR rather than risking env -i
20293         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20294         although it probably works fine on all Unix-based systems, some
20295         systems (Cygwin?) cannot tolerate a totally cleared environment.
20296         Suggestion from Eric Blake.
20297
20298 2010-04-06  Jim Meyering  <meyering@redhat.com>
20299
20300         init.sh: portability fix: use env's POSIX-specified -i option not -u
20301         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20302         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20303
20304 2010-04-05  Bruno Haible  <bruno@clisp.org>
20305
20306         btowc: Work around Cygwin 1.7.2 bug.
20307         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20308         does not map NUL to 0.
20309         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20310
20311 2010-04-05  Bruno Haible  <bruno@clisp.org>
20312
20313         Make the multithread modules work on Cygwin 1.7.2.
20314         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20315         imported symbols can be declared weak, so that it returns "no" on
20316         Cygwin 1.7.2.
20317
20318 2010-04-05  Bruno Haible  <bruno@clisp.org>
20319
20320         Use the module 'strncat'.
20321         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20322
20323         Tests for module 'strncat'.
20324         * modules/strncat-tests: New file.
20325         * tests/test-strncat.c: New file.
20326
20327         New module 'strncat'.
20328         * lib/string.in.h (strncat): New declaration.
20329         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20330         * m4/strncat.m4: New file, based on m4/memchr.m4.
20331         * modules/strncat: New file.
20332         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20333         is declared.
20334         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20335         REPLACE_STRNCAT.
20336         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20337         REPLACE_STRNCAT.
20338         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20339         module.
20340         * tests/test-string-c++.cc: Check signature of strncat.
20341
20342 2010-04-05  Jim Meyering  <meyering@redhat.com>
20343
20344         xstrtoumax-tests: convert to use init.sh
20345         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20346         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20347         Use Exit, not exit.
20348         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20349
20350         xstrtoimax-tests: convert to use init.sh
20351         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20352         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20353         Use Exit, not exit.
20354         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20355
20356 2010-04-05  Bruno Haible  <bruno@clisp.org>
20357
20358         sys_socket: Avoid #define replacements in C++ mode.
20359         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20360         warning to the function if possible, rather than #defining the symbol
20361         to a dysfunctional alias.
20362
20363 2010-04-05  Bruno Haible  <bruno@clisp.org>
20364
20365         fseeko: Fix C++ test error on mingw.
20366         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20367         gl_FUNC_FSEEKO.
20368         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20369         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20370         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20371         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20372
20373 2010-04-05  Bruno Haible  <bruno@clisp.org>
20374
20375         duplocale: Improve test output.
20376         * tests/test-duplocale.c (main): Print reason for skipped test.
20377
20378 2010-04-05  Bruno Haible  <bruno@clisp.org>
20379
20380         Assume rmdir exists.
20381         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20382         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20383
20384 2010-04-05  Bruno Haible  <bruno@clisp.org>
20385
20386         Fix link error on Solaris 8 with cc.
20387         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20388
20389 2010-04-05  Bruno Haible  <bruno@clisp.org>
20390
20391         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20392         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20393
20394 2010-04-05  Bruno Haible  <bruno@clisp.org>
20395
20396         vasprintf: Update documentation.
20397         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20398
20399 2010-04-05  Bruno Haible  <bruno@clisp.org>
20400
20401         ptsname: Improve test.
20402         * tests/test-ptsname.c (main): Also try the various master names of BSD
20403         systems.
20404
20405 2010-04-05  Bruno Haible  <bruno@clisp.org>
20406
20407         memchr: Avoid a possible C++ test error.
20408         * lib/string.in.h (memchr): Provide declaration if function is missing.
20409         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20410         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20411         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20412         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20413
20414 2010-04-05  Bruno Haible  <bruno@clisp.org>
20415
20416         strtok_r: Improve idiom.
20417         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20418         AC_LIBOBJ is used.
20419
20420 2010-04-05  Bruno Haible  <bruno@clisp.org>
20421
20422         strdup: Improve idiom.
20423         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20424         AC_LIBOBJ is used.
20425         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20426         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20427         when AC_LIBOBJ is used.
20428
20429 2010-04-05  Bruno Haible  <bruno@clisp.org>
20430
20431         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20432         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20433         don't set REPLACE_MBSINIT to 1.
20434         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20435         don't set REPLACE_MBRTOWC to 1.
20436         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20437         exist, don't set REPLACE_MBSRTOWCS to 1.
20438         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20439         exist, don't set REPLACE_MBSNRTOWCS to 1.
20440         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20441         don't set REPLACE_WCRTOMB to 1.
20442         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20443         exist, don't set REPLACE_WCSRTOMBS to 1.
20444         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20445         exist, don't set REPLACE_WCSNRTOMBS to 1.
20446
20447 2010-04-05  Bruno Haible  <bruno@clisp.org>
20448
20449         ldexpl: Improve idiom.
20450         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20451         make sure to set HAVE_DECL_LDEXPL to 0.
20452
20453 2010-04-05  Jim Meyering  <meyering@redhat.com>
20454
20455         xstrtol-tests: convert to use init.sh
20456         * modules/xstrtol-tests (Files): Add tests/init.sh.
20457         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20458         Use Exit, not exit.
20459         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20460
20461         atexit-tests: convert to use init.sh
20462         * modules/atexit-tests (Files): Add tests/init.sh.
20463         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20464         Use Exit, not exit.
20465         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20466
20467         init.sh: fix typo
20468         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20469
20470         init.sh: make it easier for a test script to write to the tty, ...
20471         when using automake's parallel-tests mode.
20472         * tests/init.sh (stderr_fileno_): Define overridable variable.
20473         (warn_): New function, to use it.
20474         (fail_, skip_, framework_failure_): Use warn_.
20475
20476 2010-04-04  Bruno Haible  <bruno@clisp.org>
20477
20478         btowc: Avoid warning.
20479         * lib/btowc.c: Include <stdlib.h>.
20480         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20481
20482 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20483             Bruno Haible  <bruno@clisp.org>
20484
20485         wchar: Port to NetBSD 1.5.
20486         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20487         * lib/wctype.in.h (WEOF): Likewise.
20488
20489 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20490             Bruno Haible  <bruno@clisp.org>
20491
20492         Port extended stdio to NetBSD 1.5.
20493         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20494         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20495         older.
20496
20497 2010-04-04  Bruno Haible  <bruno@clisp.org>
20498
20499         string: Remove unused substitution.
20500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20501         HAVE_DECL_STRERROR.
20502         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20503
20504 2010-04-04  Bruno Haible  <bruno@clisp.org>
20505
20506         strtod: Avoid a possible C++ test error.
20507         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20508         set REPLACE_STRTOD.
20509
20510 2010-04-04  Bruno Haible  <bruno@clisp.org>
20511
20512         strerror: Update documentation.
20513         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20514
20515 2010-04-04  Bruno Haible  <bruno@clisp.org>
20516
20517         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20518         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20519         _GL_CXXALIAS_SYS_CAST.
20520
20521 2010-04-04  Bruno Haible  <bruno@clisp.org>
20522
20523         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20524         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20525         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20526         REPLACE_FREXPL to 1.
20527         * doc/posix-functions/frexpl.texi: Update documentation.
20528
20529 2010-04-04  Bruno Haible  <bruno@clisp.org>
20530
20531         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20532         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20533
20534 2010-04-04  Bruno Haible  <bruno@clisp.org>
20535
20536         Implement nanosleep for native Windows.
20537         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20538
20539 2010-04-04  Bruno Haible  <bruno@clisp.org>
20540
20541         math: Fix some C++ test errors on Solaris 8.
20542         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20543
20544 2010-04-04  Bruno Haible  <bruno@clisp.org>
20545
20546         math: Fix some C++ test errors on Cygwin.
20547         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20548         truncl): Provide declaration if the system does not have it.
20549         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20550         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20551         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20552         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20553         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20554         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20555         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20556         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20557         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20558         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20559         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20560         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20561         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20562         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20563         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20564         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20565         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20566         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20567         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20568         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20569         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20570         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20571
20572 2010-04-04  Bruno Haible  <bruno@clisp.org>
20573
20574         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20575         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20576         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20577         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20578         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20579         * m4/isinf.m4 (gl_ISINF): Likewise.
20580         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20581
20582 2010-04-04  Bruno Haible  <bruno@clisp.org>
20583
20584         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20585         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20586
20587 2010-04-04  Bruno Haible  <bruno@clisp.org>
20588
20589         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20590         * modules/tmpfile (configure.ac): Update.
20591
20592         tmpfile: Fix C++ test error on mingw.
20593         * lib/stdio.in.h (tmpfile): New declaration.
20594         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20595         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20596         * modules/tmpfile (Depends-on): Add stdio.
20597         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20598         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20599         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20600         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20601         REPLACE_TMPFILE.
20602         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20603
20604 2010-04-04  Bruno Haible  <bruno@clisp.org>
20605
20606         ioctl: Fix C++ test error on mingw.
20607         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20608         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20609         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20610
20611 2010-04-03  Bruno Haible  <bruno@clisp.org>
20612
20613         wcwidth: Fix C++ test error on mingw.
20614         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20616         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20617
20618 2010-04-03  Bruno Haible  <bruno@clisp.org>
20619
20620         nanosleep: Fix C++ test error on mingw.
20621         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20622         * lib/time.in.h (nanosleep): Use modern idiom.
20623         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20624         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20625         REPLACE_NANOSLEEP to 1.
20626         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20627         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20628
20629 2010-04-03  Bruno Haible  <bruno@clisp.org>
20630
20631         strptime: Fix C++ test error on mingw.
20632         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20633         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20634         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20635         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20636         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20637         not REPLACE_STRPTIME.
20638         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20639         REPLACE_STRPTIME.
20640
20641 2010-04-03  Bruno Haible  <bruno@clisp.org>
20642
20643         timegm: Fix C++ test error on mingw.
20644         * lib/time.in.h (timegm): Use modern idiom.
20645         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20646         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20647         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20648         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20649
20650 2010-04-03  Bruno Haible  <bruno@clisp.org>
20651
20652         timegm: Assume declaration if function exists.
20653         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20654         if it exists. Don't clobber ac_cv_func_timegm.
20655
20656 2010-04-03  Bruno Haible  <bruno@clisp.org>
20657
20658         time_r: Fix C++ test error on mingw.
20659         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20660         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20661         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20662         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20663         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20664
20665 2010-04-03  Bruno Haible  <bruno@clisp.org>
20666
20667         time_r: Minor updates.
20668         * modules/time_r (Description): Mention the provided functions.
20669         * lib/time_r.c: Don't include <string.h>.
20670         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20671         * doc/posix-functions/localtime_r.texi: Likewise.
20672
20673 2010-04-03  Bruno Haible  <bruno@clisp.org>
20674
20675         time: Fix regression introduced on 2010-03-08.
20676         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20677         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20678
20679 2010-04-03  Jim Meyering  <meyering@redhat.com>
20680
20681         maint.mk: don't silently disable project-specific syntax-check rules
20682         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20683         that they need to convert their project-specific syntax-check rules
20684         to use the new _sc_search_regexp.
20685
20686 2010-04-03  Bruno Haible  <bruno@clisp.org>
20687
20688         fchdir: Fix regression introduced on 2010-03-08.
20689         * lib/unistd.in.h (fchdir): Fix declaration.
20690         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20691         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20692         REPLACE_FCHDIR.
20693         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20694         REPLACE_FCHDIR.
20695
20696 2010-04-03  Bruno Haible  <bruno@clisp.org>
20697
20698         getpagesize: Fix C++ test error on mingw.
20699         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20700         system does not declare the function.
20701         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20702         declared.
20703         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20704         HAVE_DECL_GETPAGESIZE.
20705         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20706
20707 2010-04-03  Bruno Haible  <bruno@clisp.org>
20708
20709         stdio: Make C++ tests work on mingw.
20710         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20711         does not declare the function.
20712
20713 2010-04-03  Bruno Haible  <bruno@clisp.org>
20714
20715         ftello: Fix C++ test error on mingw.
20716         * lib/stdio.in.h (ftello): Use modern idiom.
20717         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20718         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20719         is missing and that it needs to be replaced.
20720         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20721         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20722         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20723
20724 2010-04-03  Bruno Haible  <bruno@clisp.org>
20725
20726         fseeko: Fix C++ test error on mingw.
20727         * lib/stdio.in.h (fseeko): Use modern idiom.
20728         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20729         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20730         is missing and that it needs to be replaced.
20731         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20732         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20733         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20734
20735 2010-04-03  Bruno Haible  <bruno@clisp.org>
20736
20737         mkstemp: Fix C++ test error on mingw.
20738         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20739         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20740         function is missing and that it needs to be replaced.
20741         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20742         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20743
20744 2010-04-03  Bruno Haible  <bruno@clisp.org>
20745
20746         stpncpy: Fix C++ test error on mingw.
20747         * lib/string.in.h (stpncpy): Use modern idiom.
20748         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20749         function is missing and that it needs to be replaced.
20750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20751         REPLACE_STPNCPY.
20752         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20753
20754 2010-04-03  Bruno Haible  <bruno@clisp.org>
20755
20756         sys_stat: Fix C++ test error on mingw.
20757         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20758         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20759
20760 2010-04-03  Bruno Haible  <bruno@clisp.org>
20761
20762         pty: Update doc.
20763         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20764
20765 2010-04-03  Bruno Haible  <bruno@clisp.org>
20766
20767         unistd: Fix C++ test error on mingw.
20768         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20769
20770 2010-04-03  Bruno Haible  <bruno@clisp.org>
20771
20772         Update doc regarding mingw.
20773         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20774         * doc/glibc-functions/login_tty.texi: Likewise.
20775         * doc/glibc-functions/forkpty.texi: Likewise.
20776
20777 2010-04-03  Bruno Haible  <bruno@clisp.org>
20778
20779         stdlib: Avoid compilation failure of c-strtold on mingw.
20780         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20781
20782 2010-04-03  Bruno Haible  <bruno@clisp.org>
20783
20784         locale: Make C++ tests work on Cygwin and mingw.
20785         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20786         cannot provide the function.
20787         Reported by Simon Josefsson.
20788
20789 2010-04-03  Bruno Haible  <bruno@clisp.org>
20790
20791         localename: Port to MacOS X 10.6.
20792         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20793         memory layout of the locales in MacOS X 10.6 as well.
20794         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20795
20796 2010-04-02  Bruno Haible  <bruno@clisp.org>
20797
20798         gnulib-tool: Ensure that long-running tests are executed last.
20799         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20800         running tests after the one for the other tests.
20801
20802 2010-04-02  Bruno Haible  <bruno@clisp.org>
20803
20804         gnulib-tool: Ensure the tests in the main directory are executed first.
20805         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20806         start with the current directory.
20807
20808 2010-04-02  Bruno Haible  <bruno@clisp.org>
20809
20810         Tests for module 'havelib', moved here from GNU gettext.
20811         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20812         modifications.
20813         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20814         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20815         with modifications.
20816         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20817         modifications.
20818         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20819         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20820         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20821         with modifications.
20822         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20823         with modifications.
20824         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20825         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20826         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20827         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20828         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20829         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20830         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20831         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20832         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20833         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20834         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20835         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20836         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20837         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20838         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20839         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20840         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20841         with modifications.
20842         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20843         with modifications.
20844         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20845         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20846         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20847         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20848         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20849         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20850         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20851         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20852         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20853         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20854         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20855         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20856         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20857         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20858         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20859         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20860         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20861         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20862         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20863         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20864         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20865         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20866         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20867         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20868         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20869         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20870         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20871         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20872         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20873         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20874         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20875         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20876         * tests/havelib/rpathx/rpathx.c: New file, from
20877         gettext/autoconf-lib-link.
20878         * tests/havelib/rpathx/Makefile.am: New file, from
20879         gettext/autoconf-lib-link.
20880         * tests/havelib/rpathx/configure.ac: New file, from
20881         gettext/autoconf-lib-link with modifications.
20882         * tests/havelib/rpathy/rpathy.c: New file, from
20883         gettext/autoconf-lib-link.
20884         * tests/havelib/rpathy/Makefile.am: New file, from
20885         gettext/autoconf-lib-link.
20886         * tests/havelib/rpathy/configure.ac: New file, from
20887         gettext/autoconf-lib-link with modifications.
20888         * tests/havelib/rpathz/rpathz.c: New file, from
20889         gettext/autoconf-lib-link.
20890         * tests/havelib/rpathz/Makefile.am: New file, from
20891         gettext/autoconf-lib-link.
20892         * tests/havelib/rpathz/configure.ac: New file, from
20893         gettext/autoconf-lib-link with modifications.
20894         * tests/havelib/rpathlx/usex.c: New file, from
20895         gettext/autoconf-lib-link.
20896         * tests/havelib/rpathlx/Makefile.am: New file, from
20897         gettext/autoconf-lib-link.
20898         * tests/havelib/rpathlx/configure.ac: New file, from
20899         gettext/autoconf-lib-link with modifications.
20900         * tests/havelib/rpathly/usey.c: New file, from
20901         gettext/autoconf-lib-link.
20902         * tests/havelib/rpathly/Makefile.am: New file, from
20903         gettext/autoconf-lib-link.
20904         * tests/havelib/rpathly/configure.ac: New file, from
20905         gettext/autoconf-lib-link with modifications.
20906         * tests/havelib/rpathlz/usez.c: New file, from
20907         gettext/autoconf-lib-link.
20908         * tests/havelib/rpathlz/Makefile.am: New file, from
20909         gettext/autoconf-lib-link.
20910         * tests/havelib/rpathlz/configure.ac: New file, from
20911         gettext/autoconf-lib-link with modifications.
20912         * tests/havelib/rpathlyx/usey.c: New file, from
20913         gettext/autoconf-lib-link.
20914         * tests/havelib/rpathlyx/Makefile.am: New file, from
20915         gettext/autoconf-lib-link.
20916         * tests/havelib/rpathlyx/configure.ac: New file, from
20917         gettext/autoconf-lib-link with modifications.
20918         * tests/havelib/rpathlzyx/usez.c: New file, from
20919         gettext/autoconf-lib-link.
20920         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20921         gettext/autoconf-lib-link.
20922         * tests/havelib/rpathlzyx/configure.ac: New file, from
20923         gettext/autoconf-lib-link with modifications.
20924         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20925         with modifications.
20926
20927 2010-04-02  Bruno Haible  <bruno@clisp.org>
20928
20929         gnulib-tool: Create distributed built sources also for the tests.
20930         * gnulib-tool (func_create_testdir): Also generate distributed built
20931         sources in the tests directory.
20932
20933 2010-04-02  Bruno Haible  <bruno@clisp.org>
20934
20935         gnulib-tool: Obey user's environment variables.
20936         * gnulib-tool (func_create_testdir): When creating built sources,
20937         respect the environment variables for autoconf, automake, etc. given by
20938         the user.
20939
20940 2010-04-02  Bruno Haible  <bruno@clisp.org>
20941
20942         gnulib-tool: Provide the value of --m4-base to modules.
20943         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20944         of gl_m4_base.
20945
20946 2010-04-02  Eric Blake  <eblake@redhat.com>
20947
20948         maint.mk: fix some fallout
20949         * NEWS: Document the incompatible change, and its effect on cfg.mk.
20950         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
20951
20952 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
20953
20954         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
20955         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
20956         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
20957         (sc_cast_of_x_alloc_return_value): Likewise.
20958         (sc_cast_of_alloca_return_value): Likewise.
20959         (sc_space_tab): Likewise.
20960         (sc_prohibit_atoi_atof): Likewise.
20961         (sc_prohibit_magic_number_exit): Likewise.
20962         (sc_error_exit_success): Likewise.
20963         (sc_file_system): Likewise.
20964         (sc_prohibit_have_config_h): Likewise.
20965         (sc_require_config_h): Likewise.
20966         (sc_prohibit_HAVE_MBRTOWC): Likewise.
20967         (sc_obsolete_symbols): Likewise.
20968         (sc_changelog): Likewise.
20969         (sc_program_name): Likewise.
20970         (sc_the_the): Likewise.
20971         (sc_trailing_blank): Likewise.
20972         (sc_two_space_separator_in_usage): Likewise.
20973         (sc_useless_cpp_parens): Likewise.
20974         (sc_GPL_version): Likewise.
20975         (sc_GFDL_version): Likewise.
20976         (sc_texinfo_acronym): Likewise.
20977         (sc_prohibit_cvs_keyword): Likewise.
20978         (sc_prohibit_stat_st_blocks): Likewise.
20979         (sc_prohibit_S_IS_definition): Likewise.
20980         (sc_redundant_const): Likewise.
20981         (sc_makefile_TAB_only_indentation): Likewise.
20982         (sc_m4_quote_check): Likewise.
20983         (sc_makefile_path_separator_check): Likewise.
20984         (sc_copyright_check): Likewise.
20985         (sc_Wundef_boolean): Likewise.
20986         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
20987
20988         maint.mk: match 0 or more whitespace-before-function-call '('
20989         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
20990         that have zero or two-and-more spaces between the function name
20991         and the open parenthesis.
20992         (sc_error_message_warn_fatal): Likewise.
20993         (sc_error_message_uppercase): Likewise.
20994         (sc_error_message_period): Likewise.
20995
20996 2010-03-31  Eric Blake  <eblake@redhat.com>
20997
20998         maint.mk: check for [ as well as test
20999         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21000         Based on a libvirt report by Matthias Bolte.
21001
21002         gnumakefile: don't squelch _version output
21003         * top/GNUmakefile (_version): Create one-shot dependency rather
21004         than using $(shell) when version must be regenerated.
21005         (_autoreconf): Run verbosely, by default.
21006
21007         sys_time: avoid compiler warnings
21008         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21009         unconditional, fixing regression from 2010-03-29.
21010         Reported by Simon Josefsson.
21011
21012 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21013
21014         maint.mk: s/_header_without_use/_sc_header_without_use/
21015         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21016         (sc_prohibit_assert_without_use): Use the new name.
21017         (sc_prohibit_close_stream_without_use): Likewise.
21018         (sc_prohibit_getopt_without_use): Likewise.
21019         (sc_prohibit_quotearg_without_use): Likewise.
21020         (sc_prohibit_quote_without_use): Likewise.
21021         (sc_prohibit_long_options_without_use): Likewise.
21022         (sc_prohibit_inttostr_without_use): Likewise.
21023         (sc_prohibit_ignore_value_without_use): Likewise.
21024         (sc_prohibit_error_without_use): Likewise.
21025         (sc_prohibit_xalloc_without_use): Likewise.
21026         (sc_prohibit_hash_without_use): Likewise.
21027         (sc_prohibit_hash_pjw_without_use): Likewise.
21028         (sc_prohibit_safe_read_without_use): Likewise.
21029         (sc_prohibit_argmatch_without_use): Likewise.
21030         (sc_prohibit_canonicalize_without_use): Likewise.
21031         (sc_prohibit_root_dev_ino_without_use): Likewise.
21032         (sc_prohibit_openat_without_use): Likewise.
21033         (sc_prohibit_c_ctype_without_use): Likewise.
21034         (sc_prohibit_signal_without_use): Likewise.
21035         (sc_prohibit_intprops_without_use): Likewise.
21036
21037 2010-03-30  Eric Blake  <eblake@redhat.com>
21038
21039         maint: improve module indicators
21040         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21041         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21042         columns, and avoid extra macro expansion.
21043
21044         fdopendir: work around FreeBSD bug
21045         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21046         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21047         * modules/dirent (Makefile.am): Substitute it.
21048         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21049         declaration.
21050         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21051         fix.
21052         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21053
21054 2010-03-29  Bruno Haible  <bruno@clisp.org>
21055
21056         Emit #pragma system_header after the inclusion guard, not before.
21057         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21058         guard that spans the entire file, not before. This enables an
21059         optimization in GCC's preprocessor.
21060         * lib/ctype.in.h: Likewise.
21061         * lib/dirent.in.h: Likewise.
21062         * lib/errno.in.h: Likewise.
21063         * lib/float.in.h: Likewise.
21064         * lib/getopt.in.h: Likewise.
21065         * lib/iconv.in.h: Likewise.
21066         * lib/langinfo.in.h: Likewise.
21067         * lib/locale.in.h: Likewise.
21068         * lib/math.in.h: Likewise.
21069         * lib/netdb.in.h: Likewise.
21070         * lib/netinet_in.in.h: Likewise.
21071         * lib/pty.in.h: Likewise.
21072         * lib/sched.in.h: Likewise.
21073         * lib/se-selinux.in.h: Likewise.
21074         * lib/search.in.h: Likewise.
21075         * lib/spawn.in.h: Likewise.
21076         * lib/stdarg.in.h: Likewise.
21077         * lib/stdint.in.h: Likewise.
21078         * lib/string.in.h: Likewise.
21079         * lib/strings.in.h: Likewise.
21080         * lib/sys_file.in.h: Likewise.
21081         * lib/sys_ioctl.in.h: Likewise.
21082         * lib/sys_time.in.h: Likewise.
21083         * lib/sys_times.in.h: Likewise.
21084         * lib/sys_utsname.in.h: Likewise.
21085         * lib/sys_wait.in.h: Likewise.
21086         * lib/sysexits.in.h: Likewise.
21087         * lib/wctype.in.h: Likewise.
21088
21089 2010-03-28  James Youngman  <jay@gnu.org>
21090
21091         save-cwd: don't leak a file descriptor when the caller execs.
21092         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21093         saved file descriptor.
21094         * modules/save-cwd (Depends-on): Depend on cloexec.
21095
21096 2010-03-29  Bruno Haible  <bruno@clisp.org>
21097
21098         Remove vestiges of fts-lgpl module.
21099         * lib/fts_.h: Assume GNULIB_FTS is 1.
21100         * lib/fts.c: Likewise.
21101         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21102
21103 2010-03-28  Bruno Haible  <bruno@clisp.org>
21104
21105         Fix definition of tests witness macro.
21106         * gnulib-tool (func_import): Fix definition of witness macro.
21107
21108 2010-03-28  Bruno Haible  <bruno@clisp.org>
21109
21110         Fix ioctl's protoype on glibc systems.
21111         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21112         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21113         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21114         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21115         signature. If not, arrange to replace the ioctl function.
21116         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21117         REPLACE_IOCTL.
21118         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21119         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21120         Reported by Ludovic Courtès <ludo@gnu.org>.
21121
21122 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21123
21124         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21125         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21126         made it so grep -r --include=GLOB* ... did not work.
21127
21128 2010-03-26  Jim Meyering  <meyering@redhat.com>
21129             Eric Blake  <eblake@redhat.com>
21130
21131         maint.mk: prohibit use of test's -o and -a operators
21132         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21133
21134 2010-03-28  Bruno Haible  <bruno@clisp.org>
21135
21136         Remove unused GNULIB_XYZ macro definitions.
21137         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21138         invocation.
21139
21140 2010-03-28  Bruno Haible  <bruno@clisp.org>
21141
21142         Mark privileged tests modules.
21143         * modules/idpriv-drop-tests (Status): New section.
21144         * modules/idpriv-droptemp-tests (Status): New section.
21145
21146 2010-03-28  Bruno Haible  <bruno@clisp.org>
21147
21148         Split C++ tests into separate tests modules.
21149         * modules/dirent-c++-tests: New file, extracted from
21150         modules/dirent-tests.
21151         * modules/dirent-tests: Depend on it.
21152         * modules/fcntl-h-c++-tests: New file, extracted from
21153         modules/fcntl-h-tests.
21154         * modules/fcntl-h-tests: Depend on it.
21155         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21156         * modules/glob-tests: Depend on it.
21157         * modules/iconv-h-c++-tests: New file, extracted from
21158         modules/iconv-h-tests.
21159         * modules/iconv-h-tests: Depend on it.
21160         * modules/langinfo-c++-tests: New file, extracted from
21161         modules/langinfo-tests.
21162         * modules/langinfo-tests: Depend on it.
21163         * modules/locale-c++-tests: New file, extracted from
21164         modules/locale-tests.
21165         * modules/locale-tests: Depend on it.
21166         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21167         * modules/math-tests: Depend on it.
21168         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21169         * modules/pty-tests: Depend on it.
21170         * modules/search-c++-tests: New file, extracted from
21171         modules/search-tests.
21172         * modules/search-tests: Depend on it.
21173         * modules/signal-c++-tests: New file, extracted from
21174         modules/signal-tests.
21175         * modules/signal-tests: Depend on it.
21176         * modules/spawn-c++-tests: New file, extracted from
21177         modules/spawn-tests.
21178         * modules/spawn-tests: Depend on it.
21179         * modules/stdio-c++-tests: New file, extracted from
21180         modules/stdio-tests.
21181         * modules/stdio-tests: Depend on it.
21182         * modules/stdlib-c++-tests: New file, extracted from
21183         modules/stdlib-tests.
21184         * modules/stdlib-tests: Depend on it.
21185         * modules/string-c++-tests: New file, extracted from
21186         modules/string-tests.
21187         * modules/string-tests: Depend on it.
21188         * modules/sys_ioctl-c++-tests: New file, extracted from
21189         modules/sys_ioctl-tests.
21190         * modules/sys_ioctl-tests: Depend on it.
21191         * modules/sys_select-c++-tests: New file, extracted from
21192         modules/sys_select-tests.
21193         * modules/sys_select-tests: Depend on it.
21194         * modules/sys_socket-c++-tests: New file, extracted from
21195         modules/sys_socket-tests.
21196         * modules/sys_socket-tests: Depend on it.
21197         * modules/sys_stat-c++-tests: New file, extracted from
21198         modules/sys_stat-tests.
21199         * modules/sys_stat-tests: Depend on it.
21200         * modules/sys_time-c++-tests: New file, extracted from
21201         modules/sys_time-tests.
21202         * modules/sys_time-tests: Depend on it.
21203         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21204         * modules/time-tests: Depend on it.
21205         * modules/unistd-c++-tests: New file, extracted from
21206         modules/unistd-tests.
21207         * modules/unistd-tests: Depend on it.
21208         * modules/wchar-c++-tests: New file, extracted from
21209         modules/wchar-tests.
21210         * modules/wchar-tests: Depend on it.
21211         * modules/wctype-c++-tests: New file, extracted from
21212         modules/wctype-tests.
21213         * modules/wctype-tests: Depend on it.
21214         Reported by Simon Josefsson.
21215
21216 2010-03-28  Bruno Haible  <bruno@clisp.org>
21217
21218         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21219         * gnulib-tool (func_exists_module): New function, extracted from
21220         func_verify_module.
21221         (func_verify_module): Use it.
21222         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21223         'foo' only if 'foo' exists.
21224         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21225         module.
21226
21227 2010-03-28  Bruno Haible  <bruno@clisp.org>
21228
21229         gnulib-tool: Add support for special categories of tests.
21230         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21231         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21232         (func_usage): Document them.
21233         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21234         inc_unportable_tests, inc_all_tests): New variables.
21235         (func_acceptable): Consider these variables.
21236         (func_modules_transitive_closure): Make it work when the 'Status' field
21237         consists of multiple words.
21238         (func_import): Store and restore the values of inc_cxx_tests,
21239         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21240         inc_all_tests in gnulib-comp.m4.
21241         (func_create_testdir): Set inc_all_tests to true.
21242         * doc/gnulib.texi (Extra tests modules): New section.
21243         Suggested by Jim Meyering.
21244
21245 2010-03-28  Bruno Haible  <bruno@clisp.org>
21246
21247         ansi-c++-opt: Allow turning off the C++ build by default.
21248         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21249         gl_CXX_CHOICE_DEFAULT_NO is defined.
21250         Requested by Eric Blake.
21251
21252 2010-03-28  Bruno Haible  <bruno@clisp.org>
21253
21254         unistd: Avoid #define replacements in C++ mode.
21255         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21256         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21257         setsockopt, shutdown, select): In C++, attach a warning to the function
21258         if possible, rather than #defining the symbol to a dysfunctional alias.
21259         Reported by John W. Eaton <jwe@gnu.org>.
21260
21261 2010-03-28  Bruno Haible  <bruno@clisp.org>
21262
21263         Fix link errors on mingw.
21264         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21265         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21266         $(LIBSOCKET).
21267         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21268         $(LIBSOCKET).
21269
21270 2010-03-28  Bruno Haible  <bruno@clisp.org>
21271             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21272
21273         lib-ignore: Determine different options for different compilers.
21274         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21275         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21276         Add comments.
21277         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21278         * NEWS: Mention the change.
21279
21280 2010-03-27  Bruno Haible  <bruno@clisp.org>
21281
21282         Remove unused GNULIB_XYZ macro definitions.
21283         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21284         * modules/fseek (configure.ac): Likewise.
21285         * modules/ioctl (configure.ac): Likewise.
21286         * modules/open (configure.ac): Likewise.
21287         * modules/stdlib-safer (configure.ac): Likewise.
21288
21289 2010-03-27  Bruno Haible  <bruno@clisp.org>
21290
21291         Add a remark about certain modules.
21292         * modules/malloc (Comment): New section.
21293         * modules/realloc (Comment): Likewise.
21294         * modules/sigpipe (Comment): Likewise.
21295
21296 2010-03-27  Bruno Haible  <bruno@clisp.org>
21297
21298         Resolve conflict between the two kinds of module indicators.
21299         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21300         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21301         * modules/canonicalize (configure.ac): Invoke
21302         gl_MODULE_INDICATOR_FOR_TESTS.
21303         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21304         GNULIB_XYZ.
21305         * tests/test-dirent-c++.cc: Likewise.
21306         * tests/test-dirent-safer.c: Likewise.
21307         * tests/test-dup2.c: Likewise.
21308         * tests/test-fchdir.c: Likewise.
21309         * tests/test-fcntl-h-c++.cc: Likewise.
21310         * tests/test-getopt.c: Likewise.
21311         * tests/test-getopt.h: Likewise.
21312         * tests/test-langinfo-c++.cc: Likewise.
21313         * tests/test-locale-c++.cc: Likewise.
21314         * tests/test-math-c++.cc: Likewise.
21315         * tests/test-pty-c++.cc: Likewise.
21316         * tests/test-search-c++.cc: Likewise.
21317         * tests/test-signal-c++.cc: Likewise.
21318         * tests/test-spawn-c++.cc: Likewise.
21319         * tests/test-stdio-c++.cc: Likewise.
21320         * tests/test-stdlib-c++.cc: Likewise.
21321         * tests/test-string-c++.cc: Likewise.
21322         * tests/test-sys_ioctl-c++.cc: Likewise.
21323         * tests/test-sys_select-c++.cc: Likewise.
21324         * tests/test-sys_socket-c++.cc: Likewise.
21325         * tests/test-sys_stat-c++.cc: Likewise.
21326         * tests/test-sys_time-c++.cc: Likewise.
21327         * tests/test-time-c++.cc: Likewise.
21328         * tests/test-unistd-c++.cc: Likewise.
21329         * tests/test-wchar-c++.cc: Likewise.
21330         * tests/uninorm/test-u8-nfc.c: Likewise.
21331         * tests/uninorm/test-u8-nfd.c: Likewise.
21332         * tests/uninorm/test-u8-nfkc.c: Likewise.
21333         * tests/uninorm/test-u8-nfkd.c: Likewise.
21334         * tests/uninorm/test-u16-nfc.c: Likewise.
21335         * tests/uninorm/test-u16-nfd.c: Likewise.
21336         * tests/uninorm/test-u16-nfkc.c: Likewise.
21337         * tests/uninorm/test-u16-nfkd.c: Likewise.
21338         * tests/uninorm/test-u32-nfc.c: Likewise.
21339         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21340         * tests/uninorm/test-u32-nfd.c: Likewise.
21341         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21342         * tests/uninorm/test-u32-nfkc.c: Likewise.
21343         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21344         * tests/uninorm/test-u32-nfkd.c: Likewise.
21345         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21346         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21347
21348 2010-03-27  Bruno Haible  <bruno@clisp.org>
21349
21350         Distinguish two kinds of module indicators.
21351         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21352         gl_MODULE_INDICATOR.
21353         (gl_MODULE_INDICATOR): New macro.
21354         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21355         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21356         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21357         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21358         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21359         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21360         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21361         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21362         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21363         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21364         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21365         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21366         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21367         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21368         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21369         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21370         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21371         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21372         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21373         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21374         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21375         * modules/cloexec (configure.ac): Likewise.
21376         * modules/getopt-gnu (configure.ac): Likewise.
21377         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21378         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21379         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21380         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21381
21382 2010-03-27  Bruno Haible  <bruno@clisp.org>
21383
21384         New module description field 'Comment'.
21385         * gnulib-tool: New option --extract-comment.
21386         (func_usage): Document it.
21387         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21388         (func_get_comment): New function.
21389         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21390
21391 2010-03-27  Bruno Haible  <bruno@clisp.org>
21392
21393         Addendum to 2010-02-07 commit.
21394         * gnulib-tool (func_usage): Document --extract-applicability option.
21395
21396 2010-03-27  Bruno Haible  <bruno@clisp.org>
21397
21398         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21399         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21400         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21401         rather than link errors.
21402
21403 2010-03-27  Bruno Haible  <bruno@clisp.org>
21404
21405         Avoid side effects from tests-related modules on the compilation of lib.
21406         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21407         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21408         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21409         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21410         macro.
21411         (func_import): Define a witness macro. Assign it a value that depends
21412         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21413         tests-related modules.
21414         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21415         Reported by Jim Meyering.
21416
21417 2010-03-27  Bruno Haible  <bruno@clisp.org>
21418
21419         Factorize common .m4 code.
21420         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21421         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21422         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21423         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21424         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21425         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21426         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21427         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21428         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21429         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21430         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21431         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21432         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21433         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21434         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21435         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21436         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21437         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21438         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21439         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21440         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21441         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21442         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21443         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21444         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21445         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21446         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21447         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21448         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21449         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21450         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21451         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21452
21453 2010-03-27  Bruno Haible  <bruno@clisp.org>
21454
21455         Fix a compilation error on Cygwin with g++ >= 4.3.
21456         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21457         if it is undefined or if we alias it to chmod.
21458         (lstat): Don't warn about the use of this function if it is undefined
21459         or if we alias it to stat.
21460         Reported by Simon Josefsson.
21461
21462 2010-03-27  Bruno Haible  <bruno@clisp.org>
21463
21464         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21465         * modules/getlogin (configure.ac): Update.
21466
21467         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21468         * modules/getlogin_r (configure.ac): Update.
21469
21470         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21471         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21472         * modules/inet_ntop (configure.ac): Update.
21473
21474         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21475         * modules/inet_pton (configure.ac): Update.
21476
21477         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21478         * modules/mbslen (configure.ac): Update.
21479
21480         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21481         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21482         * modules/forkpty (configure.ac): Update.
21483         * modules/openpty (configure.ac): Update.
21484
21485 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21486
21487         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21488         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21489
21490 2010-03-25  Eric Blake  <eblake@redhat.com>
21491
21492         maint: use pragma consistently across replacement headers
21493         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21494         * lib/dirent.in.h (system_header): Likewise.
21495         * lib/errno.in.h (system_header): Likewise.
21496         * lib/float.in.h (system_header): Likewise.
21497         * lib/getopt.in.h (system_header): Likewise.
21498         * lib/iconv.in.h (system_header): Likewise.
21499         * lib/inttypes.in.h (system_header): Likewise.
21500         * lib/langinfo.in.h (system_header): Likewise.
21501         * lib/locale.in.h (system_header): Likewise.
21502         * lib/math.in.h (system_header): Likewise.
21503         * lib/netdb.in.h (system_header): Likewise.
21504         * lib/netinet_in.in.h (system_header): Likewise.
21505         * lib/pty.in.h (system_header): Likewise.
21506         * lib/sched.in.h (system_header): Likewise.
21507         * lib/se-selinux.in.h (system_header): Likewise.
21508         * lib/search.in.h (system_header): Likewise.
21509         * lib/spawn.in.h (system_header): Likewise.
21510         * lib/stdarg.in.h (system_header): Likewise.
21511         * lib/stdint.in.h (system_header): Likewise.
21512         * lib/string.in.h (system_header): Likewise.
21513         * lib/strings.in.h (system_header): Likewise.
21514         * lib/sys_file.in.h (system_header): Likewise.
21515         * lib/sys_ioctl.in.h (system_header): Likewise.
21516         * lib/sys_socket.in.h (system_header): Likewise.
21517         * lib/sys_times.in.h (system_header): Likewise.
21518         * lib/sys_utsname.in.h (system_header): Likewise.
21519         * lib/sys_wait.in.h (system_header): Likewise.
21520         * lib/sysexits.in.h (system_header): Likewise.
21521         * lib/unistd.in.h (system_header): Likewise.
21522         * lib/wctype.in.h (system_header): Likewise.
21523
21524         arpa/inet: fix mingw compilation warning
21525         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21526         Reported by Matthew Bolte.
21527
21528 2010-03-25  Bruno Haible  <bruno@clisp.org>
21529
21530         Avoid collision between gnulib wrapper and libintl wrapper.
21531         * lib/printf.c (printf): Don't define if a printf wrapper is already
21532         defined in intl/printf.c.
21533         Reported by Michel Boaventura <michel@michelboaventura.com>.
21534
21535 2010-03-25  Bruno Haible  <bruno@clisp.org>
21536
21537         Use ANSI C.
21538         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21539
21540 2010-03-25  Bruno Haible  <bruno@clisp.org>
21541
21542         Minor formatting changes.
21543         * lib/acosl.c: Insert space before function argument list.
21544         * lib/argz.c: Likewise.
21545         * lib/asinl.c: Likewise.
21546         * lib/expl.c: Likewise.
21547         * lib/gen-uni-tables.c: Likewise.
21548         * lib/gettext.h: Likewise.
21549         * lib/glthread/lock.h: Likewise.
21550         * lib/tanl.c: Likewise.
21551         * lib/uniname/uniname.c: Likewise.
21552         * tests/test-idpriv-drop.c: Likewise.
21553         * tests/test-idpriv-droptemp.c: Likewise.
21554         * tests/test-lock.c: Likewise.
21555         * tests/test-tls.c: Likewise.
21556         * lib/argp-help.c: Insert space before function-like macro argument
21557         list.
21558         * lib/memcmp.c: Likewise.
21559         * tests/test-base64.c: Likewise.
21560         * lib/localename.c: Insert space before sizeof's argument list.
21561         * lib/safe-alloc.h: Likewise.
21562         * lib/file-set.h: Insert space before macro argument list.
21563         * tests/test-argp.c: Likewise.
21564         * lib/argp-namefrob.h: Insert space before function parameter list.
21565         * lib/getaddrinfo.c: Likewise.
21566         * lib/netdb.in.h: Likewise.
21567         * lib/parse-duration.h: Likewise.
21568         * lib/parse-duration.c: Likewise.
21569         * lib/poll.c: Likewise.
21570         * lib/select.c: Likewise.
21571         * lib/trim.h: Likewise.
21572         * tests/test-usleep.c: Likewise.
21573         * lib/ldexpl.c: Insert space before function parameter list and before
21574         function argument list.
21575         * lib/logl.c: Likewise.
21576         * lib/sqrtl.c: Likewise.
21577         * lib/trim.c: Likewise.
21578         * lib/cosl.c: Use GNU style indentation. Insert space before function
21579         argument list.
21580         * lib/sinl.c: Likewise.
21581         * lib/tsearch.c: Insert space after 'for'.
21582         Reported by Jim Meyering.
21583
21584 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21585
21586         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21587         config header before grepping, as it's not present before
21588         autoreconf/configure are run.  Reported by Simon Josefsson.
21589
21590 2010-03-23  Bruno Haible  <bruno@clisp.org>
21591
21592         pt_chown: Make it work with automake < 1.11.
21593         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21594         Reported by Simon Josefsson.
21595
21596 2010-03-23  Bruno Haible  <bruno@clisp.org>
21597
21598         pt_chown: Don't depend on GPLed modules.
21599         * lib/pt_chown.c: Don't include idpriv.h.
21600         (main): Don't drop privileges.
21601         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21602         Reported by Simon Josefsson.
21603
21604 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21605
21606         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21607         suggestions from karl@freefriends.org (Karl Berry).
21608
21609 2010-03-22  Eric Blake  <eblake@redhat.com>
21610
21611         gethostname: further tweaks
21612         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21613         are overriding gethostname.
21614         Suggested by Bruno Haible.
21615
21616 2010-03-21  Bruno Haible  <bruno@clisp.org>
21617
21618         Fix comments.
21619         * lib/forkpty.c (rpl_forkpty): Fix comment.
21620         * lib/openpty.c (rpl_openpty): Likewise.
21621         Reported by Eric Blake.
21622
21623 2010-03-22  Eric Blake  <eblake@redhat.com>
21624
21625         gethostname: fix build on mingw
21626         * lib/unistd.in.h (includes): Work around fact that mingw
21627         <winsock2.h> re-includes <unistd.h>, by avoiding any
21628         redeclarations if we are being included by <winsock2.h>.
21629         Reported by Matthias Bolte.
21630
21631 2010-03-21  Bruno Haible  <bruno@clisp.org>
21632
21633         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21634         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21635         modifications.
21636         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21637         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21638         provide the replacement.
21639         * modules/forkpty (Depends-on): Add openpty, login_tty.
21640         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21641         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21642         * doc/glibc-functions/forkpty.texi: More supported platforms.
21643         * config/srclist.txt: Add forkpty.c (commented).
21644
21645 2010-03-21  Bruno Haible  <bruno@clisp.org>
21646
21647         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21648         (Makefile.am): Verify that PTY_LIB is defined.
21649
21650         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21651
21652 2010-03-21  Bruno Haible  <bruno@clisp.org>
21653
21654         Tests for module 'login_tty'.
21655         * modules/login_tty-tests: New file.
21656         * tests/test-login_tty.c: New file.
21657
21658         New module 'login_tty'.
21659         * lib/login_tty.c: New file.
21660         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21661         * modules/login_tty: New file.
21662         * doc/glibc-functions/login_tty.texi: Mention the new module.
21663
21664 2010-03-21  Bruno Haible  <bruno@clisp.org>
21665
21666         login_tty: Documentation.
21667         * doc/glibc-functions/login_tty.texi: New file.
21668         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21669
21670 2010-03-21  Bruno Haible  <bruno@clisp.org>
21671
21672         pty: Consistent macro naming.
21673         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21674         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21675         * modules/pty (configure.ac): Update.
21676
21677 2010-03-21  Bruno Haible  <bruno@clisp.org>
21678
21679         Tests for openpty: Make stricter.
21680         * tests/test-openpty.c (main): Add test of canonical processing and
21681         erase.
21682         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21683
21684         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21685         * lib/openpty.c (openpty): New replacement function.
21686         * lib/pty.in.h: Include <termios.h>.
21687         (openpty): Update declaration. Add comments.
21688         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21689         is not declared, arrange to provide the replacement. Check for _getpty
21690         and posix_openpt.
21691         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21692         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21693         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21694         * modules/pty-tests (test_pty_c___LDADD): New variable.
21695         * doc/glibc-functions/openpty.texi: More supported platforms.
21696
21697 2010-03-21  Bruno Haible  <bruno@clisp.org>
21698
21699         setenv: Tweaks.
21700         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21701         the test program.
21702         * doc/posix-functions/setenv.texi: Update platforms list.
21703
21704 2010-03-21  Bruno Haible  <bruno@clisp.org>
21705
21706         New module 'unlockpt'.
21707         * lib/unlockpt.c: New file, from glibc with modifications.
21708         * m4/unlockpt.m4: New file.
21709         * modules/unlockpt: New file.
21710         * lib/stdlib.in.h (unlockpt): New declaration.
21711         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21712         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21713         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21714         HAVE_UNLOCKPT.
21715         * doc/posix-functions/unlockpt.texi: Mention the new module.
21716         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21717         * config/srclist.txt: Add unlockpt.c (commented).
21718
21719 2010-03-21  Jim Meyering  <meyering@redhat.com>
21720
21721         maint.mk: prohibit inclusion of "intprops.h" without use
21722         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21723
21724 2010-03-21  Bruno Haible  <bruno@clisp.org>
21725
21726         New module 'grantpt'.
21727         * lib/grantpt.c: New file, from glibc with modifications.
21728         * m4/grantpt.m4: New file.
21729         * modules/grantpt: New file.
21730         * lib/stdlib.in.h (grantpt): New declaration.
21731         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21732         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21733         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21734         HAVE_GRANTPT.
21735         * doc/posix-functions/grantpt.texi: Mention the new module.
21736         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21737         * config/srclist.txt: Add grantpt.c (commented).
21738
21739 2010-03-21  Bruno Haible  <bruno@clisp.org>
21740
21741         New module 'pt_chown'.
21742         * lib/pt_chown.c: New file, from glibc with modifications.
21743         * lib/pty-private.h: New file, from glibc with modifications.
21744         * modules/pt_chown: New file.
21745         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21746
21747 2010-03-21  Bruno Haible  <bruno@clisp.org>
21748
21749         Tests for module 'ptsname'.
21750         * modules/ptsname-tests: New file.
21751         * tests/test-ptsname.c: New file.
21752
21753         New module 'ptsname'.
21754         * lib/ptsname.c: New file, from glibc with modifications.
21755         * m4/ptsname.m4: New file.
21756         * modules/ptsname: New file.
21757         * lib/stdlib.in.h (ptsname): New declaration.
21758         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21759         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21760         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21761         HAVE_PTSNAME.
21762         * doc/posix-functions/ptsname.texi: Mention the new module.
21763         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21764         * config/srclist.txt: Add ptsname.c (commented).
21765
21766 2010-03-21  Bruno Haible  <bruno@clisp.org>
21767
21768         Tests for module 'ttyname_r'.
21769         * modules/ttyname_r-tests: New file.
21770         * tests/test-ttyname_r.c: New file.
21771
21772         New module 'ttyname_r'.
21773         * lib/ttyname_r.c: New file.
21774         * m4/ttyname_r.m4: New file.
21775         * modules/ttyname_r: New file.
21776         * lib/unistd.in.h (ttyname_r): New declaration.
21777         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21778         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21779         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21780         HAVE_TTYNAME_R.
21781         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21782         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21783
21784 2010-03-20  Bruno Haible  <bruno@clisp.org>
21785
21786         signal: Undefine macro definitions in C++ mode.
21787         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21788         sigfillset): Undefine macro definitions from the system header in C++
21789         mode.
21790         Reported by John W. Eaton <jwe@gnu.org>.
21791
21792 2010-03-20  Bruno Haible  <bruno@clisp.org>
21793
21794         Ensure no #include statements inside extern "C" { ... }.
21795         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21796         contain #include statements.
21797         * lib/time.in.h: Likewise.
21798
21799 2010-03-20  Bruno Haible  <bruno@clisp.org>
21800
21801         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21802         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21803         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21804         Reported by John W. Eaton <jwe@gnu.org>.
21805
21806 2010-03-20  Bruno Haible  <bruno@clisp.org>
21807
21808         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21809         Reported by Jim Meyering.
21810
21811 2010-03-20  Bruno Haible  <bruno@clisp.org>
21812
21813         pipe: Set errno upon failure.
21814         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21815         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21816         errno value in error message.
21817
21818 2010-03-20  Bruno Haible  <bruno@clisp.org>
21819             Jim Meyering  <meyering@redhat.com>
21820
21821         lchown: Avoid "unused variable" warning.
21822         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21823
21824 2010-03-20  Bruno Haible  <bruno@clisp.org>
21825
21826         Work around unlink() bug on MacOS X 10.5.6.
21827         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21828         attempting to unlink a parent directory.
21829         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21830         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21831         activate for the replacement function.
21832         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21833
21834 2010-03-20  Bruno Haible  <bruno@clisp.org>
21835
21836         Fix link errors on Solaris 8.
21837         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21838         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21839
21840 2010-03-19  Jim Meyering  <meyering@redhat.com>
21841
21842         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21843         The _LIBC implementation of build_range_exp correctly honors the
21844         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21845         However, the non-_LIBC implementation would ignore that syntax-bit
21846         flag and return REG_ERANGE unconditionally.
21847         This change makes it honor that flag.
21848         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21849         Make two pointer parameters "const".
21850         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21851         (parse_bracket_exp): Update caller.
21852
21853         regex.m4: correct the reversed range endpoint ([b-a]) test
21854         * m4/regex.m4: When requiring that [b-a] evoke failure,
21855         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21856         test pass once again for x86-based systems.
21857
21858 2010-03-19  Bruno Haible  <bruno@clisp.org>
21859
21860         scandir: Fix link error on Solaris 8.
21861         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21862         macros.
21863
21864 2010-03-19  Bruno Haible  <bruno@clisp.org>
21865
21866         getusershell: Fix documentation.
21867         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21868         module.
21869         * doc/glibc-functions/setusershell.texi: Likewise.
21870
21871         getusershell: Provide declaration, missing on Solaris 9.
21872         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21873         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21874         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21875         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21876         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21877         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21878         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21879         HAVE_GETUSERSHELL.
21880         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21881
21882 2010-03-19  Bruno Haible  <bruno@clisp.org>
21883
21884         wctype: Provide iswblank function.
21885         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21886         exists and is fine.
21887         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21888         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21889         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21890         * doc/posix-functions/iswblank.texi: Update.
21891
21892 2010-03-19  Bruno Haible  <bruno@clisp.org>
21893
21894         Tests of module 'pty' in C++ mode.
21895         * modules/pty-tests: New file.
21896         * tests/test-pty-c++.cc: New file.
21897         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21898
21899 2010-03-19  Eric Blake  <eblake@redhat.com>
21900
21901         logb: fix documentation
21902         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21903         1.5 declaration bug.
21904
21905         forkpty, openpty: prefer glibc's const-safe prototype
21906         * lib/forkpty.c (rpl_forkpty): New file.
21907         * lib/openpty.c (rpl_openpty): Likewise.
21908         * modules/forkpty (Files): Distribute it.
21909         * modules/openpty (Files): Likewise.
21910         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21911         check...
21912         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21913         replacement for for non-const BSD signature.
21914         * modules/pty (Makefile.am): Substitute witnesses.
21915         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21916         * tests/test-forkpty.c: Update signature check.
21917         * tests/test-openpty.c: Likewise.
21918         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21919         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21920
21921         forkpty, openpty: split functions into new modules
21922         * modules/pty (Makefile.am): Substitute new witnesses.
21923         (Libraries): Move library detection...
21924         * modules/forkpty: ...into new module.
21925         * modules/openpty: Another new module.
21926         * modules/pty-tests: Rename and split...
21927         * modules/forkpty-tests: ...to this...
21928         * modules/openpty-tests: ...and this.
21929         * tests/test-pty.c: Rename and split...
21930         * tests/test-forkpty.c: ...to this...
21931         * tests/test-openpty.c: ...and this.
21932         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21933         (gl_PTY): Split library searching...
21934         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21935         (gl_FORKPTY, gl_OPENPTY): New macros.
21936         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21937         * NEWS: Mention the split.
21938         * MODULES.html.sh (Misc): Document the modules.
21939         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21940         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21941
21942         pty: improve replacement header
21943         * lib/pty.in.h: New file.
21944         * modules/pty (Files): Ship it.
21945         (Makefile.am): Always build replacement.
21946         * m4/pty.m4: Rename...
21947         * m4/pty_h.m4: ...to this.
21948         (gl_PTY): Modernize setting of witness macros; update check of
21949         forkpty to take proper advantage of cache.
21950         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
21951
21952         getopt: avoid compiler warning
21953         * lib/getopt.c (attribute_hidden): Remove unused macro.
21954
21955 2010-03-18  Bruno Haible  <bruno@clisp.org>
21956
21957         Fix link errors on Solaris 8.
21958         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
21959         * modules/search-tests (test_search_c___LDADD): Likewise.
21960         * modules/signal-tests (test_signal_c___LDADD): Likewise.
21961         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
21962         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
21963         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
21964         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
21965         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
21966         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
21967
21968 2010-03-18  Bruno Haible  <bruno@clisp.org>
21969
21970         Fix bug introduced on 2010-03-14.
21971         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
21972         (gl_SPAWN_H): Require it.
21973         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
21974         Reported by Simon Josefsson.
21975
21976 2010-03-18  Bruno Haible  <bruno@clisp.org>
21977
21978         Fix typo introduced on 2009-12-31.
21979         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
21980         posix_spawn_file_actions_adddup2.
21981
21982 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
21983         and Eric Blake  <eblake@redhat.com>
21984
21985         test-vc-list-files-git: make more robust
21986         * tests/test-vc-list-files-git.sh: Unset problematic environment
21987         variables.  Chain commands together.
21988
21989 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
21990
21991         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
21992         `AC_CHECK_DECL' invocation.
21993
21994 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
21995
21996         * lib/inttostr.c (inttostr): Make sure the invocation of verify
21997         appears before executable statements. Suggested by Petr Sumbera
21998         <Petr.Sumbera@Sun.COM>.
21999
22000 2010-03-14  Bruno Haible  <bruno@clisp.org>
22001
22002         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22003         portability problems. Instead use a simpler test.
22004         (main): Check that invalid arguments are rejected only on Linux.
22005
22006 2010-03-14  Bruno Haible  <bruno@clisp.org>
22007
22008         Fix bug introduced on 2009-12-31.
22009         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22010         gl_PREREQ_SYS_H_WINSOCK2 always.
22011         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22012         SYS_SOCKET_H variable.
22013         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22014         Update comments.
22015         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22016         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22017         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22018         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22019         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22020
22021 2010-03-14  Bruno Haible  <bruno@clisp.org>
22022
22023         Fix values returned by sinl, cosl.
22024         * lib/trigl.h: Add specification comments.
22025         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22026         that combines the values from the precomputed table with the values of
22027         the Chebyshev polynomials.
22028
22029 2010-03-14  Bruno Haible  <bruno@clisp.org>
22030
22031         Fix compilation error when modules 'posix_spawn[p]' are not used.
22032         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22033         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22034
22035 2010-03-14  Bruno Haible  <bruno@clisp.org>
22036
22037         Fix compilation error on mingw when module 'time_r' is not used.
22038         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22039         is 1.
22040         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22041         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22042         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22043         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22044
22045 2010-03-14  Bruno Haible  <bruno@clisp.org>
22046
22047         Fix compilation error with Sun C.
22048         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22049         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22050         instead of GCC specific ULONG_LONG_MAX.
22051         * lib/xstrtoll.c: Likewise.
22052         * lib/xstrtoull.c: Likewise.
22053
22054 2010-03-13  Bruno Haible  <bruno@clisp.org>
22055
22056         Allow the user to disable C++ code and tests.
22057         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22058         (gl_PROG_ANSI_CXX): Require it.
22059
22060 2010-03-13  Bruno Haible  <bruno@clisp.org>
22061
22062         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22063         cases.
22064
22065 2010-03-13  Bruno Haible  <bruno@clisp.org>
22066
22067         Test that gnulib does not break the standard C++ headers.
22068         * tests/test-locale-c++2.cc: New file.
22069         * modules/locale-tests (Files): Add it.
22070         (Makefile.am): Compile it for test-locale-c++.
22071         * tests/test-math-c++2.cc: New file.
22072         * modules/math-tests (Files): Add it.
22073         (Makefile.am): Compile it for test-math-c++.
22074         * tests/test-signal-c++2.cc: New file.
22075         * modules/signal-tests (Files): Add it.
22076         (Makefile.am): Compile it for test-signal-c++.
22077         * tests/test-stdio-c++2.cc: New file.
22078         * modules/stdio-tests (Files): Add it.
22079         (Makefile.am): Compile it for test-stdio-c++.
22080         * tests/test-stdlib-c++2.cc: New file.
22081         * modules/stdlib-tests (Files): Add it.
22082         (Makefile.am): Compile it for test-stdlib-c++.
22083         * tests/test-string-c++2.cc: New file.
22084         * modules/string-tests (Files): Add it.
22085         (Makefile.am): Compile it for test-string-c++.
22086         * tests/test-time-c++2.cc: New file.
22087         * modules/time-tests (Files): Add it.
22088         (Makefile.am): Compile it for test-time-c++.
22089         Reported by John W. Eaton <jwe@gnu.org>.
22090
22091 2010-03-13  Bruno Haible  <bruno@clisp.org>
22092
22093         * gnulib-tool (func_usage): Clarify which options are available for
22094         --create-testdir and --create-megatestdir.
22095
22096 2010-03-13  Bruno Haible  <bruno@clisp.org>
22097
22098         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22099         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22100         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22101         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22102         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22103         when appropriate.
22104         Reported by Jim Meyering.
22105
22106 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22107
22108         * gnulib-tool (func_import): Explain origin of code.
22109
22110 2010-03-12  Bruno Haible  <bruno@clisp.org>
22111
22112         Fix problem with automake's definition of CXXLINK.
22113         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22114         Reported by Simon Josefsson and Ludovic Courtès.
22115
22116 2010-03-12  Bruno Haible  <bruno@clisp.org>
22117
22118         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22119         stable releases.
22120
22121 2010-03-11  Bruno Haible  <bruno@clisp.org>
22122
22123         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22124         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22125         whether the system provides one variant or multiple variants of the
22126         function.
22127         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22128         C++ compilers.
22129         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22130         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22131         Reported by Jim Meyering.
22132
22133 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22134
22135         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22136
22137 2010-03-08  Bruno Haible  <bruno@clisp.org>
22138
22139         gnulib-tool: Add support for --libtool in --create-testdir.
22140         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22141         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22142
22143 2010-03-08  Eric Blake  <eblake@redhat.com>
22144
22145         gnulib-tool.texi: mention possibility of git submodule
22146         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22147         submodules.
22148         * doc/.gitignore: Ignore another generated file.
22149
22150 2010-03-08  Karl Berry  <karl@gnu.org>
22151
22152         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22153         of committing gnulib files while skipping others.
22154
22155 2010-03-07  Bruno Haible  <bruno@clisp.org>
22156
22157         Tests of module 'wctype' in C++ mode.
22158         * tests/test-wctype-c++.cc: New file.
22159         * modules/wctype-tests (Files): Add it and tests/signature.h.
22160         (Depends-on): Add ansi-c++-opt.
22161         (Makefile.am): Arrange to compile and run test-wctype-c++.
22162
22163         Tests of module 'wchar' in C++ mode.
22164         * tests/test-wchar-c++.cc: New file.
22165         * modules/wchar-tests (Files): Add it and tests/signature.h.
22166         (Depends-on): Add ansi-c++-opt.
22167         (Makefile.am): Arrange to compile and run test-wchar-c++.
22168         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22169         gl_MODULE_INDICATOR.
22170
22171         Tests of module 'unistd' in C++ mode.
22172         * tests/test-unistd-c++.cc: New file.
22173         * modules/unistd-tests (Files): Add it and tests/signature.h.
22174         (Depends-on): Add ansi-c++-opt.
22175         (Makefile.am): Arrange to compile and run test-unistd-c++.
22176         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22177         gl_MODULE_INDICATOR.
22178
22179         Tests of module 'time' in C++ mode.
22180         * tests/test-time-c++.cc: New file.
22181         * modules/time-tests (Files): Add it and tests/signature.h.
22182         (Depends-on): Add ansi-c++-opt.
22183         (Makefile.am): Arrange to compile and run test-time-c++.
22184         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22185
22186         Tests of module 'sys_time' in C++ mode.
22187         * tests/test-sys_time-c++.cc: New file.
22188         * modules/sys_time-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_time-c++.
22191         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22192         gl_MODULE_INDICATOR.
22193
22194         Tests of module 'sys_stat' in C++ mode.
22195         * tests/test-sys_stat-c++.cc: New file.
22196         * modules/sys_stat-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_stat-c++.
22199         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22200         gl_MODULE_INDICATOR.
22201
22202         Tests of module 'sys_socket' in C++ mode.
22203         * tests/test-sys_socket-c++.cc: New file.
22204         * modules/sys_socket-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_socket-c++.
22207         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22208         gl_MODULE_INDICATOR.
22209
22210         Tests of module 'sys_select' in C++ mode.
22211         * tests/test-sys_select-c++.cc: New file.
22212         * modules/sys_select-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_select-c++.
22215         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22216         gl_MODULE_INDICATOR.
22217
22218         Tests of module 'sys_ioctl' in C++ mode.
22219         * tests/test-sys_ioctl-c++.cc: New file.
22220         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22221         (Depends-on): Add ansi-c++-opt.
22222         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22223         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22224         gl_MODULE_INDICATOR.
22225
22226         Tests of module 'string' in C++ mode.
22227         * tests/test-string-c++.cc: New file.
22228         * modules/string-tests (Files): Add it and tests/signature.h.
22229         (Depends-on): Add ansi-c++-opt.
22230         (Makefile.am): Arrange to compile and run test-string-c++.
22231         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22232         gl_MODULE_INDICATOR.
22233
22234         Tests of module 'stdlib' in C++ mode.
22235         * tests/test-stdlib-c++.cc: New file.
22236         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22237         (Depends-on): Add ansi-c++-opt.
22238         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22239         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22240         gl_MODULE_INDICATOR.
22241
22242         Tests of module 'stdio' in C++ mode.
22243         * tests/test-stdio-c++.cc: New file.
22244         * modules/stdio-tests (Files): Add it and tests/signature.h.
22245         (Depends-on): Add ansi-c++-opt.
22246         (Makefile.am): Arrange to compile and run test-stdio-c++.
22247         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22248         gl_MODULE_INDICATOR.
22249
22250         Tests of module 'spawn' in C++ mode.
22251         * tests/test-spawn-c++.cc: New file.
22252         * modules/spawn-tests (Files): Add it and tests/signature.h.
22253         (Depends-on): Add ansi-c++-opt.
22254         (Makefile.am): Arrange to compile and run test-spawn-c++.
22255         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22256         gl_MODULE_INDICATOR.
22257
22258         Tests of module 'signal' in C++ mode.
22259         * tests/test-signal-c++.cc: New file.
22260         * modules/signal-tests (Files): Add it and tests/signature.h.
22261         (Depends-on): Add ansi-c++-opt.
22262         (Makefile.am): Arrange to compile and run test-signal-c++.
22263         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22264         gl_MODULE_INDICATOR.
22265
22266         Tests of module 'search' in C++ mode.
22267         * tests/test-search-c++.cc: New file.
22268         * modules/search-tests (Files): Add it and tests/signature.h.
22269         (Depends-on): Add ansi-c++-opt.
22270         (Makefile.am): Arrange to compile and run test-search-c++.
22271         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22272         gl_MODULE_INDICATOR.
22273
22274         Tests of module 'math' in C++ mode.
22275         * tests/test-math-c++.cc: New file.
22276         * modules/math-tests (Files): Add it and tests/signature.h.
22277         (Depends-on): Add ansi-c++-opt.
22278         (Makefile.am): Arrange to compile and run test-math-c++.
22279         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22280
22281         Tests of module 'locale' in C++ mode.
22282         * tests/test-locale-c++.cc: New file.
22283         * modules/locale-tests (Files): Add it and tests/signature.h.
22284         (Depends-on): Add ansi-c++-opt.
22285         (Makefile.am): Arrange to compile and run test-locale-c++.
22286         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22287         gl_MODULE_INDICATOR.
22288
22289         Tests of module 'langinfo' in C++ mode.
22290         * tests/test-langinfo-c++.cc: New file.
22291         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22292         (Depends-on): Add ansi-c++-opt.
22293         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22294         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22295         gl_MODULE_INDICATOR.
22296
22297         Tests of module 'iconv-h' in C++ mode.
22298         * tests/test-iconv-h-c++.cc: New file.
22299         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22300         (Depends-on): Add ansi-c++-opt.
22301         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22302
22303         Tests of module 'glob' in C++ mode.
22304         * tests/test-glob-c++.cc: New file.
22305         * modules/glob-tests (Files): Add it.
22306         (Depends-on): Add ansi-c++-opt.
22307         (Makefile.am): Arrange to compile and run test-glob-c++.
22308
22309         Tests of module 'fcntl-h' in C++ mode.
22310         * tests/test-fcntl-h-c++.cc: New file.
22311         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22312         (Depends-on): Add ansi-c++-opt.
22313         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22314         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22315         gl_MODULE_INDICATOR.
22316
22317         Tests of module 'dirent' in C++ mode.
22318         * tests/test-dirent-c++.cc: New file.
22319         * modules/dirent-tests (Files): Add it and tests/signature.h.
22320         (Depends-on): Add ansi-c++-opt.
22321         (Makefile.am): Arrange to compile and run test-dirent-c++.
22322         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22323         gl_MODULE_INDICATOR.
22324
22325         New module 'ansi-c++-opt'.
22326         * modules/ansi-c++-opt: New file.
22327         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22328
22329         Document C++ namespace mode.
22330         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22331
22332         wctype: Avoid #define replacements in C++ mode.
22333         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22334         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22335         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22336         In C++, define a namespaced alias symbol.
22337         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22338         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22339         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22340         rule.
22341
22342         wchar: Avoid #define replacements in C++ mode.
22343         * lib/wchar.in.h: Include c++defs.h.
22344         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22345         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22346         symbol.
22347         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22348         * modules/wchar (Depends-on): Add c++defs.
22349         (Makefile.am): Update wchar.h rule.
22350
22351         unistd: Avoid #define replacements in C++ mode.
22352         * lib/unistd.in.h: Include c++defs.h.
22353         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22354         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22355         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22356         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22357         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22358         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22359         symbol.
22360         (environ): Update.
22361         * modules/unistd (Depends-on): Add c++defs.
22362         (Makefile.am): Update unistd.h rule.
22363
22364         time: Avoid #define replacements in C++ mode.
22365         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22366         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22367         define a namespaced alias symbol.
22368         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22369         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22370         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22371         * modules/time (Depends-on): Add c++defs, warn-on-use.
22372         (Makefile.am): Update time.h rule.
22373         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22374         * modules/nanosleep (configure.ac): Likewise.
22375         * modules/strptime (configure.ac): Likewise.
22376         * modules/timegm (configure.ac): Likewise.
22377
22378         sys_time: Avoid #define replacements in C++ mode.
22379         * lib/sys_time.in.h: Include c++defs.h.
22380         (gettimeofday): In C++, define a namespaced alias symbol.
22381         * modules/sys_time (Depends-on): Add c++defs.
22382         (Makefile.am): Update sys/time.h rule.
22383
22384         sys_stat: Avoid #define replacements in C++ mode.
22385         * lib/sys_stat.in.h: Include c++defs.h.
22386         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22387         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22388         namespaced alias symbol.
22389         In C++, define a namespaced alias symbol.
22390         * modules/sys_stat (Depends-on): Add c++defs.
22391         (Makefile.am): Update sys/stat.h rule.
22392
22393         sys_socket: Avoid #define replacements in C++ mode.
22394         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22395         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22396         definitions also when the system has a <sys/socket.h>.
22397         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22398         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22399         In C++, define a namespaced alias symbol.
22400         * modules/sys_socket (Depends-on): Add c++defs.
22401         (Makefile.am): Update sys/socket.h rule.
22402
22403         sys_select: Avoid #define replacements in C++ mode.
22404         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22405         definitions also when the system has a <sys/select.h>.
22406         (select): In C++, define a namespaced alias symbol.
22407         * modules/sys_select (Depends-on): Add c++defs.
22408         (Makefile.am): Update sys/select.h rule.
22409
22410         sys_ioctl: Avoid #define replacements in C++ mode.
22411         * lib/sys_ioctl.in.h: Include c++defs.h.
22412         (ioctl): In C++, define a namespaced alias symbol.
22413         * modules/sys_ioctl (Depends-on): Add c++defs.
22414         (Makefile.am): Update sys/ioctl.h rule.
22415
22416         string: Avoid #define replacements in C++ mode.
22417         * lib/string.in.h: Include c++defs.h.
22418         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22419         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22420         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22421         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22422         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22423         * modules/string (Depends-on): Add c++defs.
22424         (Makefile.am): Update string.h rule.
22425
22426         stdlib: Avoid #define replacements in C++ mode.
22427         * lib/stdlib.in.h: Include c++defs.h.
22428         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22429         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22430         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22431         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22432         symbol.
22433         * modules/stdlib (Depends-on): Add c++defs.
22434         (Makefile.am): Update stdlib.h rule.
22435
22436         stdio: Avoid #define replacements in C++ mode.
22437         * lib/stdio.in.h: Include c++defs.h.
22438         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22439         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22440         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22441         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22442         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22443         namespaced alias symbol.
22444         * modules/stdio (Depends-on): Add c++defs.
22445         (Makefile.am): Update stdio.h rule.
22446
22447         spawn: Avoid #define replacements in C++ mode.
22448         * lib/spawn.in.h: Include c++defs.h.
22449         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22450         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22451         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22452         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22453         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22454         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22455         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22456         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22457         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22458         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22459         In C++, define a namespaced alias symbol.
22460         * modules/spawn (Depends-on): Add c++defs.
22461         (Makefile.am): Update spawn.h rule.
22462
22463         signal: Avoid #define replacements in C++ mode.
22464         * lib/signal.in.h: Include c++defs.h.
22465         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22466         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22467         namespaced alias symbol.
22468         * modules/signal (Depends-on): Add c++defs.
22469         (Makefile.am): Update signal.h rule.
22470
22471         search: Avoid #define replacements in C++ mode.
22472         * lib/search.in.h: Include c++defs.h.
22473         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22474         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22475         symbol.
22476         * modules/search (Depends-on): Add c++defs.
22477         (Makefile.am): Update search.h rule.
22478
22479         math: Avoid #define replacements in C++ mode.
22480         * lib/math.in.h: Include c++defs.h.
22481         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22482         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22483         trunc, truncl): In C++, define a namespaced alias symbol.
22484         * modules/math (Depends-on): Add c++defs.
22485         (Makefile.am): Update math.h rule.
22486
22487         locale: Avoid #define replacements in C++ mode.
22488         * lib/locale.in.h: Include c++defs.h.
22489         (duplocale): In C++, define a namespaced alias symbol.
22490         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22491         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22492         * modules/locale (Depends-on): Add c++defs.
22493         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22494
22495         langinfo: Avoid #define replacements in C++ mode.
22496         * lib/langinfo.in.h: Include c++defs.h.
22497         (nl_langinfo): In C++, define a namespaced alias symbol.
22498         * modules/langinfo (Depends-on): Add c++defs.
22499         (Makefile.am): Update langinfo.h rule.
22500
22501         iconv-h: Avoid #define replacements in C++ mode.
22502         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22503         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22504         symbol.
22505         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22506         whenever iconv is present.
22507         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22508         (Makefile.am): Update iconv.h rule.
22509
22510         glob: Avoid #define replacements in C++ mode.
22511         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22512         (_gl_glob_errfunc_fn): New type.
22513         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22514         symbol.
22515         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22516         (Makefile.am): Update glob.h rule.
22517
22518         fcntl-h: Avoid #define replacements in C++ mode.
22519         * lib/fcntl.in.h: Include c++defs.h.
22520         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22521         * modules/fcntl-h (Depends-on): Add c++defs.
22522         (Makefile.am): Update fcntl.h rule.
22523
22524         dirent: Avoid #define replacements in C++ mode.
22525         * lib/dirent.in.h: Include c++defs.h.
22526         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22527         namespaced alias symbol.
22528         (dirfd): Update declaration.
22529         * modules/dirent (Depends-on): Add c++defs.
22530         (Makefile.am): Update dirent.h rule.
22531
22532         ctype: Make it usable in C++ code.
22533         * lib/ctype.in.h: Include c++defs.h.
22534         (isblank): Declare as extern "C".
22535         * modules/ctype (Depends-on): Add c++defs.
22536         (Makefile.am): Update ctype.h rule.
22537
22538         New module 'c++defs'.
22539         * modules/c++defs: New file.
22540         * build-aux/c++defs.h: New file.
22541         Reported by John W. Eaton <jwe@gnu.org>.
22542
22543 2010-03-07  Bruno Haible  <bruno@clisp.org>
22544
22545         logb: Provide missing declaration for Cygwin.
22546         * lib/math.in.h (logb): New declaration.
22547         * m4/logb.m4: New file.
22548         * modules/logb (Files): Add m4/logb.m4.
22549         (Depends-on): Add math.
22550         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22551         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22552         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22553         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22554         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22555
22556 2010-03-07  Bruno Haible  <bruno@clisp.org>
22557
22558         Fix test-cond link error.
22559         * tests/test-cond.c: Include <stdio.h>.
22560
22561 2010-03-07  Bruno Haible  <bruno@clisp.org>
22562
22563         Fix test-dirent-safer link error.
22564         * modules/dirent-safer-tests (Makefile.am): Define
22565         test_dirent_safer_LDADD.
22566
22567 2010-03-07  Bruno Haible  <bruno@clisp.org>
22568
22569         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22570         among default module list.
22571
22572 2010-03-07  Bruno Haible  <bruno@clisp.org>
22573
22574         Fix link error on platforms with GNU libiconv.
22575         * modules/unistr/u8-strcoll-tests (Makefile): Define
22576         test_u8_strcoll_LDADD.
22577         * modules/unistr/u16-strcoll-tests (Makefile): Define
22578         test_u16_strcoll_LDADD.
22579         * modules/unistr/u32-strcoll-tests (Makefile): Define
22580         test_u32_strcoll_LDADD.
22581
22582 2010-03-07  Bruno Haible  <bruno@clisp.org>
22583
22584         Use POSIX declarations for socket functions.
22585         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22586         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22587         rpl_sendto): Change declaration to match POSIX.
22588         * lib/connect.c (rpl_connect): Likewise.
22589         * lib/accept.c (rpl_accept): Likewise.
22590         * lib/bind.c (rpl_bind): Likewise.
22591         * lib/getpeername.c (rpl_getpeername): Likewise.
22592         * lib/getsockname.c (rpl_getsockname): Likewise.
22593         * lib/recv.c (rpl_recv): Likewise.
22594         * lib/send.c (rpl_send): Likewise.
22595         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22596         * lib/sendto.c (rpl_sendto): Likewise.
22597
22598 2010-03-06  Bruno Haible  <bruno@clisp.org>
22599
22600         Clarify access, euidaccess, faccessat.
22601         * doc/posix-functions/faccessat.texi: Mention security problem under
22602         "Other problems", not "Portability problems".
22603         * doc/posix-functions/access.texi: Likewise. Mention a related security
22604         problem.
22605         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22606         * lib/euidaccess.c: Add comments about platforms.
22607         * lib/unistd.in.h (access, euidaccess): Add warnings.
22608
22609 2010-03-07  Bruno Haible  <bruno@clisp.org>
22610
22611         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22612         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22613         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22614         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22615         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22616         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22617         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22618         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22619         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22620         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22621         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22622         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22623         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22624         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22625         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22626         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22627         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22628         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22629         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22630         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22631         Likewise.
22632         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22633         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22634         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22635         Likewise.
22636         * tests/test-spawn.c (main): Make it work when
22637         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22638
22639 2010-03-07  Bruno Haible  <bruno@clisp.org>
22640
22641         Fix incorrect Makefile.am generation in German locale.
22642         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22643         Execute sed command with character range in C locale.
22644
22645 2010-03-06  Bruno Haible  <bruno@clisp.org>
22646
22647         Tests for module 'iconv-h'.
22648         * modules/iconv-h-tests: New file.
22649         * tests/test-iconv-h.c: New file.
22650
22651         New module 'iconv-h'.
22652         * modules/iconv-h: New file.
22653         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22654         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22655         (configure.ac): Remove gl_ICONV_H.
22656         (Makefile.am): Remove rule for iconv.h.
22657
22658 2010-03-06  Bruno Haible  <bruno@clisp.org>
22659
22660         More consistent naming of *.m4 files.
22661         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22662         * modules/wctype (Files): Update.
22663
22664         More consistent naming of *.m4 files.
22665         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22666         * modules/wchar (Files): Update.
22667
22668 2010-03-06  Jim Meyering  <meyering@redhat.com>
22669
22670         euidaccess: relax license to LGPLv2+
22671         * modules/euidaccess (License): Relax to LGPLv2+.
22672
22673 2010-03-06  Bruno Haible  <bruno@clisp.org>
22674
22675         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22676         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22677         (Makefile.am): Augment lib_SOURCES instead.
22678
22679 2010-03-04  Jim Meyering  <meyering@redhat.com>
22680
22681         utime: remove obsolete module
22682         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22683         unnecessary for years, and has been marked as obsolete for 10 months.
22684         * modules/utime: Remove file.
22685         * lib/utime.c: Remove file.
22686         * m4/utime.m4: Remove file.
22687         * m4/utimes-null.m4: Remove file.
22688         * doc/posix-functions/utime.texi (utime): Remove reference to
22689         the module.  Move the sole "fixed by gnulib" item into the
22690         "problems not fixed by Gnulib" list.
22691         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22692
22693 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22694
22695         * modules/exit (License): Relax license to LGPLv2+.
22696         (Status): Mark as obsolete.
22697         * NEWS: Mention deprecated 'exit' module.
22698         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22699         of now obsolete 'exit'.
22700
22701 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22702
22703         fts-lgpl: remove unused module
22704         * modules/fts-lgpl: Remove.
22705         * MODULES.html.sh (func_all_modules): Adjust.
22706         * check-module (find_included_lib_files): Adjust.
22707         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22708
22709 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22710
22711         copy-acl: enhance Solaris ACL error handling
22712         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22713         * lib/set-mode-acl.c (qset_acl): Likewise.
22714
22715 2010-03-02  Bruno Haible  <bruno@clisp.org>
22716
22717         spawn: Don't override the system defined values on FreeBSD 8.
22718         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22719         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22720         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22721         if HAVE_POSIX_SPAWN is 1.
22722         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22723
22724 2010-03-01  Bruno Haible  <bruno@clisp.org>
22725
22726         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22727         regarding Automake.
22728
22729 2010-02-25  Bruno Haible  <bruno@clisp.org>
22730
22731         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22732         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22733         setting, not afterwards.
22734         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22735
22736 2010-02-24  Eric Blake  <eblake@redhat.com>
22737
22738         bootstrap, git-version-gen: use timestamp
22739         * build-aux/git-version-gen (scriptversion): Force UTC.
22740         * build-aux/bootstrap (scriptversion): New variable.
22741
22742         bootstrap: allow older git
22743         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22744         older than 1.6.4.  Requested by the libvirt project.
22745
22746 2010-02-23  Eric Blake  <eblake@redhat.com>
22747
22748         warn-on-use: work with old autoconf
22749         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22750         AS_VAR semantics of autoconf 2.60.
22751         Reported by Bruno Haible.
22752
22753         bootstrap: improve some comments
22754         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22755         clarification comments.
22756
22757         gettimeofday: provide correct function
22758         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22759         when replacement is declared, otherwise provide gettimeofday.
22760         Reported by Michael Goffioul.
22761
22762 2010-02-23  Jim Meyering  <meyering@redhat.com>
22763
22764         lib-ignore: relax license to "unlimited", not LGPLv2+
22765         * modules/lib-ignore (License): Relax to "unlimited".
22766
22767 2010-02-23  Jim Meyering  <meyering@redhat.com>
22768
22769         lib-ignore: relax license to LGPLv2+
22770         * modules/lib-ignore (License): Relax to LGPLv2+.
22771
22772 2010-02-22  Eric Blake  <eblake@redhat.com>
22773
22774         lseek: avoid bash 3.2 broken pipe bug
22775         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22776         warning from bash 3.2.
22777         Reported by Ben Pfaff, with analysis from Bruno Haible.
22778
22779         bootstrap: support non-FSF copyright holder
22780         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22781         bootstrap.conf override of COPYRIGHT_HOLDER.
22782         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22783
22784         bootstrap: interoperate with gettext 0.14.1
22785         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22786
22787         bootstrap: allow for alternate submodule location
22788         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22789         hardcoding submodule location.
22790         (gnulib_mk): Allow direct use of Makefile.am.
22791
22792         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22793         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22794         rather than reconfiguring where the submodule points.
22795
22796         gettimeofday: restore support for platforms that lack function
22797         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22798         replacement if function is missing.
22799         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22800         * modules/sys_time (Makefile.am): Substitute it.
22801         * lib/sys_time.in.h (gettimeofday): Check it.
22802         Reported by Michael Goffioul.
22803
22804 2010-02-21  Bruno Haible  <bruno@clisp.org>
22805
22806         * lib/stdio.in.h (obstack_printf): Fix typo.
22807
22808 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22809
22810         vc-list-files: use bzr ls's -R option
22811         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22812         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22813
22814 2010-02-21  Jim Meyering  <meyering@redhat.com>
22815
22816         init.sh: fix EXEEXT shims to work also for names like test-prog
22817         * tests/init.sh: Re-exec a better shell, when needed.
22818         If the current shell lacks support for posix $(...), an init.sh-using
22819         test will now try to find a shell that supports that.  If EXEEXT is
22820         nonempty, we also require support for hyphen-in-alias-name and shell
22821         substitutions like ${var#glob}.  Failure to find such a shell results
22822         in a skipped test.
22823
22824 2010-02-21  Bruno Haible  <bruno@clisp.org>
22825
22826         Really work around around "broken pipe" error message from bash 3.2.
22827         * gnulib-tool (func_reset_sigpipe): Remove function.
22828         (echo): In bash 3.2, define to a function that uses printf.
22829         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22830
22831 2010-02-20  Bruno Haible  <bruno@clisp.org>
22832
22833         Restore support for automake 1.9.6 with autoconf 2.61.
22834         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22835         Reported by James Youngman <jay@gnu.org>.
22836
22837 2010-02-20  Bruno Haible  <bruno@clisp.org>
22838
22839         Improve *printf warning condition.
22840         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22841         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22842         and the function is overridden due to SIGPIPE emulation.
22843
22844 2010-02-20  Bruno Haible  <bruno@clisp.org>
22845
22846         * lib/stdio.in.h: Tweak comments.
22847
22848 2010-02-19  Bruno Haible  <bruno@clisp.org>
22849
22850         Make it easier to find modules. New gnulib-tool option '--find'.
22851         * gnulib-tool: New option --find.
22852         (func_usage): Document it.
22853         (func_sanitize_modulelist): New function, extracted from
22854         func_all_modules.
22855         (func_all_modules): Invoke it.
22856         * doc/gnulib-tool.texi (Which modules?): New node.
22857
22858 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22859
22860         * lib/sys_select.in.h: Provide select replacement even if
22861         sys/select.h exists on a system, for Interix.
22862
22863 2010-02-18  Jim Meyering  <meyering@redhat.com>
22864
22865         init.sh: don't use $(...) just yet
22866         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22867         to accommodate e.g., Solaris' /bin/sh.
22868
22869 2010-02-17  Bruno Haible  <bruno@clisp.org>
22870
22871         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22872         Reported by Ludovic Courtès <ludo@gnu.org>.
22873
22874 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22875
22876         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22877         linking with -lintl.
22878
22879 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22880
22881         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22882         if not provided by the system's netdb.h.  Reported by
22883         ludo@gnu.org (Ludovic Courtès).
22884
22885 2010-02-15  Jim Meyering  <meyering@redhat.com>
22886
22887         init.sh: improve portability and efficiency
22888         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22889         "dummy" in a for loop.
22890         Use '!', not '^' to select the complement of a character set used
22891         in a "case" statement.
22892         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22893         Suggestions from Eric Blake.
22894
22895         init.sh: automatically accommodate programs with the .exe suffix
22896         Automatically arrange for an invocation of "prog" to execute the
22897         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22898         may use the simpler "prog", yet still work when built on a system
22899         that requires specifying the added suffix.
22900         Do this by constructing a function named "prog" that invokes
22901         "prog.exe" for each .exe file in selected directories.
22902         * tests/init.sh (find_exe_basenames_): New function.
22903         (create_exe_shim_functions_): New function.
22904         (path_prepend_): Use it.
22905
22906         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22907         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22908         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22909
22910 2010-02-14  Jim Meyering  <meyering@redhat.com>
22911
22912         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22913         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22914         (sc_prohibit_hash_pjw_without_use): New rule.
22915
22916         maint.mk: allow the default upload destination dir to be overridden
22917         * top/maint.mk (upload_dest_dir_): Define with a default that
22918         preserves the status quo.
22919         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22920         Reported by Peter Simons.
22921
22922         maint.mk: prohibit inclusion of "hash.h" without_use
22923         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22924
22925 2010-02-10  Jim Meyering  <meyering@redhat.com>
22926
22927         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22928         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22929
22930 2010-02-09  Eric Blake  <ebb9@byu.net>
22931         and Bruno Haible  <bruno@clisp.org>
22932
22933         obstack-printf-posix: ensure declaration
22934         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22935         extracted from gl_FUNC_OBSTACK_PRINTF.
22936         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22937         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22938         Likewise.
22939         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22940         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22941         0.
22942
22943 2010-02-08  Bruno Haible  <bruno@clisp.org>
22944
22945         gnulib-tool: Fix typo in 2010-02-07 commit.
22946         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
22947         Reported by Eric Blake.
22948
22949 2010-02-07  Bruno Haible  <bruno@clisp.org>
22950
22951         gnulib-tool: Fix up caching patches.
22952         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
22953         option --no-cache. Use associative arrays when supported by the shell.
22954         (sed_comments): New variable.
22955         (modcache): Renamed from do_cache.
22956         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
22957         abbreviate unnecessarily.
22958         (have_associative): New variable.
22959         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
22960         way also for ksh and zsh.
22961         (func_init_sed_convert_to_cache_statements): New function, extracted
22962         from func_cache_lookup_module. Add support for associative arrays.
22963         Don't set the c_MODULE_cached variable here. Ignore all lines before
22964         the first field header. Remove only the final newline, not all trailing
22965         newlines. Support empty fields correctly. Limit the use of 'eval' to
22966         assignments.
22967         (func_get_description, func_get_status, func_get_notice,
22968         func_get_applicability, func_get_filelist, func_get_dependencies,
22969         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
22970         func_get_automake_snippet, func_get_include_directive,
22971         func_get_link_directive, func_get_license, func_get_maintainer):
22972         Update documentation. List the unoptimized code first. Add support for
22973         associative arrays. Limit the use of 'eval' to assignments.
22974         (func_get_applicability): Undo stylistic pessimisations.
22975         (func_get_automake_snippet, func_get_include_directive): Reduce code
22976         duplication.
22977         (func_modules_transitive_closure, func_modules_add_dummy,
22978         func_modules_notice, func_modules_to_filelist, func_add_file,
22979         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
22980         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
22981         func_create_testdir, func_create_megatestdir): Update documentation.
22982
22983 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22984
22985         * gnulib-tool (func_cache_lookup_module): Store the module name
22986         belonging to the cache variable; error out if two different
22987         module names map to the same cache variable name.
22988
22989 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22990
22991         gnulib-tool: Make caching optional.
22992         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
22993         Update matching short versions of --no-changelog.
22994         (func_usage): Update.
22995         (sed_extract_cache_prog): Renamed from ...
22996         (sed_extract_prog): ... this; revert to old extraction script.
22997         (func_get_description, func_get_status)
22998         (func_get_notice, func_get_applicability, func_get_filelist)
22999         (func_get_dependencies, func_get_autoconf_early_snippet)
23000         (func_get_autoconf_snippet, func_get_automake_snippet)
23001         (func_get_include_directive, func_get_link_directive)
23002         (func_get_license, func_get_maintainer): If $do_cache is false,
23003         use old, non-caching extraction scripts.
23004         Suggestion by Bruno Haible.
23005
23006 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23007
23008         gnulib-tool: cache module metainformation.
23009         * gnulib-tool (sed_extract_prog): Match newline before each
23010         header, and rewrite header to a shell variable suffix.
23011         (func_cache_var, func_cache_lookup_module): New functions,
23012         to turn a module name into a cache variable prefix, and to
23013         look up and cache module metainformation.
23014         (func_get_description, func_get_status)
23015         (func_get_notice, func_get_applicability, func_get_filelist)
23016         (func_get_dependencies, func_get_autoconf_early_snippet)
23017         (func_get_autoconf_snippet, func_get_automake_snippet)
23018         (func_get_include_directive, func_get_link_directive)
23019         (func_get_license, func_get_maintainer): Use
23020         func_cache_lookup_module.
23021
23022 2010-02-07  Bruno Haible  <bruno@clisp.org>
23023
23024         fnctl: Fix missing dependency.
23025         * modules/fcntl (Depends-on): Add getdtablesize.
23026         Reported by John W. Eaton <jwe@gnu.org>.
23027
23028 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23029
23030         Argp: fix recognition of short alias options.
23031
23032         * lib/argp-parse.c (convert_options): Fix improper use of
23033         `|' between character values.
23034         * tests/test-argp.c (group1_option): New alias option
23035         --read (-r).
23036         (group1_parser): Special handling for 'r'.
23037         (test15): New test case.
23038         (test_fun): Add test15.
23039         * tests/test-argp-2.sh: Update expected --help and --usage
23040         outputs.
23041
23042 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23043
23044         * tests/test-argp.c: Fix indentation.
23045
23046 2010-02-04  Eric Blake  <ebb9@byu.net>
23047
23048         gettimeofday: expose type of second argument
23049         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23050         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23051         * tests/test-gettimeofday.c: Use it to silence warning.
23052         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23053         the issue.
23054
23055 2010-02-03  Jim Meyering  <meyering@redhat.com>
23056
23057         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23058         * lib/regcomp.c (TYPE_SIGNED): Define.
23059         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23060
23061         regcomp.c: avoid a new -Wshadow warning
23062         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23063
23064 2010-02-01  Jim Meyering  <meyering@redhat.com>
23065
23066         removing useless parentheses in cpp #define directives
23067         For motivation, see commit c0221df4, "define STREQ(a,b)
23068         consistently, removing useless parentheses"
23069         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23070         * lib/mountlist.c (MNT_IGNORE): Likewise.
23071         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23072
23073 2010-02-01  Eric Blake  <ebb9@byu.net>
23074
23075         sys_time: use link-warning
23076         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23077         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23078         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23079         * modules/sys_time (Depends-on): Add warn-on-use.
23080         (Makefile.am): Always build replacement.
23081         (configure.ac): Update substitutions.
23082         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23083         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23084         bother with SYS_TIME_H.
23085         * modules/gettimeofday (configure.ac): Declare indicator.
23086         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23087         in use.
23088
23089         closein-tests: silence compiler warning
23090         * tests/test-closein.c (main): Ignore fread result.
23091         * modules/closein-tests (Depends-on): Add ignore-value.
23092
23093         tests: silence warning about system return
23094         * tests/test-areadlink-with-size.c (main): Ignore system result.
23095         * tests/test-areadlink.c (main): Likewise.
23096         * tests/test-areadlinkat-with-size.c (main): Likewise.
23097         * tests/test-areadlinkat.c (main): Likewise.
23098         * tests/test-canonicalize-lgpl.c (main): Likewise.
23099         * tests/test-canonicalize.c (main): Likewise.
23100         * tests/test-chown.c (main): Likewise.
23101         * tests/test-fchownat.c (main): Likewise.
23102         * tests/test-fdutimensat.c (main): Likewise.
23103         * tests/test-fstatat.c (main): Likewise.
23104         * tests/test-futimens.c (main): Likewise.
23105         * tests/test-lchown.c (main): Likewise.
23106         * tests/test-link.c (main): Likewise.
23107         * tests/test-linkat.c (main): Likewise.
23108         * tests/test-lstat.c (main): Likewise.
23109         * tests/test-mkdir.c (main): Likewise.
23110         * tests/test-mkdirat.c (main): Likewise.
23111         * tests/test-mkfifo.c (main): Likewise.
23112         * tests/test-mkfifoat.c (main): Likewise.
23113         * tests/test-mknod.c (main): Likewise.
23114         * tests/test-readlink.c (main): Likewise.
23115         * tests/test-remove.c (main): Likewise.
23116         * tests/test-rename.c (main): Likewise.
23117         * tests/test-renameat.c (main): Likewise.
23118         * tests/test-rmdir.c (main): Likewise.
23119         * tests/test-symlink.c (main): Likewise.
23120         * tests/test-symlinkat.c (main): Likewise.
23121         * tests/test-unlink.c (main): Likewise.
23122         * tests/test-unlinkat.c (main): Likewise.
23123         * tests/test-utimens.c (main): Likewise.
23124         * tests/test-utimensat.c (main): Likewise.
23125         * modules/areadlink-tests (Depends-on): Add ignore-value.
23126         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23127         * modules/areadlinkat-tests (Depends-on): Likewise.
23128         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23129         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23130         * modules/canonicalize-tests (Depends-on): Likewise.
23131         * modules/chown-tests (Depends-on): Likewise.
23132         * modules/fdutimensat-tests (Depends-on): Likewise.
23133         * modules/futimens-tests (Depends-on): Likewise.
23134         * modules/lchown-tests (Depends-on): Likewise.
23135         * modules/link-tests (Depends-on): Likewise.
23136         * modules/linkat-tests (Depends-on): Likewise.
23137         * modules/lstat-tests (Depends-on): Likewise.
23138         * modules/mkdir-tests (Depends-on): Likewise.
23139         * modules/mkfifo-tests (Depends-on): Likewise.
23140         * modules/mkfifoat-tests (Depends-on): Likewise.
23141         * modules/mknod-tests (Depends-on): Likewise.
23142         * modules/openat-tests (Depends-on): Likewise.
23143         * modules/readlink-tests (Depends-on): Likewise.
23144         * modules/remove-tests (Depends-on): Likewise.
23145         * modules/rename-tests (Depends-on): Likewise.
23146         * modules/renameat-tests (Depends-on): Likewise.
23147         * modules/rmdir-tests (Depends-on): Likewise.
23148         * modules/symlink-tests (Depends-on): Likewise.
23149         * modules/symlinkat-tests (Depends-on): Likewise.
23150         * modules/unlink-tests (Depends-on): Likewise.
23151         * modules/utimens-tests (Depends-on): Likewise.
23152         * modules/utimensat-tests (Depends-on): Likewise.
23153
23154 2010-01-31  Bruno Haible  <bruno@clisp.org>
23155
23156         Perform the same test for many <math.h> functions.
23157         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23158         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23159         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23160         of gl_MATHFUNC.
23161         * modules/acos (configure.ac): Likewise.
23162         * modules/asin (configure.ac): Likewise.
23163         * modules/atan (configure.ac): Likewise.
23164         * modules/atan2 (configure.ac): Likewise.
23165         * modules/cbrt (configure.ac): Likewise.
23166         * modules/copysign (configure.ac): Likewise.
23167         * modules/cos (configure.ac): Likewise.
23168         * modules/cosh (configure.ac): Likewise.
23169         * modules/erf (configure.ac): Likewise.
23170         * modules/erfc (configure.ac): Likewise.
23171         * modules/exp (configure.ac): Likewise.
23172         * modules/fmod (configure.ac): Likewise.
23173         * modules/hypot (configure.ac): Likewise.
23174         * modules/j0 (configure.ac): Likewise.
23175         * modules/j1 (configure.ac): Likewise.
23176         * modules/jn (configure.ac): Likewise.
23177         * modules/lgamma (configure.ac): Likewise.
23178         * modules/log (configure.ac): Likewise.
23179         * modules/log10 (configure.ac): Likewise.
23180         * modules/log1p (configure.ac): Likewise.
23181         * modules/pow (configure.ac): Likewise.
23182         * modules/remainder (configure.ac): Likewise.
23183         * modules/sin (configure.ac): Likewise.
23184         * modules/sinh (configure.ac): Likewise.
23185         * modules/tan (configure.ac): Likewise.
23186         * modules/tanh (configure.ac): Likewise.
23187         * modules/y0 (configure.ac): Likewise.
23188         * modules/y1 (configure.ac): Likewise.
23189         * modules/yn (configure.ac): Likewise.
23190         Suggested by Paolo Bonzini.
23191
23192 2010-01-31  Bruno Haible  <bruno@clisp.org>
23193
23194         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23195
23196 2010-01-31  Bruno Haible  <bruno@clisp.org>
23197
23198         Work around getdelim() bug on FreeBSD 8.0.
23199         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23200         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23201         not work.
23202         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23203         is 1.
23204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23205         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23206         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23207         a non-zero size.
23208         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23209
23210 2010-01-31  Bruno Haible  <bruno@clisp.org>
23211
23212         Work around getline() bug on FreeBSD 8.0.
23213         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23214         and a non-zero size.
23215         * tests/test-getline.c (main): Likewise.
23216         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23217         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23218
23219 2010-01-28  Eric Blake  <ebb9@byu.net>
23220
23221         regex: fix build failure
23222         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23223         platforms.
23224
23225 2010-01-28  Jim Meyering  <meyering@redhat.com>
23226
23227         regex: do not ignore memory allocation failure
23228         * lib/regex_internal.c (create_cd_newstate): Detect
23229         re_node_set_init_copy failure.   Extracted from glibc commit
23230         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23231
23232         regex: sync more white-space changes from libc
23233         * lib/regex_internal.c: White-space only changes.
23234         * lib/regexec.c: Likewise.
23235
23236         regex: add many uses of __attribute_warn_unused_result__
23237         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23238         * lib/regexec.c: Likewise.
23239         Extracted from a messy glibc commit.
23240
23241         regcomp.c: spelling and merge-artifact from glibc
23242         * lib/regcomp.c: Merge remainder of glibc's
23243         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23244
23245         regcomp.c: sync white-space changes from glibc
23246         * lib/regcomp.c: Merge to accommodate white space
23247         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23248
23249         regcomp.c: do not ignore internal return values
23250         * lib/regcomp.c: Do not ignore internal return values.
23251         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23252         but without its white-space changes and spelling fixes.
23253
23254         regex_internal.h: define __attribute_warn_unused_result__
23255         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23256
23257         maint: add a syntax-check rule to check for vulnerable Makefile.in
23258         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23259
23260 2010-01-27  Jim Meyering  <meyering@redhat.com>
23261
23262         ncftpput-ftp: clean up spaces
23263         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23264         Remove trailing blanks.
23265
23266 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23267
23268         * build-aux/git-version-gen: Fix copyright statement.
23269         * build-aux/gnupload: Likewise.
23270         * tests/test-arcfour.c: Likewise.
23271         * tests/test-arctwo.c: Likewise.
23272         * tests/test-count-one-bits.c: Likewise.
23273         * tests/test-crc.c: Likewise.
23274         * tests/test-des.c: Likewise.
23275         * tests/test-gc-arcfour.c: Likewise.
23276         * tests/test-gc-arctwo.c: Likewise.
23277         * tests/test-gc-des.c: Likewise.
23278         * tests/test-gc-hmac-md5.c: Likewise.
23279         * tests/test-gc-hmac-sha1.c: Likewise.
23280         * tests/test-gc-md2.c: Likewise.
23281         * tests/test-gc-md4.c: Likewise.
23282         * tests/test-gc-md5.c: Likewise.
23283         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23284         * tests/test-gc-rijndael.c: Likewise.
23285         * tests/test-gc-sha1.c: Likewise.
23286         * tests/test-gc.c: Likewise.
23287         * tests/test-gethostname.c: Likewise.
23288         * tests/test-gettimeofday.c: Likewise.
23289         * tests/test-hash.c: Likewise.
23290         * tests/test-hmac-md5.c: Likewise.
23291         * tests/test-hmac-sha1.c: Likewise.
23292         * tests/test-md2.c: Likewise.
23293         * tests/test-md4.c: Likewise.
23294         * tests/test-md5.c: Likewise.
23295         * tests/test-memchr.c: Likewise.
23296         * tests/test-memchr2.c: Likewise.
23297         * tests/test-memcmp.c: Likewise.
23298         * tests/test-memmem.c: Likewise.
23299         * tests/test-memrchr.c: Likewise.
23300         * tests/test-rawmemchr.c: Likewise.
23301         * tests/test-read-file.c: Likewise.
23302         * tests/test-rijndael.c: Likewise.
23303         * tests/test-sockets.c: Likewise.
23304         * tests/test-strchrnul.c: Likewise.
23305         * tests/test-strstr.c: Likewise.
23306         * tests/test-strtod.c: Likewise.
23307         * build-aux/ncftpput-ftp: Likewise.
23308
23309 2010-01-26  Eric Blake  <ebb9@byu.net>
23310
23311         ignore-value: update recommended header name
23312         * modules/ignore-value (Include): Only use <> for headers that
23313         exist in glibc.
23314
23315 2010-01-26  Jim Meyering  <meyering@redhat.com>
23316
23317         test-userspec.c: avoid compiler warnings
23318         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23319         and "initialization discards qualifiers..." warnings.
23320         Put the first "uid" in its own scope, and make char* members "const".
23321
23322 2010-01-25  Bruno Haible  <bruno@clisp.org>
23323
23324         gnulib-tool: Make warning diagnostics consistent.
23325         * gnulib-tool (func_warning): New function.
23326         Use it everywhere where gnulib-tool produces output to stderr and it is
23327         not a fatal error.
23328
23329 2010-01-25  Bruno Haible  <bruno@clisp.org>
23330
23331         Fix test dependencies.
23332         * modules/xstrtol-tests (Depends-on): Add inttypes.
23333         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23334
23335 2010-01-25 Pádraig Brady <P@draigBrady.com>
23336
23337         syntax-check: detect incorrect boolean macro values in config.h
23338         * modules/maintainer-makefile (configure.ac): Parameterize the location
23339         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23340         The logic is from Eric Blake and the location indicated by Jim Meyering.
23341         Note the more natural CONFIG_HEADER name is prohibited by automake
23342         for backwards compatibility reasons.
23343         * top/maint.mk (sc_Wundef_boolean): New rule.
23344
23345 2010-01-25  Jim Meyering  <meyering@redhat.com>
23346
23347         bootstrap: detect MacOS 10.6's shasum, too
23348         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23349         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23350
23351 2010-01-23  Jim Meyering  <meyering@redhat.com>
23352
23353         xstrtoll: new module
23354         * modules/xstrtoll: New file.
23355         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23356         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23357         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23358         ./configure fails if you use this module and lack "long long".
23359         * modules/xstrtoll-tests: New module.
23360         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23361         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23362         new init.sh-based test framework.
23363
23364 2010-01-24  Bruno Haible  <bruno@clisp.org>
23365
23366         Tests for module 'yn'.
23367         * modules/yn-tests: New file.
23368         * tests/test-yn.c: New file.
23369
23370         Tests for module 'y1'.
23371         * modules/y1-tests: New file.
23372         * tests/test-y1.c: New file.
23373
23374         Tests for module 'y0'.
23375         * modules/y0-tests: New file.
23376         * tests/test-y0.c: New file.
23377
23378         Tests for module 'tanh'.
23379         * modules/tanh-tests: New file.
23380         * tests/test-tanh.c: New file.
23381
23382         Tests for module 'tan'.
23383         * modules/tan-tests: New file.
23384         * tests/test-tan.c: New file.
23385
23386         Tests for module 'sqrt'.
23387         * modules/sqrt-tests: New file.
23388         * tests/test-sqrt.c: New file.
23389
23390         Tests for module 'sinh'.
23391         * modules/sinh-tests: New file.
23392         * tests/test-sinh.c: New file.
23393
23394         Tests for module 'sin'.
23395         * modules/sin-tests: New file.
23396         * tests/test-sin.c: New file.
23397
23398         Tests for module 'rint'.
23399         * modules/rint-tests: New file.
23400         * tests/test-rint.c: New file.
23401
23402         Tests for module 'remainder'.
23403         * modules/remainder-tests: New file.
23404         * tests/test-remainder.c: New file.
23405
23406         Tests for module 'pow'.
23407         * modules/pow-tests: New file.
23408         * tests/test-pow.c: New file.
23409
23410         Tests for module 'nextafter'.
23411         * modules/nextafter-tests: New file.
23412         * tests/test-nextafter.c: New file.
23413
23414         Tests for module 'modf'.
23415         * modules/modf-tests: New file.
23416         * tests/test-modf.c: New file.
23417
23418         Tests for module 'logb'.
23419         * modules/logb-tests: New file.
23420         * tests/test-logb.c: New file.
23421
23422         Tests for module 'log1p'.
23423         * modules/log1p-tests: New file.
23424         * tests/test-log1p.c: New file.
23425
23426         Tests for module 'log10'.
23427         * modules/log10-tests: New file.
23428         * tests/test-log10.c: New file.
23429
23430         Tests for module 'log'.
23431         * modules/log-tests: New file.
23432         * tests/test-log.c: New file.
23433
23434         Tests for module 'lgamma'.
23435         * modules/lgamma-tests: New file.
23436         * tests/test-lgamma.c: New file.
23437
23438         Tests for module 'ldexp'.
23439         * modules/ldexp-tests: New file.
23440         * tests/test-ldexp.c: New file.
23441
23442         Tests for module 'jn'.
23443         * modules/jn-tests: New file.
23444         * tests/test-jn.c: New file.
23445
23446         Tests for module 'j1'.
23447         * modules/j1-tests: New file.
23448         * tests/test-j1.c: New file.
23449
23450         Tests for module 'j0'.
23451         * modules/j0-tests: New file.
23452         * tests/test-j0.c: New file.
23453
23454         Tests for module 'hypot'.
23455         * modules/hypot-tests: New file.
23456         * tests/test-hypot.c: New file.
23457
23458         Tests for module 'fmod'.
23459         * modules/fmod-tests: New file.
23460         * tests/test-fmod.c: New file.
23461
23462         Tests for module 'fabs'.
23463         * modules/fabs-tests: New file.
23464         * tests/test-fabs.c: New file.
23465
23466         Tests for module 'exp'.
23467         * modules/exp-tests: New file.
23468         * tests/test-exp.c: New file.
23469
23470         Tests for module 'erfc'.
23471         * modules/erfc-tests: New file.
23472         * tests/test-erfc.c: New file.
23473
23474         Tests for module 'erf'.
23475         * modules/erf-tests: New file.
23476         * tests/test-erf.c: New file.
23477
23478         Tests for module 'cosh'.
23479         * modules/cosh-tests: New file.
23480         * tests/test-cosh.c: New file.
23481
23482         Tests for module 'cos'.
23483         * modules/cos-tests: New file.
23484         * tests/test-cos.c: New file.
23485
23486         Tests for module 'copysign'.
23487         * modules/copysign-tests: New file.
23488         * tests/test-copysign.c: New file.
23489
23490         Tests for module 'cbrt'.
23491         * modules/cbrt-tests: New file.
23492         * tests/test-cbrt.c: New file.
23493
23494         Tests for module 'atan2'.
23495         * modules/atan2-tests: New file.
23496         * tests/test-atan2.c: New file.
23497
23498         Tests for module 'atan'.
23499         * modules/atan-tests: New file.
23500         * tests/test-atan.c: New file.
23501
23502         Tests for module 'asin'.
23503         * modules/asin-tests: New file.
23504         * tests/test-asin.c: New file.
23505
23506         Tests for module 'acos'.
23507         * modules/acos-tests: New file.
23508         * tests/test-acos.c: New file.
23509
23510 2010-01-24  Bruno Haible  <bruno@clisp.org>
23511
23512         Fix tests for common <math.h> functions.
23513         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23514         code snippet that references the function pointer, rather than merely
23515         calling the function. Substitute the FUNC_LIBM variable.
23516         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23517         * modules/acos (configure.ac): Likewise.
23518         * modules/asin (configure.ac): Likewise.
23519         * modules/atan (configure.ac): Likewise.
23520         * modules/atan2 (configure.ac): Likewise.
23521         * modules/cbrt (configure.ac): Likewise.
23522         * modules/copysign (configure.ac): Likewise.
23523         * modules/cos (configure.ac): Likewise.
23524         * modules/cosh (configure.ac): Likewise.
23525         * modules/erf (configure.ac): Likewise.
23526         * modules/erfc (configure.ac): Likewise.
23527         * modules/exp (configure.ac): Likewise.
23528         * modules/fabs (configure.ac): Likewise.
23529         * modules/fmod (configure.ac): Likewise.
23530         * modules/hypot (configure.ac): Likewise.
23531         * modules/j0 (configure.ac): Likewise.
23532         * modules/j1 (configure.ac): Likewise.
23533         * modules/jn (configure.ac): Likewise.
23534         * modules/ldexp (configure.ac): Likewise.
23535         * modules/lgamma (configure.ac): Likewise.
23536         * modules/log (configure.ac): Likewise.
23537         * modules/log10 (configure.ac): Likewise.
23538         * modules/log1p (configure.ac): Likewise.
23539         * modules/logb (configure.ac): Likewise.
23540         * modules/modf (configure.ac): Likewise.
23541         * modules/nextafter (configure.ac): Likewise.
23542         * modules/pow (configure.ac): Likewise.
23543         * modules/remainder (configure.ac): Likewise.
23544         * modules/rint (configure.ac): Likewise.
23545         * modules/sin (configure.ac): Likewise.
23546         * modules/sinh (configure.ac): Likewise.
23547         * modules/tan (configure.ac): Likewise.
23548         * modules/tanh (configure.ac): Likewise.
23549         * modules/y0 (configure.ac): Likewise.
23550         * modules/y1 (configure.ac): Likewise.
23551         * modules/yn (configure.ac): Likewise.
23552
23553 2010-01-24  Bruno Haible  <bruno@clisp.org>
23554
23555         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23556         * tests/test-acosl.c (x): New variable.
23557         (main): Store argument in x and fetch it from x.
23558         * tests/test-asinl.c (x): New variable.
23559         (main): Store argument in x and fetch it from x.
23560         * tests/test-atanl.c (x): New variable.
23561         (main): Store argument in x and fetch it from x.
23562         * tests/test-cosl.c (x): New variable.
23563         (main): Store argument in x and fetch it from x.
23564         * tests/test-expl.c (x): New variable.
23565         (main): Store argument in x and fetch it from x.
23566         * tests/test-logl.c (x): New variable.
23567         (main): Store argument in x and fetch it from x.
23568         * tests/test-sinl.c (x): New variable.
23569         (main): Store argument in x and fetch it from x.
23570         * tests/test-sqrtl.c (x): New variable.
23571         (main): Store argument in x and fetch it from x.
23572         * tests/test-tanl.c (x): New variable.
23573         (main): Store argument in x and fetch it from x.
23574
23575 2010-01-24  Bruno Haible  <bruno@clisp.org>
23576
23577         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23578         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23579         assignments to the initial TESTS_ENVIRONMENT.
23580         * doc/gnulib.texi (Unit test modules): Document it.
23581         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23582         TESTS_ENVIRONMENT.
23583         * modules/btowc-tests (Makefile.am): Likewise.
23584         * modules/c-stack-tests (Makefile.am): Likewise.
23585         * modules/c-strcase-tests (Makefile.am): Likewise.
23586         * modules/copy-file-tests (Makefile.am): Likewise.
23587         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23588         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23589         * modules/mbrtowc-tests (Makefile.am): Likewise.
23590         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23591         * modules/mbscasestr-tests (Makefile.am): Likewise.
23592         * modules/mbschr-tests (Makefile.am): Likewise.
23593         * modules/mbscspn-tests (Makefile.am): Likewise.
23594         * modules/mbsinit-tests (Makefile.am): Likewise.
23595         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23596         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23597         * modules/mbspbrk-tests (Makefile.am): Likewise.
23598         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23599         * modules/mbsrchr-tests (Makefile.am): Likewise.
23600         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23601         * modules/mbsspn-tests (Makefile.am): Likewise.
23602         * modules/mbsstr-tests (Makefile.am): Likewise.
23603         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23604         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23605         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23606         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23607         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23608         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23609         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23610         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23611         * modules/wcrtomb-tests (Makefile.am): Likewise.
23612         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23613         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23614         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23615         assignments from TESTS_ENVIRONMENT.
23616         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23617         augmentation.
23618         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23619         * modules/atexit-tests (Makefile.am): Likewise.
23620         * modules/binary-io-tests (Makefile.am): Likewise.
23621         * modules/closein-tests (Makefile.am): Likewise.
23622         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23623         * modules/exclude-tests (Makefile.am): Likewise.
23624         * modules/fflush-tests (Makefile.am): Likewise.
23625         * modules/fpending-tests (Makefile.am): Likewise.
23626         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23627         * modules/freadahead-tests (Makefile.am): Likewise.
23628         * modules/freadptr-tests (Makefile.am): Likewise.
23629         * modules/freadseek-tests (Makefile.am): Likewise.
23630         * modules/fseek-tests (Makefile.am): Likewise.
23631         * modules/fseeko-tests (Makefile.am): Likewise.
23632         * modules/ftell-tests (Makefile.am): Likewise.
23633         * modules/ftello-tests (Makefile.am): Likewise.
23634         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23635         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23636         * modules/lseek-tests (Makefile.am): Likewise.
23637         * modules/parse-duration-tests (Makefile.am): Likewise.
23638         * modules/perror-tests (Makefile.am): Likewise.
23639         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23640         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23641         * modules/pipe-tests (Makefile.am): Likewise.
23642         * modules/pread-tests (Makefile.am): Likewise.
23643         * modules/printf-posix-tests (Makefile.am): Likewise.
23644         * modules/select-tests (Makefile.am): Likewise.
23645         * modules/sigpipe-tests (Makefile.am): Likewise.
23646         * modules/tsearch-tests (Makefile.am): Likewise.
23647         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23648         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23649         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23650         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23651         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23652         * modules/version-etc-tests (Makefile.am): Likewise.
23653         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23654         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23655         * modules/xalloc-die-tests (Makefile.am): Likewise.
23656         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23657         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23658         * modules/xstrtol-tests (Makefile.am): Likewise.
23659         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23660         * modules/yesno-tests (Makefile.am): Likewise.
23661         Suggested by Jim Meyering.
23662
23663 2010-01-24  Bruno Haible  <bruno@clisp.org>
23664
23665         More documentation.
23666         * doc/gnulib.texi (Writing modules): New chapter.
23667         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23668         the new chapter.
23669
23670 2010-01-24  Jim Meyering  <meyering@redhat.com>
23671
23672         maint.mk: do not prepend "./" after filtering
23673         * top/maint.mk (_prepend_srcdir_prefix): New variable
23674         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23675         "./" when $(srcdir) is ".".
23676
23677         define STREQ(a,b) consistently, removing useless parentheses
23678         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23679         since the only risk is that "a" or "b" contains an unparenthesized
23680         comma, but if either did that, STREQ would have 3 or more arguments.
23681         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23682         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23683         * lib/hash-triple.c (STREQ): Likewise.
23684         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23685         * lib/getugroups.c (STREQ): Likewise.
23686
23687 2010-01-23  Jim Meyering  <meyering@redhat.com>
23688
23689         maint.mk: fix syntax-check in a non-srcdir build directory
23690         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23691         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23692
23693 2010-01-22  Jim Meyering  <meyering@redhat.com>
23694
23695         userspec: add unit tests
23696         * tests/test-userspec.c: New file.
23697         * modules/userspec-tests: Likewise.
23698
23699 2010-01-21  Jim Meyering  <meyering@redhat.com>
23700
23701         maint.mk: handle source file names containing "." robustly
23702         * top/maint.mk (_dot_escaped_srcdir): Define.
23703         (VC_LIST): Use it in LHS of sed substitution.
23704
23705 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23706
23707         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23708         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23709         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23710         from a non-srcdir build.
23711
23712 2010-01-20  Eric Blake  <ebb9@byu.net>
23713
23714         warn-on-use: use instead of link-warning
23715         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23716         * modules/unistd (Depends-on, Makefile.am): Likewise.
23717         * modules/arpa_inet (Depends-on): Replace link-warning with
23718         warn-on-use.
23719         (Makefile.am): Update rules accordingly.
23720         * modules/ctype (Depends-on, Makefile.am): Likewise.
23721         * modules/dirent (Depends-on, Makefile.am): Likewise.
23722         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23723         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23724         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23725         * modules/locale (Depends-on, Makefile.am): Likewise.
23726         * modules/math (Depends-on, Makefile.am): Likewise.
23727         * modules/search (Depends-on, Makefile.am): Likewise.
23728         * modules/signal (Depends-on, Makefile.am): Likewise.
23729         * modules/spawn (Depends-on, Makefile.am): Likewise.
23730         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23731         * modules/string (Depends-on, Makefile.am): Likewise.
23732         * modules/strings (Depends-on, Makefile.am): Likewise.
23733         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23734         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23735         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23736         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23737         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23738         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23739         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23740         * modules/wchar (Depends-on, Makefile.am): Likewise.
23741         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23742         should be poisoned.
23743         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23744         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23745         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23746         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23747         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23748         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23749         * m4/math_h.m4 (gl_MATH_H): Likewise.
23750         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23751         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23752         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23753         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23754         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23755         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23756         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23757         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23758         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23759         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23760         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23761         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23762         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23763         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23764         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23765         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23766         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23767         GL_LINK_WARNING.
23768         * lib/ctype.in.h: Likewise.
23769         * lib/dirent.in.h: Likewise.
23770         * lib/fcntl.in.h: Likewise.
23771         * lib/inttypes.in.h: Likewise.
23772         * lib/langinfo.in.h: Likewise.
23773         * lib/locale.in.h: Likewise.
23774         * lib/math.in.h: Likewise.
23775         * lib/search.in.h: Likewise.
23776         * lib/signal.in.h: Likewise.
23777         * lib/spawn.in.h: Likewise.
23778         * lib/stdio.in.h: Likewise.
23779         * lib/stdlib.in.h: Likewise.
23780         * lib/string.in.h: Likewise.
23781         * lib/strings.in.h: Likewise.
23782         * lib/sys_file.in.h: Likewise.
23783         * lib/sys_ioctl.in.h: Likewise.
23784         * lib/sys_select.in.h: Likewise.
23785         * lib/sys_socket.in.h: Likewise.
23786         * lib/sys_stat.in.h: Likewise.
23787         * lib/sys_times.in.h: Likewise.
23788         * lib/sys_utsname.in.h: Likewise.
23789         * lib/unistd.in.h: Likewise.
23790         * lib/wchar.in.h: Likewise.
23791
23792 2010-01-20  Bruno Haible  <bruno@clisp.org>
23793
23794         Avoid duplicate -lm.
23795         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23796         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23797         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23798         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23799         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23800         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23801         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23802         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23803         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23804         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23805         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23806         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23807         Reported by Paolo Bonzini.
23808
23809 2010-01-19  Bruno Haible  <bruno@clisp.org>
23810
23811         langinfo, nl_langinfo: Relicense under LGPLv2+.
23812         * modules/langinfo (License): Change to LGPLv2+.
23813         * modules/nl_langinfo (License): Likewise.
23814         Patch by David Lutterkort <lutter@redhat.com>.
23815
23816 2010-01-19  Bruno Haible  <bruno@clisp.org>
23817
23818         Avoid compilation error with cc on OSF/1 5.1.
23819         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23820         statement, not before.
23821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23822
23823 2010-01-18  Bruno Haible  <bruno@clisp.org>
23824
23825         Avoid a link error due to the __printf__ symbol.
23826         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23827         and 2.6.x.
23828         (__format__, __printf__): Remove definitions.
23829         * lib/argp-fmtstream.h: Likewise.
23830         * lib/argp.h: Likewise.
23831         * lib/error.h: Likewise.
23832         * lib/vasnprintf.h: Likewise.
23833         * lib/xprintf.h: Likewise.
23834         * lib/xvasprintf.h: Likewise.
23835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23836
23837 2010-01-18  Bruno Haible  <bruno@clisp.org>
23838
23839         Tests for module 'tanl'.
23840         * modules/tanl-tests: New file.
23841         * tests/test-tanl.c: New file.
23842
23843         Tests for module 'sqrtl'.
23844         * modules/sqrtl-tests: New file.
23845         * tests/test-sqrtl.c: New file.
23846
23847         Tests for module 'sinl'.
23848         * modules/sinl-tests: New file.
23849         * tests/test-sinl.c: New file.
23850
23851         Tests for module 'logl'.
23852         * modules/logl-tests: New file.
23853         * tests/test-logl.c: New file.
23854
23855         Tests for module 'expl'.
23856         * modules/expl-tests: New file.
23857         * tests/test-expl.c: New file.
23858
23859         Tests for module 'cosl'.
23860         * modules/cosl-tests: New file.
23861         * tests/test-cosl.c: New file.
23862
23863         Tests for module 'atanl'.
23864         * modules/atanl-tests: New file.
23865         * tests/test-atanl.c: New file.
23866
23867         Tests for module 'asinl'.
23868         * modules/asinl-tests: New file.
23869         * tests/test-asinl.c: New file.
23870
23871         Tests for module 'acosl'.
23872         * modules/acosl-tests: New file.
23873         * tests/test-acosl.c: New file.
23874
23875         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23876         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23877         tanl): Use the standard gnulib idiom.
23878         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23879         * lib/sinl.c: Likewise.
23880         * lib/tanl.c: Don't include trigl.c.
23881         (kernel_tanl): Make static.
23882         * lib/sincosl.c: Include trigl.h first.
23883         * lib/trigl.c: Likewise.
23884         * m4/acosl.m4: New file.
23885         * m4/asinl.m4: New file.
23886         * m4/atanl.m4: New file.
23887         * m4/cosl.m4: New file.
23888         * m4/expl.m4: New file.
23889         * m4/logl.m4: New file.
23890         * m4/sinl.m4: New file.
23891         * m4/sqrtl.m4: New file.
23892         * m4/tanl.m4: New file.
23893         * m4/mathl.m4: Remove file.
23894         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23895         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23896         Don't initialize GNULIB_MATHL.
23897         * modules/acosl: New file.
23898         * modules/asinl: New file.
23899         * modules/atanl: New file.
23900         * modules/cosl: New file.
23901         * modules/expl: New file.
23902         * modules/logl: New file.
23903         * modules/sinl: New file.
23904         * modules/sqrtl: New file.
23905         * modules/tanl: New file.
23906         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23907         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23908         substitute GNULIB_MATHL.
23909         * modules/mathl: Rewritten.
23910         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23911         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23912         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23913         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23914         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23915         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23916         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23917         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23918         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23919
23920 2010-01-18  Bruno Haible  <bruno@clisp.org>
23921
23922         sqrt: Make gl_FUNC_SQRT requirable.
23923         * m4/sqrt.m4: New file.
23924         * modules/sqrt (Files): Add it.
23925         (configure.ac): Invoke gl_FUNC_SQRT.
23926
23927 2010-01-18  Bruno Haible  <bruno@clisp.org>
23928
23929         New modules for common <math.h> functions.
23930         * m4/mathfunc.m4: New file.
23931         * modules/acos: New file.
23932         * modules/asin: New file.
23933         * modules/atan: New file.
23934         * modules/atan2: New file.
23935         * modules/cbrt: New file.
23936         * modules/copysign: New file.
23937         * modules/cos: New file.
23938         * modules/cosh: New file.
23939         * modules/erf: New file.
23940         * modules/erfc: New file.
23941         * modules/exp: New file.
23942         * modules/fabs: New file.
23943         * modules/fmod: New file.
23944         * modules/hypot: New file.
23945         * modules/j0: New file.
23946         * modules/j1: New file.
23947         * modules/jn: New file.
23948         * modules/ldexp: New file.
23949         * modules/lgamma: New file.
23950         * modules/log: New file.
23951         * modules/log10: New file.
23952         * modules/log1p: New file.
23953         * modules/logb: New file.
23954         * modules/modf: New file.
23955         * modules/nextafter: New file.
23956         * modules/pow: New file.
23957         * modules/remainder: New file.
23958         * modules/rint: New file.
23959         * modules/sin: New file.
23960         * modules/sinh: New file.
23961         * modules/sqrt: New file.
23962         * modules/tan: New file.
23963         * modules/tanh: New file.
23964         * modules/y0: New file.
23965         * modules/y1: New file.
23966         * modules/yn: New file.
23967         * doc/posix-functions/acos.texi: Mention the 'acos' module.
23968         * doc/posix-functions/asin.texi: Mention the 'asin' module.
23969         * doc/posix-functions/atan.texi: Mention the 'atan' module.
23970         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
23971         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
23972         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
23973         * doc/posix-functions/cos.texi: Mention the 'cos' module.
23974         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
23975         * doc/posix-functions/erf.texi: Mention the 'erf' module.
23976         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
23977         * doc/posix-functions/exp.texi: Mention the 'exp' module.
23978         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
23979         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
23980         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
23981         * doc/posix-functions/j0.texi: Mention the 'j0' module.
23982         * doc/posix-functions/j1.texi: Mention the 'j1' module.
23983         * doc/posix-functions/jn.texi: Mention the 'jn' module.
23984         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
23985         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
23986         * doc/posix-functions/log.texi: Mention the 'log' module.
23987         * doc/posix-functions/log10.texi: Mention the 'log10' module.
23988         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
23989         * doc/posix-functions/logb.texi: Mention the 'logb' module.
23990         * doc/posix-functions/modf.texi: Mention the 'modf' module.
23991         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
23992         * doc/posix-functions/pow.texi: Mention the 'pow' module.
23993         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
23994         * doc/posix-functions/rint.texi: Mention the 'rint' module.
23995         * doc/posix-functions/sin.texi: Mention the 'sin' module.
23996         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
23997         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
23998         * doc/posix-functions/tan.texi: Mention the 'tan' module.
23999         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24000         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24001         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24002         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24003
24004 2010-01-18  Jim Meyering  <meyering@redhat.com>
24005
24006         ignore-value: relax license to LGPLv2+
24007         * modules/ignore-value (License): Relax to LGPLv2+.
24008
24009         getdate: don't leak when TZ contains two or more '"'s
24010         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24011         double quote in TZ after the first one.
24012
24013         readtokens: do not leak internal token_lengths buffer
24014         * lib/readtokens.c (readtokens): Free the local, lengths,
24015         when the supplied "token_lengths" parameter is NULL.
24016
24017 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24018
24019         Fix a couple of missing LIBTHREAD link failures on AIX.
24020         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24021         $(LIBTHREAD).
24022         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24023
24024         Link test-poll against INET_PTON_LIB.
24025         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24026         for inet_pton on Solaris 10.
24027
24028 2010-01-17  Bruno Haible  <bruno@clisp.org>
24029
24030         unistdio/*-sprintf: Fix typo in module description.
24031         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24032         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24033         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24034         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24035         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24036         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24037         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24038         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24039
24040 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24041
24042         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24043         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24044         variables in shell case patterns, for AIX and HP-UX ksh.
24045
24046         Split large sed scripts, for HP-UX sed.
24047         * modules/stdio: Split sed scripts around 50 sed commands,
24048         to avoid HP-UX limit of 99 commands, in the near future.
24049         * modules/string: Likewise.
24050         * modules/unistd: Likewise.
24051
24052         gnulib-tool: avoid writing in the current directory.
24053         * gnulib-tool (func_emit_lib_Makefile_am)
24054         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24055         not in the current directory, so concurrent gnulib-tool
24056         instances do not interfere.
24057
24058 2010-01-16  Jim Meyering  <meyering@redhat.com>
24059
24060         doc: update users.txt
24061         * users.txt: Add grep.
24062         (diffutils, gzip): Update URLs.
24063
24064 2010-01-12  Bruno Haible  <bruno@clisp.org>
24065
24066         posix_spawn: Avoid test failure on Cygwin.
24067         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24068         characters.
24069         Reported by Simon Josefsson.
24070
24071 2010-01-12  Bruno Haible  <bruno@clisp.org>
24072
24073         * tests/test-cond.c (main): When skipping the test, show the reason.
24074
24075 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24076
24077         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24078
24079 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24080
24081         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24082         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24083
24084 2010-01-12  Eric Blake  <ebb9@byu.net>
24085
24086         build: guarantee AS_VAR_IF
24087         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24088         (gl_AS_VAR_IF): Move...
24089         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24090         Reported by Simon Josefsson.
24091
24092 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24093
24094         * lib/stdio.in.h: Fix typo.
24095
24096 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24097
24098         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24099         libgpg-error.
24100
24101 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24102
24103         * tests/test-xalloc-die.sh: Use $EXEEXT.
24104
24105 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24106             Bruno Haible  <bruno@clisp.org>
24107
24108         getlogin, getlogin_r: Avoid test failure.
24109         * tests/test-getlogin.c: Include <stdio.h>.
24110         (main): Skip the test when the function fails because stdin is not a
24111         tty.
24112         * tests/test-getlogin_r.c: Include <stdio.h>.
24113         (main): Skip the test when the function fails because stdin is not a
24114         tty.
24115
24116 2010-01-11  Eric Blake  <ebb9@byu.net>
24117
24118         tests: avoid more large file warnings
24119         * tests/test-fflush.c: Avoid warning about ftell use.
24120         * tests/test-fseek.c: Avoid warning about fseek use.
24121
24122 2010-01-10  Bruno Haible  <bruno@clisp.org>
24123
24124         nproc: Work better on Linux when /proc and /sys are not mounted.
24125         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24126         as lower bound when, on glibc/Linux systems,
24127         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24128         Suggested by Pádraig Brady <P@draigbrady.com>.
24129         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24130
24131         nproc: Refactor.
24132         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24133         extracted from num_processors.
24134         (num_processors): Call it.
24135
24136 2010-01-11  Jim Meyering  <meyering@redhat.com>
24137
24138         utimecmp: avoid new warning from upcoming gcc-4.5.0
24139         * lib/utimecmp.c (BILLION): Define using #define rather than an
24140         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24141
24142 2010-01-11  Eric Blake  <ebb9@byu.net>
24143
24144         math: add portability warnings for classification macros
24145         * modules/math (Depends-on): Add warn-on-use.
24146         (Makefile.am): Provide new substitutions.
24147         * m4/math_h.m4 (gl_MATH_H): Require inline.
24148         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24149         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24150         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24151         implement warnings.
24152
24153         unistd: warn on use of environ without module
24154         * modules/unistd (Depends-on): Add warn-on-use.
24155         (Makefile.am): Provide new substitutions.
24156         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24157         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24158
24159         stdio: warn on suspicious uses
24160         * modules/stdio (Depends-on): Add warn-on-use.
24161         (Makefile.am): Provide new substitutions.
24162         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24163         fseeko.
24164         * lib/stdio.in.h (gets): Always warn on use.
24165         (fseek, ftell): Adjust when warnings are issued, and honor
24166         _GL_NO_LARGE_FILES as a way to silence the warning.
24167         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24168         any warning about large file offsets.
24169         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24170         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24171         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24172         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24173         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24174         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24175         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24176         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24177
24178         warn-on-use: new module
24179         * modules/warn-on-use: New file.
24180         * build-aux/warn-on-use.h: Likewise.
24181         * m4/warn-on-use.m4: Likewise.
24182         * MODULES.html.sh (Support for building): Mention it.
24183
24184 2010-01-10  Bruno Haible  <bruno@clisp.org>
24185
24186         Tests for module 'unistr/u32-strdup'.
24187         * modules/unistr/u32-strdup-tests: New file.
24188         * tests/unistr/test-u32-strdup.c: New file.
24189
24190         Tests for module 'unistr/u16-strdup'.
24191         * modules/unistr/u16-strdup-tests: New file.
24192         * tests/unistr/test-u16-strdup.c: New file.
24193
24194         Tests for module 'unistr/u8-strdup'.
24195         * modules/unistr/u8-strdup-tests: New file.
24196         * tests/unistr/test-u8-strdup.c: New file.
24197         * tests/unistr/test-strdup.h: New file.
24198
24199         Tests for module 'unistr/u32-strncmp'.
24200         * modules/unistr/u32-strncmp-tests: New file.
24201         * tests/unistr/test-u32-strncmp.c: New file.
24202
24203         Tests for module 'unistr/u16-strncmp'.
24204         * modules/unistr/u16-strncmp-tests: New file.
24205         * tests/unistr/test-u16-strncmp.c: New file.
24206
24207         Tests for module 'unistr/u8-strncmp'.
24208         * modules/unistr/u8-strncmp-tests: New file.
24209         * tests/unistr/test-u8-strncmp.c: New file.
24210         * tests/unistr/test-strncmp.h: New file.
24211
24212         Tests for module 'unistr/u32-strcoll'.
24213         * modules/unistr/u32-strcoll-tests: New file.
24214         * tests/unistr/test-u32-strcoll.c: New file.
24215
24216         Tests for module 'unistr/u16-strcoll'.
24217         * modules/unistr/u16-strcoll-tests: New file.
24218         * tests/unistr/test-u16-strcoll.c: New file.
24219
24220         Tests for module 'unistr/u8-strcoll'.
24221         * modules/unistr/u8-strcoll-tests: New file.
24222         * tests/unistr/test-u8-strcoll.c: New file.
24223
24224         Tests for module 'unistr/u32-strcmp'.
24225         * modules/unistr/u32-strcmp-tests: New file.
24226         * tests/unistr/test-u32-strcmp.c: New file.
24227         * tests/unistr/test-u32-strcmp.h: New file.
24228
24229         Tests for module 'unistr/u16-strcmp'.
24230         * modules/unistr/u16-strcmp-tests: New file.
24231         * tests/unistr/test-u16-strcmp.c: New file.
24232         * tests/unistr/test-u16-strcmp.h: New file.
24233
24234         Tests for module 'unistr/u8-strcmp'.
24235         * modules/unistr/u8-strcmp-tests: New file.
24236         * tests/unistr/test-u8-strcmp.c: New file.
24237         * tests/unistr/test-u8-strcmp.h: New file.
24238         * tests/unistr/test-strcmp.h: New file.
24239
24240         Tests for module 'unistr/u32-strncat'.
24241         * modules/unistr/u32-strncat-tests: New file.
24242         * tests/unistr/test-u32-strncat.c: New file.
24243
24244         Tests for module 'unistr/u16-strncat'.
24245         * modules/unistr/u16-strncat-tests: New file.
24246         * tests/unistr/test-u16-strncat.c: New file.
24247
24248         Tests for module 'unistr/u8-strncat'.
24249         * modules/unistr/u8-strncat-tests: New file.
24250         * tests/unistr/test-u8-strncat.c: New file.
24251         * tests/unistr/test-strncat.h: New file.
24252
24253         Tests for module 'unistr/u32-strcat'.
24254         * modules/unistr/u32-strcat-tests: New file.
24255         * tests/unistr/test-u32-strcat.c: New file.
24256
24257         Tests for module 'unistr/u16-strcat'.
24258         * modules/unistr/u16-strcat-tests: New file.
24259         * tests/unistr/test-u16-strcat.c: New file.
24260
24261         Tests for module 'unistr/u8-strcat'.
24262         * modules/unistr/u8-strcat-tests: New file.
24263         * tests/unistr/test-u8-strcat.c: New file.
24264         * tests/unistr/test-strcat.h: New file.
24265
24266         Tests for module 'unistr/u32-stpncpy'.
24267         * modules/unistr/u32-stpncpy-tests: New file.
24268         * tests/unistr/test-u32-stpncpy.c: New file.
24269
24270         Tests for module 'unistr/u16-stpncpy'.
24271         * modules/unistr/u16-stpncpy-tests: New file.
24272         * tests/unistr/test-u16-stpncpy.c: New file.
24273
24274         Tests for module 'unistr/u8-stpncpy'.
24275         * modules/unistr/u8-stpncpy-tests: New file.
24276         * tests/unistr/test-u8-stpncpy.c: New file.
24277         * tests/unistr/test-stpncpy.h: New file.
24278
24279         Tests for module 'unistr/u32-strncpy'.
24280         * modules/unistr/u32-strncpy-tests: New file.
24281         * tests/unistr/test-u32-strncpy.c: New file.
24282
24283         Tests for module 'unistr/u16-strncpy'.
24284         * modules/unistr/u16-strncpy-tests: New file.
24285         * tests/unistr/test-u16-strncpy.c: New file.
24286
24287         Tests for module 'unistr/u8-strncpy'.
24288         * modules/unistr/u8-strncpy-tests: New file.
24289         * tests/unistr/test-u8-strncpy.c: New file.
24290         * tests/unistr/test-strncpy.h: New file.
24291
24292         Tests for module 'unistr/u32-stpcpy'.
24293         * modules/unistr/u32-stpcpy-tests: New file.
24294         * tests/unistr/test-u32-stpcpy.c: New file.
24295
24296         Tests for module 'unistr/u16-stpcpy'.
24297         * modules/unistr/u16-stpcpy-tests: New file.
24298         * tests/unistr/test-u16-stpcpy.c: New file.
24299
24300         Tests for module 'unistr/u8-stpcpy'.
24301         * modules/unistr/u8-stpcpy-tests: New file.
24302         * tests/unistr/test-u8-stpcpy.c: New file.
24303         * tests/unistr/test-stpcpy.h: New file.
24304
24305         Tests for module 'unistr/u32-strcpy'.
24306         * modules/unistr/u32-strcpy-tests: New file.
24307         * tests/unistr/test-u32-strcpy.c: New file.
24308
24309         Tests for module 'unistr/u16-strcpy'.
24310         * modules/unistr/u16-strcpy-tests: New file.
24311         * tests/unistr/test-u16-strcpy.c: New file.
24312
24313         Tests for module 'unistr/u8-strcpy'.
24314         * modules/unistr/u8-strcpy-tests: New file.
24315         * tests/unistr/test-u8-strcpy.c: New file.
24316         * tests/unistr/test-strcpy.h: New file.
24317
24318         Tests for module 'unistr/u32-strnlen'.
24319         * modules/unistr/u32-strnlen-tests: New file.
24320         * tests/unistr/test-u32-strnlen.c: New file.
24321
24322         Tests for module 'unistr/u16-strnlen'.
24323         * modules/unistr/u16-strnlen-tests: New file.
24324         * tests/unistr/test-u16-strnlen.c: New file.
24325
24326         Tests for module 'unistr/u8-strnlen'.
24327         * modules/unistr/u8-strnlen-tests: New file.
24328         * tests/unistr/test-u8-strnlen.c: New file.
24329         * tests/unistr/test-strnlen.h: New file.
24330
24331         Tests for module 'unistr/u32-strlen'.
24332         * modules/unistr/u32-strlen-tests: New file.
24333         * tests/unistr/test-u32-strlen.c: New file.
24334
24335         Tests for module 'unistr/u16-strlen'.
24336         * modules/unistr/u16-strlen-tests: New file.
24337         * tests/unistr/test-u16-strlen.c: New file.
24338
24339         Tests for module 'unistr/u8-strlen'.
24340         * modules/unistr/u8-strlen-tests: New file.
24341         * tests/unistr/test-u8-strlen.c: New file.
24342
24343         Tests for module 'unistr/u32-prev'.
24344         * modules/unistr/u32-prev-tests: New file.
24345         * tests/unistr/test-u32-prev.c: New file.
24346
24347         Tests for module 'unistr/u16-prev'.
24348         * modules/unistr/u16-prev-tests: New file.
24349         * tests/unistr/test-u16-prev.c: New file.
24350
24351         Tests for module 'unistr/u8-prev'.
24352         * modules/unistr/u8-prev-tests: New file.
24353         * tests/unistr/test-u8-prev.c: New file.
24354
24355         Tests for module 'unistr/u32-next'.
24356         * modules/unistr/u32-next-tests: New file.
24357         * tests/unistr/test-u32-next.c: New file.
24358
24359         Tests for module 'unistr/u16-next'.
24360         * modules/unistr/u16-next-tests: New file.
24361         * tests/unistr/test-u16-next.c: New file.
24362
24363         Tests for module 'unistr/u8-next'.
24364         * modules/unistr/u8-next-tests: New file.
24365         * tests/unistr/test-u8-next.c: New file.
24366
24367         Tests for module 'unistr/u32-strmbtouc'.
24368         * modules/unistr/u32-strmbtouc-tests: New file.
24369         * tests/unistr/test-u32-strmbtouc.c: New file.
24370
24371         Tests for module 'unistr/u16-strmbtouc'.
24372         * modules/unistr/u16-strmbtouc-tests: New file.
24373         * tests/unistr/test-u16-strmbtouc.c: New file.
24374
24375         Tests for module 'unistr/u8-strmbtouc'.
24376         * modules/unistr/u8-strmbtouc-tests: New file.
24377         * tests/unistr/test-u8-strmbtouc.c: New file.
24378
24379         Tests for module 'unistr/u32-strmblen'.
24380         * modules/unistr/u32-strmblen-tests: New file.
24381         * tests/unistr/test-u32-strmblen.c: New file.
24382
24383         Tests for module 'unistr/u16-strmblen'.
24384         * modules/unistr/u16-strmblen-tests: New file.
24385         * tests/unistr/test-u16-strmblen.c: New file.
24386
24387         Tests for module 'unistr/u8-strmblen'.
24388         * modules/unistr/u8-strmblen-tests: New file.
24389         * tests/unistr/test-u8-strmblen.c: New file.
24390
24391         Tests for module 'unistr/u32-cpy-alloc'.
24392         * modules/unistr/u32-cpy-alloc-tests: New file.
24393         * tests/unistr/test-u32-cpy-alloc.c: New file.
24394
24395         Tests for module 'unistr/u16-cpy-alloc'.
24396         * modules/unistr/u16-cpy-alloc-tests: New file.
24397         * tests/unistr/test-u16-cpy-alloc.c: New file.
24398
24399         Tests for module 'unistr/u8-cpy-alloc'.
24400         * modules/unistr/u8-cpy-alloc-tests: New file.
24401         * tests/unistr/test-u8-cpy-alloc.c: New file.
24402         * tests/unistr/test-cpy-alloc.h: New file.
24403
24404         Tests for module 'unistr/u32-mbsnlen'.
24405         * modules/unistr/u32-mbsnlen-tests: New file.
24406         * tests/unistr/test-u32-mbsnlen.c: New file.
24407
24408         Tests for module 'unistr/u16-mbsnlen'.
24409         * modules/unistr/u16-mbsnlen-tests: New file.
24410         * tests/unistr/test-u16-mbsnlen.c: New file.
24411
24412         Tests for module 'unistr/u8-mbsnlen'.
24413         * modules/unistr/u8-mbsnlen-tests: New file.
24414         * tests/unistr/test-u8-mbsnlen.c: New file.
24415
24416         Tests for module 'unistr/u32-chr'.
24417         * modules/unistr/u32-chr-tests: New file.
24418         * tests/unistr/test-u32-chr.c: New file.
24419
24420         Tests for module 'unistr/u16-chr'.
24421         * modules/unistr/u16-chr-tests: New file.
24422         * tests/unistr/test-u16-chr.c: New file.
24423
24424         Tests for module 'unistr/u8-chr'.
24425         * modules/unistr/u8-chr-tests: New file.
24426         * tests/unistr/test-u8-chr.c: New file.
24427         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24428
24429         Tests for module 'unistr/u32-cmp2'.
24430         * modules/unistr/u32-cmp2-tests: New file.
24431         * tests/unistr/test-u32-cmp2.c: New file.
24432
24433         Tests for module 'unistr/u16-cmp2'.
24434         * modules/unistr/u16-cmp2-tests: New file.
24435         * tests/unistr/test-u16-cmp2.c: New file.
24436
24437         Tests for module 'unistr/u8-cmp2'.
24438         * modules/unistr/u8-cmp2-tests: New file.
24439         * tests/unistr/test-u8-cmp2.c: New file.
24440         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24441
24442         Tests for module 'unistr/u32-cmp'.
24443         * modules/unistr/u32-cmp-tests: New file.
24444         * tests/unistr/test-u32-cmp.c: New file.
24445
24446         Tests for module 'unistr/u16-cmp'.
24447         * modules/unistr/u16-cmp-tests: New file.
24448         * tests/unistr/test-u16-cmp.c: New file.
24449
24450         Tests for module 'unistr/u8-cmp'.
24451         * modules/unistr/u8-cmp-tests: New file.
24452         * tests/unistr/test-u8-cmp.c: New file.
24453         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24454
24455         Tests for module 'unistr/u32-set'.
24456         * modules/unistr/u32-set-tests: New file.
24457         * tests/unistr/test-u32-set.c: New file.
24458
24459         Tests for module 'unistr/u16-set'.
24460         * modules/unistr/u16-set-tests: New file.
24461         * tests/unistr/test-u16-set.c: New file.
24462
24463         Tests for module 'unistr/u8-set'.
24464         * modules/unistr/u8-set-tests: New file.
24465         * tests/unistr/test-u8-set.c: New file.
24466         * tests/unistr/test-set.h: New file.
24467
24468         Tests for module 'unistr/u32-move'.
24469         * modules/unistr/u32-move-tests: New file.
24470         * tests/unistr/test-u32-move.c: New file.
24471
24472         Tests for module 'unistr/u16-move'.
24473         * modules/unistr/u16-move-tests: New file.
24474         * tests/unistr/test-u16-move.c: New file.
24475
24476         Tests for module 'unistr/u8-move'.
24477         * modules/unistr/u8-move-tests: New file.
24478         * tests/unistr/test-u8-move.c: New file.
24479         * tests/unistr/test-move.h: New file.
24480
24481         Tests for module 'unistr/u32-cpy'.
24482         * modules/unistr/u32-cpy-tests: New file.
24483         * tests/unistr/test-u32-cpy.c: New file.
24484
24485         Tests for module 'unistr/u16-cpy'.
24486         * modules/unistr/u16-cpy-tests: New file.
24487         * tests/unistr/test-u16-cpy.c: New file.
24488
24489         Tests for module 'unistr/u8-cpy'.
24490         * modules/unistr/u8-cpy-tests: New file.
24491         * tests/unistr/test-u8-cpy.c: New file.
24492         * tests/unistr/test-cpy.h: New file.
24493
24494 2010-01-09  Bruno Haible  <bruno@clisp.org>
24495
24496         Tests for module 'unistr/u32-uctomb'.
24497         * modules/unistr/u32-uctomb-tests: New file.
24498         * tests/unistr/test-u32-uctomb.c: New file.
24499
24500         Tests for module 'unistr/u16-uctomb'.
24501         * modules/unistr/u16-uctomb-tests: New file.
24502         * tests/unistr/test-u16-uctomb.c: New file.
24503
24504         Tests for module 'unistr/u8-uctomb'.
24505         * modules/unistr/u8-uctomb-tests: New file.
24506         * tests/unistr/test-u8-uctomb.c: New file.
24507
24508         Tests for module 'unistr/u32-mbtoucr'.
24509         * modules/unistr/u32-mbtoucr-tests: New file.
24510         * tests/unistr/test-u32-mbtoucr.c: New file.
24511
24512         Tests for module 'unistr/u16-mbtoucr'.
24513         * modules/unistr/u16-mbtoucr-tests: New file.
24514         * tests/unistr/test-u16-mbtoucr.c: New file.
24515
24516         Tests for module 'unistr/u8-mbtoucr'.
24517         * modules/unistr/u8-mbtoucr-tests: New file.
24518         * tests/unistr/test-u8-mbtoucr.c: New file.
24519
24520         Tests for module 'unistr/u32-mbtouc'.
24521         * modules/unistr/u32-mbtouc-tests: New file.
24522         * tests/unistr/test-u32-mbtouc.c: New file.
24523
24524         Tests for module 'unistr/u16-mbtouc'.
24525         * modules/unistr/u16-mbtouc-tests: New file.
24526         * tests/unistr/test-u16-mbtouc.c: New file.
24527
24528         Tests for module 'unistr/u8-mbtouc'.
24529         * modules/unistr/u8-mbtouc-tests: New file.
24530         * tests/unistr/test-u8-mbtouc.c: New file.
24531
24532         Tests for module 'unistr/u32-mbtouc-unsafe'.
24533         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24534         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24535         * tests/unistr/test-u32-mbtouc.h: New file.
24536
24537         Tests for module 'unistr/u16-mbtouc-unsafe'.
24538         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24539         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24540         * tests/unistr/test-u16-mbtouc.h: New file.
24541
24542         Tests for module 'unistr/u8-mbtouc-unsafe'.
24543         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24544         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24545         * tests/unistr/test-u8-mbtouc.h: New file.
24546
24547         Tests for module 'unistr/u32-mblen'.
24548         * modules/unistr/u32-mblen-tests: New file.
24549         * tests/unistr/test-u32-mblen.c: New file.
24550
24551         Tests for module 'unistr/u16-mblen'.
24552         * modules/unistr/u16-mblen-tests: New file.
24553         * tests/unistr/test-u16-mblen.c: New file.
24554
24555         Tests for module 'unistr/u8-mblen'.
24556         * modules/unistr/u8-mblen-tests: New file.
24557         * tests/unistr/test-u8-mblen.c: New file.
24558
24559         Tests for module 'unistr/u32-to-u16'.
24560         * modules/unistr/u32-to-u16-tests: New file.
24561         * tests/unistr/test-u32-to-u16.c: New file.
24562
24563         Tests for module 'unistr/u32-to-u8'.
24564         * modules/unistr/u32-to-u8-tests: New file.
24565         * tests/unistr/test-u32-to-u8.c: New file.
24566
24567         Tests for module 'unistr/u16-to-u32'.
24568         * modules/unistr/u16-to-u32-tests: New file.
24569         * tests/unistr/test-u16-to-u32.c: New file.
24570
24571         Tests for module 'unistr/u16-to-u8'.
24572         * modules/unistr/u16-to-u8-tests: New file.
24573         * tests/unistr/test-u16-to-u8.c: New file.
24574
24575         Tests for module 'unistr/u8-to-u32'.
24576         * modules/unistr/u8-to-u32-tests: New file.
24577         * tests/unistr/test-u8-to-u32.c: New file.
24578
24579         Tests for module 'unistr/u8-to-u16'.
24580         * modules/unistr/u8-to-u16-tests: New file.
24581         * tests/unistr/test-u8-to-u16.c: New file.
24582
24583         Tests for module 'unistr/u32-check'.
24584         * modules/unistr/u32-check-tests: New file.
24585         * tests/unistr/test-u32-check.c: New file.
24586
24587         Tests for module 'unistr/u16-check'.
24588         * modules/unistr/u16-check-tests: New file.
24589         * tests/unistr/test-u16-check.c: New file.
24590
24591         Tests for module 'unistr/u8-check'.
24592         * modules/unistr/u8-check-tests: New file.
24593         * tests/unistr/test-u8-check.c: New file.
24594
24595         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24596         (category_equals): New function.
24597         (main): Add more tests.
24598         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24599
24600         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24601
24602 2010-01-10  Bruno Haible  <bruno@clisp.org>
24603
24604         unistr/u*-strcoll: Try harder to distinguish different strings.
24605         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24606         compare s1 and s2 to see if they are different.
24607
24608 2010-01-10  Bruno Haible  <bruno@clisp.org>
24609
24610         unistr/u*-stpncpy: Fix the return value.
24611         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24612         description of the return value consistent with stpncpy in glibc.
24613         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24614         written non-NUL unit.
24615
24616 2010-01-10  Bruno Haible  <bruno@clisp.org>
24617
24618         unistr/u*-next: Add missing dependencies.
24619         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24620         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24621         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24622
24623 2010-01-10  Bruno Haible  <bruno@clisp.org>
24624
24625         unistr/u8-mbsnlen: Fix return value for incomplete character.
24626         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24627         u8_mblen.
24628         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24629         Remove unistr/u8-mblen.
24630         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24631         u16_mblen.
24632         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24633         Remove unistr/u16-mblen.
24634
24635 2010-01-10  Bruno Haible  <bruno@clisp.org>
24636
24637         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24638         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24639         Reported by Brian Gough <bjg@gnu.org> and
24640         Chris Clayton <chris2553@googlemail.com> via
24641         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24642
24643 2010-01-09  Bruno Haible  <bruno@clisp.org>
24644
24645         unistr/u16-to-u32: Reject invalid input.
24646         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24647         u16_mbtouc.
24648         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24649         Remove unistr/u16-mbtouc.
24650
24651         unistr/u16-to-u8: Reject invalid input.
24652         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24653         u16_mbtouc.
24654         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24655         Remove unistr/u16-mbtouc.
24656
24657         unistr/u8-to-u32: Reject invalid input.
24658         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24659         u8_mbtouc.
24660         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24661         Remove unistr/u8-mbtouc.
24662
24663         unistr/u8-to-u16: Reject invalid input.
24664         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24665         u8_mbtouc.
24666         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24667         Remove unistr/u8-mbtouc.
24668
24669 2010-01-09  Bruno Haible  <bruno@clisp.org>
24670
24671         Tests for module 'getlogin'.
24672         * modules/getlogin-tests: New file.
24673         * tests/test-getlogin.c: New file.
24674
24675         New module 'getlogin'.
24676         * lib/unistd.in.h (getlogin): New declaration.
24677         * lib/getlogin.c: New file.
24678         * m4/getlogin.m4: New file.
24679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24680         HAVE_GETLOGIN.
24681         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24682         HAVE_GETLOGIN.
24683         * modules/getlogin: New file.
24684         * doc/posix-functions/getlogin.texi: Mention the new module.
24685         Reported by John W. Eaton <jwe@gnu.org>.
24686
24687 2010-01-09  Bruno Haible  <bruno@clisp.org>
24688
24689         getlogin_r: Support for native Windows.
24690         * lib/getlogin_r.c: Include <windows.h>
24691         (getlogin_r): Implement for native Windows.
24692         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24693         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24694         via John W. Eaton <jwe@gnu.org>.
24695
24696 2010-01-09  Bruno Haible  <bruno@clisp.org>
24697
24698         getlogin_r: Small fixes.
24699         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24700         succeeds.
24701         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24702         before testing whether getlogin_r is declared. No need to set
24703         HAVE_DECL_GETLOGIN_R to 1.
24704         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24705
24706 2010-01-09  Bruno Haible  <bruno@clisp.org>
24707
24708         * lib/unistd.in.h (getlogin_r): Add comment.
24709
24710 2010-01-09  Bruno Haible  <bruno@clisp.org>
24711
24712         Tests for module 'getlogin_r'.
24713         * modules/getlogin_r-tests: New file.
24714         * tests/test-getlogin_r.c: New file.
24715
24716 2010-01-09  Jim Meyering  <meyering@redhat.com>
24717
24718         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24719         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24720         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24721
24722 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24723
24724         * lib/dup2.c (rpl_dup2): Improve comment.
24725
24726 2010-01-08  Eric Blake  <ebb9@byu.net>
24727
24728         maint.mk: allow packages to add makefile @@ exceptions
24729         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24730         (sc_makefile_check): Rename...
24731         (sc_makefile_at_at_check): ...to this, and use hook.
24732
24733         dup2: work around mingw bug
24734         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24735         Reported by Simon Josefsson.
24736
24737 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24738
24739         glob: Fix C++ compilation.
24740         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24741         C++.
24742
24743 2010-01-07  Bruno Haible  <bruno@clisp.org>
24744
24745         Fix indentation of wctype.in.h, broken since 2007-01-06.
24746         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24747
24748 2010-01-07  Bruno Haible  <bruno@clisp.org>
24749
24750         mbslen: Avoid collision with system function.
24751         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24752         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24753         * m4/mbslen.m4: New file.
24754         * modules/mbslen (Files): Add it.
24755         (configure.ac): Invoke gl_MBSLEN.
24756         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24757         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24758         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24759         via Ian Beckwith <ianb@erislabs.net>.
24760
24761 2010-01-07  Bruno Haible  <bruno@clisp.org>
24762
24763         dirent: Document the last fix.
24764         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24765
24766 2010-01-07  Bruno Haible  <bruno@clisp.org>
24767
24768         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24769         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24770         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24771         va_list are defined.
24772         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24773         Reported by Eric Blake.
24774
24775 2010-01-07  Bruno Haible  <bruno@clisp.org>
24776
24777         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24778         * modules/xlist (Depends-on): Add 'list',
24779         * modules/xoset (Depends-on): Add 'oset'.
24780         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24781
24782 2010-01-07  Bruno Haible  <bruno@clisp.org>
24783
24784         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24785         * doc/posix-functions/strncasecmp.texi: Likewise.
24786
24787 2010-01-07  Bruno Haible  <bruno@clisp.org>
24788
24789         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24790
24791 2010-01-07  John W. Eaton  <jwe@octave.org>
24792
24793         wctype: allow C++ use
24794         * lib/wctype.in.h: Add extern "C" block for C++.
24795
24796 2010-01-06  Eric Blake  <ebb9@byu.net>
24797
24798         maint.mk: detect incorrect GFDL usage
24799         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24800
24801 2010-01-06  Jim Meyering  <meyering@redhat.com>
24802         and Eric Blake  <ebb9@byu.net>
24803
24804         maint.mk: ignore multi-line copyright in NEWS
24805         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24806
24807 2010-01-06  Eric Blake  <ebb9@byu.net>
24808
24809         select: add missing dependency
24810         * modules/select-tests (Depends-on): Move sockets dependency...
24811         * modules/select (Depends-on): ...here.
24812         Reported by Ian Beckwith.
24813
24814         doc: regenerate INSTALL
24815         * doc/INSTALL: Reflect recent autoconf update.
24816         * doc/INSTALL.ISO: Likewise.
24817         * doc/INSTALL.UTF-8: Likewise.
24818
24819         pread: fix compilation on glibc
24820         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24821         Reported by Ralf Wildenhues.
24822
24823         dirent: fix test failure
24824         * lib/dirent.in.h (includes): Guarantee ino_t.
24825         Reported by Ralf Wildenhues.
24826
24827 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24828
24829         linkat, renameat: avoid bad free
24830         * lib/at-func2.c (at_func2): Fix typo.
24831         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24832
24833 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24834
24835         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24836         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24837         to avoid failure of symlink test later.
24838
24839 2010-01-06  Eric Blake  <ebb9@byu.net>
24840
24841         stdio, unistd: guarantee ssize_t
24842         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24843         2008 are exposed when needed.
24844         * lib/stdio.in.h (includes): Likewise.
24845         Reported by Ralf Wildenhues.
24846
24847 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24848
24849         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24850         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24851         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24852
24853 2010-01-06  Jim Meyering  <meyering@redhat.com>
24854
24855         readtokens: this module *does* require xalloc.h
24856         It uses only functions that were omitted by the old syntax-check rule.
24857         * lib/readtokens.c: Include "xalloc.h" once again.
24858         * modules/readtokens (Depends-on): Add xalloc.
24859         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24860
24861 2010-01-05  Eric Blake  <ebb9@byu.net>
24862
24863         maint: support 'make announcement' from a VPATH build
24864         * top/maint.mk (announcement): Look for correct NEWS file.
24865
24866 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24867
24868         utimens (fdutimens): ignore a negative FD, per contract
24869         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24870         when we have a valid file descriptor.  Otherwise, using a brand
24871         new glibc (with just-patched futimens that now fails with EBADF)
24872         would cause this function to fail with ENOSYS.
24873         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24874         See also http://bugzilla.redhat.com/552320.
24875
24876 2010-01-05  Eric Blake  <ebb9@byu.net>
24877
24878         strcase: document what it provides
24879         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24880         gnulib module.
24881         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24882         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24883
24884 2010-01-05  Jim Meyering  <meyering@redhat.com>
24885
24886         maint: remove useless inclusions of "xalloc.h"
24887         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24888         * lib/readtokens.c: Likewise.
24889         * lib/same.c: Likewise.
24890         * modules/getloadavg (Depends-on): Remove xalloc.
24891         * modules/readtokens: Likewise.
24892         * modules/same: Likewise.
24893
24894         maint.mk: include 4 more function names in alloca.h-checking regexp
24895         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24896         regexp.  Before, we would give a false-positive (saying alloca.h
24897         is included unnecessarily) when the only uses involved omitted symbols.
24898
24899         xalloc.h: use consistent formatting
24900         * lib/xalloc.h: Move declarations to start in the first column.
24901
24902 2010-01-05  Eric Blake  <ebb9@byu.net>
24903
24904         mkdir: avoid xalloc
24905         * lib/mkdir.c (includes): Drop unused header.
24906         Reported by John W. Eaton.
24907
24908 2010-01-04  Jim Meyering  <meyering@redhat.com>
24909
24910         nl_langinfo: avoid configure-time syntax error
24911         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24912         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24913         the empty string.  Don't let that provoke a shell syntax error.
24914
24915         regcomp, regexec, fnmatch: avoid array bounds read error
24916         * lib/regcomp.c (build_equiv_class): From glibc:
24917         Use only the low 24 bits of a findidx return value as an index
24918         into the weights array.  Patch by Ulrich Drepper:
24919         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24920         * lib/regexec.c (check_node_accept_bytes): Likewise.
24921         * lib/fnmatch_loop.c (FCT): Likewise.
24922
24923         regcomp: skip collseq lookup when there are no rules
24924         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24925         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24926
24927         regcomp: recognize ill-formed { } expressions
24928         * lib/regcomp.c (parse_dup_op): From glibc:
24929         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24930
24931         regcomp: fix typo in comment
24932         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24933         s/satisfy/satisfies/.
24934
24935         regcomp: sync from glibc: remove dead store
24936         * lib/regcomp.c (duplicate_node_closure): Remove useless
24937         search_duplicated_node call and dead store.
24938
24939         regcomp: sync from glibc; always use nl_langinfo
24940         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24941         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24942         * modules/regex (Depends-on): Add nl_langinfo.
24943
24944 2010-01-04  Eric Blake  <ebb9@byu.net>
24945
24946         fdopendir: fix configure test
24947         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
24948
24949 2010-01-01  Bruno Haible  <bruno@clisp.org>
24950
24951         wchar: Remove unused configure check.
24952         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
24953
24954 2010-01-01  Eric Blake  <ebb9@byu.net>
24955
24956         headers: make check of system header explicit
24957         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
24958         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
24959         ourselves.
24960         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24961         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24962         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24963         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
24964         internals.
24965         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
24966         missing.
24967         Suggested by Bruno Haible.
24968
24969 2010-01-01  Jim Meyering  <meyering@redhat.com>
24970
24971         ChangeLog: tweak to eliminate unnecessary copyright line
24972         * ChangeLog: Remove a copyright line that was mistakenly updated
24973         by today's update-copyright run.  Reported by Eric Blake.
24974
24975         test-update-copyright: don't let envvar setting cause test failure
24976         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
24977
24978 2010-01-01  Bruno Haible  <bruno@clisp.org>
24979
24980         localename: Avoid gcc warning.
24981         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
24982         function if it is not used.
24983
24984 2010-01-01  Jim Meyering  <meyering@redhat.com>
24985
24986         update nearly all FSF copyright year lists to include 2010
24987         Use the same procedure as for 2009, outlined in
24988         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
24989
24990         version-etc: set COPYRIGHT_YEAR to 2010
24991         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
24992
24993 2009-12-31  Eric Blake  <ebb9@byu.net>
24994
24995         doc: correct availability of cygwin 1.5.x getopt
24996         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
24997         variables.
24998         * doc/posix-functions/opterr.texi (opterr): Likewise.
24999         * doc/posix-functions/optind.texi (optind): Likewise.
25000         * doc/posix-functions/optopt.texi (optopt): Likewise.
25001         * doc/posix-functions/tzname.texi (tzname): Likewise.
25002
25003         openat: update maintainer
25004         * modules/openat (Maintainer): Add myself.
25005
25006         utimens: avoid shadowing warning
25007         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25008         buffers into one, to avoid shadowing, as well as avoiding a
25009         redundant stat.
25010         Reported by Jim Meyering.
25011
25012         test-dup2: avoid compiler warning
25013         * tests/test-dup2.c (is_inheritable): Only define if used.
25014
25015 2010-01-01  Bruno Haible  <bruno@clisp.org>
25016
25017         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25018         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25019         defined, use wctomb instead of wcrtomb.
25020
25021 2010-01-01  Bruno Haible  <bruno@clisp.org>
25022
25023         iconv: Reject native Solaris iconv.
25024         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25025         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25026
25027 2009-12-31  Bruno Haible  <bruno@clisp.org>
25028
25029         * tests/test-signal.c (main): Remove test of 'SIG'.
25030
25031 2009-12-31  Bruno Haible  <bruno@clisp.org>
25032
25033         spawn: Fix incomplete fix.
25034         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25035         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25036         warnings for GNULIB_POSIXCHECK again.
25037         Reported by Eric Blake.
25038
25039 2009-12-31  Bruno Haible  <bruno@clisp.org>
25040
25041         Avoid namespace pollution on glibc systems.
25042         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25043         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25044         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25045         glibc systems.
25046
25047 2009-12-31  Bruno Haible  <bruno@clisp.org>
25048
25049         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25050         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25051         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25052         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25053         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25054         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25055         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25056
25057 2009-12-31  Bruno Haible  <bruno@clisp.org>
25058
25059         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25060         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25061         afterwards.
25062
25063 2009-12-31  Bruno Haible  <bruno@clisp.org>
25064
25065         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25066         SYS_UTSNAME_H.
25067
25068 2009-12-31  Bruno Haible  <bruno@clisp.org>
25069
25070         spawn: Fix misapplied patch.
25071         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25072         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25073         warnings for GNULIB_POSIXCHECK.
25074
25075 2009-12-31  Bruno Haible  <bruno@clisp.org>
25076
25077         times: Update after sys_times changed.
25078         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25079         * modules/times (Files): Add it.
25080         (configure.ac): Invoke gl_FUNC_TIMES.
25081
25082 2009-12-31  Bruno Haible  <bruno@clisp.org>
25083
25084         Use AC_C_INLINE where necessary.
25085         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25086         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25087         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25088         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25089         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25090         * m4/mbiter.m4 (gl_MBITER): Likewise.
25091         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25092         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25093         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25094         * modules/u64 (configure.ac): Likewise.
25095
25096 2009-12-31  Bruno Haible  <bruno@clisp.org>
25097
25098         Use AC_C_INLINE instead of module 'inline' where possible.
25099         * modules/inline (Description): Clarify purpose.
25100         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25101         * modules/count-one-bits (Depends-on): Remove inline.
25102         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25103         * modules/openat (Depends-on): Remove inline.
25104         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25105         instead of depending on module 'inline'.
25106         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25107         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25108         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25109         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25110         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25111         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25112         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25113         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25114         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25115         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25116         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25117         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25118         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25119         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25120         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25121         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25122         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25123         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25124         Likewise.
25125         * modules/unictype/property-ascii-hex-digit (Depends-on,
25126         configure.ac): Likewise.
25127         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25128         configure.ac): Likewise.
25129         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25130         configure.ac): Likewise.
25131         * modules/unictype/property-bidi-block-separator (Depends-on,
25132         configure.ac): Likewise.
25133         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25134         configure.ac): Likewise.
25135         * modules/unictype/property-bidi-common-separator (Depends-on,
25136         configure.ac): Likewise.
25137         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25138         Likewise.
25139         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25140         configure.ac): Likewise.
25141         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25142         configure.ac): Likewise.
25143         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25144         configure.ac): Likewise.
25145         * modules/unictype/property-bidi-european-digit (Depends-on,
25146         configure.ac): Likewise.
25147         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25148         configure.ac): Likewise.
25149         * modules/unictype/property-bidi-left-to-right (Depends-on,
25150         configure.ac): Likewise.
25151         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25152         configure.ac): Likewise.
25153         * modules/unictype/property-bidi-other-neutral (Depends-on,
25154         configure.ac): Likewise.
25155         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25156         Likewise.
25157         * modules/unictype/property-bidi-segment-separator (Depends-on,
25158         configure.ac): Likewise.
25159         * modules/unictype/property-bidi-whitespace (Depends-on,
25160         configure.ac): Likewise.
25161         * modules/unictype/property-combining (Depends-on, configure.ac):
25162         Likewise.
25163         * modules/unictype/property-composite (Depends-on, configure.ac):
25164         Likewise.
25165         * modules/unictype/property-currency-symbol (Depends-on,
25166         configure.ac): Likewise.
25167         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25168         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25169         Likewise.
25170         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25171         configure.ac): Likewise.
25172         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25173         Likewise.
25174         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25175         Likewise.
25176         * modules/unictype/property-extender (Depends-on, configure.ac):
25177         Likewise.
25178         * modules/unictype/property-format-control (Depends-on, configure.ac):
25179         Likewise.
25180         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25181         Likewise.
25182         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25183         Likewise.
25184         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25185         Likewise.
25186         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25187         Likewise.
25188         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25189         Likewise.
25190         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25191         Likewise.
25192         * modules/unictype/property-id-start (Depends-on, configure.ac):
25193         Likewise.
25194         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25195         Likewise.
25196         * modules/unictype/property-ids-binary-operator (Depends-on,
25197         configure.ac): Likewise.
25198         * modules/unictype/property-ids-trinary-operator (Depends-on,
25199         configure.ac): Likewise.
25200         * modules/unictype/property-ignorable-control (Depends-on,
25201         configure.ac): Likewise.
25202         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25203         Likewise.
25204         * modules/unictype/property-join-control (Depends-on, configure.ac):
25205         Likewise.
25206         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25207         Likewise.
25208         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25209         Likewise.
25210         * modules/unictype/property-logical-order-exception (Depends-on,
25211         configure.ac): Likewise.
25212         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25213         Likewise.
25214         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25215         * modules/unictype/property-non-break (Depends-on, configure.ac):
25216         Likewise.
25217         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25218         Likewise.
25219         * modules/unictype/property-numeric (Depends-on, configure.ac):
25220         Likewise.
25221         * modules/unictype/property-other-alphabetic (Depends-on,
25222         configure.ac): Likewise.
25223         * modules/unictype/property-other-default-ignorable-code-point
25224         (Depends-on, configure.ac): Likewise.
25225         * modules/unictype/property-other-grapheme-extend (Depends-on,
25226         configure.ac): Likewise.
25227         * modules/unictype/property-other-id-continue (Depends-on,
25228         configure.ac): Likewise.
25229         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25230         Likewise.
25231         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25232         Likewise.
25233         * modules/unictype/property-other-math (Depends-on, configure.ac):
25234         Likewise.
25235         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25236         Likewise.
25237         * modules/unictype/property-paired-punctuation (Depends-on,
25238         configure.ac): Likewise.
25239         * modules/unictype/property-paragraph-separator (Depends-on,
25240         configure.ac): Likewise.
25241         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25242         Likewise.
25243         * modules/unictype/property-pattern-white-space (Depends-on,
25244         configure.ac): Likewise.
25245         * modules/unictype/property-private-use (Depends-on, configure.ac):
25246         Likewise.
25247         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25248         Likewise.
25249         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25250         Likewise.
25251         * modules/unictype/property-radical (Depends-on, configure.ac):
25252         Likewise.
25253         * modules/unictype/property-sentence-terminal (Depends-on,
25254         configure.ac): Likewise.
25255         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25256         Likewise.
25257         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25258         * modules/unictype/property-terminal-punctuation (Depends-on,
25259         configure.ac): Likewise.
25260         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25261         Likewise.
25262         * modules/unictype/property-unassigned-code-value (Depends-on,
25263         configure.ac): Likewise.
25264         * modules/unictype/property-unified-ideograph (Depends-on,
25265         configure.ac): Likewise.
25266         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25267         Likewise.
25268         * modules/unictype/property-variation-selector (Depends-on,
25269         configure.ac): Likewise.
25270         * modules/unictype/property-white-space (Depends-on, configure.ac):
25271         Likewise.
25272         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25273         Likewise.
25274         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25275         Likewise.
25276         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25277         Likewise.
25278         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25279         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25280         Likewise.
25281
25282 2009-12-31  Bruno Haible  <bruno@clisp.org>
25283
25284         Remove unnecessary AC_C_INLINE invocation.
25285         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25286         since 2009-08-21.
25287
25288 2009-12-31  Jim Meyering  <meyering@redhat.com>
25289
25290         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25291         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25292         With this change, we can all remove the gpg_key_ID = ... definition
25293         from our respective cfg.mk files.
25294
25295         maint.mk: create announcement template in ~/, not in /tmp
25296         * top/maint.mk (emit_upload_commands): Adjust.
25297         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25298         Remove temporary file, .ci-msg.
25299
25300 2009-12-31  Eric Blake  <ebb9@byu.net>
25301
25302         link-warning: always build headers with link warnings
25303         * modules/arpa_inet (Makefile.am): Always build replacement
25304         header.
25305         * modules/ctype (Makefile.am): Likewise.
25306         * modules/dirent (Makefile.am): Likewise.
25307         * modules/inttypes (Makefile.am): Likewise.
25308         * modules/langinfo (Makefile.am): Likewise.
25309         * modules/locale (Makefile.am): Likewise.
25310         * modules/spawn (Makefile.am): Likewise.
25311         * modules/sys_file (Makefile.am): Likewise.
25312         * modules/sys_ioctl (Makefile.am): Likewise.
25313         * modules/sys_select (Makefile.am): Likewise.
25314         * modules/sys_socket (Makefile.am): Likewise.
25315         * modules/sys_times (Makefile.am): Likewise.
25316         * modules/sys_utsname (Makefile.am): Likewise.
25317         * modules/sys_wait (Makefile.am): Likewise.
25318         * modules/wchar (Makefile.am): Likewise.
25319         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25320         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25321         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25322         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25323         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25324         Likewise.
25325         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25326         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25327         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25328         Likewise.
25329         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25330         Likewise.
25331         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25332         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25333         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25334         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25335         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25336         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25337         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25338         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25339         (gl_WCHAR_H_DEFAULTS): Likewise.
25340
25341 2009-12-31  Eric Blake  <ebb9@byu.net>
25342
25343         signal, spawn: use link warnings
25344         * lib/signal.in.h (sigset_t): Make unconditional.
25345         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25346         (sigpending, sigprocmask, sigaction): Add link warnings.
25347         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25348         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25349         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25350         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25351         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25352         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25353         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25354         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25355         (posix_spawn_file_actions_destroy)
25356         (posix_spawn_file_actions_addopen)
25357         (posix_spawn_file_actions_addclose)
25358         (posix_spawn_file_actions_adddup2): Likewise.
25359         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25360         * tests/test-signal.c (main): Enhance test.
25361
25362         spawn: improve wrapper support
25363         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25364         (gl_SPAWN_H_DEFAULTS): New defaults.
25365         * modules/spawn (Makefile.am): Substitute them.
25366         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25367         Only declare if missing or broken.
25368
25369         sys_times, sys_utsname: use include_next
25370         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25371         header.
25372         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25374         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25375         * modules/sys_times (Depends-on): Add include_next.
25376         (Makefile.am): Substitute additional values.
25377         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25378         * lib/sys_times.in.h (includes): Include native header, if
25379         available.
25380         * lib/sys_utsname.in.h (includes): Likewise.
25381         * tests/test-sys_times.c (main): Enhance test.
25382
25383         fdutimensat: revert prior patch
25384         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25385         utimens.h.
25386         Reported by Bruno Haible.
25387
25388 2009-12-30  Eric Blake  <ebb9@byu.net>
25389
25390         sys_wait: drop link-warning dependency
25391         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25392         link-warning efforts.
25393         * lib/sys_wait.in.h: Likewise.
25394
25395         fdutimensat: remove bogus dependency
25396         * modules/fdutimensat (Depends-on): Drop inline.
25397
25398         unistd: fix typo
25399         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25400
25401 2009-12-30  Bruno Haible  <bruno@clisp.org>
25402
25403         Fix compilation error with Solaris cc.
25404         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25405         * lib/unicase/u16-is-invariant.c: Likewise.
25406         * lib/unicase/u32-is-invariant.c: Likewise.
25407         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25408
25409 2009-12-30  Bruno Haible  <bruno@clisp.org>
25410
25411         Fix test crash.
25412         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25413         locales.
25414         Reported by Simon Josefsson <simon@josefsson.org>.
25415
25416 2009-12-30  Bruno Haible  <bruno@clisp.org>
25417
25418         Fix compilation error on most platforms.
25419         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25420         Reported by Simon Josefsson <simon@josefsson.org>
25421         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25422
25423 2009-12-30  Eric Blake  <ebb9@byu.net>
25424
25425         futimens, utimensat: work around ntfs-3g bug
25426         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25427         a ctime bug is present, and expand workaround to cover ntfs-3g.
25428         * lib/utimens.c (fdutimens, lutimens): Likewise.
25429         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25430         (validate_timespec): Adjust return value.
25431         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25432         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25433         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25434
25435 2009-12-29  Eric Blake  <ebb9@byu.net>
25436
25437         link-warning: make usage consistent
25438         * modules/ctype (Depends-on): Add link-warning.
25439         (Makefile.am): Update rules accordingly.
25440         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25441         * modules/locale (Depends-on, Makefile.am): Likewise.
25442         * modules/sys_file (Makefile.am): Likewise.
25443         * modules/getopt-posix (Makefile.am): Delete unused link warning
25444         efforts.
25445         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25446         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25447         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25448         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25449
25450         stdio: remove unused variables
25451         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25452         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25453         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25454
25455         tests: test more substitute headers
25456         * modules/ctype-tests: New file.
25457         * modules/dirent-tests: Likewise.
25458         * modules/spawn-tests: Likewise.
25459         * modules/sys_file-tests: Likewise.
25460         * modules/sys_ioctl-tests: Likewise.
25461         * modules/sys_wait-tests: Likewise.
25462         * tests/test-ctype.c: Likewise.
25463         * tests/test-dirent.c: Likewise.
25464         * tests/test-spawn.c: Likewise.
25465         * tests/test-sys_file.c: Likewise.
25466         * tests/test-sys_ioctl.c: Likewise.
25467         * tests/test-sys_wait.c: Likewise.
25468         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25469         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25470         whether or not flock is in use.
25471
25472         tests: remove License section from module
25473         * modules/arpa_inet-tests: Remove unneeded section.
25474         * modules/byteswap-tests: Likewise.
25475         * modules/ceilf-tests: Likewise.
25476         * modules/ceill-tests: Likewise.
25477         * modules/crypto/des-tests: Likewise.
25478         * modules/crypto/gc-arcfour-tests: Likewise.
25479         * modules/crypto/gc-arctwo-tests: Likewise.
25480         * modules/crypto/gc-des-tests: Likewise.
25481         * modules/crypto/gc-hmac-md5-tests: Likewise.
25482         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25483         * modules/crypto/gc-md2-tests: Likewise.
25484         * modules/crypto/gc-md4-tests: Likewise.
25485         * modules/crypto/gc-md5-tests: Likewise.
25486         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25487         * modules/crypto/gc-rijndael-tests: Likewise.
25488         * modules/crypto/gc-sha1-tests: Likewise.
25489         * modules/crypto/gc-tests: Likewise.
25490         * modules/crypto/md2-tests: Likewise.
25491         * modules/crypto/md4-tests: Likewise.
25492         * modules/fcntl-h-tests: Likewise.
25493         * modules/floorf-tests: Likewise.
25494         * modules/floorl-tests: Likewise.
25495         * modules/frexp-nolibm-tests: Likewise.
25496         * modules/frexp-tests: Likewise.
25497         * modules/frexpl-nolibm-tests: Likewise.
25498         * modules/frexpl-tests: Likewise.
25499         * modules/getaddrinfo-tests: Likewise.
25500         * modules/inttypes-tests: Likewise.
25501         * modules/isfinite-tests: Likewise.
25502         * modules/isinf-tests: Likewise.
25503         * modules/ldexpl-tests: Likewise.
25504         * modules/locale-tests: Likewise.
25505         * modules/math-tests: Likewise.
25506         * modules/netdb-tests: Likewise.
25507         * modules/netinet_in-tests: Likewise.
25508         * modules/printf-frexp-tests: Likewise.
25509         * modules/printf-frexpl-tests: Likewise.
25510         * modules/priv-set-tests: Likewise.
25511         * modules/random_r-tests: Likewise.
25512         * modules/round-tests: Likewise.
25513         * modules/roundf-tests: Likewise.
25514         * modules/roundl-tests: Likewise.
25515         * modules/search-tests: Likewise.
25516         * modules/select-tests: Likewise.
25517         * modules/signal-tests: Likewise.
25518         * modules/stdbool-tests: Likewise.
25519         * modules/stddef-tests: Likewise.
25520         * modules/stdint-tests: Likewise.
25521         * modules/stdio-tests: Likewise.
25522         * modules/stdlib-tests: Likewise.
25523         * modules/string-tests: Likewise.
25524         * modules/strings-tests: Likewise.
25525         * modules/sys_select-tests: Likewise.
25526         * modules/sys_socket-tests: Likewise.
25527         * modules/sys_stat-tests: Likewise.
25528         * modules/sys_time-tests: Likewise.
25529         * modules/sys_utsname-tests: Likewise.
25530         * modules/sysexits-tests: Likewise.
25531         * modules/time-tests: Likewise.
25532         * modules/trunc-tests: Likewise.
25533         * modules/truncf-tests: Likewise.
25534         * modules/truncl-tests: Likewise.
25535         * modules/tsearch-tests: Likewise.
25536         * modules/unistd-tests: Likewise.
25537         * modules/wchar-tests: Likewise.
25538         * modules/wctype-tests: Likewise.
25539
25540         tests: fix license on several tests
25541         * tests/test-des.c: Update to GPLv3+.
25542         * tests/test-flock.c: Likewise.
25543         * tests/test-fsync.c: Likewise.
25544         * tests/test-futimens.h: Likewise.
25545         * tests/test-gc-arcfour.c: Likewise.
25546         * tests/test-gc-arctwo.c: Likewise.
25547         * tests/test-gc-des.c: Likewise.
25548         * tests/test-gc-hmac-md5.c: Likewise.
25549         * tests/test-gc-hmac-sha1.c: Likewise.
25550         * tests/test-gc-md2.c: Likewise.
25551         * tests/test-gc-md4.c: Likewise.
25552         * tests/test-gc-md5.c: Likewise.
25553         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25554         * tests/test-gc-rijndael.c: Likewise.
25555         * tests/test-gc-sha1.c: Likewise.
25556         * tests/test-gc.c: Likewise.
25557         * tests/test-getcwd.c: Likewise.
25558         * tests/test-link.c: Likewise.
25559         * tests/test-link.h: Likewise.
25560         * tests/test-lutimens.h: Likewise.
25561         * tests/test-md2.c: Likewise.
25562         * tests/test-md4.c: Likewise.
25563         * tests/test-mkdir.h: Likewise.
25564         * tests/test-rename.c: Likewise.
25565         * tests/test-rename.h: Likewise.
25566         * tests/test-safe-alloc.c: Likewise.
25567         * tests/test-utimens-common.h: Likewise.
25568         * tests/test-utimens.h: Likewise.
25569
25570         maint: sync license texts
25571         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25572         * doc/gpl-3.0.texi: Revert copyright year update.
25573         * doc/lgpl-3.0.texi: Likewise.
25574
25575 2009-12-29  Jim Meyering  <meyering@redhat.com>
25576
25577         update nearly all FSF copyright year lists to include 2009
25578         The files named by the following are exempted:
25579             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25580               test -f "$dst" && { echo "$dst"; continue; }
25581               test -d "$dst" || continue
25582               echo "$dst"/$(basename "$src")
25583             done > exempt
25584             git ls-files tests/unictype >> exempt
25585         In the remaining files, convert to all-interval notation if
25586         - there is already at least one year interval like 2000-2003
25587         - the file is maintained by me
25588         - the file is in lib/uni*/, where that style already prevails
25589         Otherwise, use update-copyright's default.
25590
25591 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25592         and Eric Blake  <ebb9@byu.net>
25593
25594         tests: don't require debug system() to pass
25595         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25596         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25597         * tests/test-unlink.h (test_unlink_func): Likewise.
25598         * tests/test-fstatat.c (main): ...into callers.
25599         * tests/test-lstat.c (main): Likewise.
25600         * tests/test-rmdir.c (main): Likewise.
25601         * tests/test-unlink.c (main): Likewise.
25602         * tests/test-unlinkat.c (main): Likewise.
25603         * tests/test-areadlink-with-size.c (main): Don't require a
25604         debug-only system call to pass, aiding cross-testing to mingw.
25605         * tests/test-areadlink.c (main): Likewise.
25606         * tests/test-areadlinkat-with-size.c (main): Likewise.
25607         * tests/test-areadlinkat.c (main): Likewise.
25608         * tests/test-canonicalize-lgpl.c (main): Likewise.
25609         * tests/test-canonicalize.c (main): Likewise.
25610         * tests/test-chown.c (main): Likewise.
25611         * tests/test-fchownat.c (main): Likewise.
25612         * tests/test-lchown.c (main): Likewise.
25613         * tests/test-fdutimensat.c (main): Likewise.
25614         * tests/test-futimens.c (main): Likewise.
25615         * tests/test-link.c (main): Likewise.
25616         * tests/test-linkat.c (main): Likewise.
25617         * tests/test-mkdir.c (main): Likewise.
25618         * tests/test-mkdirat.c (main): Likewise.
25619         * tests/test-mkfifo.c (main): Likewise.
25620         * tests/test-mkfifoat.c (main): Likewise.
25621         * tests/test-mknod.c (main): Likewise.
25622         * tests/test-readlink.c (main): Likewise.
25623         * tests/test-remove.c (main): Likewise.
25624         * tests/test-rename.c (main): Likewise.
25625         * tests/test-renameat.c (main): Likewise.
25626         * tests/test-symlink.c (main): Likewise.
25627         * tests/test-symlinkat.c (main): Likewise.
25628         * tests/test-utimens.c (main): Likewise.
25629         * tests/test-utimensat.c (main): Likewise.
25630
25631 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25632
25633         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25634         on $(UNUSED_PARAMETER_H) to avoid build failure.
25635
25636 2009-12-28  Jim Meyering  <meyering@redhat.com>
25637
25638         update-copyright: you may specify a max. line length other than 72
25639         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25640
25641         maint: use consistent FSF copyright line syntax
25642         * lib/posixtm.c: Add missing comma in FSF copyright line.
25643         * lib/posixtm.h: Likewise.
25644         * lib/getugroups.c: Add missing ", Inc.".
25645
25646         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25647         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25648         FSF copyright line.  Remove trailing blanks.
25649
25650 2009-12-28  Eric Blake  <ebb9@byu.net>
25651
25652         test-dup2: reduce dependencies
25653         * modules/cloexec (Configure.ac): Set witness.
25654         * modules/dup2-tests (Depends-on): Drop cloexec.
25655         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25656         not present.
25657         Suggested by Bruno Haible.
25658
25659 2009-12-26  Bruno Haible  <bruno@clisp.org>
25660
25661         Remove an unneeded dependency.
25662         * modules/fseterr (Depends-on): Remove dup2.
25663
25664 2009-12-26  Eric Blake  <ebb9@byu.net>
25665
25666         tests: use macros.h in more places
25667         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25668         (ASSERT_STREAM): Provide default of stderr.
25669         * tests/test-dirent-safer.c: Include macros.h, using alternate
25670         stream for assertions.
25671         * tests/test-dup-safer.c: Likewise.
25672         * tests/test-freopen-safer.c: Likewise.
25673         * tests/test-getopt.c: Likewise.
25674         * tests/test-openat-safer.c: Likewise.
25675         * tests/test-pipe.c: Likewise.
25676         * tests/test-popen-safer.c: Likewise.
25677         * modules/dirent-safer-tests (Files): Include macros.h.
25678         * modules/unistd-safer-tests (Files): Likewise.
25679         * modules/freopen-safer-tests (Files): Likewise.
25680         * modules/getopt-posix-tests (Files): Likewise.
25681         * modules/openat-safer-tests (Files): Likewise.
25682         * modules/pipe-tests (Files): Likewise.
25683
25684 2009-12-26  Bruno Haible  <bruno@clisp.org>
25685
25686         javacomp: Portability fix.
25687         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25688         that it also works on Solaris.
25689
25690 2009-12-26  Bruno Haible  <bruno@clisp.org>
25691
25692         localename: Fix storage allocation of gl_locale_name_thread's result.
25693         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25694         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25695         all platforms that have 'uselocale'.
25696         (gl_locale_name_thread_unsafe): New function, extracted from
25697         gl_locale_name_thread.
25698         (gl_locale_name_thread): Call struniq on all platforms that have
25699         'uselocale'.
25700         * tests/test-localename.c (test_locale_name_thread): Check that the
25701         resulting strings are permanently allocated.
25702         * modules/localename-tests (Depends-on): Add strdup.
25703
25704 2009-12-26  Bruno Haible  <bruno@clisp.org>
25705
25706         * tests/test-localename.c (categories): Fill in the strings.
25707
25708 2009-12-26  Jim Meyering  <meyering@redhat.com>
25709
25710         isdir: complete the removal of m4/isdir.m4
25711         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25712
25713         isdir: clean up, since at least grep still uses it
25714         * lib/isdir.c: Include "isdir.h".
25715         (S_ISDIR): Remove now-unneeded definition.
25716         * modules/isdir (Files): Add lib/isdir.h.
25717         * lib/isdir.h: New file, with declaration.
25718         * m4/isdir.m4: Remove file -- unneeded.
25719
25720 2009-12-25  Bruno Haible  <bruno@clisp.org>
25721
25722         selinux-h: Make generated .h files standalone.
25723         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25724         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25725         * lib/se-selinux.in.h: Likewise.
25726         * modules/selinux-h (Depends-on): Add unused-parameter.
25727         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25728         selinux/selinux.h and selinux/context.h.
25729         Suggested by Eric Blake.
25730
25731 2009-12-25  Bruno Haible  <bruno@clisp.org>
25732
25733         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25734         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25735         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25736         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25737         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25738
25739 2009-12-24  Bruno Haible  <bruno@clisp.org>
25740
25741         openat: Fix warning.
25742         * lib/openat-proc.c: Include <unistd.h>.
25743
25744 2009-12-24  Bruno Haible  <bruno@clisp.org>
25745
25746         New module 'unused-parameter'.
25747         * build-aux/unused-parameter.h: New file, extracted from earlier
25748         gnulib-common.m4.
25749         * modules/unused-parameter: New file.
25750         * lib/unistr.h: Include unused-parameter.h.
25751         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25752         _GL_UNUSED.
25753         * modules/unistr/base (Depends-on): Add unused-parameter.
25754
25755 2009-12-24  Bruno Haible  <bruno@clisp.org>
25756
25757         Add missing dependencies to 'extensions' module.
25758         * m4/extensions.m4: Add comment.
25759         * modules/accept4 (Depends-on): Add extensions.
25760         * modules/dup3 (Depends-on): Likewise.
25761         * modules/fcntl (Depends-on): Likewise.
25762         * modules/futimens (Depends-on): Likewise.
25763         * modules/mknod (Depends-on): Likewise.
25764         * modules/pipe2 (Depends-on): Likewise.
25765         * modules/stat-time (Depends-on): Likewise.
25766         * modules/strcasestr-simple (Depends-on): Likewise.
25767         * modules/strsignal (Depends-on): Likewise.
25768         * modules/utimensat (Depends-on): Likewise.
25769         * modules/localcharset (Depends-on): Likewise. Needed because of
25770         gl_FCNTL_O_FLAGS.
25771         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25772         AC_TYPE_MBSTATE_T.
25773         * modules/wcsnrtombs (Depends-on): Likewise.
25774         * modules/wcsrtombs (Depends-on): Likewise.
25775
25776 2009-12-24  Bruno Haible  <bruno@clisp.org>
25777
25778         binary-io: Avoid gcc warning due to SET_BINARY.
25779         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25780         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25781
25782 2009-12-24  Bruno Haible  <bruno@clisp.org>
25783
25784         Avoid future namespace pollution on glibc systems.
25785         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25786         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25787         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25788         glibc systems.
25789
25790 2009-12-24  Bruno Haible  <bruno@clisp.org>
25791
25792         Refactor common macros used in tests.
25793         * tests/macros.h: New file.
25794         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25795         and/or <stdlib.h>, if appropriate.
25796         (ASSERT, SIZEOF): Remove macros.
25797         * tests/test-areadlink-with-size.c: Likewise.
25798         * tests/test-areadlinkat.c: Likewise.
25799         * tests/test-areadlinkat-with-size.c: Likewise.
25800         * tests/test-argmatch.c: Likewise.
25801         * tests/test-argv-iter.c: Likewise.
25802         * tests/test-array-mergesort.c: Likewise.
25803         * tests/test-array_list.c: Likewise.
25804         * tests/test-array_oset.c: Likewise.
25805         * tests/test-avltree_list.c: Likewise.
25806         * tests/test-avltree_oset.c: Likewise.
25807         * tests/test-avltreehash_list.c: Likewise.
25808         * tests/test-base64.c: Likewise.
25809         * tests/test-binary-io.c: Likewise.
25810         * tests/test-bitrotate.c: Likewise.
25811         * tests/test-btowc.c: Likewise.
25812         * tests/test-byteswap.c: Likewise.
25813         * tests/test-c-ctype.c: Likewise.
25814         * tests/test-c-stack.c: Likewise.
25815         * tests/test-c-strcasecmp.c: Likewise.
25816         * tests/test-c-strcasestr.c: Likewise.
25817         * tests/test-c-strncasecmp.c: Likewise.
25818         * tests/test-c-strstr.c: Likewise.
25819         * tests/test-canonicalize-lgpl.c: Likewise.
25820         * tests/test-canonicalize.c: Likewise.
25821         * tests/test-carray_list.c: Likewise.
25822         * tests/test-ceilf1.c: Likewise.
25823         * tests/test-ceilf2.c: Likewise.
25824         * tests/test-ceill.c: Likewise.
25825         * tests/test-chown.c: Likewise.
25826         * tests/test-cloexec.c: Likewise.
25827         * tests/test-copy-acl.c: Likewise.
25828         * tests/test-copy-file.c: Likewise.
25829         * tests/test-count-one-bits.c: Likewise.
25830         * tests/test-dprintf-posix.c: Likewise.
25831         * tests/test-dup2.c: Likewise.
25832         * tests/test-dup3.c: Likewise.
25833         * tests/test-duplocale.c: Likewise.
25834         * tests/test-fbufmode.c: Likewise.
25835         * tests/test-fchdir.c: Likewise.
25836         * tests/test-fchownat.c: Likewise.
25837         * tests/test-fcntl-safer.c: Likewise.
25838         * tests/test-fcntl.c: Likewise.
25839         * tests/test-fdopendir.c: Likewise.
25840         * tests/test-fdutimensat.c: Likewise.
25841         * tests/test-fflush2.c: Likewise.
25842         * tests/test-file-has-acl.c: Likewise.
25843         * tests/test-filevercmp.c: Likewise.
25844         * tests/test-flock.c: Likewise.
25845         * tests/test-floorf1.c: Likewise.
25846         * tests/test-floorf2.c: Likewise.
25847         * tests/test-floorl.c: Likewise.
25848         * tests/test-fnmatch.c: Likewise.
25849         * tests/test-fopen.h: Likewise.
25850         * tests/test-fpending.c: Likewise.
25851         * tests/test-fprintf-posix.c: Likewise.
25852         * tests/test-fpurge.c: Likewise.
25853         * tests/test-freadable.c: Likewise.
25854         * tests/test-freadahead.c: Likewise.
25855         * tests/test-freading.c: Likewise.
25856         * tests/test-freadptr.c: Likewise.
25857         * tests/test-freadptr2.c: Likewise.
25858         * tests/test-freadseek.c: Likewise.
25859         * tests/test-freopen.c: Likewise.
25860         * tests/test-frexp.c: Likewise.
25861         * tests/test-frexpl.c: Likewise.
25862         * tests/test-fseek.c: Likewise.
25863         * tests/test-fseeko.c: Likewise.
25864         * tests/test-fstatat.c: Likewise.
25865         * tests/test-fstrcmp.c: Likewise.
25866         * tests/test-fsync.c: Likewise.
25867         * tests/test-ftell.c: Likewise.
25868         * tests/test-ftello.c: Likewise.
25869         * tests/test-func.c: Likewise.
25870         * tests/test-futimens.c: Likewise.
25871         * tests/test-fwritable.c: Likewise.
25872         * tests/test-fwriting.c: Likewise.
25873         * tests/test-getcwd.c: Likewise.
25874         * tests/test-getdate.c: Likewise.
25875         * tests/test-getdelim.c: Likewise.
25876         * tests/test-getdtablesize.c: Likewise.
25877         * tests/test-getgroups.c: Likewise.
25878         * tests/test-getline.c: Likewise.
25879         * tests/test-getndelim2.c: Likewise.
25880         * tests/test-glob.c: Likewise.
25881         * tests/test-hash.c: Likewise.
25882         * tests/test-i-ring.c: Likewise.
25883         * tests/test-iconv-utf.c: Likewise.
25884         * tests/test-iconv.c: Likewise.
25885         * tests/test-idpriv-drop.c: Likewise.
25886         * tests/test-idpriv-droptemp.c: Likewise.
25887         * tests/test-inet_ntop.c: Likewise.
25888         * tests/test-inet_pton.c: Likewise.
25889         * tests/test-isblank.c: Likewise.
25890         * tests/test-isfinite.c: Likewise.
25891         * tests/test-isinf.c: Likewise.
25892         * tests/test-isnan.c: Likewise.
25893         * tests/test-isnand.h: Likewise.
25894         * tests/test-isnanf.h: Likewise.
25895         * tests/test-isnanl.h: Likewise.
25896         * tests/test-lchown.c: Likewise.
25897         * tests/test-ldexpl.c: Likewise.
25898         * tests/test-link.c: Likewise.
25899         * tests/test-linkat.c: Likewise.
25900         * tests/test-linked_list.c: Likewise.
25901         * tests/test-linkedhash_list.c: Likewise.
25902         * tests/test-localename.c: Likewise.
25903         * tests/test-lseek.c: Likewise.
25904         * tests/test-lstat.c: Likewise.
25905         * tests/test-mbmemcasecmp.c: Likewise.
25906         * tests/test-mbmemcasecoll.c: Likewise.
25907         * tests/test-mbrtowc.c: Likewise.
25908         * tests/test-mbscasecmp.c: Likewise.
25909         * tests/test-mbscasestr1.c: Likewise.
25910         * tests/test-mbscasestr2.c: Likewise.
25911         * tests/test-mbscasestr3.c: Likewise.
25912         * tests/test-mbscasestr4.c: Likewise.
25913         * tests/test-mbschr.c: Likewise.
25914         * tests/test-mbscspn.c: Likewise.
25915         * tests/test-mbsinit.c: Likewise.
25916         * tests/test-mbsncasecmp.c: Likewise.
25917         * tests/test-mbsnrtowcs.c: Likewise.
25918         * tests/test-mbspbrk.c: Likewise.
25919         * tests/test-mbspcasecmp.c: Likewise.
25920         * tests/test-mbsrchr.c: Likewise.
25921         * tests/test-mbsrtowcs.c: Likewise.
25922         * tests/test-mbsspn.c: Likewise.
25923         * tests/test-mbsstr1.c: Likewise.
25924         * tests/test-mbsstr2.c: Likewise.
25925         * tests/test-mbsstr3.c: Likewise.
25926         * tests/test-memchr.c: Likewise.
25927         * tests/test-memchr2.c: Likewise.
25928         * tests/test-memcmp.c: Likewise.
25929         * tests/test-memmem.c: Likewise.
25930         * tests/test-memrchr.c: Likewise.
25931         * tests/test-mkdir.c: Likewise.
25932         * tests/test-mkdirat.c: Likewise.
25933         * tests/test-mkfifo.c: Likewise.
25934         * tests/test-mkfifoat.c: Likewise.
25935         * tests/test-mknod.c: Likewise.
25936         * tests/test-nanosleep.c: Likewise.
25937         * tests/test-nl_langinfo.c: Likewise.
25938         * tests/test-obstack-printf.c: Likewise.
25939         * tests/test-open.c: Likewise.
25940         * tests/test-openat.c: Likewise.
25941         * tests/test-pipe-filter-gi1.c: Likewise.
25942         * tests/test-pipe-filter-gi2-main.c: Likewise.
25943         * tests/test-pipe-filter-ii1.c: Likewise.
25944         * tests/test-pipe-filter-ii2-main.c: Likewise.
25945         * tests/test-pipe2.c: Likewise.
25946         * tests/test-popen.h: Likewise.
25947         * tests/test-posixtm.c: Likewise.
25948         * tests/test-pread.c: Likewise.
25949         * tests/test-printf-frexp.c: Likewise.
25950         * tests/test-printf-frexpl.c: Likewise.
25951         * tests/test-printf-posix.c: Likewise.
25952         * tests/test-priv-set.c: Likewise.
25953         * tests/test-quotearg.c: Likewise.
25954         * tests/test-random_r.c: Likewise.
25955         * tests/test-rawmemchr.c: Likewise.
25956         * tests/test-rbtree_list.c: Likewise.
25957         * tests/test-rbtree_oset.c: Likewise.
25958         * tests/test-rbtreehash_list.c: Likewise.
25959         * tests/test-readlink.c: Likewise.
25960         * tests/test-remove.c: Likewise.
25961         * tests/test-rename.c: Likewise.
25962         * tests/test-renameat.c: Likewise.
25963         * tests/test-rmdir.c: Likewise.
25964         * tests/test-round1.c: Likewise.
25965         * tests/test-roundf1.c: Likewise.
25966         * tests/test-roundl.c: Likewise.
25967         * tests/test-safe-alloc.c: Likewise.
25968         * tests/test-sameacls.c: Likewise.
25969         * tests/test-set-mode-acl.c: Likewise.
25970         * tests/test-setenv.c: Likewise.
25971         * tests/test-sigaction.c: Likewise.
25972         * tests/test-signbit.c: Likewise.
25973         * tests/test-sleep.c: Likewise.
25974         * tests/test-snprintf-posix.c: Likewise.
25975         * tests/test-snprintf.c: Likewise.
25976         * tests/test-sprintf-posix.c: Likewise.
25977         * tests/test-stat-time.c: Likewise.
25978         * tests/test-stat.c: Likewise.
25979         * tests/test-strcasestr.c: Likewise.
25980         * tests/test-strchrnul.c: Likewise.
25981         * tests/test-strerror.c: Likewise.
25982         * tests/test-striconv.c: Likewise.
25983         * tests/test-striconveh.c: Likewise.
25984         * tests/test-striconveha.c: Likewise.
25985         * tests/test-strsignal.c: Likewise.
25986         * tests/test-strstr.c: Likewise.
25987         * tests/test-strtod.c: Likewise.
25988         * tests/test-strverscmp.c: Likewise.
25989         * tests/test-symlink.c: Likewise.
25990         * tests/test-symlinkat.c: Likewise.
25991         * tests/test-trunc1.c: Likewise.
25992         * tests/test-trunc2.c: Likewise.
25993         * tests/test-truncf1.c: Likewise.
25994         * tests/test-truncf2.c: Likewise.
25995         * tests/test-truncl.c: Likewise.
25996         * tests/test-uname.c: Likewise.
25997         * tests/test-unlink.c: Likewise.
25998         * tests/test-unlinkat.c: Likewise.
25999         * tests/test-unsetenv.c: Likewise.
26000         * tests/test-usleep.c: Likewise.
26001         * tests/test-utimens.c: Likewise.
26002         * tests/test-utimensat.c: Likewise.
26003         * tests/test-vasnprintf-posix.c: Likewise.
26004         * tests/test-vasnprintf-posix2.c: Likewise.
26005         * tests/test-vasnprintf.c: Likewise.
26006         * tests/test-vasprintf-posix.c: Likewise.
26007         * tests/test-vasprintf.c: Likewise.
26008         * tests/test-vdprintf-posix.c: Likewise.
26009         * tests/test-vfprintf-posix.c: Likewise.
26010         * tests/test-vprintf-posix.c: Likewise.
26011         * tests/test-vsnprintf-posix.c: Likewise.
26012         * tests/test-vsnprintf.c: Likewise.
26013         * tests/test-vsprintf-posix.c: Likewise.
26014         * tests/test-wcrtomb.c: Likewise.
26015         * tests/test-wcsnrtombs.c: Likewise.
26016         * tests/test-wcsrtombs.c: Likewise.
26017         * tests/test-wctype.c: Likewise.
26018         * tests/test-wcwidth.c: Likewise.
26019         * tests/test-xfprintf-posix.c: Likewise.
26020         * tests/test-xmemdup0.c: Likewise.
26021         * tests/test-xprintf-posix.c: Likewise.
26022         * tests/test-xvasprintf.c: Likewise.
26023         * tests/unicase/test-locale-language.c: Likewise.
26024         * tests/unicase/test-mapping-part1.h: Likewise.
26025         * tests/unicase/test-predicate-part1.h: Likewise.
26026         * tests/unicase/test-u8-casecmp.c: Likewise.
26027         * tests/unicase/test-u8-casecoll.c: Likewise.
26028         * tests/unicase/test-u8-casefold.c: Likewise.
26029         * tests/unicase/test-u8-is-cased.c: Likewise.
26030         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26031         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26032         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26033         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26034         * tests/unicase/test-u8-tolower.c: Likewise.
26035         * tests/unicase/test-u8-totitle.c: Likewise.
26036         * tests/unicase/test-u8-toupper.c: Likewise.
26037         * tests/unicase/test-u16-casecmp.c: Likewise.
26038         * tests/unicase/test-u16-casecoll.c: Likewise.
26039         * tests/unicase/test-u16-casefold.c: Likewise.
26040         * tests/unicase/test-u16-is-cased.c: Likewise.
26041         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26042         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26043         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26044         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26045         * tests/unicase/test-u16-tolower.c: Likewise.
26046         * tests/unicase/test-u16-totitle.c: Likewise.
26047         * tests/unicase/test-u16-toupper.c: Likewise.
26048         * tests/unicase/test-u32-casecmp.c: Likewise.
26049         * tests/unicase/test-u32-casecoll.c: Likewise.
26050         * tests/unicase/test-u32-casefold.c: Likewise.
26051         * tests/unicase/test-u32-is-cased.c: Likewise.
26052         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26053         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26054         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26055         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26056         * tests/unicase/test-u32-tolower.c: Likewise.
26057         * tests/unicase/test-u32-totitle.c: Likewise.
26058         * tests/unicase/test-u32-toupper.c: Likewise.
26059         * tests/unicase/test-ulc-casecmp.c: Likewise.
26060         * tests/unicase/test-ulc-casecoll.c: Likewise.
26061         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26062         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26063         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26064         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26065         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26066         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26067         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26068         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26069         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26070         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26071         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26072         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26073         * tests/unictype/test-bidi_byname.c: Likewise.
26074         * tests/unictype/test-bidi_name.c: Likewise.
26075         * tests/unictype/test-bidi_of.c: Likewise.
26076         * tests/unictype/test-bidi_test.c: Likewise.
26077         * tests/unictype/test-block_list.c: Likewise.
26078         * tests/unictype/test-block_of.c: Likewise.
26079         * tests/unictype/test-block_test.c: Likewise.
26080         * tests/unictype/test-categ_and.c: Likewise.
26081         * tests/unictype/test-categ_and_not.c: Likewise.
26082         * tests/unictype/test-categ_byname.c: Likewise.
26083         * tests/unictype/test-categ_name.c: Likewise.
26084         * tests/unictype/test-categ_none.c: Likewise.
26085         * tests/unictype/test-categ_of.c: Likewise.
26086         * tests/unictype/test-categ_or.c: Likewise.
26087         * tests/unictype/test-categ_test_withtable.c: Likewise.
26088         * tests/unictype/test-combining.c: Likewise.
26089         * tests/unictype/test-decdigit.c: Likewise.
26090         * tests/unictype/test-digit.c: Likewise.
26091         * tests/unictype/test-mirror.c: Likewise.
26092         * tests/unictype/test-numeric.c: Likewise.
26093         * tests/unictype/test-pr_byname.c: Likewise.
26094         * tests/unictype/test-pr_test.c: Likewise.
26095         * tests/unictype/test-predicate-part1.h: Likewise.
26096         * tests/unictype/test-scripts.c: Likewise.
26097         * tests/unictype/test-sy_c_ident.c: Likewise.
26098         * tests/unictype/test-sy_java_ident.c: Likewise.
26099         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26100         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26101         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26102         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26103         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26104         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26105         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26106         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26107         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26108         * tests/uninorm/test-compat-decomposition.c: Likewise.
26109         * tests/uninorm/test-composition.c: Likewise.
26110         * tests/uninorm/test-decomposing-form.c: Likewise.
26111         * tests/uninorm/test-decomposition.c: Likewise.
26112         * tests/uninorm/test-u8-nfc.c: Likewise.
26113         * tests/uninorm/test-u8-nfd.c: Likewise.
26114         * tests/uninorm/test-u8-nfkc.c: Likewise.
26115         * tests/uninorm/test-u8-nfkd.c: Likewise.
26116         * tests/uninorm/test-u8-normcmp.c: Likewise.
26117         * tests/uninorm/test-u8-normcoll.c: Likewise.
26118         * tests/uninorm/test-u16-nfc.c: Likewise.
26119         * tests/uninorm/test-u16-nfd.c: Likewise.
26120         * tests/uninorm/test-u16-nfkc.c: Likewise.
26121         * tests/uninorm/test-u16-nfkd.c: Likewise.
26122         * tests/uninorm/test-u16-normcmp.c: Likewise.
26123         * tests/uninorm/test-u16-normcoll.c: Likewise.
26124         * tests/uninorm/test-u32-nfc.c: Likewise.
26125         * tests/uninorm/test-u32-nfd.c: Likewise.
26126         * tests/uninorm/test-u32-nfkc.c: Likewise.
26127         * tests/uninorm/test-u32-nfkd.c: Likewise.
26128         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26129         * tests/uninorm/test-u32-normcmp.c: Likewise.
26130         * tests/uninorm/test-u32-normcoll.c: Likewise.
26131         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26132         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26133         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26134         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26135         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26136         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26137         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26138         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26139         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26140         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26141         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26142         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26143         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26144         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26145         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26146         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26147         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26148         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26149         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26150         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26151         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26152         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26153         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26154         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26155         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26156         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26157         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26158         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26159         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26160         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26161         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26162         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26163         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26164         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26165         * tests/uniwidth/test-u8-width.c: Likewise.
26166         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26167         * tests/uniwidth/test-u16-width.c: Likewise.
26168         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26169         * tests/uniwidth/test-u32-width.c: Likewise.
26170         * tests/uniwidth/test-uc_width.c: Likewise.
26171         * tests/uniwidth/test-uc_width2.c: Likewise.
26172         * modules/acl-tests (Files): Add tests/macros.h.
26173         * modules/areadlink-tests (Files): Likewise.
26174         * modules/areadlink-with-size-tests (Files): Likewise.
26175         * modules/areadlinkat-tests (Files): Likewise.
26176         * modules/areadlinkat-with-size-tests (Files): Likewise.
26177         * modules/argmatch-tests (Files): Likewise.
26178         * modules/argv-iter-tests (Files): Likewise.
26179         * modules/array-list-tests (Files): Likewise.
26180         * modules/array-mergesort-tests (Files): Likewise.
26181         * modules/array-oset-tests (Files): Likewise.
26182         * modules/avltree-list-tests (Files): Likewise.
26183         * modules/avltree-oset-tests (Files): Likewise.
26184         * modules/avltreehash-list-tests (Files): Likewise.
26185         * modules/base64-tests (Files): Likewise.
26186         * modules/binary-io-tests (Files): Likewise.
26187         * modules/bitrotate-tests (Files): Likewise.
26188         * modules/btowc-tests (Files): Likewise.
26189         * modules/byteswap-tests (Files): Likewise.
26190         * modules/c-ctype-tests (Files): Likewise.
26191         * modules/c-stack-tests (Files): Likewise.
26192         * modules/c-strcase-tests (Files): Likewise.
26193         * modules/c-strcasestr-tests (Files): Likewise.
26194         * modules/c-strstr-tests (Files): Likewise.
26195         * modules/canonicalize-lgpl-tests (Files): Likewise.
26196         * modules/canonicalize-tests (Files): Likewise.
26197         * modules/carray-list-tests (Files): Likewise.
26198         * modules/ceilf-tests (Files): Likewise.
26199         * modules/ceill-tests (Files): Likewise.
26200         * modules/chown-tests (Files): Likewise.
26201         * modules/cloexec-tests (Files): Likewise.
26202         * modules/copy-file-tests (Files): Likewise.
26203         * modules/count-one-bits-tests (Files): Likewise.
26204         * modules/dprintf-posix-tests (Files): Likewise.
26205         * modules/dup2-tests (Files): Likewise.
26206         * modules/dup3-tests (Files): Likewise.
26207         * modules/duplocale-tests (Files): Likewise.
26208         * modules/fbufmode-tests (Files): Likewise.
26209         * modules/fchdir-tests (Files): Likewise.
26210         * modules/fcntl-safer-tests (Files): Likewise.
26211         * modules/fcntl-tests (Files): Likewise.
26212         * modules/fdopendir-tests (Files): Likewise.
26213         * modules/fdutimensat-tests (Files): Likewise.
26214         * modules/fflush-tests (Files): Likewise.
26215         * modules/filevercmp-tests (Files): Likewise.
26216         * modules/flock-tests (Files): Likewise.
26217         * modules/floorf-tests (Files): Likewise.
26218         * modules/floorl-tests (Files): Likewise.
26219         * modules/fnmatch-tests (Files): Likewise.
26220         * modules/fopen-safer-tests (Files): Likewise.
26221         * modules/fopen-tests (Files): Likewise.
26222         * modules/fpending-tests (Files): Likewise.
26223         * modules/fprintf-posix-tests (Files): Likewise.
26224         * modules/fpurge-tests (Files): Likewise.
26225         * modules/freadable-tests (Files): Likewise.
26226         * modules/freadahead-tests (Files): Likewise.
26227         * modules/freading-tests (Files): Likewise.
26228         * modules/freadptr-tests (Files): Likewise.
26229         * modules/freadseek-tests (Files): Likewise.
26230         * modules/freopen-tests (Files): Likewise.
26231         * modules/frexp-nolibm-tests (Files): Likewise.
26232         * modules/frexp-tests (Files): Likewise.
26233         * modules/frexpl-nolibm-tests (Files): Likewise.
26234         * modules/frexpl-tests (Files): Likewise.
26235         * modules/fseek-tests (Files): Likewise.
26236         * modules/fseeko-tests (Files): Likewise.
26237         * modules/fstrcmp-tests (Files): Likewise.
26238         * modules/fsync-tests (Files): Likewise.
26239         * modules/ftell-tests (Files): Likewise.
26240         * modules/ftello-tests (Files): Likewise.
26241         * modules/func-tests (Files): Likewise.
26242         * modules/futimens-tests (Files): Likewise.
26243         * modules/fwritable-tests (Files): Likewise.
26244         * modules/fwriting-tests (Files): Likewise.
26245         * modules/getcwd-tests (Files): Likewise.
26246         * modules/getdate-tests (Files): Likewise.
26247         * modules/getdelim-tests (Files): Likewise.
26248         * modules/getdtablesize-tests (Files): Likewise.
26249         * modules/getgroups-tests (Files): Likewise.
26250         * modules/getline-tests (Files): Likewise.
26251         * modules/getndelim2-tests (Files): Likewise.
26252         * modules/glob-tests (Files): Likewise.
26253         * modules/hash-tests (Files): Likewise.
26254         * modules/i-ring-tests (Files): Likewise.
26255         * modules/iconv-tests (Files): Likewise.
26256         * modules/iconv_open-utf-tests (Files): Likewise.
26257         * modules/idpriv-drop-tests (Files): Likewise.
26258         * modules/idpriv-droptemp-tests (Files): Likewise.
26259         * modules/inet_ntop-tests (Files): Likewise.
26260         * modules/inet_pton-tests (Files): Likewise.
26261         * modules/isblank-tests (Files): Likewise.
26262         * modules/isfinite-tests (Files): Likewise.
26263         * modules/isinf-tests (Files): Likewise.
26264         * modules/isnan-tests (Files): Likewise.
26265         * modules/isnand-nolibm-tests (Files): Likewise.
26266         * modules/isnand-tests (Files): Likewise.
26267         * modules/isnanf-nolibm-tests (Files): Likewise.
26268         * modules/isnanf-tests (Files): Likewise.
26269         * modules/isnanl-nolibm-tests (Files): Likewise.
26270         * modules/isnanl-tests (Files): Likewise.
26271         * modules/lchown-tests (Files): Likewise.
26272         * modules/ldexpl-tests (Files): Likewise.
26273         * modules/link-tests (Files): Likewise.
26274         * modules/linkat-tests (Files): Likewise.
26275         * modules/linked-list-tests (Files): Likewise.
26276         * modules/linkedhash-list-tests (Files): Likewise.
26277         * modules/localename-tests (Files): Likewise.
26278         * modules/lseek-tests (Files): Likewise.
26279         * modules/lstat-tests (Files): Likewise.
26280         * modules/mbmemcasecmp-tests (Files): Likewise.
26281         * modules/mbmemcasecoll-tests (Files): Likewise.
26282         * modules/mbrtowc-tests (Files): Likewise.
26283         * modules/mbscasecmp-tests (Files): Likewise.
26284         * modules/mbscasestr-tests (Files): Likewise.
26285         * modules/mbschr-tests (Files): Likewise.
26286         * modules/mbscspn-tests (Files): Likewise.
26287         * modules/mbsinit-tests (Files): Likewise.
26288         * modules/mbsncasecmp-tests (Files): Likewise.
26289         * modules/mbsnrtowcs-tests (Files): Likewise.
26290         * modules/mbspbrk-tests (Files): Likewise.
26291         * modules/mbspcasecmp-tests (Files): Likewise.
26292         * modules/mbsrchr-tests (Files): Likewise.
26293         * modules/mbsrtowcs-tests (Files): Likewise.
26294         * modules/mbsspn-tests (Files): Likewise.
26295         * modules/mbsstr-tests (Files): Likewise.
26296         * modules/memchr-tests (Files): Likewise.
26297         * modules/memchr2-tests (Files): Likewise.
26298         * modules/memcmp-tests (Files): Likewise.
26299         * modules/memmem-tests (Files): Likewise.
26300         * modules/memrchr-tests (Files): Likewise.
26301         * modules/mkdir-tests (Files): Likewise.
26302         * modules/mkfifo-tests (Files): Likewise.
26303         * modules/mkfifoat-tests (Files): Likewise.
26304         * modules/mknod-tests (Files): Likewise.
26305         * modules/nanosleep-tests (Files): Likewise.
26306         * modules/nl_langinfo-tests (Files): Likewise.
26307         * modules/obstack-printf-tests (Files): Likewise.
26308         * modules/open-tests (Files): Likewise.
26309         * modules/openat-tests (Files): Likewise.
26310         * modules/pipe-filter-gi-tests (Files): Likewise.
26311         * modules/pipe-filter-ii-tests (Files): Likewise.
26312         * modules/pipe2-tests (Files): Likewise.
26313         * modules/popen-safer-tests (Files): Likewise.
26314         * modules/popen-tests (Files): Likewise.
26315         * modules/posixtm-tests (Files): Likewise.
26316         * modules/pread-tests (Files): Likewise.
26317         * modules/printf-frexp-tests (Files): Likewise.
26318         * modules/printf-frexpl-tests (Files): Likewise.
26319         * modules/printf-posix-tests (Files): Likewise.
26320         * modules/priv-set-tests (Files): Likewise.
26321         * modules/quotearg-tests (Files): Likewise.
26322         * modules/random_r-tests (Files): Likewise.
26323         * modules/rawmemchr-tests (Files): Likewise.
26324         * modules/rbtree-list-tests (Files): Likewise.
26325         * modules/rbtree-oset-tests (Files): Likewise.
26326         * modules/rbtreehash-list-tests (Files): Likewise.
26327         * modules/readlink-tests (Files): Likewise.
26328         * modules/remove-tests (Files): Likewise.
26329         * modules/rename-tests (Files): Likewise.
26330         * modules/renameat-tests (Files): Likewise.
26331         * modules/rmdir-tests (Files): Likewise.
26332         * modules/round-tests (Files): Likewise.
26333         * modules/roundf-tests (Files): Likewise.
26334         * modules/roundl-tests (Files): Likewise.
26335         * modules/safe-alloc-tests (Files): Likewise.
26336         * modules/setenv-tests (Files): Likewise.
26337         * modules/sigaction-tests (Files): Likewise.
26338         * modules/signbit-tests (Files): Likewise.
26339         * modules/sleep-tests (Files): Likewise.
26340         * modules/snprintf-posix-tests (Files): Likewise.
26341         * modules/snprintf-tests (Files): Likewise.
26342         * modules/sprintf-posix-tests (Files): Likewise.
26343         * modules/stat-tests (Files): Likewise.
26344         * modules/stat-time-tests (Files): Likewise.
26345         * modules/strcasestr-tests (Files): Likewise.
26346         * modules/strchrnul-tests (Files): Likewise.
26347         * modules/strerror-tests (Files): Likewise.
26348         * modules/striconv-tests (Files): Likewise.
26349         * modules/striconveh-tests (Files): Likewise.
26350         * modules/striconveha-tests (Files): Likewise.
26351         * modules/strsignal-tests (Files): Likewise.
26352         * modules/strstr-tests (Files): Likewise.
26353         * modules/strtod-tests (Files): Likewise.
26354         * modules/strverscmp-tests (Files): Likewise.
26355         * modules/symlink-tests (Files): Likewise.
26356         * modules/symlinkat-tests (Files): Likewise.
26357         * modules/trunc-tests (Files): Likewise.
26358         * modules/truncf-tests (Files): Likewise.
26359         * modules/truncl-tests (Files): Likewise.
26360         * modules/uname-tests (Files): Likewise.
26361         * modules/unicase/cased-tests (Files): Likewise.
26362         * modules/unicase/ignorable-tests (Files): Likewise.
26363         * modules/unicase/locale-language-tests (Files): Likewise.
26364         * modules/unicase/tolower-tests (Files): Likewise.
26365         * modules/unicase/totitle-tests (Files): Likewise.
26366         * modules/unicase/toupper-tests (Files): Likewise.
26367         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26368         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26369         * modules/unicase/u8-casefold-tests (Files): Likewise.
26370         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26371         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26372         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26373         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26374         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26375         * modules/unicase/u8-tolower-tests (Files): Likewise.
26376         * modules/unicase/u8-totitle-tests (Files): Likewise.
26377         * modules/unicase/u8-toupper-tests (Files): Likewise.
26378         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26379         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26380         * modules/unicase/u16-casefold-tests (Files): Likewise.
26381         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26382         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26383         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26384         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26385         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26386         * modules/unicase/u16-tolower-tests (Files): Likewise.
26387         * modules/unicase/u16-totitle-tests (Files): Likewise.
26388         * modules/unicase/u16-toupper-tests (Files): Likewise.
26389         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26390         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26391         * modules/unicase/u32-casefold-tests (Files): Likewise.
26392         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26393         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26394         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26395         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26396         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26397         * modules/unicase/u32-tolower-tests (Files): Likewise.
26398         * modules/unicase/u32-totitle-tests (Files): Likewise.
26399         * modules/unicase/u32-toupper-tests (Files): Likewise.
26400         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26401         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26402         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26403         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26404         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26405         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26406         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26407         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26408         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26409         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26410         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26411         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26412         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26413         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26414         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26415         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26416         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26417         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26418         * modules/unictype/block-list-tests (Files): Likewise.
26419         * modules/unictype/block-of-tests (Files): Likewise.
26420         * modules/unictype/block-test-tests (Files): Likewise.
26421         * modules/unictype/category-C-tests (Files): Likewise.
26422         * modules/unictype/category-Cc-tests (Files): Likewise.
26423         * modules/unictype/category-Cf-tests (Files): Likewise.
26424         * modules/unictype/category-Cn-tests (Files): Likewise.
26425         * modules/unictype/category-Co-tests (Files): Likewise.
26426         * modules/unictype/category-Cs-tests (Files): Likewise.
26427         * modules/unictype/category-L-tests (Files): Likewise.
26428         * modules/unictype/category-Ll-tests (Files): Likewise.
26429         * modules/unictype/category-Lm-tests (Files): Likewise.
26430         * modules/unictype/category-Lo-tests (Files): Likewise.
26431         * modules/unictype/category-Lt-tests (Files): Likewise.
26432         * modules/unictype/category-Lu-tests (Files): Likewise.
26433         * modules/unictype/category-M-tests (Files): Likewise.
26434         * modules/unictype/category-Mc-tests (Files): Likewise.
26435         * modules/unictype/category-Me-tests (Files): Likewise.
26436         * modules/unictype/category-Mn-tests (Files): Likewise.
26437         * modules/unictype/category-N-tests (Files): Likewise.
26438         * modules/unictype/category-Nd-tests (Files): Likewise.
26439         * modules/unictype/category-Nl-tests (Files): Likewise.
26440         * modules/unictype/category-No-tests (Files): Likewise.
26441         * modules/unictype/category-P-tests (Files): Likewise.
26442         * modules/unictype/category-Pc-tests (Files): Likewise.
26443         * modules/unictype/category-Pd-tests (Files): Likewise.
26444         * modules/unictype/category-Pe-tests (Files): Likewise.
26445         * modules/unictype/category-Pf-tests (Files): Likewise.
26446         * modules/unictype/category-Pi-tests (Files): Likewise.
26447         * modules/unictype/category-Po-tests (Files): Likewise.
26448         * modules/unictype/category-Ps-tests (Files): Likewise.
26449         * modules/unictype/category-S-tests (Files): Likewise.
26450         * modules/unictype/category-Sc-tests (Files): Likewise.
26451         * modules/unictype/category-Sk-tests (Files): Likewise.
26452         * modules/unictype/category-Sm-tests (Files): Likewise.
26453         * modules/unictype/category-So-tests (Files): Likewise.
26454         * modules/unictype/category-Z-tests (Files): Likewise.
26455         * modules/unictype/category-Zl-tests (Files): Likewise.
26456         * modules/unictype/category-Zp-tests (Files): Likewise.
26457         * modules/unictype/category-Zs-tests (Files): Likewise.
26458         * modules/unictype/category-and-not-tests (Files): Likewise.
26459         * modules/unictype/category-and-tests (Files): Likewise.
26460         * modules/unictype/category-byname-tests (Files): Likewise.
26461         * modules/unictype/category-name-tests (Files): Likewise.
26462         * modules/unictype/category-none-tests (Files): Likewise.
26463         * modules/unictype/category-of-tests (Files): Likewise.
26464         * modules/unictype/category-or-tests (Files): Likewise.
26465         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26466         * modules/unictype/combining-class-tests (Files): Likewise.
26467         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26468         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26469         * modules/unictype/ctype-blank-tests (Files): Likewise.
26470         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26471         * modules/unictype/ctype-digit-tests (Files): Likewise.
26472         * modules/unictype/ctype-graph-tests (Files): Likewise.
26473         * modules/unictype/ctype-lower-tests (Files): Likewise.
26474         * modules/unictype/ctype-print-tests (Files): Likewise.
26475         * modules/unictype/ctype-punct-tests (Files): Likewise.
26476         * modules/unictype/ctype-space-tests (Files): Likewise.
26477         * modules/unictype/ctype-upper-tests (Files): Likewise.
26478         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26479         * modules/unictype/decimal-digit-tests (Files): Likewise.
26480         * modules/unictype/digit-tests (Files): Likewise.
26481         * modules/unictype/mirror-tests (Files): Likewise.
26482         * modules/unictype/numeric-tests (Files): Likewise.
26483         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26484         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26485         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26486         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26487         Likewise.
26488         * modules/unictype/property-bidi-block-separator-tests (Files):
26489         Likewise.
26490         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26491         Likewise.
26492         * modules/unictype/property-bidi-common-separator-tests (Files):
26493         Likewise.
26494         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26495         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26496         Likewise.
26497         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26498         Likewise.
26499         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26500         Likewise.
26501         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26502         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26503         Likewise.
26504         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26505         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26506         Likewise.
26507         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26508         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26509         * modules/unictype/property-bidi-segment-separator-tests (Files):
26510         Likewise.
26511         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26512         * modules/unictype/property-byname-tests (Files): Likewise.
26513         * modules/unictype/property-combining-tests (Files): Likewise.
26514         * modules/unictype/property-composite-tests (Files): Likewise.
26515         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26516         * modules/unictype/property-dash-tests (Files): Likewise.
26517         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26518         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26519         Likewise.
26520         * modules/unictype/property-deprecated-tests (Files): Likewise.
26521         * modules/unictype/property-diacritic-tests (Files): Likewise.
26522         * modules/unictype/property-extender-tests (Files): Likewise.
26523         * modules/unictype/property-format-control-tests (Files): Likewise.
26524         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26525         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26526         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26527         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26528         * modules/unictype/property-hyphen-tests (Files): Likewise.
26529         * modules/unictype/property-id-continue-tests (Files): Likewise.
26530         * modules/unictype/property-id-start-tests (Files): Likewise.
26531         * modules/unictype/property-ideographic-tests (Files): Likewise.
26532         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26533         * modules/unictype/property-ids-trinary-operator-tests (Files):
26534         Likewise.
26535         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26536         * modules/unictype/property-iso-control-tests (Files): Likewise.
26537         * modules/unictype/property-join-control-tests (Files): Likewise.
26538         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26539         * modules/unictype/property-line-separator-tests (Files): Likewise.
26540         * modules/unictype/property-logical-order-exception-tests (Files):
26541         Likewise.
26542         * modules/unictype/property-lowercase-tests (Files): Likewise.
26543         * modules/unictype/property-math-tests (Files): Likewise.
26544         * modules/unictype/property-non-break-tests (Files): Likewise.
26545         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26546         * modules/unictype/property-numeric-tests (Files): Likewise.
26547         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26548         * modules/unictype/property-other-default-ignorable-code-point-tests
26549         (Files): Likewise.
26550         * modules/unictype/property-other-grapheme-extend-tests (Files):
26551         Likewise.
26552         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26553         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26554         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26555         * modules/unictype/property-other-math-tests (Files): Likewise.
26556         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26557         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26558         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26559         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26560         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26561         * modules/unictype/property-private-use-tests (Files): Likewise.
26562         * modules/unictype/property-punctuation-tests (Files): Likewise.
26563         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26564         * modules/unictype/property-radical-tests (Files): Likewise.
26565         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26566         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26567         * modules/unictype/property-space-tests (Files): Likewise.
26568         * modules/unictype/property-terminal-punctuation-tests (Files):
26569         Likewise.
26570         * modules/unictype/property-test-tests (Files): Likewise.
26571         * modules/unictype/property-titlecase-tests (Files): Likewise.
26572         * modules/unictype/property-unassigned-code-value-tests (Files):
26573         Likewise.
26574         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26575         * modules/unictype/property-uppercase-tests (Files): Likewise.
26576         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26577         * modules/unictype/property-white-space-tests (Files): Likewise.
26578         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26579         * modules/unictype/property-xid-start-tests (Files): Likewise.
26580         * modules/unictype/property-zero-width-tests (Files): Likewise.
26581         * modules/unictype/scripts-tests (Files): Likewise.
26582         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26583         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26584         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26585         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26586         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26587         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26588         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26589         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26590         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26591         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26592         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26593         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26594         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26595         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26596         * modules/uninorm/composition-tests (Files): Likewise.
26597         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26598         * modules/uninorm/decomposition-tests (Files): Likewise.
26599         * modules/uninorm/filter-tests (Files): Likewise.
26600         * modules/uninorm/nfc-tests (Files): Likewise.
26601         * modules/uninorm/nfd-tests (Files): Likewise.
26602         * modules/uninorm/nfkc-tests (Files): Likewise.
26603         * modules/uninorm/nfkd-tests (Files): Likewise.
26604         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26605         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26606         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26607         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26608         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26609         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26610         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26611         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26612         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26613         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26614         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26615         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26616         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26617         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26618         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26619         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26620         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26621         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26622         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26623         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26624         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26625         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26626         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26627         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26628         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26629         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26630         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26631         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26632         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26633         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26634         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26635         * modules/uniwidth/u8-width-tests (Files): Likewise.
26636         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26637         * modules/uniwidth/u16-width-tests (Files): Likewise.
26638         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26639         * modules/uniwidth/u32-width-tests (Files): Likewise.
26640         * modules/uniwidth/width-tests (Files): Likewise.
26641         * modules/unlink-tests (Files): Likewise.
26642         * modules/unsetenv-tests (Files): Likewise.
26643         * modules/usleep-tests (Files): Likewise.
26644         * modules/utimens-tests (Files): Likewise.
26645         * modules/utimensat-tests (Files): Likewise.
26646         * modules/vasnprintf-posix-tests (Files): Likewise.
26647         * modules/vasnprintf-tests (Files): Likewise.
26648         * modules/vasprintf-posix-tests (Files): Likewise.
26649         * modules/vasprintf-tests (Files): Likewise.
26650         * modules/vdprintf-posix-tests (Files): Likewise.
26651         * modules/vfprintf-posix-tests (Files): Likewise.
26652         * modules/vprintf-posix-tests (Files): Likewise.
26653         * modules/vsnprintf-posix-tests (Files): Likewise.
26654         * modules/vsnprintf-tests (Files): Likewise.
26655         * modules/vsprintf-posix-tests (Files): Likewise.
26656         * modules/wcrtomb-tests (Files): Likewise.
26657         * modules/wcsnrtombs-tests (Files): Likewise.
26658         * modules/wcsrtombs-tests (Files): Likewise.
26659         * modules/wctype-tests (Files): Likewise.
26660         * modules/wcwidth-tests (Files): Likewise.
26661         * modules/xmemdup0-tests (Files): Likewise.
26662         * modules/xprintf-posix-tests (Files): Likewise.
26663         * modules/xvasprintf-tests (Files): Likewise.
26664
26665 2009-12-24  Eric Blake  <ebb9@byu.net>
26666
26667         test-nanosleep: fix typo
26668         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26669         patch.
26670         Reported by Bruno Haible.
26671
26672 2009-12-24  Bruno Haible  <bruno@clisp.org>
26673
26674         Reduce namespace pollution on glibc systems.
26675         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26676         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26677         systems.
26678         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26679         <getopt.h> on glibc systems.
26680         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26681         systems.
26682         * lib/fcntl.c: Include <unistd.h> here instead.
26683
26684 2009-12-24  Bruno Haible  <bruno@clisp.org>
26685
26686         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26687
26688 2009-12-24  Eric Blake  <ebb9@byu.net>
26689
26690         tests: add signature checks
26691         * tests/signature.h (SIGNATURE_CHECK): New file.
26692         * modules/atexit-tests (Files): Use it.
26693         * modules/btowc-tests (Files): Likewise.
26694         * modules/canonicalize-lgpl-tests (Files): Likewise.
26695         * modules/ceilf-tests (Files): Likewise.
26696         * modules/ceill-tests (Files): Likewise.
26697         * modules/chown-tests (Files): Likewise.
26698         * modules/dprintf-posix-tests (Files): Likewise.
26699         * modules/dup2-tests (Files): Likewise.
26700         * modules/dup3-tests (Files): Likewise.
26701         * modules/duplocale-tests (Files): Likewise.
26702         * modules/fchdir-tests (Files): Likewise.
26703         * modules/fcntl-tests (Files): Likewise.
26704         * modules/fdopendir-tests (Files): Likewise.
26705         * modules/fflush-tests (Files): Likewise.
26706         * modules/flock-tests (Files): Likewise.
26707         * modules/floorf-tests (Files): Likewise.
26708         * modules/floorl-tests (Files): Likewise.
26709         * modules/fnmatch-tests (Files): Likewise.
26710         * modules/fopen-tests (Files): Likewise.
26711         * modules/fprintf-posix-tests (Files): Likewise.
26712         * modules/freopen-tests (Files): Likewise.
26713         * modules/frexp-nolibm-tests (Files): Likewise.
26714         * modules/frexp-tests (Files): Likewise.
26715         * modules/frexpl-nolibm-tests (Files): Likewise.
26716         * modules/frexpl-tests (Files): Likewise.
26717         * modules/fseek-tests (Files): Likewise.
26718         * modules/fseeko-tests (Files): Likewise.
26719         * modules/fsync-tests (Files): Likewise.
26720         * modules/ftell-tests (Files): Likewise.
26721         * modules/ftello-tests (Files): Likewise.
26722         * modules/futimens-tests (Files): Likewise.
26723         * modules/getaddrinfo-tests (Files): Likewise.
26724         * modules/getcwd-tests (Files): Likewise.
26725         * modules/getdelim-tests (Files): Likewise.
26726         * modules/getdtablesize-tests (Files): Likewise.
26727         * modules/getgroups-tests (Files): Likewise.
26728         * modules/gethostname-tests (Files): Likewise.
26729         * modules/getline-tests (Files): Likewise.
26730         * modules/getopt-posix-tests (Files): Likewise.
26731         * modules/gettimeofday-tests (Files): Likewise.
26732         * modules/glob-tests (Files): Likewise.
26733         * modules/iconv-tests (Files): Likewise.
26734         * modules/inet_ntop-tests (Files): Likewise.
26735         * modules/inet_pton-tests (Files): Likewise.
26736         * modules/isblank-tests (Files): Likewise.
26737         * modules/lchown-tests (Files): Likewise.
26738         * modules/ldexpl-tests (Files): Likewise.
26739         * modules/link-tests (Files): Likewise.
26740         * modules/linkat-tests (Files): Likewise.
26741         * modules/lseek-tests (Files): Likewise.
26742         * modules/lstat-tests (Files): Likewise.
26743         * modules/mbrtowc-tests (Files): Likewise.
26744         * modules/mbsinit-tests (Files): Likewise.
26745         * modules/mbsnrtowcs-tests (Files): Likewise.
26746         * modules/mbsrtowcs-tests (Files): Likewise.
26747         * modules/memchr-tests (Files): Likewise.
26748         * modules/memcmp-tests (Files): Likewise.
26749         * modules/memmem-tests (Files): Likewise.
26750         * modules/memrchr-tests (Files): Likewise.
26751         * modules/mkdir-tests (Files): Likewise.
26752         * modules/mkfifo-tests (Files): Likewise.
26753         * modules/mkfifoat-tests (Files): Likewise.
26754         * modules/mknod-tests (Files): Likewise.
26755         * modules/nanosleep-tests (Files): Likewise.
26756         * modules/nl_langinfo-tests (Files): Likewise.
26757         * modules/obstack-printf-tests (Files): Likewise.
26758         * modules/open-tests (Files): Likewise.
26759         * modules/openat-tests (Files): Likewise.
26760         * modules/perror-tests (Files): Likewise.
26761         * modules/pipe2-tests (Files): Likewise.
26762         * modules/poll-tests (Files): Likewise.
26763         * modules/popen-tests (Files): Likewise.
26764         * modules/posix_spawn-tests (Files): Likewise.
26765         * modules/posix_spawnp-tests (Files): Likewise.
26766         * modules/pread-tests (Files): Likewise.
26767         * modules/printf-posix-tests (Files): Likewise.
26768         * modules/pty-tests (Files): Likewise.
26769         * modules/random_r-tests (Files): Likewise.
26770         * modules/rawmemchr-tests (Files): Likewise.
26771         * modules/readlink-tests (Files): Likewise.
26772         * modules/remove-tests (Files): Likewise.
26773         * modules/rename-tests (Files): Likewise.
26774         * modules/renameat-tests (Files): Likewise.
26775         * modules/rmdir-tests (Files): Likewise.
26776         * modules/round-tests (Files): Likewise.
26777         * modules/roundf-tests (Files): Likewise.
26778         * modules/roundl-tests (Files): Likewise.
26779         * modules/select-tests (Files): Likewise.
26780         * modules/setenv-tests (Files): Likewise.
26781         * modules/sigaction-tests (Files): Likewise.
26782         * modules/sleep-tests (Files): Likewise.
26783         * modules/snprintf-posix-tests (Files): Likewise.
26784         * modules/snprintf-tests (Files): Likewise.
26785         * modules/sprintf-posix-tests (Files): Likewise.
26786         * modules/stat-tests (Files): Likewise.
26787         * modules/strcasestr-tests (Files): Likewise.
26788         * modules/strchrnul-tests (Files): Likewise.
26789         * modules/strerror-tests (Files): Likewise.
26790         * modules/strsignal-tests (Files): Likewise.
26791         * modules/strstr-tests (Files): Likewise.
26792         * modules/strtod-tests (Files): Likewise.
26793         * modules/strverscmp-tests (Files): Likewise.
26794         * modules/symlink-tests (Files): Likewise.
26795         * modules/symlinkat-tests (Files): Likewise.
26796         * modules/times-tests (Files): Likewise.
26797         * modules/trunc-tests (Files): Likewise.
26798         * modules/truncf-tests (Files): Likewise.
26799         * modules/truncl-tests (Files): Likewise.
26800         * modules/tsearch-tests (Files): Likewise.
26801         * modules/uname-tests (Files): Likewise.
26802         * modules/unlink-tests (Files): Likewise.
26803         * modules/unsetenv-tests (Files): Likewise.
26804         * modules/usleep-tests (Files): Likewise.
26805         * modules/utimensat-tests (Files): Likewise.
26806         * modules/vasprintf-tests (Files): Likewise.
26807         * modules/vdprintf-posix-tests (Files): Likewise.
26808         * modules/vfprintf-posix-tests (Files): Likewise.
26809         * modules/vprintf-posix-tests (Files): Likewise.
26810         * modules/vsnprintf-posix-tests (Files): Likewise.
26811         * modules/vsnprintf-tests (Files): Likewise.
26812         * modules/vsprintf-posix-tests (Files): Likewise.
26813         * modules/wcrtomb-tests (Files): Likewise.
26814         * modules/wcsnrtombs-tests (Files): Likewise.
26815         * modules/wcsrtombs-tests (Files): Likewise.
26816         * modules/wcwidth-tests (Files): Likewise.
26817         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26818         * tests/test-isinf.c (isinf): Likewise.
26819         * tests/test-isnan.c (isnan): Likewise.
26820         * tests/test-signbit.c (signbit): Likewise.
26821         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26822         declaration, either as macro or with correct signature.
26823         (select): Ensure function under test is declared with correct
26824         signature in correct header.
26825         * tests/test-atexit.c (atexit): Likewise.
26826         * tests/test-btowc.c (btowc): Likewise.
26827         * tests/test-canonicalize-lgpl.c (realpath)
26828         (canonicalize_file_name): Likewise.
26829         * tests/test-ceilf1.c (ceilf): Likewise.
26830         * tests/test-ceill.c (ceill): Likewise.
26831         * tests/test-chown.c (chown): Likewise.
26832         * tests/test-dprintf-posix.c (dprintf): Likewise.
26833         * tests/test-dup2.c (dup2): Likewise.
26834         * tests/test-dup3.c (dup3): Likewise.
26835         * tests/test-duplocale.c (duplocale): Likewise.
26836         * tests/test-fchdir.c (fchdir): Likewise.
26837         * tests/test-fchownat.c (fchownat): Likewise.
26838         * tests/test-fcntl.c (fcntl): Likewise.
26839         * tests/test-fdopendir.c (fdopendir): Likewise.
26840         * tests/test-fflush.c (fflush): Likewise.
26841         * tests/test-flock.c (flock): Likewise.
26842         * tests/test-floorf1.c (floorf): Likewise.
26843         * tests/test-floorl.c (floorl): Likewise.
26844         * tests/test-fnmatch.c (fnmatch): Likewise.
26845         * tests/test-fopen.c (fopen): Likewise.
26846         * tests/test-fprintf-posix.c (fprintf): Likewise.
26847         * tests/test-freopen.c (freopen): Likewise.
26848         * tests/test-frexp.c (frexp): Likewise.
26849         * tests/test-frexpl.c (frexpl): Likewise.
26850         * tests/test-fseek.c (fseek): Likewise.
26851         * tests/test-fseeko.c (fseeko): Likewise.
26852         * tests/test-fstatat.c (fstatat): Likewise.
26853         * tests/test-fsync.c (fsync): Likewise.
26854         * tests/test-ftell.c (ftell): Likewise.
26855         * tests/test-ftello.c (ftello): Likewise.
26856         * tests/test-futimens.c (futimens): Likewise.
26857         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26858         (gai_strerror): Likewise.
26859         * tests/test-getcwd.c (getcwd): Likewise.
26860         * tests/test-getdelim.c (getdelim): Likewise.
26861         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26862         * tests/test-getgroups.c (getgroups): Likewise.
26863         * tests/test-gethostname.c (gethostname): Likewise.
26864         * tests/test-getline.c (getline): Likewise.
26865         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26866         Likewise.
26867         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26868         * tests/test-glob.c (glob, globfree): Likewise.
26869         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26870         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26871         * tests/test-inet_pton.c (inet_pton): Likewise.
26872         * tests/test-isblank.c (isblank): Likewise.
26873         * tests/test-lchown.c (lchown): Likewise.
26874         * tests/test-ldexpl.c (ldexpl): Likewise.
26875         * tests/test-link.c (link): Likewise.
26876         * tests/test-linkat.c (linkat): Likewise.
26877         * tests/test-lseek.c (lseek): Likewise.
26878         * tests/test-lstat.c (lstat): Likewise.
26879         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26880         * tests/test-mbsinit.c (mbsinit): Likewise.
26881         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26882         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26883         * tests/test-memchr.c (memchr): Likewise.
26884         * tests/test-memcmp.c (memcmp): Likewise.
26885         * tests/test-memmem.c (memmem): Likewise.
26886         * tests/test-memrchr.c (memrchr): Likewise.
26887         * tests/test-mkdir.c (mkdir): Likewise.
26888         * tests/test-mkdirat.c (mkdirat): Likewise.
26889         * tests/test-mkfifo.c (mkfifo): Likewise.
26890         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26891         * tests/test-mknod.c (mknod): Likewise.
26892         * tests/test-nanosleep.c (nanosleep): Likewise.
26893         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26894         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26895         Likewise.
26896         * tests/test-open.c (open): Likewise.
26897         * tests/test-openat.c (openat): Likewise.
26898         * tests/test-perror.c (perror): Likewise.
26899         * tests/test-pipe2.c (pipe2): Likewise.
26900         * tests/test-poll.c (poll): Likewise.
26901         * tests/test-popen.c (popen, pclose): Likewise.
26902         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26903         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26904         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26905         (posix_spawn_file_actions_destroy)
26906         (posix_spawn_file_actions_addclose)
26907         (posix_spawn_file_actions_addopen)
26908         (posix_spawn_file_actions_adddup2): Likewise.
26909         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26910         * tests/test-pread.c (pread): Likewise.
26911         * tests/test-printf-posix.c (printf): Likewise.
26912         * tests/test-pty.c (openpty, forkpty): Likewise.
26913         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26914         (random_r): Likewise.
26915         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26916         * tests/test-readlink.c (readlink): Likewise.
26917         * tests/test-remove.c (remove): Likewise.
26918         * tests/test-rename.c (rename): Likewise.
26919         * tests/test-renameat.c (renameat): Likewise.
26920         * tests/test-rmdir.c (rmdir): Likewise.
26921         * tests/test-round1.c (round): Likewise.
26922         * tests/test-roundf1.c (roundf): Likewise.
26923         * tests/test-roundl.c (roundl): Likewise.
26924         * tests/test-setenv.c (setenv): Likewise.
26925         * tests/test-sigaction.c (sigaction): Likewise.
26926         * tests/test-sleep.c (sleep): Likewise.
26927         * tests/test-snprintf.c (snprintf): Likewise.
26928         * tests/test-sprintf-posix.c (sprintf): Likewise.
26929         * tests/test-stat.c (stat): Likewise.
26930         * tests/test-stpncpy.c (stpncpy): Likewise.
26931         * tests/test-strcasestr.c (strcasestr): Likewise.
26932         * tests/test-strchrnul.c (strchrnul): Likewise.
26933         * tests/test-strerror.c (strerror): Likewise.
26934         * tests/test-strsignal.c (strsignal): Likewise.
26935         * tests/test-strstr.c (strstr): Likewise.
26936         * tests/test-strtod.c (strtod): Likewise.
26937         * tests/test-strverscmp.c (strverscmp): Likewise.
26938         * tests/test-symlink.c (symlink): Likewise.
26939         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26940         * tests/test-times.c (times): Likewise.
26941         * tests/test-trunc1.c (trunc): Likewise.
26942         * tests/test-truncf1.c (truncf): Likewise.
26943         * tests/test-truncl.c (truncl): Likewise.
26944         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26945         Likewise.
26946         * tests/test-uname.c (uname): Likewise.
26947         * tests/test-unlink.c (unlink): Likewise.
26948         * tests/test-unlinkat.c (unlinkat): Likewise.
26949         * tests/test-unsetenv.c (unsetenv): Likewise.
26950         * tests/test-usleep.c (usleep): Likewise.
26951         * tests/test-utimensat.c (utimensat): Likewise.
26952         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
26953         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
26954         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
26955         * tests/test-vprintf-posix.c (vprintf): Likewise.
26956         * tests/test-vsnprintf.c (vsnprintf): Likewise.
26957         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
26958         * tests/test-wcrtomb.c (wcrtomb): Likewise.
26959         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
26960         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
26961         * tests/test-wcwidth.c (wcwidth): Likewise.
26962
26963         build: pull in conditional headers during GNULIB_POSIXCHECK
26964         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
26965         definitions from any conditionally-included headers.
26966         * lib/stdlib.in.h (includes): Likewise.
26967         * lib/unistd.in.h (includes): Likewise.
26968
26969 2009-12-24  Bruno Haible  <bruno@clisp.org>
26970
26971         * tests/test-argv-iter.c: Include header file being tested immediately
26972         after config.h.
26973         * tests/test-base64.c: Likewise.
26974         * tests/test-flock.c: Likewise.
26975         * tests/test-fsync.c: Likewise.
26976         * tests/test-getdate.c: Likewise.
26977         * tests/test-getndelim2.c: Likewise.
26978         * tests/test-isfinite.c: Likewise.
26979         * tests/test-isinf.c: Likewise.
26980         * tests/test-strerror.c: Likewise.
26981         * tests/test-strsignal.c: Likewise.
26982
26983 2009-12-23  Eric Blake  <ebb9@byu.net>
26984
26985         unistd: work around cygwin bug
26986         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
26987         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
26988         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
26989
26990 2009-12-23  Bruno Haible  <bruno@clisp.org>
26991
26992         localename: More tests.
26993         * tests/test-localename.c (SIZEOF): New macro.
26994         (categories): New variable.
26995         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
26996         test_locale_name_default): Add test w.r.t. thread locale.
26997         (test_locale_name_thread): New function.
26998         (main): Invoke it.
26999
27000         localename: Make aware of thread locale.
27001         * lib/localename.h (gl_locale_name_thread): New declaration.
27002         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27003         behaviour with respect to thread locale.
27004         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27005         <langinfo.h>, glthread/lock.h.
27006         (SIZE_BITS): New macro.
27007         (string_hash): New function.
27008         (struct hash_node): New type.
27009         (HASH_TABLE_SIZE): New macro.
27010         (struniq_hash_table, struniq_lock): New variables.
27011         (struniq): New function.
27012         (gl_locale_name_thread): New function.
27013         (gl_locale_name): Invoke it.
27014         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27015         * modules/localename (Depends-on): Add lock.
27016         Reported by Mike Gran <spk121@yahoo.com>.
27017
27018 2009-12-23  Eric Blake  <ebb9@byu.net>
27019
27020         va-args: new module
27021         * modules/va-args: New file.
27022         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27023         * MODULES.html.sh (Core language properties): Mention it.
27024
27025         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27026         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27027         named alias for __attribute__((__unused__)).
27028         * lib/chown.c: Update client.
27029         * lib/fchmodat.c: Likewise.
27030         * lib/fts.c: Likewise.
27031         * lib/getdate.y: Likewise.
27032         * lib/getgroups.c: Likewise.
27033         * lib/getopt.c: Likewise.
27034         * lib/getugroups.c: Likewise.
27035         * lib/mkdir.c: Likewise.
27036         * lib/mkfifo.c: Likewise.
27037         * lib/mkfifoat.c: Likewise.
27038         * lib/mknod.c: Likewise.
27039         * lib/mknodat.c: Likewise.
27040         * lib/readlink.c: Likewise.
27041         * lib/se-context.in.h: Likewise.
27042         * lib/se-selinux.in.h: Likewise.
27043         * lib/sockets.c: Likewise.
27044         * lib/symlink.c: Likewise.
27045         * lib/symlinkat.c: Likewise.
27046         * lib/unicodeio.c: Likewise.
27047         * lib/unistr.h: Likewise.
27048         * tests/test-areadlink.c: Likewise.
27049         * tests/test-areadlinkat.c: Likewise.
27050         * tests/test-filenamecat.c: Likewise.
27051         * tests/test-fseeko.c: Likewise.
27052         * tests/test-ftello.c: Likewise.
27053         * tests/test-getdate.c: Likewise.
27054         * tests/test-getgroups.c: Likewise.
27055         * tests/test-gethostname.c: Likewise.
27056         * tests/test-quotearg.c: Likewise.
27057         * tests/test-version-etc.c: Likewise.
27058         * tests/test-xalloc-die.c: Likewise.
27059         * tests/test-xfprintf-posix.c: Likewise.
27060         * tests/test-xprintf-posix.c: Likewise.
27061         * tests/test-xvasprintf.c: Likewise.
27062
27063         tests: avoid compiler warnings
27064         * tests/test-fcntl.c (main): Delete unused parameters.
27065         * tests/test-freopen-safer.c (main): Likewise.
27066         * tests/test-xalloc-die.c (main): Mark unused parameters.
27067         * tests/test-fseeko.c (main): Likewise.
27068         * tests/test-ftello.c (main): Likewise.
27069         * tests/test-nanosleep.c (main): Avoid declaration warning.
27070         * tests/test-sleep.c (main): Likewise.
27071         * tests/test-unsetenv.c (main): Silence warning about string
27072         literal.
27073         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27074
27075 2009-12-23  Bruno Haible  <bruno@clisp.org>
27076
27077         * tests/test-localename.c (test_locale_name): New function, extracted
27078         from main. Also test mixed situations.
27079         (test_locale_name_posix, test_locale_name_environ,
27080         test_locale_name_default): New functions.
27081         (main): Invoke them all.
27082         * modules/localename-tests (configure.ac): Test for newlocale.
27083
27084 2009-12-23  Bruno Haible  <bruno@clisp.org>
27085
27086         unistd: Ensure getcwd gets declared before being overridden.
27087         * lib/unistd.in.h: Conditionally include <io.h>.
27088
27089 2009-12-22  Bruno Haible  <bruno@clisp.org>
27090
27091         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27092         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27093         (gl_WCHAR_H): Invoke it.
27094         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27095         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27096         Reported by Karl Berry <karl@freefriends.org>.
27097
27098 2009-12-22  Eric Blake  <ebb9@byu.net>
27099
27100         math, unistd: avoid redundant includes
27101         * lib/math.in.h (isnan): No need to re-include <math.h>.
27102         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27103
27104         getsubopt: work around cygwin bug
27105         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27106         avoid conflicting with system getsubopt.
27107         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27108         bug.
27109
27110         getopt: synchronize from glibc
27111         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27112         parameter order.  Adjust all callers.
27113         (_getopt_internal_r, main): Adjust quoting in error messages.
27114         Drop considerations for outdated POSIX 1003.2 error message.
27115         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27116         callers.
27117         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27118
27119         test-getopt: test stderr behavior
27120         * modules/getopt-posix-tests (Depends-on): Add dup2.
27121         * tests/test-getopt.c (ASSERT): Avoid stderr.
27122         (main): Move stderr to a temporary file.
27123         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27124         Instead, add parameter to inform caller if output occurred.
27125         (test_getopt): Adjust all existing tests to expect silence, and
27126         add new tests of leading ":".
27127         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27128         glibc shortcomings with leading "-:" or "+:" in optstring.
27129         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27130         Likewise.
27131         * doc/posix-functions/getopt.texi (getopt): Likewise.
27132
27133         test-getopt: enhance test
27134         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27135         supports optind=0.
27136         * tests/test-getopt.c (OPTIND_MIN): Move...
27137         * tests/test-getopt.h (OPTIND_MIN): ...here.
27138         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27139         Require that optind=0 works, since modern BSD supports it in
27140         addition to optreset, and since coreutils expects it.
27141         (test_getopt_long_only): New test.
27142         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27143         glibc shortcomings with 'W;', and enforcement of optind=0.
27144         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27145         Likewise.
27146
27147 2009-12-21  Bruno Haible  <bruno@clisp.org>
27148
27149         localename: Improvements for MacOS X and Cygwin.
27150         * lib/localename.h (gl_locale_name_environ): New declaration.
27151         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27152         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27153         (gl_locale_name_posix): Invoke it.
27154         (gl_locale_name_default): Add comments. Use Windows native API also on
27155         Cygwin.
27156
27157 2009-12-21  Bruno Haible  <bruno@clisp.org>
27158
27159         Update list of Win32 locale ids.
27160         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27161         (LANG_SAMI): Renamed from LANG_SAAMI.
27162         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27163         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27164         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27165         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27166         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27167         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27168         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27169         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27170         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27171         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27172         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27173         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27174         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27175         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27176         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27177         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27178         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27179         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27180         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27181         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27182         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27183         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27184         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27185         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27186         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27187         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27188         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27189         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27190         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27191         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27192         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27193         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27194         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27195         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27196         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27197         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27198         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27199         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27200         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27201         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27202         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27203         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27204         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27205         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27206         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27207         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27208         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27209         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27210         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27211         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27212         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27213         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27214         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27215         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27216         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27217         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27218         Add more languages and countries for Sami, Sorbian. Add more countries
27219         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27220         for Pashto. Change country for Syriac, Tswana.
27221
27222 2009-12-21  Eric Blake  <ebb9@byu.net>
27223
27224         test-utimens: avoid spurious failure
27225         * tests/test-chown.h (nap): Factor...
27226         * tests/nap.h: ...into new file.
27227         * tests/test-lchown.h (nap): Avoid duplication.
27228         * tests/test-utimens-common.h (nap): Use shared implementation,
27229         necessary on file systems with 1-second resolution.
27230         * modules/chown-tests (Files): Include new file.
27231         * modules/fdutimensat-tests (Files): Likewise.
27232         * modules/futimens-tests (Files): Likewise.
27233         * modules/lchown-tests (Files): Likewise.
27234         * modules/openat-tests (Files): Likewise.
27235         * modules/utimens-tests (Files): Likewise.
27236         * modules/utimensat-tests (Files): Likewise.
27237
27238 2009-12-19  Eric Blake  <ebb9@byu.net>
27239
27240         futimens, utimensat: work around Linux bug
27241         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27242         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27243         * lib/utimensat.c (rpl_utimensat): Work around it.
27244         * lib/futimens.c (rpl_futimens): Adjust comment.
27245
27246         utimens: work around Linux ctime bug
27247         * lib/utimens.c (detect_ctime_bug): New helper function.
27248         (update_timespec): Differentiate between workaround needed for
27249         this bug vs. what is needed for systems that lack utimensat.
27250         (fdutimens, lutimens): Work around bug.
27251
27252         utimens: check for ctime update
27253         * tests/test-utimens-common.h (check_ctime): Define.
27254         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27255         * tests/test-futimens.h (test_futimens): Likewise.
27256         * tests/test-lutimens.h (test_lutimens): Likewise.
27257         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27258         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27259
27260 2009-12-19  Bruno Haible  <bruno@clisp.org>
27261
27262         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27263         * tests/test-dprintf-posix2.sh: New file.
27264         * tests/test-dprintf-posix2.c: New file.
27265         * modules/dprintf-posix-tests (Files): Add them.
27266         (configure.ac): Check for getrlimit and setrlimit.
27267         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27268
27269 2009-12-19  Bruno Haible  <bruno@clisp.org>
27270
27271         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27272         * tests/test-fprintf-posix3.sh: New file.
27273         * tests/test-fprintf-posix3.c: New file.
27274         * modules/fprintf-posix-tests (Files): Add them.
27275         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27276
27277 2009-12-19  Eric Blake  <ebb9@byu.net>
27278
27279         dirfd: fix prototype
27280         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27281         * lib/dirfd.c (dirfd): Likewise.
27282
27283         canonicalize: reduce memory usage
27284         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27285         allocation to size.
27286         Reported by Solar Designer <solar@openwall.com>.
27287
27288 2009-12-19  Bruno Haible  <bruno@clisp.org>
27289
27290         New module attribute 'Applicability'.
27291         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27292         * gnulib-tool: New option --extract-applicability.
27293         (func_usage): Document it.
27294         (sed_extract_prog): Recognize it.
27295         (func_get_applicability): New function.
27296         (func_import): Generalize handling of 'link-warning' module.
27297         * modules/link-warning (Applicability): New section.
27298         * modules/arg-nonnull (Applicability): New section.
27299         Repoted by Simon Josefsson <simon@josefsson.org>.
27300
27301 2009-12-19  Bruno Haible  <bruno@clisp.org>
27302
27303         fflush: tweak
27304         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27305         * lib/fseeko.c (rpl_fseeko): Likewise.
27306
27307 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27308
27309         * lib/gl_list.h: Fix typo in comment.
27310
27311 2009-12-16  Eric Blake  <ebb9@byu.net>
27312
27313         fcntl: use to simplify other modules
27314         * modules/cloexec (Depends-on): Add fcntl.
27315         * modules/fchdir (Depends-on): Likewise.
27316         * modules/fd-safer-flag (Depends-on): Likewise.
27317         * modules/unistd-safer (Depends-on): Likewise.
27318         * modules/dup3 (configure.ac): Set module indicator.
27319         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27320         missing.
27321         * lib/fchdir.c (_gl_register_dup): Fix comment.
27322         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27323         * lib/dup-safer.c (dup_safer): Likewise.
27324         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27325         * lib/dup3.c (dup3): Likewise.
27326         * tests/test-fchdir.c (main): Enhance test.
27327         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27328
27329         fcntl: port portions of fcntl to mingw
27330         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27331         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27332         replacement for mingw.
27333         * modules/fcntl (Description): Update.
27334         (Depends-on): Add dup2.
27335         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27336         * modules/fcntl-h (Makefile.am): Substitute it.
27337         * lib/fcntl.in.h (fcntl): Update declaration.
27338         (F_DUPFD, F_GETFD): New macros, when needed.
27339         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27340         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27341         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27342         we now guarantee.
27343
27344         fcntl: work around cygwin bug in F_DUPFD
27345         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27346         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27347         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27348         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27349         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27350
27351         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27352         * modules/fcntl (Files): List new files.
27353         (configure.ac): Run a test.
27354         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27355         * lib/fcntl.c (rpl_fcntl): Likewise.
27356         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27357         (gl_FCNTL_H): Always replace fcntl.h.
27358         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27359         * lib/fcntl.in.h (fcntl): Declare replacement.
27360         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27361         needed, plus a witness.
27362         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27363         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27364         * tests/test-fcntl.c: New file.
27365         * modules/fcntl-tests: Likewise.
27366
27367         binary-io: avoid potential compilation warning
27368         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27369         directives.
27370
27371         fflush: avoid compilation error on NetBSD
27372         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27373         between off_t and fpos_t, since the latter is sometimes a struct.
27374         * lib/fseeko.c (rpl_fseeko): Likewise.
27375         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27376
27377 2009-12-15  Eric Blake  <ebb9@byu.net>
27378
27379         fcntl-h, stdio, sys_ioctl: fix declarations
27380         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27381         function must not take arguments.
27382         * lib/sys_ioctl.in.h (ioctl): Likewise.
27383         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27384         (open): Add a link warning.
27385
27386 2009-12-15  Jim Meyering  <meyering@redhat.com>
27387
27388         areadlink, areadlink-with-size: relax license to LGPLv2+
27389         * modules/areadlink (License): Relax to LGPLv2+.
27390         * modules/areadlink-with-size (License): Likewise.
27391
27392 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27393             Bruno Haible  <bruno@clisp.org>
27394
27395         *printf: Fix memory leak.
27396         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27397         * lib/vfprintf.c (vfprintf): Likewise.
27398         * lib/dprintf.c (dprintf): Likewise.
27399         * lib/vdprintf.c (vdprintf): Likewise.
27400
27401 2009-12-14  Eric Blake  <ebb9@byu.net>
27402
27403         accept4: adjust module dependencies
27404         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27405
27406         utimens: one more try at avoiding compiler warning
27407         * lib/utimens.c (lutimens): Lower scope of result.
27408
27409 2009-12-13  Bruno Haible  <bruno@clisp.org>
27410
27411         Move the malloc checking from module 'list' to new module 'xlist'.
27412         * modules/xlist: New file.
27413         * lib/gl_xlist.h: New file.
27414         * lib/gl_xlist.c: New file.
27415         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27416         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27417         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27418         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27419         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27420         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27421         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27422         gl_sortedlist_nx_add): New declarations.
27423         (struct gl_list_implementation): Rename and change methods accordingly.
27424         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27425         (gl_list_nx_create): Renamed from gl_list_create.
27426         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27427         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27428         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27429         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27430         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27431         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27432         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27433         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27434         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27435         gl_list_create_empty.
27436         (gl_list_nx_create): Renamed from gl_list_create.
27437         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27438         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27439         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27440         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27441         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27442         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27443         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27444         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27445         * lib/gl_array_list.c: Don't include xalloc.h.
27446         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27447         NULL upon out-of-memory.
27448         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27449         out-of-memory.
27450         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27451         Change return type to 'int'.
27452         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27453         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27454         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27455         upon out-of-memory.
27456         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27457         upon out-of-memory.
27458         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27459         upon out-of-memory.
27460         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27461         upon out-of-memory.
27462         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27463         out-of-memory.
27464         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27465         Update.
27466         (gl_array_list_implementation): Update.
27467         * lib/gl_carray_list.c: Don't include xalloc.h.
27468         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27469         Return NULL upon out-of-memory.
27470         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27471         out-of-memory.
27472         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27473         Change return type to 'int'.
27474         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27475         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27476         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27477         upon out-of-memory.
27478         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27479         upon out-of-memory.
27480         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27481         out-of-memory.
27482         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27483         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27484         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27485         Update.
27486         (gl_carray_list_implementation): Update.
27487         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27488         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27489         gl_linked_create_empty. Return NULL upon out-of-memory.
27490         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27491         out-of-memory.
27492         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27493         Change return type to 'int'. Return -1 upon out-of-memory.
27494         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27495         out-of-memory.
27496         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27497         upon out-of-memory.
27498         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27499         upon out-of-memory.
27500         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27501         NULL upon out-of-memory.
27502         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27503         upon out-of-memory.
27504         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27505         out-of-memory.
27506         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27507         Update.
27508         * lib/gl_linked_list.c: Don't include xalloc.h.
27509         (gl_linked_list_implementation): Update.
27510         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27511         (add_to_bucket): Change return type to 'int'.
27512         (gl_linkedhash_list_implementation): Update.
27513         * lib/gl_anytree_list1.h (free_subtree): New function.
27514         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27515         gl_tree_create_empty. Return NULL upon out-of-memory.
27516         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27517         Change return type to 'int'. Return -1 upon out-of-memory.
27518         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27519         out-of-memory.
27520         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27521         (gl_tree_remove_node): New function, moved here from
27522         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27523         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27524         Update.
27525         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27526         malloc, not xmalloc. Return NULL upon out-of-memory.
27527         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27528         out-of-memory.
27529         (gl_tree_remove_node_from_tree): New function, extracted from
27530         gl_tree_remove_node.
27531         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27532         upon out-of-memory.
27533         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27534         out-of-memory.
27535         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27536         upon out-of-memory.
27537         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27538         upon out-of-memory.
27539         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27540         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27541         not xmalloc. Return NULL upon out-of-memory.
27542         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27543         out-of-memory.
27544         (gl_tree_remove_node_from_tree): New function, extracted from
27545         gl_tree_remove_node.
27546         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27547         upon out-of-memory.
27548         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27549         out-of-memory.
27550         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27551         upon out-of-memory.
27552         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27553         upon out-of-memory.
27554         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27555         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27556         gl_anytree_list1.h before gl_anyavltree_list2.h.
27557         (gl_avltree_list_implementation): Update.
27558         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27559         gl_anytree_list1.h before gl_anyavltree_list2.h.
27560         (gl_rbtree_list_implementation): Update.
27561         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27562         Change return type to 'int'. Return -1 upon out-of-memory. Use
27563         __builtin_expect.
27564         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27565         (gl_avltreehash_list_implementation): Update.
27566         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27567         (gl_rbtreehash_list_implementation): Update.
27568         * modules/array-list (Depends-on): Remove xalloc.
27569         * modules/carray-list (Depends-on): Likewise.
27570         * modules/linked-list (Depends-on): Likewise.
27571         * modules/linkedhash-list (Depends-on): Likewise.
27572         * modules/avltree-list (Depends-on): Likewise.
27573         * modules/rbtree-list (Depends-on): Likewise.
27574         * modules/avltreehash-list (Depends-on): Likewise.
27575         * modules/rbtreehash-list (Depends-on): Likewise.
27576
27577         * modules/xsublist: New file.
27578         * lib/gl_xsublist.h: New file.
27579         * lib/gl_xsublist.c: New file.
27580         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27581         (gl_sublist_nx_create): New declaration.
27582         * lib/gl_sublist.c: Don't include xalloc.h.
27583         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27584         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27585         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27586         Change return type to 'int'. Return -1 upon out-of-memory.
27587         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27588         upon out-of-memory.
27589         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27590         NULL upon out-of-memory.
27591         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27592         upon out-of-memory.
27593         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27594         NULL upon out-of-memory.
27595         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27596         NULL upon out-of-memory.
27597         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27598         upon out-of-memory.
27599         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27600         (gl_sublist_list_implementation): Update.
27601         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27602         upon out-of-memory.
27603         * modules/sublist (Depends-on): Remove xalloc.
27604
27605         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27606         * tests/test-carray_list.c: Likewise.
27607         * tests/test-linked_list.c: Likewise.
27608         * tests/test-linkedhash_list.c: Likewise.
27609         * tests/test-avltree_list.c: Likewise.
27610         * tests/test-rbtree_list.c: Likewise.
27611         * tests/test-avltreehash_list.c: Likewise.
27612         * tests/test-rbtreehash_list.c: Likewise.
27613         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27614         * modules/carray-list-tests (Makefile.am): Likewise.
27615         * modules/linked-list-tests (Makefile.am): Likewise.
27616         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27617         * modules/avltree-list-tests (Makefile.am): Likewise.
27618         * modules/rbtree-list-tests (Makefile.am): Likewise.
27619         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27620         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27621
27622         * NEWS: Mention the changes.
27623
27624         * lib/clean-temp.c: Include gl_xlist.h.
27625         * modules/clean-temp (Depends-on): Add xlist.
27626
27627         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27628         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27629
27630         * tests/test-array_oset.c: Include gl_xlist.h.
27631         * modules/array-oset-tests (Depends-on): Add xlist.
27632
27633         Reported by José E. Marchesi <jemarch@gnu.org>.
27634
27635 2009-12-13  Bruno Haible  <bruno@clisp.org>
27636
27637         Move the malloc checking from module 'oset' to new module 'xoset'.
27638         * modules/xoset: New file.
27639         * lib/gl_xoset.h: New file.
27640         * lib/gl_xoset.c: New file.
27641         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27642         declarations.
27643         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27644         (struct gl_oset_implementation): Rename and change methods accordingly.
27645         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27646         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27647         'int'. Mark as __warn_unused_result__.
27648         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27649         gl_oset_create_empty.
27650         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27651         'int'.
27652         * lib/gl_array_oset.c: Don't include xalloc.h.
27653         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27654         malloc, not xmalloc.
27655         (grow): Change return type to 'int'. Don't call xalloc_die.
27656         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27657         to 'int'.
27658         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27659         'int'.
27660         (gl_array_oset_implementation): Update.
27661         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27662         gl_tree_create_empty.
27663         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27664         'int'.
27665         * lib/gl_avltree_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_avltree_oset_implementation): Update.
27673         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27674         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27675         xmalloc.
27676         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27677         not xmalloc.
27678         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27679         xmalloc.
27680         (gl_rbtree_oset_implementation): Update.
27681         * modules/array-oset (Depends-on): Remove xalloc.
27682         * modules/avltree-oset (Depends-on): Likewise.
27683         * modules/rbtree-oset (Depends-on): Likewise.
27684         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27685         * tests/test-avltree_oset.c: Likewise.
27686         * tests/test-rbtree_oset.c: Likewise.
27687         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27688         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27689         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27690         * NEWS: Mention the change.
27691
27692 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27693
27694         maint.mk: allow a project to override release-prep commands
27695         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27696         commands into a new rule.
27697         (release-prep): New rule.
27698         (release-prep-hook): New overridable variable.
27699
27700 2009-12-13  Bruno Haible  <bruno@clisp.org>
27701
27702         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27703
27704 2009-12-13  Jim Meyering  <meyering@redhat.com>
27705
27706         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27707         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27708
27709 2009-12-12  Bruno Haible  <bruno@clisp.org>
27710
27711         duplocale: Tweak.
27712         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27713
27714 2009-12-12  Karl Berry  <karl@gnu.org>
27715
27716         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27717
27718 2009-12-12  Bruno Haible  <bruno@clisp.org>
27719
27720         * m4/po.m4: Undo incorrect untabification.
27721
27722 2009-12-12  Bruno Haible  <bruno@clisp.org>
27723
27724         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27725         * modules/c-strtod (Depends-on): Add locale.
27726         * modules/c-strtold (Depends-on): Likewise.
27727
27728 2009-12-12  Bruno Haible  <bruno@clisp.org>
27729
27730         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27731
27732 2009-12-11  Eric Blake  <ebb9@byu.net>
27733
27734         setenv: relax requirement in light of POSIX ruling
27735         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27736         not NULL.
27737         * tests/test-setenv.c (main): Relax test.
27738         * tests/test-unsetenv.c (main): Likewise.
27739         * doc/posix-functions/setenv.texi (setenv): Document this.
27740         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27741
27742 2009-12-11  Bruno Haible  <bruno@clisp.org>
27743
27744         New module 'fd-safer-flag'.
27745         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27746         * lib/dup-safer.c (dup_safer_flag): Remove function.
27747         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27748         * lib/fd-safer.c (fd_safer_flag): Remove function.
27749         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27750         * modules/cloexec (configure.ac): Drop indicator macro.
27751         * modules/fd-safer-flag: New file.
27752         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27753         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27754         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27755
27756 2009-12-11  Bruno Haible  <bruno@clisp.org>
27757
27758         Tests for module 'nl_langinfo'.
27759         * modules/nl_langinfo-tests: New file.
27760         * tests/test-nl_langinfo.sh: New file.
27761         * tests/test-nl_langinfo.c: New file.
27762
27763         New module 'nl_langinfo'.
27764         * lib/nl_langinfo.c: New file.
27765         * m4/nl_langinfo.m4: New file.
27766         * modules/nl_langinfo: New file.
27767         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27768
27769 2009-12-11  Bruno Haible  <bruno@clisp.org>
27770
27771         Tests for module 'langinfo'.
27772         * modules/langinfo-tests: New file.
27773         * tests/test-langinfo.c: New file.
27774
27775         New module 'langinfo'.
27776         * lib/langinfo.in.h: New file.
27777         * m4/langinfo_h.m4: New file.
27778         * modules/langinfo: New file.
27779         * doc/posix-headers/langinfo.texi: Mention the new module.
27780
27781 2009-12-11  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/config.charset: Untabify.
27784
27785 2009-12-11  Bruno Haible  <bruno@clisp.org>
27786
27787         * modules/unistd-safer (configure.ac): Drop indicator macro.
27788
27789 2009-12-11  Bruno Haible  <bruno@clisp.org>
27790
27791         Move pipe2-safer code to its own file.
27792         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27793         * lib/pipe-safer.c (pipe2_safer): Remove function.
27794         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27795         (Makefile.am): Add it to lib_SOURCES.
27796
27797 2009-12-10  Bruno Haible  <bruno@clisp.org>
27798
27799         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27800
27801 2009-12-10  Bruno Haible  <bruno@clisp.org>
27802
27803         Declare which arguments expect non-NULL values, for GCC and clang.
27804         * build-aux/arg-nonnull.h: New file.
27805         * modules/arg-nonnull: New file.
27806         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27807         (inet_ntop, inet_pton): Use it.
27808         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27809         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27810         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27811         (open, openat): Use it.
27812         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27813         (fnmatch): Use it.
27814         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27815         (getopt, getopt_long, getopt_long_only): Use it.
27816         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27817         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27818         Use it.
27819         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27820         (iconv_open): Use it.
27821         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27822         (strtoimax, strtoumax): Use it.
27823         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27824         (duplocale): Use it.
27825         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27826         (frexp, frexpl): Use it.
27827         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27828         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27829         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27830         (tsearch, tfind, tdelete, twalk): Use it.
27831         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27832         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27833         sigpending): Use it.
27834         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27835         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27836         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27837         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27838         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27839         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27840         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27841         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27842         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27843         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27844         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27845         Use it.
27846         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27847         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27848         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27849         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27850         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27851         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27852         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27853         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27854         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27855         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27856         strtoull, unsetenv): Use it.
27857         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27858         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27859         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27860         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27861         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27862         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27863         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27864         (strcasecmp, strncasecmp): Use it.
27865         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27866         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27867         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27868         rpl_setsockopt): Use it.
27869         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27870         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27871         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27872         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27873         (gettimeofday): Use it.
27874         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27875         (times): Use it.
27876         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27877         (uname): Use it.
27878         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27879         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27880         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27881         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27882         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27883         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27884         unlinkat, write): Use it.
27885         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27886         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27887         * lib/argv-iter.h: Include arg-nonnull.h.
27888         (_ATTRIBUTE_NONNULL_): Remove macro.
27889         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27890         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27891         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27892         optimization.
27893         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27894         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27895         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27896         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27897         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27898         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27899         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27900         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27901         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27902         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27903         * modules/dirent (Depends-on): Add arg-nonnull.
27904         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27905         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27906         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27907         * modules/fnmatch (Depends-on): Add arg-nonnull.
27908         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27909         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27910         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27911         * modules/glob (Depends-on): Add arg-nonnull.
27912         (Makefile.am): Insert arg-nonnull.h into glob.h.
27913         * modules/iconv_open (Depends-on): Add arg-nonnull.
27914         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27915         * modules/inttypes (Depends-on): Add arg-nonnull.
27916         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27917         * modules/locale (Depends-on): Add arg-nonnull.
27918         (Makefile.am): Insert arg-nonnull.h into locale.h.
27919         * modules/math (Depends-on): Add arg-nonnull.
27920         (Makefile.am): Insert arg-nonnull.h into math.h.
27921         * modules/netdb (Depends-on): Add arg-nonnull.
27922         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27923         * modules/search (Depends-on): Add arg-nonnull.
27924         (Makefile.am): Insert arg-nonnull.h into search.h.
27925         * modules/signal (Depends-on): Add arg-nonnull.
27926         (Makefile.am): Insert arg-nonnull.h into signal.h.
27927         * modules/spawn (Depends-on): Add arg-nonnull.
27928         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27929         * modules/stdio (Depends-on): Add arg-nonnull.
27930         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27931         * modules/stdlib (Depends-on): Add arg-nonnull.
27932         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27933         * modules/string (Depends-on): Add arg-nonnull.
27934         (Makefile.am): Insert arg-nonnull.h into string.h.
27935         * modules/strings (Depends-on): Add arg-nonnull.
27936         (Makefile.am): Insert arg-nonnull.h into strings.h.
27937         * modules/sys_socket (Depends-on): Add arg-nonnull.
27938         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27939         * modules/sys_stat (Depends-on): Add arg-nonnull.
27940         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27941         * modules/sys_time (Depends-on): Add arg-nonnull.
27942         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27943         * modules/sys_times (Depends-on): Add arg-nonnull.
27944         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27945         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27946         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
27947         * modules/time (Depends-on): Add arg-nonnull.
27948         (Makefile.am): Insert arg-nonnull.h into time.h.
27949         * modules/unistd (Depends-on): Add arg-nonnull.
27950         (Makefile.am): Insert arg-nonnull.h into unistd.h.
27951         * modules/wchar (Depends-on): Add arg-nonnull.
27952         (Makefile.am): Insert arg-nonnull.h into wchar.h.
27953         * modules/argv-iter (Depends-on): Add arg-nonnull.
27954         * tests/test-canonicalize.c (null_ptr): New function.
27955         (main): Use it.
27956         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
27957         (main): Use it.
27958         * tests/test-memmem.c (null_ptr): New function.
27959         (main): Use it.
27960         Reported by Jim Meyering.
27961
27962 2009-12-10  Bruno Haible  <bruno@clisp.org>
27963
27964         Use spaces for indentation, not tabs.
27965         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
27966         * m4/*.m4: Untabify.
27967         * build-aux/*.h: Untabify.
27968         * tests/**/*.[hc]: Untabify.
27969         * README: New section "Indent with spaces, not TABs", based on
27970         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
27971         * NEWS: Mention the change.
27972
27973 2009-12-10  Bruno Haible  <bruno@clisp.org>
27974
27975         pty test: Fix link error.
27976         * modules/pty-tests (Makefile.am): Add the default LDADD value to
27977         test_pty_LDADD.
27978
27979 2009-12-07  Simon Josefsson  <simon@josefsson.org>
27980
27981         * modules/pty: New file.
27982         * modules/pty-tests: New file.
27983         * m4/pty.m4: New file.
27984         * tests/test-pty.c: New file.
27985         * doc/glibc-headers/pty.texi: Modified.
27986         * doc/glibc-functions/forkpty.texi: Modified.
27987         * doc/glibc-functions/openpty.texi: Modified.
27988
27989 2009-12-10  Bruno Haible  <bruno@clisp.org>
27990
27991         Avoid syntax error in C++ mode.
27992         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
27993
27994 2009-12-10  Bruno Haible  <bruno@clisp.org>
27995
27996         Use sed with option -e.
27997         * gnulib-tool (func_version, func_emit_copyright_notice,
27998         func_emit_initmacro_end, func_import, func_create_testdir): Pass
27999         option -e to sed.
28000         * modules/link-warning (Makefile.am): Likewise.
28001
28002 2009-12-10  Jim Meyering  <meyering@redhat.com>
28003
28004         mgetgroups: do not write bytes beyond end of malloc'd buffer
28005         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28006         username, we call getgroups with a one-element-shorter buffer,
28007         but still told it the length was original, max_n_groups.
28008
28009 2009-12-09  Eric Blake  <ebb9@byu.net>
28010
28011         cloexec: relax license
28012         * modules/cloexec (Maintainer): Add myself.
28013         (License): Use LGPL, not GPL.
28014
28015         link-warning: optimize generation
28016         * modules/link-warning (Makefile.am): Reduce process usage.
28017
28018 2009-12-09  Bruno Haible  <bruno@clisp.org>
28019
28020         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28021         workaround was added on 2009-11-17.
28022
28023 2009-12-09  Jim Meyering  <meyering@redhat.com>
28024             Bruno Haible  <bruno@clisp.org>
28025
28026         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28027         * modules/link-warning (Makefile.am): Make the comment-removing sed
28028         command more robust in the face of bootstrap-prepended comment lines.
28029
28030 2009-12-09  Bruno Haible  <bruno@clisp.org>
28031
28032         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28033         most one group.
28034
28035 2009-12-09  Simon Josefsson <simon@josefsson.org>
28036             Bruno Haible  <bruno@clisp.org>
28037
28038         * build-aux/link-warning.h: Add copyright notice.
28039         * modules/link-warning (Makefile.am): Generate link-warning.h from
28040         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28041         * NEWS: Mention change in link-warning module.
28042         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28043         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28044         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28045         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28046         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28047         * modules/math (Makefile.am): Add dependency to math.h.
28048         * modules/search (Makefile.am): Add dependency to search.h.
28049         * modules/signal (Makefile.am): Add dependency to signal.h.
28050         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28051         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28052         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28053         * modules/string (Makefile.am): Add dependency to string.h.
28054         * modules/strings (Makefile.am): Add dependency to strings.h.
28055         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28056         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28057         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28058         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28059         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28060         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28061         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28062         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28063         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28064
28065 2009-12-09  Bruno Haible  <bruno@clisp.org>
28066
28067         fchdir: Optimize away rpl_fstat when possible.
28068         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28069         REPLACE_OPEN_DIRECTORY.
28070         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28071
28072 2009-12-09  Bruno Haible  <bruno@clisp.org>
28073
28074         * lib/fchdir.c: Update comment.
28075
28076 2009-12-09  Bruno Haible  <bruno@clisp.org>
28077
28078         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28079
28080 2009-12-08  Eric Blake  <ebb9@byu.net>
28081
28082         fchdir: avoid memory leak on re-registration.
28083         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28084
28085 2009-12-08  Jim Meyering  <meyering@redhat.com>
28086
28087         init.sh: avoid Solaris 10 /bin/sh portability problem
28088         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28089         sourced script:
28090           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28091           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28092           bar
28093         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28094         and two tests used that idiom.
28095         * tests/init.sh: Update suggested usage comments.
28096         (path_prepend_): New function, to be used in place
28097         of the --src-path=DIR option.
28098         (setup_): Move PATH-prepending code into path_prepend_.
28099         * tests/test-pread.sh: Adapt to new usage.
28100         * tests/test-xalloc-die.sh: Likewise.
28101
28102 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28103
28104         * doc/gnulib.texi (Glibc pty.h): Add.
28105         * doc/glibc-functions/forkpty.texi: Add.
28106         * doc/glibc-functions/openpty.texi: Add.
28107         Suggested by Bruno Haible.
28108
28109 2009-12-08  Eric Blake  <ebb9@byu.net>
28110
28111         fchdir: fix logic bugs
28112         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28113         * tests/test-fchdir.c (main): Enhance test.
28114         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28115         is in use.
28116
28117         dup2: fix logic bugs
28118         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28119         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28120         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28121         exists.
28122         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28123
28124 2009-12-07  Eric Blake  <ebb9@byu.net>
28125
28126         unlink: fix m4 detection
28127         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28128
28129         unistd-safer: add unit test
28130         * modules/unistd-safer-tests: New file.
28131         * tests/test-dup-safer.c: Likewise.
28132         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28133         * tests/test-dup2.c (setmode): Likewise.
28134         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28135
28136         cloexec: preserve text vs. binary across dup_cloexec
28137         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28138         mode.
28139         * modules/dup2-tests (Depends-on): Add binary-io.
28140         * modules/cloexec-tests (Depends-on): Likewise.
28141         * tests/test-dup2.c (setmode, is_mode): New helpers.
28142         (main): Add tests that translation mode is preserved.
28143         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28144         Reported by Bruno Haible.
28145
28146         mgetgroups: reduce duplicate listings
28147         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28148         resulting array.
28149         * tests/test-chown.h (test_chown): Simplify client.
28150         * tests/test-lchown.h (test_lchown): Likewise.
28151
28152 2009-12-06  Bruno Haible  <bruno@clisp.org>
28153
28154         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28155         value.
28156
28157 2009-12-06  Bruno Haible  <bruno@clisp.org>
28158
28159         * lib/progname.c: Include stdio.h, stdlib.h.
28160         (set_program_name): Reject a NULL argument.
28161
28162 2009-12-05  Eric Blake  <ebb9@byu.net>
28163
28164         pipe2-safer: new module
28165         * modules/pipe2-safer: New file.
28166         * lib/unistd-safer.h (pipe2_safer): New prototype.
28167         * lib/unistd--.h (pipe2): New wrapper.
28168         * lib/pipe-safer.c (pipe2_safer): New function.
28169         * modules/pipe (Depends-on): Add pipe2-safer.
28170         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28171
28172         stdlib-safer: preserve cloexec flag for mkostemp[s]
28173         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28174         fd_safer_flag.
28175
28176         unistd-safer: allow preservation of cloexec status via flag
28177         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28178         prototypes.
28179         * lib/dup-safer.c (dup_safer_flag): New function.
28180         * lib/fd-safer.c (fd_safer_flag): Likewise.
28181         * modules/cloexec (configure.ac): Set witness.
28182
28183         test-dup2: enhance test
28184         * modules/dup2-tests (Depends-on): Add cloexec.
28185         * tests/test-dup2.c (main): Enhance test.
28186
28187         cloexec: add dup_cloexec
28188         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28189         header and comments.
28190         * lib/cloexec.c (set_cloexec_flag): Add comments.
28191         (dup_cloexec): New function, with mingw implementation borrowed
28192         from...
28193         * lib/w32spawn.h (dup_noinherit): ...here.
28194         * modules/execute (Depends-on): Add cloexec.
28195         * modules/pipe (Depends-on): Likewise.
28196         * modules/cloexec (Depends-on): Add dup2.
28197         * modules/cloexec-tests (Files): New file.
28198         * tests/test-cloexec.c: Likewise.
28199
28200         test-xalloc-die: fix test for mingw
28201         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28202         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28203         directory and .exe suffix off argv[0] output.
28204
28205         test-fseeko: fix test for mingw
28206         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28207         than undefining fseek, so test will pass on mingw.
28208
28209 2009-12-05  Bruno Haible  <bruno@clisp.org>
28210
28211         * lib/progname.h (set_program_name): Clarify specification.
28212         * lib/progname.c (set_program_name): Likewise.
28213         Reported by Jim Meyering.
28214
28215 2009-12-05  Jim Meyering  <meyering@redhat.com>
28216
28217         maint.mk: backslash-escape parens in default regexp
28218         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28219         backslash-escape the literal parentheses.
28220
28221         maint.mk: news-date-check: use grep -E
28222         * top/maint.mk (today): Define a Make variable, not a...
28223         (news-date-check): ...shell variable.
28224         (news-date-regexp): Use the Make variable.
28225         Use grep's -E option.  Change the failing diagnostic to mention
28226         the variable, $(news-date-regexp).
28227
28228 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28229
28230         maintainer-makefile: allow customization of NEWS entry format
28231         * top/maint.mk (news-date-regexp): New overridable variable.
28232         (news-date-check): Use it.
28233
28234 2009-12-04  Eric Blake  <ebb9@byu.net>
28235
28236         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28237         * lib/mgetgroups.h (xgetgroups): New prototype.
28238         * lib/mgetgroups.c (xgetgroups): New wrapper.
28239         (mgetgroups): Handle ENOSYS.
28240         * modules/mgetgroups (Depends-on): Add realloc.
28241         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28242
28243         mgetgroups: avoid argument promotion issues with -1
28244         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28245         for invalid gid_t.
28246         * tests/test-chown.h (getegid, test_chown): Likewise.
28247         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28248
28249 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28250
28251         exclude: Fix header file problems.
28252         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28253
28254 2009-12-01  Jim Meyering  <meyering@redhat.com>
28255
28256         fts: fts_open: do not let an empty string cause immediate failure
28257         This is required in support of GNU rm, for which the command
28258         "rm A '' B" must process and remove both A and B, in spite of
28259         the empty string argument.
28260         * lib/fts.c (fts_open): Do not let the presence of an empty string
28261         cause fts_open to fail immediately.  Most fts-using tools must be
28262         able to process all arguments, in order, and can be expected to
28263         diagnose such arguments themselves.
28264
28265 2009-11-30  Eric Blake  <ebb9@byu.net>
28266
28267         utimens: fix compilation error
28268         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28269         Declare variable at right scope.
28270
28271 2009-11-29  Jim Meyering  <meyering@redhat.com>
28272
28273         bootstrap: handle perl-5.11's changed --version output
28274         * build-aux/bootstrap (get_version): Handle perl separately,
28275         since perl-5.11's --version output is different.
28276
28277 2009-11-28  Jim Meyering  <meyering@redhat.com>
28278
28279         userspec: depend on the inttostr module, too
28280         * modules/userspec (Depends-on): Add inttostr.
28281
28282         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28283         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28284         number of MAXUID when it evaluates to (uid_t) -1.
28285         Likewise for group ID.  Reported by Matt McCutchen in
28286         <http://savannah.gnu.org/bugs/?28113>
28287
28288         userspec: reformat to use spaces, not TABs
28289         * lib/userspec.c: Expand TABs to spaces.
28290         Add Emacs' "indent-tabs-mode: nil" hint.
28291
28292 2009-11-27  Eric Blake  <ebb9@byu.net>
28293
28294         getopt-gnu: flush out another BSD bug
28295         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28296         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28297         flush out BSD bug.
28298         * tests/test-getopt.h (test_getopt): End lists with NULL.
28299         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28300         (test_getopt_long_posix): Enhance test.
28301         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28302         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28303         getopt-gnu.
28304         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28305         Likewise.
28306
28307 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28308
28309         * modules/idpriv-droptemp-tests (Notice): Fix text.
28310
28311 2009-11-27  Jim Meyering  <meyering@redhat.com>
28312
28313         test-xalloc-die: avoid spurious failure due to libtool argv difference
28314         In a libtool-enabled project, this test would fail due to a difference
28315         in the emitted program name, e.g.,
28316         -test-xalloc-die: memory exhausted
28317         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28318         Use program to avoid that.
28319         * modules/xalloc-die-tests (Depends-on): Add progname.
28320         * tests/test-xalloc-die.c: Include progname.h".
28321         (program_name): Remove decl.
28322         (main): Call set_program_name.
28323         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28324
28325 2009-11-26  Richard Jones  <rjones@redhat.com>
28326
28327         w32sock: leave win32 error in place.
28328         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28329
28330 2009-11-26  Eric Blake  <ebb9@byu.net>
28331
28332         init.sh: suggest to use skip_ and fail_ functions in comments
28333         * tests/init.sh: Add a sentence.
28334
28335 2009-11-25  Bruno Haible  <bruno@clisp.org>
28336
28337         init.sh: add documentation in comments
28338         * tests/init.sh: Add some developer and user documentation.
28339
28340 2009-11-26  Jim Meyering  <meyering@redhat.com>
28341
28342         init.sh: accommodate even those who specify bogus srcdir manually
28343         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28344         configure-time tests to be sanitized, so that there is no need to
28345         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28346         (with no double quotes) suffices.  However, since tests may be
28347         invoked manually, and since you may explicitly set srcdir to the
28348         name of a directory containing spaces, do quote its uses here.
28349         * tests/test-pread.sh: Likewise.
28350         Suggested by Bruno Haible.
28351
28352         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28353         * tests/test-pread.sh: Write no data into the pipe, because
28354         test-pread actually reads none.  This avoids a diagnostic,
28355         "bash: echo: write error: Broken pipe", that arises in the unusual
28356         event something is ignoring SIGPIPE, and might be interpreted
28357         as some sort of failure.  Reported by Bruno Haible.
28358
28359 2009-11-25  Jim Meyering  <meyering@redhat.com>
28360
28361         test-pread: cover failure with ESPIPE and EINVAL
28362         * tests/test-pread.c (main): Test for failure, too.
28363         * tests/test-pread.sh: Invoke with stdin on a pipe.
28364         Suggested by Eric Blake.
28365
28366         pread: improvement and fix
28367         * modules/pread (Depends-on): Depend on lseek, for portability to
28368         e.g., mingw.  Suggested by Eric Blake.
28369         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28370
28371         unistd.in.h: correct declaration of pread
28372         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28373         Reported by Richard W.M. Jones.
28374
28375         test-pread.sh: distribute the test script
28376         * modules/pread-tests (Files): Include test-pread.sh.
28377
28378         test-pread.sh: clean up
28379         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28380         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28381         That is unnecessary, since it's always ".".
28382         Suggestion from Eric Blake.
28383
28384         test-pread.sh: make executable
28385         * tests/test-pread.sh: Set executable bit.
28386         Reported by Eric Blake.
28387
28388         correct typo in test-pread.sh
28389         * tests/test-pread.sh: Add #! line.
28390
28391         test pread
28392         * tests/test-pread.c: New file.
28393         * tests/test-pread.sh: Likewise.
28394         * modules/pread-tests: Likewise.
28395
28396         pread: new module
28397         * modules/pread: New file.
28398         * lib/unistd.in.h (pread): Define/declare.
28399         * lib/pread.c (pread): New file.
28400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28401         * modules/unistd (Makefile.am): Substitute witnesses.
28402         * doc/posix-functions/pread.texi (pread): Update.
28403         * MODULES.html.sh: Add pread.
28404
28405 2009-11-25  Jim Meyering  <meyering@redhat.com>
28406
28407         tests/init.sh: new file to be used via most *.sh tests
28408         * tests/init.sh: New file.
28409
28410 2009-11-25  Eric Blake  <ebb9@byu.net>
28411
28412         utimens: work around older Linux failure with symlinks
28413         * lib/utimens.c (lutimensat_works_really): New variable.
28414         (fdutimens, lutimens): Use it to manage kernels that support
28415         nanosecond times on files, but not on symlinks.
28416         Reported by OndÅ™ej Vašík.
28417
28418         utimes: fix configure grammar
28419         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28420
28421 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28422
28423         regex: Fix fastmap for multibyte character ranges.
28424         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28425         characters when a multibyte character range is included.
28426
28427 2009-11-22  Andy Wingo  <wingo@pobox.com>
28428
28429         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28430         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28431
28432 2009-11-24  Bruno Haible  <bruno@clisp.org>
28433
28434         doc: Most *_l functions exist in MacOS X 10.5.
28435         * doc/posix-functions/duplocale.texi: Update platforms list.
28436         * doc/posix-functions/freelocale.texi: Likewise.
28437         * doc/posix-functions/newlocale.texi: Likewise.
28438         * doc/posix-functions/uselocale.texi: Likewise.
28439         * doc/posix-functions/isalnum_l.texi: Likewise.
28440         * doc/posix-functions/isalpha_l.texi: Likewise.
28441         * doc/posix-functions/isblank_l.texi: Likewise.
28442         * doc/posix-functions/iscntrl_l.texi: Likewise.
28443         * doc/posix-functions/isdigit_l.texi: Likewise.
28444         * doc/posix-functions/isgraph_l.texi: Likewise.
28445         * doc/posix-functions/islower_l.texi: Likewise.
28446         * doc/posix-functions/isprint_l.texi: Likewise.
28447         * doc/posix-functions/ispunct_l.texi: Likewise.
28448         * doc/posix-functions/isspace_l.texi: Likewise.
28449         * doc/posix-functions/isupper_l.texi: Likewise.
28450         * doc/posix-functions/iswalnum_l.texi: Likewise.
28451         * doc/posix-functions/iswalpha_l.texi: Likewise.
28452         * doc/posix-functions/iswblank_l.texi: Likewise.
28453         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28454         * doc/posix-functions/iswctype_l.texi: Likewise.
28455         * doc/posix-functions/iswdigit_l.texi: Likewise.
28456         * doc/posix-functions/iswgraph_l.texi: Likewise.
28457         * doc/posix-functions/iswlower_l.texi: Likewise.
28458         * doc/posix-functions/iswprint_l.texi: Likewise.
28459         * doc/posix-functions/iswpunct_l.texi: Likewise.
28460         * doc/posix-functions/iswspace_l.texi: Likewise.
28461         * doc/posix-functions/iswupper_l.texi: Likewise.
28462         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28463         * doc/posix-functions/isxdigit_l.texi: Likewise.
28464         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28465         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28466         * doc/posix-functions/strcoll_l.texi: Likewise.
28467         * doc/posix-functions/strfmon_l.texi: Likewise.
28468         * doc/posix-functions/strftime_l.texi: Likewise.
28469         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28470         * doc/posix-functions/strxfrm_l.texi: Likewise.
28471         * doc/posix-functions/tolower_l.texi: Likewise.
28472         * doc/posix-functions/toupper_l.texi: Likewise.
28473         * doc/posix-functions/towctrans_l.texi: Likewise.
28474         * doc/posix-functions/towlower_l.texi: Likewise.
28475         * doc/posix-functions/towupper_l.texi: Likewise.
28476         * doc/posix-functions/wcscoll_l.texi: Likewise.
28477         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28478         * doc/posix-functions/wctrans_l.texi: Likewise.
28479         * doc/posix-functions/wctype_l.texi: Likewise.
28480         * doc/glibc-functions/strptime_l.texi: Likewise.
28481         * doc/glibc-functions/strtod_l.texi: Likewise.
28482         * doc/glibc-functions/strtof_l.texi: Likewise.
28483         * doc/glibc-functions/strtol_l.texi: Likewise.
28484         * doc/glibc-functions/strtold_l.texi: Likewise.
28485         * doc/glibc-functions/strtoll_l.texi: Likewise.
28486         * doc/glibc-functions/strtoul_l.texi: Likewise.
28487         * doc/glibc-functions/strtoull_l.texi: Likewise.
28488         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28489         * doc/glibc-functions/wcstod_l.texi: Likewise.
28490         * doc/glibc-functions/wcstof_l.texi: Likewise.
28491         * doc/glibc-functions/wcstol_l.texi: Likewise.
28492         * doc/glibc-functions/wcstold_l.texi: Likewise.
28493         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28494         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28495         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28496
28497 2009-11-24  Bruno Haible  <bruno@clisp.org>
28498
28499         duplocale: Fix logic bug.
28500         * lib/duplocale.c: Don't include <langinfo.h>.
28501         (_NL_LOCALE_NAME): Remove macro.
28502         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28503         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28504
28505 2009-11-23  Jim Meyering  <meyering@redhat.com>
28506
28507         test-update-copyright: don't hard-code /usr/bin/perl
28508         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28509         perl to print the current year.  Gilles Espinasse reported that
28510         the replaced use of perl was hard-coded as /usr/bin/perl.
28511
28512 2009-11-23  Bruno Haible  <bruno@clisp.org>
28513
28514         duplocale: Add support for glibc 2.3.x.
28515         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28516
28517 2009-11-22  Bruno Haible  <bruno@clisp.org>
28518
28519         vasnprintf: Tiny optimization.
28520         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28521         MacOS X.
28522
28523 2009-11-22  Bruno Haible  <bruno@clisp.org>
28524
28525         Tests for module 'duplocale'.
28526         * modules/duplocale-tests: New file.
28527         * tests/test-duplocale.c: New file.
28528
28529         New module 'duplocale'.
28530         * m4/duplocale.m4: New file.
28531         * lib/locale.in.h (duplocale): New declaration.
28532         * lib/duplocale.c: New file.
28533         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28534         gl_LOCALE_H_DEFAULTS): New macros.
28535         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28536         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28537         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28538         REPLACE_DUPLOCALE.
28539         * modules/duplocale: New file.
28540         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28541
28542 2009-11-22  Bruno Haible  <bruno@clisp.org>
28543
28544         * modules/locale-tests (configure.ac): Test for newlocale function.
28545         * tests/test-locale.c: When the system has extended locale functions,
28546         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28547
28548         locale: Make locale_t available when possible.
28549         * lib/locale.in.h: Include <xlocale.h> when it exists.
28550         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28551         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28552         * modules/locale (Depends-on): Add extensions.
28553         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28554         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28555
28556 2009-11-22  Bruno Haible  <bruno@clisp.org>
28557
28558         Add comments.
28559         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28560         invocation.
28561         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28562         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28563         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28564
28565 2009-11-22  Bruno Haible  <bruno@clisp.org>
28566
28567         error: account for the possibility of freopen (stdout).
28568         * lib/error.c: Include <unistd.h>.
28569         (flush_stdout): New function, extracted from error and error_at_line.
28570         Determine stdout's fd dynamically.
28571         (error, error_at_line): Invoke flush_stdout.
28572         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28573         * modules/error (Depends-on): Add unistd.
28574
28575 2009-11-22  Bruno Haible  <bruno@clisp.org>
28576
28577         diffseq: Add comment.
28578         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28579
28580 2009-11-22  Jim Meyering  <meyering@redhat.com>
28581
28582         c-stack: avoid defining an unused static function
28583         * lib/c-stack.c (find_stack_direction): Do not define this function
28584         when it will not be used.
28585
28586         diffseq: avoid spurious gcc warnings
28587         * lib/diffseq.h (IF_LINT2): Define.
28588         (compareseq): Use it to initialize two members of "part".
28589         This avoids two used-uninitialized warnings.
28590
28591 2009-11-21  Jim Meyering  <meyering@redhat.com>
28592
28593         c-stack: avoid "ignoring return value of `write'" warning
28594         * lib/c-stack.c: Include "ignore-value.h".
28595         (die): Explicitly ignore each write return value.
28596         * modules/c-stack (Depends-on): Add ignore-value.
28597
28598 2009-11-21  Bruno Haible  <bruno@clisp.org>
28599
28600         diffseq: reduce scope of variable 'best'.
28601         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28602         variable, earlier used for two different purposes.
28603
28604 2009-11-21  Jim Meyering  <meyering@redhat.com>
28605
28606         diffseq: remove useless assignment to "best"
28607         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28608         assignment.  At that point "best" is already guaranteed to be zero.
28609
28610 2009-11-20  Eric Blake  <ebb9@byu.net>
28611
28612         build: mention ftp redirector in release announcements
28613         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28614         values that used to come from cfg.mk; mention FTP redirect URL.
28615         * build-aux/announce-gen: Mention the mirror list.
28616         Suggested by Karl Berry.
28617
28618         nanosleep: improve port to mingw
28619         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28621         LIB_NANOSLEEP, but only when needed.
28622         * modules/select (Link): Document LIBSOCKET.
28623         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28624         enough.
28625
28626         nanosleep: work around cygwin bug
28627         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28628         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28629         bug.
28630         (getnow): Delete, not needed.
28631         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28632         LIB_CLOCK_GETTIME.
28633         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28634         clock-time, gettime.
28635         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28636         bug.
28637         * modules/nanosleep-tests: New test.
28638         * tests/test-nanosleep.c: New file.
28639
28640         sleep: work around cygwin bug
28641         * lib/sleep.c (rpl_sleep): Work around the bug.
28642         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28643         (gl_PREREQ_SLEEP): Delete unused macro.
28644         * modules/sleep (Depends-on): Add verify.
28645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28646         * modules/unistd (Makefile.am): Substitute witness.
28647         * lib/unistd.in.h (sleep): Update prototype.
28648         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28649         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28650         * modules/sleep-tests (Depends-on): Check for alarm.
28651
28652 2009-11-20  Jim Meyering  <meyering@redhat.com>
28653
28654         maint.mk: improve sc_prohibit_magic_number_exit
28655         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28656         so it does not match uses like System.exit(1).
28657         Add comments showing how to correct all offenders.
28658
28659 2009-11-19  Eric Blake  <ebb9@byu.net>
28660
28661         xalloc-die-tests: add missing library
28662         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28663
28664         test-xvasprintf: silence compiler warnings
28665         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28666         empty string from gcc.
28667
28668 2009-11-19  Jim Meyering  <meyering@redhat.com>
28669
28670         xfreopen: new module, from coreutils
28671         * modules/xfreopen: New module.
28672         * lib/xfreopen.c: New file.
28673         * lib/xfreopen.h: New file.
28674         * MODULES.html.sh (File stream based Input/Output"): Add it.
28675
28676 2009-11-19  Eric Blake  <ebb9@byu.net>
28677
28678         manywarnings: depend on warnings
28679         * modules/manywarnings (Depends-on): Add warnings.
28680
28681         build: avoid compiler warnings
28682         * lib/select.c (rpl_select): Delete unused variable.
28683         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28684
28685 2009-11-18  Eric Blake  <ebb9@byu.net>
28686
28687         tests: avoid false negative with --with-packager
28688         * tests/test-version-etc.sh: Discard packager information.
28689         * tests/test-argp-version-etc-1.sh: Likewise.
28690         Reported by Mike Frysinger.
28691
28692         utimens: fix regression on Solaris
28693         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28694         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28695         can only change fd timestamps via futimesat.  Instead, use an
28696         additional witness macro to avoid BSD bug.
28697         Reported by Jim Meyering.
28698
28699 2009-11-17  Eric Blake  <ebb9@byu.net>
28700
28701         usleep: use it to simplify tests
28702         * modules/stat-time-tests (Depends-on): Add usleep.
28703         (configure.ac): Drop usleep check.
28704         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28705         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28706         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28707         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28708         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28709         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28710         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28711         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28712         Likewise.
28713         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28714         * tests/test-lchown.h (nap): Likewise.
28715         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28716         * tests/test-stat-time.c (nap): Likewise.
28717         * tests/test-utimens-common.h (nap): Update comments.
28718
28719         usleep: new module
28720         * modules/usleep: New file.
28721         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28722         * lib/usleep.c (usleep): Likewise.
28723         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28724         * modules/unistd (Makefile.am): Substitute witnesses.
28725         * lib/unistd.in.h (usleep): Add declaration.
28726         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28727         * MODULES.html.sh (Date and time): Likewise.
28728         * modules/usleep-tests (Depends-on): New test.
28729         * tests/test-usleep.c: New file.
28730
28731         chown: work around OpenBSD bug
28732         * lib/chown.c (rpl_chown): Work around the bug.
28733         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28734         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28735         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28736         * modules/chown (Depends-on): Add stdbool.
28737         * modules/lchown (Depends-on): Likewise.
28738         * doc/posix-functions/chown.texi (chown): Document the bug.
28739         * doc/posix-functions/lchown.texi (lchown): Likewise.
28740         * tests/test-lchown.h (test_chown): Relax test.
28741
28742         mkstemp: avoid conflict with C++ keyword template
28743         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28744         * lib/mkostemp.c (mkostemp): Likewise.
28745         * lib/mkostemps.c (mkostemps): Likewise.
28746         * lib/mkstemp.c (mkstemp): Likewise.
28747         * lib/mkstemps.c (mkstemps): Likewise.
28748
28749         xalloc-die-tests: optimize
28750         * tests/test-xalloc-die.sh: Reduce number of processes.
28751
28752 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28753
28754         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28755         patch from ludo@gnu.org (Ludovic Courtès).
28756
28757 2009-11-17  Jim Meyering  <meyering@redhat.com>
28758
28759         version-etc: use proper license string
28760         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28761         * modules/version-etc-fsf: Likewise.
28762
28763 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28764
28765         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28766         printed to stdout.  Deal with EOL differences.
28767
28768 2009-11-17  Eric Blake  <ebb9@byu.net>
28769
28770         unsetenv: work around Solaris bug
28771         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28772         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28773         Reported by Jim Meyering.
28774
28775         vasnprintf: avoid compiler warnings
28776         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28777         variables.
28778         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28779
28780 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28781
28782         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28783         settings since xalloc-die is no longer the self test,
28784         xalloc-die.sh is.
28785
28786 2009-11-17  Jim Meyering  <meyering@redhat.com>
28787
28788         test-xalloc-die.sh: make the code agree with the commit log
28789         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28790         at the end, just in case you happen to have a test-xalloc-die
28791         program in some other PATH directory.
28792
28793         test-xalloc-die.sh: fix a portability bug
28794         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28795         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28796         Otherwise, argv[0] (as often seen in diagnostics) would be too
28797         system-dependent, sometimes with, and sometimes without the leading "./".
28798
28799         version-etc-fsf: relax license to LGPLv3+
28800         * modules/version-etc-fsf (License): Relax license.
28801
28802 2009-11-16  Eric Blake  <ebb9@byu.net>
28803
28804         xalloc-die-tests: avoid printing null pointer
28805         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28806         shell script.
28807         * tests/test-xalloc-die.c (program_name): Declare.
28808         * tests/test-xalloc-die.sh (tmpfiles): New file.
28809
28810         setenv, unsetenv: work around various bugs
28811         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28812         (setenv) [HAVE_SETENV]: Work around bugs.
28813         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28814         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28815         for bugs.
28816         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28817         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28818         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28819         * modules/stdlib (Makefile.am): Update substitutions.
28820         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28821         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28822         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28823         * modules/setenv-tests: New test.
28824         * modules/unsetenv-tests: Likewise.
28825         * tests/test-setenv.c: New file.
28826         * tests/test-unsetenv.c: Likewise.
28827
28828 2009-11-16  Jim Meyering  <meyering@redhat.com>
28829
28830         version-etc: relax license to LGPLv3+
28831         * modules/version-etc (License): Relax license.
28832
28833         better AC_REQUIRE expanded-before-required-warning avoidance
28834         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28835         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28836         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28837         which is no longer needed.
28838
28839 2009-11-16  Eric Blake  <ebb9@byu.net>
28840
28841         test-freading: clean up temporary file
28842         * tests/test-freading.c (main): Remove file on success, and use
28843         ASSERT more liberally.
28844         Reported by Jim Meyering.
28845
28846 2009-11-16  Jim Meyering  <meyering@redhat.com>
28847
28848         avoid new AC_REQUIRE expanded-before-required warnings
28849         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28850         merely using it.
28851         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28852         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28853
28854 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28855
28856         * tests/test-xalloc-die.c: New file.
28857         * modules/xalloc-die-tests: New file.
28858         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28859         XFAIL_TESTS so it can be appended by modules.
28860
28861 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28862
28863         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28864         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28865
28866 2009-11-14  Eric Blake  <ebb9@byu.net>
28867
28868         fnmatch: avoid compiler warning
28869         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28870         to silence compiler warning about mismatch signedness in ?:.
28871         Reported by Robert Millan.
28872
28873         intprops: add double-inclusion guard
28874         * lib/intprops.h: Allow idempotent includes.
28875         Suggested by Bruce Korb.
28876
28877         openat: detect Solaris fchownat bug
28878         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28879         penalizing glibc chownat when only lchownat is broken.
28880         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28881         trailing slash bugs.
28882         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28883         * modules/openat-tests (Files): Include more files.
28884         (Depends-on): Add mgetgroups, sleep, stat-time.
28885         (configure.ac): Add additional checks.
28886         (Makefile.am): Build new test.
28887         * tests/test-fchownat.c: New file.
28888
28889         lchown: detect Solaris and FreeBSD bug
28890         * lib/lchown.c (rpl_lchown): Work around bug.
28891         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28892         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28893         * modules/unistd (Makefile.am): Populate it.
28894         * lib/unistd.in.h (lchown): Update declaration.
28895         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28896         * modules/lchown-tests: New file.
28897         * tests/test-lchown.h (test_lchown): Likewise.
28898         * tests/test-lchown.c (main): Likewise.
28899
28900         chown: detect Solaris and FreeBSD bug
28901         * lib/chown.c (rpl_chown): Work around bug.
28902         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28903         (gl_PREREQ_CHOWN): Delete.
28904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28905         * modules/unistd (Makefile.am): Populate it.
28906         * lib/unistd.in.h (chown): Update declaration.
28907         * lib/lchown.c (chown): Update client.
28908         * modules/lchown (Depends-on): Add lstat.
28909         * doc/posix-functions/chown.texi (chown): Document the bug.
28910         * doc/posix-functions/getgroups.texi (getgroups): Document
28911         getgroups pitfall.
28912         * modules/chown-tests: New file.
28913         * tests/test-chown.h (test_chown): Likewise.
28914         * tests/test-chown.c (main): Likewise.
28915
28916 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28917
28918         gnulib-tool: correctly detect absence of m4 directories
28919         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28920
28921 2009-11-14  Jim Meyering  <meyering@redhat.com>
28922
28923         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28924         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28925
28926 2009-11-14  John W. Eaton  <jwe@gnu.org>
28927
28928         strftime.h: wrap funtion declaration in extern "C" block
28929         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28930
28931 2009-11-13  Eric Blake  <ebb9@byu.net>
28932
28933         getgroups: avoid compiler warning
28934         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28935
28936         getgroups: work around FreeBSD bug
28937         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28938         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28939         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28940         * tests/test-getgroups.c (main): Fix buffer overrun.
28941
28942         getgroups: avoid compilation failure
28943         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28944         * modules/getgroups (Depends-on): Add stdint.
28945
28946 2009-11-13  Jim Meyering  <meyering@redhat.com>
28947
28948         test-getgroups: avoid compilation failure
28949         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
28950
28951 2009-11-13  Eric Blake  <ebb9@byu.net>
28952
28953         mgetgroups: new module, taken from coreutils
28954         * modules/mgetgroups: New file.
28955         * lib/mgetgroups.h: Likewise.
28956         * lib/mgetgroups.c (mgetgroups): Likewise.
28957         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
28958         * MODULES.html.sh (Users and groups): Mention it.
28959
28960         getgroups: don't expose GETGROUPS_T to user
28961         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
28962         an element at a time if GETGROUPS_T is wrong size.
28963         * lib/getugroups.h (getugroups): Change signature.
28964         * lib/unistd.in.h (getgroups): Likewise.
28965         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
28966         signature needs fixing.
28967         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
28968         AC_TYPE_GETGROUPS.
28969         * modules/group-member (Depends-on): Add getgroups.
28970         * lib/group-member.c (group_info, get_group_info): Use gid_t.
28971         (group_member): Rely on getgroups replacement.
28972         * lib/getugroups.c (getugroups): Use gid_t.
28973         * tests/test-getgroups.c (main): Likewise.
28974         * NEWS: Mention the signature change.
28975         * doc/posix-functions/getgroups.texi (getgroups): Mention the
28976         problem with signature.
28977         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
28978         GETGROUPS_T is still useful for setgroups.
28979
28980         getgroups, getugroups: provide stubs for mingw
28981         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
28982         * lib/getugroups.c (getugroups): Likewise.
28983         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
28984         function.  Modernize replacement scheme.
28985         (gl_PREREQ_GETGROUPS): Delete.
28986         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
28987         * modules/getgroups (configure.ac): Declare witness.
28988         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28989         * modules/unistd (Depends-on): Substitute witness.
28990         * lib/unistd.in.h (getgroups): Declare replacement.
28991
28992         getgroups: avoid calling exit
28993         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
28994         drop xalloc.
28995         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
28996         dependencies.
28997         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
28998         exiting, in the rare case of malloc failure.
28999
29000         getgroups: fix logic error
29001         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29002         has more than 20 groups.
29003         * modules/getgroups-tests: New test.
29004         * tests/test-getgroups.c: New file.
29005
29006 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29007
29008         * tests/test-base64.c: Improve.
29009
29010 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29011
29012         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29013         Blake <ebb9@byu.net>.
29014
29015 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29016
29017         * tests/test-xvasprintf.c: Add %s%s related checks.
29018
29019 2009-11-12  Eric Blake  <ebb9@byu.net>
29020
29021         version-etc: match standards.texi style
29022         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29023         and use <> only for URLs.
29024
29025 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29026
29027         fts: do not fail on a submount during traversal
29028         * lib/fts.c (fts_build): Read the stat info again after opening
29029         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29030         Original report at http://bugzilla.redhat.com/501848.
29031
29032 2009-11-12  Jim Meyering  <meyering@redhat.com>
29033
29034         bootstrap: sync from coreutils
29035         * build-aux/bootstrap (bootstrap_epilogue): New function.
29036         Use git_modules_config in one more place.  This make bootstrap's
29037         --gnulib-srcdir option more useful for testing.
29038
29039         bootstrap: generalize autoheader check
29040         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29041         AC_CONFIG_HEADERS.
29042
29043 2009-11-11  Eric Blake  <ebb9@byu.net>
29044
29045         mkfifoat: use new modules for Solaris and BSD bugs
29046         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29047         * lib/mkfifoat.c (mknodat): Split...
29048         * lib/mknodat.c (mknodat): ...into new file.
29049         * modules/mkfifoat (Files): Ship new file.
29050         (Depends-on): Add mkfifo, mknod.
29051         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29052         (Depends-on): Add symlink.
29053         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29054         redundant with test_mkfifo.h.
29055         (do_mkfifoat, do_mknodat): New helpers.
29056
29057         mknod: new module
29058         * modules/mknod: New file.
29059         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29060         * lib/mknod.c (mknod): Likewise.
29061         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29062         defaults.
29063         * modules/sys_stat (Makefile.am): Substitute them.
29064         * lib/sys_stat.in.h (mknod): Declare replacement.
29065         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29066         Document it.
29067         * doc/posix-functions/mknod.texi (mknod): Likewise.
29068         * modules/mknod-tests: New test.
29069         * tests/test-mknod.c: Likewise.
29070
29071         mkfifo: new module
29072         * modules/mkfifo: New file.
29073         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29074         * lib/mkfifo.c (mkfifo): Likewise.
29075         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29076         defaults.
29077         * modules/sys_stat (Makefile.am): Substitute them.
29078         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29079         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29080         Document it.
29081         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29082         * modules/mkfifo-tests: New test.
29083         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29084         from test-mkfifoat.c.
29085         * tests/test-mkfifo.c: New file.
29086
29087         readlink: detect FreeBSD bug
29088         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29089         slash on symlink.
29090         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29091         * tests/test-readlink.h (test_readlink): Enhance test.
29092
29093         symlink: detect FreeBSD bug
29094         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29095         slash on symlink.
29096         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29097         * tests/test-symlink.h (test_symlink): Enhance test.
29098
29099 2009-11-10  Eric Blake  <ebb9@byu.net>
29100
29101         link: detect FreeBSD bug
29102         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29103         symlink.
29104         * doc/posix-functions/link.texi (link): Document the bug.
29105         * tests/test-link.h (test_link): Enhance test.
29106         * tests/test-linkat.c (main): Update caller.
29107
29108         unlink, remove: detect FreeBSD bug
29109         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29110         slash on symlink.
29111         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29112         * doc/posix-functions/remove.texi (remove): Likewise.
29113         * tests/test-unlink.h (test_unlink): Enhance test.
29114         * tests/test-remove.c (main): Likewise.
29115
29116 2009-11-09  Eric Blake  <ebb9@byu.net>
29117
29118         rename: detect FreeBSD bug
29119         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29120         slash on symlink.
29121         * modules/renameat-tests (Depends-on): Add filenamecat.
29122         * tests/test-rename.h (test_rename): Allow one more errno.
29123         * tests/test-renameat.c (main): Likewise.
29124         * doc/posix-functions/rename.texi (rename): Document the bug.
29125
29126         open: detect FreeBSD bug
29127         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29128         symlink.
29129         * doc/posix-functions/open.texi (open): Document the bug.
29130         * doc/posix-functions/utimes.texi (utimes): Likewise.
29131         * tests/test-open.h (test_open): Add parameters, and test symlink
29132         handling.
29133         * tests/test-open.c (main): Adjust caller.
29134         * tests/test-fcntl-safer.c (main): Likewise.
29135         * modules/open-tests (Depends-on): Add stdbool, symlink.
29136         * modules/fcntl-safer-tests (Depends-on): Likewise.
29137         * tests/test-openat.c (main): Add test-open tests.
29138
29139         stat: detect FreeBSD bug
29140         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29141         symlink.
29142         * doc/posix-functions/stat.texi (stat): Document the bug.
29143         * tests/test-stat.h (test_stat_func): Add argument.
29144         * tests/test-stat.c (main): Adjust caller.
29145         * tests/test-fstatat.c (main): Likewise.
29146         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29147         Reported by Jim Meyering.
29148
29149 2009-11-09  James Youngman  <jay@gnu.org>
29150
29151         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29152         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29153
29154 2009-11-08  Jim Meyering  <meyering@redhat.com>
29155
29156         utimens: remove invalid futimesat call
29157         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29158         It used the file descriptor of the target file as the DIR_FD
29159         parameter and NULL as the file name.  That caused failure with
29160         errno == EFAULT on FreeBSD-8.0-rc2
29161
29162 2009-11-07  Eric Blake  <ebb9@byu.net>
29163
29164         fflush, freadseek: use fseeko, not fseek
29165         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29166         (clear_ungetc_buffer): Avoid potential problems on large files.
29167         * lib/freadseek.c (freadseek): Likewise.
29168         * modules/freadseek (Depends-on): Add fseeko.
29169         * modules/fseek (configure.ac): Set a witness.
29170         * tests/test-fflush.c (main): Use fseeko.
29171         * tests/test-fpurge.c (fseek): Disable link warning.
29172         * tests/test-freadable.c (fseek): Likewise.
29173         * tests/test-freading.c (fseek): Likewise.
29174         * tests/test-fseeko.c (fseek): Likewise.
29175         * tests/test-ftell.c (fseek): Likewise.
29176         * tests/test-ftello.c (fseek): Likewise.
29177         * tests/test-fwritable.c (fseek): Likewise.
29178         * tests/test-fwriting.c (fseek): Likewise.
29179
29180 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29181
29182         * modules/memchr (Depends-on): Drop getpagesize dependency.
29183
29184 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29185
29186         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29187         Reported by Ludovic Courtès.
29188         * build-aux/pmccabe2html: Improve example usage.
29189         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29190
29191 2009-11-06  Jim Meyering  <meyering@redhat.com>
29192
29193         do-release-commit-and-tag: New module.
29194         Automate the release-commit and tag process.
29195         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29196         * modules/do-release-commit-and-tag: New file.
29197         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29198
29199 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29200
29201         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29202         because test-select.c uses inet_pton.
29203
29204 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29205
29206         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29207         GETADDRINFO_LIB.  Bump serial number.
29208         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29209         Suggested by Eric Blake <ebb9@byu.net>.
29210
29211 2009-11-05  Eric Blake  <ebb9@byu.net>
29212
29213         strtod: detect darwin bug
29214         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29215         Reported by Leo Davis.
29216
29217         freopen-safer: new module
29218         * modules/freopen-safer: New module.
29219         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29220         * lib/freopen-safer.c (freopen_safer): New file.
29221         * lib/stdio-safer.h (freopen_safer): New declaration.
29222         * lib/stdio--.h (freopen): New override.
29223         * MODULES.html.sh (File stream based Input/Output): Mention it.
29224         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29225         freopen-safer module.
29226         * doc/posix-functions/stderr.texi (stderr): Likewise.
29227         * doc/posix-functions/stdin.texi (stdin): Likewise.
29228         * doc/posix-functions/stdout.texi (stdout): Likewise.
29229         * modules/freopen-safer-tests: New test.
29230         * tests/test-reopen-safer.c: New file.
29231
29232 2009-11-05  Jim Meyering  <meyering@redhat.com>
29233
29234         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29235         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29236
29237 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29238
29239         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29240
29241 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29242
29243         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29244
29245 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29246
29247         Fix link error.
29248         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29249         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29250
29251 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29252
29253         * tests/test-func.c: Also test value of __func__.
29254
29255 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29256
29257         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29258         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29259
29260 2009-11-05  Bruno Haible  <bruno@clisp.org>
29261
29262         Fix link error.
29263         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29264         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29265         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29266
29267 2009-11-05  Bruno Haible  <bruno@clisp.org>
29268
29269         Tests for module 'inet_pton'.
29270         * modules/inet_pton-tests: New file.
29271         * tests/test-inet_pton.c: New file.
29272
29273 2009-11-05  Bruno Haible  <bruno@clisp.org>
29274
29275         Tests for module 'inet_ntop'.
29276         * modules/inet_ntop-tests: New file.
29277         * tests/test-inet_ntop.c: New file.
29278
29279 2009-11-04  Eric Blake  <ebb9@byu.net>
29280
29281         stdlib-safer: wrap all mkstemp variants
29282         * modules/mkostemp (configure.ac): Set witness.
29283         * modules/mkostemps (configure.ac): Likewise.
29284         * modules/mkstemps (configure.ac): Likewise.
29285         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29286         (mkstemps_safer): Wrap more functions.
29287         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29288         wrapping.
29289         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29290         (mkstemps_safer): Implement the wrappers.
29291
29292         mkstemps, mkostemps: new modules
29293         * modules/mkostemps: New module.
29294         * modules/mkstemps: Likewise.
29295         * lib/mkostemps.c (mkostemps): New file.
29296         * lib/mkstemps.c (mkstemps): Likewise.
29297         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29298         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29299         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29300         * modules/stdlib (Makefile.am): Substitute them.
29301         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29302         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29303         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29304         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29305         * MODULES.html.sh (File system functions): Mention them.
29306
29307         tempname: resync from glibc
29308         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29309         same values for __GT_FILE as glibc.  Abort even when assertions
29310         are disabled.
29311         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29312         match its value otherwise.  Allow idempotent inclusion.
29313         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29314         * lib/mkostemp.c (mkostemp): Likewise.
29315         * lib/mkstemp.c (mkstemp): Likewise.
29316         * lib/tmpfile.c (tmpfile): Likewise.
29317         * NEWS: Document this.
29318
29319         utimens: fix use of futimens on older Linux
29320         * lib/utimens.c (fdutimens): Use updated, rather than original,
29321         timespec to avoid bug in older Linux kernel.
29322         Reported by Simon Josefsson.
29323
29324 2009-11-04  Bruno Haible  <bruno@clisp.org>
29325
29326         Make num_processors more flexible and consistent.
29327         * lib/nproc.h (enum nproc_query): New type.
29328         (num_processors): Add a 'query' argument.
29329         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29330         (num_processors): Add a 'query' argument. Test the value of the
29331         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29332         mingw, count the number of CPUs available for the current process.
29333         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29334         Check for sched_getaffinity and sched_getaffinity_np.
29335         * modules/nproc (Depends-on): Add c-ctype, extensions.
29336         * NEWS: Mention the change.
29337
29338 2009-11-03  Bruno Haible  <bruno@clisp.org>
29339
29340         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29341
29342 2009-11-03  Jim Meyering  <meyering@redhat.com>
29343
29344         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29345         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29346         if it is defined.
29347
29348 2009-11-02  Eric Blake  <ebb9@byu.net>
29349
29350         mktime, timegm: share common declaration
29351         * lib/mktime-internal.h: New file.
29352         * lib/mktime.c: Use it rather than open-coding a declaration.
29353         * lib/timegm.c: Likewise.
29354         * modules/mktime (Files): Ship it.
29355         * modules/timegm (Files): Likewise.
29356         Suggested by Bruno Haible.
29357
29358         test-update-copyright: update test to match script changes
29359         * tests/test-update-copyright.sh: Avoid hard-coding perl
29360         location.  Don't update *.bak created by earlier runs.
29361
29362 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29363             Simon Josefsson  <simon@josefsson.org>
29364             Bruno Haible  <bruno@clisp.org>
29365
29366         Fix link error on Solaris 8.
29367         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29368         also in libnsl. Define also INET_PTON_LIB.
29369         * modules/inet_pton (Link): New section.
29370
29371 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29372             Bruno Haible  <bruno@clisp.org>
29373
29374         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29375         * modules/inet_ntop (Link): New section.
29376         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29377
29378 2009-11-02  Eric Blake  <ebb9@byu.net>
29379
29380         maint: avoid compiler warnings in m4 macros
29381         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29382         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29383
29384 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29385
29386         * m4/pmccabe2html.m4: Remove file.
29387         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29388         function.  Change maintainer.
29389         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29390         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29391         Courtès).
29392
29393 2009-10-31  Eric Blake  <ebb9@byu.net>
29394
29395         fseeko: fix m4 regression
29396         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29397         regression from 2009-10-27.
29398         Reported by Ralf Wildenhues.
29399
29400 2009-10-31  Jim Meyering  <meyering@redhat.com>
29401
29402         inttostr: aesthetics and improved (compile-time) safety
29403         Define inttype_is_signed rather than inttype_is_unsigned,
29404         since the sole use is via "#if inttype_is_signed".
29405         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29406         inttype_is_unsigned.
29407         * lib/offtostr.c (inttype_is_signed): Likewise.
29408         * lib/uinttostr.c (inttype_is_signed): Likewise.
29409         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29410         * lib/inttostr.c (inttostr): Use verify to cross-check the
29411         inttype_is_signed value and the signedness of the actual type.
29412         * modules/inttostr (Depends-on): Add verify.
29413
29414 2009-10-30  Eric Blake  <ebb9@byu.net>
29415
29416         build: avoid compiler warnings
29417         * lib/fchmodat.c (lchmod): Mark unused variables.
29418         * lib/getopt.c (_getopt_initialize): Likewise.
29419         * lib/mktime.c (__mktime_internal): Provide prototype.
29420         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29421         older gcc that do not understand #pragma GCC diagnostic.
29422         * lib/uinttostr.c (inttype_is_unsigned): Define.
29423         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29424
29425 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29426
29427         stat: fix compilation on AIX
29428         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29429         only see struct stat64.
29430
29431 2009-10-30  Eric Blake  <ebb9@byu.net>
29432
29433         exclude: make more robust
29434         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29435         rather than masking a coding bug.
29436         Suggested by Bruno Haible.
29437
29438 2009-10-30  Jim Meyering  <meyering@redhat.com>
29439
29440         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29441         Rather than putting #!/usr/bin/perl on the first line,
29442         start with a variant of what's recommended by "man perlrun" that
29443         invokes the first "perl" program from your shell's search path.
29444         * build-aux/gitlog-to-changelog: Replace #!... as above.
29445         Add a "Local Variables" perl mode setting.
29446         Prompted by a patch from Ludovic Courtès.
29447         Improved by Eric Blake.
29448         * build-aux/useless-if-before-free: Likewise.
29449         * build-aux/announce-gen: Likewise.
29450         * build-aux/update-copyright: Likewise.
29451
29452 2009-10-29  Eric Blake  <ebb9@byu.net>
29453
29454         filenamecat-lgpl: adjust clients
29455         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29456         filenamecat.
29457         * modules/renameat (Depends-on): Likewise.
29458
29459         filenamecat: split into filenamecat-lgpl
29460         * modules/filenamecat-lgpl: New module.
29461         * modules/filenamecat (Files): Move library-safe files into
29462         filenamecat-lgpl.
29463         (Depends-on): Add filenamecat-lgpl.
29464         (configure.ac): Declare witness.
29465         * lib/filenamecat.h (file_name_concat): Only declare when using
29466         GPL module.
29467         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29468         Move...
29469         * lib/filenamecat-lgpl.c: ...into new file.
29470         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29471         (gl_FILE_NAME_CONCAT): Use it.
29472         * MODULES.html.sh (File system functions): Mention new module.
29473
29474         argp: avoid memory leak
29475         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29476         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29477         base_name, since the latter malloc()s and can call exit().
29478         Leak introduced 2006-07-03.
29479
29480         dirname-lgpl: adjust clients that don't need full dirname
29481         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29482         * modules/filenamecat (Depends-on): Likewise.
29483         * modules/linkat (Depends-on): Likewise.
29484         * modules/mkancesdirs (Depends-on): Likewise.
29485         * modules/mkdir (Depends-on): Likewise.
29486         * modules/openat (Depends-on): Likewise.
29487         * modules/savewd (Depends-on): Likewise.
29488         * modules/rename (Depends-on): Likewise.
29489         (License): Relax license.
29490         * modules/mkdir-tests (Depends-on): Drop progname.
29491         (Makefile.am): Delete unneeded LDADD.
29492         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29493
29494         dirname: split into dirname-lgpl
29495         * modules/dirname-lgpl: New module.
29496         * modules/dirname (Files): Move library-safe files into
29497         dirname-lgpl.
29498         (Depends-on): Add dirname-lgpl.
29499         (configure.ac): Declare witness.
29500         * modules/double-slash-root (License): Relax license.
29501         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29502         module.
29503         * lib/dirname.c (dir_len, mdir_name): Move...
29504         * lib/dirname-lgpl.c: ...into new file.
29505         * lib/basename.c (last_component, base_len): Move...
29506         * lib/basename-lgpl.c: ...into new file.
29507         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29508         (gl_DIRNAME): Use it.
29509         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29510         Mention new module.
29511         * modules/dirname-tests (Depends-on): Add progname.
29512         * tests/test-dirname.c (program_name): Delete.
29513
29514         mkdir: make safe for libraries
29515         * modules/mkdir (Depends-on): Drop xalloc.
29516         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29517         exit.
29518
29519         tests: avoid some compiler warnings
29520         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29521         literals.
29522         * tests/test-memchr.c (main): Avoid type mismatch.
29523         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29524         * tests/test-base64.c (main): Likewise.
29525         * tests/test-getdelim.c (main): Likewise.
29526         * tests/test-gethostname.c (main): Likewise.
29527         * tests/test-getline.c (main): Likewise.
29528         * tests/test-netinet_in.c (main): Likewise.
29529         * tests/test-select.c (open_server_socket, main): Likewise.
29530         * tests/test-select-stdin.c (main): Likewise.
29531         * tests/test-sockets.c (main): Likewise.
29532         * tests/test-strsignal.c (main): Likewise.
29533         * tests/test-sys_select.c (main): Likewise.
29534         * tests/test-sys_socket.c (main): Likewise.
29535         * tests/test-u64.c (main): Likewise.
29536         * tests/test-xfprintf-posix.c (main): Likewise.
29537         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29538
29539         sockets: avoid compiler warning
29540         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29541
29542         maint: detect usage(1) and other suspicious exits
29543         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29544
29545 2009-10-29  Jim Meyering  <meyering@redhat.com>
29546
29547         timespec: long-to-int truncation could make timespec_cmp malfunction
29548         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29549         a multiple of 2^32 nanoseconds as no difference.
29550
29551 2009-10-28  Jim Meyering  <meyering@redhat.com>
29552
29553         fprintftime: wrap macro code argument in "do {...} while(0)"
29554         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29555         cpy macro must be a statement that can be followed by a semicolon.
29556         Now that the else clause contains a comment and is hence longer
29557         than one line, I require curly braces.  That in turn requires
29558         that we wrap this code block in the standard do...while(0).
29559
29560         fprintftime: remove stray semicolon from previous change
29561         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29562
29563         fprintftime: avoid a warning about ignored fwrite return value
29564         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29565         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29566         that is unsafe.
29567         * modules/fprintftime (Depends-on): Add ignore-value.
29568
29569         exclude: avoid an unwarranted warning
29570         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29571
29572 2009-10-27  Eric Blake  <ebb9@byu.net>
29573
29574         fseek: avoid compilation failure when fflush is replaced
29575         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29576         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29577         module is in use.
29578         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29579         module is not in use; since REPLACE_FSEEK worked otherwise.
29580         (GNULIB_FTELLO): Likewise for ftell.
29581         Reported by Ian Beckwith and others.
29582
29583 2009-10-27  Bruno Haible  <bruno@clisp.org>
29584
29585         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29586         Reported by Jim Meyering.
29587
29588 2009-10-27  Jim Meyering  <jim@meyering.net>
29589             Bruno Haible  <bruno@clisp.org>
29590
29591         Avoid warning despite dropping the return value of fwrite.
29592         * lib/unicodeio.c: Include ignore-value.h.
29593         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29594         * modules/unicodeio (Depends-on): Add ignore-value.
29595
29596 2009-10-26  Eric Blake  <ebb9@byu.net>
29597
29598         areadlinkat: fix fallback path
29599         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29600         pointer and zero.
29601
29602 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29603
29604         Use a better IO block size for modern systems
29605         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29606         * lib/md2.c: Likewise.
29607         * lib/md4.c: Likewise.
29608         * lib/md5.c: Likewise.
29609         * lib/sha1.c: Likewise.
29610         * lib/sha256.c: Likewise.
29611         * lib/sha512.c: Likewise.
29612
29613 2009-10-22  Eric Blake  <ebb9@byu.net>
29614
29615         tests: avoid several compiler warnings
29616         * tests/test-getcwd.c (main): Avoid buffer underflow.
29617         * tests/test-getdate.c (main): String literals are not safe with
29618         putenv, so use setenv.  Declare unused argument.
29619         * modules/getdate-tests (Depends-on): Add setenv.
29620         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29621         problems with string literals in char *.
29622         * tests/test-hash.c (main): Avoid shadowing declaration.
29623         (insert_new): Treat string literals as char const *.
29624         * tests/test-getopt.h (test_getopt): Likewise.
29625         (getopt_loop): Alter types to minimize casting elsewhere.
29626         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29627         (test_getopt_long_posix): Likewise.
29628         (do_getopt_long): Add wrapper to minimize casting.
29629         * tests/test-atexit.c (clear_temp_file): Use void.
29630         * tests/test-areadlink-with-size.c (main): Declare unused
29631         arguments.
29632         * tests/test-areadlink.c (main): Likewise.
29633         * tests/test-areadlinkat-with-size.c (main): Likewise.
29634         * tests/test-areadlinkat.c (main): Likewise.
29635         * tests/test-canonicalize-lgpl.c (main): Likewise.
29636         * tests/test-canonicalize.c (main): Likewise.
29637         * tests/test-dirent-safer.c (main): Likewise.
29638         * tests/test-dirname.c (main): Likewise.
29639         * tests/test-dup2.c (main): Likewise.
29640         * tests/test-fchdir.c (main): Likewise.
29641         * tests/test-fcntl-h.c (main): Likewise.
29642         * tests/test-fcntl-safer.c (main): Likewise.
29643         * tests/test-fdopendir.c (main): Likewise.
29644         * tests/test-fdutimensat.c (main): Likewise.
29645         * tests/test-fflush.c (main): Likewise.
29646         * tests/test-filenamecat.c (main): Likewise.
29647         * tests/test-filevercmp.c (main): Likewise.
29648         * tests/test-fopen-safer.c (main): Likewise.
29649         * tests/test-fopen.c (main): Likewise.
29650         * tests/test-fpending.c (main): Likewise.
29651         * tests/test-fpurge.c (main): Likewise.
29652         * tests/test-freading.c (main): Likewise.
29653         * tests/test-fstatat.c (main): Likewise.
29654         * tests/test-fsync.c (main): Likewise.
29655         * tests/test-futimens.c (main): Likewise.
29656         * tests/test-getndelim2.c (main): Likewise.
29657         * tests/test-gettimeofday.c (main): Likewise.
29658         * tests/test-getopt.c (main): Likewise.
29659         * tests/test-i-ring.c (main): Likewise.
29660         * tests/test-inttypes.c (main): Likewise.
29661         * tests/test-link.c (main): Likewise.
29662         * tests/test-lstat.c (main): Likewise.
29663         * tests/test-math.c (main): Likewise.
29664         * tests/test-md5.c (main): Likewise.
29665         * tests/test-memchr2.c (main): Likewise.
29666         * tests/test-memrchr.c (main): Likewise.
29667         * tests/test-mkdir.c (main): Likewise.
29668         * tests/test-mkdirat.c (main): Likewise.
29669         * tests/test-mkfifoat.c (main): Likewise.
29670         * tests/test-open.c (main): Likewise.
29671         * tests/test-openat-safer.c (main): Likewise.
29672         * tests/test-openat.c (main): Likewise.
29673         * tests/test-quotearg.c (main): Likewise.
29674         * tests/test-rawmemchr.c (main): Likewise.
29675         * tests/test-readlink.c (main): Likewise.
29676         * tests/test-remove.c (main): Likewise.
29677         * tests/test-rename.c (main): Likewise.
29678         * tests/test-renameat.c (main): Likewise.
29679         * tests/test-rmdir.c (main): Likewise.
29680         * tests/test-sha1.c (main): Likewise.
29681         * tests/test-signal.c (main): Likewise.
29682         * tests/test-sigaction.c (main): Likewise.
29683         * tests/test-stat.c (main): Likewise.
29684         * tests/test-stat-time.c (main): Likewise.
29685         * tests/test-stddef.c (main): Likewise.
29686         * tests/test-stdint.c (main): Likewise.
29687         * tests/test-stdio.c (main): Likewise.
29688         * tests/test-stdlib.c (main): Likewise.
29689         * tests/test-strchrnul.c (main): Likewise.
29690         * tests/test-strerror.c (main): Likewise.
29691         * tests/test-string.c (main): Likewise.
29692         * tests/test-strtod.c (main): Likewise.
29693         * tests/test-strverscmp.c (main): Likewise.
29694         * tests/test-symlink.c (main): Likewise.
29695         * tests/test-symlinkat.c (main): Likewise.
29696         * tests/test-sys_stat.c (main): Likewise.
29697         * tests/test-sys_time.c (main): Likewise.
29698         * tests/test-time.c (main): Likewise.
29699         * tests/test-unistd.c (main): Likewise.
29700         * tests/test-unlink.c (main): Likewise.
29701         * tests/test-unlinkat.c (main): Likewise.
29702         * tests/test-utimens.c (main): Likewise.
29703         * tests/test-utimensat.c (main): Likewise.
29704         * tests/test-version-etc.c (main): Likewise.
29705         * tests/test-wchar.c (main): Likewise.
29706         * tests/test-wctype.c (main): Likewise.
29707         * tests/test-xprintf-posix.c (main): Likewise.
29708         * tests/test-posixtm.c (main): Likewise.
29709         (STREQ): Delete unused macro.
29710         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29711         shadowed variables.
29712         * tests/test-memchr.c (main): Likewise.
29713
29714 2009-10-21  Eric Blake  <ebb9@byu.net>
29715
29716         areadlinkat: avoid failure on older glibc
29717         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29718         rather than mis-comparing 0 against FUNC_RESULT of char*.
29719
29720 2009-10-21  Bruno Haible  <bruno@clisp.org>
29721
29722         * modules/stpncpy (License): Relicense under LGPLv2+.
29723         Reported by David Lutterkort <lutter@redhat.com>.
29724
29725 2009-10-20  Eric Blake  <ebb9@byu.net>
29726
29727         utimensat: work around Solaris 9 bug
29728         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29729         has trailing slash bugs.
29730         * tests/test-lutimens.h (test_lutimens): Enhance test.
29731         * tests/test-utimens.h (test_utimens): Likewise.
29732         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29733         * doc/posix-functions/utimes.texi (utimes): Likewise.
29734         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29735         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29736         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29737         * doc/posix-functions/futimens.texi (futimens): Likewise.
29738
29739         fdutimensat: new module
29740         * modules/fdutimensat: New file.
29741         * lib/fdutimensat.c (fdutimensat): Likewise.
29742         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29743         * MODULES.html.sh (File system functions): Mention module.
29744         * modules/fdutimensat-tests: New test.
29745         * tests/test-fdutimensat.c: Likewise.
29746
29747         doc: regenerate INSTALL
29748         * doc/INSTALL: Reflect recent autoconf update.
29749         * doc/INSTALL.ISO: Likewise.
29750         * doc/INSTALL.UTF-8: Likewise.
29751
29752 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29753
29754         acl: warn if ACL support is not detected
29755         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29756
29757 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29758
29759         * lib/nproc.h: Add extern "C" block for C++.
29760
29761 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29762             Bruno Haible  <bruno@clisp.org>
29763
29764         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29765         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29766         * doc/posix-functions/isalpha.texi: Likewise.
29767         * doc/posix-functions/isblank.texi: Likewise.
29768         * doc/posix-functions/iscntrl.texi: Likewise.
29769         * doc/posix-functions/isdigit.texi: Likewise.
29770         * doc/posix-functions/isgraph.texi: Likewise.
29771         * doc/posix-functions/islower.texi: Likewise.
29772         * doc/posix-functions/isprint.texi: Likewise.
29773         * doc/posix-functions/ispunct.texi: Likewise.
29774         * doc/posix-functions/isspace.texi: Likewise.
29775         * doc/posix-functions/isupper.texi: Likewise.
29776         * doc/posix-functions/isxdigit.texi: Likewise.
29777
29778 2009-10-18  Bruno Haible  <bruno@clisp.org>
29779
29780         Tests for module 'isblank'.
29781         * modules/isblank-tests: New file.
29782         * tests/test-isblank.c: New file.
29783
29784         New module 'isblank'.
29785         * lib/isblank.c: New file.
29786         * m4/isblank.m4: New file.
29787         * modules/isblank: New file.
29788         * doc/posix-functions/isblank.texi: Mention the new module.
29789
29790 2009-10-18  Bruno Haible  <bruno@clisp.org>
29791
29792         New module 'ctype'.
29793         * lib/ctype.in.h: New file.
29794         * m4/ctype.m4: New file.
29795         * modules/ctype: New file.
29796         * doc/posix-headers/ctype.texi: Mention the new module.
29797
29798 2009-10-18  Jim Meyering  <meyering@redhat.com>
29799
29800         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29801         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29802         right after its initialization, rather than farther down.
29803         Keeping these in close proximity makes it easier to ensure
29804         that each such variable is initialized.  E.g.,
29805
29806             LIB_CLOCK_GETTIME=
29807             AC_SUBST([LIB_CLOCK_GETTIME])
29808
29809         This change also increments these serial numbers.
29810         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29811         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29812         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29813
29814 2009-10-18  Bruno Haible  <bruno@clisp.org>
29815
29816         Don't let environment variables perturb build.
29817         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29818         (gl_PREREQ_GETHRXTIME): ... not here.
29819
29820 2009-10-18  Bruno Haible  <bruno@clisp.org>
29821
29822         Avoid symlink attack in localcharset module.
29823         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29824         (O_NOFOLLOW): Define fallback.
29825         (get_charset_aliases): Don't open the file if it is a symbolic link.
29826         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29827         gl_FCNTL_H.
29828         (gl_FCNTL_H): Require it.
29829         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29830         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29831         Reported by Fergal Glynn <fglynn@veracode.com>.
29832
29833 2009-10-18  Bruno Haible  <bruno@clisp.org>
29834
29835         Implement nproc for mingw.
29836         * lib/nproc.c: Include <windows.h>
29837         (num_processors): On native Windows platforms, try GetSystemInfo.
29838
29839 2009-10-18  Bruno Haible  <bruno@clisp.org>
29840
29841         Implement nproc for IRIX.
29842         * lib/nproc.c: Include <sys/sysmp.h>.
29843         (num_processors): On IRIX systems, try sysmp.
29844         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29845
29846 2009-10-18  Bruno Haible  <bruno@clisp.org>
29847
29848         Implement nproc for HP-UX.
29849         * lib/nproc.c: Include <sys/pstat.h>
29850         (num_processors): On HP-UX systems, try pstat_getdynamic.
29851         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29852         pstat_getdynamic.
29853
29854 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29855             Bruno Haible  <bruno@clisp.org>
29856
29857         Implement nproc for NetBSD, OpenBSD.
29858         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29859         (ARRAY_SIZE): New macro.
29860         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29861         * m4/nproc.m4: New file.
29862         * modules/nproc (Files): Add m4/nproc.m4.
29863         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29864         (Makefile.am): Instead, augment lib_SOURCES.
29865
29866 2009-10-18  Bruno Haible  <bruno@clisp.org>
29867
29868         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29869         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29870         sys/param.h.
29871
29872 2009-10-16  Eric Blake  <ebb9@byu.net>
29873
29874         utimensat: new module
29875         * modules/utimensat: New file.
29876         * lib/utimensat.c (utimensat): Likewise.
29877         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29878         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29879         so we can work around Linux bugs.
29880         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29881         * modules/sys_stat (Makefile.am): Substitute them.
29882         * lib/sys_stat.in.h (utimensat): Declare it.
29883         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29884         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29885         * modules/utimensat-tests: New test.
29886         * tests/test-utimensat.c: Likewise.
29887
29888         utimens: let lutimens work on non-symlinks
29889         * lib/utimens.c (lutimens): Fall back to utimens rather than
29890         failing with ENOSYS, when file is not a symlink.
29891         (utimens): Reduce redirection.
29892         * tests/test-lutimens.h (test_lutimens): Update test to cover
29893         non-symlinks.
29894         * tests/test-utimens.h (test_utimens): Update test to cover
29895         symlinks.
29896         * tests/test-utimens.c (main): Update caller.
29897
29898         utimens: cache whether utimensat syscall works
29899         * lib/utimens.c (utimensat_works_really): New cache variable.
29900         (fdutimens, lutimens): Use it to avoid failing syscall.
29901
29902         test-stat-time, test-utimens: improve portability
29903         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29904         ext4 on alpha, and for cygwin.
29905         * tests/test-utimens-common.h: New file.
29906         (nap): Factor delays into single function.
29907         * tests/test-lutimens.h (test_lutimens): Use new header.
29908         * tests/test-futimens.h (test_futimens): Likewise.
29909         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29910         timestamps to occur from same machine, as was done previously for
29911         test_utimens.
29912         * modules/utimens-tests (Files): Ship new file.
29913         * modules/futimens-tests (Files): Likewise.
29914         Reported in part by Jim Meyering.
29915
29916         sys_stat: sort replacement declarations
29917         * lib/sys_stat.in.h: Sort declarations.
29918         * lib/futimens.c (futimens): Fix typo.
29919
29920 2009-10-15  Jim Meyering  <meyering@redhat.com>
29921
29922         don't let environment settings perturb build
29923         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29924         could cause a configure-time and/or build-time malfunction.
29925         Typically, a configure-time function-in-library test is performed
29926         via code like this:
29927
29928           LIB_VAR=
29929           AC_SUBST([LIB_VAR])
29930           prefix_saved_LIBS=$LIBS
29931             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29932                        [test "$ac_cv_search_FUNC" = "none required" ||
29933                         LIB_VAR=$ac_cv_search_FUNC])
29934           LIBS=$prefix_saved_LIBS
29935
29936         However, in each of the files affected by this change, the LIB_VAR=
29937         initialization was omitted.  Thus, when set in the environment, its
29938         value would propagate into generated Makefiles when FUNC is not found
29939         in LIB_NAME.
29940         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29941         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29942         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29943
29944 2009-10-14  Eric Blake  <ebb9@byu.net>
29945
29946         fchdir: avoid infinite recursion in mingw
29947         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
29948         recursing.
29949
29950         test-stat-time: port to mingw
29951         * tests/test-stat-time.c (force_unlink): Return a value.
29952         (test_ctime) [W32]: Fix compilation error.
29953         (nap): Don't call usleep with too large an argument.  Use
29954         force_unlink.
29955         * doc/pastposix-functions/usleep.texi (usleep): Document the
29956         portability issue.
29957
29958 2009-10-13  Jim Meyering  <meyering@redhat.com>
29959
29960         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
29961         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
29962         * modules/pipe-filter-ii: Likewise.
29963         * modules/sys_socket-tests: Likewise.
29964         * modules/tsearch-tests: Likewise.
29965         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
29966         (check): Depend on it.
29967
29968 2009-10-12  Eric Blake  <ebb9@byu.net>
29969
29970         utimens-tests: port to NFS file systems
29971         * tests/test-utimens.h (test_utimens): Refactor utimecmp
29972         comparisons to avoid spurious failures from timestamp drift
29973         between NFS machines.
29974
29975 2009-10-12  Eric Blake  <ebb9@byu.net>
29976
29977         stat-time-tests: minor cleanups
29978         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
29979         * tests/test-stat-time.c (nap): Separate assignment from call.
29980         Suggested by Paolo Bonzini and Bruno Haible.
29981
29982         sys_stat: guarantee struct timespec
29983         * lib/sys_stat.in.h (includes): Always include <time.h>
29984         * modules/sys_stat (Depends-on): Add time.
29985         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
29986         mode_t permission values.
29987         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
29988         get at subsecond timestamps.
29989
29990 2009-10-10  Eric Blake  <ebb9@byu.net>
29991
29992         futimens: new module
29993         * modules/futimens: New file.
29994         * lib/futimens.c (futimens): Likewise.
29995         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
29996         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
29997         we can work around Linux bugs.
29998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29999         * modules/sys_stat (Makefile.am): Substitute them.
30000         * lib/sys_stat.in.h (futimens): Declare it.
30001         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30002         * doc/posix-functions/futimens.texi (futimens): Likewise.
30003         * modules/futimens-tests: New test.
30004         * tests/test-futimens.c: Likewise.
30005
30006         utimens: introduce fdutimens
30007         * lib/utimens.h (fdutimens): New prototype.
30008         * lib/utimens.c (gl_futimens): Move guts...
30009         (fdutimens): ...to new interface.
30010         * tests/test-utimens.c (do_fdutimens): Use it.
30011
30012         utimens: add UTIME_NOW and UTIME_OMIT support
30013         * lib/utimens.c (validate_timespec, update_timespec): New helper
30014         functions.
30015         (gl_futimens, lutimens): Use them.
30016         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30017         stdbool, sys_stat.
30018         (Link): Mention resulting library dependency.
30019         * modules/utimecmp (Link): Likewise.
30020         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30021         (Makefile.am): Pick up library dependency.
30022         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30023         definition.
30024         * tests/test-sys_stat.c: Test the definitions.
30025         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30026         * NEWS: Document library dependency.
30027
30028         utimecmp: support symlink timestamps
30029         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30030         hashing when possible.  Use pathconf when available.
30031         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30032         * modules/utimecmp (Depends-on): Add lstat.
30033
30034         utimens: add lutimens interface
30035         * lib/utimens.c (lutimens): New function.
30036         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30037         * lib/utimens.h (lutimens): Declare new interface.
30038         * tests/test-utimens.c (main): Enhance test.
30039         * tests/test-lutimens.h (test_lutimens): New file.
30040         * modules/utimens-tests (Files): Distribute it.
30041         (Depends-on): Add symlink.
30042         (configure.ac): Check for usleep.
30043
30044         utimens: validate futimens usage
30045         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30046         fewer syscalls on failure later on.  Avoid compiler warning on
30047         mingw.
30048         * modules/utimens (Depends-on): Add dup2.
30049
30050         utimens: add test
30051         * modules/utimens-tests: New test.
30052         * tests/test-utimens.h: New file.
30053         * tests/test-futimens.h: Likewise.
30054         * tests/test-utimens.c: Likewise.
30055
30056         doc: mention timestamp portability issues
30057         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30058         instead.
30059         * doc/posix-functions/utime.texi (utime): Likewise.
30060         * doc/posix-functions/utimes.texi (utimes): Likewise.
30061         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30062         instead.
30063         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30064         module.
30065         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30066         Mention weakness with symlink timestamps.
30067         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30068         to utimensat/futimens instead.
30069         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30070
30071         test-dup2: enhance test
30072         * tests/test-dup2.c (main): Also check AT_FDCWD.
30073
30074         test-stat-time: avoid more spurious failures
30075         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30076         xfs; and avoid race if the two timestamps cross quantization edge.
30077
30078         relocatable: prefer 'file system' over 'filesystem'
30079         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30080         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30081         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30082         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30083         * lib/relocatable.c (compute_curr_prefix): Likewise.
30084
30085 2009-10-10  Jim Meyering  <meyering@redhat.com>
30086
30087         stat-time-tests: check for the usleep function
30088         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30089
30090 2009-10-10  Bruno Haible  <bruno@clisp.org>
30091
30092         * modules/xnanosleep: Put the Link section after the Include section.
30093
30094 2009-10-09  Eric Blake  <ebb9@byu.net>
30095
30096         dup2: work around FreeBSD 6.1 bug
30097         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30098         * doc/posix-functions/dup2.texi (dup2): Document it.
30099         Reported by Nelson H. F. Beebe and Jim Meyering.
30100
30101         test-stat-time: port to buggy NFS clients
30102         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30103         (test_ctime): Also skip test if mtime and ctime are skewed.
30104
30105         maint: prefer 'file system' over 'filesystem'
30106         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30107         * doc/posix-functions/lstat.texi (lstat): Likewise.
30108         * lib/file-has-acl.c (file_has_acl): Likewise.
30109         * lib/fwriteerror.c [TEST]: Likewise.
30110         * tests/test-areadlink.h (test_areadlink): Likewise.
30111         * tests/test-areadlinkat-with-size.c (main): Likewise.
30112         * tests/test-areadlinkat.c (main): Likewise.
30113         * tests/test-canonicalize-lgpl.c (main): Likewise.
30114         * tests/test-canonicalize.c (main): Likewise.
30115         * tests/test-fstatat.c (main): Likewise.
30116         * tests/test-linkat.c (main): Likewise.
30117         * tests/test-lstat.h (test_lstat_func): Likewise.
30118         * tests/test-mkdir.h (test_mkdir): Likewise.
30119         * tests/test-readlink.h (test_readlink): Likewise.
30120         * tests/test-remove.c (main): Likewise.
30121         * tests/test-rename.h (test_rename): Likewise.
30122         * tests/test-renameat.c (main): Likewise.
30123         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30124         * tests/test-symlink.h (test_symlink): Likewise.
30125         * tests/test-symlinkat.c (main): Likewise.
30126         * tests/test-unlink.h (test_unlink_func): Likewise.
30127         * tests/test-unlinkat.c (main): Likewise.
30128
30129         maint: make realtime library usage explicit
30130         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30131         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30132         * modules/settime (Link): Likewise.
30133         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30134
30135         test-stat-time: speed up execution
30136         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30137         warning on mingw.
30138         (nap): New helper function.
30139         (prepare_test): Use it to reduce sleep time.
30140         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30141         execution.
30142         * modules/stat-time-tests (configure.ac): Check for usleep.
30143
30144 2009-10-09  Jim Meyering  <meyering@redhat.com>
30145
30146         selinux-h: always use getfilecon wrappers
30147         * lib/getfilecon.c: New file.
30148         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30149         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30150         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30151         (fgetfilecon): Provide a stub.
30152         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30153         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30154         file unconditionally.
30155         When <selinux/selinux.h> is found, arrange to use wrappers.
30156         * modules/selinux-h (Files): Add getfilecon.c.
30157         (Makefile.am): Substitute include-next-related bits
30158         into the now-always-generated selinux/selinux.h file.
30159         * doc/glibc-functions/lgetfilecon.texi: New file.
30160         * doc/glibc-functions/fgetfilecon.texi: New file.
30161         * doc/glibc-functions/getfilecon.texi: New file.
30162         * doc/glibc-functions/getfilecon-desc.texi: New file.
30163         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30164         which to pull in the new files.
30165         * MODULES.html.sh (Misc): Add selinux-h.
30166
30167 2009-10-08  Jim Meyering  <meyering@redhat.com>
30168
30169         unistd: fix comment typo
30170         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30171
30172 2009-10-08  Eric Blake  <ebb9@byu.net>
30173
30174         areadlink: use SIZE_MAX consistently
30175         * modules/areadlink (Depends-on): Add stdint.
30176         * modules/areadlink-with-size (Depends-on): Likewise.
30177         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30178         gives NULL; drop sys/types, since unistd gives size_t; and add
30179         stdint for SIZE_MAX.
30180         (SIZE_MAX): Rely on headers.
30181         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30182         and add stdint.
30183         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30184         (SIZE_MAX): Likewise.
30185         (INITIAL_BUF_SIZE): Turn into enum.
30186         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30187
30188 2009-10-08  Jim Meyering  <meyering@redhat.com>
30189
30190         areadlinkat: avoid compilation failure
30191         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30192         Fix typo in comment.
30193
30194 2009-10-07  Eric Blake  <ebb9@byu.net>
30195
30196         areadlinkat-with-size: new module
30197         * modules/areadlinkat-with-size: New module.
30198         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30199         * lib/areadlink.h (areadlinkat): Declare it.
30200         * MODULES.html.sh (File system functions): Mention it.
30201         * modules/areadlinkat-with-size-tests: New test.
30202         * tests/test-areadlinkat-with-size.c: New file.
30203
30204         xreadlinkat: new module
30205         * modules/xreadlinkat: New module.
30206         * lib/xreadlinkat.c (xreadlinkat): New file.
30207         * lib/xreadlink.h (xreadlinkat): Declare it.
30208         * MODULES.html.sh (File system functions): Mention it.
30209
30210         areadlinkat: new module
30211         * lib/at-func.c (FUNC_FAIL): New define.
30212         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30213         * modules/areadlinkat: New module.
30214         * lib/linkat.c (areadlinkat): Move...
30215         * lib/areadlinkat.c (areadlinkat): ...to new file.
30216         * lib/areadlink.h (areadlinkat): Declare it.
30217         * modules/linkat (Depends-on): Add areadlinkat.
30218         * MODULES.html.sh (File system functions): Mention it.
30219         * modules/areadlinkat-tests: New test.
30220         * tests/test-areadlinkat.c: New file.
30221
30222         areadlink, areadlink-with-size: add tests
30223         * modules/areadlink-tests: New test.
30224         * modules/areadlink-with-size-tests: Likewise.
30225         * tests/test-areadlink.h: New file.
30226         * tests/test-areadlink.c: Likewise.
30227         * tests/test-areadlink-with-size.c: Likewise.
30228
30229         maint: minor cleanups
30230         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30231         _UNUSED_PARAMETER_ instead.
30232         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30233         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30234         * modules/linkat-tests (Files): Distribute test-link.h.
30235
30236         openat, utimens: whitespace cleanup
30237         * lib/openat.c: Prefer space throughout, rather than mix of 8
30238         spaces vs. tabs.
30239         * lib/at-func.c: Likewise.
30240         * lib/utimens.c: Likewise.
30241
30242         openat: avoid using wrong fd
30243         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30244         working directory chooses same fd.
30245         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30246
30247         mkdir, mkdirat: fix cygwin 1.5.x bug
30248         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30249         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30250         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30251         bug.
30252         (gl_PREREQ_MKDIR): Delete unused macro.
30253         * modules/mkdir (Files): Track file rename.
30254         (configure.ac): Update macro name.
30255         * modules/openat (Depends-on): Add mkdir.
30256         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30257
30258         mkdir, mkdirat: add tests
30259         * modules/mkdir-tests: New test.
30260         * tests/test-mkdir.h: New file.
30261         * tests/test-mkdir.c: Likewise.
30262         * tests/test-mkdirat.c: Likewise.
30263         * modules/openat-tests (Files): Add new files.
30264         (Makefile.am): Run new test.
30265
30266 2009-10-06  Eric Blake  <ebb9@byu.net>
30267
30268         doc: tweak *at function documentation
30269         * doc/posix-functions/faccessat.texi (faccessat): Mention
30270         known issue with replacement.
30271         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30272         * doc/posix-functions/linkat.texi (linkat): Likewise.
30273         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30274         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30275         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30276         * doc/posix-functions/renameat.texi (renameat): Likewise.
30277         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30278
30279         openat: fix GNU/Hurd bug in unlinkat
30280         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30281         broken.
30282         * doc/posix-functions/unlink.texi (unlink): Document this.
30283         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30284
30285         fdopendir: fix GNU/Hurd bug
30286         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30287         allowing non-directory fds.
30288         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30289         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30290         * modules/dirent (Makefile.am): Substitute it.
30291         * lib/dirent.in.h (fdopendir): Declare replacement.
30292         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30293         * tests/test-fdopendir.c (main): Test something other than
30294         /dev/null, since on Hurd that behaves like a directory.
30295
30296         test-symlink: port to GNU/Hurd
30297         * tests/test-symlink.h (test_symlink): Relax expected errno.
30298
30299         doc: tweak more cygwin information
30300         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30301         now compatible with glibc.
30302         * doc/posix-functions/getopt.texi (getopt): Likewise.
30303
30304         getopt-gnu: add another test
30305         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30306         guarantee behavior relied on by m4.
30307         * tests/test-getopt.c (main): Use it.
30308         * modules/getopt-posix-tests (Depends-on): Add setenv.
30309         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30310
30311         getopt: fix compilation on darwin
30312         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30313         include.
30314         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30315         Reported by Ludovic Courtès.
30316
30317 2009-10-06  Bruno Haible  <bruno@clisp.org>
30318
30319         * modules/size_max (Description): Discourage its use.
30320         Reported by Simon Josefsson.
30321
30322 2009-10-06  Jim Meyering  <meyering@redhat.com>
30323
30324         linkat: avoid compilation failure
30325         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30326
30327 2009-10-05  Eric Blake  <ebb9@byu.net>
30328
30329         linkat: support Linux 2.6.17
30330         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30331         linkat on Linux, but allow cache variable override.
30332         * lib/linkat.c (rpl_linkat): Define override.
30333         * modules/linkat (Depends-on): Add symlinkat.
30334         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30335         * modules/unistd (Makefile.am): Substitute it.
30336         * lib/unistd.in.h (linkat): Declare replacement.
30337         Reported by Pádraig Brady.
30338
30339         quotearg: port test to systems with C.UTF-8 locale
30340         * tests/test-quotearg.c (struct result_strings): Add another
30341         member, differentiating between C.ASCII and C.UTF-8 handling.
30342         (compare_strings): Add parameter.
30343         (main): Adjust all callers.
30344
30345         getopt: avoid clash with FreeBSD _getopt_internal
30346         * lib/getopt.in.h (_getopt_internal): Override the name.
30347         * lib/getopt_int.h (includes): Pick up any overrides.
30348         Reported by Reuben Thomas.
30349
30350         hash: allow C89 compilation
30351         * lib/hash.c (check_tuning): Move declaration before statement.
30352         Reported by Reuben Thomas.
30353
30354 2009-10-05  Karl Berry  <karl@gnu.org>
30355
30356         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30357
30358 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30359             Bruno Haible  <bruno@clisp.org>
30360
30361         * lib/uname.c (uname): Use a table-driven algorithm to compute
30362         Windows NT versions.
30363
30364 2009-10-04  Bruno Haible  <bruno@clisp.org>
30365
30366         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30367         program_invocation_short_name.
30368         * modules/progname (configure.ac): Test for presence of
30369         program_invocation_short_name.
30370         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30371
30372 2009-10-04  Bruno Haible  <bruno@clisp.org>
30373
30374         * lib/progname.c (set_program_name): Fix comment.
30375         Reported by Jim Meyering.
30376
30377 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30378             Bruno Haible  <bruno@clisp.org>
30379
30380         * lib/uname.c: Include <string.h>.
30381         (uname): Do only one call to GetVersionEx in the common case.
30382
30383 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30384             Bruno Haible  <bruno@clisp.org>
30385
30386         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30387         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30388         (uname): Add support for Windows CE and various non-x86 CPU types.
30389
30390 2009-10-03  Bruno Haible  <bruno@clisp.org>
30391
30392         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30393         invocation to tests/configure.ac.
30394         Reported by Ian Beckwith <ianb@erislabs.net>.
30395
30396 2009-10-02  Eric Blake  <ebb9@byu.net>
30397
30398         fchdir: avoid compiler warning
30399         * lib/fchdir.c (canonicalize_file_name)
30400         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30401
30402         test-open: support mingw errno values
30403         * tests/test-open.h (test_open): Relax test.
30404         * tests/test-fopen.h (test_fopen): Likewise.
30405         * tests/test-openat-safer.c (main): Likewise.
30406
30407         open: fix opening directory on mingw
30408         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30409
30410         test-open: on GNU/Hurd, /dev/null is a directory
30411         * tests/test-fopen.h (main): Rename...
30412         (test_fopen): ...to this.  Use a guaranteed non-directory when
30413         confirming open behavior on trailing slash.
30414         * tests/test-openat-safer.c (main): Likewise.
30415         * tests/test-open.h (main): Likewise....
30416         (test_open): ...to this.
30417         * tests/test-fopen.c (main): Adjust caller.
30418         * tests/test-fopen-safer.c (main): Likewise.
30419         * tests/test-open.c (main): Likewise.
30420         * tests/test-fcntl-safer.c (main): Likewise.
30421         Reported by Samuel Thibault.
30422
30423         rename, fchdir: don't ignore chdir failure
30424         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30425         * lib/rename.c (rpl_rename) [W32]: Likewise.
30426         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30427         an empty destination directory if source cannot be renamed,
30428         although there is still possibility for failure.
30429         * doc/posix-functions/rename.texi (rename): Document the race.
30430         Reported by Jim Meyering.
30431
30432         maint: cleanup whitespace in recent commits
30433         * lib/rename.c (rpl_rename): Remove tabs.
30434         * tests/test-link.h (test_link): Likewise.
30435         * lib/fchdir.c (get_name): Likewise.
30436         Reported by Jim Meyering.
30437
30438 2009-10-02  Ben Pfaff  <blp@gnu.org>
30439
30440         relocatable-prog-wrapper: Add missing dependency on
30441         double-slash-root.
30442         * modules/relocatable-prog-wrapper: Add dependency.
30443         Reported by Ian Beckwith <ianb@erislabs.net>.
30444
30445 2009-10-02  Eric Blake  <ebb9@byu.net>
30446
30447         renameat: fix Solaris bugs
30448         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30449         needed fixing.
30450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30451         * modules/stdio (Makefile.am): Substitute it.
30452         * lib/stdio.in.h (renameat): Declare replacement.
30453         * lib/renameat.c (rpl_renameat): Implement fix.
30454
30455         renameat: new module
30456         * modules/renameat: New file.
30457         * lib/renameat.c (renameat): Likewise.
30458         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30459         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30460         * modules/stdio (Makefile.am): Substitute them.
30461         * lib/stdio.in.h (renameat): Declare it.
30462         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30463         * doc/posix-functions/renameat.texi (renameat): Likewise.
30464         * modules/renameat-tests: New test.
30465         * tests/test-renameat.c: Likewise.
30466
30467         rename: fix mingw bugs
30468         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30469         directory overwrite bugs.
30470
30471         rename: fix another cygwin 1.5 bug
30472         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30473         checks.
30474         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30475         unnecessary cygwin workarounds.  Also work around bug with moving
30476         full directory onto an empty one.
30477         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30478
30479         rename-dest-slash: merge into rename module
30480         * modules/rename-dest-slash (Status): Mark obsolete.
30481         (Depends-on): Add rename.
30482         (Files): Let rename do it all.
30483         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30484         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30485         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30486         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30487         * lib/rename.c (rpl_rename): Update comments.
30488
30489         rename: fix cygwin 1.5.x bugs
30490         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30491         * lib/rename.c (rpl_rename): Work around them.
30492         * modules/rename (Depends-on): Add same-inode.
30493
30494         rename: fix Solaris 10 bug
30495         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30496         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30497         was the only bug.
30498
30499         rename: fix Solaris 9 bug
30500         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30501         on non-directory.  Avoid calling exit.
30502         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30503         strdup.
30504         * modules/rename-tests (Depends-on): Drop lstat.
30505         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30506         (gl_PREREQ_RENAME): Delete unused macro.
30507
30508         rename-dest-slash: fix NetBSD bug
30509         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30510         links.
30511         * modules/rename-dest-slash (Depends-on): Add same-inode.
30512
30513         rename-tests: new test, exposes several platform bugs
30514         * modules/rename-tests: New file.
30515         * tests/test-rename.h: Likewise.
30516         * tests/test-rename.c: Likewise.
30517         * doc/posix-functions/rename.texi (rename): Improve documentation,
30518         including bugs that will eventually be fixed in gnulib.
30519
30520 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30521
30522         * lib/uname.c: Include <stdlib.h>
30523         (uname): Assume version info is available.
30524
30525 2009-10-02  Jim Meyering  <meyering@redhat.com>
30526
30527         gnu-web-doc-update: correct --help output
30528         * build-aux/gnu-web-doc-update: Make --help output relevant.
30529
30530         gnu-web-doc-update: add standard options
30531         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30532
30533         gnu-web-doc-update: New module.
30534         Use this script to automatically update the on-line web documentation
30535         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30536         * modules/gnu-web-doc-update: New file, from coreutils.
30537         * build-aux/gnu-web-doc-update: New script.
30538
30539 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30540
30541         link: LoadLibrary is not needed.
30542         * lib/link.c: Use GetModuleHandle.
30543
30544 2009-10-01  Eric Blake  <ebb9@byu.net>
30545
30546         getopt: bump serial number
30547         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30548         change.
30549
30550         tests: tighten link, rmdir, and remove tests
30551         * tests/test-link.h (includes): No need to use <config.h> here.
30552         Clean up if directory hard link was created, otherwise test for
30553         trailing '.'.
30554         * tests/test-linkat.c (main): Simplify.
30555         * tests/test-remove.c (main): Enhance test for trailing '.'.
30556         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30557
30558 2009-10-01  Jim Meyering  <meyering@redhat.com>
30559
30560         maint.mk: requiring "make major" was annoying, for a "minor" release.
30561         What is intended is "stable", to contrast with alpha and beta,
30562         so require "make stable", not "make major".
30563         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30564         (get_tool_versions): Likewise.
30565         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30566
30567 2009-09-30  Ben Pfaff  <blp@gnu.org>
30568
30569         Fix broken build of replacement for Windows tmpfile().
30570         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30571         flags argument added along with the 'mkostemp' module.
30572
30573 2009-09-28  Bruno Haible  <bruno@clisp.org>
30574
30575         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30576         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30577         to 'remove_elt'.
30578         (gl_list_remove): Update.
30579         * lib/gl_list.c (gl_list_remove): Update.
30580         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30581         to 'remove_elt'.
30582         (gl_oset_remove): Update.
30583         * lib/gl_list.c (gl_oset_remove): Update.
30584         Reported by Eric Blake.
30585
30586 2009-09-28  Eric Blake  <ebb9@byu.net>
30587
30588         doc: mention yet more cygwin 1.7 status
30589         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30590         cygwin.
30591         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30592         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30593
30594         argp: fix test failure
30595         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30596         that are not upper-case.  Pass correct range to tolower.
30597
30598 2009-09-27  Jim Meyering  <meyering@redhat.com>
30599
30600         test-yesno: work around sparc-dash here-document infelicity
30601         Without this change, the literal \177 byte in a here document
30602         would make dash 0.5.5.1-3 access uninitialized memory.
30603         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30604         Instead, use a marker, "@", and filter through tr to create the desired
30605         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30606
30607 2009-09-27  Bruno Haible  <bruno@clisp.org>
30608
30609         Disable untested support for new flavours of ACLs on AIX.
30610         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30611         progress.
30612         * lib/set-mode-acl.c (qset_acl): Likewise.
30613
30614 2008-12-07  Bruno Haible  <bruno@clisp.org>
30615
30616         Add support for new flavours of ACLs on AIX. (Untested.)
30617         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30618         (file_has_acl): Add support for newer AIX.
30619         * lib/set-mode-acl.c (qset_acl): Likewise.
30620         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30621         Rainer Tammer <tammer@tammer.net>.
30622
30623 2009-09-26  Eric Blake  <ebb9@byu.net>
30624
30625         argp: fix compilation of getopt
30626         * lib/getopt.in.h (includes): Use different guard than glibc.
30627         Reported by Sergey Poznyakoff.
30628
30629         doc: mention more cygwin 1.7 status
30630         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30631         bug.
30632         * doc/posix-functions/execl.texi (execl): Likewise.
30633         * doc/posix-functions/execle.texi (execle): Likewise.
30634         * doc/posix-functions/execlp.texi (execlp): Likewise.
30635         * doc/posix-functions/execv.texi (execv): Likewise.
30636         * doc/posix-functions/execve.texi (execve): Likewise.
30637         * doc/posix-functions/execvp.texi (execvp): Likewise.
30638         * doc/glibc-functions/canonicalize_file_name.texi
30639         (canonicalize_file_name): Cygwin 1.7 now provides this.
30640         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30641         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30642         on AT_SYMLINK_NOFOLLOW.
30643
30644 2009-09-24  Eric Blake  <ebb9@byu.net>
30645
30646         test-linkat: make test more robust
30647         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30648
30649         getopt: fix inclusion guards for cygwin
30650         * modules/getopt-posix (Depends-on): Add include-next.
30651         (Makefile.am): Substitute more items in replacement header.
30652         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30653         <getopt.h>.
30654         * lib/getopt.in.h (includes): Use split inclusion guard, and
30655         prefer <getopt.h> over include <unistd.h> when one is present.
30656         (option): Also override name of 'struct option'.
30657
30658         same-inode: revert prior change; it is not yet ready
30659         * NEWS: Undo mention of this change.
30660         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30661         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30662         * lib/cycle-check.c (cycle_check): Likewise.
30663         * lib/same.c (same_name): Likewise.
30664         * lib/at-func2.c (at_func2): Likewise.
30665
30666 2009-09-23  Eric Blake  <ebb9@byu.net>
30667
30668         linkat: new module
30669         * modules/linkat: New file.
30670         * lib/at-func2.c (at_func2): Likewise.
30671         * lib/linkat.c (linkat): Likewise.
30672         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30673         * lib/openat-priv.h (at_func2): Add declaration.
30674         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30675         * modules/unistd (Makefile.am): Substitute them.
30676         * lib/unistd.in.h (linkat): Declare it.
30677         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30678         * doc/posix-functions/linkat.texi (linkat): Likewise.
30679         * doc/posix-functions/link.texi (link): Tweak wording.
30680         * tests/test-link.c (main): Move guts...
30681         * tests/test-link.h (test_link): ...into new file.
30682         * modules/linkat-tests: New test.
30683         * tests/test-linkat.c: Likewise.
30684         * modules/link-tests (Files): Ship new file.
30685         (Depends-on): Add stdbool.
30686
30687         dirname: add library-safe mdir_name
30688         * lib/dirname.h (mdir_name): New prototype.
30689         * lib/dirname.c (dir_name): Move guts...
30690         (mdir_name): ...to new function that avoids xalloc_die.
30691
30692         fchdir: another mingw fix
30693         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30694         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30695         on mingw (where it has not yet been ported), and make it optional
30696         elsewhere.
30697         (_gl_register_fd): Use it.
30698
30699         same-inode: make SAME_INODE tri-state, to port to mingw
30700         * NEWS: Mention this change.
30701         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30702         st_ino always being 0.
30703         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30704         * lib/cycle-check.c (cycle_check): Likewise.
30705         * lib/same.c (same_name): Likewise.
30706
30707         lstat: avoid mingw compilation error
30708         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30709         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30710         lstat ourselves.
30711         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30712         was adequate.
30713         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30714         the checks for lstat.
30715         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30716
30717         link: fix test failure on Solaris 9
30718         * lib/link.c (rpl_link): Don't assume link will catch bogus
30719         trailing slash on source.
30720
30721         test-symlinkat: enhance test
30722         * tests/test-readlink.c (main): Move guts...
30723         * tests/test-readlink.h (test_readlink): ...into new file.
30724         * tests/test-symlink.c (main): Move guts...
30725         * tests/test-symlink.h (test_symlink): ...into new file.
30726         * tests/test-symlinkat.c (main): Use new files for further
30727         coverage.
30728         (do_symlink, do_readlink): New helper functions.
30729         * modules/symlink-tests (Files): Ship new file.
30730         (Depends-on): Add stdbool.
30731         * modules/readlink-tests (Files): Ship new file.
30732         (Depends-on): Add stdbool.
30733         * modules/symlinkat-tests (Files): Use new files.
30734
30735 2009-09-23  Eric Blake  <ebb9@byu.net>
30736
30737         readlink: document portability issue with symlink length
30738         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30739         systems have bogus st_size on symlinks, and mention the
30740         areadlink-with-size module.
30741         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30742         * doc/posix-functions/readlink.texi (readlink): Mention the
30743         areadlink module, and ERANGE failure.
30744         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30745         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30746
30747         readlink: fix Solaris 9 bug with trailing slash
30748         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30749         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30750         * doc/posix-functions/readlink.texi (readlink): Document this.
30751         * modules/readlink-tests: New test.
30752         * tests/test-readlink.c: Likewise.
30753
30754         readlink: fix cygwin 1.5.x bug with return type
30755         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30756         * lib/unistd.in.h (readlink): Use ssize_t.
30757         * lib/readlink.c (readlink): Likewise.
30758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30759         * modules/unistd (Makefile.am): Substitute it.
30760         * lib/unistd.in.h (readlink): Declare replacement.
30761         * doc/posix-functions/readlink.texi (readlink): Document this.
30762
30763         symlink: use throughout gnulib
30764         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30765         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30766         symlink is not used.
30767         * modules/symlinkat (Depends-on): Add symlink.
30768         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30769         * modules/canonicalize-tests (Depends-on): Likewise.
30770         * modules/lstat-tests (Depends-on): Likewise.
30771         * modules/openat-tests (Depends-on): Likewise.
30772         * modules/remove-tests (Depends-on): Likewise.
30773         * modules/rmdir-tests (Depends-on): Likewise.
30774         * modules/unlink-tests (Depends-on): Likewise.
30775         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30776         * tests/test-canonicalize.c (symlink): Likewise.
30777         * tests/test-fstatat.c (symlink): Likewise.
30778         * tests/test-lstat.c (symlink): Likewise.
30779         * tests/test-remove.c (symlink): Likewise.
30780         * tests/test-rmdir.c (symlink): Likewise.
30781         * tests/test-unlink.c (symlink): Likewise.
30782         * tests/test-unlinkat.c (symlink): Likewise.
30783
30784         symlink: new module, for Solaris 9 bug
30785         * modules/symlink: New file.
30786         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30787         * lib/symlink.c: Likewise.
30788         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30789         * modules/unistd (Makefile.am): Substitute them.
30790         * lib/unistd.in.h (symlink): Declare replacement.
30791         * MODULES.html.sh (File system functions): Mention it.
30792         * doc/posix-functions/symlink.texi (symlink): Likewise.
30793         * modules/symlink-tests: New test.
30794         * tests/test-symlink.c: Likewise.
30795
30796 2009-09-23  Bruno Haible  <bruno@clisp.org>
30797
30798         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30799         when needed.
30800         Test case: gnulib-tool --import --with-tests atexit inttypes.
30801         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30802
30803 2009-09-23  Bruno Haible  <bruno@clisp.org>
30804
30805         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30806         subcommand, not in a subshell.
30807
30808 2009-09-22  Eric Blake  <ebb9@byu.net>
30809
30810         unistd: sort replacement declarations
30811         * lib/unistd.in.h: Sort declarations.
30812
30813         open, openat: minor optimization
30814         * lib/open.c (open): If open succeeded, len is non-zero.
30815         * lib/openat.c (rpl_openat): Likewise.
30816
30817         link-follow: ensure correct result
30818         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30819         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30820         distinguish between possible failures.
30821
30822 2009-09-21  Eric Blake  <ebb9@byu.net>
30823
30824         fts: avoid compiler warning
30825         * lib/fts.c (dirent_inode_sort_may_be_useful)
30826         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30827
30828 2009-09-19  Bruno Haible  <bruno@clisp.org>
30829
30830         * lib/progreloc.c (canonicalize_file_name): New declaration.
30831
30832 2009-09-19  Eric Blake  <ebb9@byu.net>
30833
30834         link: fix quoting
30835         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30836
30837         openat: fix openat bugs on Solaris 9
30838         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30839         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30840         * modules/openat (Depends-on): Add open.
30841         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30842         * modules/fcntl-h (Makefile.am): Substitute it.
30843         * lib/fcntl.in.h (openat): Declare replacement.
30844         * doc/posix-functions/openat.texi (openat): Document this.
30845
30846         openat: move fstatat and unlinkat into correct files
30847         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30848         compiled.
30849         * lib/openat.c (fstatat, unlinkat): Move...
30850         * lib/fstatat.c (fstatat): ...into correct files.
30851         * lib/unlinkat.c (unlinkat): Likewise.
30852
30853         openat: fix unlinkat bugs on Solaris 9
30854         * lib/unlinkat.c (unlinkat): New file.
30855         * modules/openat (Depends-on): Add unlink.
30856         (Files): Distribute it.
30857         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30858         trailing slash behavior is broken.
30859         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30860         * modules/unistd (Makefile.am): Substitute it.
30861         * lib/unistd.in.h (unlinkat): Declare replacement.
30862         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30863
30864         openat: fix fstatat bugs on Solaris 9
30865         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30866         stat.
30867         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30868
30869         test-unlinkat: enhance test, to expose Solaris 9 bug
30870         * tests/test-unlink.c (main): Factor guts...
30871         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30872         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30873         * tests/test-rmdir.c (main): Adjust caller.
30874         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30875         (unlinker): New helper function.
30876         (rmdirat): Enhance check.
30877         * modules/rmdir-tests (Depends-on): Add stdbool.
30878         * modules/unlink-tests (Depends-on): Likewise.
30879         (Files): Add test-unlink.h.
30880         * modules/openat-tests (Files): Likewise.
30881         (Depends-on): Add unlinkdir.
30882
30883         test-fstatat: new test, to expose Solaris 9 bugs
30884         * tests/test-stat.c (main): Factor guts...
30885         * tests/test-stat.h (test_stat_func): ...into new file.
30886         * tests/test-lstat.c (main): Factor guts...
30887         * tests/test-lstat.h (test_lstat_func): ...into new file.
30888         * tests/test-fstatat.c: New file.
30889         * modules/stat-tests (Files): Add test-stat.h.
30890         * modules/lstat-tests (Files): Add test-lstat.h.
30891         (Depends-on): Add stdbool.
30892         * modules/openat-tests (Depends-on): Add pathmax.
30893         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30894         (Makefile.am): Run new test.
30895
30896         remove: new module, for mingw and Solaris 9 bugs
30897         * modules/remove: New file.
30898         * lib/remove.c: Likewise.
30899         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30900         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30901         * modules/stdio (Makefile.am): Use them.
30902         * lib/stdio.in.h (remove): Declare replacement.
30903         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30904         * doc/posix-functions/remove.texi (remove): Likewise.
30905         * modules/remove-tests: New test.
30906         * tests/test-remove.c: Likewise.
30907
30908         unlink: new module, for Solaris 9 bug
30909         * modules/unlink: New file.
30910         * lib/unlink.c: Likewise.
30911         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30913         * modules/unistd (Makefile.am): Use them.
30914         * lib/unistd.in.h (stat): Declare replacement.
30915         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30916         * doc/posix-functions/unlink.texi (unlink): Likewise.
30917         * modules/unlink-tests: New test.
30918         * tests/test-unlink.c: Likewise.
30919
30920         lstat: fix Solaris 9 bug
30921         * lib/lstat.c (lstat): Also check for trailing slash on
30922         non-symlink, non-directories.  Use stat module to simplify logic.
30923         * doc/posix-functions/lstat.texi (lstat): Document it.
30924         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30925         (configure.ac): Check for symlink.
30926         * tests/test-lstat.c (main): Add more tests.
30927
30928         stat: add as dependency to other modules
30929         * modules/chown (Depends-on): Add stat.
30930         * modules/euidaccess (Depends-on): Likewise.
30931         * modules/fchdir (Depends-on): Likewise.
30932         * modules/isdir (Depends-on): Likewise.
30933         * modules/link (Depends-on): Likewise.
30934         * modules/lstat (Depends-on): Likewise.
30935         * modules/mkdir-p (Depends-on): Likewise.
30936         * modules/modechange (Depends-on): Likewise.
30937         * modules/open (Depends-on): Likewise.
30938         * modules/readlink (Depends-on): Likewise.
30939         * modules/same (Depends-on): Likewise.
30940
30941         stat: fix Solaris 9 bug
30942         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30943         slash.
30944         * lib/stat.c (rpl_stat): Work around it.
30945         * doc/posix-functions/stat.texi (stat): Update documentation.
30946
30947         stat: new module, for mingw bug
30948         * modules/stat: New file.
30949         * lib/stat.c: Likewise.
30950         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
30951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30952         * modules/sys_stat (Makefile.am): Use them.
30953         * lib/sys_stat.in.h (stat): Declare replacement.
30954         * lib/openat.c (fstatat): Deal with lstat and stat being function
30955         macros.
30956         * modules/openat (Depends-on): Add inline.
30957         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30958         * doc/posix-functions/stat.texi (stat): Likewise.
30959         * modules/stat-tests: New test.
30960         * tests/test-stat.c: Likewise.
30961
30962 2009-09-19  Jim Meyering  <meyering@redhat.com>
30963
30964         syntax-check: detect unnecessary inclusion of canonicalize.h
30965         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
30966
30967 2009-09-19  Eric Blake  <ebb9@byu.net>
30968
30969         canonicalize-lgpl: adjust clients to use correct header
30970         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
30971         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
30972         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
30973         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
30974         * lib/progreloc.c (includes): Likewise.
30975
30976 2009-09-19  Jim Meyering  <meyering@redhat.com>
30977
30978         test-posixtm.c: correct a comment
30979         * tests/test-posixtm.c: Correct first-line comment.
30980         Spotted by Eric Blake.
30981
30982 2009-09-16  Jim Meyering  <meyering@redhat.com>
30983
30984         posixtm-tests: make T const-correct; add a test case
30985         * tests/test-posixtm.c (T): Declare const.
30986         Add a test for -(2^31+1).
30987         Remove useless can-succeed-only-in-2002 test.
30988
30989         posixtm-tests: adjust the sole failing test
30990         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
30991         expected output matches what mktime now produces.  Cross-checked via
30992         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
30993
30994         posixtm: move #ifdef'd tests into a new module
30995         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
30996         * tests/test-posixtm.c: ... this new file.
30997         * modules/posixtm-tests: New module.
30998
30999 2009-09-19  Eric Blake  <ebb9@byu.net>
31000
31001         openat: simplify use of at-func.c
31002         * lib/at-func.c (includes): Include prerequisites here, to
31003         simplify requirements on client files.
31004         * lib/openat-priv.h: Add double-inclusion guard.
31005         * lib/faccessat.c (includes): Simplify.
31006         * lib/fchmodat.c (includes): Likewise.
31007         * lib/fchownat.c (includes): Likewise.
31008         * lib/mkdirat.c (includes): Likewise.
31009         * lib/mkfifoat.c (includes): Likewise.
31010         * lib/symlinkat.c (includes): Likewise.
31011
31012         openat: allow return of fd 0
31013         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31014         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31015         unistd-safer.
31016         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31017         <fcntl.h>; this module does not leak fds.
31018         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31019         must be allowed to return 0, leaving openat_safer to add the
31020         safety.
31021         (openat_permissive): Avoid writing to just-opened fd 2 if
31022         restoring the current directory fails.
31023         * lib/openat-die.c (openat_restore_fail): Add comment.
31024         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31025         (save_cwd): Guarantee safe fd, but without use of open_safer.
31026         * tests/test-openat.c: New test.
31027         * modules/openat-tests (Files, Makefile.am): Distribute and build
31028         new file.
31029
31030         relocatable-prog-wrapper: fix build
31031         * modules/relocatable-prog-wrapper (Files): Update name of
31032         canonicalize m4 file, broken on 2009-09-17.
31033         Reported by emad hajjar <aleppos@hotmail.com>.
31034
31035 2009-09-19  Bruno Haible  <bruno@clisp.org>
31036
31037         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31038         * lib/safe-alloc.c: Likewise.
31039         Reported by Ian Beckwith <ianb@erislabs.net>.
31040
31041 2009-09-18  Bruno Haible  <bruno@clisp.org>
31042
31043         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31044         Reported by <erobles@sensacd.com.mx>.
31045
31046 2009-09-17  Eric Blake  <ebb9@byu.net>
31047
31048         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31049         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31050         slashes when checking if last component is missing.
31051         * tests/test-canonicalize.c (main): Test this.
31052
31053         canonicalize, canonicalize-lgpl: honor // if distinct from /
31054         * modules/canonicalize (Files): Add double-slash-root.m4.
31055         * modules/canonicalize-lgpl (Files): Likewise.
31056         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31057         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31058         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31059         fallback definition.
31060         (canonicalize_filename_mode): Use it to protect //.
31061         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31062         (__realpath): Likewise.
31063         * tests/test-canonicalize.c (main): Test this.
31064         * tests/test-canonicalize-lgpl.c (main): Likewise.
31065         * modules/canonicalize-tests (Depends-on): Add same-inode.
31066         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31067
31068         canonicalize-lgpl: fix glibc bug with trailing slash
31069         * m4/canonicalize-lgpl.m4: Move contents...
31070         * m4/canonicalize.m4: ...here.
31071         (gl_CANONICALIZE_LGPL): Factor realpath check...
31072         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31073         glibc 2.3.5 bug, fixed 2005-04-27.
31074         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31075         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31076         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31077         * modules/canonicalize-lgpl (Files): Manage file rename.
31078         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31079         * modules/stdlib (Makefile.am): Substitute witness.
31080         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31081         is needed.
31082         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31083         replacement is required.
31084         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31085         * doc/glibc-functions/canonicalize_file_name.texi
31086         (canonicalize_file_name): Document this.
31087         * doc/posix-functions/realpath.texi (realpath): Likewise.
31088
31089         canonicalize-lgpl: reject non-directory with trailing slash
31090         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31091         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31092         catches failures in glibc 2.3.5.
31093         * tests/test-canonicalize.c (main): Likewise.
31094
31095         canonicalize-lgpl: use native realpath if it works
31096         * lib/canonicalize-lgpl.c (realpath): Guard with
31097         FUNC_REALPATH_WORKS.
31098         * lib/stdlib.in.h (realpath): Make declaration optional based on
31099         HAVE_REALPATH.
31100         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31101         native realpath works.
31102         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31103         * modules/stdlib (Makefile.am): Substitute witness.
31104
31105         canonicalize, canonicalize-lgpl: use <stdlib.h>
31106         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31107         (Include): Mention <stdlib.h>.
31108         (configure.ac): Mention functions we provide.
31109         * modules/canonicalize (configure.ac): Likewise.
31110         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31111         realpath if canonicalize_file_name is missing.
31112         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31113         * modules/stdlib (Makefile.am): Substitute witnesses.
31114         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31115         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31116         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31117         * NEWS: Document this.
31118         * doc/glibc-functions/canonicalize_file_name.texi
31119         (canonicalize_file_name): Likewise.
31120         * doc/posix-functions/realpath.texi (realpath): Likewise.
31121         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31122
31123         test-canonicalize: consolidate into single C program
31124         * tests/test-canonicalize.sh: Delete; move setup into...
31125         * tests/test-canonicalize.c (main): ...the program, making it
31126         easier to run in debugger.  Add some tests.
31127         * modules/canonicalize-tests (Files): Remove unused file.
31128         (Depends-on): Add progname.
31129         (configure.ac, Makefile.am): Simplify.
31130
31131         test-canonicalize-lgpl: consolidate into single C program
31132         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31133         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31134         easier to run in debugger.  Add some tests.
31135         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31136         (configure.ac, Makefile.am): Simplify.
31137
31138         canonicalize: avoid resolvepath
31139         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31140         unnecessary checks.
31141         * lib/canonicalize.c (includes): Simplify.
31142         (canonicalize_file_name): Drop resolvepath implementation.
31143         * modules/canonicalize (Depends-on): Drop filenamecat.
31144
31145         canonicalize: don't lose errno
31146         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31147         over calls to free.
31148
31149         canonicalize: simplify errno handling
31150         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31151         assignment.
31152
31153         canonicalize, canonicalize-lgpl: update module dependencies
31154         * modules/canonicalize (Depends-on): Add extensions, lstat,
31155         pathmax, stdlib.
31156         (Files): Drop pathmax.h.
31157         (configure.ac): Adjust macro name.
31158         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31159         lstat, stdlib, sys_stat.
31160         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31161         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31162         extensions.
31163         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31164         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31165         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31166         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31167         declaration, if available.
31168         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31169         we can rely on the readlink module.
31170         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31171         (includes): Use <unistd.h> unconditionally.
31172
31173 2009-09-17  Eric Blake  <ebb9@byu.net>
31174
31175         maint: make Include sections of modules consistent
31176         * modules/alloca: Use only header name; no need to list #include.
31177         * modules/alloca-opt: Likewise.
31178         * modules/arpa_inet: Likewise.
31179         * modules/canon-host: Likewise.
31180         * modules/configmake: Likewise.
31181         * modules/dirent: Likewise.
31182         * modules/eealloc: Likewise.
31183         * modules/environ: Likewise.
31184         * modules/fchdir: Likewise.
31185         * modules/fcntl: Likewise.
31186         * modules/fcntl-h: Likewise.
31187         * modules/gethrxtime: Likewise.
31188         * modules/gettime: Likewise.
31189         * modules/ignore-value: Likewise.
31190         * modules/inet_ntop: Likewise.
31191         * modules/inet_pton: Likewise.
31192         * modules/inttypes: Likewise.
31193         * modules/isnand-nolibm: Likewise.
31194         * modules/isnanf-nolibm: Likewise.
31195         * modules/mbchar: Likewise.
31196         * modules/mbfile: Likewise.
31197         * modules/mbiter: Likewise.
31198         * modules/mbuiter: Likewise.
31199         * modules/netdb: Likewise.
31200         * modules/netinet_in: Likewise.
31201         * modules/nproc: Likewise.
31202         * modules/pagealign_alloc: Likewise.
31203         * modules/poll: Likewise.
31204         * modules/printf-frexp: Likewise.
31205         * modules/pthread: Likewise.
31206         * modules/putenv: Likewise.
31207         * modules/random_r: Likewise.
31208         * modules/relocatable-prog: Likewise.
31209         * modules/search: Likewise.
31210         * modules/select: Likewise.
31211         * modules/selinux-h: Likewise.
31212         * modules/settime: Likewise.
31213         * modules/signal: Likewise.
31214         * modules/size_max: Likewise.
31215         * modules/socklen: Likewise.
31216         * modules/ssize_t: Likewise.
31217         * modules/stdarg: Likewise.
31218         * modules/stdbool: Likewise.
31219         * modules/stddef: Likewise.
31220         * modules/stdint: Likewise.
31221         * modules/stdio: Likewise.
31222         * modules/stdlib: Likewise.
31223         * modules/string: Likewise.
31224         * modules/strings: Likewise.
31225         * modules/sys_file: Likewise.
31226         * modules/sys_ioctl: Likewise.
31227         * modules/sys_select: Likewise.
31228         * modules/sys_socket: Likewise.
31229         * modules/sys_stat: Likewise.
31230         * modules/sys_time: Likewise.
31231         * modules/sys_times: Likewise.
31232         * modules/sys_utsname: Likewise.
31233         * modules/sys_wait: Likewise.
31234         * modules/sysexits: Likewise.
31235         * modules/time: Likewise.
31236         * modules/times: Likewise.
31237         * modules/tmpfile: Likewise.
31238         * modules/trim: Likewise.
31239         * modules/unistd: Likewise.
31240         * modules/wchar: Likewise.
31241         * modules/wctype: Likewise.
31242
31243 2009-09-17  Bruno Haible  <bruno@clisp.org>
31244
31245         Make getdate.y compile on QNX and NetBSD 5 / i386.
31246         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31247         TIME_T_FITS_IN_LONG_INT.
31248         * lib/getdate.y (long_time_t): New type.
31249         (relative_time): Change type of 'seconds' field to long_time_t.
31250         (get_date): Update types of local variables. Check against overflow
31251         during conversion from long_time_t to time_t.
31252         Reported by Matt Kraai <kraai@ftbfs.org>
31253         and Hasso Tepper <hasso@netbsd.org>.
31254
31255 2009-09-17  Bruno Haible  <bruno@clisp.org>
31256
31257         * modules/COPYING: Update copyright years.
31258         * modules/README: Likeiwse.
31259         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31260         Reported by Ian Beckwith <ianb@erislabs.net>.
31261
31262 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31263
31264         * users.txt: Update references for gnuit package.
31265
31266 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31267
31268         * m4/getdelim.m4: Fix typo in copyright line.
31269
31270 2009-09-17  Bruno Haible  <bruno@clisp.org>
31271
31272         * lib/atoll.c: Use the standard header with GPL copyright.
31273         * lib/argz.in.h: Likewise.
31274         * lib/glob.c: Likewise.
31275         * lib/glob-libc.h: Likewise.
31276         * lib/random_r.c: Likewise.
31277         * lib/siglist.h: Likewise.
31278         * lib/strsignal.c: Likewise.
31279         Reported by Ian Beckwith <ianb@erislabs.net>.
31280
31281 2009-09-17  Eric Blake  <ebb9@byu.net>
31282
31283         rmdir: ensure correct dependency order
31284         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31285
31286 2009-09-17  Bruno Haible  <bruno@clisp.org>
31287
31288         Disable assertion that fails on NetBSD 5 / i386.
31289         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31290         Reported by Sam Steingold <sds@gnu.org>
31291         and Hasso Tepper <hasso@netbsd.org>.
31292
31293 2009-09-16  Eric Blake  <ebb9@byu.net>
31294
31295         unlinkdir: port to mingw
31296         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31297         on which no one can unlink a directory.
31298
31299         stdlib: sort witness names
31300         * modules/stdlib (Makefile.am): Sort replacements.
31301         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31302         * lib/stdlib.in.h: Likewise.
31303
31304         parse-duration-tests: avoid link failure
31305         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31306         LIBINTL.
31307         Reported by Tom G. Christensen.
31308
31309         openat-tests: ensure unlinkat behaves like rmdir
31310         * tests/test-rmdir.c (main): Factor guts...
31311         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31312         * modules/rmdir-tests (Files): Ship new file.
31313         * modules/openat-tests: New test.
31314         * tests/test-unlinkat.c: Likewise.
31315
31316         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31317         * modules/rmdir-errno (Status, Notice): Now obsolete.
31318
31319         rmdir: work around cygwin 1.5.x and mingw bugs
31320         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31321         * lib/rmdir.c (rmdir): Work around it.
31322         * modules/rmdir (Status, Notice): No longer obsolete.
31323         (Files): Add dos.m4.
31324         (Depends-on): Add unistd.
31325         (configure.ac): Set witnesses.
31326         (License): Relax to LGPLv2+.
31327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31328         * modules/unistd (Makefile.am): Substitute witnesses.
31329         * lib/unistd.in.h (rmdir): Declare replacement.
31330         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31331         * modules/rmdir-tests: New tests.
31332         * tests/test-rmdir.c: Likewise.
31333
31334 2009-09-15  Eric Blake  <ebb9@byu.net>
31335
31336         fchdir: improve use of replacement functions
31337         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31338         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31339         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31340         REPLACE_CLOSEDIR.
31341         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31342         * modules/sys_stat (Makefile.am): Substitute correct witness.
31343         * modules/dirent (Makefile.am): Likewise.
31344         * modules/unistd (Makefile.am): Likewise.
31345         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31346         * lib/unistd.in.h (dup): Likewise.
31347         * lib/sys_stat.in.h (fstat): Likewise.
31348
31349         maint: ignore gnulib-tool temp files
31350         * .gitignore: Ignore files created during gnulib-tool --test.
31351
31352 2009-09-13  Jim Meyering  <meyering@redhat.com>
31353
31354         posixtm: don't reject a time that specify "60" as the number of seconds
31355         * lib/posixtm.c (posixtime): The code to reject invalid dates
31356         would also reject a time specified with the .60 suffix.
31357         But POSIX allows that, in order to accommodate leap seconds.
31358         So don't reject it.
31359         (main): Adjust tests accordingly.
31360         * modules/posixtm (Depends-on): Add stpcpy.
31361
31362 2009-09-11  Jim Meyering  <meyering@redhat.com>
31363
31364         announce-gen: include [$release_type] in emitted Subject:
31365         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31366         e.g., [stable] in the emitted Subject: line.
31367
31368 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31369
31370         Remove obsolete macros from several modules.
31371         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31372         obsolete Autoconf macros with their modern counterparts.
31373         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31374         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31375         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31376         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31377         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31378         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31380         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31381         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31382         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31383         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31384         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31385         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31386         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31387         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31388         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31389         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31390         * m4/time_r.m4 (gl_TIME_R): Likewise.
31391         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31392         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31393         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31394
31395         Fix copyright header in build-aux scripts.
31396         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31397         recommendation.
31398         * build-aux/ncftpput-ftp: Likewise.
31399         * build-aux/update-copyright: Likewise.
31400
31401 2009-09-09  Eric Blake  <ebb9@byu.net>
31402
31403         test-link: allow Linux choice of errno
31404         * tests/test-link.c (main): Relax test for alternate error.
31405
31406         strndup: fix improper m4 caching
31407         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31408         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31409         (gl_PREREQ_STRNDUP): Delete.
31410         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31411         * modules/string (Makefile.am): Substitute it.
31412         * lib/string.in.h (strndup): Modernize prototype.
31413
31414         getcwd: port to mingw
31415         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31416         different from the POSIX assumptions made throughout the getcwd
31417         module; fortunately, the mingw getcwd does not need replacement.
31418         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31419         * modules/getcwd-tests: New test.
31420         * tests/test-getcwd.c: Likewise.
31421
31422         link: fix platform bugs
31423         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31424         * lib/link.c (link): Work around them.  Fix related mingw bug.
31425         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31426         * modules/unistd (Makefile.am): Substitute it.
31427         * lib/unistd.in.h (link): Declare replacement.
31428         * doc/posix-functions/link.texi (link): Document this.
31429         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31430
31431         test-link: consolidate into single C program, test more cases
31432         * tests/test-link.sh: Delete.
31433         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31434         at least Cygwin and Solaris.
31435         * modules/link-tests (Files): Remove unused file.
31436         (Depends-on): Add errno, sys_stat.
31437         (Makefile.am): Simplify.
31438
31439 2009-09-08  Bruno Haible  <bruno@clisp.org>
31440
31441         Work around towlower, towupper bug on mingw.
31442         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31443         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31444         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31445         * doc/posix-functions/towupper.texi: Likewise.
31446         Reported by Eric Blake.
31447
31448 2009-09-08  Jim Meyering  <meyering@redhat.com>
31449
31450         build: don't try to run autoheader if we don't use it
31451         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31452         is not used in configure.ac.
31453
31454 2009-09-08  Eric Blake  <ebb9@byu.net>
31455
31456         euidaccess: fix compilation error
31457         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31458
31459         rawmemchr: relax license
31460         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31461         okay.
31462         Reported by Jim Meyering.
31463
31464         mkfifoat: new module
31465         * modules/mkfifoat: New file.
31466         * lib/mkfifoat.c: Likewise.
31467         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31468         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31469         * modules/sys_stat (Makefile.am): Use them.
31470         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31471         * MODULES.html.sh (File system functions): Mention module.
31472         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31473         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31474         * modules/mkfifoat-tests: New test.
31475         * tests/test-mkfifoat.c: Likewise.
31476
31477         strchrnul: relax license
31478         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31479         okay.
31480         Reported by Jim Meyering.
31481
31482 2009-09-08  Eric Blake  <ebb9@byu.net>
31483
31484         fstatat: fix compilation on Solaris
31485         * lib/fstatat.c (includes): Add fcntl.h.
31486         Reported by Pádraig Brady.
31487
31488 2009-09-07  Eric Blake  <ebb9@byu.net>
31489
31490         rename: modernize replacement
31491         * modules/rename (Depends-on): Add stdio.
31492         (configure.ac): Declare witness.
31493         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31494         stdio take care of replacement.
31495         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31496         * modules/stdio (Makefile.am): Substitute them.
31497         * lib/stdio.in.h (rename): Declare replacement.
31498         * lib/rename.c (includes): Allow cross-compilation to non-windows
31499         machines.
31500         * doc/posix-functions/rename.texi (rename): Improve
31501         documentation.
31502
31503         stdio: sort witness names
31504         * modules/stdio (Makefile.am): Sort replacements.
31505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31506         * lib/stdio.in.h: Likewise.
31507
31508         getcwd: minor cleanups
31509         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31510         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31511
31512         openat: provide more convenience names
31513         * modules/faccessat (configure.ac): Add C witness.
31514         * lib/unistd.in.h (readlinkat): Fix typo.
31515         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31516         convenience wrappers.
31517         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31518         wrappers in syntax checks.
31519
31520 2009-09-06  Eric Blake  <ebb9@byu.net>
31521
31522         doc: fix comments in recent patches
31523         * lib/faccessat.c: Mention correct function.
31524         * lib/fchmodat.c: Likewise.
31525         * lib/fchownat.c: Likewise.
31526         * lib/symlinkat.c: Likewise.
31527         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31528         constants.
31529
31530         faccessat, symlinkat: continue cleanup of previous patch
31531         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31532         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31533         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31535         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31536         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31537         set.
31538
31539 2009-09-06  Bruno Haible  <bruno@clisp.org>
31540
31541         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31542         (fstatat): Declare if GNULIB_FSTATAT is set.
31543         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31544         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31545         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31546         * modules/fcntl-h (Files): Remove m4/openat.m4.
31547         * modules/sys_stat (Files): Remove m4/openat.m4.
31548         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31549         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31550         * modules/unistd (Files): Remove m4/openat.m4.
31551         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31552         GNULIB_OPENAT.
31553         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31554         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31555         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31556         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31557         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31558         gl_OPENAT_DEFAULTS.
31559         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31560         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31561         Don't require gl_OPENAT_DEFAULTS.
31562         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31563         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31564         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31565         (gl_OPENAT_DEFAULTS): Remove macro.
31566
31567 2009-09-06  Bruno Haible  <bruno@clisp.org>
31568
31569         * modules/openat (configure.ac): Remove unneeded witness.
31570
31571 2009-09-06  Bruno Haible  <bruno@clisp.org>
31572
31573         Set errno to ENOSYS when a function is entirely unsupported.
31574         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31575         EOPNOTSUPP.
31576         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31577         * modules/chown (Depends-on): Remove errno.
31578
31579 2009-09-06  Bruno Haible  <bruno@clisp.org>
31580
31581         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31582
31583 2009-09-06  Bruno Haible  <bruno@clisp.org>
31584
31585         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31586
31587 2009-09-06  Ben Pfaff  <blp@gnu.org>
31588             Bruno Haible  <bruno@clisp.org>
31589
31590         Work around a glibc bug in strtok_r.
31591         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31592         Undefine if UNDEFINE_STRTOK_R is set.
31593         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31594         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31595         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31596         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31597         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31598         UNDEFINE_STRTOK_R.
31599         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31600
31601 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31602
31603         exclude: minor fix
31604         * lib/exclude.c: Include wctype.h
31605
31606 2009-09-06  Akim Demaille  <demaille@gostai.com>
31607
31608         bootstrap: improve error message
31609         * build-aux/bootstrap (find_tool): Upon failure, report the list
31610         of candidates.
31611         Honor the initial value of the envvar.
31612
31613 2009-09-05  Eric Blake  <ebb9@byu.net>
31614
31615         symlinkat: new module
31616         * modules/symlinkat: New file.
31617         * lib/symlinkat.c: Likewise.
31618         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31619         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31620         * modules/unistd (Makefile.am): Use them.
31621         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31622         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31623         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31624         * MODULES.html.sh (File system functions): Mention module.
31625         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31626         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31627         * modules/symlinkat-tests: New test.
31628         * tests/test-symlinkat.c: Likewise.
31629
31630         test-openat-safer: add more checks
31631         * tests/test-openat-safer.c (main): Check more code paths.
31632
31633 2009-09-05  Jim Meyering  <meyering@redhat.com>
31634
31635         syntax-check: detect unnecessary inclusion of openat.h
31636         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31637
31638 2009-09-05  Bruno Haible  <bruno@clisp.org>
31639
31640         Support towlower, towupper.
31641         * doc/posix-functions/towlower.texi: Mention module wctype.
31642         * doc/posix-functions/towupper.texi: Likewise.
31643         * lib/wctype.in.h (towlower, towupper): New functions.
31644         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31645         (ASSERT): New macro.
31646         (e): New variable.
31647         (main): Test also towlower, towupper. Test WEOF argument.
31648         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31649
31650 2009-09-05  Bruno Haible  <bruno@clisp.org>
31651
31652         Fix conversion behaviour when the input is invalid.
31653         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31654         mark occurring in first pass of indirect conversion.
31655         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31656         input.
31657         Found by clang's static analyzer.
31658
31659 2009-09-05  Bruno Haible  <bruno@clisp.org>
31660
31661         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31662         where direct conversion is possible.
31663
31664 2009-09-04  Eric Blake  <ebb9@byu.net>
31665
31666         openat: fail with ENOENT on empty name
31667         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31668         buffer.
31669
31670         link-follow: fix logic bug in prior patch
31671         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31672         reversed sense of yes and no in prior patch.  Avoid confusing
31673         compilation failure with desired semantics.
31674
31675         link-follow: accomodate mingw and cross-compilation
31676         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31677         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31678         cross-compilation results to -1, to make linkat easier to
31679         implement when cross-compiling.  Trivially support mingw.
31680         * modules/link-follow (configure.ac): Call new name.
31681         * NEWS: Mention this.
31682
31683 2009-09-03  Eric Blake  <ebb9@byu.net>
31684
31685         faccessat: compile replacement
31686         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31687         needed.
31688
31689         fts: fix compilation error
31690         * lib/fts.c (includes): Re-add "openat.h", for
31691         openat_needs_fchdir.
31692
31693         faccessat: new module
31694         * modules/faccessat: New file.
31695         * lib/faccessat.c: Likewise.
31696         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31697         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31698         * modules/unistd (Makefile.am): Use it.
31699         * lib/unistd.in.h (faccessat): Declare it.
31700         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31701         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31702         * MODULES.html.sh (File system functions): Mention it.
31703         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31704         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31705
31706         euidaccess: prefer POSIX over non-standard implementation
31707         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31708         * lib/euidaccess.c (euidaccess): Use it if available.
31709
31710         openat: make template easier to use
31711         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31712         AT_FUNC_F2 to be undefined.
31713         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31714         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31715         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31716         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31717         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31718         Likewise.
31719         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31720         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31721         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31722         Likewise.
31723
31724         openat: declare in POSIX headers
31725         * NEWS: Mention this.
31726         * modules/openat (configure.ac): Declare witnesses.
31727         (Depends-on): Add fcntl-h, sys_stat, unistd.
31728         (Include): Mention correct headers.
31729         * modules/fcntl-h (Depends-on): Add link-warning.
31730         (Files): Add openat.m4.
31731         (Makefile.am): Substitute witnesses.
31732         * modules/sys_stat (Files, Makefile.am): Likewise.
31733         * modules/unistd (Files, Makefile.am): Likewise.
31734         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31735         (gl_OPENAT_DEFAULTS): New macro.
31736         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31737         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31738         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31739         (SYS_STAT_H): Remove unused variable.
31740         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31741         * lib/fcntl--.h (includes): Remove unneeded header.
31742         * lib/openat-safer.c (includes): Likewise.
31743         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31744         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31745         appropriate headers.
31746         (__OPENAT_PREFIX): Delete.
31747         * lib/fcntl.in.h (openat): Provide declaration.
31748         (AT_FDCWD): Fix Solaris bug.
31749         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31750         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31751         * lib/fchmodat.c (includes):  Adjust to find declaration.
31752         * lib/fchownat.c (includes): Likewise.
31753         * lib/mkdirat.c (includes): Likewise.
31754         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31755         still visible.
31756
31757 2009-09-02  Eric Blake  <ebb9@byu.net>
31758
31759         errno: use consistently
31760         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31761         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31762         * lib/canonicalize.c (ELOOP): Likewise.
31763         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31764         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31765         * lib/lchown.c (EOPNOTSUPP): Likewise.
31766         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31767         * lib/savewd.c (ESTALE): Likewise.
31768         * lib/settime.c (ENOSYS): Likewise.
31769         * lib/utimens.c (ENOSYS): Likewise.
31770         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31771         * lib/chdir-safer.c (ELOOP): Likewise.
31772         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31773         * modules/c-stack (Depends-on): Add errno.
31774         * modules/canonicalize (Depends-on): Likewise.
31775         * modules/chdir-safer (Depends-on): Likewise.
31776         * modules/fdopendir (Depends-on): Likewise.
31777         * modules/inet_ntop (Depends-on): Likewise.
31778         * modules/inet_pton (Depends-on): Likewise.
31779         * modules/lchown (Depends-on): Likewise.
31780         * modules/openat (Depends-on): Likewise.
31781         * modules/savewd (Depends-on): Likewise.
31782         * modules/settime (Depends-on): Likewise.
31783         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31784
31785         fts: avoid leaking fds
31786         * modules/fts (Depends-on): Add cloexec.
31787         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31788         flag.
31789
31790         fts: make directory fds more robust
31791         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31792         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31793
31794         backupfile, chdir-long, fts, savedir: make safer
31795         * lib/backupfile.c (includes): Use "dirent--.h", since
31796         numbered_backup can write to stderr during readdir.
31797         * lib/savedir.c (includes): Likewise.
31798         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31799         emulation can write to stderr on failure.
31800         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31801         * lib/getcwd.c: Document why opendir_safer is unused.
31802         * lib/glob.c: Likewise.
31803         * lib/scandir.c: Likewise.
31804         * lib/openat-proc.c: Likewise, for open_safer.
31805         * modules/backupfile (Depends-on): Add dirent-safer.
31806         * modules/savedir (Depends-on): Likewise.
31807         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31808         * modules/chdir-long (Depends-on): Add openat-safer.
31809
31810         openat-safer: new module
31811         * modules/openat-safer: New file.
31812         * lib/openat-safer.c: Likewise.
31813         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31814         * lib/fcntl-safer.h (openat_safer): Declare.
31815         * lib/fcntl--.h (openat): Override.
31816         * MODULES.html.sh (File descriptor based I/O): Mention it.
31817         * lib/openat.h: Add double-inclusion guards.
31818         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31819         "fcntl--.h", so we can implement openat.
31820         * modules/openat-safer-tests: New test.
31821         * tests/test-openat-safer.c: New file.
31822
31823         dirent-safer: new module
31824         * modules/dirent-safer: New file.
31825         * lib/dirent--.h: Likewise.
31826         * lib/dirent-safer.h: Likewise.
31827         * lib/opendir-safer.c: Likewise.
31828         * m4/dirent-safer.m4: Likewise.
31829         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31830         * modules/dirent-safer-tests: New test.
31831         * tests/test-dirent-safer.c: New file.
31832         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31833
31834         fdopendir: optimize on mingw
31835         * lib/unistd.in.h (_gl_directory_name): New prototype.
31836         * lib/fchdir.c (_gl_directory_name): Implement it.
31837         (fchdir): Use it to simplify implementation.
31838         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31839         fchdir, when available, to avoid calling [f]chdir().
31840
31841         fdopendir: split into its own module
31842         * lib/openat.c (fdopendir): Move...
31843         * lib/fdopendir.c: ...into new file.
31844         * modules/fdopendir: New module.
31845         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31846         * modules/openat (Depends-on): Add fdopendir.
31847         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31848         fdopendir here.
31849         * modules/savedir (Depends-on): Only need fdopendir, not full
31850         openat.
31851         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31852         * lib/openat.h (fdopendir): Drop prototype.
31853         * lib/dirent.in.h (fdopendir): Provide prototype.
31854         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31855         * modules/dirent (Makefile.am): Substitute them.
31856         * MODULES.html.sh (File system functions): Mention it.
31857         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31858         * modules/fdopendir-tests: New file.
31859         * tests/test-fdopendir.c: Likewise.
31860
31861         fchdir: use more consistent macro convention
31862         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31863         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31864         REPLACE_FCHDIR, rather than relying on config.h macros.
31865         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31866         inside a single make-time REPLACE_FCHDIR block, rather than using
31867         the config.h FCHDIR_REPLACEMENT.
31868         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31869         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31870         Manage fstat replacement.
31871         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31872         REPLACE_FCHDIR.
31873         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31874         (Makefile.am): Substitute REPLACE_FCHDIR.
31875         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31876         FCHDIR_REPLACEMENT.
31877         * lib/dup-safer.c (dup_safer): Likewise.
31878         * lib/dup2.c (rpl_dup2): Likewise.
31879         * lib/dup3.c (rpl_dup3): Likewise.
31880         * lib/open.c (rpl_open): Likewise.
31881
31882         fchdir: simplify error handling, and support dup3
31883         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31884         stdbool, malloc-posix, realloc-posix.
31885         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31886         (ensure_dirs_slot): Return false on allocation failure.
31887         (rpl_dup2): Delete.
31888         (_gl_register_dup): New function.
31889         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31890         (_gl_register_fd): Close fd on allocation failure.
31891         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31892         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31893         prototype.
31894         (rpl_dup2_fchdir): Delete prototype.
31895         * lib/open.c (open): Update caller.
31896         * lib/dup2.c (dup2): Track fchdir metadata.
31897         * lib/dup3.c (dup3): Likewise.
31898         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31899         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31900
31901 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31902
31903         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31904         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31905         don't pass arguments to AC_OUTPUT.
31906
31907 2009-09-02  Bruno Haible  <bruno@clisp.org>
31908
31909         * modules/mkdtemp (License): Relicense under LGPLv2+.
31910         Reported by Paolo Bonzini.
31911
31912 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31913
31914         Replace uses of obsolete autoconf macros in Jim's modules.
31915         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31916         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31917         can evoke a warning from autoconf when run with -Wobsolete
31918         enabled.  They were declared obsolete for good reasons (see
31919         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31920         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31921         should not continue using the deprecated macros.
31922         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31923         obsolete Autoconf macros with modern counterparts.
31924         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31925         * m4/dos.m4 (gl_AC_DOS): Likewise.
31926         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31927         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31928         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31929         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31930         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31931         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31932         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31933         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31934         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31935         Likewise.
31936         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31937         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31938         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31939         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31940         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31941         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31942
31943 2009-09-01  Eric Blake  <ebb9@byu.net>
31944
31945         fchdir: fix off-by-one bug in previous patch
31946         * lib/fchdir.c (rpl_fstat): Use correct bounds.
31947         (_gl_unregister_fd): Delete useless if.
31948
31949 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
31950
31951         maint.mk: sort the list of syntax-check rules
31952         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
31953         easier to get a sense of progress when the rules are run sequentially
31954         and take a long time.
31955
31956 2009-09-01  Simon Josefsson  <simon@josefsson.org>
31957
31958         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
31959         * modules/netinet_in: Likewise.
31960         * modules/sys_file: Likewise.
31961         * modules/sys_ioctl: Likewise.
31962         * modules/sys_select: Likewise.
31963         * modules/sys_socket: Likewise.
31964         * modules/sys_stat: Likewise.
31965         * modules/sys_time: Likewise.
31966         * modules/sys_times: Likewise.
31967         * modules/sys_utsname: Likewise.
31968         * modules/sys_wait: Likewise.
31969
31970 2009-09-01  Jim Meyering  <meyering@redhat.com>
31971
31972         fts: help ensure that return values are not ignored
31973         * lib/fts_.h (__GNUC_PREREQ): Define.
31974         (__attribute_warn_unused_result__): Define.
31975         (fts_children, fts_close, fts_open, fts_read): Declare with
31976         __attribute_warn_unused_result__.
31977
31978         fts: fts_close now fails also when closing a dir file descriptor fails
31979         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
31980         and propagate to caller, along with errno.
31981
31982         announce-gen: correct formatting in --help output
31983         * build-aux/announce-gen (usage): Move the one-line description in
31984         --help output "up", to where it belongs, just after Usage:.
31985
31986 2009-08-31  Eric Blake  <ebb9@byu.net>
31987
31988         fchdir: port to mingw
31989         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
31990         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
31991         opened, then use a substitute.
31992         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
31993         replacement.
31994         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
31995         (_gl_register_fd): No need to check stat if open already filters
31996         all directories.
31997         (fchdir): Fix error condition to match POSIX.
31998         * modules/fchdir (Depends-on): Add sys_stat.
31999         * doc/posix-functions/open.texi (open): Document the limitation.
32000         * modules/fchdir-tests: New file.
32001         * tests/test-fchdir.c: Likewise.
32002
32003         canonicalize: allow cross-testing from cygwin to mingw
32004         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32005         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32006         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32007         Likewise.
32008         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32009         target does not support symlinks.
32010         * tests/test-canonicalize-lgpl.sh: Likewise.
32011
32012         chown: avoid compilation warning on mingw
32013         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32014         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32015         mingw.
32016         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32017         * modules/chown (Depends-on): Add errno.
32018
32019 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32020
32021         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32022         command.
32023
32024 2009-08-31  Jim Meyering  <meyering@redhat.com>
32025
32026         canonicalize: remove useless initialization
32027         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32028         initialization of local, "end".
32029
32030 2009-08-30  Bruno Haible  <bruno@clisp.org>
32031
32032         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32033         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32034         ENOSYS.
32035
32036 2009-08-30  Bruno Haible  <bruno@clisp.org>
32037
32038         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32039         /usr/xpg4/bin/tr when it exists.
32040         * tests/test-pipe-filter-gi1.sh: Likewise.
32041
32042 2009-08-30  Bruno Haible  <bruno@clisp.org>
32043
32044         Work around deficient /usr/bin/id program on Solaris.
32045         * tests/test-file-has-acl.sh (ID): New variable.
32046         * tests/test-set-mode-acl.sh (ID): Likewise.
32047         * tests/test-copy-acl.sh (ID): Likewise.
32048         * tests/test-copy-file.sh (ID): Likewise.
32049
32050 2009-08-30  Bruno Haible  <bruno@clisp.org>
32051
32052         New module 'xstriconveh'.
32053         * lib/xstriconveh.h: New file.
32054         * lib/xstriconveh.c: New file.
32055         * modules/xstriconveh: New file.
32056
32057 2009-08-30  Bruno Haible  <bruno@clisp.org>
32058
32059         Make it easier to use mem_cd_iconveh.
32060         * lib/striconveh.h (iconveh_t): New type.
32061         (iconveh_open, iconveh_close): New declarations.
32062         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32063         with a single 'const iconveh_t *' argument.
32064         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32065         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32066         with a single 'const iconveh_t *' argument.
32067         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32068         * tests/test-striconveh.c (main): Update.
32069         * NEWS: Mention the change.
32070
32071 2009-08-30  Bruno Haible  <bruno@clisp.org>
32072
32073         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32074         problem.
32075
32076 2009-08-30  Bruno Haible  <bruno@clisp.org>
32077
32078         Work around iconv_open problem on Solaris.
32079         * lib/iconv_open-solaris.gperf: New file.
32080         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32081         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32082         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32083         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32084         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32085         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32086
32087 2009-08-29  Jim Meyering  <meyering@redhat.com>
32088
32089         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32090         * top/maint.mk (cvs-check): Remove target; it was just an alias
32091         to the better-named vc-diff-check.
32092         (maintainer-distcheck): Remove rule.  It was used only from
32093         the (alpha/beta/major) target, and all of its commands but one
32094         were coreutils-specific.
32095         (vc-dist): Remove rule.
32096         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32097         Run vc-diff-check, not vc-dist.
32098         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32099
32100 2009-08-27  Bruno Haible  <bruno@clisp.org>
32101
32102         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32103         of 0.
32104
32105 2009-08-27  Bruno Haible  <bruno@clisp.org>
32106
32107         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32108         compilers.
32109         * doc/func.texi: Document the SunPRO C bug.
32110
32111 2009-08-27  Bruno Haible  <bruno@clisp.org>
32112
32113         Fix link error on Solaris.
32114         * tests/test-parse-duration.c (xstrdup): Remove function.
32115
32116 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32117
32118         ignore-value: handle pointer types, too
32119         * lib/ignore-value.h (__attribute__): Remove definition.
32120         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32121         of a more concise and more-often effective "(void) i" statement.
32122         (ignore_ptr): New function to suppress warnings from functions that
32123         return pointers, and to make it explicit that one function doesn't
32124         handle all cases.
32125
32126 2009-08-25  Bruno Haible  <bruno@clisp.org>
32127
32128         dup2: work around a Linux bug.
32129         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32130         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32131         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32132         Reported by Simon Josefsson.
32133
32134 2009-08-25  Jim Meyering  <meyering@redhat.com>
32135
32136         libguestfs uses gnulib
32137         * users.txt: Add libguestfs.
32138
32139 2009-08-24  Eric Blake  <ebb9@byu.net>
32140
32141         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32142         * lib/pipe2.c (includes): Add binary-io.h.
32143         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32144
32145 2009-08-24  Bruno Haible  <bruno@clisp.org>
32146
32147         Tolerate declared but missing accept4 syscall.
32148         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32149         available.
32150         * lib/sys_socket.in.h (accept4): If the function is already present,
32151         override it.
32152         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32153         * modules/accept4 (Makefile.am): Compile accept4.c always.
32154         Reported by Paolo Bonzini and Eric Blake.
32155
32156 2009-08-23  Bruno Haible  <bruno@clisp.org>
32157
32158         New module 'accept4'.
32159         * lib/sys_socket.in.h (accept4): New declaration.
32160         * lib/accept4.c: New file.
32161         * m4/accept4.m4: New file.
32162         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32163         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32164         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32165         HAVE_ACCEPT4.
32166         * modules/accept4: New file.
32167         * doc/glibc-functions/accept4.texi: Mention the new module.
32168
32169 2009-08-24  Jim Meyering  <meyering@redhat.com>
32170
32171         progname: also set global program_invocation_name, when possible
32172         Before this change, a libtool-enabled program that calls glibc's
32173         error function would report the program name as
32174         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32175         * modules/progname (configure.ac): Check for a declaration of
32176         program_invocation_name.
32177         * lib/progname.c:  Include <errno.h>.
32178         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32179         Set program_invocation_name.
32180
32181 2009-08-23  Bruno Haible  <bruno@clisp.org>
32182
32183         * lib/dup3.c: Include <string.h>.
32184
32185 2009-08-23  Bruno Haible  <bruno@clisp.org>
32186
32187         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32188         * lib/pipe2.c (pipe2): Likewise.
32189         Suggested by Eric Blake.
32190
32191 2009-08-23  Bruno Haible  <bruno@clisp.org>
32192
32193         Tolerate declared but missing dup3 syscall.
32194         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32195         * lib/unistd.in.h (dup3): If the function is already present,
32196         override it.
32197         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32198         * modules/dup3 (Makefile.am): Compile dup3.c always.
32199         Reported by Paolo Bonzini.
32200
32201 2009-08-23  Bruno Haible  <bruno@clisp.org>
32202
32203         Tolerate declared but missing pipe2 syscall.
32204         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32205         available.
32206         * lib/unistd.in.h (pipe2): If the function is already present,
32207         override it.
32208         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32209         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32210         Reported by Paolo Bonzini.
32211
32212 2009-08-23  Bruno Haible  <bruno@clisp.org>
32213
32214         * lib/pipe2.c (pipe2): Move #ifs inside function.
32215
32216 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32217
32218         quotearg: document limitations of quote_these_too
32219         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32220         those limitations are created.
32221         * lib/quotearg.h (set_char_quoting): Document that digits and
32222         letters that are special after backslash are not permitted.
32223         (quotearg_char): Cross-reference set_char_quoting documentation.
32224
32225 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32226
32227         quotearg: implement custom_quoting_style
32228         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32229         right_quote fields.
32230         (set_custom_quoting): New public function.
32231         (quotearg_buffer_restyled): Add left_quote and right_quote
32232         arguments, handle them very much like locale quoting, and update
32233         all uses.
32234         (quotearg_n_custom): New public function.
32235         (quotearg_n_custom_mem): New public function.
32236         (quotearg_custom): New public function.
32237         (quotearg_custom_mem): New public function.
32238         * lib/quotearg.h: Prototype and document new public functions.
32239         (enum quoting_style): For escape_quoting_style and
32240         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32241         ignored even though they're otherwise like c_quoting_style.
32242         Add custom_quoting_style member and document with comparison to
32243         clocale_quoting_style.
32244         * tests/test-quotearg.c (custom_quotes): New array.
32245         (custom_results): New array.
32246         (main): Extend to test custom quoting.
32247
32248 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32249
32250         quotearg: fix right quote escaping when it's in quote_these_too
32251         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32252         quote, be sure to prepend only one backslash.
32253         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32254         (main): Test it.
32255
32256 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32257
32258         quotearg-tests: test escaping of embedded locale quotes
32259         * tests/test-quotearg.c (struct result_strings): Add member for
32260         new input.
32261         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32262         (inputs): Add new input.
32263         (results_g): Add expected results.
32264         (flag_results): Likewise.
32265         (locale_results): Likewise.
32266         (compare_strings): Check those.
32267
32268 2009-08-23  Bruno Haible  <bruno@clisp.org>
32269
32270         Tests for module 'dup3'.
32271         * modules/dup3-tests: New file.
32272         * tests/test-dup3.c: New file.
32273
32274         New module 'dup3'.
32275         * lib/unistd.in.h (dup3): New declaration.
32276         * lib/dup3.c: New file.
32277         * m4/dup3.m4: New file.
32278         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32279         HAVE_DUP3.
32280         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32281         * modules/dup3: New file.
32282         * doc/glibc-functions/dup3.texi: Mention the new module.
32283
32284 2009-08-23  Bruno Haible  <bruno@clisp.org>
32285
32286         Tweak the dup2 test.
32287         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32288         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32289         the test file is still empty. Fix argument order of lseek.
32290
32291 2009-08-23  Bruno Haible  <bruno@clisp.org>
32292
32293         Avoid test link errors when the modules getopt-gnu, gettext are used.
32294         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32295         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32296
32297 2009-08-23  Bruno Haible  <bruno@clisp.org>
32298
32299         Fix getdtablesize() on mingw.
32300         * lib/getdtablesize.c (getdtablesize): Implement differently.
32301         * lib/unistd.in.h (getdtablesize): Improve comment.
32302
32303 2009-08-23  Bruno Haible  <bruno@clisp.org>
32304
32305         New module 'mkostemp'.
32306         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32307         * lib/stdlib.in.h (mksotemp): New declaration.
32308         * lib/mkostemp.c: New file, from glibc with modifications.
32309         * lib/tempname.h (GT_FILE): Remove outdated comment.
32310         (gen_tempname): Add flags argument.
32311         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32312         (__GT_FILE): Map to 1.
32313         (small_open, large_open): Remove macros.
32314         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32315         * lib/mkstemp.c (mkstemp): Update.
32316         * lib/mkdtemp.c (mkdtemp): Likewise.
32317         * m4/mkostemp.m4: New file.
32318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32319         HAVE_MKOSTEMP.
32320         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32321         HAVE_MKOSTEMP.
32322         * modules/mkostemp: New file, based on modules/mkstemp.
32323         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32324         * NEWS: Mention the change.
32325
32326 2009-08-23  Bruno Haible  <bruno@clisp.org>
32327
32328         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32329         Reported by Eric Blake.
32330
32331 2009-08-23  Bruno Haible  <bruno@clisp.org>
32332
32333         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32334         Reported by Eric Blake.
32335
32336 2009-08-23  Bruno Haible  <bruno@clisp.org>
32337
32338         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32339         * modules/pipe2 (Depends-on): Likewise.
32340
32341 2009-08-23  Eric Blake  <ebb9@byu.net>
32342
32343         fcntl-h: add O_TTY_INIT support
32344         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32345         * tests/test-fcntl-h.c (o): Test it.
32346         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32347
32348         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32349         * modules/fcntl: Move <fcntl.h> header replacement...
32350         * modules/fcntl-h: ...to new name, so as not to collide with
32351         like-named function.
32352         * tests/test-fcntl.c: Rename...
32353         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32354         * modules/fcntl-tests: Rename...
32355         * modules/fcntl-h-tests: ...to this.  Update test file name.
32356         * modules/chdir-long (Depends-on): Update clients.
32357         * modules/chdir-safer (Depends-on): Likewise.
32358         * modules/fcntl-safer (Depends-on): Likewise.
32359         * modules/fts (Depends-on): Likewise.
32360         * modules/mkancesdirs (Depends-on): Likewise.
32361         * modules/mkdir-p (Depends-on): Likewise.
32362         * modules/open (Depends-on): Likewise.
32363         * modules/savewd (Depends-on): Likewise.
32364         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32365         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32366
32367 2009-08-22  Bruno Haible  <bruno@clisp.org>
32368
32369         * modules/binary-io (License): Relicense under LGPL.
32370         * modules/pipe2 (License): Likewise.
32371
32372 2009-08-22  Bruno Haible  <bruno@clisp.org>
32373
32374         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32375         return value.
32376         * lib/pipe-filter-gi.c (filter_init): Likewise.
32377         Reported by Eric Blake.
32378
32379 2009-08-22  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32382         * modules/pipe (Depends-on): Add pipe2.
32383
32384 2009-08-22  Bruno Haible  <bruno@clisp.org>
32385
32386         Tests for module 'pipe2'.
32387         * modules/pipe2-tests: New file.
32388         * tests/test-pipe2.c: New file.
32389
32390         New module 'pipe2'.
32391         * lib/unistd.in.h (pipe2): New declaration.
32392         * lib/pipe2.c: New file.
32393         * m4/pipe2.m4: New file.
32394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32395         HAVE_PIPE2.
32396         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32397         * modules/pipe2: New file.
32398         * doc/glibc-functions/pipe2.texi: Mention the new module.
32399
32400 2009-08-22  Bruno Haible  <bruno@clisp.org>
32401
32402         Reference some new glibc functions.
32403         * doc/glibc-functions/accept4.texi: New file.
32404         * doc/glibc-functions/dup3.texi: New file.
32405         * doc/glibc-functions/mkostemp.texi: New file.
32406         * doc/glibc-functions/pipe2.texi: New file.
32407         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32408         (Glibc sys/socket.h): Refer to accept4.
32409         (Glibc unistd.h): Refer to dup3, pipe2.
32410         Reported by Eric Blake.
32411
32412 2009-08-22  Jim Meyering  <meyering@redhat.com>
32413             Bruno Haible  <bruno@clisp.org>
32414
32415         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32416         This makes it so packages using automake-1.11's silent-rules option
32417         can print e.g., a single "GEN    configmake.h" line, rather than
32418         the 30+ statements that perform the job.  If you want to see the
32419         actual commands, you can still run "make V=1".
32420         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32421         so that make output is abbreviated when those variables are defined
32422         appropriately.
32423         * modules/argz: Likewise.
32424         * modules/arpa_inet: Likewise.
32425         * modules/byteswap: Likewise.
32426         * modules/configmake: Likewise.
32427         * modules/dirent: Likewise.
32428         * modules/errno: Likewise.
32429         * modules/fcntl: Likewise.
32430         * modules/float: Likewise.
32431         * modules/fnmatch: Likewise.
32432         * modules/getopt-posix: Likewise.
32433         * modules/glob: Likewise.
32434         * modules/iconv_open: Likewise.
32435         * modules/inttypes: Likewise.
32436         * modules/localcharset: Likewise.
32437         * modules/locale: Likewise.
32438         * modules/math: Likewise.
32439         * modules/netdb: Likewise.
32440         * modules/netinet_in: Likewise.
32441         * modules/poll: Likewise.
32442         * modules/posix_spawnp-tests: Likewise.
32443         * modules/sched: Likewise.
32444         * modules/search: Likewise.
32445         * modules/selinux-h: Likewise.
32446         * modules/signal: Likewise.
32447         * modules/spawn: Likewise.
32448         * modules/stdarg: Likewise.
32449         * modules/stdbool: Likewise.
32450         * modules/stddef: Likewise.
32451         * modules/stdint: Likewise.
32452         * modules/stdio: Likewise.
32453         * modules/stdlib: Likewise.
32454         * modules/string: Likewise.
32455         * modules/strings: Likewise.
32456         * modules/sys_file: Likewise.
32457         * modules/sys_ioctl: Likewise.
32458         * modules/sys_select: Likewise.
32459         * modules/sys_socket: Likewise.
32460         * modules/sys_stat: Likewise.
32461         * modules/sys_time: Likewise.
32462         * modules/sys_times: Likewise.
32463         * modules/sys_utsname: Likewise.
32464         * modules/sys_wait: Likewise.
32465         * modules/sysexits: Likewise.
32466         * modules/time: Likewise.
32467         * modules/unistd: Likewise.
32468         * modules/wchar: Likewise.
32469         * modules/wctype: Likewise.
32470
32471 2009-08-22  Jim Meyering  <meyering@redhat.com>
32472
32473         announce-gen: detect write failure
32474         * build-aux/announce-gen: Add Coda at end.
32475         Remove equivalent-but-more-verbose block at top.
32476
32477 2009-08-19  Akim Demaille  <demaille@gostai.com>
32478
32479         bootstrap: --help to stdout.
32480         * bootstrap (usage): Don't send --help to stderr.
32481         Use a here doc instead of a long string.
32482
32483 2009-08-21  Eric Blake  <ebb9@byu.net>
32484
32485         test-popen-safer: split from test-popen
32486         * tests/test-popen.c (main): Move...
32487         * tests/test-popen.h: ...into new file.
32488         * tests/test-popen-safer2.c: New file.
32489         * modules/popen-tests (Files): Add test-popen.h.
32490         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32491         Suggested by Bruno Haible.
32492
32493         test-fcntl-safer: split from test-open
32494         * tests/test-open.c (main): Move...
32495         * tests/test-open.h: ...into new file.
32496         * tests/test-fcntl-safer.c: New file.
32497         * modules/open-tests (Files): Add test-open.h.
32498         * modules/fcntl-safer-tests: New file.
32499         Suggested by Bruno Haible.
32500
32501         test-fopen-safer: split from test-fopen
32502         * tests/test-fopen.c (main): Move...
32503         * tests/test-fopen.h: ...into new file.
32504         * tests/test-fopen-safer.c: New file.
32505         * modules/fopen-tests (Files): Add test-fopen.h.
32506         * modules/fopen-safer-tests: New file.
32507         Suggested by Bruno Haible.
32508
32509 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32510
32511         popen-safer: test O_CLOEXEC at run-time.
32512         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32513
32514 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32515
32516         fcntl: move more flags to the header
32517         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32518         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32519         * lib/fcntl.in.h: Do both things here.
32520
32521 2009-08-21  Jim Meyering  <meyering@redhat.com>
32522
32523         consistently remove $@-t before redirecting to it
32524         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32525         * modules/alloca-opt: Likewise.
32526         * modules/byteswap: Likewise.
32527         * modules/fnmatch: Likewise.
32528         * modules/getopt-posix: Likewise.
32529         * modules/glob: Likewise.
32530         * modules/poll: Likewise.
32531         * modules/posix_spawnp-tests: Likewise.
32532         * modules/sys_socket: Likewise.
32533         * modules/sysexits: Likewise.
32534
32535 2009-08-21  Eric Blake  <ebb9@byu.net>
32536
32537         popen: simplify access to original popen
32538         * lib/popen.c (rpl_popen): No need to worry about popen being a
32539         macro.
32540         Reported by Bruno Haible.
32541
32542 2009-08-20  Eric Blake  <ebb9@byu.net>
32543
32544         build: avoid some compiler warnings
32545         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32546         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32547         type.
32548         (new_exclude_segment, excluded_file_pattern_p)
32549         (excluded_file_name_p): Reduce scope.
32550         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32551         old-style declaration.
32552
32553 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32554
32555         * tests/test-exclude1.sh: Handle Windows EOL.
32556         * tests/test-exclude2.sh: Likewise.
32557         * tests/test-exclude3.sh: Likewise.
32558         * tests/test-exclude4.sh: Likewise.
32559         * tests/test-exclude5.sh: Likewise.
32560         * tests/test-exclude6.sh: Likewise.
32561         * tests/test-exclude7.sh: Likewise.
32562
32563 2009-08-19  Akim Demaille  <demaille@gostai.com>
32564
32565         bootstrap: find sha1sum when named gsha1sum.
32566         * bootstrap (find_tool): New.
32567         ($SHA1SUM): New.
32568         Use it.
32569
32570 2009-08-20  Jim Meyering  <meyering@redhat.com>
32571
32572         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32573         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32574         expression that converts "." in a file name to "\." in the resulting
32575         regexp.  Start with a dummy statement, so that prior shell variable
32576         definitions are expanded portably.  Reported by Simon Josefsson.
32577
32578 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32579
32580         Fix polling for writeability of a screen buffer.
32581         * lib/poll.c: Distinguish input and screen buffers for the
32582         Win32 implementation.
32583         * lib/select.c: Likewise.
32584
32585 2009-08-19  Eric Blake  <ebb9@byu.net>
32586
32587         popen-safer: prevent popen from clobbering std descriptors
32588         * modules/popen-safer: New file.
32589         * lib/popen-safer.c: Likewise.
32590         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32591         * lib/stdio--.h (popen): Provide override.
32592         * lib/stdio-safer.h (popen_safer): Provide declaration.
32593         * tests/test-popen.c (includes): Partially test this.
32594         * modules/popen-safer-tests: New file, for more tests.
32595         * tests/test-popen-safer.c: Likewise.
32596         * MODULES.html.sh (file stream based Input/Output): Mention it.
32597
32598         tests: test some of the *-safer modules
32599         * modules/fopen-safer (Depends-on): Add fopen.
32600         * modules/fcntl-safer (Depends-on): Add fcntl.
32601         * modules/stdlib-safer (Depends-on): Add stdlib.
32602         (configure.ac): Set indicator.
32603         * modules/unistd-safer (configure.ac): Likewise.
32604         * modules/tmpfile-safer (configure.ac): Likewise.
32605         (Depends-on): Add tmpfile.
32606         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32607         active.
32608         * tests/test-fopen.c (includes): Test safer versions when they are
32609         in use.
32610         * tests/test-open.c (includes): Likewise.
32611
32612         popen: fix cygwin 1.5 bug when stdin closed
32613         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32614         * modules/popen: New file.
32615         * modules/popen-tests: Likewise.
32616         * tests/test-popen.c: Likewise.
32617         * m4/popen.m4: Likewise.
32618         * lib/popen.c: Likewise.
32619         * lib/stdio.in.h (popen): New declaration.
32620         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32621         * modules/stdio (Makefile.am): Likewise.
32622         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32623
32624 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32625
32626         maint.mk: give full control over update-copyright exclusions
32627         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32628         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32629         (update-copyright): Don't force inclusion of top-level
32630         ChangeLog.  Don't force exclusion of all COPYING files, but make
32631         them the default exclusion instead.
32632
32633 2009-08-16  Bruno Haible  <bruno@clisp.org>
32634
32635         Fix test failures on Solaris 10.
32636         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32637         tests when Solaris iconv() is used.
32638         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32639         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32640         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32641         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32642         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32643
32644 2009-08-16  Bruno Haible  <bruno@clisp.org>
32645
32646         Fix test failures on Solaris 10.
32647         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32648         'tr' program and pass it as first argument.
32649         * tests/test-pipe-filter-gi1.sh: Likewise.
32650         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32651         program as first argument.
32652         * tests/test-pipe-filter-gi1.c (main): Likewise.
32653
32654 2009-08-16  Eric Blake  <ebb9@byu.net>
32655
32656         fpurge: fix previous commits
32657         * modules/fpurge (Makefile.am): Make replacement conditional,
32658         partially reverting 2007-04-29 change; missed in previous
32659         attempt.
32660         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32661         is missing.
32662
32663 2009-08-16  Bruno Haible  <bruno@clisp.org>
32664
32665         Clarify fpurge's effect on the file position.
32666         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32667         * tests/test-fpurge.c (main): Make a second pass for checking the file
32668         position.
32669
32670 2009-08-16  Bruno Haible  <bruno@clisp.org>
32671
32672         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32673         declaration of fpurge is missing.
32674         * tests/test-fpurge.c (main): Check that the file has not more contents
32675         than expected. Close the file before removing it.
32676
32677 2009-08-15  Eric Blake  <ebb9@byu.net>
32678
32679         fpurge: don't wrap working cygwin implementation
32680         * lib/fpurge.c (fpurge): Fix comment typo.
32681         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32682         1.7 to avoid replacement.
32683         * tests/test-fpurge.c (main): Enhance test.
32684
32685 2009-08-15  Eric Blake  <ebb9@byu.net>
32686         and Jim Meyering  <meyering@redhat.com>
32687
32688         test-update-copyright: skip if perl is insufficient
32689         * tests/test-update-copyright.sh: Failure to run maintainer tool
32690         should not cause testsuite failure on cygwin 1.5.
32691
32692 2009-08-14  Eric Blake  <ebb9@byu.net>
32693
32694         doc: mention more functions added in cygwin 1.7.0
32695         * doc/posix-headers/limits.texi (limits.h): Update for recent
32696         cygwin additions.
32697         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32698         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32699         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32700         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32701         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32702
32703 2009-08-14  Eric Blake  <ebb9@byu.net>
32704
32705         maint.mk: simplify update-copyright rule
32706         * top/maint.mk (update-copyright-local): Delete, and document how
32707         to do it in cfg.mk instead.
32708         (update-copyright-exclude-regexp): Delete, and document how to do
32709         it in .x-update-copyright instead.
32710         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32711         exclude ChangeLog.
32712
32713 2009-08-14  Bruno Haible  <bruno@clisp.org>
32714
32715         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32716
32717 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32718
32719         maint.mk: support update-copyright-env
32720         * top/maint.mk (update-copyright-env): Define place-holder.
32721         (update-copyright): Expand $(update-copyright-env) before
32722         invoking update-copyright.
32723
32724 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32725
32726         update-copyright: implement forced reformatting
32727         * build-aux/update-copyright: Implement and document
32728         UPDATE_COPYRIGHT_FORCE.
32729         * tests/test-update-copyright.sh: Test it.
32730
32731 2009-08-14  Eric Blake  <ebb9@byu.net>
32732         and Bruno Haible  <bruno@clisp.org>
32733
32734         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32735         * tests/test-locale.c: Revert previous patch related to NULL.
32736         * tests/test-stdio.c: Likewise.
32737         * tests/test-stdlib.c: Likewise.
32738         * tests/test-string.c: Likewise.
32739         * tests/test-unistd.c: Likewise.
32740         * modules/time-tests (Depends-on): Add verify.
32741         * modules/wchar-tests (Depends-on): Likewise.
32742         * tests/test-time.c: Test for NULL compliance.
32743         * tests/test-wchar.c: Likewise.
32744         * modules/locale (Depends-on): Add stddef.
32745         * modules/stdio (Depends-on): Likewise.
32746         * modules/stdlib (Depends-on): Likewise.
32747         * modules/string (Depends-on): Likewise.
32748         * modules/time (Depends-on): Likewise.
32749         * modules/unistd (Depends-on): Likewise.
32750         * modules/wchar (Depends-on): Likewise.
32751         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32752         * lib/stdlib.in.h (includes): Likewise.
32753         * lib/string.in.h (includes): Likewise.
32754         * lib/time.in.h (includes): Likewise.
32755         * lib/unistd.in.h (includes): Likewise.
32756         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32757         replaced.
32758         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32759         * m4/stddef_h.m4: New file.
32760         * modules/stddef: Likewise.
32761         * lib/stddef.in.h: Likewise.
32762         * modules/stddef-tests: Likewise.
32763         * tests/test-stddef.c: Likewise.
32764         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32765         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32766         * doc/posix-headers/locale.texi (locale.h): Likewise.
32767         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32768         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32769         * doc/posix-headers/string.texi (string.h): Likewise.
32770         * doc/posix-headers/time.texi (time.h): Likewise.
32771         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32772         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32773
32774 2009-08-14  Eric Blake  <ebb9@byu.net>
32775
32776         doc: improve git diff of texinfo files
32777         * .gitattributes: Add rule for *.texi files, with hint on how to
32778         use it.
32779         Copied from m4, and based on a report by Bruno Haible.
32780
32781 2009-08-14  Bruno Haible  <bruno@clisp.org>
32782
32783         Disable multithread support by default on Cygwin 1.5.x for real.
32784         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32785
32786 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32787
32788         update-copyright: much ado about intervals
32789         * build-aux/update-copyright: Implement and document
32790         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32791         of copyright year intervals.
32792         Also, document UPDATE_COPYRIGHT_YEAR.
32793         * tests/test-update-copyright.sh: Test it.
32794
32795         update-copyright: convert 2-digit to 4-digit years
32796         * build-aux/update-copyright: Implement and document.
32797         * tests/test-update-copyright.sh: Update.
32798
32799 2009-08-14  Jim Meyering  <meyering@redhat.com>
32800
32801         test-exclude: avoid coreutils "make check" failure
32802         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32803         just as in test-argmatch.c.
32804
32805 2009-08-13  Eric Blake  <ebb9@byu.net>
32806
32807         test-dup2: fix bad assumption
32808         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32809         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32810
32811         test-version-etc: fix CRLF portability issue
32812         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32813         recognize \r.
32814         * tests/test-argp-version-etc-1.sh: Likewise.
32815
32816         getopt: update client modules
32817         * modules/argp (Depends-on): Use getopt-gnu.
32818         * modules/git-merge-changelog (Depends-on): Likewise.
32819         * modules/long-options (Depends-on): Likewise.
32820         * modules/xstrtol (Depends-on): 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.  Don't fail on CRLF differences.  Rewrite to use
32826         multiple -e instead of multiple sed forks, suggested by Eric Blake
32827         <ebb9@byu.net>.
32828         * tests/test-argp-version-etc-1.sh: Likewise.
32829
32830 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32831
32832         * tests/test-version-etc.sh: Don't fail on different
32833         project/version.
32834
32835 2009-08-12  Bruno Haible  <bruno@clisp.org>
32836
32837         Tests for modules 'getopt-posix', 'getopt-gnu'.
32838         * modules/getopt-posix-tests: New file.
32839         * tests/test-getopt.c: New file.
32840         * tests/test-getopt.h: New file.
32841         * tests/test-getopt_long.h: New file.
32842
32843         New modules 'getopt-posix', 'getopt-gnu'.
32844         * modules/getopt-gnu: New file, renamed from modules/getopt.
32845         * modules/getopt-posix: New file.
32846         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32847         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32848         (gl_GETOPT): Remove macro.
32849         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32850         Disable the test against BSD systems that declare optreset. Test
32851         against mingw bug. Test against lack of support of optional arguments
32852         on many platforms.
32853         * doc/glibc-headers/getopt.texi: Update module name and list of
32854         relevant platforms.
32855         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32856         'getopt-gnu' and more portability problems.
32857         * NEWS: Mention the changes.
32858
32859 2009-08-12  Bruno Haible  <bruno@clisp.org>
32860
32861         Ensure that optarg etc. get declared by <unistd.h>.
32862         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32863         AC_USE_SYSTEM_EXTENSIONS.
32864         * modules/getopt (Depends-on): Add 'extensions'.
32865
32866 2009-08-12  Bruno Haible  <bruno@clisp.org>
32867
32868         Avoid test link errors.
32869         * modules/pipe-filter-ii-tests (Makefile.am): Define
32870         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32871         * modules/pipe-filter-gi-tests (Makefile.am): Define
32872         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32873         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32874
32875 2009-08-12  Bruno Haible  <bruno@clisp.org>
32876
32877         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32878         gl_GETOPT_SUBSTITUTE before.
32879         (gl_GETOPT): Use it.
32880         * m4/argp.m4 (gl_ARGP): Update.
32881         Reported by Sergey Poznyakoff.
32882
32883         * m4/getopt.m4: Reorder macros.
32884         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32885         (gl_GETOPT_SUBSTITUTE): Remove macro.
32886
32887 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32888
32889         Minor improvement in gitlog-to-changelog
32890
32891         * build-aux/gitlog-to-changelog: New option `--format' makes
32892         output format string configurable.
32893
32894 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32895
32896         Optimize exclude: use hash tables for non-wildcard patterns.
32897
32898         * lib/exclude.c: Include hash.h and mbuiter.h
32899         (struct exclude_pattern, exclude_segment): New data types.
32900         (struct exclude): Rewrite.
32901         (fnmatch_pattern_has_wildcards): New function.
32902         (new_exclude_segment, free_exclude_segment): New functions.
32903         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32904         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32905         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32906         * modules/exclude: Depend on hash and mbuiter.
32907
32908         * modules/exclude-tests: New file.
32909         * tests/test-exclude.c: New file.
32910         * tests/test-exclude1.sh: New file.
32911         * tests/test-exclude2.sh: New file.
32912         * tests/test-exclude3.sh: New file.
32913         * tests/test-exclude4.sh: New file.
32914         * tests/test-exclude5.sh: New file.
32915         * tests/test-exclude6.sh: New file.
32916         * tests/test-exclude7.sh: New file.
32917
32918 2009-08-12  Bruno Haible  <bruno@clisp.org>
32919
32920         Ensure that getopt() gets declared by <unistd.h>.
32921         * lib/unistd.in.h: Conditionally include getopt.h.
32922         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32923         Set GNULIB_UNISTD_H_GETOPT.
32924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32925         GNULIB_UNISTD_H_GETOPT.
32926         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32927
32928 2009-08-12  Bruno Haible  <bruno@clisp.org>
32929
32930         Clarify logic.
32931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32932         gl_replace_getopt instead of GETOPT_H.
32933
32934 2009-08-12  Bruno Haible  <bruno@clisp.org>
32935
32936         * m4/getopt.m4: Add comments.
32937
32938 2009-08-12  Bruno Haible  <bruno@clisp.org>
32939
32940         Disable multithread support by default on Cygwin 1.5.x.
32941         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32942         set gl_use_threads=no if not specified otherwise.
32943
32944 2009-08-11  Bruno Haible  <bruno@clisp.org>
32945
32946         Avoid compilation error on NetBSD 5.0.
32947         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
32948         * tests/test-stdio.c: Likewise.
32949         * tests/test-stdlib.c: Likewise.
32950         * tests/test-string.c: Likewise.
32951         * tests/test-unistd.c: Likewise.
32952         Reported by Greg Troxel <gdt@ir.bbn.com>
32953         at <https://savannah.gnu.org/support/?106973>.
32954
32955 2009-08-11  Bruno Haible  <bruno@clisp.org>
32956
32957         * modules/dup2-tests (Depends-on): Remove close.
32958
32959         Undo 2009-07-19 commit.
32960         * modules/acl-tests (Depends-on): Remove close.
32961         * modules/binary-io-tests (Depends-on): Likewise.
32962         * modules/closein-tests (Depends-on): Likewise.
32963         * modules/flock-tests (Depends-on): Likewise.
32964         * modules/fsync-tests (Depends-on): Likewise.
32965         * modules/lseek-tests (Depends-on): Likewise.
32966         * modules/pipe-tests (Depends-on): Likewise.
32967         * modules/posix_spawn-tests (Depends-on): Likewise.
32968         * modules/posix_spawnp-tests (Depends-on): Likewise.
32969         * modules/stat-time-tests (Depends-on): Likewise.
32970         * modules/yesno-tests (Depends-on): Likewise.
32971
32972 2009-08-10  Bruno Haible  <bruno@clisp.org>
32973
32974         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
32975
32976 2009-08-10  Bruno Haible  <bruno@clisp.org>
32977
32978         Fix a gcc warning.
32979         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
32980
32981 2009-08-10  Bruno Haible  <bruno@clisp.org>
32982
32983         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
32984         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
32985         not only the first time.
32986         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
32987         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
32988         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
32989         is 1, not only the the first time.
32990
32991 2009-08-10  Bruno Haible  <bruno@clisp.org>
32992
32993         Make it possible to use module 'gethostname' without module 'close'.
32994         * lib/unistd.in.h (close): Evoke a link error only if
32995         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
32996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32997         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
32998         * modules/unistd (Makefile.am): Substitute
32999         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33000         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33001         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33002         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33003         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33004         * modules/sys_ioctl (Makefile.am): Substitute
33005         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33006         * modules/socket (configure.ac): On native Windows, set
33007         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33008         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33009         Reported by Sam Steingold <sds@gnu.org>.
33010
33011 2009-08-10  Bruno Haible  <bruno@clisp.org>
33012
33013         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33014         * modules/ioctl (configure.ac): Likewise.
33015
33016 2009-08-10  Bruno Haible  <bruno@clisp.org>
33017
33018         Avoid collision between gnulib wrapper and libintl wrapper.
33019         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33020         already defined in intl/printf.c.
33021         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33022         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33023
33024 2009-08-09  Bruno Haible  <bruno@clisp.org>
33025
33026         Make <sys/select.h> really self-contained, also on Solaris 10.
33027         * lib/sys_select.in.h: Include <string.h>.
33028         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33029         Solaris 10 problem.
33030         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33031         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33032         Reported by Jim Meyering.
33033
33034 2009-08-09  Bruno Haible  <bruno@clisp.org>
33035
33036         Avoid warnings from 'aclocal' that are due to a use of macro name
33037         AM_XGETTEXT_OPTION that is not defined in automake.
33038         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33039         automake.
33040         * modules/error (configure.ac): Likewise.
33041         * modules/propername (configure.ac): Likewise.
33042         * modules/vasprintf (configure.ac): Likewise.
33043         * modules/verror (configure.ac): Likewise.
33044         * modules/xprintf (configure.ac): Likewise.
33045         * modules/xvasprintf (configure.ac): Likewise.
33046
33047 2009-08-08  Bruno Haible  <bruno@clisp.org>
33048
33049         Avoid compilation error in C++ mode.
33050         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33051         Reported by Sam Steingold <sds@gnu.org>.
33052
33053 2009-08-08  Bruno Haible  <bruno@clisp.org>
33054
33055         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33056         for the various Unix platforms.
33057         * doc/posix-headers/limits.texi: Update platforms list regarding
33058         HOST_NAME_MAX.
33059         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33060
33061 2009-08-07  Jim Meyering  <meyering@redhat.com>
33062
33063         selinux-at: fix typo in a comment
33064         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33065         Spotted by Paolo Bonzini.
33066
33067         selinux-at: remove redundant m4 code, add documentation
33068         * modules/selinux-at (configure.ac): Remove redundant code.
33069         LIB_SELINUX is already set via the dependent module, selinux-h.
33070         (Include): Add quotes around selinux-at.h.
33071         * lib/selinux-at.h: Add documentation.
33072         Reported by Bruno Haible in
33073         http://marc.info/?l=gnulib-bug&m=124958988300749
33074
33075 2009-08-07  Bruno Haible  <bruno@clisp.org>
33076
33077         Avoid link error on MacOS X 10.3 and 10.4.
33078         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33079         on non-ELF systems.
33080         * lib/argp-pv.c (argp_program_version): Likewise.
33081         Reported by Simon Josefsson.
33082
33083 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33084
33085         * tests/test-version-etc.sh: Use $EXEEXT.
33086
33087 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33088
33089         update-copyright: update documentation to point to maint.mk
33090         * build-aux/update-copyright: Here.
33091
33092 2009-08-06  Jim Meyering  <meyering@redhat.com>
33093
33094         maint.mk: support update-copyright-local
33095         * top/maint.mk (update-copyright-local): Define place-holder.
33096         (update-copyright): Depend on $(update-copyright-local).
33097
33098 2009-08-06  Jim Meyering  <meyering@redhat.com>
33099
33100         selinux-at: new module
33101         Initially written for coreutils, this module will soon be
33102         used by findutils, too.
33103         * MODULES.html.sh [Misc]: Add selinux-at.
33104         * lib/selinux-at.h: New file, from coreutils.
33105         * lib/selinux-at.c: Likewise.
33106         * modules/selinux-at: Likewise.
33107         (License): Change from LGPL to GPL, since it depends
33108         on the GPL'd openat module.
33109
33110         doc: update README
33111         * README: Remove references to cogito.
33112         Remove cvs-repo-updating instructions from 2007.
33113         Don't imply that CVS is better if you have limited disk space.
33114
33115 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33116
33117         update-copyright: support C-style comments
33118         * build-aux/update-copyright: Implement and document.
33119         * tests/test-update-copyright.sh: Test.
33120
33121 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33122
33123         update-copyright: support omitted "(C)"
33124         * build-aux/update-copyright: Implement and document.  Also,
33125         allow variable whitespace before "(C)".
33126         * tests/test-update-copyright.sh: Test.
33127
33128 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33129
33130         update-copyright: don't trip on non-FSF copyright statements
33131         * build-aux/update-copyright: Fix so that the first correctly
33132         formatted FSF copyright statement is recognized no matter what
33133         appears before it.  Update documentation.
33134         * tests/test-update-copyright.sh: Test that.
33135
33136 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33137
33138         update-copyright: clean up code a little
33139         * build-aux/update-copyright: Append "_re" to the name of any
33140         variable holding a regular expression.
33141         Replace "old" and "new" with "stmt" in variable names.
33142         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33143         handled correctly.
33144         Format code more consistently.
33145
33146 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33147
33148         update-copyright-tests: improve portability
33149         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33150         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33151
33152 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33153
33154         update-copyright: support @copyright{} and &copy;
33155         * build-aux/update-copyright: Implement and document.
33156         * tests/test-update-copyright.sh: Test.
33157
33158 2009-08-04  Jim Meyering  <meyering@redhat.com>
33159
33160         update-copyright-tests: correctly test EOL=\r\n handling
33161         * tests/test-update-copyright.sh: Put \r at the end of some lines
33162         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33163
33164         maint.mk: make update-copyright exclusion list more configurable
33165         * top/maint.mk (update-copyright): Default to excluding COPYING,
33166         but allow an override, in case someone does want to update that file.
33167
33168         maint.mk: don't update copyright date in COPYING
33169         * top/maint.mk (update-copyright): Exclude COPYING.
33170
33171         maint.mk: add a copyright-updating rule
33172         * top/maint.mk (update-copyright): New rule.
33173         Derived from coreutils/Makefile.am.
33174
33175         update-copyright: rename some variables
33176         * build-aux/update-copyright: Rename a few variables for clarity.
33177         Tweak syntax.  List Joel E. Denny as coauthor.
33178
33179 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33180
33181         update-copyright: fix bug for 2-digit last year and add tests
33182         * build-aux/update-copyright: Fix bug.
33183         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33184         specified.
33185         * modules/update-copyright-tests: New
33186         * tests/test-update-copyright.sh: New.
33187
33188 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33189
33190         update-copyright: handle leading tabs in line prefix
33191         * build-aux/update-copyright: Count leading tabs as 8 spaces
33192         when computing margin.  This helps with the formatting of
33193         ChangeLogs, for example.
33194         Fix documentation a little.
33195
33196 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33197
33198         update-copyright: support EOL=\r\n
33199         * build-aux/update-copyright: Implement that.
33200
33201 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33202
33203         update-copyright: automatically format copyright statements
33204         * build-aux/update-copyright: Implement that.
33205         Also, be a little more predictable and safer by always failing
33206         when the full copyright format is not perfectly recognized as an
33207         unbroken whole.  Discussed at
33208         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33209         Rewrite documentation.
33210
33211 2009-08-03  Bruno Haible  <bruno@clisp.org>
33212
33213         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33214
33215 2009-08-02  Bruno Haible  <bruno@clisp.org>
33216
33217         Tests for module 'uname'.
33218         * modules/uname-tests: New file.
33219         * tests/test-uname.c: New file.
33220
33221         New module 'uname'.
33222         * lib/uname.c: New file.
33223         * m4/uname.m4: New file.
33224         * modules/uname: New file.
33225         * doc/posix-functions/uname.texi: Mention the new module.
33226
33227 2009-08-02  Bruno Haible  <bruno@clisp.org>
33228
33229         Tests for module 'sys_utsname'.
33230         * modules/sys_utsname-tests: New file.
33231         * tests/test-sys_utsname.c: New file.
33232
33233         New module 'sys_utsname'.
33234         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33235         * m4/sys_utsname_h.m4: New file.
33236         * modules/sys_utsname: New file.
33237         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33238
33239 2009-08-02  Bruno Haible  <bruno@clisp.org>
33240
33241         Implicitly initialize the sockets library.
33242         * lib/gethostname.c: Include sockets.h.
33243         (rpl_gethostname): Invoke gl_sockets_startup.
33244         * lib/socket.c: Include sockets.h.
33245         (rpl_socket): Invoke gl_sockets_startup.
33246         * modules/gethostname (Depends-on): Add sockets.
33247         * modules/socket (Depends-on): Likewise.
33248         * tests/test-poll.c: Don't include sockets.h.
33249         (main): Don't invoke gl_sockets_startup.
33250         * tests/test-select.c: Don't include sockets.h.
33251         (main): Don't invoke gl_sockets_startup.
33252
33253 2009-08-02  Bruno Haible  <bruno@clisp.org>
33254
33255         Allow multiple calls to gl_sockets_startup.
33256         * lib/sockets.c (initialized_sockets_version): New variable.
33257         (gl_sockets_startup): Do nothing if already called for this or a higher
33258         version.
33259         (gl_sockets_cleanup): Reset initialized_sockets_version.
33260
33261 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33262
33263         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33264         different project/version.
33265
33266 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33267             Bruno Haible  <bruno@clisp.org>
33268
33269         Tests for module 'pipe-filter-gi'.
33270         * modules/pipe-filter-gi-tests: New file.
33271         * tests/test-pipe-filter-gi1.sh: New file.
33272         * tests/test-pipe-filter-gi1.c: New file.
33273         * tests/test-pipe-filter-gi2.sh: New file.
33274         * tests/test-pipe-filter-gi2-main.c: New file.
33275         * tests/test-pipe-filter-gi2-child.c: New file.
33276
33277         New module 'pipe-filter-gi'.
33278         * lib/pipe-filter-gi.c: New file.
33279         * modules/pipe-filter-gi: New file.
33280
33281 2009-08-02  Bruno Haible  <bruno@clisp.org>
33282             Paolo Bonzini  <bonzini@gnu.org>
33283
33284         Tests for module 'pipe-filter-ii'.
33285         * modules/pipe-filter-ii-tests: New file.
33286         * tests/test-pipe-filter-ii1.sh: New file.
33287         * tests/test-pipe-filter-ii1.c: New file.
33288         * tests/test-pipe-filter-ii2.sh: New file.
33289         * tests/test-pipe-filter-ii2-main.c: New file.
33290         * tests/test-pipe-filter-ii2-child.c: New file.
33291
33292         New module 'pipe-filter-ii'.
33293         * lib/pipe-filter.h: New file.
33294         * lib/pipe-filter-ii.c: New file.
33295         * lib/pipe-filter-aux.h: New file.
33296         * modules/pipe-filter-ii: New file.
33297
33298 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33299
33300         * lib/gc-libgcrypt.c: Change copyright to FSF.
33301         * lib/gc-gnulib.c: Likewise.
33302
33303 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33304
33305         * lib/gethostname.c: Include limits.h.
33306
33307 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33308             Bruno Haible  <bruno@clisp.org>
33309
33310         Ensure HOST_NAME_MAX as part of the gethostname module.
33311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33312         define also HOST_NAME_MAX.
33313         * tests/test-gethostname.c: Include <limits.h>.
33314         (main): Check also HOST_NAME_MAX.
33315         * doc/posix-headers/limits.texi: Document the mingw problem.
33316
33317 2009-08-02  Bruno Haible  <bruno@clisp.org>
33318
33319         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33320         Add comments.
33321
33322 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33323
33324         * lib/gethostname.c: Add Windows wrapper.
33325         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33326         * modules/gethostname: Depend on sys_socket & errno, for also
33327         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33328         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33329
33330 2009-07-31  Jim Meyering  <meyering@redhat.com>
33331
33332         getloadavg: fix symbol name in comment
33333         * lib/getloadavg.c: Correct a typo I introduced when adding
33334         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33335         Matt Kraai spotted the problem.
33336
33337 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33338
33339         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33340         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33341         code also if ! defined N_NAME_POINTER.
33342         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33343         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33344         but the n_name member is a 12-byte array.
33345
33346 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33347
33348         update-copyright: generalize comment handling
33349         * build-aux/update-copyright: Handle copyright statements
33350         within more comment styles.
33351         Document usage.
33352         Report any file with an external copyright holder or parse failure.
33353
33354 2009-07-29  Jim Meyering  <meyering@redhat.com>
33355
33356         mktime: correct setting of REPLACE_MKTIME
33357         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33358
33359         update-copyright: new module
33360         * modules/update-copyright: New file.
33361         * build-aux/update-copyright: New file.
33362         * MODULES.html.sh (maint+release support): Add update-copyright.
33363
33364 2009-07-27  Bruno Haible  <bruno@clisp.org>
33365
33366         Fix compilation error when <ctime> is used and mktime is replaced.
33367         * lib/time.in.h (mktime): New declaration.
33368         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33369         REPLACE_MKTIME instead of defining mktime in config.h.
33370         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33371         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33372         Reported by Ross McFarland <rwmcfa1@neces.com>.
33373
33374 2009-07-27  Bruno Haible  <bruno@clisp.org>
33375
33376         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33377         Reported by Matt Kraai <mkraai@beckman.com>.
33378
33379 2009-07-25  Jim Meyering  <meyering@redhat.com>
33380
33381         maint.mk: avoid warnings about missing files
33382         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33383         diagnostic when .prev-version does not exist.
33384         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33385         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33386         nonexistent cfg.mk.
33387         Suggestions from Simon Josefsson.
33388
33389 2009-07-25  Bruno Haible  <bruno@clisp.org>
33390
33391         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33392         defined as macros. Needed on QNX 6.4.1.
33393         Reported by Matt Kraai <mkraai@beckman.com>.
33394
33395 2009-07-23  Jim Meyering  <meyering@redhat.com>
33396
33397         maint.mk: invoke "make dist" with a working value of XZ_OPT
33398         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33399
33400 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33401
33402         Make fseeko.c compile on QNX.
33403         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33404
33405 2009-07-22  Peter Simons  <simons@cryp.to>
33406
33407         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33408         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33409         * lib/md4.h: Likewise.
33410         * lib/md5.h: Likewise.
33411         * lib/sha1.h: Likewise.
33412         * lib/sha256.h: Likewise.
33413         * lib/sha512.h: Likewise.
33414
33415         tests-sha1: don't assign literal string to 'char *' variable
33416         * tests/test-sha1.c (main): Declare locals with "const" to match
33417         attributes of the right hand side.
33418
33419 2009-07-21  Eric Blake  <ebb9@byu.net>
33420
33421         dup2: fix more mingw problems
33422         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33423         fd to itself.
33424         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33425         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33426         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33427         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33428         care of mingw bugs.
33429
33430 2009-07-21  Jim Meyering  <meyering@redhat.com>
33431
33432         vc-list-files: avoid failure when /bin/sh is dash
33433         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33434         On some Debian based systems, /bin/sh is a symlink to dash, and running
33435         this command would omit the "/" following each 'tests' prefix:
33436           dash -x build-aux/vc-list-files -C . tests
33437         That is because bash and dash work differently:
33438           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33439           bash ok
33440           dash odd
33441
33442 2009-07-21  Eric Blake  <ebb9@byu.net>
33443
33444         dup2-tests: test previous patch
33445         * modules/dup2-tests: New file.
33446         * tests/test-dup2.c: Likewise.
33447         * tests/test-open.c (main): Avoid unspecified behavior.
33448         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33449         test.
33450
33451         dup2: work around mingw and cygwin 1.5 bug
33452         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33454         * modules/unistd (Makefile.am): Substitute it.
33455         * lib/unistd.in.h (dup2): Declare the replacement.
33456         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33457         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33458         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33459         * modules/execute (Depends-on): Add dup2.
33460         * modules/fseterr (Depends-on): Likewise.
33461         * modules/pipe (Depends-on): Likewise.
33462         * modules/posix_spawn-internal (Depends-on): Likewise.
33463
33464 2009-07-21  Bruno Haible  <bruno@clisp.org>
33465
33466         * modules/.gitattributes: New file.
33467
33468 2009-07-20  Bruno Haible  <bruno@clisp.org>
33469
33470         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33471         (main): Use it.
33472
33473 2009-07-20  Eric Blake  <ebb9@byu.net>
33474
33475         test-pipe: make a bit more robust.
33476         * tests/test-pipe.c (myerr): Allow error messages regardless of
33477         what we do to stderr.
33478         (test_pipe): Rearrange to avoid deadlock.
33479         (child_main): Try a larger read, to ensure we avoided deadlock.
33480         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33481         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33482         if misused.
33483
33484 2009-07-19  Jim Meyering  <meyering@redhat.com>
33485
33486         fts: avoid false-positive cycle-detection
33487         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33488         for each new command line argument.
33489
33490 2009-07-19  Bruno Haible  <bruno@clisp.org>
33491
33492         Fix build error on mingw with the modules sys_select and unistd.
33493         * modules/acl-tests (Depends-on): Add close.
33494         * modules/binary-io-tests (Depends-on): Likewise.
33495         * modules/closein-tests (Depends-on): Likewise.
33496         * modules/flock-tests (Depends-on): Likewise.
33497         * modules/fsync-tests (Depends-on): Likewise.
33498         * modules/lseek-tests (Depends-on): Likewise.
33499         * modules/pipe-tests (Depends-on): Likewise.
33500         * modules/posix_spawn-tests (Depends-on): Likewise.
33501         * modules/posix_spawnp-tests (Depends-on): Likewise.
33502         * modules/stat-time-tests (Depends-on): Likewise.
33503         * modules/yesno-tests (Depends-on): Likewise.
33504
33505 2009-07-19  Bruno Haible  <bruno@clisp.org>
33506
33507         Unify conditionals.
33508         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33509         macros, not at the compiler macros.
33510         * lib/pipe.c: Likewise.
33511         * lib/execute.c: Likewise.
33512         * lib/spawni.c: Likewise.
33513
33514 2009-07-19  Bruno Haible  <bruno@clisp.org>
33515
33516         Fix handling of closed stdin/stdout/stderr on mingw.
33517         * lib/w32spawn.h: Include unistd.h.
33518         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33519         file descriptor with O_NOINHERIT flag.
33520         (fd_safer_noinherit): New function, based on fd-safer.c.
33521         (dup_safer_noinherit): New function, based on dup-safer.c.
33522         (undup_safer_noinherit): New function.
33523         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33524         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33525         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33526         instead of fd_safer.
33527         * tests/test-pipe.c: Include <windows.h>.
33528         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33529         result.
33530
33531         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33532         from main.
33533         (test_pipe): Pass an extra argument for disambiguation.
33534         (main): Invoke parent_main or child_main.
33535
33536         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33537         consistently.
33538
33539 2009-07-18  Eric Blake  <ebb9@byu.net>
33540
33541         test-pipe: fix mingw build
33542         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33543
33544 2009-07-18  Bruno Haible  <bruno@clisp.org>
33545
33546         * modules/pipe-tests (Makefile.am): Fix typo.
33547
33548 2009-07-18  Eric Blake  <ebb9@byu.net>
33549
33550         error: fix mingw build
33551         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33552         Reported by Bruno Haible.
33553
33554         error: avoid undefined use of stdout
33555         * lib/error.c (error, error_at_line): Check that fd 1 is open
33556         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33557         is handling faults and the close_stdout module wants to report the
33558         detection of closed stdout as an error.
33559
33560 2009-07-17  Eric Blake  <ebb9@byu.net>
33561
33562         pipe: be robust in face of closed fds
33563         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33564         should cause child to misbehave.
33565         * modules/pipe-tests: New module.
33566         * tests/test-pipe.c: New file.
33567         * tests/test-pipe.sh: New file.
33568         Reported by Akim Demaille.
33569
33570 2009-07-14  Bruno Haible  <bruno@clisp.org>
33571
33572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33573         Reported by anonymous kc.
33574
33575 2009-07-07  Jim Meyering  <meyering@redhat.com>
33576
33577         maint.mk: don't look for translatable strings in *.m4 or *.mk
33578         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33579         when searching for translatable strings.
33580
33581 2009-07-05  Jim Meyering  <meyering@redhat.com>
33582
33583         remove superfluous parentheses in STREQ definition
33584         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33585         * lib/getugroups.c (STREQ): Likewise.
33586         * lib/fnmatch.c (STREQ): Likewise.
33587         Spotted by Bruno Haible.
33588
33589 2009-07-04  Jim Meyering  <meyering@redhat.com>
33590
33591         argv-iter: new module
33592         * MODULES.html.sh: Add argv-iter.
33593         * lib/argv-iter.c, lib/argv-iter.h: New files.
33594         * modules/argv-iter: New file.
33595         * modules/argv-iter-tests: New file.
33596         * tests/test-argv-iter.c: Test it.
33597
33598 2009-07-04  Bruno Haible  <bruno@clisp.org>
33599
33600         Fix assertion.
33601         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33602         contains more exact copies of a given entry than file2, leave the extra
33603         copies unpaired rather than aborting.
33604         Reported by Eric Blake.
33605
33606 2009-07-02  Bruno Haible  <bruno@clisp.org>
33607
33608         Speedup git-merge-changelog for git cherry-pick.
33609         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33610         (entries_mapping_get): New function, extracted from compute_mapping.
33611         (entries_mapping_reverse_get): New function.
33612         (compute_mapping): Add a 'full' argument. Return the result in a
33613         'struct entries_mapping'.
33614         (main): Update. Access the mappings through entries_mapping_get.
33615         Reported by Eric Blake.
33616
33617 2009-07-02  Bruno Haible  <bruno@clisp.org>
33618
33619         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33620         best_i.
33621
33622 2009-07-02  Bruno Haible  <bruno@clisp.org>
33623
33624         Speed up approximate search for matching ChangeLog entries.
33625         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33626         argument. Call fstrcmp_bounded instead of fstrcmp.
33627         (compute_mapping, try_split_merged_entry, main): Update callers.
33628
33629 2009-07-02  Bruno Haible  <bruno@clisp.org>
33630
33631         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33632
33633 2009-06-30  Bruno Haible  <bruno@clisp.org>
33634
33635         Reduce the number of uc_is_cased calls.
33636         * lib/unicase.h (casing_suffix_context_t): Add
33637         'first_char_except_ignorable' field.
33638         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33639         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33640         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33641         Update initializer.
33642         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33643         case-ignorable characters.
33644         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33645         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33646         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33647         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33648         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33649
33650 2009-06-30  Bruno Haible  <bruno@clisp.org>
33651
33652         Tests for module 'unicase/ignorable'.
33653         * modules/unicase/ignorable-tests: New file.
33654         * tests/unicase/test-ignorable.c: New file, generated by
33655         gen-uni-tables.
33656
33657         Tests for module 'unicase/cased'.
33658         * modules/unicase/cased-tests: New file.
33659         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33660         * tests/unicase/test-predicate-part1.h: New file, derived from
33661         tests/unictype/test-predicate-part1.h.
33662         * tests/unicase/test-predicate-part2.h: New file, same as
33663         tests/unictype/test-predicate-part2.h.
33664
33665         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33666         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33667         (output_casing_properties): New function.
33668         (main): Call it.
33669         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33670         * lib/unicase/cased.c: Include unictype/bitmap.h.
33671         (uc_is_cased): Define through a bitmap lookup.
33672         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33673         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33674         (uc_is_case_ignorable): Define through a bitmap lookup.
33675         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33676         lib/unictype/bitmap.h.
33677         (Depends-on): Add inline. Clean up.
33678         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33679         lib/unictype/bitmap.h.
33680         (Depends-on): Add inline. Clean up.
33681         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33682         recognition.
33683         * tests/unicase/test-u16-tolower.c (main): Likewise.
33684         * tests/unicase/test-u32-tolower.c (main): Likewise.
33685
33686 2009-06-30  Bruno Haible  <bruno@clisp.org>
33687
33688         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33689         * lib/unicase/u16-casemap.c: Likewise.
33690         * lib/unicase/u32-casemap.c: Likewise.
33691
33692 2009-06-29  Bruno Haible  <bruno@clisp.org>
33693
33694         Define u32_casefold as a wrapper around u32_ct_casefold.
33695         * lib/unicase/u32-casefold.c: Update.
33696         * modules/unicase/u32-casefold (Depends-on): Add
33697         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33698         unicase/empty-suffix-context. Clean up.
33699
33700         Define u16_casefold as a wrapper around u16_ct_casefold.
33701         * lib/unicase/u16-casefold.c: Update.
33702         * modules/unicase/u16-casefold (Depends-on): Add
33703         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33704         unicase/empty-suffix-context. Clean up.
33705
33706         Define u8_casefold as a wrapper around u8_ct_casefold.
33707         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33708         * lib/unicase/u8-casefold.c: Update.
33709         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33710         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33711
33712         Define u32_totitle as a wrapper around u32_ct_totitle.
33713         * lib/unicase/u32-totitle.c: Update.
33714         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33715         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33716
33717         Define u16_totitle as a wrapper around u16_ct_totitle.
33718         * lib/unicase/u16-totitle.c: Update.
33719         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33720         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33721
33722         Define u8_totitle as a wrapper around u8_ct_totitle.
33723         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33724         functions.
33725         (FUNC): Delegate to U_CT_TOTITLE.
33726         * lib/unicase/u8-totitle.c: Update.
33727         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33728         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33729
33730         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33731         invocation.
33732         * modules/unicase/u32-tolower (Depends-on): Add
33733         unicase/empty-prefix-context, unicase/empty-suffix-context.
33734
33735         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33736         invocation.
33737         * modules/unicase/u16-tolower (Depends-on): Add
33738         unicase/empty-prefix-context, unicase/empty-suffix-context.
33739
33740         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33741         * modules/unicase/u8-tolower (Depends-on): Add
33742         unicase/empty-prefix-context, unicase/empty-suffix-context.
33743
33744         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33745         invocation.
33746         * modules/unicase/u32-toupper (Depends-on): Add
33747         unicase/empty-prefix-context, unicase/empty-suffix-context.
33748
33749         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33750         invocation.
33751         * modules/unicase/u16-toupper (Depends-on): Add
33752         unicase/empty-prefix-context, unicase/empty-suffix-context.
33753
33754         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33755         * modules/unicase/u8-toupper (Depends-on): Add
33756         unicase/empty-prefix-context, unicase/empty-suffix-context.
33757
33758         New module 'unicase/u32-ct-casefold'.
33759         * lib/unicase/u32-ct-casefold.c: New file.
33760         * modules/unicase/u32-ct-casefold: New file.
33761
33762         New module 'unicase/u16-ct-casefold'.
33763         * lib/unicase/u16-ct-casefold.c: New file.
33764         * modules/unicase/u16-ct-casefold: New file.
33765
33766         New module 'unicase/u8-ct-casefold'.
33767         * lib/unicase/u8-ct-casefold.c: New file.
33768         * lib/unicase/u-ct-casefold.h: New file, derived from
33769         lib/unicase/u-casefold.h.
33770         * modules/unicase/u8-ct-casefold: New file.
33771
33772         New module 'unicase/u32-ct-totitle'.
33773         * lib/unicase/u32-ct-totitle.c: New file.
33774         * modules/unicase/u32-ct-totitle: New file.
33775
33776         New module 'unicase/u16-ct-totitle'.
33777         * lib/unicase/u16-ct-totitle.c: New file.
33778         * modules/unicase/u16-ct-totitle: New file.
33779
33780         New module 'unicase/u8-ct-totitle'.
33781         * lib/unicase/u8-ct-totitle.c: New file.
33782         * lib/unicase/u-ct-totitle.h: New file, derived from
33783         lib/unicase/u-totitle.h.
33784         * modules/unicase/u8-ct-totitle: New file.
33785
33786         New module 'unicase/u32-ct-tolower'.
33787         * lib/unicase/u32-ct-tolower.c: New file.
33788         * modules/unicase/u32-ct-tolower: New file.
33789
33790         New module 'unicase/u16-ct-tolower'.
33791         * lib/unicase/u16-ct-tolower.c: New file.
33792         * modules/unicase/u16-ct-tolower: New file.
33793
33794         New module 'unicase/u8-ct-tolower'.
33795         * lib/unicase/u8-ct-tolower.c: New file.
33796         * modules/unicase/u8-ct-tolower: New file.
33797
33798         New module 'unicase/u32-ct-toupper'.
33799         * lib/unicase/u32-ct-toupper.c: New file.
33800         * modules/unicase/u32-ct-toupper: New file.
33801
33802         New module 'unicase/u16-ct-toupper'.
33803         * lib/unicase/u16-ct-toupper.c: New file.
33804         * modules/unicase/u16-ct-toupper: New file.
33805
33806         New module 'unicase/u8-ct-toupper'.
33807         * lib/unicase/u8-ct-toupper.c: New file.
33808         * modules/unicase/u8-ct-toupper: New file.
33809
33810         Add context arguments to u*_casemap functions.
33811         * lib/unicase/unicasemap.h: Include unicase.h.
33812         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33813         suffix_context arguments.
33814         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33815         functions.
33816         (FUNC): Add prefix_context and suffix_context arguments. Use
33817         uc_is_cased and uc_is_case_ignorable.
33818         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33819         * lib/unicase/u16-casemap.c: Likewise.
33820         * lib/unicase/u32-casemap.c: Likewise.
33821         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33822         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33823         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33824         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33825         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33826         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33827
33828         New module 'unicase/u32-suffix-context'.
33829         * lib/unicase/u32-suffix-context.c: New file.
33830         * modules/unicase/u32-suffix-context: New file.
33831
33832         New module 'unicase/u16-suffix-context'.
33833         * lib/unicase/u16-suffix-context.c: New file.
33834         * modules/unicase/u16-suffix-context: New file.
33835
33836         New module 'unicase/u8-suffix-context'.
33837         * lib/unicase/u8-suffix-context.c: New file.
33838         * lib/unicase/u-suffix-context.h: New file.
33839         * modules/unicase/u8-suffix-context: New file.
33840
33841         New module 'unicase/empty-suffix-context'.
33842         * lib/unicase/empty-suffix-context.c: New file.
33843         * modules/unicase/empty-suffix-context: New file.
33844
33845         New module 'unicase/u32-prefix-context'.
33846         * lib/unicase/u32-prefix-context.c: New file.
33847         * modules/unicase/u32-prefix-context: New file.
33848
33849         New module 'unicase/u16-prefix-context'.
33850         * lib/unicase/u16-prefix-context.c: New file.
33851         * modules/unicase/u16-prefix-context: New file.
33852
33853         New module 'unicase/u8-prefix-context'.
33854         * lib/unicase/u8-prefix-context.c: New file.
33855         * lib/unicase/u-prefix-context.h: New file.
33856         * lib/unicase/context.h: New file.
33857         * modules/unicase/u8-prefix-context: New file.
33858
33859         New module 'unicase/empty-prefix-context'.
33860         * lib/unicase/empty-prefix-context.c: New file.
33861         * modules/unicase/empty-prefix-context: New file.
33862
33863         New module 'unicase/ignorable'.
33864         * lib/unicase/ignorable.c: New file.
33865         * modules/unicase/ignorable: New file.
33866
33867         New module 'unicase/cased'.
33868         * lib/unicase/caseprop.h: New file.
33869         * lib/unicase/cased.c: New file.
33870         * modules/unicase/cased: New file.
33871
33872         New functions for case mapping of substrings.
33873         * lib/unicase.h (casing_prefix_context_t): New type.
33874         (unicase_empty_prefix_context): New variable.
33875         (u8_casing_prefix_context, u16_casing_prefix_context,
33876         u32_casing_prefix_context, u8_casing_prefixes_context,
33877         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33878         declarations.
33879         (casing_suffix_context_t): New type.
33880         (unicase_empty_suffix_context): New variable.
33881         (u8_casing_suffix_context, u16_casing_suffix_context,
33882         u32_casing_suffix_context, u8_casing_suffixes_context,
33883         u16_casing_suffixes_context, u32_casing_suffixes_context,
33884         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33885         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33886         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33887         declarations.
33888
33889 2009-06-28  Jim Meyering  <meyering@redhat.com>
33890
33891         boostrap: indent only with spaces
33892         * build-aux/bootstrap: Indent only with spaces, never TABs.
33893
33894         bootstrap: split long lines
33895         * build-aux/bootstrap: Keep line length < 80.
33896
33897         bootstrap: sync from coreutils
33898         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33899         just as autoreconf does.  Verify a list of prerequisite
33900         package-name,version-number pairs if defined in bootstrap.conf.
33901         Refer to README-prereq, if prerequisites are not satisfied.
33902
33903 2009-06-27  Eric Blake  <ebb9@byu.net>
33904
33905         tests: add test for bogus NULL definition
33906         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33907         * tests/test-stdlib.c: Likewise.
33908         * tests/test-string.c: Likewise.
33909         * tests/test-locale.c: Likewise.
33910         * tests/test-unistd.c: Likewise.
33911         * modules/stdio-tests (Depends-on): Add verify.
33912         * modules/stdlib-tests (Depends-on): Likewise.
33913         * modules/string-tests (Depends-on): Likewise.
33914         * modules/locale-tests (Depends-on): Likewise.
33915         * modules/unistd-tests (Depends-on): Likewise.
33916
33917 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33918
33919         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33920         self-explaining comment.
33921         * m4/selinux-selinux-h: Update serial.
33922         (gl_LIBSELINUX): New macro, adding a warning for missing development
33923         packages to code extracted from...
33924         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33925         Add warning for missing development packages here, too.
33926
33927 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33928
33929         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33930
33931 2009-06-25  Eric Blake  <ebb9@byu.net>
33932
33933         version-etc: fix regression
33934         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33935         gcc.
33936         (version_etc): Use it, to catch bugs with trailing NULL.
33937         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33938         (version_etc_va): Fix logic bug.
33939         * modules/version-etc-tests: Add test.
33940         * tests/test-version-etc.c: New file.
33941         * tests/test-version-etc.sh: Likewise.
33942
33943 2009-06-25  Sam Steingold  <sds@gnu.org>
33944
33945         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33946         mbtowc declaration.
33947
33948 2009-06-25  Eric Blake  <ebb9@byu.net>
33949
33950         fpurge: migrate into <stdio.h>
33951         * lib/fpurge.h: Delete...
33952         * lib/stdio.in.h (fpurge): ...and declare here, instead.
33953         * lib/fpurge.c (fpurge): Change declaring header.
33954         * modules/fpurge (Files): Drop deleted file.
33955         (Depends-on): Add stdio.
33956         (configure.ac): Set witness.
33957         * modules/stdio (Makefile.am): Support fpurge macros.
33958         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33959         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
33960         * lib/fflush.c: Update client.
33961         * tests/test-fpurge.c: Likewise.
33962         * NEWS: Mention the change.
33963
33964 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33965
33966         * lib/argp-version-etc.c (program_authors): Add const
33967         qualifier.
33968         * lib/version-etc.c: Fix typos in the comments.
33969         * modules/argp-version-etc: Depends on version-etc.
33970
33971 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33972
33973         argp-version-etc: new module.
33974
33975         * lib/argp-version-etc.c: New file.
33976         * lib/argp-version-etc.h: New file.
33977         * modules/argp-version-etc: New file.
33978         * modules/argp-version-etc-tests: New file.
33979         * tests/test-argp-version-etc.c: New test.
33980         * tests/test-argp-version-etc-1.sh: New test.
33981
33982 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
33983
33984         Provide additional interfaces and documentation for version-etc
33985         module.
33986
33987         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
33988         interfaces.
33989         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
33990         prototypes.
33991
33992 2009-06-24  Bruno Haible  <bruno@clisp.org>
33993
33994         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
33995         HAVE_LIB${NAME} macro.
33996         Reported by Sam Steingold <sds@gnu.org>.
33997
33998 2009-06-23  Simon Josefsson  <simon@josefsson.org>
33999
34000         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34001         needed.
34002
34003 2009-06-21  Bruno Haible  <bruno@clisp.org>
34004
34005         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34006         work.
34007         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34008         together with LIB${NAME}, LTLIB${NAME}.
34009         Reported by Sam Steingold <sds@gnu.org>.
34010
34011 2009-06-20  Jim Meyering  <meyering@redhat.com>
34012
34013         tests: make sc_require_test_exit_idiom more generic
34014         * top/maint.mk (Exit_witness_file): New overridable variable.
34015         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34016         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34017
34018 2009-06-19  Jim Meyering  <meyering@redhat.com>
34019
34020         hash: reverse order of src/dst parameters in an internal interface
34021         * lib/hash.c (transfer_entries): Reverse order of parameters to
34022         put DST before SRC.  Adjust callers.
34023
34024         tests: test-hash: avoid wholesale duplication
34025         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34026         Instead, use a loop and add a single conditional.
34027
34028         tests: test-hash: allow seed selection via a command line argument
34029         * tests/test-hash.c (get_seed): New function.
34030         (main): Use it.
34031
34032 2009-06-19  Eric Blake  <ebb9@byu.net>
34033
34034         hash: avoid memory leak on allocation failure
34035         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34036         failure.  Factor repeated algorithm...
34037         (transfer_entries): ...into new helper routine.
34038         (hash_delete): React to hash_rehash return value.
34039
34040         hash: reduce memory pressure in hash_rehash no-op case
34041         * lib/hash.c (next_prime): Avoid overflow.
34042         (hash_initialize): Factor bucket size computation...
34043         (compute_bucket_size): ...into new helper function.
34044         (hash_rehash): Use new function and open coding to reduce memory
34045         pressure, and avoid a memory leak in USE_OBSTACK code.
34046         Reported by Jim Meyering.
34047
34048 2009-06-18  Eric Blake  <ebb9@byu.net>
34049
34050         hash: make rotation more obvious
34051         * modules/hash (Depends-on): Add bitrotate and stdint.
34052         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34053         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34054         (SIZE_MAX): Rely on headers for definition.
34055         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34056         (raw_hasher): Use rotr_sz.
34057         Suggested by Jim Meyering.
34058
34059         hash: fix memory leak in last patch
34060         * lib/hash.c (hash_rehash): Avoid memory leak.
34061
34062         hash: avoid no-op rehashing
34063         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34064
34065         hash: provide default callback functions
34066         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34067         (hash_initialize): Use them as defaults.
34068         * tests/test-hash.c (main): Test this.
34069
34070         hash: minor optimization
34071         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34072         when possible.
34073         (hash_initialize): Document this promise.
34074         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34075         * tests/test-hash.c (hash_compare_strings): Test this.
34076
34077 2009-06-18  Bruno Haible  <bruno@clisp.org>
34078
34079         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34080         going to be replaced anyway.
34081
34082 2009-06-18  Bruno Haible  <bruno@clisp.org>
34083
34084         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34085         in one place.
34086         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34087         be replaced anyway.
34088
34089 2009-06-18  Eric Blake  <ebb9@byu.net>
34090
34091         hash: check for resize before insertion
34092         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34093         threshold before insertion, so that a pathological hash_rehash
34094         that fills every bucket can still trigger another rehash.
34095
34096 2009-06-18  Jim Meyering  <meyering@redhat.com>
34097
34098         hash-tests: add a loop around the small tests
34099         * tests/test-hash.c (main): Repeat small tests with selected
34100         small initial table sizes.
34101
34102 2009-06-17  Eric Blake  <ebb9@byu.net>
34103
34104         hash: minor cleanups
34105         * lib/hash.h (hash_entry): Make opaque, by moving...
34106         * lib/hash.c (hash_entry): ...here.
34107         (hash_insert): Clarify restrictions on what can be inserted.
34108         (hash_get_next): Clarify when it is safe to remove an element
34109         during traversal.
34110         (check_tuning): Skip verification when tuning is known safe.
34111         (hash_initialize): Clarify restrictions on tuning.
34112
34113 2009-06-17  Jim Meyering  <jim@meyering.net>
34114         and Eric Blake  <ebb9@byu.net>
34115
34116         hash-tests: new module
34117         * modules/hash-tests: New file.
34118         * tests/test-hash.c: New file.
34119
34120 2009-06-17  Eric Blake  <ebb9@byu.net>
34121
34122         strstr-simple: document new module
34123         * MODULES.html.sh: Document new module.
34124
34125         strstr, strcasestr: replace on platforms with broken memchr
34126         * modules/strstr: Split into...
34127         * modules/strstr-simple: ...new module that does not care about
34128         performance, but does care about glibc bug.
34129         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34130         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34131         if platform memchr is broken, per Debian bug 521737.
34132         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34133         memchr.
34134         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34135         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34136         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34137         * modules/mountlist (Depends-on): Add strstr-simple.
34138         * modules/gen-uni-tables (Depends-on): Likewise.
34139         * modules/argz (Depends-on): Add strstr.
34140
34141 2009-06-17  Bruno Haible  <bruno@clisp.org>
34142
34143         * modules/posix_spawn-internal (Depends-on): Add errno.
34144
34145 2009-06-17  Bruno Haible  <bruno@clisp.org>
34146
34147         Define missing ESTALE on Interix 3.5.
34148         * lib/errno.in.h (ESTALE): Assign a value if missing.
34149         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34150         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34151         missing.
34152         * doc/posix-headers/errno.texi: Mention the Interix bug.
34153         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34154
34155 2009-06-15  Eric Blake  <ebb9@byu.net>
34156
34157         memchr, memchr2: add valgrind exception
34158         * lib/memchr.valgrind: New file.
34159         * lib/memchr2.valgrind: New file.
34160         * modules/memchr (Files): Distribute valgrind file.
34161         * modules/memchr2 (Files): Likewise.
34162
34163         docs: memchr is no longer obsolete
34164         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34165         * lib/string.in.h (memchr): Simplify logic.
34166
34167 2009-06-14  Jim Meyering  <meyering@redhat.com>
34168
34169         link-follow: fix the "checking..." message to not mention trailing slash
34170         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34171         never considered trailing slashes.
34172
34173 2009-06-14  Bruno Haible  <bruno@clisp.org>
34174
34175         * m4/memchr.m4: Mention also the bug on IA-64.
34176         * doc/posix-functions/memchr.texi: Likewise.
34177
34178 2009-06-12  Eric Blake  <ebb9@byu.net>
34179
34180         memchr: detect broken x86_64 and alpha implementations
34181         * modules/memchr-tests (Depends-on): Move mmap detection...
34182         * modules/memchr (Depends-on): ...here.
34183         (configure.ac): Set indicator.
34184         * lib/string.in.h (memchr): Declare replacement.
34185         * modules/string (Makefile.am): Trigger replacement.
34186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34187         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34188         bugs.
34189         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34190         * modules/getpagesize (License): Relax license.
34191
34192 2009-06-11  Bruno Haible  <bruno@clisp.org>
34193
34194         * lib/idpriv.h: Add more references.
34195
34196 2009-06-08  Bruno Haible  <bruno@clisp.org>
34197
34198         Tests for module 'idpriv-droptemp'.
34199         * modules/idpriv-droptemp-tests: New file.
34200         * tests/test-idpriv-droptemp.sh: New file.
34201         * tests/test-idpriv-droptemp.su.sh: New file.
34202         * tests/test-idpriv-droptemp.c: New file.
34203
34204         New module 'idpriv-droptemp'.
34205         * lib/idpriv-droptemp.c: New file.
34206         * modules/idpriv-droptemp: New file.
34207
34208 2009-06-08  Bruno Haible  <bruno@clisp.org>
34209
34210         Tests for module 'idpriv-drop'.
34211         * modules/idpriv-drop-tests: New file.
34212         * tests/test-idpriv-drop.sh: New file.
34213         * tests/test-idpriv-drop.su.sh: New file.
34214         * tests/test-idpriv-drop.c: New file.
34215
34216         New module 'idpriv-drop'.
34217         * lib/idpriv.h: New file.
34218         * lib-idpriv-drop.c: New file.
34219         * m4/idpriv.m4: New file.
34220         * modules/idpriv-drop: New file.
34221
34222 2009-06-08  Bruno Haible  <bruno@clisp.org>
34223
34224         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34225         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34226         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34227         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34228         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34229         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34230         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34231
34232 2009-06-08  Eric Blake  <ebb9@byu.net>
34233
34234         test-strstr: use memory fence, when possible
34235         * tests/test-strstr.c (main): Use memory fence, in order to be
34236         more likely to trigger Debian bug 521737.
34237         * modules/strstr-tests (Files): Pull in additional files.
34238
34239         memchr: no longer obsolete, for wider field testing
34240         * modules/memchr (Status, Notice): Delete, this module is no
34241         longer obsolete.
34242         * modules/vasnprintf (Depends-on): Add memchr.
34243
34244 2009-06-07  Jim Meyering  <meyering@redhat.com>
34245
34246         hash: declare some functions with the warn_unused_result attribute
34247         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34248
34249 2009-06-07  Bruno Haible  <bruno@clisp.org>
34250
34251         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34252         Reported by Eric Blake.
34253
34254 2009-06-06  Eric Blake  <ebb9@byu.net>
34255
34256         test-alignof: fix typo with long double
34257         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34258         compiler error.
34259
34260 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34261
34262         Escape non-texinfo { and }s.
34263         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34264         markup error.
34265
34266 2009-06-04  Jim Meyering  <meyering@redhat.com>
34267
34268         gitlog-to-changelog: don't infloop on an empty commit log
34269         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34270         Reported by Boris Petersen <transacid@centerim.org>.
34271
34272 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34273
34274         version-etc: extend for packagers
34275         Add three new configure options, intended for packagers:
34276           --with-packager="packager name"
34277           --with-packager-version="packager-specific version"
34278           --with-packager-bug-reports="packager bug reporting"
34279         An example with coreutils:
34280           $ ./configure \
34281             --with-packager=Gentoo \
34282             --with-packager-bug-report=http://bugs.gentoo.org/ \
34283             --with-packager-version="patchset 1.6"
34284           $ ./src/ls --version | head -n2
34285           ls (GNU coreutils) 7.1-dirty
34286           Packaged by Gentoo (patchset 1.6)
34287         Note that the bug reporting info via --help doesn't show up because
34288         coreutils uses its own custom emit_bug_reporting_address() implementation
34289         in src/system.h.  If it didn't, it'd look like:
34290           $ ./src/ls --help | tail -n4
34291           Report bugs to <bug-coreutils@gnu.org>.
34292           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34293           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34294           General help using GNU software: <http://www.gnu.org/gethelp/>.
34295         * lib/version-etc.c: Print new information, if provided.
34296         * m4/version-etc.m4: New file.
34297         * modules/version-etc (Files): Add m4/version-etc.m4.
34298         (configure.ac): Add gl_VERSION_ETC.
34299
34300 2009-05-31  Bruno Haible  <bruno@clisp.org>
34301
34302         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34303         and 'int64_t'.
34304         * modules/alignof-tests (Dependencies): Add stdint.
34305         Reported by Eric Blake.
34306
34307 2009-05-31  Bruno Haible  <bruno@clisp.org>
34308
34309         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34310         restriction due to compiler bugs.
34311         Reported by Eric Blake.
34312
34313 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34314             Bruno Haible  <bruno@clisp.org>
34315
34316         Fix test-alignof failure.
34317         * lib/alignof.h (alignof_slot): New macro.
34318         (alignof_type): New macro, with the same semantics as the previous
34319         'alignof'.
34320         (alignof): Alias to alignof_slot.
34321         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34322         check that the results are usable as constant expressions.
34323
34324 2009-05-31  Bruno Haible  <bruno@clisp.org>
34325
34326         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34327         * tests/test-memchr.c (main): Check that memchr does not read past the
34328         first occurrence of the byte.
34329         * tests/test-strstr.c (main): Update comment.
34330         Suggested by Eric Blake.
34331
34332 2009-05-30  Bruno Haible  <bruno@clisp.org>
34333
34334         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34335         detail how to use dumpbin.
34336         Reported by David Byron <dbyron@dbyron.com>.
34337
34338 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34339
34340         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34341
34342 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34343
34344         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34345
34346 2009-05-28  Bruno Haible  <bruno@clisp.org>
34347
34348         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34349         build-aux/ files.
34350
34351 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34352
34353         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34354
34355 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34356
34357         * gnulib-tool (sed_transform_main_lib_file)
34358         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34359         regexps.
34360
34361 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34362
34363         * tests/test-strstr.c: Add another self-test.
34364         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34365         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34366
34367 2009-05-23  Bruno Haible  <bruno@clisp.org>
34368
34369         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34370         change.
34371
34372 2009-05-21  Bruno Haible  <bruno@clisp.org>
34373
34374         Simplify use of mode_t varargs.
34375         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34376         uses 'mode_t' or 'int'.
34377         * lib/openat.c (openat): Likewise.
34378         * lib/open-safer.c (open_safer): Likewise.
34379         * m4/mode_t.m4: New file.
34380         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34381         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34382         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34383         * modules/open (Files): Add m4/mode_t.m4.
34384         * modules/openat (Files): Likewise.
34385         * modules/fcntl-safer (Files): Likewise.
34386         Suggested by Eric Blake.
34387
34388 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34389
34390         * doc/glibc-functions/fallocate.texi: New file.
34391         * doc/gnulib.texi: Include it.
34392
34393 2009-05-21  Eric Blake  <ebb9@byu.net>
34394             Bruno Haible  <bruno@clisp.org>
34395
34396         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34397         invocations.
34398         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34399
34400 2009-05-21  Eric Blake  <ebb9@byu.net>
34401             Bruno Haible  <bruno@clisp.org>
34402
34403         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34404         include_next. Fix of 2008-11-20 commit.
34405         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34406         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34407         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34408         NEXT_MATH_H.
34409         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34410         instead of NEXT_MATH_H.
34411
34412 2009-05-21  Bruno Haible  <bruno@clisp.org>
34413
34414         Avoid redefinition warnings for SIZE_MAX.
34415         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34416         Reported by Simon Josefsson.
34417
34418 2009-05-21  Bruno Haible  <bruno@clisp.org>
34419
34420         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34421         AC_CACHE_VAL.
34422
34423 2009-05-20  Bruno Haible  <bruno@clisp.org>
34424
34425         Make zeroptr.h work on mingw.
34426         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34427         mprotect.
34428         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34429         * modules/memchr2-tests (configure.ac): Likewise.
34430         * modules/memcmp-tests (configure.ac): Likewise.
34431         * modules/memmem-tests (configure.ac): Likewise.
34432         * modules/memrchr-tests (configure.ac): Likewise.
34433         Reported by Simon Josefsson.
34434
34435 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34436
34437         * tests/test-glob.c: Include string.h for strcmp prototype.
34438
34439 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34440
34441         * modules/getdelim (Depends-on): Add explicit stdint, although it
34442         was implicitly already pulled in via realloc-posix.
34443         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34444
34445 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34446
34447         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34448         G. Christensen" <tgc@jupiterrise.com>.
34449         * m4/sys_socket_h.m4: Check for sa_family_t.
34450         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34451         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34452         * tests/test-sys_socket.c: Check that sa_family_t works.
34453
34454 2009-05-18  Eric Blake  <ebb9@byu.net>
34455
34456         maint.mk: allow gnulib_dir in VPATH build
34457         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34458
34459 2009-05-15  Jim Meyering  <meyering@redhat.com>
34460
34461         maint.mk: Give gnulib_dir a default definition.
34462         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34463         Thus, most packages no longer need to specify this variable in cfg.mk
34464
34465 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34466
34467         rename.m4: fix typos that would make non-mingw cross-configure fail
34468         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34469
34470 2009-05-13  Eric Blake  <ebb9@byu.net>
34471
34472         mmap-anon: avoid out-of-order autoconf expansion
34473         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34474         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34475         * modules/memchr-tests (Depends-on): Add extensions.
34476         * modules/memchr2-tests (Depends-on): Add extensions.
34477         * modules/memcmp-tests (Depends-on): Add extensions.
34478         * modules/memmem-tests (Depends-on): Add extensions.
34479         * modules/memrchr-tests (Depends-on): Add extensions.
34480
34481 2009-05-13  Bruno Haible  <bruno@clisp.org>
34482
34483         Make some tests ISO C 99 compliant.
34484         * tests/zerosize-ptr.h: New file.
34485         * tests/test-memchr.c: Include zerosize-ptr.h.
34486         (main): Use a zero-size object pointer instead of NULL.
34487         * tests/test-memchr2.c: Include zerosize-ptr.h.
34488         (main): Use a zero-size object pointer instead of NULL.
34489         * tests/test-memcmp.c: Include zerosize-ptr.h.
34490         (main): Use a zero-size object pointer instead of NULL.
34491         * tests/test-memmem.c: Include zerosize-ptr.h.
34492         (main): Use a zero-size object pointer instead of NULL.
34493         * tests/test-memrchr.c: Include zerosize-ptr.h.
34494         (main): Use a zero-size object pointer instead of NULL.
34495         * modules/memchr-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/memchr2-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/memcmp-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         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34508         m4/mmap-anon.m4.
34509         (Depends-on): Add getpagesize.
34510         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34511         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34512         m4/mmap-anon.m4.
34513         (Depends-on): Add getpagesize.
34514         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34515
34516 2009-05-12  Bruno Haible  <bruno@clisp.org>
34517
34518         Tests for module 'alignof'.
34519         * modules/alignof-tests: New file.
34520         * tests/test-alignof.c: New file.
34521
34522 2009-05-12  Bruno Haible  <bruno@clisp.org>
34523
34524         Fix alignof macro.
34525         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34526         vendor compilers that are always correct.
34527
34528 2009-05-12  Bruno Haible  <bruno@clisp.org>
34529
34530         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34531         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34532         not whether its fully works.
34533
34534 2009-05-12  Bruno Haible  <bruno@clisp.org>
34535
34536         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34537
34538 2009-05-12  Jim Meyering  <meyering@redhat.com>
34539
34540         * top/maint.mk: Adjust backslash alignment.
34541
34542 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34543
34544         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34545
34546 2009-05-11  Eric Blake  <ebb9@byu.net>
34547
34548         argp: avoid undefined behavior
34549         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34550         macros.
34551
34552 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34553
34554         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34555         user.name to prevent git commit from complaining.
34556
34557 2009-05-10  Bruno Haible  <bruno@clisp.org>
34558
34559         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34560         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34561         it rewrites every file name only once.
34562         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34563
34564 2009-05-08  Bruno Haible  <bruno@clisp.org>
34565
34566         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34567         instead of 'max'.
34568
34569 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34570
34571         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34572         sockaddr_storage test.
34573
34574 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34575
34576         * modules/sys_socket (Makefile.am): Substitute
34577         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34578         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34579         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34580         * tests/test-sys_socket.c: Check sockaddr_storage.
34581
34582 2009-05-08  Bruno Haible  <bruno@clisp.org>
34583
34584         New module 'alignof'.
34585         * lib/alignof.h: New file.
34586         * modules/alignof: New file.
34587
34588 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34589             Bruno Haible  <bruno@clisp.org>
34590
34591         Fix test-file-has-acl on FreeBSD.
34592         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34593         mask is implicitly added.
34594         * tests/test-file-has-acl.c: Include <signal.h>.
34595         (main): Terminate the test after 5 seconds.
34596         * modules/acl-tests (configure.ac): Check for alarm function.
34597
34598 2009-05-04  Bruno Haible  <bruno@clisp.org>
34599
34600         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34601         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34602         * modules/errno (configure.ac): Drop AC_REQUIRE.
34603         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34604         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34605
34606 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34607
34608         * modules/glob-tests: New module.
34609         * tests/test-glob.c: Add.
34610
34611 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34612
34613         * modules/fnmatch-tests: New module.
34614         * tests/test-fnmatch.c: Add.
34615
34616 2009-05-04  Eric Blake  <ebb9@byu.net>
34617
34618         maint: make the new no-submodule-changes rule VPATH-safe
34619         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34620
34621 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34622             Bruno Haible  <bruno@clisp.org>
34623
34624         acl: Fix infinite loop on FreeBSD.
34625         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34626         of return value from acl_get_entry.
34627         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34628         Likewise.
34629
34630 2009-05-03  Bruno Haible  <bruno@clisp.org>
34631
34632         * lib/acl-internal.h (acl_entries): Clarify return value.
34633         * lib/acl_entries.c (acl_entries): Likewise.
34634
34635 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34636
34637         Bug fix in acl module.
34638         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34639
34640 2009-05-03  Bruno Haible  <bruno@clisp.org>
34641
34642         Create gperf-generated file in the source dir, not in the build dir.
34643         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34644         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34645         * modules/unicase/locale-language (unicase/locale-languages.h):
34646         Likewise.
34647         * modules/unicase/special-casing (unicase/special-casing-table.h):
34648         Likewise.
34649         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34650         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34651         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34652         Reported by Ralf Wildenhues.
34653
34654 2009-05-03  Bruno Haible  <bruno@clisp.org>
34655
34656         * modules/fnmatch (Description, configure.ac): Taken from
34657         fnmatch-posix.
34658         * modules/fnmatch-posix: Turn into a symbolic reference to the
34659         'fnmatch' module, and deprecate.
34660         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34661
34662 2009-05-03  Bruno Haible  <bruno@clisp.org>
34663
34664         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34665         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34666         Reported by Ralf Wildenhues.
34667
34668 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34669
34670         * m4/fnmatch.m4: Fix fnmatch re-define.
34671
34672 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34673
34674         priv-set: new module and tests; adapt write-any-file
34675         * lib/priv-set.c: New file.
34676         * lib/priv-set.h: New file.
34677         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34678         * lib/write-any-file.c: Simplify by using priv-set module.
34679         * m4/priv-set.m4: New file.
34680         * modules/priv-set: New file.
34681         * modules/unlinkdir: Add dependency on priv-set module.
34682         * modules/write-any-file: Likewise.
34683
34684         Tests for module 'priv-set'.
34685         * modules/priv-set-tests: New file.
34686         * tests/test-priv-set.c: New file.
34687
34688 2009-05-03  Jim Meyering  <meyering@redhat.com>
34689             Bruno Haible  <bruno@clisp.org>
34690
34691         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34692         use the converted UTF-8 variant of the name instead.
34693
34694 2009-05-03  Jim Meyering  <meyering@redhat.com>
34695
34696         tests: tighten some getdate tests
34697         * tests/test-getdate.c (main): Tighten tests: require equality,
34698         not just greater than.  Set TZ envvar to UTC0.
34699
34700 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34701
34702         getdate: correctly interpret "next monday" when run on a Monday
34703         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34704         that e.g., "next tues" (when run on a tuesday) results in a date
34705         that is one week in the future, and not today's date.
34706         I.e., add a week when the wday is the same as the current one.
34707         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34708         and earlier by Martin Bernreuther and Jan Minář.
34709         * tests/test-getdate.c (main): Check that "next DAY" is always in
34710         the future and that "last DAY" is always in the past.
34711
34712 2009-05-02  Jim Meyering  <meyering@redhat.com>
34713
34714         build: ensure that a release build fails when a submodule is unclean
34715         * top/maint.mk (no-submodule-changes): New rule.
34716         (alpha beta major): Depend on it.
34717
34718 2009-05-02  Bruno Haible  <bruno@clisp.org>
34719
34720         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34721         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34722         shell variable gl_fnmatch_required to detect which variant is
34723         requested.
34724         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34725         gl_FUNC_FNMATCH_POSIX.
34726         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34727         exclude fnmatch-posix.
34728
34729 2009-05-02  Bruno Haible  <bruno@clisp.org>
34730
34731         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34732         * modules/mbsrtowcs (License): Change to LGPLv2+.
34733         * modules/strnlen1 (License): Likewise.
34734         Reported by Simon Josefsson.
34735
34736 2009-05-02  Bruno Haible  <bruno@clisp.org>
34737
34738         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34739         "cross".
34740         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34741         gnulib-tool was called with option --source-base=lib.
34742
34743 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34744
34745         Use automake *-local hooks without commands, for extensibility.
34746         * modules/localcharset (Makefile.am): Rename install-exec-local
34747         rule to install-exec-localcharset, and make it a prerequisite of
34748         install-exec-local.  Likewise, rename the uninstall-local rule to
34749         uninstall-localcharset, and make it a prerequisite of the former.
34750
34751 2009-05-01  Bruno Haible  <bruno@clisp.org>
34752
34753         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34754         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34755         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34756         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34757         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34758         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34759         m4/locale-zh.m4, m4/codeset.m4.
34760
34761         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34762         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34763         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34764         m4/locale-zh.m4.
34765
34766         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34767         REPLACE_WCRTOMB if mbstate_t must be replaced.
34768         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34769         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34770
34771 2009-05-01  Bruno Haible  <bruno@clisp.org>
34772
34773         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34774         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34775         dngettext, dcngettext, textdomain, bindtextdomain,
34776         bind_textdomain_codeset): Undefine before redefining.
34777
34778 2009-04-30  Bruno Haible  <bruno@clisp.org>
34779
34780         Fix bug introduced on 2009-04-25.
34781         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34782         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34783         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34784         is defined.
34785         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34786         is defined.
34787         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34788         is defined.
34789         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34790
34791 2009-04-28  Bruno Haible  <bruno@clisp.org>
34792
34793         Comment tweaks.
34794         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34795         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34796         * lib/unicase.h (u*_casexfrm): Likewise.
34797         Reported by Paolo Bonzini.
34798
34799 2009-04-28  Bruno Haible  <bruno@clisp.org>
34800
34801         Fix a compilation error.
34802         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34803         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34804         Reported by Jim Meyering.
34805
34806 2009-04-27  Bruno Haible  <bruno@clisp.org>
34807
34808         New module 'libunistring'.
34809         * modules/libunistring: New file.
34810         * m4/libunistring.m4: New file.
34811         * MODULES.html.sh (Unicode string functions): Add it.
34812
34813 2009-04-27  Eric Blake  <ebb9@byu.net>
34814
34815         maint.mk: allow package-specific header to provide <config.h>
34816         * top/maint.mk (sc_require_config_h): New variable.
34817         (sc_require_config_h, sc_require_config_h_first): Use it.
34818
34819 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34820
34821         * top/maint.mk (sc_avoid_if_before_free): Except
34822         useless-if-before-free script.
34823
34824 2009-04-27  Eric Blake  <ebb9@byu.net>
34825
34826         maintainer-makefile: depend on all required helper scripts
34827         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34828         useless-if-before-free.
34829         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34830         version, rather than assuming gnulib checkout is available.
34831         Reported by Simen Josefsson.
34832
34833 2009-04-26  Bruno Haible  <bruno@clisp.org>
34834
34835         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34836         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34837         "../" or "..".
34838
34839 2009-04-26  Bruno Haible  <bruno@clisp.org>
34840
34841         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34842         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34843         AC_LIB_HAVE_LINKFLAGS.
34844
34845 2009-04-26  Bruno Haible  <bruno@clisp.org>
34846
34847         Simplify calling convention of u*_conv_from_encoding.
34848         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34849         u32_conv_from_encoding): Expect a resultbuf argument and return the
34850         result directly as a pointer.
34851         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34852         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34853         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34854         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34855         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34856         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34857         Update.
34858         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34859         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34860         * lib/vasnprintf.c (VASNPRINTF): Update.
34861         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34862         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34863         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34864         * NEWS: Mention the change.
34865
34866 2009-04-26  Bruno Haible  <bruno@clisp.org>
34867
34868         Simplify calling convention of u*_conv_to_encoding.
34869         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34870         u32_conv_to_encoding): Expect a resultbuf argument and return the
34871         result directly as a pointer.
34872         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34873         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34874         freeing scaled_offsets if mem_iconveha failed.
34875         * lib/unicase/u-casexfrm.h (FUNC): Update.
34876         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34877         * lib/vasnprintf.c (VASNPRINTF): Update.
34878         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34879         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34880         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34881         * NEWS: Mention the change.
34882
34883 2009-04-26  Bruno Haible  <bruno@clisp.org>
34884
34885         Avoid test failures on AIX and OSF/1.
34886         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34887         malloc(0).
34888         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34889         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34890         Likewise.
34891         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34892         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34893         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34894         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34895         * doc/posix-functions/malloc.texi: Document the portability problem
34896         related to malloc(0).
34897
34898 2009-04-26  Bruno Haible  <bruno@clisp.org>
34899
34900         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34901         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34902         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34903
34904 2009-04-25  Bruno Haible  <bruno@clisp.org>
34905
34906         Avoid link error when creating a namespace clean library.
34907         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34908         as macro with arguments if already defined as an alias.
34909         * lib/signbitf.c (gl_signbitf): Don't undefine.
34910         * lib/signbitd.c (gl_signbitd): Don't undefine.
34911         * lib/signbitl.c (gl_signbitl): Don't undefine.
34912
34913 2009-04-25  Jim Meyering  <meyering@redhat.com>
34914
34915         vc-list-files: fix another quoting bug
34916         * build-aux/vc-list-files: Avoid sed backslash expansion
34917         of pathological directory names.
34918
34919 2009-04-25  Eric Blake  <ebb9@byu.net>
34920
34921         vc-list-files: fix shell quoting error
34922         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34923         timestamp.
34924
34925 2009-04-25  Jim Meyering  <meyering@redhat.com>
34926
34927         vc-list-files: restore lost functionality with subdir argument
34928         * build-aux/vc-list-files: When given a non-"." sub-directory
34929         argument, substitute the $dir/ prefix back onto each resulting name.
34930         Otherwise, coreutils' root_tests check would fail.
34931
34932 2009-04-24  Eric Blake  <ebb9@byu.net>
34933
34934         vc-list-files: ignore git symlinks
34935         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34936         than ls-files, to ignore git symlinks.
34937
34938         maint.mk: import improvements from m4
34939         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34940         (move_if_change): Delete unused macro.
34941         (news-date-check, vc-diff-check): Support VPATH builds.
34942         (announcement): Likewise.  Split --bootstrap-tools list...
34943         (boostrap-tools): ...into separate list, which can be overridden
34944         in cfg.mk.
34945         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34946         requiring dependency on useless-if-before-free module.
34947         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
34948         Support VPATH builds.
34949
34950 2009-04-24  Jim Meyering  <meyering@redhat.com>
34951
34952         maint.mk: remove coreutils-specific rules and variables
34953         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
34954         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
34955         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
34956
34957         maint.mk: remove obsolete rule
34958         * top/maint.mk (rel-check): Remove rule.
34959         (WGET, WGETFLAGS): Remove now-unused variables.
34960
34961 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34962
34963         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
34964         consistency.
34965
34966         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
34967         '$(PATH_SEPARATOR)' instead of ':'.
34968
34969 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34970
34971         * lib/getopt1.c (main): Use 'const' for static array.
34972
34973 2009-04-24  Simon Josefsson  <simon@josefsson.org>
34974
34975         * top/maint.mk: Sync with coreutils.
34976         * NEWS: Explain incompatibilities.
34977
34978 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34979             Bruno Haible  <bruno@clisp.org>
34980
34981         Fix cross-compilation results.
34982         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
34983         statement, as third argument of AC_TRY_RUN.
34984         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
34985         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
34986         Likewise.
34987         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
34988         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
34989         Likewise.
34990         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
34991         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
34992         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
34993
34994 2009-04-20  Bruno Haible  <bruno@clisp.org>
34995
34996         Avoid test failure on mingw.
34997         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
34998
34999 2009-04-20  Bruno Haible  <bruno@clisp.org>
35000
35001         Avoid compilation error on mingw.
35002         * modules/localename-tests (Depends-on): Add locale.
35003
35004 2009-04-19  Bruno Haible  <bruno@clisp.org>
35005
35006         Support for building a shared library on Windows platforms.
35007         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35008         (main): Test the presence of UNINORM_NFC here.
35009         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35010         (main): Test the presence of UNINORM_NFD here.
35011         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35012         (main): Test the presence of UNINORM_NFKC here.
35013         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35014         (main): Test the presence of UNINORM_NFKD here.
35015
35016 2009-04-19  Bruno Haible  <bruno@clisp.org>
35017
35018         Avoid a compiler warning.
35019         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35020         Change type of variable 'sequence'.
35021
35022 2009-04-19  Bruno Haible  <bruno@clisp.org>
35023
35024         * modules/configmake (Makefile.am): When the contents of configmake.h
35025         does not change, arrange to preserve its modification time.
35026
35027 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35028
35029         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35030         gettext domain.
35031
35032 2009-04-16  Jim Meyering  <meyering@redhat.com>
35033
35034         useless-if-before-free: improve conversion code
35035         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35036         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35037
35038 2009-04-14  Bruno Haible  <bruno@clisp.org>
35039
35040         * modules/fcntl (Depends-on): Add extensions.
35041         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35042
35043 2009-04-12  Ben Pfaff  <blp@gnu.org>
35044
35045         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35046         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35047
35048 2009-03-20  Ben Pfaff  <blp@gnu.org>
35049
35050         Make rename replace existing destinations on Windows.
35051         * m4/rename.m4: Add test for Mingw.
35052         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35053         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35054         * doc/posix-functions/rename.texi: Document.
35055
35056 2009-04-10  Bruno Haible  <bruno@clisp.org>
35057
35058         New include file "iconveh.h".
35059         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35060         * lib/striconveh.h: Include it.
35061         (enum iconv_ilseq_handler): Remove definition.
35062         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35063         striconveh.h.
35064         * lib/striconveha.c: Include striconveh.h.
35065         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35066         * modules/striconveh (Files): Add lib/iconveh.h.
35067         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35068         lib/striconveh.h.
35069
35070 2009-04-10  Bruno Haible  <bruno@clisp.org>
35071
35072         * lib/uniconv.h: Update comment.
35073
35074 2009-04-10  Bruno Haible  <bruno@clisp.org>
35075
35076         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35077         always.
35078         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35079         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35080         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35081         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35082         "unistring-notinline.h", so that the function gets defined always.
35083         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35084         * lib/unistr/u8-uctomb.c: Likewise.
35085         * lib/unistr/u16-mbtouc.c: Likewise.
35086         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35087         * lib/unistr/u16-uctomb.c: Likewise.
35088         * lib/unistr/u32-mbtouc.c: Likewise.
35089         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35090         * lib/unistr/u32-uctomb.c: Likewise.
35091
35092 2009-04-10  Bruno Haible  <bruno@clisp.org>
35093
35094         Mark 'utime' obsolete.
35095         * modules/utime (Status, Notice): New sections.
35096         Suggested by Jim Meyering.
35097
35098         Fix cross-compile guess for utime test.
35099         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35100         autoconf.
35101         * doc/posix-functions/utime.texi: Give more precisions.
35102         Reported by Jan <ipif@ymail.com>.
35103
35104 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35105
35106         filevercmp: correct today's change
35107         * lib/filevercmp.c: Also handle coreutils' test inputs.
35108         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35109
35110         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35111         for reporting it.
35112         * lib/filevercmp.c: Special handle for "", "." and "..".
35113         * tests/test-filevercmp.c: Enlarge the set suite.
35114
35115 2009-04-07  Jim Meyering  <meyering@redhat.com>
35116
35117         useless-if-before-free: show how to remove braced useless free, too
35118         * build-aux/useless-if-before-free: still only in a comment, though.
35119
35120 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35121
35122         maint.mk: import changes to syntax-check macros from coreutils
35123         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35124         Use them in the relevant macros.
35125
35126 2009-04-06  Bruno Haible  <bruno@clisp.org>
35127
35128         Fix unportable use of bit-fields.
35129         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35130         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35131         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35132
35133 2009-04-06  Bruno Haible  <bruno@clisp.org>
35134
35135         Avoid test failures on AIX and OSF/1.
35136         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35137         that malloc(0) = NULL.
35138         * tests/unicase/test-u8-tolower.c (check): Likewise.
35139         * tests/unicase/test-u8-totitle.c (check): Likewise.
35140         * tests/unicase/test-u8-toupper.c (check): Likewise.
35141         * tests/unicase/test-u16-casefold.c (check): Likewise.
35142         * tests/unicase/test-u16-tolower.c (check): Likewise.
35143         * tests/unicase/test-u16-totitle.c (check): Likewise.
35144         * tests/unicase/test-u16-toupper.c (check): Likewise.
35145         * tests/unicase/test-u32-casefold.c (check): Likewise.
35146         * tests/unicase/test-u32-tolower.c (check): Likewise.
35147         * tests/unicase/test-u32-totitle.c (check): Likewise.
35148         * tests/unicase/test-u32-toupper.c (check): Likewise.
35149         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35150         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35151         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35152         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35153         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35154         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35155         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35156         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35157         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35158         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35159         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35160         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35161
35162 2009-04-05  Bruno Haible  <bruno@clisp.org>
35163
35164         Work around an autoconf limitation.
35165         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35166         comment line if it would be longer than 3 KB.
35167
35168 2009-04-05  Bruno Haible  <bruno@clisp.org>
35169
35170         Avoid test failure with libiconv-1.13.
35171         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35172         of the expected test results.
35173
35174 2009-04-05  Bruno Haible  <bruno@clisp.org>
35175
35176         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35177         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35178         that it should be installed.
35179
35180 2009-04-05  Bruno Haible  <bruno@clisp.org>
35181
35182         * gnulib-tool: New option --copy-file.
35183         (func_usage): Document it.
35184         (func_dest_tmpfilename): Moved out of func_import.
35185         (func_add_file, func_update_file): New functions, extracted from
35186         func_import.
35187         (func_import): Update.
35188
35189 2009-04-05  Karl Berry  <karl@gnu.org>
35190
35191         * README: prominently mention gnulib-tool.
35192         Rearrange sections so getting the code is near the top.
35193
35194 2009-04-05  Bruno Haible  <bruno@clisp.org>
35195
35196         * lib/unicase.h: Mention u*_cmp2.
35197         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35198         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35199         * lib/unicase/ulc-casecmp.c: Likewise.
35200         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35201         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35202         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35203         unistr/u8-cmp.
35204         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35205         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35206         unistr/u16-cmp.
35207         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35208         unistr/u32-cmp.
35209
35210         * lib/uninorm.h: Mention u*_cmp2.
35211         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35212         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35213         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35214         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35215         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35216         unistr/u8-cmp.
35217         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35218         unistr/u16-cmp.
35219         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35220         unistr/u32-cmp.
35221
35222         New module 'unistr/u32-cmp2'.
35223         * lib/unistr/u32-cmp2.c: New file.
35224         * modules/unistr/u32-cmp2: New file.
35225
35226         New module 'unistr/u16-cmp2'.
35227         * lib/unistr/u16-cmp2.c: New file.
35228         * modules/unistr/u16-cmp2: New file.
35229
35230         New module 'unistr/u8-cmp2'.
35231         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35232         * lib/unistr/u8-cmp2.c: New file.
35233         * lib/unistr/u-cmp2.h: New file.
35234         * modules/unistr/u8-cmp2: New file.
35235
35236 2009-04-05  Bruno Haible  <bruno@clisp.org>
35237
35238         * lib/unictype.h (uc_property_is_valid): New macro.
35239         * tests/unictype/test-pr_byname.c (main): Use it.
35240
35241         * lib/unistr.h: Doc fixes.
35242         * lib/uniconv.h: Doc fixes.
35243         * lib/unictype.h: Doc fixes.
35244
35245 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35246
35247         Port coreutils 7.2 to Solaris 8.
35248
35249         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35250         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35251         for Solaris 8.  This is a bit of a hack, as it means it's the
35252         caller's responsibility to add -lnsl if needed, but most likely it
35253         won't be needed since only getaddrinfo uses this and getaddrinfo
35254         isn't needed on Solaris 8.
35255
35256         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35257         problem to Solaris 8 encountered with coreutils 7.2, which
35258         resulted in a message "fnmatch.c:292: warning: passing argument 4
35259         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35260         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35261
35262 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35263
35264         * m4/ld-version-script.m4: Add FIXME comment.
35265
35266 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35267
35268         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35269         SOVERSION variable.
35270
35271 2009-04-02  Bruno Haible  <bruno@clisp.org>
35272
35273         * Makefile (info, html, dvi, pdf): Combine the rules.
35274         Suggested by Jim Meyering.
35275
35276 2009-04-01  Bruno Haible  <bruno@clisp.org>
35277
35278         * Makefile (info, html, dvi, pdf): New targets.
35279         Reported by Reuben Thomas <rrt@sc3d.org>.
35280
35281 2009-04-01  Bruno Haible  <bruno@clisp.org>
35282
35283         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35284         can be put into PATH.
35285         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35286
35287 2009-04-01  Bruno Haible  <bruno@clisp.org>
35288
35289         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35290
35291 2009-04-01  Bruno Haible  <bruno@clisp.org>
35292
35293         Rename module 'visibility'.
35294         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35295         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35296         * doc/gnulib.texi: Update.
35297         * MODULES.html.sh (Misc): Update.
35298         * NEWS: Mention the change.
35299
35300 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35301
35302         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35303         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35304         Eric Blake <ebb9@byu.net> for review.
35305         * MODULES.html.sh: Add lib-msvc-compat.
35306         * doc/gnulib.texi: Link to new section.
35307         * m4/ld-output-def.m4: New file.
35308         * doc/ld-output-def.texi: New file.
35309
35310 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35311
35312         Rename ld-version-script to lib-symbol-versions.  Suggested by
35313         Bruno Haible <bruno@clisp.org>.
35314         * modules/ld-version-script: Renamed to lib-symbol-versions.
35315         * doc/ld-version-script.texi: Fix module name.
35316         * MODULES.html.sh: Add lib-symbol-versions.
35317
35318 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35319
35320         * modules/u64-tests: New file.
35321         * tests/test-u64.c: New file.
35322
35323 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35324
35325         * MODULES.html.sh: Mention u64.
35326         * modules/u64: New module.
35327         * modules/crypto/sha512: Depend on u64 module instead of providing
35328         u64.h.
35329
35330 2009-03-27  Eric Blake  <ebb9@byu.net>
35331
35332         test-strerror: make debugging EAI_SYSTEM easier
35333         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35334         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35335         failure was EAI_SYSTEM.
35336
35337 2009-03-25  Bruno Haible  <bruno@clisp.org>
35338
35339         Fix a problem with --enable-relocatable on Solaris 7.
35340         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35341         since 2008-02-24.
35342
35343 2009-03-25  Eric Blake  <ebb9@byu.net>
35344
35345         test-sockets: avoid gcc warning
35346         * tests/test-sockets.c (main): Silence compiler warning.
35347
35348 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35349
35350         New modules nproc, pthread, contributed by Glen Lenker.
35351
35352         * MODULES.html.sh: Add pthread, nproc.
35353         * lib/nproc.c: New file.
35354         * lib/nproc.h: New file.
35355         * lib/pthread.in.h: New file.
35356         * m4/pthread.m4: New file.
35357         * modules/nproc: New file.
35358         * modules/pthread: New file.
35359
35360 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35361
35362         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35363         New variable.
35364
35365 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35366
35367         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35368         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35369         * tests/test-filevercmp.c: Add tests for backup suffixes.
35370
35371 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35372
35373         * modules/stdlib (Depends-on): Add stdint, needed when defining
35374         struct random_data on, for example, HP-UX 10.20.  Reported by
35375         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35376
35377 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35378
35379         * lib/readline.c (readline): Call fflush on stdout after printing
35380         prompt.
35381
35382 2009-03-20  Bruno Haible  <bruno@clisp.org>
35383
35384         Remove dependency from 'close' module to -lws2_32 on native Windows.
35385         * lib/close-hook.h: New file.
35386         * lib/close-hook.c: New file.
35387         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35388         w32sock.h.
35389         (_gl_close_fd_maybe_socket): Remove function.
35390         (rpl_close): Invoke execute_all_close_hooks instead of
35391         _gl_close_fd_maybe_socket.
35392         * lib/sockets.c: Include close-hook.h, w32sock.h.
35393         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35394         (close_sockets_hook): New variable.
35395         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35396         (gl_sockets_cleanup): Unregister it.
35397         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35398         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35399         * modules/close-hook: New file.
35400         * modules/close (Files): Remove lib/w32sock.h.
35401         (Depends-on): Add close-hook.
35402         (Link): Remove section.
35403         * modules/sockets (Files): Add lib/w32sock.h.
35404         (Depends-on): Add close-hook.
35405         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35406         invocation.
35407         * NEWS: Mention that LIB_CLOSE is gone.
35408
35409 2009-03-23  Eric Blake  <ebb9@byu.net>
35410
35411         signal-tests: test previous patch
35412         * tests/test-signal.c: New file.
35413         * modules/signal-tests: Likewise.
35414
35415         signal.h: always support 'volatile sig_atomic_t'
35416         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35417         (gl_SIGNAL_H_DEFAULTS): Add a default.
35418         * modules/signal (Makefile.am): Substitute if needed.
35419         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35420         users can blindly add volatile.
35421         * doc/posix-headers/signal.texi (signal.h): Document it.
35422         Reported by Matthew Woehlke.
35423
35424 2009-03-23  Jim Meyering  <meyering@redhat.com>
35425
35426         pathmax: PATH_MAX: use pathconf only when available
35427         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35428         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35429         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35430         This avoids a link failure in a PSP cross-compilation environment
35431         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35432
35433         * lib/vasnprintf.c (divide): Fix typo in comment.
35434
35435 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35436
35437         * gnulib-tool (func_filter_filelist): Fix comment.
35438
35439 2009-03-20  Bruno Haible  <bruno@clisp.org>
35440
35441         Make sockets.h self-contained.
35442         * lib/sockets.c: Include sockets.h first.
35443         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35444
35445 2009-03-19  Eric Blake  <ebb9@byu.net>
35446
35447         doc: mention more functions added in cygwin 1.7.0
35448         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35449         addition.
35450         * doc/posix-functions/log2f.texi: Likewise.
35451
35452 2009-03-19  Jim Meyering  <meyering@redhat.com>
35453
35454         fsusage: avoid syntax error due to statement-before-declaration
35455         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35456         after all declarations.  Reported by Matthew Woehlke in
35457         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35458
35459 2009-03-18  Eric Blake  <ebb9@byu.net>
35460
35461         build-aux/compile: sync from automake
35462         * build-aux/compile: New file, from automake.
35463         * config/srclist.txt: Mention build-aux/compile.
35464
35465 2009-03-17  Bruno Haible  <bruno@clisp.org>
35466
35467         * lib/git-merge-changelog.c: Fix typo in comment.
35468         Reported by Reuben Thomas <rrt@sc3d.org>.
35469
35470 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35471
35472         * m4/regex.m4: update and improve help for
35473         --without-included-regex.
35474
35475 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35476
35477         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35478         failure on missing include files.
35479
35480 2009-03-17  Eric Blake  <ebb9@byu.net>
35481
35482         doc: mention more functions added in cygwin 1.7.0
35483         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35484         addition.
35485         * doc/posix-functions/fwscanf.texi: Likewise.
35486         * doc/posix-functions/swprintf.texi: Likewise.
35487         * doc/posix-functions/swscanf.texi: Likewise.
35488         * doc/posix-functions/vfwprintf.texi: Likewise.
35489         * doc/posix-functions/vfwscanf.texi: Likewise.
35490         * doc/posix-functions/vswprintf.texi: Likewise.
35491         * doc/posix-functions/vswscanf.texi: Likewise.
35492         * doc/posix-functions/vwprintf.texi: Likewise.
35493         * doc/posix-functions/vwscanf.texi: Likewise.
35494         * doc/posix-functions/wcscasecmp.texi: Likewise.
35495         * doc/posix-functions/wcsdup.texi: Likewise.
35496         * doc/posix-functions/wcsftime.texi: Likewise.
35497         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35498         * doc/posix-functions/wprintf.texi: Likewise.
35499         * doc/posix-functions/wscanf.texi: Likewise.
35500         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35501
35502 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35503
35504         maint.mk: really add $(AM_MAKEFLAGS)
35505         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35506         was inadvertently omitted in the last commit.
35507         Spotted by Bruno Haible.
35508
35509         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35510         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35511         $(AM_MAKEFLAGS)' rather than plain `make'.
35512
35513         gnulib-tool: execute $MAKE not make
35514         * gnulib-tool: Default $MAKE to 'make'.
35515         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35516         than make.  Initialize $MAKE in the do-autobuild script.
35517
35518         gnulib-tool: use $MAKE not make in generated files
35519         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35520         make, in generated files.  Initialize $MAKE in the do-autobuild
35521         script.
35522
35523         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35524
35525         GNUmakefile: disable parallelism only for multiple, recursive targets
35526         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35527         additions in the Makefile.
35528         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35529         by Automake.
35530         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35531         are listed on the command line and at least one of them is
35532         listed in $(ALL_RECURSIVE_TARGETS).
35533
35534 2009-03-14  Bruno Haible  <bruno@clisp.org>
35535
35536         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35537         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35538         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35539         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35540         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35541         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35542         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35543         unistr/u8-uctomb.
35544         * modules/unistr/u8-strchr (Depends-on): Likewise.
35545         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35546         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35547         unistr/u16-uctomb.
35548         * modules/unistr/u16-strchr (Depends-on): Likewise.
35549         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35550
35551 2009-03-12  Bruno Haible  <bruno@clisp.org>
35552
35553         Work around select() bug on Interix 3.5.
35554         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35555         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35556         * m4/select.m4: New file.
35557         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35558         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35559         * modules/select (Files): Add m4/select.m4.
35560         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35561         * modules/nanosleep (Depends-on): Add select.
35562         * modules/poll (Depends-on): Likewise.
35563         * doc/posix-functions/select.texi: Mention the Interix bug.
35564         Reported by Markus Duft <mduft@gentoo.org>.
35565
35566         * lib/select.c: Renamed from lib/winsock-select.c.
35567         * modules/select (Files): Add lib/select.c, remove
35568         lib/winsock-select.c.
35569         (configure.ac): Update.
35570
35571 2009-03-12  Jim Meyering  <meyering@redhat.com>
35572
35573         avoid gcc warnings about unused macro definitions
35574         * lib/readtokens.c (STREQ): Remove unused definition.
35575         * lib/xmalloc.c (SIZE_MAX): Likewise.
35576         * lib/openat-die.c (N_): Likewise.
35577         * lib/mountlist.c (SIZE_MAX): Remove definition.
35578         Instead, include <stdint.h>.
35579         * lib/readutmp.c: Likewise.
35580         * modules/readutmp (Depends-on): Add stdint.
35581         * modules/mountlist (Depends-on): Add stdint.
35582         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35583
35584 2009-03-10  Bruno Haible  <bruno@clisp.org>
35585
35586         Tests for module 'mbmemcasecoll'.
35587         * modules/mbmemcasecoll-tests: New file.
35588         * tests/test-mbmemcasecoll1.sh: New file.
35589         * tests/test-mbmemcasecoll2.sh: New file.
35590         * tests/test-mbmemcasecoll3.sh: New file.
35591         * tests/test-mbmemcasecoll.c: New file.
35592
35593         New module 'mbmemcasecoll'.
35594         * lib/mbmemcasecoll.h: New file.
35595         * lib/mbmemcasecoll.c: New file.
35596         * modules/mbmemcasecoll: New file.
35597
35598         * tests/test-mbmemcasecmp.h: New file, extracted from
35599         tests/test-mbmemcasecmp.c.
35600         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35601         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35602         (main): Update.
35603         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35604
35605 2009-03-09  Bruno Haible  <bruno@clisp.org>
35606
35607         Tests for module 'mbmemcasecmp'.
35608         * modules/mbmemcasecmp-tests: New file.
35609         * tests/test-mbmemcasecmp1.sh: New file.
35610         * tests/test-mbmemcasecmp2.sh: New file.
35611         * tests/test-mbmemcasecmp3.sh: New file.
35612         * tests/test-mbmemcasecmp.c: New file.
35613
35614         New module 'mbmemcasecmp'.
35615         * lib/mbmemcasecmp.h: New file.
35616         * lib/mbmemcasecmp.c: New file.
35617         * modules/mbmemcasecmp: New file.
35618
35619 2009-03-09  Bruno Haible  <bruno@clisp.org>
35620
35621         Tests for module 'unicase/ulc-casecoll'.
35622         * modules/unicase/ulc-casecoll-tests: New file.
35623         * tests/unicase/test-ulc-casecoll1.sh: New file.
35624         * tests/unicase/test-ulc-casecoll2.sh: New file.
35625         * tests/unicase/test-ulc-casecoll.c: New file.
35626
35627         New module 'unicase/ulc-casecoll'.
35628         * lib/unicase.h (ulc_casecoll): New declaration.
35629         * lib/unicase/ulc-casecoll.c: New file.
35630         * modules/unicase/ulc-casecoll: New file.
35631
35632         New module 'unicase/ulc-casexfrm'.
35633         * lib/unicase.h (ulc_casexfrm): New declaration.
35634         * lib/unicase/ulc-casexfrm.c: New file.
35635         * modules/unicase/ulc-casexfrm: New file.
35636
35637 2009-03-09  Bruno Haible  <bruno@clisp.org>
35638
35639         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35640         invocations.
35641
35642         * m4/mbscasecmp.m4: Remove file.
35643         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35644         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35645
35646         * m4/mbscasestr.m4: Remove file.
35647         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35648         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35649
35650         * m4/mbschr.m4: Remove file.
35651         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35652         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35653
35654         * m4/mbscspn.m4: Remove file.
35655         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35656         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35657
35658         * m4/mbslen.m4: Remove file.
35659         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35660         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35661
35662         * m4/mbsncasecmp.m4: Remove file.
35663         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35664         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35665
35666         * m4/mbsnlen.m4: Remove file.
35667         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35668         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35669
35670         * m4/mbspbrk.m4: Remove file.
35671         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35672         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35673
35674         * m4/mbspcasecmp.m4: Remove file.
35675         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35676         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35677
35678         * m4/mbsrchr.m4: Remove file.
35679         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35680         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35681
35682         * m4/mbssep.m4: Remove file.
35683         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35684         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35685
35686         * m4/mbsspn.m4: Remove file.
35687         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35688         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35689
35690         * m4/mbsstr.m4: Remove file.
35691         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35692         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35693
35694         * m4/mbstok_r.m4: Remove file.
35695         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35696         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35697
35698         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35699
35700         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35701         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35702
35703         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35704
35705 2009-03-08  Bruno Haible  <bruno@clisp.org>
35706
35707         Tests for module 'unicase/ulc-casecmp'.
35708         * modules/unicase/ulc-casecmp-tests: New file.
35709         * tests/unicase/test-ulc-casecmp1.sh: New file.
35710         * tests/unicase/test-ulc-casecmp2.sh: New file.
35711         * tests/unicase/test-ulc-casecmp.c: New file.
35712
35713         New module 'unicase/ulc-casecmp'.
35714         * lib/unicase.h (ulc_casecmp): New declaration.
35715         * lib/unicase/ulc-casecmp.c: New file.
35716         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35717         'const SRC_UNIT *'.
35718         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35719         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35720         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35721         * modules/unicase/ulc-casecmp: New file.
35722
35723         Tests for module 'unicase/u32-is-cased'.
35724         * modules/unicase/u32-is-cased-tests: New file.
35725         * tests/unicase/test-u32-is-cased.c: New file.
35726
35727         Tests for module 'unicase/u16-is-cased'.
35728         * modules/unicase/u16-is-cased-tests: New file.
35729         * tests/unicase/test-u16-is-cased.c: New file.
35730
35731         Tests for module 'unicase/u8-is-cased'.
35732         * modules/unicase/u8-is-cased-tests: New file.
35733         * tests/unicase/test-u8-is-cased.c: New file.
35734         * tests/unicase/test-is-cased.h: New file.
35735
35736         New module 'unicase/u32-is-cased'.
35737         * lib/unicase/u32-is-cased.c: New file.
35738         * modules/unicase/u32-is-cased: New file.
35739
35740         New module 'unicase/u16-is-cased'.
35741         * lib/unicase/u16-is-cased.c: New file.
35742         * modules/unicase/u16-is-cased: New file.
35743
35744         New module 'unicase/u8-is-cased'.
35745         * lib/unicase/u8-is-cased.c: New file.
35746         * lib/unicase/u-is-cased.h: New file.
35747         * modules/unicase/u8-is-cased: New file.
35748
35749         Tests for module 'unicase/u32-is-casefolded'.
35750         * modules/unicase/u32-is-casefolded-tests: New file.
35751         * tests/unicase/test-u32-is-casefolded.c: New file.
35752
35753         Tests for module 'unicase/u16-is-casefolded'.
35754         * modules/unicase/u16-is-casefolded-tests: New file.
35755         * tests/unicase/test-u16-is-casefolded.c: New file.
35756
35757         Tests for module 'unicase/u8-is-casefolded'.
35758         * modules/unicase/u8-is-casefolded-tests: New file.
35759         * tests/unicase/test-u8-is-casefolded.c: New file.
35760         * tests/unicase/test-is-casefolded.h: New file.
35761
35762         New module 'unicase/u32-is-casefolded'.
35763         * lib/unicase/u32-is-casefolded.c: New file.
35764         * modules/unicase/u32-is-casefolded: New file.
35765
35766         New module 'unicase/u16-is-casefolded'.
35767         * lib/unicase/u16-is-casefolded.c: New file.
35768         * modules/unicase/u16-is-casefolded: New file.
35769
35770         New module 'unicase/u8-is-casefolded'.
35771         * lib/unicase/u8-is-casefolded.c: New file.
35772         * modules/unicase/u8-is-casefolded: New file.
35773
35774         Tests for module 'unicase/u32-is-titlecase'.
35775         * modules/unicase/u32-is-titlecase-tests: New file.
35776         * tests/unicase/test-u32-is-titlecase.c: New file.
35777
35778         Tests for module 'unicase/u16-is-titlecase'.
35779         * modules/unicase/u16-is-titlecase-tests: New file.
35780         * tests/unicase/test-u16-is-titlecase.c: New file.
35781
35782         Tests for module 'unicase/u8-is-titlecase'.
35783         * modules/unicase/u8-is-titlecase-tests: New file.
35784         * tests/unicase/test-u8-is-titlecase.c: New file.
35785         * tests/unicase/test-is-titlecase.h: New file.
35786
35787         New module 'unicase/u32-is-titlecase'.
35788         * lib/unicase/u32-is-titlecase.c: New file.
35789         * modules/unicase/u32-is-titlecase: New file.
35790
35791         New module 'unicase/u16-is-titlecase'.
35792         * lib/unicase/u16-is-titlecase.c: New file.
35793         * modules/unicase/u16-is-titlecase: New file.
35794
35795         New module 'unicase/u8-is-titlecase'.
35796         * lib/unicase/u8-is-titlecase.c: New file.
35797         * modules/unicase/u8-is-titlecase: New file.
35798
35799         Tests for module 'unicase/u32-is-lowercase'.
35800         * modules/unicase/u32-is-lowercase-tests: New file.
35801         * tests/unicase/test-u32-is-lowercase.c: New file.
35802
35803         Tests for module 'unicase/u16-is-lowercase'.
35804         * modules/unicase/u16-is-lowercase-tests: New file.
35805         * tests/unicase/test-u16-is-lowercase.c: New file.
35806
35807         Tests for module 'unicase/u8-is-lowercase'.
35808         * modules/unicase/u8-is-lowercase-tests: New file.
35809         * tests/unicase/test-u8-is-lowercase.c: New file.
35810         * tests/unicase/test-is-lowercase.h: New file.
35811
35812         New module 'unicase/u32-is-lowercase'.
35813         * lib/unicase/u32-is-lowercase.c: New file.
35814         * modules/unicase/u32-is-lowercase: New file.
35815
35816         New module 'unicase/u16-is-lowercase'.
35817         * lib/unicase/u16-is-lowercase.c: New file.
35818         * modules/unicase/u16-is-lowercase: New file.
35819
35820         New module 'unicase/u8-is-lowercase'.
35821         * lib/unicase/u8-is-lowercase.c: New file.
35822         * modules/unicase/u8-is-lowercase: New file.
35823
35824         Tests for module 'unicase/u32-is-uppercase'.
35825         * modules/unicase/u32-is-uppercase-tests: New file.
35826         * tests/unicase/test-u32-is-uppercase.c: New file.
35827
35828         Tests for module 'unicase/u16-is-uppercase'.
35829         * modules/unicase/u16-is-uppercase-tests: New file.
35830         * tests/unicase/test-u16-is-uppercase.c: New file.
35831
35832         Tests for module 'unicase/u8-is-uppercase'.
35833         * modules/unicase/u8-is-uppercase-tests: New file.
35834         * tests/unicase/test-u8-is-uppercase.c: New file.
35835         * tests/unicase/test-is-uppercase.h: New file.
35836
35837         New module 'unicase/u32-is-uppercase'.
35838         * lib/unicase/u32-is-uppercase.c: New file.
35839         * modules/unicase/u32-is-uppercase: New file.
35840
35841         New module 'unicase/u16-is-uppercase'.
35842         * lib/unicase/u16-is-uppercase.c: New file.
35843         * modules/unicase/u16-is-uppercase: New file.
35844
35845         New module 'unicase/u8-is-uppercase'.
35846         * lib/unicase/u8-is-uppercase.c: New file.
35847         * modules/unicase/u8-is-uppercase: New file.
35848
35849         New module 'unicase/u32-is-invariant'.
35850         * lib/unicase/u32-is-invariant.c: New file.
35851         * modules/unicase/u32-is-invariant: New file.
35852
35853         New module 'unicase/u16-is-invariant'.
35854         * lib/unicase/u16-is-invariant.c: New file.
35855         * modules/unicase/u16-is-invariant: New file.
35856
35857         New module 'unicase/u8-is-invariant'.
35858         * lib/unicase/u8-is-invariant.c: New file.
35859         * lib/unicase/invariant.h: New file.
35860         * lib/unicase/u-is-invariant.h: New file.
35861         * modules/unicase/u8-is-invariant: New file.
35862
35863         Tests for module 'unicase/u32-casecoll'.
35864         * modules/unicase/u32-casecoll-tests: New file.
35865         * tests/unicase/test-u32-casecoll.c: New file.
35866
35867         Tests for module 'unicase/u16-casecoll'.
35868         * modules/unicase/u16-casecoll-tests: New file.
35869         * tests/unicase/test-u16-casecoll.c: New file.
35870
35871         Tests for module 'unicase/u8-casecoll'.
35872         * modules/unicase/u8-casecoll-tests: New file.
35873         * tests/unicase/test-u8-casecoll.c: New file.
35874
35875         New module 'unicase/u32-casecoll'.
35876         * lib/unicase/u32-casecoll.c: New file.
35877         * modules/unicase/u32-casecoll: New file.
35878
35879         New module 'unicase/u16-casecoll'.
35880         * lib/unicase/u16-casecoll.c: New file.
35881         * modules/unicase/u16-casecoll: New file.
35882
35883         New module 'unicase/u8-casecoll'.
35884         * lib/unicase/u8-casecoll.c: New file.
35885         * lib/unicase/u-casecoll.h: New file.
35886         * modules/unicase/u8-casecoll: New file.
35887
35888         New module 'unicase/u32-casexfrm'.
35889         * lib/unicase/u32-casexfrm.c: New file.
35890         * modules/unicase/u32-casexfrm: New file.
35891
35892         New module 'unicase/u16-casexfrm'.
35893         * lib/unicase/u16-casexfrm.c: New file.
35894         * modules/unicase/u16-casexfrm: New file.
35895
35896         New module 'unicase/u8-casexfrm'.
35897         * lib/unicase/u8-casexfrm.c: New file.
35898         * lib/unicase/u-casexfrm.h: New file.
35899         * modules/unicase/u8-casexfrm: New file.
35900
35901         Tests for module 'unicase/u32-casecmp'.
35902         * modules/unicase/u32-casecmp-tests: New file.
35903         * tests/unicase/test-u32-casecmp.c: New file.
35904
35905         Tests for module 'unicase/u16-casecmp'.
35906         * modules/unicase/u16-casecmp-tests: New file.
35907         * tests/unicase/test-u16-casecmp.c: New file.
35908
35909         Tests for module 'unicase/u8-casecmp'.
35910         * modules/unicase/u8-casecmp-tests: New file.
35911         * tests/unicase/test-u8-casecmp.c: New file.
35912         * tests/unicase/test-casecmp.h: New file.
35913
35914         New module 'unicase/u32-casecmp'.
35915         * lib/unicase/u32-casecmp.c: New file.
35916         * modules/unicase/u32-casecmp: New file.
35917
35918         New module 'unicase/u16-casecmp'.
35919         * lib/unicase/u16-casecmp.c: New file.
35920         * modules/unicase/u16-casecmp: New file.
35921
35922         New module 'unicase/u8-casecmp'.
35923         * lib/unicase/u8-casecmp.c: New file.
35924         * lib/unicase/u-casecmp.h: New file.
35925         * modules/unicase/u8-casecmp: New file.
35926
35927         Tests for module 'unicase/u32-casefold'.
35928         * modules/unicase/u32-casefold-tests: New file.
35929         * tests/unicase/test-u32-casefold.c: New file.
35930
35931         Tests for module 'unicase/u16-casefold'.
35932         * modules/unicase/u16-casefold-tests: New file.
35933         * tests/unicase/test-u16-casefold.c: New file.
35934
35935         Tests for module 'unicase/u8-casefold'.
35936         * modules/unicase/u8-casefold-tests: New file.
35937         * tests/unicase/test-u8-casefold.c: New file.
35938
35939         New module 'unicase/u32-casefold'.
35940         * lib/unicase/u32-casefold.c: New file.
35941         * modules/unicase/u32-casefold: New file.
35942
35943         New module 'unicase/u16-casefold'.
35944         * lib/unicase/u16-casefold.c: New file.
35945         * modules/unicase/u16-casefold: New file.
35946
35947         New module 'unicase/u8-casefold'.
35948         * lib/unicase/u8-casefold.c: New file.
35949         * lib/unicase/u-casefold.h: New file.
35950         * modules/unicase/u8-casefold: New file.
35951
35952         New module 'unicase/tocasefold'.
35953         * lib/unicase/casefold.h: New file.
35954         * lib/unicase/tocasefold.c: New file.
35955         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
35956         * modules/unicase/tocasefold: New file.
35957
35958         Tests for module 'unicase/u32-totitle'.
35959         * modules/unicase/u32-totitle-tests: New file.
35960         * tests/unicase/test-u32-totitle.c: New file.
35961
35962         Tests for module 'unicase/u16-totitle'.
35963         * modules/unicase/u16-totitle-tests: New file.
35964         * tests/unicase/test-u16-totitle.c: New file.
35965
35966         Tests for module 'unicase/u8-totitle'.
35967         * modules/unicase/u8-totitle-tests: New file.
35968         * tests/unicase/test-u8-totitle.c: New file.
35969
35970         New module 'unicase/u32-totitle'.
35971         * lib/unicase/u32-totitle.c: New file.
35972         * modules/unicase/u32-totitle: New file.
35973
35974         New module 'unicase/u16-totitle'.
35975         * lib/unicase/u16-totitle.c: New file.
35976         * modules/unicase/u16-totitle: New file.
35977
35978         New module 'unicase/u8-totitle'.
35979         * lib/unicase/u8-totitle.c: New file.
35980         * lib/unicase/u-totitle.h: New file.
35981         * modules/unicase/u8-totitle: New file.
35982
35983         Tests for module 'unicase/u32-tolower'.
35984         * modules/unicase/u32-tolower-tests: New file.
35985         * tests/unicase/test-u32-tolower.c: New file.
35986
35987         Tests for module 'unicase/u16-tolower'.
35988         * modules/unicase/u16-tolower-tests: New file.
35989         * tests/unicase/test-u16-tolower.c: New file.
35990
35991         Tests for module 'unicase/u8-tolower'.
35992         * modules/unicase/u8-tolower-tests: New file.
35993         * tests/unicase/test-u8-tolower.c: New file.
35994
35995         New module 'unicase/u32-tolower'.
35996         * lib/unicase/u32-tolower.c: New file.
35997         * modules/unicase/u32-tolower: New file.
35998
35999         New module 'unicase/u16-tolower'.
36000         * lib/unicase/u16-tolower.c: New file.
36001         * modules/unicase/u16-tolower: New file.
36002
36003         New module 'unicase/u8-tolower'.
36004         * lib/unicase/u8-tolower.c: New file.
36005         * modules/unicase/u8-tolower: New file.
36006
36007         Tests for module 'unicase/u32-toupper'.
36008         * modules/unicase/u32-toupper-tests: New file.
36009         * tests/unicase/test-u32-toupper.c: New file.
36010
36011         Tests for module 'unicase/u16-toupper'.
36012         * modules/unicase/u16-toupper-tests: New file.
36013         * tests/unicase/test-u16-toupper.c: New file.
36014
36015         Tests for module 'unicase/u8-toupper'.
36016         * modules/unicase/u8-toupper-tests: New file.
36017         * tests/unicase/test-u8-toupper.c: New file.
36018
36019         New module 'unicase/u32-toupper'.
36020         * lib/unicase/u32-toupper.c: New file.
36021         * modules/unicase/u32-toupper: New file.
36022
36023         New module 'unicase/u16-toupper'.
36024         * lib/unicase/u16-toupper.c: New file.
36025         * modules/unicase/u16-toupper: New file.
36026
36027         New module 'unicase/u8-toupper'.
36028         * lib/unicase/u8-toupper.c: New file.
36029         * modules/unicase/u8-toupper: New file.
36030
36031         New module 'unicase/u32-casemap'.
36032         * lib/unicase/u32-casemap.c: New file.
36033         * modules/unicase/u32-casemap: New file.
36034
36035         New module 'unicase/u16-casemap'.
36036         * lib/unicase/u16-casemap.c: New file.
36037         * modules/unicase/u16-casemap: New file.
36038
36039         New module 'unicase/u8-casemap'.
36040         * lib/unicase/unicasemap.h: New file.
36041         * lib/unicase/u8-casemap.c: New file.
36042         * lib/unicase/u-casemap.h: New file.
36043         * modules/unicase/u8-casemap: New file.
36044
36045         New module 'unicase/special-casing'.
36046         * lib/unicase/special-casing.h: New file.
36047         * lib/unicase/special-casing.c: New file.
36048         * lib/unicase/special-casing-table.gperf: New file, generated by
36049         gen-uni-tables.c.
36050         * modules/unicase/special-casing: New file.
36051
36052         Tests for module 'unicase/locale-language'.
36053         * modules/unicase/locale-language-tests: New file.
36054         * tests/unicase/test-locale-language.sh: New file.
36055         * tests/unicase/test-locale-language.c: New file.
36056
36057         New module 'unicase/locale-language'.
36058         * lib/unicase/locale-language.c: New file.
36059         * lib/unicase/locale-languages.gperf: New file.
36060         * modules/unicase/locale-language: New file.
36061
36062         Generate more tables for case conversion and case folding.
36063         * lib/gen-uni-tables.c (SCC_*): New enum items.
36064         (struct special_casing_rule): New type.
36065         (casing_rules, num_casing_rules, allocated_casing_rules): New
36066         variables.
36067         (add_casing_rule, fill_casing_rules): New functions.
36068         (struct casefold_rule): New type.
36069         (casefolding_rules, num_casefolding_rules,
36070         allocated_casefolding_rules): New variables.
36071         (fill_casefolding_rules): New function.
36072         (unicode_casefold): New variable.
36073         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36074         sort_casing_rules, output_casing_rules): New functions.
36075         (main): Accept to more arguments: SpecialCasing.txt and
36076         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36077         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36078         Output mapping for casefolding.
36079
36080         * lib/unicase.h: Include stdbool.h, uninorm.h.
36081         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36082         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36083         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36084         arguments.
36085         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36086         resultp arguments.
36087         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36088         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36089         resultp arguments.
36090         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36091         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36092         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36093         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36094         declarations.
36095         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36096
36097 2009-03-08  Bruno Haible  <bruno@clisp.org>
36098
36099         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36100         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36101         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36102         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36103
36104 2009-03-07  Bruno Haible  <bruno@clisp.org>
36105
36106         Adjust u*_normcmp, u*_normcoll API.
36107         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36108         u16_normcoll, u32_normcoll): Change failure conventions.
36109         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36110         errno and return -1.
36111         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36112
36113 2009-03-07  Bruno Haible  <bruno@clisp.org>
36114
36115         Tests for module 'uninorm/u32-normcoll'.
36116         * modules/uninorm/u32-normcoll-tests: New file.
36117         * tests/uninorm/test-u32-normcoll.c: New file.
36118
36119         Tests for module 'uninorm/u16-normcoll'.
36120         * modules/uninorm/u16-normcoll-tests: New file.
36121         * tests/uninorm/test-u16-normcoll.c: New file.
36122
36123         Tests for module 'uninorm/u8-normcoll'.
36124         * modules/uninorm/u8-normcoll-tests: New file.
36125         * tests/uninorm/test-u8-normcoll.c: New file.
36126
36127 2009-03-07  Bruno Haible  <bruno@clisp.org>
36128
36129         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36130         tests/uninorm/test-u32-normcmp.c.
36131         * tests/uninorm/test-u32-normcmp.c: Include it.
36132         (test_nonascii): New function, extracted from main. Add some more
36133         tests.
36134         (main): Invoke test_ascii and test_nonascii.
36135         * modules/uninorm/u32-normcmp-tests (Files): Add
36136         tests/uninorm/test-u32-normcmp.h.
36137         (Depends-on): Remove uninorm/u32-normcmp.
36138
36139         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36140         tests/uninorm/test-u16-normcmp.c.
36141         * tests/uninorm/test-u16-normcmp.c: Include it.
36142         (test_nonascii): New function, extracted from main. Add some more
36143         tests.
36144         (main): Invoke test_ascii and test_nonascii.
36145         * modules/uninorm/u16-normcmp-tests (Files): Add
36146         tests/uninorm/test-u16-normcmp.h.
36147         (Depends-on): Remove uninorm/u16-normcmp.
36148
36149         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36150         tests/uninorm/test-u8-normcmp.c.
36151         * tests/uninorm/test-u8-normcmp.c: Include it.
36152         (test_nonascii): New function, extracted from main. Add some more
36153         tests.
36154         (main): Invoke test_ascii and test_nonascii.
36155         * modules/uninorm/u8-normcmp-tests (Files): Add
36156         tests/uninorm/test-u8-normcmp.h.
36157         (Depends-on): Remove uninorm/u8-normcmp.
36158
36159 2009-03-07  Bruno Haible  <bruno@clisp.org>
36160
36161         New module 'uninorm/u32-normcoll'.
36162         * lib/uninorm/u32-normcoll.c: New file.
36163         * modules/uninorm/u32-normcoll: New file.
36164
36165         New module 'uninorm/u16-normcoll'.
36166         * lib/uninorm/u16-normcoll.c: New file.
36167         * modules/uninorm/u16-normcoll: New file.
36168
36169         New module 'uninorm/u8-normcoll'.
36170         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36171         declarations.
36172         * lib/uninorm/u8-normcoll.c: New file.
36173         * lib/uninorm/u-normcoll.h: New file.
36174         * modules/uninorm/u8-normcoll: New file.
36175
36176         New module 'uninorm/u32-normxfrm'.
36177         * lib/uninorm/u32-normxfrm.c: New file.
36178         * modules/uninorm/u32-normxfrm: New file.
36179
36180         New module 'uninorm/u16-normxfrm'.
36181         * lib/uninorm/u16-normxfrm.c: New file.
36182         * modules/uninorm/u16-normxfrm: New file.
36183
36184         New module 'uninorm/u8-normxfrm'.
36185         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36186         declarations.
36187         * lib/uninorm/u8-normxfrm.c: New file.
36188         * lib/uninorm/u-normxfrm.h: New file.
36189         * modules/uninorm/u8-normxfrm: New file.
36190
36191 2009-03-07  Bruno Haible  <bruno@clisp.org>
36192
36193         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36194         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36195         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36196
36197 2009-03-07  Bruno Haible  <bruno@clisp.org>
36198
36199         New module 'memxfrm'.
36200         * lib/memxfrm.h: New file.
36201         * lib/memxfrm.c: New file.
36202         * modules/memxfrm: New file.
36203
36204 2009-03-07  Bruno Haible  <bruno@clisp.org>
36205
36206         New module 'memcmp2'.
36207         * lib/memcmp2.h: New file.
36208         * lib/memcmp2.c: New file.
36209         * modules/memcmp2: New file.
36210
36211 2009-03-07  Bruno Haible  <bruno@clisp.org>
36212
36213         Tests for module 'uninorm/decomposing-form'.
36214         * modules/uninorm/decomposing-form-tests: New file.
36215         * tests/uninorm/test-decomposing-form.c: New file.
36216
36217         New module 'uninorm/decomposing-form'.
36218         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36219         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36220         Add 'decomposing_variant' field.
36221         * lib/uninorm/decomposing-form.c: New file.
36222         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36223         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36224         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36225         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36226         * modules/uninorm/decomposing-form: New file.
36227         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36228         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36229
36230 2009-03-07  Bruno Haible  <bruno@clisp.org>
36231
36232         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36233         strings.
36234
36235 2009-03-06  Bruno Haible  <bruno@clisp.org>
36236
36237         Tests for module 'uninorm/u32-normcmp'.
36238         * tests/uninorm/test-u32-normcmp.c: New file.
36239         * modules/uninorm/u32-normcmp-tests: New file.
36240
36241         Tests for module 'uninorm/u16-normcmp'.
36242         * tests/uninorm/test-u16-normcmp.c: New file.
36243         * modules/uninorm/u16-normcmp-tests: New file.
36244
36245         Tests for module 'uninorm/u8-normcmp'.
36246         * tests/uninorm/test-u8-normcmp.c: New file.
36247         * modules/uninorm/u8-normcmp-tests: New file.
36248
36249         New module 'uninorm/u32-normcmp'.
36250         * lib/uninorm/u32-normcmp.c: New file.
36251         * modules/uninorm/u32-normcmp: New file.
36252
36253         New module 'uninorm/u16-normcmp'.
36254         * lib/uninorm/u16-normcmp.c: New file.
36255         * modules/uninorm/u16-normcmp: New file.
36256
36257         New module 'uninorm/u8-normcmp'.
36258         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36259         declarations.
36260         * lib/uninorm/u8-normcmp.c: New file.
36261         * lib/uninorm/u-normcmp.h: New file.
36262         * modules/uninorm/u8-normcmp: New file.
36263
36264 2009-03-06  Bruno Haible  <bruno@clisp.org>
36265
36266         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36267         Reported by Eric Blake.
36268
36269 2009-03-06  Eric Blake  <ebb9@byu.net>
36270             Bruno Haible  <bruno@clisp.org>
36271
36272         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36273         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36274         condition.
36275         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36276         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36277         condition.
36278         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36279
36280 2009-03-06  Eric Blake  <ebb9@byu.net>
36281
36282         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36283         to avoid compiler warnings.
36284         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36285
36286 2009-03-05  Bruno Haible  <bruno@clisp.org>
36287
36288         * tests/test-ftell.c (main): Disable test beyond end of file on
36289         FreeMiNT.
36290         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36291
36292 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36293
36294         * lib/filevercmp.c: Move hidden files up in ordering.
36295         * tests/test-filevercmp.c: Add tests for hidden files.
36296
36297 2009-03-04  Bruno Haible  <bruno@clisp.org>
36298
36299         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36300         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36301         AM_CFLAGS.
36302         Reported by Simon Josefsson.
36303
36304 2009-03-03  Bruno Haible  <bruno@clisp.org>
36305
36306         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36307         Reported by Simon Josefsson.
36308
36309         * doc/ld-version-script.texi: Update node reference.
36310
36311 2009-03-03  Bruno Haible  <bruno@clisp.org>
36312
36313         * modules/visibility (License): Change to 'unlimited'.
36314         Suggested by Simon Josefsson.
36315
36316 2009-03-03  Jim Meyering  <meyering@redhat.com>
36317
36318         unlinkdir: cannot_unlink_dir may modify process state
36319         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36320         it's neither thread-safe nor appropriate for use in a library.
36321
36322 2009-03-03  Eric Blake  <ebb9@byu.net>
36323
36324         test-closein: silence test under Darwin
36325         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36326         care if it dies from EPIPE or EBADF.
36327
36328 2009-03-03  Bruno Haible  <bruno@clisp.org>
36329
36330         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36331         earlier.
36332         * doc/visibility.texi: Fix @node and @section.
36333
36334 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36335
36336         * doc/gnulib.texi: Link to sections for ld version script and
36337         visibility.
36338         * doc/visibility.texi: Add @node and @section.
36339         * modules/ld-version-script: New module.
36340         * m4/ld-version-script.m4: New file.
36341         * doc/ld-version-script.texi: New file.
36342
36343 2009-03-02  David Lutterkort  <lutter@redhat.com>
36344
36345         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36346         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36347
36348 2009-03-02  Bruno Haible  <bruno@clisp.org>
36349
36350         * doc/visibility.texi: Mention libtool's -export-symbols option.
36351
36352 2009-03-02  Jim Meyering  <meyering@redhat.com>
36353
36354         announce-gen: new option: --no-print-checksums
36355         * build-aux/announce-gen (usage): Describe it.
36356         (print_checksums): Print a newline here, not in the [*] footnote.
36357         (main): Honor it.
36358
36359 2009-03-01  Bruno Haible  <bruno@clisp.org>
36360
36361         Use socklen_t in the native Windows replacements prototypes.
36362         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36363         instead of 'int'.
36364         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36365         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36366         * modules/getsockopt (Depends-on): Add socklen.
36367         * modules/setsockopt (Depends-on): Add socklen.
36368
36369 2009-03-01  Bruno Haible  <bruno@clisp.org>
36370
36371         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36372         least 4.2.
36373
36374 2009-03-01  Eric Blake  <ebb9@byu.net>
36375             Bruno Haible  <bruno@clisp.org>
36376
36377         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36378         error messages.
36379         * lib/wait-process.c (wait_subprocess): Omit error message about
36380         deadly signal sent to the child of termsigp != NULL.
36381
36382 2009-03-01  Eric Blake  <ebb9@byu.net>
36383
36384         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36385
36386 2009-03-01  Bruno Haible  <bruno@clisp.org>
36387
36388         Avoid a gcc warning.
36389         * tests/test-sched.c (b): Make global.
36390         Reported by Eric Blake.
36391
36392 2009-01-19  Martin Lambers  <marlam@marlam.de>
36393
36394         Provide POSIX semantics for socket timeout options on W32.
36395         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36396         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36397         * modules/setsockopt: Depend on sys_time module for struct timeval.
36398         * modules/getsockopt: Depend on sys_time module for struct timeval.
36399
36400 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36401
36402         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36403         __USE_GNU, for consistency with netdb.in.h.
36404         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36405
36406 2009-03-01  Bruno Haible  <bruno@clisp.org>
36407
36408         More support for FreeMiNT.
36409         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36410         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36411
36412 2009-03-01  Bruno Haible  <bruno@clisp.org>
36413
36414         More support for FreeMiNT.
36415         * lib/fpurge.c (fpurge): Correct last commit.
36416         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36417
36418 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36419
36420         Fix unportable awk script in vc-list-files.
36421         * build-aux/vc-list-files: In the replacement awk script, use
36422         substr with a second argument of 1, not zero.
36423         Report by Simon Josefsson.
36424
36425 2009-02-28  Bruno Haible  <bruno@clisp.org>
36426
36427         More support for FreeMiNT.
36428         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36429         to FreeMiNT today.
36430         * lib/fwriting.c (fwriting): Likewise.
36431         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36432
36433 2009-02-28  Bruno Haible  <bruno@clisp.org>
36434
36435         * tests/test-freadseek.c (main): Disable test beyond end of file on
36436         FreeMiNT.
36437         * tests/test-ftello.c (main): Likewise.
36438         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36439
36440 2009-02-28  Bruno Haible  <bruno@clisp.org>
36441
36442         Add tentative support for FreeMiNT.
36443         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36444         * lib/fpurge.c (fpurge): Likewise.
36445         * lib/freadable.c (freadable): Likewise.
36446         * lib/freading.c (freading): Likewise.
36447         * lib/freadptr.c (freadptr): Likewise.
36448         * lib/freadseek.c (freadptrinc): Likewise.
36449         * lib/fseeko.c (rpl_fseeko): Likewise.
36450         * lib/fseterr.c (fseterr): Likewise.
36451         * lib/fwritable.c (fwritable): Likewise.
36452         * lib/fwriting.c (fwriting): Likewise.
36453         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36454         Hourihane.
36455         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36456
36457 2009-02-28  Bruno Haible  <bruno@clisp.org>
36458
36459         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36460         SIGCHLD.
36461         Reported by Jim Meyering.
36462
36463 2009-02-28  Bruno Haible  <bruno@clisp.org>
36464
36465         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36466         Mention the results of these tests on various platforms.
36467         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36468         order.
36469         * doc/posix-functions/printf.texi: Likewise.
36470         * doc/posix-functions/snprintf.texi: Likewise.
36471         * doc/posix-functions/sprintf.texi: Likewise.
36472         * doc/posix-functions/vfprintf.texi: Likewise.
36473         * doc/posix-functions/vprintf.texi: Likewise.
36474         * doc/posix-functions/vsnprintf.texi: Likewise.
36475         * doc/posix-functions/vsprintf.texi: Likewise.
36476         * doc/glibc-functions/obstack_printf.texi: Likewise.
36477         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36478
36479 2009-02-28  Bruno Haible  <bruno@clisp.org>
36480
36481         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36482         Reported by Loïc Minier <lool@dooz.org>.
36483
36484 2009-02-27  Bruno Haible  <bruno@clisp.org>
36485
36486         * gnulib-tool (func_import): Make the sed expression used to create the
36487         sed script for updating the .gitignore file POSIX compliant.
36488         Reported by Eric Blake.
36489
36490 2009-02-27  Bruno Haible  <bruno@clisp.org>
36491
36492         * gnulib-tool (sed): Don't alias as "sed --posix".
36493         Reported by Eric Blake.
36494
36495 2009-02-27  Bruno Haible  <bruno@clisp.org>
36496
36497         Avoid test link errors.
36498         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36499         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36500         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36501         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36503
36504 2009-02-27  Bruno Haible  <bruno@clisp.org>
36505
36506         Avoid spurious "(cached)" in configure output.
36507         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36508         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36509         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36510         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36511         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36512         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36513         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36514         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36515         Reported by Eric Blake.
36516
36517 2009-02-27  Eric Blake  <ebb9@byu.net>
36518
36519         printf: fix regression in previous patch
36520         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36521
36522 2009-02-27  Bruno Haible  <bruno@clisp.org>
36523
36524         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36525         value.
36526         * lib/stdint.in.h: Likewise.
36527         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36528
36529 2009-02-27  Eric Blake  <ebb9@byu.net>
36530
36531         doc: mention more functions added in cygwin 1.7.0
36532         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36533         addition.
36534         * doc/posix-functions/open_wmemstream.texi: Likewise.
36535         * doc/posix-functions/wcsnlen.texi: Likewise.
36536         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36537         * doc/posix-functions/wcstod.texi: Likewise.
36538         * doc/posix-functions/wcstof.texi: Likewise.
36539         * doc/posix-functions/wcstoimax.texi: Likewise.
36540         * doc/posix-functions/wcstok.texi: Likewise.
36541         * doc/posix-functions/wcstoumax.texi: Likewise.
36542
36543         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36544         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36545         * doc/posix-functions/fprintf.texi: Update.
36546         * doc/posix-functions/printf.texi: Update.
36547         * doc/posix-functions/snprintf.texi: Update.
36548         * doc/posix-functions/sprintf.texi: Update.
36549         * doc/posix-functions/vfprintf.texi: Update.
36550         * doc/posix-functions/vprintf.texi: Update.
36551         * doc/posix-functions/vsnprintf.texi: Update.
36552         * doc/posix-functions/vsprintf.texi: Update.
36553         * doc/glibc-functions/obstack_printf.texi: Update.
36554         * doc/glibc-functions/obstack_vprintf.texi: Update.
36555
36556 2009-02-26  Eric Blake  <ebb9@byu.net>
36557
36558         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36559         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36560         compilation bug by using runtime conversion.
36561         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36562         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36563         * modules/ceill-tests (Files): Use nan.h.
36564         * modules/floorl-tests (Files): Likewise.
36565         * modules/frexpl-tests (Files): Likewise.
36566         * modules/isnanl-tests (Files): Likewise.
36567         * modules/ldexpl-tests (Files): Likewise.
36568         * modules/roundl-tests (Files): Likewise.
36569         * modules/truncl-tests (Files): Likewise.
36570         * tests/test-ceill.c (main): Use a working NaN.
36571         * tests/test-floorl.c (main): Likewise.
36572         * tests/test-frexpl.c (main): Likewise.
36573         * tests/test-isnan.c (test_long_double): Likewise.
36574         * tests/test-isnanl.h (main): Likewise.
36575         * tests/test-ldexpl.h (main): Likewise.
36576         * tests/test-roundl.h (main): Likewise.
36577         * tests/test-truncl.h (main): Likewise.
36578         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36579
36580 2009-02-26  Eric Blake  <ebb9@byu.net>
36581             Bruno Haible  <bruno@clisp.org>
36582
36583         Work around a *printf bug with %ls on Solaris.
36584         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36585         precision is specified, sprintf stops converting the wide string
36586         argument when the number of bytes that have been produced by this
36587         conversion equals or exceeds the precision.
36588         * doc/posix-functions/fprintf.texi: Update.
36589         * doc/posix-functions/printf.texi: Update.
36590         * doc/posix-functions/snprintf.texi: Update.
36591         * doc/posix-functions/sprintf.texi: Update.
36592         * doc/posix-functions/vfprintf.texi: Update.
36593         * doc/posix-functions/vprintf.texi: Update.
36594         * doc/posix-functions/vsnprintf.texi: Update.
36595         * doc/posix-functions/vsprintf.texi: Update.
36596         * doc/glibc-functions/obstack_printf.texi: Update.
36597         * doc/glibc-functions/obstack_vprintf.texi: Update.
36598
36599 2009-02-26  Eric Blake  <ebb9@byu.net>
36600
36601         stdlib: favor compiler check of random.h
36602         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36603         to avoid an ObjC random.h installed by Swarm.
36604
36605 2009-02-26  Bruno Haible  <bruno@clisp.org>
36606
36607         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36608         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36609         Reported by Gary V. Vaughan <gary@gnu.org>.
36610
36611 2009-02-26  Bruno Haible  <bruno@clisp.org>
36612
36613         Fix *printf behaviour regarding the %ls directive.
36614         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36615         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36616         NEED_PRINTF_DIRECTIVE_LS.
36617         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36618         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36620         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36621         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36622         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36623         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36624         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36625         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36626         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36627         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36628         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36629         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36630         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36631         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36632         * doc/posix-functions/fprintf.texi: Update.
36633         * doc/posix-functions/printf.texi: Update.
36634         * doc/posix-functions/snprintf.texi: Update.
36635         * doc/posix-functions/sprintf.texi: Update.
36636         * doc/posix-functions/vfprintf.texi: Update.
36637         * doc/posix-functions/vprintf.texi: Update.
36638         * doc/posix-functions/vsnprintf.texi: Update.
36639         * doc/posix-functions/vsprintf.texi: Update.
36640         * doc/glibc-functions/obstack_printf.texi: Update.
36641         * doc/glibc-functions/obstack_vprintf.texi: Update.
36642         Reported by Eric Blake.
36643
36644 2009-02-25  Bruno Haible  <bruno@clisp.org>
36645
36646         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36647         with known value.
36648         Reported by Gary V. Vaughan <gary@gnu.org>.
36649
36650 2009-02-25  Bruno Haible  <bruno@clisp.org>
36651
36652         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36653         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36654         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36655         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36656         Reported by Gary V. Vaughan <gary@gnu.org>.
36657
36658 2009-02-25  Bruno Haible  <bruno@clisp.org>
36659
36660         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36661         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36662         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36663         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36664         Reported by Gary V. Vaughan <gary@gnu.org>.
36665
36666 2009-02-25  Eric Blake  <ebb9@byu.net>
36667
36668         tests: skip fseek/ftell tests if ungetc is broken
36669         * m4/ungetc.m4: New file.
36670         * modules/fseek-tests: Split test, so ungetc dependency is
36671         separate from rest of test.
36672         * modules/fseeko-tests: Likewise.
36673         * modules/ftell-tests: Likewise.
36674         * modules/ftello-tests: Likewise.
36675         * tests/test-fseek.c (main): Isolate ungetc dependency.
36676         * tests/test-fseeko.c (main): Likewise.
36677         * tests/test-ftell.c (main): Likewise.
36678         * tests/test-ftello.c (main): Likewise.
36679         * tests/test-fseek2.sh: New file.
36680         * tests/test-fseeko2.sh: Likewise.
36681         * tests/test-ftell2.sh: Likewise.
36682         * tests/test-ftello2.sh: Likewise.
36683
36684 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36685
36686         test-getaddrinfo: fix usage of skip return code 77
36687         * tests/test-gettaddrinfo.c: Return skip code 77 only
36688         for first occurance of skip (4x77 is not 77)
36689
36690 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36691
36692         strtod: avoid C99 decl-after-statement
36693         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36694
36695 2009-02-24  Eric Blake  <ebb9@byu.net>
36696
36697         strtod: detect HP-UX 11.31 bug
36698         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36699         Reported by Gary V. Vaughan.
36700
36701 2009-02-23  Bruno Haible  <bruno@clisp.org>
36702
36703         Fix invalid read past end of memory block.
36704         * lib/vasnprintf.c (DCHAR_SET): Define.
36705         (local_wcslen): Define only when needed.
36706         (local_strnlen, local_wcsnlen): New functions.
36707         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36708         directives that involve a conversion ourselves.
36709         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36710         wcsnlen, mbrtowc, wcrtomb.
36711         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36712         * tests/test-vasprintf-posix.c (test_function): Likewise.
36713         * tests/test-snprintf-posix.h (test_function): Likewise.
36714         * tests/test-sprintf-posix.h (test_function): Likewise.
36715         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36716
36717 2009-02-22  Bruno Haible  <bruno@clisp.org>
36718
36719         Implement new clarified decomposition of Hangul syllables.
36720         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36721         of type LTV, return only a pairwise decomposition.
36722         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36723         Likewise.
36724         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36725         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36726         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36727
36728 2009-02-22  Bruno Haible  <bruno@clisp.org>
36729
36730         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36731         zero-length results and shrink excess allocated memory.
36732         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36733         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36734         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36735         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36736         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36737         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36738         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36739         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36740         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36741         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36742         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36743         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36744
36745 2009-02-21  Bruno Haible  <bruno@clisp.org>
36746
36747         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36748         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36749         spaces after a period. Put a space between a macro name and its
36750         argument list. Trivial rewordings.
36751         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36752         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36753         (main): Return 0 explicitly.
36754
36755 2009-02-21  Bruno Haible  <bruno@clisp.org>
36756
36757         Tests for module 'uninorm/filter'.
36758         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36759         * modules/uninorm/filter-tests: New file.
36760
36761         New module 'uninorm/filter'.
36762         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36763         uninorm_filter_flush, uninorm_filter_free): New declarations.
36764         * lib/uninorm/uninorm-filter.c: New file.
36765         * modules/uninorm/filter: New file.
36766
36767 2009-02-21  Bruno Haible  <bruno@clisp.org>
36768
36769         Tests for module 'uninorm/nfkc'.
36770         * tests/uninorm/test-nfkc.c: New file.
36771         * tests/uninorm/test-u8-nfkc.c: New file.
36772         * tests/uninorm/test-u16-nfkc.c: New file.
36773         * tests/uninorm/test-u32-nfkc.c: New file.
36774         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36775         * tests/uninorm/test-u32-nfkc-big.c: New file.
36776         * modules/uninorm/nfkc-tests: New file.
36777
36778         New module 'uninorm/nfkc'.
36779         * lib/uninorm/nfkc.c: New file.
36780         * modules/uninorm/nfkc: New file.
36781
36782         Tests for module 'uninorm/nfkd'.
36783         * tests/uninorm/test-nfkd.c: New file.
36784         * tests/uninorm/test-u8-nfkd.c: New file.
36785         * tests/uninorm/test-u16-nfkd.c: New file.
36786         * tests/uninorm/test-u32-nfkd.c: New file.
36787         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36788         * tests/uninorm/test-u32-nfkd-big.c: New file.
36789         * modules/uninorm/nfkd-tests: New file.
36790
36791         New module 'uninorm/nfkd'.
36792         * lib/uninorm/nfkd.c: New file.
36793         * modules/uninorm/nfkd: New file.
36794
36795         Tests for module 'uninorm/nfc'.
36796         * tests/uninorm/test-nfc.c: New file.
36797         * tests/uninorm/test-u8-nfc.c: New file.
36798         * tests/uninorm/test-u16-nfc.c: New file.
36799         * tests/uninorm/test-u32-nfc.c: New file.
36800         * tests/uninorm/test-u32-nfc-big.sh: New file.
36801         * tests/uninorm/test-u32-nfc-big.c: New file.
36802         * modules/uninorm/nfc-tests: New file.
36803
36804         New module 'uninorm/nfc'.
36805         * lib/uninorm/nfc.c: New file.
36806         * modules/uninorm/nfc: New file.
36807
36808         Tests for module 'uninorm/nfd'.
36809         * tests/uninorm/test-nfd.c: New file.
36810         * tests/uninorm/test-u8-nfd.c: New file.
36811         * tests/uninorm/test-u16-nfd.c: New file.
36812         * tests/uninorm/test-u32-nfd.c: New file.
36813         * tests/uninorm/test-u32-nfd-big.sh: New file.
36814         * tests/uninorm/test-u32-nfd-big.c: New file.
36815         * tests/uninorm/test-u32-normalize-big.h: New file.
36816         * tests/uninorm/test-u32-normalize-big.c: New file.
36817         * tests/uninorm/NormalizationTest.txt: New file, created from
36818         Unicode 5.1.0 NormalizationTest.txt.
36819         * modules/uninorm/nfd-tests: New file.
36820
36821         New module 'uninorm/nfd'.
36822         * lib/uninorm/nfd.c: New file.
36823         * modules/uninorm/nfd: New file.
36824
36825         New module 'uninorm/u32-normalize'.
36826         * lib/uninorm/u32-normalize.c: New file.
36827         * modules/uninorm/u32-normalize: New file.
36828
36829         New module 'uninorm/u16-normalize'.
36830         * lib/uninorm/u16-normalize.c: New file.
36831         * modules/uninorm/u16-normalize: New file.
36832
36833         New module 'uninorm/u8-normalize'.
36834         * lib/uninorm/u8-normalize.c: New file.
36835         * lib/uninorm/normalize-internal.h: New file.
36836         * lib/uninorm/u-normalize-internal.h: New file.
36837         * modules/uninorm/u8-normalize: New file.
36838
36839         New module 'uninorm/decompose-internal'.
36840         * lib/uninorm/decompose-internal.c: New file.
36841         * modules/uninorm/decompose-internal: New file.
36842
36843         Tests for module 'uninorm/composition'.
36844         * tests/uninorm/test-composition.c: New file.
36845         * modules/uninorm/composition-tests: New file.
36846
36847         New module 'uninorm/composition'.
36848         * lib/uninorm/composition.c: New file.
36849         * lib/uninorm/composition-table.gperf: New file, generated by
36850         gen-uni-tables.
36851         * modules/uninorm/composition: New file.
36852
36853         Tests for module 'uninorm/compat-decomposition'.
36854         * tests/uninorm/test-compat-decomposition.c: New file.
36855         * modules/uninorm/compat-decomposition-tests: New file.
36856
36857         New module 'uninorm/compat-decomposition'.
36858         * lib/uninorm/decompose-internal.h: New file.
36859         * lib/uninorm/compat-decomposition.c: New file.
36860         * modules/uninorm/compat-decomposition: New file.
36861
36862         Tests for module 'uninorm/canonical-decomposition'.
36863         * tests/uninorm/test-canonical-decomposition.c: New file.
36864         * modules/uninorm/canonical-decomposition-tests: New file.
36865
36866         New module 'uninorm/canonical-decomposition'.
36867         * lib/uninorm/canonical-decomposition.c: New file.
36868         * modules/uninorm/canonical-decomposition: New file.
36869
36870         Tests for module 'uninorm/decomposition'.
36871         * tests/uninorm/test-decomposition.c: New file.
36872         * modules/uninorm/decomposition-tests: New file.
36873
36874         New module 'uninorm/decomposition'.
36875         * lib/uninorm/decomposition.c: New file.
36876         * modules/uninorm/decomposition: New file.
36877
36878         New module 'uninorm/decomposition-table'.
36879         * lib/uninorm/decomposition-table.h: New file.
36880         * lib/uninorm/decomposition-table.c: New file.
36881         * lib/uninorm/decomposition-table1.h: New file, generated by
36882         gen-uni-tables.
36883         * lib/uninorm/decomposition-table2.h: New file, generated by
36884         gen-uni-tables.
36885         * modules/uninorm/decomposition-table: New file.
36886
36887         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36888         (UC_DECOMP_*): New enumeration items.
36889         (get_decomposition): New function.
36890         (struct decomp_table): New type.
36891         (output_decomposition, output_decomposition_tables): New functions.
36892         (unicode_composition_exclusions): New variable.
36893         (fill_composition_exclusions, debug_output_composition_tables): New
36894         functions.
36895         (main): Accept one more argument. Invoke fill_composition_exclusions.
36896         Output decomposition and composition tables.
36897
36898         New module 'uninorm/base'.
36899         * lib/uninorm.h: New file.
36900         * lib/unictype.h: Update comment.
36901         * modules/uninorm/base: New file.
36902
36903 2009-02-21  David Lutterkort  <lutter@redhat.com>
36904
36905         Tests for module 'safe-alloc'.
36906         * tests/test-safe-alloc.c: New file.
36907         * modules/safe-alloc-tests: New file.
36908
36909         New module 'safe-alloc'.
36910         * lib/safe-alloc.h: New file.
36911         * lib/safe-alloc.c: New file.
36912         * m4/safe-alloc.m4: New file.
36913         * modules/safe-alloc: New file.
36914         * doc/safe-alloc.texi: New file.
36915         * doc/gnulib.texi: Include it.
36916         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36917         safe-alloc.
36918
36919 2009-02-18  Bruno Haible  <bruno@clisp.org>
36920
36921         Fix link error on non-glibc systems.
36922         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36923         variable.
36924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36925
36926 2009-02-18  Jim Meyering  <meyering@redhat.com>
36927
36928         fts: avoid used-uninitialized error due to recent change
36929         * lib/fts.c (fts_read): Guard uses of the new member,
36930         parent->fts_n_dirs_remaining, since it's not relevant for
36931         the parent of a directory specified on the command-line.
36932
36933 2009-02-17  James Youngman  <jay@gnu.org>
36934             Bruno Haible  <bruno@clisp.org>
36935
36936         * m4/include_next.m4: Reformulate comment.
36937
36938 2009-02-16  Jim Meyering  <meyering@redhat.com>
36939
36940         fts: add #if guards so that the fts_lgpl module still builds
36941         * lib/fts.c: Guard just-added hash-table-using parts with
36942         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36943         Reported by Simon Josefsson.
36944
36945 2009-02-15  Bruno Haible  <bruno@clisp.org>
36946
36947         * modules/array-mergesort-tests: New file.
36948         * tests/test-array-mergesort.c: New file.
36949
36950         New module 'array-mergesort'.
36951         * modules/array-mergesort: New file.
36952         * lib/array-mergesort.h: New file.
36953
36954 2009-02-15  Bruno Haible  <bruno@clisp.org>
36955
36956         Fix 2009-02-07 commit.
36957         * lib/gen-uni-tables.c (output_predicate, output_category,
36958         output_combclass, output_bidi_category, output_decimal_digit,
36959         output_digit, output_numeric, output_mirror, output_scripts,
36960         output_ident_category, output_simple_mapping): Fix format directives.
36961         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
36962
36963 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
36964
36965         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
36966         fixes are available from IBM.
36967
36968 2009-02-13  Jim Meyering  <meyering@redhat.com>
36969
36970         fts: arrange not to stat non-directories in more cases
36971         This makes GNU find (when it doesn't need to stat each file)
36972         *much* more efficient at traversing reiserfs file systems.
36973         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
36974         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
36975         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
36976         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
36977         (leaf_optimization_applies): New function.
36978         (LCO_hash, LCO_compare): New helper functions.
36979         (link_count_optimize_ok): New function.
36980         (fts_stat): Initialize new member (if dir).
36981         (fts_read): Decrement parent's fts_n_dirs_remaining count if
36982         we've just stat'ed a directory.  Skip the stat call when possible.
36983         ---
36984         Note this AFS-related exchange:
36985         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
36986         and note find's pioctl call in find/fstype.c.
36987         But that is necessary only if you want to enable the
36988         optimization for AFS, and for now, I don't.
36989
36990         fts: move a function definition "up" (no semantic change)
36991         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
36992         "up" to precede upcoming use of a related function.
36993
36994 2009-02-11  Jim Meyering  <meyering@redhat.com>
36995
36996         fts: correct internal computation of nlinks (optimization-related)
36997         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
36998         whether the current entry is a directory, so don't test it.
36999
37000 2009-02-10  Bruno Haible  <bruno@clisp.org>
37001
37002         Tests for module 'uniwbrk/ulc-wordbreaks'.
37003         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37004         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37005         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37006
37007         Tests for module 'uniwbrk/u32-wordbreaks'.
37008         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37009         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37010
37011         Tests for module 'uniwbrk/u16-wordbreaks'.
37012         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37013         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37014
37015         Tests for module 'uniwbrk/u8-wordbreaks'.
37016         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37017         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37018
37019 2009-02-10  Bruno Haible  <bruno@clisp.org>
37020
37021         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37022         property.
37023         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37024         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37025         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37026
37027 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37028
37029         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37030         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37031
37032 2009-02-10  Bruno Haible  <bruno@clisp.org>
37033
37034         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37035         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37036         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37037         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37038         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37039         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37040
37041 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37042
37043         * lib/sockets.h (gl_fd_to_handle): New function.
37044
37045         * tests/test-sockets.c: Call gl_fd_to_handle.
37046
37047 2009-02-09  Bruno Haible  <bruno@clisp.org>
37048
37049         * doc/havelib.texi: Document the conventions on bi-arch systems.
37050
37051 2009-02-08  Bruno Haible  <bruno@clisp.org>
37052
37053         Document the AC_LIB_LINKFLAGS macro.
37054         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37055         * doc/gnulib.texi: Include it.
37056
37057 2009-02-08  Bruno Haible  <bruno@clisp.org>
37058
37059         Fix wrong order of sections, compared to TOC.
37060         * doc/gnulib.texi: Include relocatable-maint.texi after the
37061         "Regular expressions" node, not before.
37062
37063 2009-02-08  Bruno Haible  <bruno@clisp.org>
37064
37065         Tests for module 'unicase/totitle'.
37066         * modules/unicase/totitle-tests: New file.
37067
37068         Tests for module 'unicase/tolower'.
37069         * modules/unicase/tolower-tests: New file.
37070
37071         Tests for module 'unicase/toupper'.
37072         * modules/unicase/toupper-tests: New file.
37073         * tests/unicase/test-mapping-part1.h: New file.
37074         * tests/unicase/test-mapping-part2.h: New file.
37075
37076         New module 'unicase/totitle'.
37077         * modules/unicase/totitle: New file.
37078         * lib/unicase/totitle.c: New file.
37079
37080         New module 'unicase/tolower'.
37081         * modules/unicase/tolower: New file.
37082         * lib/unicase/tolower.c: New file.
37083
37084         New module 'unicase/toupper'.
37085         * modules/unicase/toupper: New file.
37086         * lib/unicase/toupper.c: New file.
37087         * lib/unicase/simple-mapping.h: New file.
37088
37089         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37090         (mapping_table): New structure.
37091         (output_simple_mapping): New function.
37092         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37093         * modules/gen-uni-tables (Description): Update.
37094         * lib/unicase/toupper.h: New file, automatically generated by
37095         gen-uni-tables.
37096         * lib/unicase/tolower.h: New file, automatically generated by
37097         gen-uni-tables.
37098         * lib/unicase/totitle.h: New file, automatically generated by
37099         gen-uni-tables.
37100         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37101         gen-uni-tables.
37102         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37103         gen-uni-tables.
37104         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37105         gen-uni-tables.
37106
37107         New module 'unicase/base'.
37108         * modules/unicase/base: New file.
37109         * lib/unicase.h: New file.
37110
37111 2009-02-08  Bruno Haible  <bruno@clisp.org>
37112
37113         New module 'uniwbrk/ulc-wordbreaks'.
37114         * modules/uniwbrk/ulc-wordbreaks: New file.
37115         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37116
37117         New module 'uniwbrk/u32-wordbreaks'.
37118         * modules/uniwbrk/u32-wordbreaks: New file.
37119         * lib/uniwbrk/u32-wordbreaks.c: New file.
37120
37121         New module 'uniwbrk/u16-wordbreaks'.
37122         * modules/uniwbrk/u16-wordbreaks: New file.
37123         * lib/uniwbrk/u16-wordbreaks.c: New file.
37124
37125         New module 'uniwbrk/u8-wordbreaks'.
37126         * modules/uniwbrk/u8-wordbreaks: New file.
37127         * lib/uniwbrk/u8-wordbreaks.c: New file.
37128         * lib/uniwbrk/u-wordbreaks.h: New file.
37129
37130         New module 'uniwbrk/table'.
37131         * modules/uniwbrk/table: New file.
37132         * lib/uniwbrk/wbrktable.h: New file.
37133         * lib/uniwbrk/wbrktable.c: New file.
37134
37135         New module 'uniwbrk/wordbreak-property'.
37136         * modules/uniwbrk/wordbreak-property: New file.
37137         * lib/uniwbrk/wordbreak-property.c: New file.
37138
37139         * lib/gen-uni-tables.c (WBP_*): New enum items.
37140         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37141         (unicode_org_wbp): New variable.
37142         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37143         New functions.
37144         (wbp_table): New structure.
37145         (output_wbp, output_wbrk_tables): New functions.
37146         (main): Accept additional argument. Invoke fill_org_wbp,
37147         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37148         output_wbrk_tables.
37149         * modules/gen-uni-tables (Description): Update.
37150         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37151         gen-uni-tables.
37152
37153         New module 'uniwbrk/base'.
37154         * modules/uniwbrk/base: New file.
37155         * lib/uniwbrk.h: New file.
37156
37157 2009-02-08  Bruno Haible  <bruno@clisp.org>
37158
37159         Update to Unicode 5.1.0.
37160         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37161         U+2185..U+2188.
37162         (is_property_default_ignorable_code_point): Don't include characters
37163         of category Cc or Cs and not-a-characters.
37164         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37165         U+0D79, U+109E, U+109F, U+A60C.
37166         * lib/unictype/bidi_of.h: Regenerated.
37167         * lib/unictype/blocks.h: Regenerated.
37168         * lib/unictype/categ_C.h: Regenerated.
37169         * lib/unictype/categ_Cf.h: Regenerated.
37170         * lib/unictype/categ_Cn.h: Regenerated.
37171         * lib/unictype/categ_L.h: Regenerated.
37172         * lib/unictype/categ_Ll.h: Regenerated.
37173         * lib/unictype/categ_Lm.h: Regenerated.
37174         * lib/unictype/categ_Lo.h: Regenerated.
37175         * lib/unictype/categ_Lu.h: Regenerated.
37176         * lib/unictype/categ_M.h: Regenerated.
37177         * lib/unictype/categ_Mc.h: Regenerated.
37178         * lib/unictype/categ_Me.h: Regenerated.
37179         * lib/unictype/categ_Mn.h: Regenerated.
37180         * lib/unictype/categ_N.h: Regenerated.
37181         * lib/unictype/categ_Nd.h: Regenerated.
37182         * lib/unictype/categ_Nl.h: Regenerated.
37183         * lib/unictype/categ_No.h: Regenerated.
37184         * lib/unictype/categ_P.h: Regenerated.
37185         * lib/unictype/categ_Pd.h: Regenerated.
37186         * lib/unictype/categ_Pe.h: Regenerated.
37187         * lib/unictype/categ_Pf.h: Regenerated.
37188         * lib/unictype/categ_Pi.h: Regenerated.
37189         * lib/unictype/categ_Po.h: Regenerated.
37190         * lib/unictype/categ_Ps.h: Regenerated.
37191         * lib/unictype/categ_S.h: Regenerated.
37192         * lib/unictype/categ_Sk.h: Regenerated.
37193         * lib/unictype/categ_Sm.h: Regenerated.
37194         * lib/unictype/categ_So.h: Regenerated.
37195         * lib/unictype/categ_of.h: Regenerated.
37196         * lib/unictype/combining.h: Regenerated.
37197         * lib/unictype/ctype_alnum.h: Regenerated.
37198         * lib/unictype/ctype_alpha.h: Regenerated.
37199         * lib/unictype/ctype_graph.h: Regenerated.
37200         * lib/unictype/ctype_lower.h: Regenerated.
37201         * lib/unictype/ctype_print.h: Regenerated.
37202         * lib/unictype/ctype_punct.h: Regenerated.
37203         * lib/unictype/ctype_upper.h: Regenerated.
37204         * lib/unictype/decdigit.h: Regenerated.
37205         * lib/unictype/digit.h: Regenerated.
37206         * lib/unictype/mirror.h: Regenerated.
37207         * lib/unictype/numeric.h: Regenerated.
37208         * lib/unictype/pr_alphabetic.h: Regenerated.
37209         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37210         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37211         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37212         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37213         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37214         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37215         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37216         * lib/unictype/pr_combining.h: Regenerated.
37217         * lib/unictype/pr_dash.h: Regenerated.
37218         * lib/unictype/pr_decimal_digit.h: Regenerated.
37219         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37220         * lib/unictype/pr_deprecated.h: Regenerated.
37221         * lib/unictype/pr_diacritic.h: Regenerated.
37222         * lib/unictype/pr_extender.h: Regenerated.
37223         * lib/unictype/pr_format_control.h: Regenerated.
37224         * lib/unictype/pr_grapheme_base.h: Regenerated.
37225         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37226         * lib/unictype/pr_grapheme_link.h: Regenerated.
37227         * lib/unictype/pr_id_continue.h: Regenerated.
37228         * lib/unictype/pr_id_start.h: Regenerated.
37229         * lib/unictype/pr_ideographic.h: Regenerated.
37230         * lib/unictype/pr_ignorable_control.h: Regenerated.
37231         * lib/unictype/pr_lowercase.h: Regenerated.
37232         * lib/unictype/pr_math.h: Regenerated.
37233         * lib/unictype/pr_numeric.h: Regenerated.
37234         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37235         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37236         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37237         * lib/unictype/pr_other_id_continue.h: Regenerated.
37238         * lib/unictype/pr_other_lowercase.h: Regenerated.
37239         * lib/unictype/pr_other_math.h: Regenerated.
37240         * lib/unictype/pr_punctuation.h: Regenerated.
37241         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37242         * lib/unictype/pr_soft_dotted.h: Regenerated.
37243         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37244         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37245         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37246         * lib/unictype/pr_uppercase.h: Regenerated.
37247         * lib/unictype/pr_xid_continue.h: Regenerated.
37248         * lib/unictype/pr_xid_start.h: Regenerated.
37249         * lib/unictype/pr_zero_width.h: Regenerated.
37250         * lib/unictype/scripts.h: Regenerated.
37251         * lib/unictype/scripts_byname.gperf: Regenerated.
37252         * lib/unictype/sy_java_ident.h: Regenerated.
37253         * lib/unilbrk/lbrkprop1.h: Regenerated.
37254         * lib/unilbrk/lbrkprop2.h: Regenerated.
37255         * tests/unictype/test-categ_C.c: Regenerated.
37256         * tests/unictype/test-categ_Cf.c: Regenerated.
37257         * tests/unictype/test-categ_Cn.c: Regenerated.
37258         * tests/unictype/test-categ_L.c: Regenerated.
37259         * tests/unictype/test-categ_Ll.c: Regenerated.
37260         * tests/unictype/test-categ_Lm.c: Regenerated.
37261         * tests/unictype/test-categ_Lo.c: Regenerated.
37262         * tests/unictype/test-categ_Lu.c: Regenerated.
37263         * tests/unictype/test-categ_M.c: Regenerated.
37264         * tests/unictype/test-categ_Mc.c: Regenerated.
37265         * tests/unictype/test-categ_Me.c: Regenerated.
37266         * tests/unictype/test-categ_Mn.c: Regenerated.
37267         * tests/unictype/test-categ_N.c: Regenerated.
37268         * tests/unictype/test-categ_Nd.c: Regenerated.
37269         * tests/unictype/test-categ_Nl.c: Regenerated.
37270         * tests/unictype/test-categ_No.c: Regenerated.
37271         * tests/unictype/test-categ_P.c: Regenerated.
37272         * tests/unictype/test-categ_Pd.c: Regenerated.
37273         * tests/unictype/test-categ_Pe.c: Regenerated.
37274         * tests/unictype/test-categ_Pf.c: Regenerated.
37275         * tests/unictype/test-categ_Pi.c: Regenerated.
37276         * tests/unictype/test-categ_Po.c: Regenerated.
37277         * tests/unictype/test-categ_Ps.c: Regenerated.
37278         * tests/unictype/test-categ_S.c: Regenerated.
37279         * tests/unictype/test-categ_Sk.c: Regenerated.
37280         * tests/unictype/test-categ_Sm.c: Regenerated.
37281         * tests/unictype/test-categ_So.c: Regenerated.
37282         * tests/unictype/test-ctype_alnum.c: Regenerated.
37283         * tests/unictype/test-ctype_alpha.c: Regenerated.
37284         * tests/unictype/test-ctype_graph.c: Regenerated.
37285         * tests/unictype/test-ctype_lower.c: Regenerated.
37286         * tests/unictype/test-ctype_print.c: Regenerated.
37287         * tests/unictype/test-ctype_punct.c: Regenerated.
37288         * tests/unictype/test-ctype_upper.c: Regenerated.
37289         * tests/unictype/test-decdigit.h: Regenerated.
37290         * tests/unictype/test-digit.h: Regenerated.
37291         * tests/unictype/test-numeric.h: Regenerated.
37292         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37293         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37294         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37295         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37296         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37297         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37298         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37299         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37300         * tests/unictype/test-pr_combining.c: Regenerated.
37301         * tests/unictype/test-pr_dash.c: Regenerated.
37302         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37303         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37304         * tests/unictype/test-pr_deprecated.c: Regenerated.
37305         * tests/unictype/test-pr_diacritic.c: Regenerated.
37306         * tests/unictype/test-pr_extender.c: Regenerated.
37307         * tests/unictype/test-pr_format_control.c: Regenerated.
37308         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37309         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37310         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37311         * tests/unictype/test-pr_id_continue.c: Regenerated.
37312         * tests/unictype/test-pr_id_start.c: Regenerated.
37313         * tests/unictype/test-pr_ideographic.c: Regenerated.
37314         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37315         * tests/unictype/test-pr_lowercase.c: Regenerated.
37316         * tests/unictype/test-pr_math.c: Regenerated.
37317         * tests/unictype/test-pr_numeric.c: Regenerated.
37318         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37319         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37320         Regenerated.
37321         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37322         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37323         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37324         * tests/unictype/test-pr_other_math.c: Regenerated.
37325         * tests/unictype/test-pr_punctuation.c: Regenerated.
37326         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37327         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37328         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37329         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37330         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37331         * tests/unictype/test-pr_uppercase.c: Regenerated.
37332         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37333         * tests/unictype/test-pr_xid_start.c: Regenerated.
37334         * tests/unictype/test-pr_zero_width.c: Regenerated.
37335
37336         Update to Unicode 5.1.0.
37337         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37338         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37339         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37340         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37341         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37342         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37343         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37344         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37345         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37346         (nonspacing_table_ind): Update.
37347         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37348
37349         Update to Unicode 5.1.0.
37350         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37351         code transform.
37352         * lib/uniname/uniname.c (unicode_character_name,
37353         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37354         * lib/uniname/uninames.h: Regenerated.
37355         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37356
37357 2009-02-07  Bruno Haible  <bruno@clisp.org>
37358
37359         Merge gen-ctype and gen-lbrk into a single program.
37360         * lib/gen-uni-tables.c: New file, incorporating
37361         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37362         Add directory prefixes to the names of the generated files.
37363         * lib/unictype/gen-ctype.c: Remove file.
37364         * lib/unilbrk/gen-lbrk.c: Remove file.
37365         * modules/gen-uni-tables: New file.
37366         * modules/unictype/gen-ctype: Remove file.
37367         * modules/unilbrk/gen-lbrk: Remove file.
37368
37369 2009-02-07  Bruno Haible  <bruno@clisp.org>
37370
37371         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37372
37373         New module 'unistr/u32-strcoll'.
37374         * modules/unistr/u32-strcoll: New file.
37375         * lib/unistr/u32-strcoll.c: New file.
37376
37377         New module 'unistr/u16-strcoll'.
37378         * modules/unistr/u16-strcoll: New file.
37379         * lib/unistr/u16-strcoll.c: New file.
37380
37381         New module 'unistr/u8-strcoll'.
37382         * modules/unistr/u8-strcoll: New file.
37383         * lib/unistr/u8-strcoll.c: New file.
37384         * lib/unistr/u-strcoll.h: New file.
37385
37386 2009-02-07  Bruno Haible  <bruno@clisp.org>
37387
37388         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37389         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37390         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37391         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37392         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37393         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37394
37395 2009-02-07  Bruno Haible  <bruno@clisp.org>
37396
37397         Make 64-bit clean.
37398         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37399         output_combclass, output_bidi_category, output_decimal_digit,
37400         output_digit, output_numeric, output_mirror, output_scripts,
37401         output_ident_category): Use proper width specifier in format strings.
37402
37403 2009-02-07  Bruno Haible  <bruno@clisp.org>
37404
37405         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37406         failure behaviour.
37407
37408 2009-02-07  Jim Meyering  <meyering@redhat.com>
37409
37410         regex: avoid compilation failure with upcoming gcc-4.4
37411         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37412         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37413         "... error: integer overflow in preprocessor expression".
37414
37415 2009-02-05  Ben Pfaff  <blp@gnu.org>
37416
37417         Fix link errors on Windows when close module is used.
37418         * modules/close: Add $(LIB_CLOSE) to Link section.
37419         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37420         $(LIB_CLOSE) on Windows.
37421
37422 2009-02-05  Jim Meyering  <meyering@redhat.com>
37423
37424         still avoid unused-parameter warnings, but do it cleanly
37425         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37426         (get_fs_usage): Cast to void instead.
37427         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37428         (dev_from_mount_options, read_file_system_list): Cast to void.
37429         Prompted by Bruno Haible.
37430
37431 2009-02-04  Jim Meyering  <meyering@redhat.com>
37432
37433         fsusage.c: correct copyright year
37434         * lib/fsusage.c: Reflect year in which the change is pushed into
37435
37436         avoid misc. warnings
37437         * lib/fsusage.c (UNUSED_PARAM): Define.
37438         (get_fs_usage): Mark parameter "disk" as unused.
37439         * lib/getugroups.c (getgrent): Use "void" in prototype.
37440         * lib/mountlist.c: Mark unused parameters.
37441         (read_file_system_list): Declare a local with "const".
37442         * lib/nanosleep.c (getnow): Declare static.
37443         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37444
37445         dirfd: set errno upon failure
37446         * lib/dirfd.c: Include <errno.h>.
37447         Set errno to ENOTSUP when returning -1.
37448         * modules/dirfd (Depends-on): Add errno.
37449         Suggested by John Kodis <kodis@comcast.net>.
37450
37451 2009-02-01  Bruno Haible  <bruno@clisp.org>
37452
37453         Don't assume sizeof (long) >= sizeof (void *).
37454         * lib/memcmp.c: Include stdint.h.
37455         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37456         srcp2 to 'const byte *'.
37457         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37458         types to uintptr_t.
37459         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37460         * modules/memcmp (Depends-on): Add stdint.
37461         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37462
37463 2009-01-30  Eric Blake  <ebb9@byu.net>
37464
37465         fix more require-before-expand issues
37466         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37467         expand, AC_PROG_AWK.
37468         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37469
37470 2009-01-28  Eric Blake  <ebb9@byu.net>
37471
37472         version-etc: use consistent URL formatting
37473         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37474         Improve formatting.  Use fputs for string without %.
37475
37476 2009-01-28  Jim Meyering  <meyering@redhat.com>
37477
37478         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37479         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37480         "underquoted definition of NAME" from autoconf-2.59.
37481
37482 2009-01-28  Bruno Haible  <bruno@clisp.org>
37483
37484         * doc/gnulib.texi: Add "Obsolete modules" to index.
37485
37486 2009-01-28  Jim Meyering  <meyering@redhat.com>
37487
37488         useless-if-before-free: recognize more variants
37489         * build-aux/useless-if-before-free: Also recognize e.g.,
37490         if (NULL != p) free (p);
37491
37492 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37493
37494         test-getaddrinfo: skip (don't fail) this test when there's no network
37495         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37496         on the presumption that it means you lack network access.
37497
37498 2009-01-26  Jim Meyering  <meyering@redhat.com>
37499
37500         fflush: avoid warnings on modern systems
37501         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37502         pos and result, into scopes where they're used.
37503
37504 2009-01-26  Eric Blake  <ebb9@byu.net>
37505
37506         Silence warning reintroduced by recent extensions patch.
37507         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37508         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37509         autoconf.
37510
37511         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37512         * m4/00gnulib.m4: New file.
37513         * gnulib-tool (func_get_filelist): Always use it.
37514         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37515         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37516
37517 2009-01-25  Bruno Haible  <bruno@clisp.org>
37518
37519         Make test-quotearg work on MacOS X and AIX.
37520         * tests/test-quotearg.sh: New file.
37521         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37522         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37523         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37524         include <libintl.h>.
37525         (fake_locale): Remove variable.
37526         (gettext, dgettext, dcgettext): Remove functions.
37527         (main): Instead of setting a fake locale, set a real locale. Call
37528         textdomain and bindtextdomain.
37529         * modules/quotearg-tests (Files): Add the new files.
37530         (Depends-on): Add gettext, setenv, unsetenv.
37531         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37532         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37533         Augment TESTS_ENVIRONMENT.
37534
37535 2009-01-25  Bruno Haible  <bruno@clisp.org>
37536
37537         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37538         fr_FR.ISO8859-1 locale on MacOS X.
37539         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37540         ja_JP.eucJP locale on MacOS X.
37541         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37542         zh_CN.GB18030 locale on MacOS X.
37543
37544 2009-01-25  Bruno Haible  <bruno@clisp.org>
37545
37546         Avoid link errors on MacOS X 10.3.
37547         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37548         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37549
37550 2009-01-25  Bruno Haible  <bruno@clisp.org>
37551
37552         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37553         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37554         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37555         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37556         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
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         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37562         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37563         * modules/execute (Files): Remove m4/posix_spawn.m4.
37564         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37565         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37566         posix_spawnattr_init, posix_spawnattr_setsigmask,
37567         posix_spawnattr_setflags, posix_spawnattr_destroy.
37568
37569 2009-01-25  Bruno Haible  <bruno@clisp.org>
37570
37571         * lib/glthread/threadlib.c: Include <stdlib.h>.
37572
37573 2009-01-25  Bruno Haible  <bruno@clisp.org>
37574
37575         * lib/glthread/threadlib.c (dummy): New declaration.
37576
37577 2009-01-25  Bruno Haible  <bruno@clisp.org>
37578
37579         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37580         multibyte characters also for the GB18030 encoding. Don't crash when
37581         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37582
37583 2009-01-25  Bruno Haible  <bruno@clisp.org>
37584
37585         Avoid redefining 'struct random_data' on OSF/1 5.1.
37586         * lib/stdlib.in.h: Include <random.h> if it exists.
37587         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37588         HAVE_RANDOM_H. Include <random.h> when testing whether
37589         'struct random_data' exists.
37590         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37591
37592 2009-01-25  Bruno Haible  <bruno@clisp.org>
37593
37594         Don't install charset.alias on MacOS X >= 10.3.
37595         * lib/localcharset.c (DARWIN7): New macro.
37596         (get_charset_aliases): Hardcode the result for Darwin7.
37597         * modules/localcharset (install-exec-local): Don't install
37598         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37599
37600 2009-01-25  Bruno Haible  <bruno@clisp.org>
37601
37602         Don't install charset.alias on mingw and Cygwin.
37603         * modules/localcharset (install-exec-local): Don't install
37604         charset.alias on mingw and Cygwin, if the file does not yet exist.
37605         The result for these platforms is hardcoded in localcharset.c.
37606
37607 2009-01-25  Bruno Haible  <bruno@clisp.org>
37608
37609         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37611         before requiring AC_USE_SYSTEM_EXTENSIONS.
37612
37613 2009-01-25  Jim Meyering  <meyering@redhat.com>
37614
37615         c-strtod: avoid warnings
37616         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37617         "assignment discards qualifiers from pointer target type" warnings.
37618
37619 2009-01-24  Bruno Haible  <bruno@clisp.org>
37620
37621         Add support for non-UTF-8 locales on MacOS X.
37622         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37623         canonical encodings. For Darwin 7 and newer, don't map traditional
37624         encodings to UTF-8.
37625         Reported by Vincent Lefevre <vincent@vinc17.org>
37626         at <http://savannah.gnu.org/bugs/?25235>.
37627
37628 2009-01-24  Bruno Haible  <bruno@clisp.org>
37629
37630         * doc/gnulib.texi (Obsolete modules): New section.
37631         Reported by Mike Frysinger <vapier@gentoo.org>.
37632
37633 2009-01-24  Bruno Haible  <bruno@clisp.org>
37634
37635         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37636         (%.dvi): New rule.
37637
37638 2009-01-24  Bruno Haible  <bruno@clisp.org>
37639
37640         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37641         Reported by Eric Blake.
37642
37643 2009-01-24  Bruno Haible  <bruno@clisp.org>
37644
37645         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37646         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37647         Reported by Gary V. Vaughan <gary@gnu.org>.
37648
37649 2009-01-24  Bruno Haible  <bruno@clisp.org>
37650
37651         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37652
37653 2009-01-23  Bruno Haible  <bruno@clisp.org>
37654
37655         Make c-strtod, c-strtold usable in libraries.
37656         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37657         (C_STRTOD): Call strdup instead of xstrdup.
37658         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37659         * modules/c-strtold (Depends-on): Likewise.
37660         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37661         * NEWS: Mention the change.
37662         Reported by Michael Gold <mgold@ncf.ca>.
37663
37664 2009-01-23  Jim Meyering  <meyering@redhat.com>
37665
37666         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37667         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37668         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37669
37670 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37671
37672         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37673         GNU CoreUtils.
37674         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37675         * modules/version-etc (Description): Update.
37676
37677 2009-01-22  Bruno Haible  <bruno@clisp.org>
37678
37679         Cache the C locale object.
37680         * lib/c-strtod.c (c_locale_cache): New variable.
37681         (c_locale): New function.
37682         (C_STRTOD): Use it, and don't call freelocale.
37683         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37684         Suggested by Paolo Bonzini.
37685
37686 2009-01-21  Bruno Haible  <bruno@clisp.org>
37687
37688         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37689         conditions other than overflow.
37690
37691 2009-01-21  Bruno Haible  <bruno@clisp.org>
37692
37693         * lib/c-strtod.c: Include errno.h.
37694         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37695         value from STRTOD_L and STRTOD.
37696
37697 2009-01-21  Bruno Haible  <bruno@clisp.org>
37698         and Jim Meyering  <meyering@redhat.com>
37699
37700         nanosleep: skip configure test (fail it) for apple universal builds
37701         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37702         universal builds, assume that nanosleep does not work.
37703         * modules/nanosleep (Depends-on): Add multiarch.
37704
37705         mktime: skip configure test (fail it) for apple universal builds
37706         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37707         universal builds, assume that mktime does not work.
37708         * modules/mktime (Depends-on): Add multiarch.
37709
37710 2009-01-21  Eric Blake  <ebb9@byu.net>
37711
37712         multiarch: avoid expand-before-require warning
37713         * modules/multiarch (configure.ac): Require, rather than expand,
37714         gl_MULTIARCH.
37715         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37716         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37717         enforce that all clients require it.  Partial reversion of
37718         2008-12-29 patch.
37719
37720         error: avoid expand-before-require warning
37721         * modules/errno (configure.ac): Require, rather than expand,
37722         gl_HEADER_ERRNO_H.
37723         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37724         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37725         enforce that all clients require it.
37726
37727         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37728         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37729         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37730         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37731
37732 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37733
37734         Revert:
37735         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37736
37737         regex: do not depend on obsolete modules.
37738         * modules/regex: Remove memcmp and memmove.
37739
37740 2009-01-20  Bruno Haible  <bruno@clisp.org>
37741
37742         Make the 'link' module link on Windows NT 4.
37743         * lib/link.c (_WIN32_WINNT): Don't define.
37744         (CreateHardLinkFuncType): New type.
37745         (CreateHardLinkFunc, initialized): New variables.
37746         (initialize): New function.
37747         (link): Invoke CreateHardLink indirectly through the function pointer.
37748
37749 2009-01-20  Bruno Haible  <bruno@clisp.org>
37750
37751         Fix compilation failure on mingw.
37752         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37753
37754 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37755
37756         * doc/c-strtod.texi: Mention a couple of restrictions.
37757
37758 2009-01-20  Jim Meyering  <meyering@redhat.com>
37759
37760         gettimeofday: move more declarations out of functions
37761         * lib/gettimeofday.c: Move extern declarations of tzset and
37762         gmtime out of containing functions.  Prompted by Bruno Haible.
37763
37764 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37765
37766         regex: do not depend on obsolete modules.
37767         * modules/regex: Remove memcmp and memmove.
37768
37769 2009-01-19  Bruno Haible  <bruno@clisp.org>
37770
37771         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37772         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37773         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37774         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37775         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37776
37777 2009-01-19  Bruno Haible  <bruno@clisp.org>
37778
37779         * tests/test-link.c: Include <errno.h>.
37780         (main): Exit with code 77 when a hard link cannot be created due to
37781         the file system.
37782         * tests/test-link.sh: Skip test when a hard link cannot be created due
37783         to the file system.
37784         Suggested by Eric Blake.
37785
37786 2009-01-19  Martin Lambers  <marlam@marlam.de>
37787
37788         * modules/link-tests: New file.
37789         * tests/test-link.sh: New file.
37790         * tests/test-link.c: New file.
37791
37792 2009-01-19  Eric Blake  <ebb9@byu.net>
37793
37794         doc: mention another function added in cygwin 1.7.0
37795         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37796         Another new function in cygwin 1.7.
37797
37798 2009-01-19  Bruno Haible  <bruno@clisp.org>
37799
37800         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37801         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37802         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37803         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37804         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37805         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37806         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37807         * m4/md4.m4 (gl_MD4): Likewise.
37808         * m4/md5.m4 (gl_MD5): Likewise.
37809         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37810         * m4/sha1.m4 (gl_SHA1): Likewise.
37811         * m4/sha256.m4 (gl_SHA256): Likewise.
37812         * m4/sha512.m4 (gl_SHA512): Likewise.
37813
37814 2009-01-19  Bruno Haible  <bruno@clisp.org>
37815
37816         * modules/uniname/uniname-tests (Depends-on): Add progname.
37817         * tests/uniname/test-uninames.c: Include progname.h.
37818         (main): Call set_program_name.
37819
37820         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37821         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37822         (main): Call set_program_name.
37823
37824         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37825         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37826         (main): Call set_program_name.
37827
37828         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37829         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37830         (main): Call set_program_name.
37831
37832         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37833         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37834         (main): Call set_program_name.
37835
37836         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37837         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37838         (main): Call set_program_name.
37839
37840         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37841         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37842         (main): Call set_program_name.
37843
37844         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37845         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37846         (main): Call set_program_name.
37847
37848         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37849         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37850         (main): Call set_program_name.
37851
37852 2009-01-19  Eric Blake  <ebb9@byu.net>
37853
37854         test-unistd: test previous patch
37855         * tests/test-unistd.c: Test *_FILENO macros.
37856
37857         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37858         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37859         Guarantee a definition.
37860         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37861         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37862         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37863         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37864         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37865         Likewise.
37866         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37867         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37868         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37869         Likewise.
37870         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37871         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37872         (STDERR_FILENO): Likewise.
37873         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37874         (STDERR_FILENO): Likewise.
37875         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37876         (STDERR_FILENO): Likewise.
37877         Reported by Elbert Pol.
37878
37879 2009-01-19  Eric Blake  <ebb9@byu.net>
37880
37881         doc: mention more functions added in cygwin 1.7.0
37882         * doc/posix-functions/abort.texi (abort): Update wording related
37883         to cygwin.
37884         * doc/posix-functions/daylight.texi (daylight): Likewise.
37885         * doc/posix-functions/optarg.texi (optarg): Likewise.
37886         * doc/posix-functions/optarg.texi (opterr): Likewise.
37887         * doc/posix-functions/optarg.texi (optind): Likewise.
37888         * doc/posix-functions/optarg.texi (optopt): Likewise.
37889         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37890         worked in 1.5.x, and was withdrawn in 1.7.
37891         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37892         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37893         cygwin versions.
37894         * doc/posix-functions/perror.texi (perror): Likewise.
37895         * doc/posix-functions/printf.texi (printf): Likewise.
37896         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37897         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37898         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37899         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37900         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37901         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37902         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37903         Likewise.
37904         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37905         Likewise.
37906         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37907         this function.
37908         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37909         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37910         Likewise.
37911         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37912         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37913         * doc/posix-functions/confstr.texi (confstr): Likewise.
37914         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37915         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37916         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37917         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37918         * doc/posix-functions/fputws.texi (fputws): Likewise.
37919         * doc/posix-functions/fwide.texi (fwide): Likewise.
37920         * doc/posix-functions/getwc.texi (getwc): Likewise.
37921         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37922         * doc/posix-functions/putwc.texi (putwc): Likewise.
37923         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37924         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37925         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37926         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37927         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37928         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37929         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37930         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37931         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37932         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37933         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37934
37935 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37936
37937         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37938         * lib/ioctl.c: Include <sys/ioctl.h>.
37939
37940 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37941
37942         * modules/getdate-tests (Depends-on): Add progname.
37943         * tests/test-getdate.c: Use progname module, to avoid link errors
37944         on non-glibc systems.
37945
37946 2009-01-18  Simon Josefsson  <simon@josefsson.org>
37947
37948         * modules/filenamecat-tests (Depends-on): Add progname.
37949         * modules/fstrcmp-tests (Depends-on): Likewise.
37950
37951         * tests/test-filenamecat.c: Use progname module, to avoid link
37952         errors on non-glibc systems.
37953         * tests/test-fstrcmp.c: Likewise.
37954
37955 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37956
37957         gettimeofday: avoid warning: nested extern declaration of 'localtime'
37958         * lib/gettimeofday.c: Move extern declaration out of function.
37959
37960 2009-01-18  Bruno Haible  <bruno@clisp.org>
37961
37962         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
37963         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
37964         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
37965
37966 2009-01-18  Bruno Haible  <bruno@clisp.org>
37967
37968         * lib/strftime.c (MEMPCPY): Remove unused macro.
37969         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
37970
37971 2009-01-18  Martin Lambers  <marlam@marlam.de>
37972
37973         New module 'link'.
37974         * lib/unistd.in.h (link): New declaration.
37975         * lib/link.c: New file.
37976         * m4/link.m4: New file.
37977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
37978         HAVE_LINK.
37979         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
37980         * modules/link: New file.
37981         * doc/posix-functions/link.texi: Mention the new module.
37982
37983 2009-01-18  Bruno Haible  <bruno@clisp.org>
37984
37985         * tests/test-avltree_list.c (main): Call set_program_name.
37986         * tests/test-avltree_oset.c (main): Likewise.
37987         * tests/test-obstack-printf.c: Include progname.h.
37988         (main): Call set_program_name.
37989         * tests/test-quotearg.c: Include progname.h.
37990         (main): Call set_program_name.
37991         * tests/test-xmemdup0.c: Include progname.h.
37992         (main): Call set_program_name.
37993
37994 2009-01-18  Bruno Haible  <bruno@clisp.org>
37995
37996         New module 'alphasort'.
37997         * lib/dirent.in.h (alphasort): New declaration.
37998         * lib/alphasort.c: New file, from glibc with modifications.
37999         * m4/alphasort.m4: New file.
38000         * modules/alphasort: New file.
38001         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38002         HAVE_ALPHASORT.
38003         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38004         HAVE_ALPHASORT.
38005         * doc/posix-functions/alphasort.texi: Mention the new module and the
38006         portability problems.
38007
38008 2009-01-18  Bruno Haible  <bruno@clisp.org>
38009
38010         New module 'scandir'.
38011         * lib/dirent.in.h (scandir): New declaration.
38012         * lib/scandir.c: New file, from glibc with modifications.
38013         * m4/scandir.m4: New file.
38014         * modules/scandir: New file.
38015         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38016         HAVE_SCANDIR.
38017         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38018         HAVE_SCANDIR.
38019         * doc/posix-functions/scandir.texi: Mention the new module and the
38020         portability problems.
38021
38022 2009-01-17  Bruno Haible  <bruno@clisp.org>
38023
38024         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38025         Update documentation.
38026         (func_remove_suffix): Escape all dots in the suffix. Update
38027         documentation.
38028         (func_filter_filelist): Update documentation.
38029         Reported by Ralf Wildenhues.
38030
38031 2009-01-17  Bruno Haible  <bruno@clisp.org>
38032
38033         * modules/dprintf-posix-tests: New file.
38034         * tests/test-dprintf-posix.sh: New file.
38035         * tests/test-dprintf-posix.c: New file.
38036
38037         New modules 'dprintf', 'dprintf-posix'.
38038         * lib/stdio.in.h (dprintf): New declaration.
38039         * lib/dprintf.c: New file.
38040         * m4/dprintf.m4: New file.
38041         * m4/dprintf-posix.m4: New file.
38042         * modules/dprintf: New file.
38043         * modules/dprintf-posix: New file.
38044         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38045         HAVE_DPRINTF, REPLACE_DPRINTF.
38046         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38047         HAVE_DPRINTF, REPLACE_DPRINTF.
38048         * doc/posix-functions/dprintf.texi: Mention the new modules.
38049
38050 2009-01-17  Bruno Haible  <bruno@clisp.org>
38051
38052         * modules/vdprintf-posix-tests: New file.
38053         * tests/test-vdprintf-posix.sh: New file.
38054         * tests/test-vdprintf-posix.c: New file.
38055
38056         New modules 'vdprintf', 'vdprintf-posix'.
38057         * lib/stdio.in.h (vdprintf): New declaration.
38058         * lib/vdprintf.c: New file.
38059         * m4/vdprintf.m4: New file.
38060         * m4/vdprintf-posix.m4: New file.
38061         * modules/vdprintf: New file.
38062         * modules/vdprintf-posix: New file.
38063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38064         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38065         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38066         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38067         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38068
38069 2009-01-17  Bruno Haible  <bruno@clisp.org>
38070
38071         Fix replacement of fopen on mingw.
38072         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38073         mingw.
38074
38075 2009-01-17  Bruno Haible  <bruno@clisp.org>
38076
38077         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38078         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38079
38080 2009-01-17  Bruno Haible  <bruno@clisp.org>
38081
38082         Avoid test-fflush2.sh failure on mingw.
38083         * tests/test-fflush2.c: Include binary-io.h.
38084         (main): Put standard input into binary mode.
38085         * modules/fflush-tests (Depends-on): Add binary-io.
38086
38087 2009-01-17  Bruno Haible  <bruno@clisp.org>
38088
38089         * lib/wchar.in.h: In another particular situation, include only the
38090         system's <wchar.h> file.
38091         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38092         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38093         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38094
38095 2009-01-17  Bruno Haible  <bruno@clisp.org>
38096
38097         Support for stripping executables in --enable-relocatable.
38098         * build-aux/install-reloc: Expect one more argument, or an environment
38099         variable RELOC_STRIP_PROG. If set, strip the destination program and
38100         its wrapper.
38101         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38102         RELOC_STRIP_PROG.
38103         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38104         to set RELOCATABLE_STRIP.
38105         * NEWS: Mention the new Makefile requirement.
38106
38107 2009-01-17  Bruno Haible  <bruno@clisp.org>
38108
38109         * build-aux/install-reloc: Remove debugging information left over by
38110         C compiler on MacOS X.
38111
38112 2009-01-17  Bruno Haible  <bruno@clisp.org>
38113
38114         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38115         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38116         _NSGetExecutablePath.
38117
38118 2009-01-16  Jim Meyering  <meyering@redhat.com>
38119
38120         strerror: avoid warnings about discarding "const"
38121         * lib/strerror.c (rpl_strerror): Instead of returning a const
38122         string from each and every "case", use a variable, and add a single
38123         cast after the switch.
38124
38125 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38126
38127         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38128
38129 2009-01-16  Bruno Haible  <bruno@clisp.org>
38130
38131         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38132         array initializer syntax that also works in C++ mode.
38133         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38134
38135 2009-01-16  Jim Meyering  <meyering@redhat.com>
38136
38137         poll: suppress a warning
38138         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38139         to ignore "...unsigned expression < 0 is always false" warnings.
38140
38141 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38142
38143         poll: remove declarations of unused variables
38144         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38145         sockbuf and optlen.
38146
38147 2009-01-15  Bruno Haible  <bruno@clisp.org>
38148
38149         Make fflush-after-ungetc POSIX compliant on BSD systems.
38150         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38151         (clear_ungetc_buffer): Implement also for other systems.
38152         (rpl_fflush): On glibc systems, invoke
38153         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38154         clear_ungetc_buffer after fetching the stream's position, not before.
38155
38156 2009-01-15  Bruno Haible  <bruno@clisp.org>
38157
38158         Make fflush-after-ungetc POSIX compliant on glibc systems.
38159         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38160         after ungetc.
38161         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38162         (rpl_fflush): On glibc systems, simply call the system's fflush
38163         function after clearing the ungetc buffer.
38164         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38165         Instead, lseek only to the end of file, then use the system's fseeko
38166         for the rest. On glibc systems, reset the EOF indicator bit.
38167
38168 2009-01-15  Jim Meyering  <meyering@redhat.com>
38169
38170         openmp.m4: revert quote-adding change, for portability to older autoconf
38171         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38172         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38173         Simon Josefsson noticed the problem when using autoconf-2.61.
38174
38175 2009-01-15  Bruno Haible  <bruno@clisp.org>
38176
38177         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38178         * tests/test-fflush2.c (ASSERT): Always fail.
38179         (main): Add two tests for fflush() after ungetc(), taking into account
38180         the Austin Group's clarification.
38181         Suggested by Eric Blake.
38182
38183 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38184
38185         mktime.m4: remove K&R-style function prototypes
38186         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38187         for the Sun C++ compiler.
38188
38189 2009-01-14  Bruno Haible  <bruno@clisp.org>
38190
38191         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38192         while including <wchar.h>.
38193         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38194         the system's <wchar.h> file.
38195         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38196
38197 2009-01-14  Bruno Haible  <bruno@clisp.org>
38198
38199         * m4/csharp.m4: Don't mention gettext on the serial number line.
38200         * m4/csharpexec.m4: Likewise.
38201         * m4/eaccess.m4: Likewise.
38202         * m4/javaexec.m4: Likewise.
38203         * m4/sig_atomic_t.m4: Likewise.
38204         * m4/tmpdir.m4: Likewise.
38205         * m4/intldir.m4: Bump gettext version.
38206         * m4/lib-ld.m4: Likewise.
38207
38208 2009-01-14  Bruno Haible  <bruno@clisp.org>
38209
38210         * lib/progname.c (set_program_name): Add more comments.
38211         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38212
38213 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38214
38215         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38216         were sys/stat.h does not define it.
38217
38218 2009-01-14  Jim Meyering  <meyering@redhat.com>
38219
38220         many *.m4 files: improve m4 quoting
38221         99% of this change was performed by running the following commands:
38222         git ls-files | grep '\.m4$' | xargs perl -pi \
38223           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38224           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38225           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38226           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38227         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38228         The remainder were to add Copyright dates, increment serial numbers,
38229         undo some changes in comments, exclude m4/intl.m4, and add quotes
38230         around the "1" in ",1" where the unusual spacing prohibited the
38231         above regexps from doing the job.  For more details, see
38232         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38233         * m4/acl.m4: Modified.
38234         * m4/afs.m4: Likewise.
38235         * m4/alloca.m4: Likewise.
38236         * m4/argp.m4: Likewise.
38237         * m4/argz.m4: Likewise.
38238         * m4/atexit.m4: Likewise.
38239         * m4/bison-i18n.m4: Likewise.
38240         * m4/bison.m4: Likewise.
38241         * m4/byteswap.m4: Likewise.
38242         * m4/c-stack.m4: Likewise.
38243         * m4/c-strtod.m4: Likewise.
38244         * m4/calloc.m4: Likewise.
38245         * m4/canonicalize-lgpl.m4: Likewise.
38246         * m4/chown.m4: Likewise.
38247         * m4/clock_time.m4: Likewise.
38248         * m4/codeset.m4: Likewise.
38249         * m4/copy-file.m4: Likewise.
38250         * m4/csharp.m4: Likewise.
38251         * m4/csharpcomp.m4: Likewise.
38252         * m4/csharpexec.m4: Likewise.
38253         * m4/d-ino.m4: Likewise.
38254         * m4/d-type.m4: Likewise.
38255         * m4/dirfd.m4: Likewise.
38256         * m4/double-slash-root.m4: Likewise.
38257         * m4/eaccess.m4: Likewise.
38258         * m4/eealloc.m4: Likewise.
38259         * m4/environ.m4: Likewise.
38260         * m4/errno_h.m4: Likewise.
38261         * m4/euidaccess.m4: Likewise.
38262         * m4/execute.m4: Likewise.
38263         * m4/fatal-signal.m4: Likewise.
38264         * m4/fchdir.m4: Likewise.
38265         * m4/fcntl_h.m4: Likewise.
38266         * m4/fileblocks.m4: Likewise.
38267         * m4/filenamecat.m4: Likewise.
38268         * m4/findprog.m4: Likewise.
38269         * m4/flexmember.m4: Likewise.
38270         * m4/fnmatch.m4: Likewise.
38271         * m4/fopen.m4: Likewise.
38272         * m4/fpending.m4: Likewise.
38273         * m4/fprintf-posix.m4: Likewise.
38274         * m4/free.m4: Likewise.
38275         * m4/frexp.m4: Likewise.
38276         * m4/frexpl.m4: Likewise.
38277         * m4/fsusage.m4: Likewise.
38278         * m4/ftruncate.m4: Likewise.
38279         * m4/gc-camellia.m4: Likewise.
38280         * m4/gc-random.m4: Likewise.
38281         * m4/gc.m4: Likewise.
38282         * m4/getaddrinfo.m4: Likewise.
38283         * m4/getcwd-abort-bug.m4: Likewise.
38284         * m4/getcwd-path-max.m4: Likewise.
38285         * m4/getdate.m4: Likewise.
38286         * m4/getdomainname.m4: Likewise.
38287         * m4/getgroups.m4: Likewise.
38288         * m4/gethostname.m4: Likewise.
38289         * m4/gethrxtime.m4: Likewise.
38290         * m4/getline.m4: Likewise.
38291         * m4/getloadavg.m4: Likewise.
38292         * m4/getndelim2.m4: Likewise.
38293         * m4/getpass.m4: Likewise.
38294         * m4/gettext.m4: Likewise.
38295         * m4/gettime.m4: Likewise.
38296         * m4/gettimeofday.m4: Likewise.
38297         * m4/gnulib-common.m4: Likewise.
38298         * m4/group-member.m4: Likewise.
38299         * m4/host-os.m4: Likewise.
38300         * m4/iconv.m4: Likewise.
38301         * m4/iconv_open.m4: Likewise.
38302         * m4/inet_ntop.m4: Likewise.
38303         * m4/inet_pton.m4: Likewise.
38304         * m4/inline.m4: Likewise.
38305         * m4/intldir.m4: Likewise.
38306         * m4/intlmacosx.m4: Likewise.
38307         * m4/intmax.m4: Likewise.
38308         * m4/intmax_t.m4: Likewise.
38309         * m4/inttypes.m4: Likewise.
38310         * m4/inttypes_h.m4: Likewise.
38311         * m4/inttypes-pri.m4: Likewise.
38312         * m4/isapipe.m4: Likewise.
38313         * m4/isnand.m4: Likewise.
38314         * m4/isnanf.m4: Likewise.
38315         * m4/isnanl.m4: Likewise.
38316         * m4/javacomp.m4: Likewise.
38317         * m4/javaexec.m4: Likewise.
38318         * m4/jm-winsz1.m4: Likewise.
38319         * m4/jm-winsz2.m4: Likewise.
38320         * m4/lchown.m4: Likewise.
38321         * m4/lcmessage.m4: Likewise.
38322         * m4/ldexpl.m4: Likewise.
38323         * m4/lib-ld.m4: Likewise.
38324         * m4/lib-link.m4: Likewise.
38325         * m4/libsigsegv.m4: Likewise.
38326         * m4/link-follow.m4: Likewise.
38327         * m4/localcharset.m4: Likewise.
38328         * m4/locale-fr.m4: Likewise.
38329         * m4/locale-ja.m4: Likewise.
38330         * m4/locale-tr.m4: Likewise.
38331         * m4/locale-zh.m4: Likewise.
38332         * m4/lock.m4: Likewise.
38333         * m4/longlong.m4: Likewise.
38334         * m4/ls-mntd-fs.m4: Likewise.
38335         * m4/lstat.m4: Likewise.
38336         * m4/malloc.m4: Likewise.
38337         * m4/mathl.m4: Likewise.
38338         * m4/mbrtowc.m4: Likewise.
38339         * m4/mbstate_t.m4: Likewise.
38340         * m4/mbswidth.m4: Likewise.
38341         * m4/memchr.m4: Likewise.
38342         * m4/memcmp.m4: Likewise.
38343         * m4/memcpy.m4: Likewise.
38344         * m4/memmem.m4: Likewise.
38345         * m4/memmove.m4: Likewise.
38346         * m4/mempcpy.m4: Likewise.
38347         * m4/memrchr.m4: Likewise.
38348         * m4/memset.m4: Likewise.
38349         * m4/minmax.m4: Likewise.
38350         * m4/mkdir-slash.m4: Likewise.
38351         * m4/mkdtemp.m4: Likewise.
38352         * m4/mktime.m4: Likewise.
38353         * m4/mmap-anon.m4: Likewise.
38354         * m4/mountlist.m4: Likewise.
38355         * m4/nanosleep.m4: Likewise.
38356         * m4/nls.m4: Likewise.
38357         * m4/nocrash.m4: Likewise.
38358         * m4/open.m4: Likewise.
38359         * m4/openat.m4: Likewise.
38360         * m4/openmp.m4: Likewise.
38361         * m4/pathmax.m4: Likewise.
38362         * m4/perl.m4: Likewise.
38363         * m4/physmem.m4: Likewise.
38364         * m4/pipe.m4: Likewise.
38365         * m4/po.m4: Likewise.
38366         * m4/poll.m4: Likewise.
38367         * m4/posixtm.m4: Likewise.
38368         * m4/posixver.m4: Likewise.
38369         * m4/printf-frexp.m4: Likewise.
38370         * m4/printf-frexpl.m4: Likewise.
38371         * m4/printf-posix.m4: Likewise.
38372         * m4/printf-posix-rpl.m4: Likewise.
38373         * m4/printf.m4: Likewise.
38374         * m4/progtest.m4: Likewise.
38375         * m4/putenv.m4: Likewise.
38376         * m4/readline.m4: Likewise.
38377         * m4/readlink.m4: Likewise.
38378         * m4/readutmp.m4: Likewise.
38379         * m4/realloc.m4: Likewise.
38380         * m4/regex.m4: Likewise.
38381         * m4/relocatable.m4: Likewise.
38382         * m4/relocatable-lib.m4: Likewise.
38383         * m4/rename-dest-slash.m4: Likewise.
38384         * m4/rename.m4: Likewise.
38385         * m4/rmdir-errno.m4: Likewise.
38386         * m4/rmdir.m4: Likewise.
38387         * m4/roundf.m4: Likewise.
38388         * m4/roundl.m4: Likewise.
38389         * m4/rpmatch.m4: Likewise.
38390         * m4/save-cwd.m4: Likewise.
38391         * m4/selinux-selinux-h.m4: Likewise.
38392         * m4/setenv.m4: Likewise.
38393         * m4/settime.m4: Likewise.
38394         * m4/sig2str.m4: Likewise.
38395         * m4/sig_atomic_t.m4: Likewise.
38396         * m4/signalblocking.m4: Likewise.
38397         * m4/signbit.m4: Likewise.
38398         * m4/sigpipe.m4: Likewise.
38399         * m4/sockets.m4: Likewise.
38400         * m4/sockpfaf.m4: Likewise.
38401         * m4/st_dm_mode.m4: Likewise.
38402         * m4/stat-time.m4: Likewise.
38403         * m4/stdbool.m4: Likewise.
38404         * m4/stdint.m4: Likewise.
38405         * m4/stdint_h.m4: Likewise.
38406         * m4/stpcpy.m4: Likewise.
38407         * m4/stpncpy.m4: Likewise.
38408         * m4/strcase.m4: Likewise.
38409         * m4/strchrnul.m4: Likewise.
38410         * m4/strcspn.m4: Likewise.
38411         * m4/strdup.m4: Likewise.
38412         * m4/strftime.m4: Likewise.
38413         * m4/strndup.m4: Likewise.
38414         * m4/strnlen.m4: Likewise.
38415         * m4/strpbrk.m4: Likewise.
38416         * m4/strptime.m4: Likewise.
38417         * m4/strsep.m4: Likewise.
38418         * m4/strtod.m4: Likewise.
38419         * m4/strtoimax.m4: Likewise.
38420         * m4/strtok_r.m4: Likewise.
38421         * m4/strtol.m4: Likewise.
38422         * m4/strtoll.m4: Likewise.
38423         * m4/strtoul.m4: Likewise.
38424         * m4/strtoull.m4: Likewise.
38425         * m4/strtoumax.m4: Likewise.
38426         * m4/strverscmp.m4: Likewise.
38427         * m4/threadlib.m4: Likewise.
38428         * m4/timegm.m4: Likewise.
38429         * m4/tm_gmtoff.m4: Likewise.
38430         * m4/tmpdir.m4: Likewise.
38431         * m4/tmpfile.m4: Likewise.
38432         * m4/tzset.m4: Likewise.
38433         * m4/uintmax_t.m4: Likewise.
38434         * m4/unlinkdir.m4: Likewise.
38435         * m4/unlocked-io.m4: Likewise.
38436         * m4/uptime.m4: Likewise.
38437         * m4/userspec.m4: Likewise.
38438         * m4/utimbuf.m4: Likewise.
38439         * m4/utime.m4: Likewise.
38440         * m4/utimes-null.m4: Likewise.
38441         * m4/utimes.m4: Likewise.
38442         * m4/vararrays.m4: Likewise.
38443         * m4/vasnprintf.m4: Likewise.
38444         * m4/vfprintf-posix.m4: Likewise.
38445         * m4/vprintf-posix.m4: Likewise.
38446         * m4/wait-process.m4: Likewise.
38447         * m4/wchar_t.m4: Likewise.
38448         * m4/wint_t.m4: Likewise.
38449         * m4/write-any-file.m4: Likewise.
38450         * m4/yield.m4: Likewise.
38451
38452 2009-01-13  Bruno Haible  <bruno@clisp.org>
38453
38454         Avoid test-copy-file.sh failures when ACL support insufficient.
38455         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38456         TESTS_ENVIRONMENT.
38457         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38458         Reported by Jim Meyering.
38459
38460 2009-01-13  Bruno Haible  <bruno@clisp.org>
38461
38462         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38463         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38464         * modules/unistdio/u8-printf-parse (Files): Likewise.
38465         * modules/unistdio/u32-printf-parse (Files): Likewise.
38466         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38467
38468 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38469
38470         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38471         and m4/inttypes_h.m4 too.
38472
38473 2009-01-12  Eric Blake  <ebb9@byu.net>
38474
38475         tests: IRIX 6.2 cc can't compile -0.0 into .data
38476         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38477         rather than at compile-time.
38478         * tests/test-floorl.c (minus_zero): Likewise.
38479         * tests/test-frexpl.c (minus_zero): Likewise.
38480         * tests/test-isnan.c (minus_zerol): Likewise.
38481         * tests/test-isnanl.h (minus_zero): Likewise.
38482         * tests/test-ldexpl.c (minus_zero): Likewise.
38483         * tests/test-roundl.c (minus_zero): Likewise.
38484         * tests/test-signbit.c (minus_zerol): Likewise.
38485         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38486         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38487         * tests/test-truncl.c (minus_zero): Likewise.
38488         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38489         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38490         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38491
38492 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38493
38494         regex: fix glibc bug 9697
38495         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38496         handling.
38497
38498 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38499
38500         regex: fix glibc bug 697
38501         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38502         being NULL also if there are no backreferences.
38503
38504 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38505
38506         regex: merge glibc changes
38507         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38508         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38509         re_string_skip_chars, re_string_reconstruct): Likewise.
38510         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38511
38512 2009-01-07  Jim Meyering  <meyering@redhat.com>
38513
38514         poll: filter through cppi
38515         * lib/poll.c: Indent cpp directives to reflect nesting.
38516
38517 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38518
38519         poll: don't return uninitialized
38520         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38521
38522 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38523
38524         avoid compile failure on AIX 6.1
38525         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38526         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38527
38528 2009-01-04  Jim Meyering  <meyering@redhat.com>
38529
38530         remove duplicate inclusion of <stdio.h>
38531         * tests/test-fprintf-posix.c: Likewise.
38532         * tests/test-printf-posix.c: Likewise.
38533         * tests/test-snprintf-posix.c: Likewise.
38534         * tests/test-sprintf-posix.c: Likewise.
38535         * tests/test-vasprintf-posix.c: Likewise.
38536         * tests/test-vfprintf-posix.c: Likewise.
38537         * tests/test-vprintf-posix.c: Likewise.
38538         * tests/test-vsnprintf-posix.c: Likewise.
38539         * tests/test-vsprintf-posix.c: Likewise.
38540
38541 2009-01-03  Jim Meyering  <meyering@redhat.com>
38542
38543         gnulib-tool: fix sed-based filtering
38544         * gnulib-tool (func_filter_filelist): Remove extra backslash
38545         in sed_fff_filter definition.
38546
38547 2009-01-02  Jim Meyering  <meyering@redhat.com>
38548
38549         strftime: avoid compilation failure on Solaris 2.6
38550         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38551         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38552         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38553         be available.  Reported by Tom G. Christensen.  Details in
38554         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38555
38556 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38557             Bruno Haible  <bruno@clisp.org>
38558
38559         Speed up gnulib-tool by doing more string processing through shell
38560         built-ins.
38561         * gnulib-tool (fast_func_append): New variable.
38562         (func_remove_prefix, func_remove_suffix): New functions.
38563         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38564         (func_filter_filelist): New function.
38565         (func_get_dependencies): Use func_remove_suffix instead of sed.
38566         (func_get_automake_snippet): Use func_filter_filelist instead of a
38567         subshell and sed invocation.
38568
38569 2009-01-01  Bruno Haible  <bruno@clisp.org>
38570
38571         Fix a security bug.
38572         * gnulib-tool (func_import, import, update): Don't allow the characters
38573         '"', '$', '`', '\' in macro arguments that become part of commands that
38574         are evaluated.
38575
38576 2009-01-01  Bruno Haible  <bruno@clisp.org>
38577
38578         * gnulib-tool (func_reset_sigpipe): Add more comments.
38579
38580 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38581
38582         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38583         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38584         already know the answer.
38585
38586 2009-01-01  Jim Meyering  <meyering@redhat.com>
38587
38588         * lib/version-etc.c (version_etc_va): Update copyright year.
38589
38590 2008-12-30  Bruno Haible  <bruno@clisp.org>
38591
38592         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38593         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38594         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38595
38596 2008-12-29  Eric Blake  <ebb9@byu.net>
38597
38598         multiarch: avoid autoconf AC_REQUIRE bug
38599         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38600         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38601         2.63 and older.
38602         Reported by Bruno Haible, and analyzed in
38603         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38604
38605 2008-12-29  Bruno Haible  <bruno@clisp.org>
38606
38607         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38608         files in subdirectories correctly.
38609         Reported by Ralf Wildenhues.
38610
38611 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38612
38613         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38614         rather than 'join FILE -', for Solaris join.
38615
38616 2008-12-29  Bruno Haible  <bruno@clisp.org>
38617
38618         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38619         quoting.
38620         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38621         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38622         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38623         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38624         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38625         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38626         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38627         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38628         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38629         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38630         * m4/nls.m4 (AM_NLS): Likewise.
38631         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38632         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38633         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38634         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38635         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38636         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38637         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38638         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38639         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38640         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38641         * m4/xsize.m4 (gl_XSIZE): Likewise.
38642         Suggested by Jim Meyering.
38643
38644 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38645
38646         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38647         * lib/parse-duration.c: use a switch instead of cascading if's.
38648
38649 2008-12-29  Eric Blake  <ebb9@byu.net>
38650
38651         wchar.h: supply WEOF on Irix 5.3
38652         * lib/wchar.in.h (wint_t): Also supply WEOF.
38653         * lib/wctype.in.h (wint_t): Likewise.
38654         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38655         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38656         Reported by Tom G. Christensen.
38657
38658 2008-12-26  Bruno Haible  <bruno@clisp.org>
38659
38660         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38661         i486, i586, i686.
38662
38663 2008-12-26  Bruno Haible  <bruno@clisp.org>
38664
38665         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38666
38667 2008-12-26  Bruno Haible  <bruno@clisp.org>
38668
38669         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38670         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38671         not __STDC_CONSTANT_MACROS.
38672         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38673
38674 2008-12-25  Bruno Haible  <bruno@clisp.org>
38675
38676         Add support for universal builds to vasnprintf.
38677         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38678         universal builds, guess no.
38679         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38680         * modules/vasprintf-posix (Depends-on): Likewise.
38681         * modules/fprintf-posix (Depends-on): Likewise.
38682         * modules/vfprintf-posix (Depends-on): Likewise.
38683         * modules/snprintf-posix (Depends-on): Likewise.
38684         * modules/vsnprintf-posix (Depends-on): Likewise.
38685         * modules/sprintf-posix (Depends-on): Likewise.
38686         * modules/vsprintf-posix (Depends-on): Likewise.
38687         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38688         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38689         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38690         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38691         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38692         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38693         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38694
38695         Add support for universal builds to <inttypes.h>.
38696         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38697         _SCNu64_PREFIX): In Apple
38698         universal builds, define directly, using _LP64.
38699         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38700         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38701         * modules/inttypes (Depends-on): Add multiarch.
38702         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38703
38704         Add support for universal builds to <stdint.h>.
38705         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38706         universal builds, define directly, using _LP64.
38707         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38708         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38709         and size_t.
38710         * modules/stdint (Depends-on): Add multiarch.
38711         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38712
38713         New module 'multiarch'.
38714         * modules/multiarch: New file.
38715         * m4/multiarch.m4: New file.
38716
38717 2008-12-25  Bruno Haible  <bruno@clisp.org>
38718
38719         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38720
38721 2008-12-25  Bruno Haible  <bruno@clisp.org>
38722
38723         * modules/btowc (License): Relicense under LGPLv2+.
38724         * modules/mbsinit (License): Likewise.
38725         * modules/mbrtowc (License): Likewise.
38726         * modules/wcrtomb (License): Likewise.
38727         * modules/streq (License): Likewise.
38728         Reported by David Lutterkort <lutter@redhat.com>.
38729
38730 2008-12-23  Bruno Haible  <bruno@clisp.org>
38731
38732         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38733
38734 2008-12-23  Bruno Haible  <bruno@clisp.org>
38735
38736         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38737         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38738         GETADDRINFO_LIB, not in LIBS.
38739         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38740         * modules/canon-host (Link): Likewise.
38741         * NEWS: Mention the change.
38742         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38743         GETADDRINFO_LIB.
38744
38745 2008-12-22  Bruno Haible  <bruno@clisp.org>
38746
38747         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38748         * doc/posix-functions/iswalpha_l.texi: Likewise.
38749         * doc/posix-functions/iswblank_l.texi: Likewise.
38750         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38751         * doc/posix-functions/iswctype_l.texi: Likewise.
38752         * doc/posix-functions/iswdigit_l.texi: Likewise.
38753         * doc/posix-functions/iswgraph_l.texi: Likewise.
38754         * doc/posix-functions/iswlower_l.texi: Likewise.
38755         * doc/posix-functions/iswprint_l.texi: Likewise.
38756         * doc/posix-functions/iswpunct_l.texi: Likewise.
38757         * doc/posix-functions/iswspace_l.texi: Likewise.
38758         * doc/posix-functions/iswupper_l.texi: Likewise.
38759         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38760         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38761         * doc/posix-functions/open_wmemstream.texi: Likewise.
38762         * doc/posix-functions/swscanf.texi: Likewise.
38763         * doc/posix-functions/towctrans_l.texi: Likewise.
38764         * doc/posix-functions/towlower.texi: Likewise.
38765         * doc/posix-functions/towlower_l.texi: Likewise.
38766         * doc/posix-functions/towupper.texi: Likewise.
38767         * doc/posix-functions/towupper_l.texi: Likewise.
38768         * doc/posix-functions/vfwprintf.texi: Likewise.
38769         * doc/posix-functions/vfwscanf.texi: Likewise.
38770         * doc/posix-functions/vswscanf.texi: Likewise.
38771         * doc/posix-functions/vwprintf.texi: Likewise.
38772         * doc/posix-functions/vwscanf.texi: Likewise.
38773         * doc/posix-functions/wcpcpy.texi: Likewise.
38774         * doc/posix-functions/wcpncpy.texi: Likewise.
38775         * doc/posix-functions/wcscasecmp.texi: Likewise.
38776         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38777         * doc/posix-functions/wcscoll_l.texi: Likewise.
38778         * doc/posix-functions/wcsdup.texi: Likewise.
38779         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38780         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38781         * doc/posix-functions/wcsnlen.texi: Likewise.
38782         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38783         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38784         * doc/posix-functions/wctrans_l.texi: Likewise.
38785         * doc/posix-functions/wctype_l.texi: Likewise.
38786         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38787         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38788         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38789         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38790         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38791         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38792         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38793         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38794         * doc/glibc-functions/wcschrnul.texi: Likewise.
38795         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38796         * doc/glibc-functions/wcstod_l.texi: Likewise.
38797         * doc/glibc-functions/wcstof_l.texi: Likewise.
38798         * doc/glibc-functions/wcstol_l.texi: Likewise.
38799         * doc/glibc-functions/wcstold_l.texi: Likewise.
38800         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38801         * doc/glibc-functions/wcstoq.texi: Likewise.
38802         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38803         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38804         * doc/glibc-functions/wcstouq.texi: Likewise.
38805         * doc/glibc-functions/wmempcpy.texi: Likewise.
38806
38807 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38808             Eric Blake  <ebb9@byu.net>
38809             Paolo Bonzini  <bonzini@gnu.org>
38810             Bruno Haible  <bruno@clisp.org>
38811
38812         Make c-stack work on Haiku.
38813         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38814         (c_stack_action): Use SA_ONSTACK flag.
38815
38816 2008-12-22  Bruno Haible  <bruno@clisp.org>
38817
38818         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38819
38820 2008-12-22  Bruno Haible  <bruno@clisp.org>
38821
38822         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38823         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38824         being overridden.
38825         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38826         New macros.
38827         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38828         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38829         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38830         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38831
38832 2008-12-22  Bruno Haible  <bruno@clisp.org>
38833
38834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38835         from test code.
38836
38837 2008-12-22  Eric Blake  <ebb9@byu.net>
38838
38839         Avoid gcc warnings on cygwin.
38840         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38841         Avoid unused variable.
38842         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38843         Likewise.
38844
38845 2008-12-22  Bruno Haible  <bruno@clisp.org>
38846
38847         Remove HAVE_MBRTOWC conditionals.
38848         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38849         (mbscasecmp): Assume mbrtowc function.
38850         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38851         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38852         * lib/mbschr.c: Include mbuiter.h unconditionally.
38853         (mbschr): Assume mbrtowc function.
38854         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38855         (mbscspn): Assume mbrtowc function.
38856         * lib/mbslen.c: Include mbuiter.h unconditionally.
38857         (mbslen): Assume mbrtowc function.
38858         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38859         (mbsncasecmp): Assume mbrtowc function.
38860         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38861         (mbsnlen): Assume mbrtowc function.
38862         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38863         (mbspbrk): Assume mbrtowc function.
38864         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38865         (mbspcasecmp): Assume mbrtowc function.
38866         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38867         (mbsrchr): Assume mbrtowc function.
38868         * lib/mbssep.c: Include mbuiter.h unconditionally.
38869         (mbssep): Assume mbrtowc function.
38870         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38871         (mbsspn): Assume mbrtowc function.
38872         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38873         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38874         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38875         (mbstok_r): Assume mbrtowc function.
38876         * lib/propername.c: Include mbuiter.h unconditionally.
38877         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38878         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38879         (trim2): Assume mbrtowc function.
38880         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38881         (mbsnwidth): Assume mbrtowc function.
38882         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38883         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38884         fallback definitions.
38885         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38886
38887 2008-12-22  Bruno Haible  <bruno@clisp.org>
38888
38889         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38890
38891 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38892
38893         * modules/regex: Request emulations for the mb*/wc* functions we need.
38894         * m4/regex.m4: Don't look for those functions here.
38895         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38896
38897 2008-12-22  Bruno Haible  <bruno@clisp.org>
38898
38899         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38900
38901 2008-12-21  Bruno Haible  <bruno@clisp.org>
38902
38903         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38904         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38905         (Include): Remove conditionalization.
38906         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38907         (Include): Remove conditionalization.
38908         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38909         (Include): Remove conditionalization.
38910         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38911         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38912         * NEWS: Mention the change.
38913         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38914         via Sergey Poznyakoff <gray@gnu.org.ua>.
38915
38916 2008-12-21  Bruno Haible  <bruno@clisp.org>
38917
38918         * MODULES.html.sh (Extended multibyte and wide character utilities
38919         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38920         wcrtomb, wcsrtombs.
38921         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38922         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38923         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38924         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38925
38926 2008-12-21  Bruno Haible  <bruno@clisp.org>
38927
38928         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38929
38930 2008-12-21  Bruno Haible  <bruno@clisp.org>
38931
38932         * modules/wcsnrtombs-tests: New file.
38933         * tests/test-wcsnrtombs1.sh: New file.
38934         * tests/test-wcsnrtombs2.sh: New file.
38935         * tests/test-wcsnrtombs3.sh: New file.
38936         * tests/test-wcsnrtombs4.sh: New file.
38937         * tests/test-wcsnrtombs.c: New file.
38938
38939         New module 'wcsnrtombs'.
38940         * lib/wchar.in.h (wcsnrtombs): New declaration.
38941         * lib/wcsnrtombs.c: New file.
38942         * lib/wcsrtombs-state.c: New file.
38943         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38944         (internal_state): Remove variable.
38945         * m4/wcsnrtombs.m4: New file.
38946         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
38947         compilation units.
38948         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
38949         HAVE_WCSNRTOMBS.
38950         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
38951         HAVE_WCSNRTOMBS.
38952         * modules/wcsnrtombs: New file.
38953         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
38954         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
38955
38956 2008-12-21  Bruno Haible  <bruno@clisp.org>
38957
38958         * modules/wcsrtombs-tests: New file.
38959         * tests/test-wcsrtombs1.sh: New file.
38960         * tests/test-wcsrtombs2.sh: New file.
38961         * tests/test-wcsrtombs3.sh: New file.
38962         * tests/test-wcsrtombs4.sh: New file.
38963         * tests/test-wcsrtombs.c: New file.
38964
38965         New module 'wcsrtombs'.
38966         * lib/wchar.in.h (wcsrtombs): New declaration.
38967         * lib/wcsrtombs.c: New file.
38968         * m4/wcsrtombs.m4: New file.
38969         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
38970         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38971         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
38972         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
38973         * modules/wcsrtombs: New file.
38974         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
38975         bugs.
38976
38977 2008-12-21  Bruno Haible  <bruno@clisp.org>
38978
38979         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
38980         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
38981         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
38982         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
38983         if not correct.
38984         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
38985         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
38986         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
38987         m4/locale-zh.m4, m4/codeset.m4.
38988         * doc/posix-functions/wcrtomb.texi: Document the bug.
38989
38990 2008-12-21  Bruno Haible  <bruno@clisp.org>
38991
38992         Work around a btowc() bug on IRIX 6.5.
38993         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
38994         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
38995         REPLACE_WTOBC if not.
38996         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
38997         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
38998         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
38999
39000 2008-12-21  Bruno Haible  <bruno@clisp.org>
39001
39002         * modules/wcrtomb-tests: New file.
39003         * tests/test-wcrtomb.sh: New file.
39004         * tests/test-wcrtomb.c: New file.
39005
39006         New module 'wcrtomb'.
39007         * lib/wchar.in.h (wcrtomb): New declaration.
39008         * lib/wcrtomb.c: New file.
39009         * m4/wcrtomb.m4: New file.
39010         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39011         HAVE_WCRTOMB.
39012         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39013         HAVE_WCRTOMB.
39014         * modules/wcrtomb: New file.
39015         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39016
39017 2008-12-21  Bruno Haible  <bruno@clisp.org>
39018
39019         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39020         * modules/mbsrtowcs (Files): Likewise.
39021         * modules/wctob (Files): Likewise.
39022         * modules/c-strcase-tests (Files): Likewise.
39023         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39024         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39025         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39026         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39027         * modules/vasnprintf-posix-tests (Files): Likewise.
39028
39029 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39030
39031         gitlog-to-changelog: pass all command-line arguments to git-log
39032         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39033         it is sometimes convenient to filter the commits in various ways.
39034         gitlog-to-changelog only allows --since to specify a start date,
39035         but git-log itself supports many other filtering mechanisms.
39036         At the moment, I want to filter by branch name.  Rather than
39037         adding a --branch option to gitlog-to-changelog, it seems more
39038         flexible to simply pass all options directly to git-log and let
39039         git do the work.  Notice that this effectively makes --since a
39040         redundant option for gitlog-to-changelog, but removing it would
39041         require current usage to change since calls would then require
39042         an additional '--'.
39043
39044 2008-12-21  Bruno Haible  <bruno@clisp.org>
39045
39046         * modules/mbsnrtowcs-tests: New file.
39047         * tests/test-mbsnrtowcs1.sh: New file.
39048         * tests/test-mbsnrtowcs2.sh: New file.
39049         * tests/test-mbsnrtowcs3.sh: New file.
39050         * tests/test-mbsnrtowcs4.sh: New file.
39051         * tests/test-mbsnrtowcs.c: New file.
39052
39053         New module 'mbsnrtowcs'.
39054         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39055         * lib/mbsnrtowcs.c: New file.
39056         * lib/mbsrtowcs-state.c: New file.
39057         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39058         (internal_state): Remove variable.
39059         * m4/mbsnrtowcs.m4: New file.
39060         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39061         compilation units.
39062         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39063         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39064         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39065         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39066         * modules/mbsnrtowcs: New file.
39067         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39068         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39069         portability problem.
39070
39071 2008-12-21  Bruno Haible  <bruno@clisp.org>
39072
39073         Work around mbsrtowcs bug.
39074         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39075         (gl_FUNC_MBSRTOWCS): Invoke it.
39076         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39077         m4/locale-zh.m4.
39078         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39079
39080 2008-12-21  Bruno Haible  <bruno@clisp.org>
39081
39082         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39083
39084 2008-12-21  Bruno Haible  <bruno@clisp.org>
39085
39086         Update doc for AIX.
39087         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39088         16-bit wchar_t type.
39089         * doc/posix-functions/btowc.texi: Likewise.
39090         * doc/posix-functions/fgetwc.texi: Likewise.
39091         * doc/posix-functions/fgetws.texi: Likewise.
39092         * doc/posix-functions/fputwc.texi: Likewise.
39093         * doc/posix-functions/fputws.texi: Likewise.
39094         * doc/posix-functions/fwide.texi: Likewise.
39095         * doc/posix-functions/fwprintf.texi: Likewise.
39096         * doc/posix-functions/fwscanf.texi: Likewise.
39097         * doc/posix-functions/getwchar.texi: Likewise.
39098         * doc/posix-functions/getwc.texi: Likewise.
39099         * doc/posix-functions/iswalnum.texi: Likewise.
39100         * doc/posix-functions/iswalpha.texi: Likewise.
39101         * doc/posix-functions/iswblank.texi: Likewise.
39102         * doc/posix-functions/iswcntrl.texi: Likewise.
39103         * doc/posix-functions/iswctype.texi: Likewise.
39104         * doc/posix-functions/iswdigit.texi: Likewise.
39105         * doc/posix-functions/iswgraph.texi: Likewise.
39106         * doc/posix-functions/iswlower.texi: Likewise.
39107         * doc/posix-functions/iswprint.texi: Likewise.
39108         * doc/posix-functions/iswpunct.texi: Likewise.
39109         * doc/posix-functions/iswspace.texi: Likewise.
39110         * doc/posix-functions/iswupper.texi: Likewise.
39111         * doc/posix-functions/iswxdigit.texi: Likewise.
39112         * doc/posix-functions/mbrtowc.texi: Likewise.
39113         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39114         * doc/posix-functions/mbstowcs.texi: Likewise.
39115         * doc/posix-functions/mbtowc.texi: Likewise.
39116         * doc/posix-functions/putwchar.texi: Likewise.
39117         * doc/posix-functions/putwc.texi: Likewise.
39118         * doc/posix-functions/swprintf.texi: Likewise.
39119         * doc/posix-functions/tolower.texi: Likewise.
39120         * doc/posix-functions/toupper.texi: Likewise.
39121         * doc/posix-functions/towctrans.texi: Likewise.
39122         * doc/posix-functions/ungetwc.texi: Likewise.
39123         * doc/posix-functions/vswprintf.texi: Likewise.
39124         * doc/posix-functions/wcrtomb.texi: Likewise.
39125         * doc/posix-functions/wcscat.texi: Likewise.
39126         * doc/posix-functions/wcschr.texi: Likewise.
39127         * doc/posix-functions/wcscmp.texi: Likewise.
39128         * doc/posix-functions/wcscoll.texi: Likewise.
39129         * doc/posix-functions/wcscpy.texi: Likewise.
39130         * doc/posix-functions/wcscspn.texi: Likewise.
39131         * doc/posix-functions/wcsftime.texi: Likewise.
39132         * doc/posix-functions/wcslen.texi: Likewise.
39133         * doc/posix-functions/wcsncat.texi: Likewise.
39134         * doc/posix-functions/wcsncmp.texi: Likewise.
39135         * doc/posix-functions/wcsncpy.texi: Likewise.
39136         * doc/posix-functions/wcspbrk.texi: Likewise.
39137         * doc/posix-functions/wcsrchr.texi: Likewise.
39138         * doc/posix-functions/wcsrtombs.texi: Likewise.
39139         * doc/posix-functions/wcsspn.texi: Likewise.
39140         * doc/posix-functions/wcsstr.texi: Likewise.
39141         * doc/posix-functions/wcstod.texi: Likewise.
39142         * doc/posix-functions/wcstof.texi: Likewise.
39143         * doc/posix-functions/wcstoimax.texi: Likewise.
39144         * doc/posix-functions/wcstok.texi: Likewise.
39145         * doc/posix-functions/wcstold.texi: Likewise.
39146         * doc/posix-functions/wcstoll.texi: Likewise.
39147         * doc/posix-functions/wcstol.texi: Likewise.
39148         * doc/posix-functions/wcstombs.texi: Likewise.
39149         * doc/posix-functions/wcstoull.texi: Likewise.
39150         * doc/posix-functions/wcstoul.texi: Likewise.
39151         * doc/posix-functions/wcstoumax.texi: Likewise.
39152         * doc/posix-functions/wcswidth.texi: Likewise.
39153         * doc/posix-functions/wcsxfrm.texi: Likewise.
39154         * doc/posix-functions/wctob.texi: Likewise.
39155         * doc/posix-functions/wctomb.texi: Likewise.
39156         * doc/posix-functions/wctrans.texi: Likewise.
39157         * doc/posix-functions/wctype.texi: Likewise.
39158         * doc/posix-functions/wcwidth.texi: Likewise.
39159         * doc/posix-functions/wmemchr.texi: Likewise.
39160         * doc/posix-functions/wmemcmp.texi: Likewise.
39161         * doc/posix-functions/wmemcpy.texi: Likewise.
39162         * doc/posix-functions/wmemmove.texi: Likewise.
39163         * doc/posix-functions/wmemset.texi: Likewise.
39164         * doc/posix-functions/wprintf.texi: Likewise.
39165         * doc/posix-functions/wscanf.texi: Likewise.
39166
39167 2008-12-21  Bruno Haible  <bruno@clisp.org>
39168
39169         Update doc for HP-UX 11.11.
39170         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39171         in HP-UX version 11.00, not in all versions of HP-UX 11.
39172         * doc/posix-functions/fwide.texi: Likewise.
39173         * doc/posix-functions/fwprintf.texi: Likewise.
39174         * doc/posix-functions/fwscanf.texi: Likewise.
39175         * doc/posix-functions/inet_ntop.texi: Likewise.
39176         * doc/posix-functions/inet_pton.texi: Likewise.
39177         * doc/posix-functions/mbrlen.texi: Likewise.
39178         * doc/posix-functions/mbrtowc.texi: Likewise.
39179         * doc/posix-functions/mbsinit.texi: Likewise.
39180         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39181         * doc/posix-functions/swprintf.texi: Likewise.
39182         * doc/posix-functions/swscanf.texi: Likewise.
39183         * doc/posix-functions/towctrans.texi: Likewise.
39184         * doc/posix-functions/vfwprintf.texi: Likewise.
39185         * doc/posix-functions/vswprintf.texi: Likewise.
39186         * doc/posix-functions/vwprintf.texi: Likewise.
39187         * doc/posix-functions/wcrtomb.texi: Likewise.
39188         * doc/posix-functions/wcsrtombs.texi: Likewise.
39189         * doc/posix-functions/wcsstr.texi: Likewise.
39190         * doc/posix-functions/wctob.texi: Likewise.
39191         * doc/posix-functions/wctrans.texi: Likewise.
39192         * doc/posix-functions/wmemchr.texi: Likewise.
39193         * doc/posix-functions/wmemcmp.texi: Likewise.
39194         * doc/posix-functions/wmemcpy.texi: Likewise.
39195         * doc/posix-functions/wmemmove.texi: Likewise.
39196         * doc/posix-functions/wmemset.texi: Likewise.
39197         * doc/posix-functions/wprintf.texi: Likewise.
39198         * doc/posix-functions/wscanf.texi: Likewise.
39199
39200 2008-12-21  Bruno Haible  <bruno@clisp.org>
39201
39202         Work around a portability problem.
39203         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39204         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39205
39206 2008-12-20  Bruno Haible  <bruno@clisp.org>
39207
39208         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39209         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39210         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39211         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39212         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39213
39214         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39215         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39216         set.
39217         (GNULIB_defined_mbstate_t): New macro.
39218         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39219         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39220         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39221         reuses the system's mbrtowc function but works around the bugs.
39222         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39223         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39224         macros.
39225         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39226         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39227         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39228         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39229         REPLACE_MBSINIT if mbsinit needs to be overridden.
39230         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39231         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39232         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39233         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39234         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39235         m4/locale-zh.m4.
39236         (Depends): Add mbsinit.
39237         * modules/mbsinit (Depends): Add mbrtowc.
39238         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39239
39240 2008-12-20  Bruno Haible  <bruno@clisp.org>
39241
39242         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39243         so that there are no conversion errors on AIX.
39244         * tests/test-mbsrtowcs.c (main): LIkewise.
39245
39246 2008-12-20  Bruno Haible  <bruno@clisp.org>
39247
39248         Work around wctob bug on Solaris <= 9.
39249         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39250         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39251         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39252         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39253         * modules/wctob (Files): Add m4/locale-fr.m4.
39254         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39255
39256 2008-12-20  Bruno Haible  <bruno@clisp.org>
39257
39258         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39259         /dev/null.
39260         * tests/test-select-in.sh: Likewise.
39261         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39262
39263 2008-12-20  Bruno Haible  <bruno@clisp.org>
39264
39265         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39266         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39267         Cygwin 1.5.x.
39268
39269 2008-12-20  Bruno Haible  <bruno@clisp.org>
39270
39271         Ensure mbstate_t is defined on HP-UX 11.11.
39272         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39273         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39274         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39275         AC_USE_SYSTEM_EXTENSIONS.
39276         * modules/fnmatch (Depends-on): Add extensions.
39277         * modules/mbrlen (Depends-on): Likewise.
39278         * modules/mbrtowc (Depends-on): Likewise.
39279         * modules/mbsinit (Depends-on): Likewise.
39280         * modules/mbsrtowcs (Depends-on): Likewise.
39281         * modules/mbswidth (Depends-on): Likewise.
39282         * modules/quotearg (Depends-on): Likewise.
39283         * modules/strftime (Depends-on): Likewise.
39284
39285 2008-12-20  Bruno Haible  <bruno@clisp.org>
39286
39287         Ensure wctob is declared on IRIX 6.5.
39288         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39289         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39290         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39291         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39292         of HAVE_WCTOB.
39293         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39294         HAVE_WCTOB.
39295         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39296
39297 2008-12-19  Bruno Haible  <bruno@clisp.org>
39298
39299         * modules/mbsrtowcs-tests: New file.
39300         * tests/test-mbsrtowcs1.sh: New file.
39301         * tests/test-mbsrtowcs2.sh: New file.
39302         * tests/test-mbsrtowcs3.sh: New file.
39303         * tests/test-mbsrtowcs4.sh: New file.
39304         * tests/test-mbsrtowcs.c: New file.
39305
39306         New module 'mbsrtowcs'.
39307         * lib/wchar.in.h (mbsrtowcs): New declaration.
39308         * lib/mbsrtowcs.c: New file.
39309         * m4/mbsrtowcs.m4: New file.
39310         * modules/mbsrtowcs: New file.
39311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39312         HAVE_MBSRTOWCS.
39313         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39314         HAVE_MBSRTOWCS.
39315         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39316
39317 2008-12-19  Bruno Haible  <bruno@clisp.org>
39318
39319         New module 'mbrlen'.
39320         * lib/wchar.in.h (mbrlen): New declaration.
39321         * lib/mbrlen.c: New file.
39322         * m4/mbrlen.m4: New file.
39323         * modules/mbrlen: New file.
39324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39325         HAVE_MBRLEN.
39326         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39327         HAVE_MBRLEN.
39328         * doc/posix-functions/mbrlen.texi: Document the new module.
39329
39330 2008-12-19  Bruno Haible  <bruno@clisp.org>
39331
39332         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39333         * modules/mbrtowc (Depends-on): Add verify.
39334         Suggested by Paul Eggert.
39335
39336 2008-12-18  Bruno Haible  <bruno@clisp.org>
39337
39338         * modules/mbsinit-tests: New file.
39339         * tests/test-mbsinit.sh: New file.
39340         * tests/test-mbsinit.c: New file.
39341
39342 2008-12-18  Bruno Haible  <bruno@clisp.org>
39343
39344         * modules/mbrtowc-tests: New file.
39345         * tests/test-mbrtowc1.sh: New file.
39346         * tests/test-mbrtowc2.sh: New file.
39347         * tests/test-mbrtowc3.sh: New file.
39348         * tests/test-mbrtowc4.sh: New file.
39349         * tests/test-mbrtowc.c: New file.
39350
39351         New module 'mbrtowc'.
39352         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39353         mbsinit and mbrtowc.
39354         (mbrtowc): New declaration.
39355         * lib/mbrtowc.c: New file.
39356         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39357         * modules/mbrtowc: New file.
39358         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39359         HAVE_MBRTOWC.
39360         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39361         HAVE_MBRTOWC.
39362         * doc/posix-functions/mbrtowc.texi: Document the new module.
39363
39364 2008-12-18  Bruno Haible  <bruno@clisp.org>
39365
39366         New module 'wctob'.
39367         * lib/wchar.in.h (wctob): New declaration.
39368         * lib/wctob.c: New file.
39369         * m4/wctob.m4: New file.
39370         * modules/wctob: New file.
39371         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39372         HAVE_WCTOB.
39373         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39374         * doc/posix-functions/wctob.texi: Document the new module.
39375
39376 2008-12-18  Bruno Haible  <bruno@clisp.org>
39377
39378         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39379         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39380
39381 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39382
39383         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39384         G. Christensen" <tgc@jupiterrise.com>.
39385
39386         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39387         G. Christensen" <tgc@jupiterrise.com>.
39388
39389         * lib/flock.c: Need to include string.h.  Reported by "Tom
39390         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39391         <ebb9@byu.net>.
39392
39393 2008-12-18  Bruno Haible  <bruno@clisp.org>
39394
39395         * m4/locale-ja.m4: New file, from GNU gettext.
39396
39397 2008-12-17  Bruno Haible  <bruno@clisp.org>
39398
39399         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39400         Suggested by Eric Blake.
39401
39402 2008-12-17  Bruno Haible  <bruno@clisp.org>
39403
39404         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39405
39406 2008-12-17  Bruno Haible  <bruno@clisp.org>
39407
39408         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39409         * modules/mbsinit (Depends-on): Add verify.
39410         Suggested by Paul Eggert.
39411
39412 2008-12-17  Bruno Haible  <bruno@clisp.org>
39413
39414         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39415         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39416         gl_FUNC_MBRTOWC.
39417         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39418         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39419         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39420         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39421         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39422         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39423         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39424         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39425         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39426         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39427         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39428         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39429         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39430         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39431         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39432         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39433         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39434         * modules/trim (configure.ac): Likewise.
39435
39436 2008-12-17  Bruno Haible  <bruno@clisp.org>
39437
39438         * modules/btowc-tests: New file.
39439         * tests/test-btowc1.sh: New file.
39440         * tests/test-btowc2.sh: New file.
39441         * tests/test-btowc.c: New file.
39442
39443         New module 'btowc'.
39444         * lib/wchar.in.h (btowc): New declaration.
39445         * lib/btowc.c: New file.
39446         * m4/btowc.m4: New file.
39447         * modules/btowc: New file.
39448         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39449         HAVE_BTOWC.
39450         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39451         * doc/posix-functions/btowc.texi: Document the new module.
39452
39453 2008-12-17  Bruno Haible  <bruno@clisp.org>
39454
39455         New module 'mbsinit'.
39456         * lib/wchar.in.h (mbsinit): New declaration.
39457         * lib/mbsinit.c: New file.
39458         * m4/mbsinit.m4: New file.
39459         * modules/mbsinit: New file.
39460         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39461         HAVE_MBSINIT.
39462         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39463         HAVE_MBSINIT.
39464         * doc/posix-functions/mbsinit.texi: Document the new module.
39465
39466 2008-12-16  Bruno Haible  <bruno@clisp.org>
39467
39468         * lib/unistd.in.h: Add comment.
39469         * tests/test-environ.c: Don't include <stdlib.h>.
39470
39471 2008-12-16  Bruno Haible  <bruno@clisp.org>
39472
39473         * lib/parse-duration.h (parse_duration): Document return value
39474         convention.
39475         * lib/parse-duration.c: Include specification header first. Add
39476         comments.
39477         (_): Remove macro.
39478         (parse_year_month_day, parse_hour_minute_second): Move side effects
39479         outside of strchr call.
39480         (parse_non_iso8601): Move side effects outside of isspace call.
39481         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39482         call.
39483
39484 2008-12-16  Bruno Haible  <bruno@clisp.org>
39485
39486         * tests/test-parse-duration.sh: Produce no output when the test
39487         succeeds.
39488
39489 2008-12-16  Bruno Haible  <bruno@clisp.org>
39490
39491         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39492         expressions.
39493
39494 2008-12-15  Bruno Haible  <bruno@clisp.org>
39495
39496         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39497         * doc/glibc-functions/flistxattr.texi: Likewise.
39498         * doc/glibc-functions/fopencookie.texi: Likewise.
39499         * doc/glibc-functions/fremovexattr.texi: Likewise.
39500         * doc/glibc-functions/fsetxattr.texi: Likewise.
39501         * doc/glibc-functions/getxattr.texi: Likewise.
39502         * doc/glibc-functions/lgetxattr.texi: Likewise.
39503         * doc/glibc-functions/listxattr.texi: Likewise.
39504         * doc/glibc-functions/llistxattr.texi: Likewise.
39505         * doc/glibc-functions/lremovexattr.texi: Likewise.
39506         * doc/glibc-functions/lsetxattr.texi: Likewise.
39507         * doc/glibc-functions/removexattr.texi: Likewise.
39508         * doc/glibc-functions/setxattr.texi: Likewise.
39509         * doc/posix-functions/open_memstream.texi: Likewise.
39510
39511 2008-12-15  Eric Blake  <ebb9@byu.net>
39512
39513         Update doc for cygwin 1.7.
39514         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39515         functions.
39516         * doc/posix-functions/fchmodat.texi: Likewise.
39517         * doc/posix-functions/fchownat.texi: Likewise.
39518         * doc/posix-functions/fdopendir.texi: Likewise.
39519         * doc/posix-functions/fmemopen.texi: Likewise.
39520         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39521         * doc/posix-functions/fstatat.texi: Likewise.
39522         * doc/posix-functions/futimens.texi: Likewise.
39523         * doc/posix-functions/gai_strerror.texi: Likewise.
39524         * doc/posix-functions/getaddrinfo.texi: Likewise.
39525         * doc/posix-functions/getnameinfo.texi: Likewise.
39526         * doc/posix-functions/if_freenameindex.texi: Likewise.
39527         * doc/posix-functions/if_indextoname.texi: Likewise.
39528         * doc/posix-functions/if_nameindex.texi: Likewise.
39529         * doc/posix-functions/if_nametoindex.texi: Likewise.
39530         * doc/posix-functions/insque.texi: Likewise.
39531         * doc/posix-functions/linkat.texi: Likewise.
39532         * doc/posix-functions/llrint.texi: Likewise.
39533         * doc/posix-functions/llrintf.texi: Likewise.
39534         * doc/posix-functions/llrintl.texi: Likewise.
39535         * doc/posix-functions/lockf.texi: Likewise.
39536         * doc/posix-functions/lrintl.texi: Likewise.
39537         * doc/posix-functions/mkdirat.texi: Likewise.
39538         * doc/posix-functions/mkfifoat.texi: Likewise.
39539         * doc/posix-functions/mknodat.texi: Likewise.
39540         * doc/posix-functions/mq_close.texi: Likewise.
39541         * doc/posix-functions/mq_getattr.texi: Likewise.
39542         * doc/posix-functions/mq_notify.texi: Likewise.
39543         * doc/posix-functions/mq_open.texi: Likewise.
39544         * doc/posix-functions/mq_receive.texi: Likewise.
39545         * doc/posix-functions/mq_send.texi: Likewise.
39546         * doc/posix-functions/mq_setattr.texi: Likewise.
39547         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39548         * doc/posix-functions/mq_timedsend.texi: Likewise.
39549         * doc/posix-functions/mq_unlink.texi: Likewise.
39550         * doc/posix-functions/open_memstream.texi: Likewise.
39551         * doc/posix-functions/openat.texi: Likewise.
39552         * doc/posix-functions/posix_fadvise.texi: Likewise.
39553         * doc/posix-functions/posix_fallocate.texi: Likewise.
39554         * doc/posix-functions/posix_madvise.texi: Likewise.
39555         * doc/posix-functions/posix_memalign.texi: Likewise.
39556         * doc/posix-functions/posix_openpt.texi: Likewise.
39557         * doc/posix-functions/readlinkat.texi: Likewise.
39558         * doc/posix-functions/remque.texi: Likewise.
39559         * doc/posix-functions/renameat.texi: Likewise.
39560         * doc/posix-functions/rintl.texi: Likewise.
39561         * doc/posix-functions/sem_unlink.texi: Likewise.
39562         * doc/posix-functions/shm_open.texi: Likewise.
39563         * doc/posix-functions/shm_unlink.texi: Likewise.
39564         * doc/posix-functions/signgam.texi: Likewise.
39565         * doc/posix-functions/sigset.texi: Likewise.
39566         * doc/posix-functions/stpcpy.texi: Likewise.
39567         * doc/posix-functions/stpncpy.texi: Likewise.
39568         * doc/posix-functions/strerror.texi: Likewise.
39569         * doc/posix-functions/strtod.texi: Likewise.
39570         * doc/posix-functions/symlinkat.texi: Likewise.
39571         * doc/posix-functions/unlinkat.texi: Likewise.
39572         * doc/posix-functions/utimensat.texi: Likewise.
39573         * doc/glibc-functions/bindresvport.texi: Likewise.
39574         * doc/glibc-functions/dn_expand.texi: Likewise.
39575         * doc/glibc-functions/exp10.texi: Likewise.
39576         * doc/glibc-functions/exp10f.texi: Likewise.
39577         * doc/glibc-functions/fgetxattr.texi: Likewise.
39578         * doc/glibc-functions/flistxattr.texi: Likewise.
39579         * doc/glibc-functions/fopencookie.texi: Likewise.
39580         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39581         * doc/glibc-functions/fremovexattr.texi: Likewise.
39582         * doc/glibc-functions/fsetxattr.texi: Likewise.
39583         * doc/glibc-functions/getifaddrs.texi: Likewise.
39584         * doc/glibc-functions/getxattr.texi: Likewise.
39585         * doc/glibc-functions/lgetxattr.texi: Likewise.
39586         * doc/glibc-functions/listxattr.texi: Likewise.
39587         * doc/glibc-functions/llistxattr.texi: Likewise.
39588         * doc/glibc-functions/lremovexattr.texi: Likewise.
39589         * doc/glibc-functions/lsetxattr.texi: Likewise.
39590         * doc/glibc-functions/pow10.texi: Likewise.
39591         * doc/glibc-functions/pow10f.texi: Likewise.
39592         * doc/glibc-functions/rcmd_af.texi: Likewise.
39593         * doc/glibc-functions/removexattr.texi: Likewise.
39594         * doc/glibc-functions/res_init.texi: Likewise.
39595         * doc/glibc-functions/res_mkquery.texi: Likewise.
39596         * doc/glibc-functions/res_query.texi: Likewise.
39597         * doc/glibc-functions/res_querydomain.texi: Likewise.
39598         * doc/glibc-functions/res_send.texi: Likewise.
39599         * doc/glibc-functions/rresvport_af.texi: Likewise.
39600         * doc/glibc-functions/setxattr.texi: Likewise.
39601         * doc/glibc-functions/strcasestr.texi: Likewise.
39602
39603 2008-12-15  Bruno Haible  <bruno@clisp.org>
39604
39605         Fix compilation error on OSF/1 4.0.
39606         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39607         <sys/time.h>, simply delegate to the system header.
39608         Reported by Daniel Richard G. <oss@teragram.com>.
39609
39610 2008-12-15  Bruno Haible  <bruno@clisp.org>
39611
39612         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39613         * doc/posix-functions/fchmodat.texi: Likewise.
39614         * doc/posix-functions/fchownat.texi: Likewise.
39615         * doc/posix-functions/fdopendir.texi: Likewise.
39616         * doc/posix-functions/fstatat.texi: Likewise.
39617         * doc/posix-functions/mkdirat.texi: Likewise.
39618         * doc/posix-functions/unlinkat.texi: Likewise.
39619
39620 2008-12-14  Bruno Haible  <bruno@clisp.org>
39621
39622         Update doc for POSIX:2008.
39623         * doc/posix-functions/faccessat.texi: New file.
39624         * doc/posix-functions/fchmodat.texi: New file.
39625         * doc/posix-functions/fchownat.texi: New file.
39626         * doc/posix-functions/fdopendir.texi: New file.
39627         * doc/posix-functions/fstatat.texi: New file.
39628         * doc/posix-functions/futimens.texi: New file.
39629         * doc/posix-functions/linkat.texi: New file.
39630         * doc/posix-functions/mkdirat.texi: New file.
39631         * doc/posix-functions/mkfifoat.texi: New file.
39632         * doc/posix-functions/mknodat.texi: New file.
39633         * doc/posix-functions/open_wmemstream.texi: New file.
39634         * doc/posix-functions/openat.texi: New file.
39635         * doc/posix-functions/psiginfo.texi: New file.
39636         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39637         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39638         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39639         * doc/posix-functions/readlinkat.texi: New file.
39640         * doc/posix-functions/renameat.texi: New file.
39641         * doc/posix-functions/strerror_l.texi: New file.
39642         * doc/posix-functions/symlinkat.texi: New file.
39643         * doc/posix-functions/unlinkat.texi: New file.
39644         * doc/posix-functions/utimensat.texi: New file.
39645         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39646
39647 2008-12-14  Bruno Haible  <bruno@clisp.org>
39648
39649         Update doc for POSIX:2008.
39650         * doc/posix-functions/alphasort.texi: Renamed from
39651         doc/glibc-functions/alphasort.texi.
39652         * doc/posix-functions/dirfd.texi: Renamed from
39653         doc/glibc-functions/dirfd.texi.
39654         * doc/posix-functions/dprintf.texi: Renamed from
39655         doc/glibc-functions/dprintf.texi.
39656         * doc/posix-functions/duplocale.texi: Renamed from
39657         doc/glibc-functions/duplocale.texi.
39658         * doc/posix-functions/fexecve.texi: Renamed from
39659         doc/glibc-functions/fexecve.texi.
39660         * doc/posix-functions/fmemopen.texi: Renamed from
39661         doc/glibc-functions/fmemopen.texi.
39662         * doc/posix-functions/freelocale.texi: Renamed from
39663         doc/glibc-functions/freelocale.texi.
39664         * doc/posix-functions/getdate_err.texi: Renamed from
39665         doc/glibc-functions/getdate_err.texi.
39666         * doc/posix-functions/isalnum_l.texi: Renamed from
39667         doc/glibc-functions/isalnum_l.texi.
39668         * doc/posix-functions/isalpha_l.texi: Renamed from
39669         doc/glibc-functions/isalpha_l.texi.
39670         * doc/posix-functions/isblank_l.texi: Renamed from
39671         doc/glibc-functions/isblank_l.texi.
39672         * doc/posix-functions/iscntrl_l.texi: Renamed from
39673         doc/glibc-functions/iscntrl_l.texi.
39674         * doc/posix-functions/isdigit_l.texi: Renamed from
39675         doc/glibc-functions/isdigit_l.texi.
39676         * doc/posix-functions/isgraph_l.texi: Renamed from
39677         doc/glibc-functions/isgraph_l.texi.
39678         * doc/posix-functions/islower_l.texi: Renamed from
39679         doc/glibc-functions/islower_l.texi.
39680         * doc/posix-functions/isprint_l.texi: Renamed from
39681         doc/glibc-functions/isprint_l.texi.
39682         * doc/posix-functions/ispunct_l.texi: Renamed from
39683         doc/glibc-functions/ispunct_l.texi.
39684         * doc/posix-functions/isspace_l.texi: Renamed from
39685         doc/glibc-functions/isspace_l.texi.
39686         * doc/posix-functions/isupper_l.texi: Renamed from
39687         doc/glibc-functions/isupper_l.texi.
39688         * doc/posix-functions/iswalnum_l.texi: Renamed from
39689         doc/glibc-functions/iswalnum_l.texi.
39690         * doc/posix-functions/iswalpha_l.texi: Renamed from
39691         doc/glibc-functions/iswalpha_l.texi.
39692         * doc/posix-functions/iswblank_l.texi: Renamed from
39693         doc/glibc-functions/iswblank_l.texi.
39694         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39695         doc/glibc-functions/iswcntrl_l.texi.
39696         * doc/posix-functions/iswctype_l.texi: Renamed from
39697         doc/glibc-functions/iswctype_l.texi.
39698         * doc/posix-functions/iswdigit_l.texi: Renamed from
39699         doc/glibc-functions/iswdigit_l.texi.
39700         * doc/posix-functions/iswgraph_l.texi: Renamed from
39701         doc/glibc-functions/iswgraph_l.texi.
39702         * doc/posix-functions/iswlower_l.texi: Renamed from
39703         doc/glibc-functions/iswlower_l.texi.
39704         * doc/posix-functions/iswprint_l.texi: Renamed from
39705         doc/glibc-functions/iswprint_l.texi.
39706         * doc/posix-functions/iswpunct_l.texi: Renamed from
39707         doc/glibc-functions/iswpunct_l.texi.
39708         * doc/posix-functions/iswspace_l.texi: Renamed from
39709         doc/glibc-functions/iswspace_l.texi.
39710         * doc/posix-functions/iswupper_l.texi: Renamed from
39711         doc/glibc-functions/iswupper_l.texi.
39712         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39713         doc/glibc-functions/iswxdigit_l.texi.
39714         * doc/posix-functions/isxdigit_l.texi: Renamed from
39715         doc/glibc-functions/isxdigit_l.texi.
39716         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39717         doc/glibc-functions/mbsnrtowcs.texi.
39718         * doc/posix-functions/mkdtemp.texi: Renamed from
39719         doc/glibc-functions/mkdtemp.texi.
39720         * doc/posix-functions/newlocale.texi: Renamed from
39721         doc/glibc-functions/newlocale.texi.
39722         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39723         doc/glibc-functions/nl_langinfo_l.texi.
39724         * doc/posix-functions/open_memstream.texi: Renamed from
39725         doc/glibc-functions/open_memstream.texi.
39726         * doc/posix-functions/opterr.texi: Renamed from
39727         doc/glibc-functions/opterr.texi.
39728         * doc/posix-functions/optind.texi: Renamed from
39729         doc/glibc-functions/optind.texi.
39730         * doc/posix-functions/optopt.texi: Renamed from
39731         doc/glibc-functions/optopt.texi.
39732         * doc/posix-functions/psignal.texi: Renamed from
39733         doc/glibc-functions/psignal.texi.
39734         * doc/posix-functions/scandir.texi: Renamed from
39735         doc/glibc-functions/scandir.texi.
39736         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39737         doc/glibc-functions/sched_get_priority_min.texi.
39738         * doc/posix-functions/signgam.texi: Renamed from
39739         doc/glibc-functions/signgam.texi.
39740         * doc/posix-functions/stpcpy.texi: Renamed from
39741         doc/glibc-functions/stpcpy.texi.
39742         * doc/posix-functions/stpncpy.texi: Renamed from
39743         doc/glibc-functions/stpncpy.texi.
39744         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39745         doc/glibc-functions/strcasecmp_l.texi.
39746         * doc/posix-functions/strcoll_l.texi: Renamed from
39747         doc/glibc-functions/strcoll_l.texi.
39748         * doc/posix-functions/strfmon_l.texi: Renamed from
39749         doc/glibc-functions/strfmon_l.texi.
39750         * doc/posix-functions/strftime_l.texi: Renamed from
39751         doc/glibc-functions/strftime_l.texi.
39752         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39753         doc/glibc-functions/strncasecmp_l.texi.
39754         * doc/posix-functions/strndup.texi: Renamed from
39755         doc/glibc-functions/strndup.texi.
39756         * doc/posix-functions/strnlen.texi: Renamed from
39757         doc/glibc-functions/strnlen.texi.
39758         * doc/posix-functions/strsignal.texi: Renamed from
39759         doc/glibc-functions/strsignal.texi.
39760         * doc/posix-functions/strxfrm_l.texi: Renamed from
39761         doc/glibc-functions/strxfrm_l.texi.
39762         * doc/posix-functions/timer_gettime.texi: Renamed from
39763         doc/glibc-functions/timer_gettime.texi.
39764         * doc/posix-functions/tolower_l.texi: Renamed from
39765         doc/glibc-functions/tolower_l.texi.
39766         * doc/posix-functions/toupper_l.texi: Renamed from
39767         doc/glibc-functions/toupper_l.texi.
39768         * doc/posix-functions/towctrans_l.texi: Renamed from
39769         doc/glibc-functions/towctrans_l.texi.
39770         * doc/posix-functions/towlower_l.texi: Renamed from
39771         doc/glibc-functions/towlower_l.texi.
39772         * doc/posix-functions/towupper_l.texi: Renamed from
39773         doc/glibc-functions/towupper_l.texi.
39774         * doc/posix-functions/uselocale.texi: Renamed from
39775         doc/glibc-functions/uselocale.texi.
39776         * doc/posix-functions/vdprintf.texi: Renamed from
39777         doc/glibc-functions/vdprintf.texi.
39778         * doc/posix-functions/wcpcpy.texi:
39779         Renamed from doc/glibc-functions/wcpcpy.texi.
39780         * doc/posix-functions/wcpncpy.texi: Renamed from
39781         doc/glibc-functions/wcpncpy.texi.
39782         * doc/posix-functions/wcscasecmp.texi: Renamed from
39783         doc/glibc-functions/wcscasecmp.texi.
39784         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39785         doc/glibc-functions/wcscasecmp_l.texi.
39786         * doc/posix-functions/wcscoll_l.texi: Renamed from
39787         doc/glibc-functions/wcscoll_l.texi.
39788         * doc/posix-functions/wcsdup.texi: Renamed from
39789         doc/glibc-functions/wcsdup.texi.
39790         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39791         doc/glibc-functions/wcsncasecmp.texi.
39792         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39793         doc/glibc-functions/wcsncasecmp_l.texi.
39794         * doc/posix-functions/wcsnlen.texi: Renamed from
39795         doc/glibc-functions/wcsnlen.texi.
39796         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39797         doc/glibc-functions/wcsnrtombs.texi.
39798         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39799         doc/glibc-functions/wcsxfrm_l.texi.
39800         * doc/posix-functions/wctrans_l.texi: Renamed from
39801         doc/glibc-functions/wctrans_l.texi.
39802         * doc/posix-functions/wctype_l.texi: Renamed from
39803         doc/glibc-functions/wctype_l.texi.
39804         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39805         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39806         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39807         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39808         these subsections.
39809         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39810         Remove sections.
39811
39812 2008-12-14  Bruno Haible  <bruno@clisp.org>
39813
39814         Update doc for POSIX:2008.
39815         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39816
39817 2008-12-14  Bruno Haible  <bruno@clisp.org>
39818
39819         Update doc for POSIX:2008.
39820         * doc/pastposix-functions/bcmp.texi: Renamed from
39821         doc/posix-functions/bcmp.texi.
39822         * doc/pastposix-functions/bcopy.texi: Renamed from
39823         doc/posix-functions/bcopy.texi.
39824         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39825         doc/posix-functions/bsd_signal.texi.
39826         * doc/pastposix-functions/bzero.texi: Renamed from
39827         doc/posix-functions/bzero.texi.
39828         * doc/pastposix-functions/ecvt.texi: Renamed from
39829         doc/posix-functions/ecvt.texi.
39830         * doc/pastposix-functions/fcvt.texi: Renamed from
39831         doc/posix-functions/fcvt.texi.
39832         * doc/pastposix-functions/ftime.texi: Renamed from
39833         doc/posix-functions/ftime.texi.
39834         * doc/pastposix-functions/gcvt.texi: Renamed from
39835         doc/posix-functions/gcvt.texi.
39836         * doc/pastposix-functions/getcontext.texi: Renamed from
39837         doc/posix-functions/getcontext.texi.
39838         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39839         doc/posix-functions/gethostbyaddr.texi.
39840         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39841         doc/posix-functions/gethostbyname.texi.
39842         * doc/pastposix-functions/getwd.texi: Renamed from
39843         doc/posix-functions/getwd.texi.
39844         * doc/pastposix-functions/h_errno.texi: Renamed from
39845         doc/posix-functions/h_errno.texi.
39846         * doc/pastposix-functions/index.texi: Renamed from
39847         doc/posix-functions/index.texi.
39848         * doc/pastposix-functions/makecontext.texi: Renamed from
39849         doc/posix-functions/makecontext.texi.
39850         * doc/pastposix-functions/mktemp.texi: Renamed from
39851         doc/posix-functions/mktemp.texi.
39852         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39853         doc/posix-functions/pthread_attr_getstackaddr.texi.
39854         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39855         doc/posix-functions/pthread_attr_setstackaddr.texi.
39856         * doc/pastposix-functions/rindex.texi: Renamed from
39857         doc/posix-functions/rindex.texi.
39858         * doc/pastposix-functions/scalb.texi: Renamed from
39859         doc/posix-functions/scalb.texi.
39860         * doc/pastposix-functions/setcontext.texi: Renamed from
39861         doc/posix-functions/setcontext.texi.
39862         * doc/pastposix-functions/swapcontext.texi: Renamed from
39863         doc/posix-functions/swapcontext.texi.
39864         * doc/pastposix-functions/ualarm.texi: Renamed from
39865         doc/posix-functions/ualarm.texi.
39866         * doc/pastposix-functions/usleep.texi: Renamed from
39867         doc/posix-functions/usleep.texi.
39868         * doc/pastposix-functions/vfork.texi: Renamed from
39869         doc/posix-functions/vfork.texi.
39870         * doc/pastposix-functions/wcswcs.texi: Renamed from
39871         doc/posix-functions/wcswcs.texi.
39872         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39873         (Function Substitutes): Update.
39874
39875 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39876
39877         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39878         m4/strerror.m4.
39879
39880 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39881             Bruno Haible  <bruno@clisp.org>
39882
39883         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39884
39885 2008-12-13  Bruno Haible  <bruno@clisp.org>
39886
39887         * modules/strtoull (Depends-on): Remove unistd.
39888
39889 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39890
39891         * modules/strtoull (Depends-on): Add stdlib.
39892
39893 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39894
39895         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39896
39897 2008-12-10  Jim Meyering  <meyering@redhat.com>
39898
39899         gl_ASSERT: don't say assertions are disabled when they're not
39900         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39901         "checking whether to enable assertions... no", when they are in
39902         fact enabled.  This is solely a bug in the output of configure.
39903         In spite of saying "no", NDEBUG was not defined in that case.
39904         Also, as noted by Eric Blake, leave assertions enabled upon
39905         --enable-assert=INVALID.
39906
39907 2008-12-10  Bruno Haible  <bruno@clisp.org>
39908
39909         Change MODULES.html to refer to POSIX:2008 where possible.
39910         * MODULES.html.sh (POSIX2008_URL): New variable.
39911         (posix_headers): Remove sys/timeb, ucontext.
39912         (posix2001_headers): New variable.
39913         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39914         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39915         index, makecontext, mktemp, pthread_attr_getstackaddr,
39916         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39917         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39918         (posix2001_functions): New variable.
39919         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39920         otherwise.
39921
39922 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39923
39924         add missing include to parse-duration.c
39925         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39926         * modules/parse-duration (Depends-on): Add xalloc.
39927
39928         fix sed script reading maint.mk
39929         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39930         (syntax-check-rules): Use it.
39931
39932 2008-12-09  Bruno Haible  <bruno@clisp.org>
39933
39934         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39935         MacOS X 10.4/PowerPC.
39936         Reported by Simon Josefsson.
39937
39938 2008-12-08  Jim Meyering  <meyering@redhat.com>
39939
39940         work around mingw's lack of some S_IF definitions
39941         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39942         Reported by Simon Josefsson.
39943
39944 2008-12-08  Bruno Haible  <bruno@clisp.org>
39945
39946         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
39947         applied to variables. Needed on MacOS X 10.4/PowerPC.
39948         Reported by Simon Josefsson.
39949
39950 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
39951         and Eric Blake  <ebb9@byu.net>
39952
39953         assert: honor --enable-assert
39954         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
39955         order to honor --enable-assert, rather than treating it as a
39956         synonym for --disable-assert.
39957
39958 2008-12-08  Jim Meyering  <meyering@redhat.com>
39959
39960         * lib/posixtm.c: Remove now-useless declaration of mktime.
39961
39962         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
39963
39964 2008-12-07  Bruno Haible  <bruno@clisp.org>
39965
39966         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
39967         test_once): Mark functions as static.
39968         * tests/test-tls.c (test_tls): Likewise.
39969
39970 2008-12-07  Bruno Haible  <bruno@clisp.org>
39971
39972         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
39973         iconv_register_autodetect.
39974
39975 2008-12-07  Jim Meyering  <meyering@redhat.com>
39976
39977         posixtm.c: avoid a warning
39978         * lib/posixtm.c (posixtime): Don't initialize tm0.
39979         It's no longer needed to placate gcc4's -Wuninitialized,
39980         and the attempt to placate would elicit a new warning.
39981
39982         unicodeio.c: mark unused parameters
39983         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
39984         (fallback_failure_callback): Likewise.
39985
39986 2008-12-07  Bruno Haible  <bruno@clisp.org>
39987
39988         * gnulib-tool (func_create_testdir): When building the tests
39989         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
39990         Reported by Simon Josefsson.
39991
39992 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39993
39994         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
39995
39996 2008-12-06  Bruno Haible  <bruno@clisp.org>
39997
39998         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
39999         Suggested by Eric Blake.
40000
40001 2008-12-06  Bruno Haible  <bruno@clisp.org>
40002
40003         Fix a c-stack test failure on MacOS X.
40004         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40005         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40006         handler for SIGBUS as well.
40007         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40008         install a signal handler for SIGBUS as well.
40009         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40010
40011 2008-12-06  Bruno Haible  <bruno@clisp.org>
40012
40013         Advocacy documentation.
40014         * doc/gnulib-intro.texi (Benefits): New section.
40015         * doc/gnulib.texi: Update.
40016
40017 2008-12-06  Bruno Haible  <bruno@clisp.org>
40018
40019         Document the 'manywarnings' module.
40020         * doc/manywarnings.texi: New file.
40021         * doc/gnulib.texi: Include it.
40022
40023 2008-12-05  Eric Blake  <ebb9@byu.net>
40024
40025         tests: silence some gcc warnings
40026         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40027         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40028         type mismatches.
40029
40030 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40031             Bruno Haible  <bruno@clisp.org>
40032
40033         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40034
40035 2008-11-29  Jim Meyering  <meyering@redhat.com>
40036
40037         unicodeio.c: mark unused parameters
40038         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40039         (fallback_failure_callback): Likewise.
40040
40041         fts: fix a thinko
40042         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40043         (set_stat_type): Return S_IF*-valued "type" directly.
40044         Prompted by James Youngman's spotting a related bug.
40045         Confirmed by further testing through find.
40046
40047         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40048         * lib/fts.c (D_TYPE): Define.
40049         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40050         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40051         (s_ifmt_shift_bits): New function.
40052         (set_stat_type): New function.
40053         (fts_build): When not calling fts_stat, call set_stat_type
40054         to propagate dirent.d_type info to fts_read caller.
40055         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40056         fts_statp->st_mode type information may be valid.
40057
40058 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40059
40060         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40061         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40062         <sds@gnu.org>.
40063
40064 2008-11-20  Bruno Haible  <bruno@clisp.org>
40065
40066         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40067         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40068         INCLUDE_NEXT.
40069         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40070         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40071         * modules/math (Makefile.am): Substitute
40072         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40073         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40074
40075 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40076             Bruno Haible  <bruno@clisp.org>
40077
40078         * lib/stdint.in.h: Define all type macros so that their expansion is
40079         a single typedef'ed token. Fixes a compilation failure in Boost which
40080         does "using ::int8_t;".
40081
40082 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40083
40084         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40085         gl_MANYWARN_ALL_GCC.
40086         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40087         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40088         * modules/manywarnings: New file.
40089         * MODULES.html.sh: Mention manywarnings module.
40090
40091 2008-11-18  Bruno Haible  <bruno@clisp.org>
40092
40093         * doc/gnulib-tool.texi (Unit tests): New section.
40094
40095 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40096
40097         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40098         paths like 'lib/po/foo.po'.
40099
40100 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40101
40102         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40103         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40104
40105 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40106
40107         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40108         parameter works.
40109
40110 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40111
40112         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40113
40114 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40115
40116         * modules/parse-duration-tests: New file.
40117         * tests/test-parse-duration.sh: New file.
40118         * tests/test-parse-duration.c: New file.
40119
40120         New module 'parse-duration'.
40121         * lib/parse-duration.h: New file.
40122         * lib/parse-duration.c: New file.
40123         * modules/parse-duration: New file.
40124
40125 2008-11-17  Bruno Haible  <bruno@clisp.org>
40126
40127         * tests/test-select-out.sh: Comment out the first pipe test.
40128         Reported by Simon Josefsson.
40129
40130 2008-11-17  Bruno Haible  <bruno@clisp.org>
40131
40132         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40133         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40134         gl_HOSTENT.
40135
40136 2008-11-17  Bruno Haible  <bruno@clisp.org>
40137
40138         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40139         -lnetwork and -lnet. Needed for Haiku and BeOS.
40140
40141 2008-11-16  Bruno Haible  <bruno@clisp.org>
40142
40143         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40144
40145 2008-11-16  Bruno Haible  <bruno@clisp.org>
40146
40147         Avoid test failure on Haiku.
40148         * tests/test-fsync.c: Include <errno.h>.
40149         (main): Don't require that fsync (0) fails.
40150
40151 2008-11-15  Bruno Haible  <bruno@clisp.org>
40152
40153         New module 'hostent'.
40154         * modules/hostent: New file.
40155         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40156
40157 2008-11-15  Bruno Haible  <bruno@clisp.org>
40158
40159         New module 'servent'.
40160         * modules/servent: New file.
40161         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40162
40163 2008-11-15  Bruno Haible  <bruno@clisp.org>
40164
40165         Avoid generating same test program with two different rules.
40166         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40167         test-frexp to test-frexp-nolibm.
40168         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40169         test-frexpl to test-frexpl-nolibm.
40170
40171 2008-11-15  Bruno Haible  <bruno@clisp.org>
40172
40173         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40174         $(FREXPL_LIBM).
40175
40176 2008-11-15  Bruno Haible  <bruno@clisp.org>
40177
40178         * lib/netdb.in.h: Activate the definitions also when the system's
40179         <netdb.h> has 'struct addrinfo'.
40180         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40181         EAI_OVERFLOW or AI_NUMERICSERV.
40182         * doc/posix-headers/netdb.texi: Document the problem.
40183
40184 2008-11-15  Bruno Haible  <bruno@clisp.org>
40185
40186         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40187
40188         Make the 'sched' module work on platforms where <sched.h> exists but
40189         is incomplete (such as Haiku).
40190         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40191         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40192         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40193         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40194         HAVE_STRUCT_SCHED_PARAM.
40195         * modules/sched (Depends-on): Add include_next.
40196         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40197         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40198         * doc/posix-headers/sched.texi: Document the issue.
40199
40200 2008-11-13  Jim Meyering  <meyering@redhat.com>
40201
40202         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40203         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40204         test would fail due to the difference in the Report bugs to ...
40205         line.  The expected address is empty, "<>", while the actual
40206         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40207
40208 2008-11-12  Bruno Haible  <bruno@clisp.org>
40209
40210         lstat: don't compile lstat.c on systems lacking lstat
40211         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40212         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40213         Reported by Daniel P. Berrange via Jim Meyering.
40214
40215 2008-11-12  Jim Meyering  <meyering@redhat.com>
40216
40217         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40218
40219 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40220
40221         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40222         instead.
40223
40224 2008-11-12  Bruno Haible  <bruno@clisp.org>
40225
40226         * lib/unicodeio.c: Include unistr.h.
40227         (utf8_wctomb): Remove function.
40228         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40229
40230 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40231
40232         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40233         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40234         <bruno@clisp.org>.
40235         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40236
40237 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40238
40239         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40240         * doc/gnulib.texi: Add section for warnings.
40241
40242 2008-11-11  Bruno Haible  <bruno@clisp.org>
40243
40244         * lib/sockets.h: Add a comment.
40245
40246 2008-11-11  Karl Berry  <karl@gnu.org>
40247
40248         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40249
40250 2008-11-11  Eric Blake  <ebb9@byu.net>
40251
40252         fdl.texi: avoid git symlinks
40253         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40254
40255 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40256
40257         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40258
40259 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40260
40261         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40262         (gl_WARN_ADD): Substitute $2 if literal.
40263
40264 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40265
40266         * m4/warning.m4: Remove.
40267
40268 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40269
40270         * m4/warnings.m4: Almost complete rewrite. :-)
40271
40272 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40273
40274         * modules/warnings: New module.
40275         * m4/warnings.m4: New file.
40276         * MODULES.html.sh: Mention warnings module.
40277         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40278         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40279
40280 2008-11-10  Eric Blake  <ebb9@byu.net>
40281
40282         fdl.texi: make a symlink to the latest version
40283         * doc/standards.texi: Revert today's earlier change.
40284         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40285         * doc/fdl.texi: ...and replace this with a symlink to the newer
40286         fdl-1.3.texi.
40287
40288 2008-11-10  Bruno Haible  <bruno@clisp.org>
40289
40290         * tests/test-select-fd.c (main): Accept the result file name as fourth
40291         argument.
40292         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40293         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40294
40295 2008-11-10  Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40298         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40299         as autoconf-substituted macros.
40300         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40302         gl_NETDB_H_DEFAULTS. Set these variables.
40303         * modules/netdb (Makefile.am): Substitute these variables.
40304
40305 2008-11-10  Eric Blake  <ebb9@byu.net>
40306
40307         standards.texi: include correct file for FDL 1.3
40308         * doc/standards.texi (GNU Free Documentation License): Change
40309         include file to pull in FDL 1.3, not 1.2.
40310
40311         fdl.texi: revert accidental change to license
40312         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40313
40314 2008-11-10  Bruno Haible  <bruno@clisp.org>
40315
40316         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40317         cross-compiling guesses also when the native compile gives no result.
40318
40319 2008-11-10  Bruno Haible  <bruno@clisp.org>
40320
40321         * lib/spawni.c (__spawni): Force variable into the stack.
40322
40323 2008-11-10  Bruno Haible  <bruno@clisp.org>
40324
40325         Add support for Haiku.
40326         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40327         glibc and BeOS, but also on Haiku.
40328         * lib/fpurge.c (fpurge): Likewise.
40329         * lib/freadable.c (freadable): Likewise.
40330         * lib/freadahead.c (freadahead): Likewise.
40331         * lib/freading.c (freading): Likewise.
40332         * lib/freadptr.c (freadptr): Likewise.
40333         * lib/freadseek.c (freadptrinc): Likewise.
40334         * lib/fseeko.c (rpl_fseeko): Likewise.
40335         * lib/fseterr.c (fseterr): Likewise.
40336         * lib/fwritable.c (fwritable): Likewise.
40337         * lib/fwriting.c (fwriting): Likewise.
40338         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40339
40340 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40341
40342         * lib/config.charset: Treat Haiku like BeOS.
40343
40344 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40345
40346         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40347         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40348
40349 2008-11-08  Bruno Haible  <bruno@clisp.org>
40350
40351         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40352         AC_CACHE_CHECK.
40353
40354 2008-11-08  Bruno Haible  <bruno@clisp.org>
40355
40356         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40357
40358 2008-11-08  Bruno Haible  <bruno@clisp.org>
40359
40360         * tests/test-select-fd.c: New file.
40361         * tests/test-select-in.sh: New file.
40362         * tests/test-select-out.sh: New file.
40363         * tests/test-select-stdin.c: New file.
40364         * modules/select-tests (Files): Add the new files.
40365         (Depends-on): Add gettimeofday.
40366         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40367         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40368         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40369
40370 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40371             Bruno Haible  <bruno@clisp.org>
40372
40373         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40374
40375 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40376
40377         * build-aux/pmccabe2html: Added support for C++ source files.
40378
40379 2008-11-05  Ben Pfaff  <blp@gnu.org>
40380
40381         Fix lib/close.c build on Windows.
40382         * modules/close (Files): Add lib/w32sock.h.
40383
40384 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40385
40386         Accept Bison's NEWS format.
40387         * build-aux/announce-gen (print_news_deltas): Tweak
40388         $re_prefix.
40389
40390 2008-11-04  Bruno Haible  <bruno@clisp.org>
40391
40392         * modules/random_r (Maintainer): Add glibc.
40393
40394 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40395
40396         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40397         by karl@freefriends.org (Karl Berry).
40398         * doc/alloca.texi: Likewise.
40399         * doc/c-ctype.texi: Likewise.
40400         * doc/c-strcase.texi: Likewise.
40401         * doc/c-strcaseeq.texi: Likewise.
40402         * doc/c-strcasestr.texi: Likewise.
40403         * doc/c-strstr.texi: Likewise.
40404         * doc/c-strtod.texi: Likewise.
40405         * doc/c-strtold.texi: Likewise.
40406         * doc/ctime.texi: Likewise.
40407         * doc/error.texi: Likewise.
40408         * doc/fdl.texi: Likewise.
40409         * doc/gcd.texi: Likewise.
40410         * doc/getdate.texi: Likewise.
40411         * doc/gnulib-intro.texi: Likewise.
40412         * doc/gnulib-tool.texi: Likewise.
40413         * doc/gnulib.texi: Likewise.
40414         * doc/inet_ntoa.texi: Likewise.
40415         * doc/maintain.texi: Likewise.
40416         * doc/make-stds.texi: Likewise.
40417         * doc/quote.texi: Likewise.
40418         * doc/regexprops-generic.texi: Likewise.
40419         * doc/standards.texi: Likewise.
40420         * doc/verify.texi: Likewise.
40421         * doc/visibility.texi: Likewise.
40422         * doc/gnulib.texi (GNU Free Documentation License): Include
40423         fdl-1.3.texi instead of fdl.texi.
40424
40425 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40426
40427         * doc/fdl-1.3.texi: New file, from
40428         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40429         * modules/fdl-1.3: Add.
40430         * MODULES.html.sh: Add fdl-1.3.
40431
40432 2008-11-03  Bruno Haible  <bruno@clisp.org>
40433
40434         Make determination of absolute name of header file work with AIX xlc.
40435         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40436         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40437         preprocessing.
40438         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40439         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40440
40441 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40442
40443         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40444         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40445         <ludo@gnu.org>.
40446
40447 2008-11-02  Bruno Haible  <bruno@clisp.org>
40448
40449         Mark 'strpbrk' obsolete.
40450         * modules/strpbrk (Status, Notice): New sections.
40451         * modules/strtok_r (Depends-on): Add strpbrk.
40452
40453 2008-11-02  Bruno Haible  <bruno@clisp.org>
40454
40455         Mark 'strdup' obsolete.
40456         * modules/strdup (Status, Notice): New sections.
40457         * modules/findprog (Depends-on): Add strdup.
40458         * modules/getaddrinfo (Depends-on): Likewise.
40459         * modules/localename (Depends-on): Likewise.
40460         * modules/relocatable-lib (Depends-on): Likewise.
40461         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40462         * modules/relocatable-prog (Depends-on): Likewise.
40463         * modules/trim (Depends-on): Likewise.
40464         * modules/unictype/gen-ctype (Depends-on): Likewise.
40465         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40466
40467 2008-11-02  Bruno Haible  <bruno@clisp.org>
40468
40469         Mark 'strcspn' obsolete.
40470         * modules/strcspn (Status, Notice): New sections.
40471
40472 2008-11-02  Bruno Haible  <bruno@clisp.org>
40473
40474         Mark 'rmdir' obsolete.
40475         * modules/rmdir (Status, Notice): New sections.
40476         * modules/clean-temp (Depends-on): Add rmdir.
40477         * modules/openat (Depends-on): Likewise.
40478
40479 2008-11-02  Bruno Haible  <bruno@clisp.org>
40480
40481         Mark 'raise' obsolete.
40482         * modules/raise (Status, Notice): New sections.
40483         (Include): Specify <signal.h>.
40484         * modules/stdio (Depends-on): Add raise.
40485         * modules/write (Depends-on): Likewise.
40486
40487 2008-11-02  Bruno Haible  <bruno@clisp.org>
40488
40489         Mark 'memset' obsolete.
40490         * modules/memset (Status, Notice): New sections.
40491
40492 2008-11-02  Bruno Haible  <bruno@clisp.org>
40493
40494         Mark 'memmove' obsolete.
40495         * modules/memmove (Status, Notice): New sections.
40496         * modules/argp (Depends-on): Add memmove.
40497         * modules/argz (Depends-on): Likewise.
40498         * modules/canonicalize (Depends-on): Likewise.
40499         * modules/canonicalize-lgpl (Depends-on): Likewise.
40500         * modules/fts (Depends-on): Likewise.
40501         * modules/getcwd (Depends-on): Likewise.
40502         * modules/human (Depends-on): Likewise.
40503         * modules/regex (Depends-on): Likewise.
40504         * modules/striconveh (Depends-on): Likewise.
40505         * modules/trim (Depends-on): Likewise.
40506         * modules/unistr/u8-move (Depends-on): Likewise.
40507         * modules/unistr/u16-move (Depends-on): Likewise.
40508         * modules/unistr/u32-move (Depends-on): Likewise.
40509
40510 2008-11-02  Bruno Haible  <bruno@clisp.org>
40511
40512         Mark 'memcpy' obsolete.
40513         * modules/memcpy (Status, Notice): New sections.
40514
40515 2008-11-02  Bruno Haible  <bruno@clisp.org>
40516
40517         Mark 'memcmp' obsolete.
40518         * modules/memcmp (Status, Notice): New sections.
40519         * modules/argmatch (Depends-on): Add memchr.
40520         * modules/backupfile (Depends-on): Likewise.
40521         * modules/c-strcasestr (Depends-on): Likewise.
40522         * modules/crypto/des (Depends-on): Likewise.
40523         * modules/csharpcomp (Depends-on): Likewise.
40524         * modules/fnmatch (Depends-on): Likewise.
40525         * modules/git-merge-changelog (Depends-on): Likewise.
40526         * modules/isnand (Depends-on): Likewise.
40527         * modules/isnand-nolibm (Depends-on): Likewise.
40528         * modules/isnanf (Depends-on): Likewise.
40529         * modules/isnanf-nolibm (Depends-on): Likewise.
40530         * modules/isnanl (Depends-on): Likewise.
40531         * modules/isnanl-nolibm (Depends-on): Likewise.
40532         * modules/mbchar (Depends-on): Likewise.
40533         * modules/memcoll (Depends-on): Likewise.
40534         * modules/quotearg (Depends-on): Likewise.
40535         * modules/regex (Depends-on): Likewise.
40536         * modules/relocatable-prog (Depends-on): Likewise.
40537         * modules/same (Depends-on): Likewise.
40538         * modules/signbit (Depends-on): Likewise.
40539         * modules/strcasestr-simple (Depends-on): Likewise.
40540         * modules/unictype/gen-ctype (Depends-on): Likewise.
40541         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40542         * modules/uniname/uniname (Depends-on): Likewise.
40543         * modules/unistr/u8-cmp (Depends-on): Likewise.
40544
40545 2008-11-02  Bruno Haible  <bruno@clisp.org>
40546
40547         Mark 'memchr' obsolete.
40548         * modules/memchr (Status, Notice): New sections.
40549         * modules/argp (Depends-on): Add memchr.
40550         * modules/base64 (Depends-on): Likewise.
40551         * modules/c-strcasestr (Depends-on): Likewise.
40552         * modules/chdir-long (Depends-on): Likewise.
40553         * modules/fnmatch (Depends-on): Likewise.
40554         * modules/getsubopt (Depends-on): Likewise.
40555         * modules/git-merge-changelog (Depends-on): Likewise.
40556         * modules/glob (Depends-on): Likewise.
40557         * modules/strcasestr-simple (Depends-on): Likewise.
40558         * modules/strnlen (Depends-on): Likewise.
40559
40560 2008-11-02  Bruno Haible  <bruno@clisp.org>
40561
40562         Mark 'atexit' obsolete.
40563         * modules/atexit (Status, Notice): New sections.
40564         * modules/chdir-long (Depends-on): Add atexit.
40565         * modules/wait-process (Depends-on): Likewise.
40566
40567 2008-11-02  Bruno Haible  <bruno@clisp.org>
40568
40569         * gnulib-tool: New option --with-obsolete.
40570         (func_usage): Document it.
40571         (func_modules_transitive_closure): Drop obsolete dependencies if
40572         incobsolete is not true.
40573         (func_import): Read and save the incobsolete variable to the cache.
40574
40575 2008-11-02  Bruno Haible  <bruno@clisp.org>
40576
40577         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40578         * gnulib-tool: New option --extract-status.
40579         (func_usage): Document it.
40580         (sed_extract_prog): Recognize it.
40581         (func_get_status): New function.
40582
40583 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40584
40585         * modules/sockets (License): Change from LGPL to LGPLv2+.
40586
40587 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40588
40589         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40590
40591 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40592
40593         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40594         Mention times and sys_times.
40595         * modules/sys_times, modules/sys_times-tests: New modules.
40596         * modules/times, modules/times-tests: Likewise
40597         * m4/sys_times_h.m4: New file.
40598         * lib/sys_times.in.h: Likewise
40599         * lib/times.c: Likewise.
40600         * tests/test-sys_times.c: Likewise.
40601         * tests/test-times.c: Likewise.
40602         * doc/posix-headers/sys_times.texi: Update.
40603         * doc/posix-functions/times.texi: Update.
40604
40605 2008-10-28  Jim Meyering  <meyering@redhat.com>
40606
40607         * modules/tempname (Depends-on): Add lstat.
40608
40609         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40610
40611 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40612
40613         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40614         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40615         using idiom used elsewhere in gnulib.
40616
40617 2008-10-27  Jim Meyering  <meyering@redhat.com>
40618
40619         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40620
40621 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40622
40623         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40624         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40625         programs.
40626         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40627
40628 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40629
40630         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40631
40632 2008-10-27  Bruno Haible  <bruno@clisp.org>
40633
40634         * tests/test-lstat.c: Include <stdio.h>.
40635
40636 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40637
40638         * modules/lstat-tests: New module.
40639         * tests/test-lstat.c: New file.
40640
40641 2008-10-26  Jim Meyering  <meyering@redhat.com>
40642
40643         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40644
40645 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40646             Bruno Haible  <bruno@clisp.org>
40647
40648         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40649         * modules/configmake (Include): Add a note that the include must come
40650         after all system headers.
40651         * lib/javaversion.c: Include configmake.h after all other includes.
40652
40653 2008-10-26  Bruno Haible  <bruno@clisp.org>
40654
40655         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40656         HAVE_STRUCT_RANDOM_DATA to 1.
40657         (gl_STDLIB_H): Simplify.
40658
40659 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40660
40661         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40662         substitute HAVE_STRUCT_RANDOM_DATA.
40663         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40664         random_data.
40665         * modules/stdlib (Makefile.am): Substitute
40666         HAVE_STRUCT_RANDOM_DATA.
40667
40668 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40669
40670         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40671         * doc/gnulib-intro.texi (Copyright): Likewise.
40672
40673 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40674
40675         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40676         findings.
40677
40678 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40679             Bruno Haible  <bruno@clisp.org>
40680
40681         * lib/unistd.in.h: Include <winsock2.h>.
40682         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40683         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40684         Provide dummy declarations.
40685         (gethostname): Override.
40686         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40687         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40688         gl_PREREQ_SYS_H_WINSOCK2.
40689         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40690         * doc/posix-functions/gethostname.texi: More details.
40691
40692 2008-10-25  Bruno Haible  <bruno@clisp.org>
40693
40694         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40695         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40696         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40697
40698         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40699         here ...
40700         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40701         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40702         gl_UNISTD_H_DEFAULTS.
40703
40704 2008-10-25  Eric Blake  <ebb9@byu.net>
40705
40706         signbit: avoid spurious compiler failure
40707         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40708         declarations inside function.
40709
40710 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40711             Bruno Haible  <bruno@clisp.org>
40712
40713         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40714         * modules/random_r (Depends-on): Add stdint.
40715
40716 2008-10-24  Bruno Haible  <bruno@clisp.org>
40717
40718         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40719         Eggert.
40720         * modules/strerror (License): Likewise.
40721
40722 2008-10-24  Jim Meyering  <meyering@redhat.com>
40723
40724         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40725         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40726
40727 2008-10-24  Eric Blake  <ebb9@byu.net>
40728
40729         getgroups: fix compilation when getgroups is available
40730         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40731         but with <config.h> override of getgroups disabled.
40732
40733 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40734
40735         * doc/gnulib.texi (Header files): Add note about C++ problems.
40736         Explained by Bruno Haible <bruno@clisp.org>.
40737
40738 2008-10-23  Bruno Haible  <bruno@clisp.org>
40739
40740         Define a dummy SA_NODEFER macro on Interix.
40741         * lib/signal.in.h (SA_NODEFER): Define fallback.
40742         Reported by Aleksey Cheusov <cheusov@tut.by> via
40743         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40744
40745 2008-10-23  Bruno Haible  <bruno@clisp.org>
40746
40747         * modules/freadahead (License): Change to LGPLv2+.
40748         Suggested by Simon Josefsson.
40749
40750 2008-10-23  Jim Meyering  <meyering@redhat.com>
40751
40752         random_r: new module
40753         * modules/random_r: New file.
40754         * m4/random_r.m4: New file.
40755         * lib/random_r.c: New file, from glibc.
40756         * modules/random_r-tests: New file.
40757         * tests/test-random_r.c: New file.
40758         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40759          Declare.
40760         (RAND_MAX): Define.
40761         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40762         * modules/stdlib: Substitute them, too.
40763         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40764         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40765         * doc/glibc-functions/random_r.texi: Likewise.
40766         * doc/glibc-functions/setstate_r.texi: Likewise.
40767         * doc/glibc-functions/srandom_r.texi: Likewise.
40768         * config/srclist.txt: Mention it.
40769
40770 2008-10-23  David Lutterkort  <lutter@redhat.com>
40771
40772         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40773         link requirement
40774
40775 2008-10-23  Jim Meyering  <meyering@redhat.com>
40776
40777         selinux-h: mark parameters of stub functions as intentionally unused
40778         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40779         * lib/se-context.in.h: Likewise.
40780
40781 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40782
40783         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40784
40785 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40786
40787         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40788
40789 2008-10-22  Eric Blake  <ebb9@byu.net>
40790
40791         glthread/thread: avoid compiler warning
40792         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40793         Add unreachable abort to silence compiler.
40794
40795 2008-10-22  Eric Blake  <ebb9@byu.net>
40796
40797         netdb: also supply struct addrinfo for cygwin 1.5.x
40798         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40799         older cygwin.
40800         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40801         cygwin.
40802         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40803
40804 2008-10-22  Bruno Haible  <bruno@clisp.org>
40805
40806         * users.txt: Update entry about pspp.
40807
40808 2008-10-21  Bruno Haible  <bruno@clisp.org>
40809
40810         Simplification.
40811         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40812         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40813
40814         Simplification.
40815         * lib/ioctl.c (ioctl): Don't undefine.
40816         * lib/socket.c (socket): Don't undefine.
40817
40818         Remove unused module indicator macros.
40819         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40820         GNULIB_$1 as a C macro.
40821
40822         * doc/posix-functions/close.texi: Undo last change.
40823         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40824         Windows platforms.
40825
40826 2008-10-21  Bruno Haible  <bruno@clisp.org>
40827
40828         Add gethostname() declaration to <unistd.h>.
40829         * lib/unistd.in.h (gethostname): New declaration.
40830         * lib/gethostname.c: Include <unistd.h>.
40831         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40832         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40833         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40834         and HAVE_GETHOSTNAME.
40835         * modules/gethostname (Depends-on): Add unistd.
40836         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40837         (Include): Specify <unistd.h>.
40838         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40839         HAVE_GETHOSTNAME.
40840         * tests/test-gethostname.c: Include <unistd.h> first.
40841
40842 2008-10-21  Bruno Haible  <bruno@clisp.org>
40843
40844         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40845         * modules/select-tests (Depends-on): Likewise.
40846         Reported by Simon Josefsson.
40847
40848 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40849
40850         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40851         * lib/accept.c: New file, based on winsock.c.
40852         * lib/bind.c: New file, based on winsock.c.
40853         * lib/connect.c: New file, based on winsock.c.
40854         * lib/getpeername.c: New file, based on winsock.c.
40855         * lib/getsockname.c: New file, based on winsock.c.
40856         * lib/getsockopt.c: New file, based on winsock.c.
40857         * lib/ioctl.c: New file, based on winsock.c.
40858         * lib/listen.c: New file, based on winsock.c.
40859         * lib/recv.c: New file, based on winsock.c.
40860         * lib/recvfrom.c: New file, based on winsock.c.
40861         * lib/send.c: New file, based on winsock.c.
40862         * lib/sendto.c: New file, based on winsock.c.
40863         * lib/setsockopt.c: New file, based on winsock.c.
40864         * lib/shutdown.c: New file, based on winsock.c.
40865         * lib/socket.c: New file, based on winsock.c.
40866         * lib/w32sock.h: New file, based on winsock.c.
40867         * lib/winsock.c: Remove file.
40868         * modules/accept: Likewise.
40869         * modules/bind: Likewise.
40870         * modules/connect: Likewise.
40871         * modules/getpeername: Likewise.
40872         * modules/getsockname: Likewise.
40873         * modules/getsockopt: Likewise.
40874         * modules/ioctl: Likewise.
40875         * modules/listen: Likewise.
40876         * modules/recv: Likewise.
40877         * modules/recvfrom: Likewise.
40878         * modules/send: Likewise.
40879         * modules/sendto: Likewise.
40880         * modules/setsockopt: Likewise.
40881         * modules/shutdown: Likewise.
40882         * modules/socket: Use socket.c instead of winsock.c.
40883         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40884         * doc/posix-functions/accept.texi: Doc fix.
40885         * doc/posix-functions/bind.texi: Doc fix.
40886         * doc/posix-functions/close.texi: Doc fix.
40887         * doc/posix-functions/connect.texi: Doc fix.
40888         * doc/posix-functions/getpeername.texi: Doc fix.
40889         * doc/posix-functions/getsockname.texi: Doc fix.
40890         * doc/posix-functions/getsockopt.texi: Doc fix.
40891         * doc/posix-functions/ioctl.texi: Doc fix.
40892         * doc/posix-functions/listen.texi: Doc fix.
40893         * doc/posix-functions/recv.texi: Doc fix.
40894         * doc/posix-functions/recvfrom.texi: Doc fix.
40895         * doc/posix-functions/send.texi: Doc fix.
40896         * doc/posix-functions/sendto.texi: Doc fix.
40897         * doc/posix-functions/setsockopt.texi: Doc fix.
40898         * doc/posix-functions/shutdown.texi: Doc fix.
40899         * doc/posix-functions/socket.texi: Doc fix.
40900
40901 2008-10-20  Bruno Haible  <bruno@clisp.org>
40902
40903         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40904         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40905         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40906         as an alias for SIGABRT.
40907         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40908         (sigaction): Map it to SIGABRT.
40909         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40910
40911 2008-10-20  Bruno Haible  <bruno@clisp.org>
40912
40913         * lib/fts.c: Don't include lstat.h.
40914         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40915
40916         Move the lstat() declaration to <sys/stat.h>.
40917         * lib/lstat.h: Remove file.
40918         * lib/sys_stat.in.h: Add special invocation convention.
40919         (lstat): New declaration.
40920         * lib/lstat.c (orig_lstat): New function.
40921         (rpl_lstat): Use orig_lstat instead of lstat.
40922         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40923         AC_C_INLINE. Set REPLACE_LSTAT.
40924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40925         and REPLACE_LSTAT.
40926         * modules/lstat (Files): Remove lib/lstat.h.
40927         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40928         (Include): Specify <sys/stat.h> instead of lstat.h.
40929         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40930         REPLACE_LSTAT.
40931         * NEWS: Mention the change.
40932
40933 2008-10-20  Bruno Haible  <bruno@clisp.org>
40934
40935         * modules/posix_spawn-tests: New file.
40936         * tests/test-posix_spawn3.c: New file.
40937
40938 2008-10-20  Bruno Haible  <bruno@clisp.org>
40939
40940         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40941         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40942         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40943         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40944         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40945
40946 2008-10-20  Bruno Haible  <bruno@clisp.org>
40947
40948         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
40949         of posix_spawn on AIX 5.3.
40950
40951 2008-10-20  Bruno Haible  <bruno@clisp.org>
40952
40953         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
40954
40955 2008-10-20  Bruno Haible  <bruno@clisp.org>
40956
40957         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
40958         of AC_LANG_PROGRAM.
40959
40960 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40961
40962         * lib/netdb.in.h: Don't define GNU specific constants until they
40963         are supported or needed.  Reported by Bruno Haible
40964         <bruno@clisp.org>.
40965
40966 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40967
40968         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
40969
40970 2008-10-20  Simon Josefsson  <simon@josefsson.org>
40971
40972         * lib/getaddrinfo.h: Remove file.
40973         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
40974         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
40975         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
40976         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
40977         * modules/netdb: Substitute GNULIB_GETADDRINFO.
40978         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
40979         * tests/test-getaddrinfo.c: Likewise.
40980         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
40981         * NEWS: Mention change.
40982
40983 2008-10-19  Bruno Haible  <bruno@clisp.org>
40984
40985         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
40986
40987 2008-10-19  Bruno Haible  <bruno@clisp.org>
40988
40989         * lib/wait-process.c: Include simply <sys/wait.h>.
40990         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
40991         WIFSTOPPED): Remove fallback definitions.
40992         * modules/wait-process (Depends-on): Add sys_wait.
40993
40994         New module 'sys_wait'.
40995         * modules/sys_wait: New file.
40996         * lib/sys_wait.in.h: New file, partially copied from
40997         lib/wait-process.c.
40998         * m4/sys_wait_h.m4: New file.
40999         * doc/posix-headers/sys_wait.texi: Mention the new module.
41000
41001 2008-10-19  Bruno Haible  <bruno@clisp.org>
41002
41003         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41004
41005 2008-10-19  Bruno Haible  <bruno@clisp.org>
41006
41007         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41008         * lib/wait-process.c (WAIT_T): Remove type.
41009         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41010         (wait_subprocess): Update.
41011
41012 2008-10-19  Bruno Haible  <bruno@clisp.org>
41013
41014         New module 'atoll'.
41015         * modules/atoll: New file.
41016         * lib/stdlib.in.h (atoll): New declaration.
41017         * lib/atoll.c: New file, from glibc with modifications.
41018         * m4/atoll.m4: New file.
41019         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41020         HAVE_ATOLL.
41021         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41022         * doc/posix-functions/atoll.texi: Mention the new module.
41023
41024 2008-10-19  Bruno Haible  <bruno@clisp.org>
41025
41026         Add strtoull() declaration to <stdlib.h>.
41027         * lib/stdlib.in.h (strtoull): New declaration.
41028         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41029         Set HAVE_STRTOULL.
41030         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41031         HAVE_STRTOULL.
41032         * modules/strtoull (Depends-on): Add stdlib.
41033         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41034         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41035         HAVE_STRTOULL.
41036
41037 2008-10-19  Bruno Haible  <bruno@clisp.org>
41038
41039         Add strtoll() declaration to <stdlib.h>.
41040         * lib/stdlib.in.h (strtoll): New declaration.
41041         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41042         Set HAVE_STRTOLL.
41043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41044         HAVE_STRTOLL.
41045         * modules/strtoll (Depends-on): Add stdlib.
41046         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41047         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41048
41049 2008-10-19  Bruno Haible  <bruno@clisp.org>
41050
41051         * modules/bcopy (Depends-on): Add strings.
41052         (Include): Specify <strings.h>.
41053
41054 2008-10-19  Bruno Haible  <bruno@clisp.org>
41055
41056         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41057
41058 2008-10-19  Bruno Haible  <bruno@clisp.org>
41059
41060         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41061         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41062         mingw.
41063
41064 2008-10-19  Bruno Haible  <bruno@clisp.org>
41065
41066         * lib/atanl.c: Don't include isnanl.h.
41067         * lib/cosl.c: Likewise.
41068         * lib/ldexpl.c: Likewise.
41069         * lib/logl.c: Likewise.
41070         * lib/sinl.c: Likewise.
41071         * lib/sqrtl.c: Likewise.
41072         * lib/tanl.c: Likewise.
41073
41074         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41075         * lib/isnanf.h: Remove file.
41076         * lib/isnand.h: Remove file.
41077         * lib/isnanl.h: Remove file.
41078         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41079         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41080         macros.
41081         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41082         HAVE_ISNANF, don't define it as a C macro.
41083         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41084         HAVE_ISNAND, don't define it as a C macro.
41085         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41086         HAVE_ISNANL, don't define it as a C macro.
41087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41088         HAVE_ISNAN[FDL].
41089         * modules/isnanf (Files): Remove lib/isnanf.h.
41090         (Depends-on): Add math.
41091         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41092         (Include): Specify <math.h> instead of isnanf.h.
41093         * modules/isnand (Files): Remove lib/isnand.h.
41094         (Depends-on): Add math.
41095         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41096         (Include): Specify <math.h> instead of isnand.h.
41097         * modules/isnanl (Files): Remove lib/isnanl.h.
41098         (Depends-on): Add math.
41099         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41100         (Include): Specify <math.h> instead of isnanl.h.
41101         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41102         HAVE_ISNAN[FDL].
41103         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41104         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41105         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41106         * NEWS: Mention the change.
41107
41108 2008-10-18  Bruno Haible  <bruno@clisp.org>
41109
41110         Add getusershell(), setusershell(), endusershell() declarations to
41111         <unistd.h>.
41112         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41113         declarations.
41114         * lib/getusershell.c: Include unistd.h.
41115         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41116         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41117         HAVE_GETUSERSHELL.
41118         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41119         and HAVE_GETUSERSHELL.
41120         * modules/getusershell (Depends-on): Add unistd, extensions.
41121         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41122         (Include): Specify <unistd.h>.
41123         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41124         HAVE_GETUSERSHELL.
41125
41126 2008-10-18  Bruno Haible  <bruno@clisp.org>
41127
41128         Add a getloadavg() declaration to <stdlib.h>.
41129         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41130         getloadavg declaration.
41131         (getloadavg): New declaration.
41132         * lib/getloadavg.c: Include <stdlib.h> first.
41133         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41134         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41135         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41136         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41137         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41138         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41139         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41140         (Include): Specify <stdlib.h>.
41141         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41142         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41143
41144 2008-10-18  Bruno Haible  <bruno@clisp.org>
41145
41146         * lib/dirchownmod.c: Don't include lchmod.h.
41147
41148         Move the lchmod() declaration to <sys/stat.h>.
41149         * lib/lchmod.h: Remove file.
41150         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41151         (lchmod): New declaration, moved here from lib/lchown.h.
41152         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41153         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41154         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41155         and HAVE_LCHMOD.
41156         * modules/lchmod (Files): Remove lib/lchmod.h.
41157         (Depends-on): Add sys_stat, extensions.
41158         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41159         (Include): Specify <sys/stat.h> instead of lchmod.h.
41160         * modules/sys_stat (Depends-on): Add link-warning.
41161         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41162         definition of GL_LINK_WARNING.
41163         * NEWS: Mention the change.
41164
41165 2008-10-18  Bruno Haible  <bruno@clisp.org>
41166
41167         * lib/fchdir.c: Don't include dirfd.h.
41168         * lib/fts.c: Likewise.
41169         * lib/getcwd.c: Likewise.
41170         * lib/glob.c: Likewise.
41171
41172         Move the dirfd() declaration to <dirent.h>.
41173         * lib/dirfd.h: Remove file.
41174         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41175         (dirfd): New declaration.
41176         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41177         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41178         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41179         HAVE_DECL_DIRFD.
41180         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41181         HAVE_DECL_DIRFD.
41182         * modules/dirfd (Files): Remove lib/dirfd.h.
41183         (Depends-on): Add dirent, extensions.
41184         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41185         (Include): Specify <dirent.h> instead of dirfd.h.
41186         * modules/dirent (Depends-on): Add link-warning.
41187         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41188         definition of GL_LINK_WARNING.
41189         * NEWS: Mention the change.
41190
41191 2008-10-18  Bruno Haible  <bruno@clisp.org>
41192
41193         Move the euidaccess() declaration to <unistd.h>.
41194         * lib/euidaccess.h: Remove file.
41195         * lib/unistd.in.h (euidaccess): New declaration.
41196         * lib/euidaccess.c: Don't include euidaccess.h.
41197         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41198         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41199         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41200         and HAVE_EUIDACCESS.
41201         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41202         (Depends-on): Add unistd.
41203         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41204         (Include): Specify <unistd.h> instead of euidaccess.h.
41205         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41206         HAVE_EUIDACCESS.
41207         * NEWS: Mention the change.
41208
41209 2008-10-18  Bruno Haible  <bruno@clisp.org>
41210
41211         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41212
41213         Move the getdomainname() declaration to <unistd.h>.
41214         * lib/getdomainname.h: Remove file.
41215         * lib/unistd.in.h (getdomainname): New declaration.
41216         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41217         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41218         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41219         HAVE_GETDOMAINNAME.
41220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41221         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41222         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41223         (Depends-on): Add unistd, extensions.
41224         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41225         (Includes): Specify <unistd.h> instead of getdomainname.h.
41226         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41227         HAVE_GETDOMAINNAME.
41228         * NEWS: Mention the change.
41229
41230 2008-10-18  Bruno Haible  <bruno@clisp.org>
41231
41232         * modules/dirent: New file.
41233         * m4/dirent_h.m4: New file.
41234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41235         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41236         * modules/fchdir (Files): Remove lib/dirent.in.h.
41237         (Depends-on): Add dirent.
41238         (Makefile.am): Move rules to modules/dirent.
41239         * doc/posix-headers/dirent.texi: Mention the new module.
41240
41241 2008-10-18  Bruno Haible  <bruno@clisp.org>
41242
41243         Avoid -Wunused-parameter warnings in public gnulib header files.
41244         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41245         macro.
41246         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41247
41248 2008-10-18  Bruno Haible  <bruno@clisp.org>
41249
41250         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41251         * doc/glibc-functions/error.texi: Mention the module 'error'.
41252         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41253         * doc/glibc-functions/getdomainname.texi: Mention the module
41254         'getdomainname'.
41255         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41256         * doc/glibc-functions/getpagesize.texi: Mention the module
41257         'getpagesize'.
41258         * doc/glibc-functions/getusershell.texi: Mention the module
41259         'getusershell'.
41260         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41261         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41262         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41263         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41264         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41265         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41266         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41267         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41268         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41269         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41270         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41271         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41272         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41273         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41274
41275 2008-10-17  Bruno Haible  <bruno@clisp.org>
41276
41277         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41278         HP-UX and IRIX, use -0.0L.
41279         * tests/test-ceill.c (minus_zero): Likewise.
41280         * tests/test-floorl.c (minus_zero): Likewise.
41281         * tests/test-frexpl.c (minus_zero): Likewise.
41282         * tests/test-isnan.c (minus_zerol): Likewise.
41283         * tests/test-isnanl.h (minus_zero): Likewise.
41284         * tests/test-ldexpl.c (minus_zero): Likewise.
41285         * tests/test-roundl.c (minus_zero): Likewise.
41286         * tests/test-signbit.c (minus_zerol): Likewise.
41287         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41288         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41289         * tests/test-truncl.c (minus_zero): Likewise.
41290         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41291         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41292         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41293         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41294
41295 2008-10-17  Bruno Haible  <bruno@clisp.org>
41296
41297         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41298         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41299         that it gets activated only for gcc >= 3.0.
41300         * lib/dirent.in.h: Likewise.
41301         * lib/errno.in.h: Likewise.
41302         * lib/fcntl.in.h: Likewise.
41303         * lib/float.in.h: Likewise.
41304         * lib/iconv.in.h: Likewise.
41305         * lib/inttypes.in.h: Likewise.
41306         * lib/locale.in.h: Likewise.
41307         * lib/math.in.h: Likewise.
41308         * lib/netdb.in.h: Likewise.
41309         * lib/netinet_in.in.h: Likewise.
41310         * lib/search.in.h: Likewise.
41311         * lib/signal.in.h: Likewise.
41312         * lib/spawn.in.h: Likewise.
41313         * lib/stdarg.in.h: Likewise.
41314         * lib/stdint.in.h: Likewise.
41315         * lib/stdio.in.h: Likewise.
41316         * lib/stdlib.in.h: Likewise.
41317         * lib/string.in.h: Likewise.
41318         * lib/strings.in.h: Likewise.
41319         * lib/sys_file.in.h: Likewise.
41320         * lib/sys_ioctl.in.h: Likewise.
41321         * lib/sys_select.in.h: Likewise.
41322         * lib/sys_socket.in.h: Likewise.
41323         * lib/sys_stat.in.h: Likewise.
41324         * lib/sys_time.in.h: Likewise.
41325         * lib/sysexits.in.h: Likewise.
41326         * lib/time.in.h: Likewise.
41327         * lib/unistd.in.h: Likewise.
41328         * lib/wchar.in.h: Likewise.
41329         * lib/wctype.in.h: Likewise.
41330         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41331
41332 2008-10-17  Jim Meyering  <meyering@redhat.com>
41333
41334         ignore-value: don't depend on inline module
41335         * modules/ignore-value (Depends-on): Remove 'inline'.
41336         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41337         Suggestion from Bruno Haible.
41338
41339 2008-10-17  Bruno Haible  <bruno@clisp.org>
41340
41341         New implementation of condition variables for Win32.
41342         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41343         (gl_linked_waitqueue_t): New type.
41344         (gl_cond_t): Use it.
41345         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41346         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41347         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41348         (glthread_cond_init_func, glthread_cond_wait_func,
41349         glthread_cond_timedwait_func, glthread_cond_signal_func,
41350         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41351         Reimplemented on the basis of gl_linked_waitqueue_t.
41352         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41353         gl_waitqueue_t.
41354         (gl_rwlock_t): Update.
41355         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41356
41357 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41358
41359         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41360         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41361
41362 2008-10-17  Jim Meyering  <meyering@redhat.com>
41363
41364         ignore-value: new module
41365         * modules/ignore-value: New file.
41366         * lib/ignore-value.h: New file.
41367         * MODULES.html.sh (Compiler warning management): New section,
41368         just for this module.  More to come.
41369
41370 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41371
41372         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41373         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41374         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41375
41376 2008-10-16  Jim Meyering  <meyering@redhat.com>
41377
41378         openat-die.c: avoid 'no previous prototype' warning
41379         * lib/openat-die.c: Include "openat.h".
41380         Reported by Reuben Thomas <rrt@sc3d.org>.
41381
41382 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41383
41384         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41385         * lib/netdb.in.h: Fix typo.
41386         Reported by Bruno Haible  <bruno@clisp.org>
41387
41388         * lib/netdb.in.h: Include sys/socket.h for platforms without
41389         netdb.h, to get structures like hostent on MinGW.
41390         * modules/netdb (Depends-on): Add sys_socket.
41391
41392 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41393
41394         * modules/netdb, modules/netdb-tests: New file.
41395         * m4/netdb_h.m4: New file.
41396         * lib/netdb.in.h: Add, currently just an empty file pending
41397         definitions.
41398         * tests/test-netdb.c: New file.
41399         * doc/posix-headers/netdb.texi: Mention that we replace it if
41400         needed.
41401         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41402         netdb.
41403
41404 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41405
41406         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41407         with code.
41408
41409 2008-10-13  Bruno Haible  <bruno@clisp.org>
41410
41411         * lib/glthread/cond.c (glthread_cond_wait_func,
41412         glthread_cond_timedwait_func): Add a comment.
41413
41414 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41415
41416         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41417         * tests/test-select.c: Likewise,
41418
41419 2008-10-13  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/glthread/cond.c (glthread_cond_wait_func,
41422         glthread_cond_timedwait_func): Fix variable name.
41423         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41424
41425 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41426
41427         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41428         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41429         struct sockaddr.sa_len.
41430         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41431
41432 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41433
41434         * build-aux/pmccabe2html: Add css and css_url parameters.
41435
41436 2008-10-12  Bruno Haible  <bruno@clisp.org>
41437
41438         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41439         calling aclx_get.
41440         Reported by Rainer Tammer <tammer@tammer.net>.
41441
41442 2008-10-12  Bruno Haible  <bruno@clisp.org>
41443
41444         Use msvcrt aware primitives for creation/termination of Win32 threads.
41445         * lib/glthread/thread.c: Include <process.h>.
41446         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41447         (wrapper_func): Update signature.
41448         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41449
41450 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41451             Bruno Haible  <bruno@clisp.org>
41452
41453         Provide a Win32 implementation of the 'cond' module.
41454         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41455         * lib/glthread/cond.c (glthread_cond_init_func,
41456         glthread_cond_wait_func, glthread_cond_timedwait_func,
41457         glthread_cond_signal_func, glthread_cond_broadcast_func,
41458         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41459         * modules/cond (Dependencies): Add gettimeofday.
41460
41461 2008-10-11  Bruno Haible  <bruno@clisp.org>
41462
41463         Make sleep work on older versions of mingw.
41464         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41465         only whether it exists.
41466         * doc/posix-functions/sleep.texi: Mention the problem with older
41467         versions of mingw.
41468
41469 2008-10-11  Bruno Haible  <bruno@clisp.org>
41470
41471         New module 'shutdown'.
41472         * modules/shutdown: New file.
41473         * lib/sys_socket.in.h (shutdown): New declaration.
41474         * lib/winsock.c (shutdown): New function.
41475         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41476         GNULIB_SHUTDOWN.
41477         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41478         * doc/posix-functions/shutdown.texi: Document the new module.
41479
41480 2008-10-11  Jim Meyering  <meyering@redhat.com>
41481
41482         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41483
41484 2008-10-11  Bruno Haible  <bruno@clisp.org>
41485
41486         New module 'fclose'.
41487         * modules/fclose: New file.
41488         * lib/stdio.in.h (fclose): New declaration.
41489         * lib/fclose.c: New file.
41490         * m4/fclose.m4: New file.
41491         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41492         REPLACE_FCLOSE.
41493         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41494         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41495         REPLACE_FCLOSE.
41496         * modules/close (Depends-on): fclose.
41497         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41498
41499 2008-10-11  Bruno Haible  <bruno@clisp.org>
41500
41501         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41502         set errno and don't call _close.
41503
41504 2008-10-10  Bruno Haible  <bruno@clisp.org>
41505
41506         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41507         ACL, not afterwards. Fixes test failure on Cygwin.
41508
41509 2008-10-09  Ben Pfaff  <blp@gnu.org>
41510
41511         * build-aux/announce-gen: Fix gnulib version related part of usage
41512         message.  Die with a useful error message if no tarballs are
41513         found.
41514
41515 2008-10-10  Jim Meyering  <meyering@redhat.com>
41516
41517         bootstrap: use git's --depth=N option only if it's supported
41518         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41519         recognize the --depth option.  Reported by Pádraig Brady.
41520
41521 2008-10-09  Bruno Haible  <bruno@clisp.org>
41522
41523         New module 'ioctl'.
41524         * modules/ioctl: New file.
41525         * lib/sys_socket.in.h (ioctl): Remove declaration.
41526         * lib/winsock.c: Include <sys/ioctl.h>.
41527         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41528         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41529         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41530         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41531         * doc/posix-functions/ioctl.texi: Mention the new module.
41532
41533 2008-10-09  Bruno Haible  <bruno@clisp.org>
41534
41535         New module 'sys_ioctl'.
41536         * lib/sys_ioctl.in.h: New file.
41537         * m4/sys_ioctl_h.m4: New file.
41538         * modules/sys_ioctl: New file.
41539         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41540
41541 2008-10-09  Bruno Haible  <bruno@clisp.org>
41542
41543         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41544         * lib/winsock.c: Include <stdarg.h>.
41545         (rpl_ioctl): Change to second argument 'int' and then varargs.
41546
41547 2008-10-09  Bruno Haible  <bruno@clisp.org>
41548
41549         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41550         when the sys_socket module is present and the system has <winsock2.h>.
41551
41552 2008-10-09  Bruno Haible  <bruno@clisp.org>
41553
41554         * doc/posix-functions/close.texi: Mention module 'close' instead of
41555         module 'sys_socket'.
41556
41557 2008-10-09  Bruno Haible  <bruno@clisp.org>
41558
41559         * doc/glibc-headers/sys_ioctl.texi: New file.
41560         * doc/gnulib.texi: Include it.
41561
41562 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41563             Bruno Haible  <bruno@clisp.org>
41564
41565         Combine the two replacements of 'close'.
41566         * lib/sys_socket.in.h (close): Define to a reminder to include
41567         <unistd.h>.
41568         (_gl_close_fd_maybe_socket): New declaration.
41569         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41570         * lib/winsock.c (close): Remove undefinition.
41571         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41572         needed for the gnulib module 'close'.
41573         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41574         define to an error symbol or to a warning, if suitable.
41575         * lib/close.c: Include <sys/socket.h>.
41576         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41577         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41578         UNISTD_H_HAVE_WINSOCK2_H.
41579         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41580         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41581         UNISTD_H_HAVE_WINSOCK2_H.
41582         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41583         (configure.ac): Set a module indicator.
41584         (Makefile.am): Substitute GNULIB_CLOSE.
41585         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41586         * modules/poll-tests (Depends-on): Add close.
41587         * modules/select-tests (Depends-on): Likewise.
41588
41589 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41590             Bruno Haible  <bruno@clisp.org>
41591
41592         New module 'close'.
41593         * modules/close: New file.
41594         * lib/unistd.in.h (close): Move declaration out of the
41595         FCHDIR_REPLACEMENT scope.
41596         (_gl_unregister_fd): New declaration.
41597         * lib/close.c: New file.
41598         * lib/fchdir.c (rpl_close): Remove function.
41599         * m4/close.m4: New file.
41600         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41601         close.
41602         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41603         REPLACE_CLOSE.
41604         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41605         REPLACE_CLOSE.
41606         * modules/fchdir (Depends-on): Add close.
41607
41608 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41609             Bruno Haible  <bruno@clisp.org>
41610
41611         * lib/fcntl.in.h (open): Simplify conditionals.
41612         (_gl_register_fd): New declaration.
41613         * lib/fchdir.c (rpl_open): Remove function.
41614         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41615         also.
41616         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41617         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41618         open.
41619
41620 2008-10-09  Jim Meyering  <meyering@redhat.com>
41621
41622         GNUmakefile: use the more name-space-friendly "_version"
41623         * top/GNUmakefile (_dummy): Update.
41624         (_version): Rename from "version".
41625
41626 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41627             Bruno Haible  <bruno@clisp.org>
41628
41629         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41630         rpl_close.
41631         (_gl_register_fd): New function, extracted from rpl_open.
41632         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41633         (rpl_open, rpl_opendir): Use _gl_register_fd.
41634
41635 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41636
41637         Fix organization of 'open' replacement.
41638         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41639         (gl_FUNC_OPEN): Use it.
41640         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41641
41642 2008-10-08  Bruno Haible  <bruno@clisp.org>
41643
41644         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41645
41646 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41647
41648         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41649         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41650         listen).
41651
41652 2008-10-08  Eric Blake  <ebb9@byu.net>
41653
41654         GNUmakefile: add 'make version' target
41655         * top/GNUmakefile (_curr-ver): Split version update rules...
41656         (version): ...into a target.
41657
41658 2008-10-07  Bruno Haible  <bruno@clisp.org>
41659
41660         Use a more portable replacement expression for -0.0L.
41661         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41662         instead of -0.0L. Fix m4 quotation.
41663
41664         * tests/test-signbit.c: Include <float.h>.
41665         (minus_zero): New variable.
41666         (test_signbitl): Use minus_zero instead of -zero.
41667         * modules/signbit-tests (Depends-on): Add float.
41668
41669         * tests/test-ceill.c: Include <float.h>.
41670         (zero): Remove variable.
41671         (minus_zero): New variable.
41672         (main): Use minus_zero instead of -zero.
41673         * modules/ceill-tests (Depends-on): Add float.
41674
41675         * tests/test-floorl.c: Include <float.h>.
41676         (zero): Remove variable.
41677         (minus_zero): New variable.
41678         (main): Use minus_zero instead of -zero.
41679         * modules/floorl-tests (Depends-on): Add float.
41680
41681         * tests/test-roundl.c: Include <float.h>.
41682         (zero): Remove variable.
41683         (minus_zero): New variable.
41684         (main): Use minus_zero instead of -zero.
41685         * modules/roundl-tests (Depends-on): Add float.
41686
41687         * tests/test-truncl.c: Include <float.h>.
41688         (zero): Remove variable.
41689         (minus_zero): New variable.
41690         (main): Use minus_zero instead of -zero.
41691         * modules/truncl-tests (Depends-on): Add float.
41692
41693         * tests/test-frexpl.c (zero): Remove variable.
41694         (minus_zero): New variable.
41695         (main): Use minus_zero instead of -zero.
41696         * modules/frexpl-tests (Depends-on): Add float.
41697
41698         * tests/test-isnan.c (zerol): Remove variable.
41699         (minus_zerol): New variable.
41700         (test_long_double): Use minus_zerol instead of -zerol.
41701         * modules/isnan-tests (Depends-on): Add float.
41702
41703         * tests/test-isnanl.h (zero): Remove variable.
41704         (minus_zero): New variable.
41705         (main): Use minus_zero instead of -zero.
41706         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41707         * modules/isnanl-tests (Depends-on): Add float.
41708
41709         * tests/test-ldexpl.c (zero): Remove variable.
41710         (minus_zero): New variable.
41711         (main): Use minus_zero instead of -zero.
41712         * modules/ldexpl-tests (Depends-on): Add float.
41713
41714         * tests/test-snprintf-posix.h (zerol): Remove variable.
41715         (minus_zerol): New variable.
41716         (test_function): Use minus_zerol instead of -zerol.
41717         * modules/snprintf-posix-tests (Depends-on): Add float.
41718         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41719
41720         * tests/test-sprintf-posix.h (zerol): Remove variable.
41721         (minus_zerol): New variable.
41722         (test_function): Use minus_zerol instead of -zerol.
41723         * modules/sprintf-posix-tests (Depends-on): Add float.
41724         * modules/vsprintf-posix-tests (Depends-on): Add float.
41725
41726         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41727         (minus_zerol): New variable.
41728         (test_function): Use minus_zerol instead of -zerol.
41729         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41730
41731         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41732         (minus_zerol): New variable.
41733         (test_function): Use minus_zerol instead of -zerol.
41734         * modules/vasprintf-posix-tests (Depends-on): Add float.
41735
41736 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41737
41738         * MODULES.html.sh (Support for building documentation): Mention
41739         pmccabe2html.  Sort entries.
41740
41741         Add pmccabe2html module, from gnupdf.
41742         * build-aux/pmccabe.css: New file.
41743         * build-aux/pmccabe2html: New file.
41744         * m4/pmccabe2html.m4: New file.
41745         * modules/pmccabe2html: New file.
41746
41747 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41748
41749         flock: new module
41750         * MODULES.html.sh: Add to list of modules.
41751         * lib/flock.c: flock implementation for Windows and Unix systems
41752         which have fcntl.
41753         * doc/glibc-functions/flock.texi: Update documentation.
41754         * lib/sys_file.in.h: <sys/file.h> header file.
41755         * m4/flock.m4: M4 macros.
41756         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41757         * modules/flock: flock module.
41758         * modules/flock-tests: flock tests module.
41759         * modules/sys_file: sys/file.h module.
41760         * tests/test-flock.c: test suite for flock.
41761
41762 2008-10-06  Jim Meyering  <meyering@redhat.com>
41763
41764         bootstrap: check for LT_INIT more portably still ;-)
41765         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41766         Spotted by Bruno Haible.
41767
41768 2008-10-06  Eric Blake  <ebb9@byu.net>
41769
41770         test-signbit: avoid tripping Irix cc bug on -0.0L
41771         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41772         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41773         entire testsuite consistent and avoids an Irix 6.2 bug.
41774
41775 2008-10-05  Bruno Haible  <bruno@clisp.org>
41776             Jim Meyering  <jim@meyering.net>
41777
41778         Add an option for ignoring EPIPE during close_stdout.
41779         * lib/closeout.h: Include <stdbool.h>.
41780         (close_stdout_set_ignore_EPIPE): New declaration.
41781         * lib/closeout.c: Include <stdbool.h>.
41782         (ignore_EPIPE): New variable.
41783         (close_stdout_set_ignore_EPIPE): New function.
41784         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41785         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41786         failure.
41787         * modules/closeout (Depends-on): Add stdbool.
41788
41789 2008-10-05  Bruno Haible  <bruno@clisp.org>
41790
41791         * modules/accept: New file.
41792         * modules/bind: New file.
41793         * modules/connect: New file.
41794         * modules/getpeername: New file.
41795         * modules/getsockname: New file.
41796         * modules/getsockopt: New file.
41797         * modules/listen: New file.
41798         * modules/recv: New file.
41799         * modules/recvfrom: New file.
41800         * modules/send: New file.
41801         * modules/sendto: New file.
41802         * modules/setsockopt: New file.
41803         * modules/socket: New file.
41804         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41805         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41806         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41807         the particular module is requested. Add a link warning when the
41808         particular module is not requested.
41809         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41810         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41811         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41812         the particular module is requested.
41813         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41814         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41815         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41816         * modules/sys_socket (Depends-on): Add link-warning.
41817         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41818         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41819         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41820         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41821         GL_LINK_WARNING.
41822         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41823         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41824         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41825         * doc/posix-functions/getpeername.texi: Mention the new module
41826         'getpeername'.
41827         * doc/posix-functions/getsockname.texi: Mention the new module
41828         'getsockname'.
41829         * doc/posix-functions/getsockopt.texi: Mention the new module
41830         'getsockopt'.
41831         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41832         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41833         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41834         * doc/posix-functions/send.texi: Mention the new module 'send'.
41835         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41836         * doc/posix-functions/setsockopt.texi: Mention the new module
41837         'setsockopt'.
41838         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41839         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41840         listen, connect, accept.
41841         * modules/select-tests (Depends-on): Likewise.
41842
41843 2008-10-05  Bruno Haible  <bruno@clisp.org>
41844
41845         * lib/winsock.c (strerror): Remove unused #undef.
41846         (rpl_close): Remove unused local variable.
41847
41848         * modules/sys_socket (Depends-on); Add errno.
41849
41850 2008-10-05  Bruno Haible  <bruno@clisp.org>
41851
41852         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41853         (select): Add a link warning when the 'select' module is not used.
41854         * modules/sys_select (Depends-on): Add link-warning.
41855         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41856         Suggested by Paolo Bonzini.
41857
41858 2008-10-05  Jim Meyering  <meyering@redhat.com>
41859
41860         bootstrap: check for LT_INIT more portably
41861         * build-aux/bootstrap: Avoid using grep -E, since it's not
41862         portable enough.  Suggestion from Bruno Haible.
41863
41864 2008-10-05  Bruno Haible  <bruno@clisp.org>
41865
41866         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41867         as being fixed by gnulib.
41868
41869 2008-10-05  Bruno Haible  <bruno@clisp.org>
41870
41871         * modules/select-tests: New file, mostly copied from
41872         modules/sys_select-tests.
41873         * tests/test-select.c: New file, mostly copied from
41874         tests/test-sys_select.c.
41875         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41876         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41877         (Makefile.am): Remove test_sys_select_LDADD.
41878
41879         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41880         to an undefined symbol, for an error message.
41881         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41882         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41883         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41884         winsock-select.c here.
41885         * modules/sys_select (Files): Remove lib/winsock-select.c.
41886         (Depends-on): Remove alloca.
41887         (Makefile.am): Substitute GNULIB_SELECT.
41888         * modules/select: New file.
41889         * doc/posix-functions/select.texi: Update.
41890
41891 2008-10-05  Bruno Haible  <bruno@clisp.org>
41892
41893         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41894         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41895         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41896         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41897         getdtablesize.
41898         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41899         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41900
41901 2008-10-05  Bruno Haible  <bruno@clisp.org>
41902
41903         * modules/getdtablesize-tests: New file.
41904         * tests/test-getdtablesize.c: New file.
41905
41906         New module 'getdtablesize'.
41907         * lib/unistd.in.h (getdtablesize): New declaration.
41908         * lib/getdtablesize.c: New file.
41909         * m4/getdtablesize.m4: New file.
41910         * modules/getdtablesize: New file.
41911         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41912         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41913         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41914         HAVE_GETDTABLESIZE.
41915         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41916
41917 2008-10-05  Bruno Haible  <bruno@clisp.org>
41918
41919         * modules/sched (Makefile.am): Fix typo.
41920         Reported by Simon Josefsson.
41921
41922 2008-10-05  Jim Meyering  <meyering@redhat.com>
41923
41924         bootstrap: check for LT_INIT, too
41925         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41926         are deprecated.  Suggestion from Ralf Wildenhues.
41927
41928 2008-10-05  Bruno Haible  <bruno@clisp.org>
41929
41930         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41931         overriding them by ours.
41932         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41933
41934 2008-10-05  Jim Meyering  <meyering@redhat.com>
41935
41936         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41937         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41938         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41939
41940 2008-10-04  Bruno Haible  <bruno@clisp.org>
41941
41942         * modules/dup2 (License): Change to LGPLv2+.
41943         * modules/sleep (License): Likewise.
41944         * modules/perror (License): Likewise.
41945         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41946         Blake.
41947         * modules/signal (License): Likewise.
41948         * modules/sigprocmask (License): Likewise.
41949         * modules/raise (License): Change to LGPLv2+, with approval by Jim
41950         Meyering.
41951
41952 2008-10-04  Bruno Haible  <bruno@clisp.org>
41953
41954         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
41955         Reported by Rainer Tammer <tammer@tammer.net>.
41956
41957 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
41958             Bruno Haible  <bruno@clisp.org>
41959
41960         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
41961         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
41962         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
41963
41964 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
41965
41966         filevercmp: new module
41967         * lib/filevercmp.h: New function filevercmp comparing version strings.
41968         * lib/filevercmp.c: Implementation of filevercmp function.
41969         * modules/filevercmp: Module metadata.
41970         * tests/test-filevercmp.c: Unit test for new module.
41971         * modules/filevercmp-tests: Unit test metadata.
41972         * MODULES.html.sh: Add filevercmp module.
41973
41974 2008-10-03  Bruno Haible  <bruno@clisp.org>
41975
41976         * lib/c-ctype.h: Add comment.
41977         Reported by Jim Meyering.
41978
41979 2008-10-02  Bruno Haible  <bruno@clisp.org>
41980
41981         * modules/posix_spawn-internal (Depends-on): Add 'open'.
41982
41983 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41984
41985         * build-aux/bootstrap: Allow renaming bootstrap, and change the
41986         name of bootstrap.conf accordingly.
41987
41988 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41989
41990         * build-aux/bootstrap: Install git-merge-changelog configuration
41991         items into .gitconfig if needed.
41992
41993 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
41994
41995         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
41996         git repository, and initialize/update it accordingly.
41997
41998 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
41999
42000         * modules/fsync-tests: New file.
42001         * tests/test-fsync.c: New file.
42002
42003         New module 'fsync'.
42004         * lib/fsync.c: New file.
42005         * m4/fsync.m4: New file.
42006         * modules/fsync: New file.
42007         * lib/unistd.in.h (fsync): New declaration.
42008         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42009         GNULIB_FSYNC and HAVE_FSYNC.
42010         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42011         * MODULES.html.sh (posix_functions): Add fsync.
42012         * doc/posix-functions/fsync.texi: Mention the new module.
42013
42014 2008-10-02  Jim Meyering  <meyering@redhat.com>
42015
42016         fts.c: sync with similar code from coreutils' remove.c
42017         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42018         Guard also with "#if defined __linux__", since for now at least,
42019         this code is Linux-kernel-specific.
42020
42021 2008-10-02  Jim Meyering  <meyering@redhat.com>
42022
42023         fts: bug fixes
42024         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42025         Include <sys/vfs.h>, not <sys/statfs.h>.
42026
42027         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42028         Include <sys/vfs.h>, not <sys/statfs.h>.
42029
42030 2008-10-01  Bruno Haible  <bruno@clisp.org>
42031
42032         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42033         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42034         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42035         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42036         * doc/posix-functions/posix_spawnp.texi: Likewise.
42037         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42038         whether posix_spawn actually works.
42039         * m4/pipe.m4 (gl_PIPE): Likewise.
42040         * modules/execute (Files): Add m4/posix_spawn.m4.
42041         * modules/pipe (Files): Add m4/posix_spawn.m4.
42042         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42043
42044 2008-10-01  Jim Meyering  <meyering@redhat.com>
42045
42046         remove trailing spaces
42047         * NEWS: Likewise.
42048         * lib/poll.c (poll): Likewise.
42049         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42050         * lib/winsock.c (rpl_close): Likewise.
42051         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42052         * modules/yield: Likewise.
42053         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42054         * tests/test-sys_select.c (connect_to_socket): Likewise.
42055
42056         fts.c: adjust a new interface to be more generally useful
42057         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42058         (fts_build): Adjust caller.
42059
42060 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42061
42062         * modules/cond-tests: New file.
42063         * tests/test-cond.c: New file.
42064
42065 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42066             Bruno Haible  <bruno@clisp.org>
42067
42068         * modules/cond (Dependencies): Add errno, time.
42069         * lib/glthread/cond.h: Include <time.h>.
42070         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42071         across platforms.
42072
42073 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42074             Bruno Haible  <bruno@clisp.org>
42075
42076         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42077
42078 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42079             Bruno Haible  <bruno@clisp.org>
42080
42081         * modules/tls-tests (Depends-on): Add thread, yield.
42082         (configure.ac): Remove all checks.
42083         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42084         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42085         gl_thread_self): Remove definitions. Include glthread/thread.h and
42086         glthread/yield.h instead.
42087         (test_tls): Pass an additional NULL argument to gl_thread_join.
42088
42089 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42090             Bruno Haible  <bruno@clisp.org>
42091
42092         * modules/lock-tests (Depends-on): Add thread, yield.
42093         (configure.ac): Remove all checks.
42094         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42095         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42096         gl_thread_self): Remove definitions. Include glthread/thread.h and
42097         glthread/yield.h instead.
42098         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42099         additional NULL argument to gl_thread_join.
42100
42101 2008-09-30  Bruno Haible  <bruno@clisp.org>
42102
42103         Fix the Win32 implementation of the 'thread' module.
42104         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42105         pointer type.
42106         (gl_thread_self): Invoke gl_thread_self_func.
42107         (gl_thread_self_func): New declaration.
42108         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42109         (do_init_self_key, init_self_key): New functions.
42110         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42111         Remove some fields.
42112         (running_threads, running_lock): Remove variables.
42113         (get_current_thread_handle): New function.
42114         (gl_thread_self_func, wrapper_func, glthread_create_func,
42115         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42116         simplified.
42117
42118 2008-09-30  Bruno Haible  <bruno@clisp.org>
42119
42120         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42121         files.
42122
42123 2008-09-30  Jim Meyering  <meyering@redhat.com>
42124
42125         fts.m4: correct the test for statfs.f_type
42126         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42127         when checking for statfs.f_type.
42128
42129 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42130
42131         tests: avoid some compiler warnings
42132         * tests/test-memchr.c (main): Pass NULL indirectly.
42133         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42134
42135 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42136
42137         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42138         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42139         exactly specified dayshifts.
42140         (dayshift): New rule.
42141         (rel): Add dayshift.
42142         (relative_time_table) [tomorrow, yesterday, today, now]:
42143         Use tDAY_SHIFT in place of tDAY_UNIT.
42144         * tests/test-getdate.c: Add tests for now-disallowed countable
42145         dayshifts, e.g., "4 yesterday ago".
42146
42147 2008-09-29  Bruno Haible  <bruno@clisp.org>
42148
42149         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42150         * tests/test-posix_spawn1.in.sh: Renamed from
42151         tests/test-posix_spawn.in.sh.
42152         * tests/test-posix_spawn2.c: New file.
42153         * tests/test-posix_spawn2.in.sh: New file.
42154         * modules/posix_spawnp-tests (Files): Update.
42155         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42156
42157 2008-09-29  Bruno Haible  <bruno@clisp.org>
42158
42159         Propagate effects of putenv/setenv/unsetenv to child processes.
42160         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42161         * lib/pipe.c (create_pipe): Likewise.
42162
42163 2008-09-29  Bruno Haible  <bruno@clisp.org>
42164
42165         Enable use of shell scripts as executables in mingw.
42166         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42167         run the program as a shell script.
42168         * lib/pipe.c (create_pipe): Likewise.
42169         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42170         resulting array.
42171
42172 2008-09-29  Eric Blake  <ebb9@byu.net>
42173
42174         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42175
42176 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42177
42178         * doc/posix-functions/accept.texi: Update mingw problems.
42179         * doc/posix-functions/bind.texi: Update mingw problems.
42180         * doc/posix-functions/close.texi: Update mingw problems.
42181         * doc/posix-functions/connect.texi: Update mingw problems.
42182         * doc/posix-functions/getpeername.texi: Update mingw problems.
42183         * doc/posix-functions/getsockname.texi: Update mingw problems.
42184         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42185         * doc/posix-functions/ioctl.texi: Update mingw problems.
42186         * doc/posix-functions/listen.texi: Update mingw problems.
42187         * doc/posix-functions/recv.texi: Update mingw problems.
42188         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42189         * doc/posix-functions/select.texi: Update mingw problems.
42190         * doc/posix-functions/send.texi: Update mingw problems.
42191         * doc/posix-functions/sendto.texi: Update mingw problems.
42192         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42193         * doc/posix-functions/socket.texi: Update mingw problems.
42194
42195 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42196             Bruno Haible  <bruno@clisp.org>
42197
42198         * lib/sys_select.in.h: Include sys/time.h.
42199         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42200         * modules/sys_select: Depend on sys_time.
42201         * tests/test-sys_select.c: Test that sys/select.h defines struct
42202         timeval fully.
42203
42204 2008-09-29  Bruno Haible  <bruno@clisp.org>
42205
42206         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42207         * lib/sys_select.in.h: Likewise.
42208
42209 2008-09-29  Bruno Haible  <bruno@clisp.org>
42210
42211         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42212
42213 2008-09-29  Bruno Haible  <bruno@clisp.org>
42214
42215         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42216         Set LIBSOCKET instead of augmenting LIBS.
42217         * modules/sockets (Link): New section.
42218         * modules/sockets-tests (test_sockets_LDADD): New variable.
42219         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42220         * modules/poll-tests (test_poll_LDADD): New variable.
42221         * NEWS: Document the change.
42222
42223 2008-09-29  Bruno Haible  <bruno@clisp.org>
42224
42225         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42226         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42227         ARPA_INET_H directly.
42228         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42229
42230 2008-09-28  Bruno Haible  <bruno@clisp.org>
42231
42232         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42233         from gl_HEADER_SYS_SOCKET.
42234         (gl_HEADER_SYS_SOCKET): Invoke it.
42235         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42236
42237 2008-09-28  Bruno Haible  <bruno@clisp.org>
42238
42239         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42240         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42241         Needed on OSF/1 4.0.
42242
42243 2008-09-28  Bruno Haible  <bruno@clisp.org>
42244
42245         Override open more carefully.
42246         * lib/open.c (orig_open): New function.
42247         (rpl_open): Use orig_open instead of open.
42248         * lib/fcntl.in.h: Add special invocation convention.
42249         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42250         (gl_FUNC_OPEN): Invoke it.
42251
42252         Override freopen more carefully.
42253         * lib/freopen.c (orig_freopen): New function.
42254         (rpl_freopen): Use orig_freopen instead of freopen.
42255         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42256         (gl_FUNC_FREOPEN): Invoke it.
42257
42258         Override fopen more carefully.
42259         * lib/fopen.c (orig_fopen): New function.
42260         (rpl_fopen): Use orig_fopen instead of fopen.
42261         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42262         (gl_FUNC_FOPEN): Invoke it.
42263         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42264
42265 2008-09-28  Bruno Haible  <bruno@clisp.org>
42266
42267         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42268         SIGPIPE.
42269
42270 2008-09-28  Bruno Haible  <bruno@clisp.org>
42271
42272         * tests/test-sigaction.c (handler, main): Disable the check whether
42273         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42274         glibc systems with LinuxThreads.
42275
42276 2008-09-28  Bruno Haible  <bruno@clisp.org>
42277
42278         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42279
42280         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42281         with AIX xlc.
42282         * lib/fcntl.in.h (open): Likewise.
42283         Reported by Rainer Tammer <tammer@tammer.net>.
42284
42285 2008-09-28  Bruno Haible  <bruno@clisp.org>
42286
42287         * modules/posix_spawnp-tests: New file.
42288         * tests/test-posix_spawn.c: New file.
42289         * tests/test-posix_spawn.in.sh: New file.
42290
42291         New module 'posix_spawnp'.
42292         * modules/posix_spawnp: New file.
42293         * lib/spawnp.c: New file, from GNU libc with modifications.
42294         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42295
42296         New module 'posix_spawn'.
42297         * modules/posix_spawn: New file.
42298         * lib/spawn.c: New file, from GNU libc with modifications.
42299         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42300
42301         New module 'posix_spawnattr_destroy'.
42302         * modules/posix_spawnattr_destroy: New file.
42303         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42304         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42305         module.
42306
42307         New module 'posix_spawnattr_setsigmask'.
42308         * modules/posix_spawnattr_setsigmask: New file.
42309         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42310         modifications.
42311         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42312         new module.
42313
42314         New module 'posix_spawnattr_getsigmask'.
42315         * modules/posix_spawnattr_getsigmask: New file.
42316         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42317         modifications.
42318         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42319         new module.
42320
42321         New module 'posix_spawnattr_setsigdefault'.
42322         * modules/posix_spawnattr_setsigdefault: New file.
42323         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42324         modifications.
42325         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42326         new module.
42327
42328         New module 'posix_spawnattr_getsigdefault'.
42329         * modules/posix_spawnattr_getsigdefault: New file.
42330         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42331         modifications.
42332         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42333         new module.
42334
42335         New module 'posix_spawnattr_setschedpolicy'.
42336         * modules/posix_spawnattr_setschedpolicy: New file.
42337         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42338         modifications.
42339         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42340         new module.
42341
42342         New module 'posix_spawnattr_getschedpolicy'.
42343         * modules/posix_spawnattr_getschedpolicy: New file.
42344         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42345         modifications.
42346         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42347         new module.
42348
42349         New module 'posix_spawnattr_setschedparam'.
42350         * modules/posix_spawnattr_setschedparam: New file.
42351         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42352         modifications.
42353         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42354         new module.
42355
42356         New module 'posix_spawnattr_getschedparam'.
42357         * modules/posix_spawnattr_getschedparam: New file.
42358         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42359         modifications.
42360         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42361         new module.
42362
42363         New module 'posix_spawnattr_setpgroup'.
42364         * modules/posix_spawnattr_setpgroup: New file.
42365         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42366         modifications.
42367         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42368         module.
42369
42370         New module 'posix_spawnattr_getpgroup'.
42371         * modules/posix_spawnattr_getpgroup: New file.
42372         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42373         modifications.
42374         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42375         module.
42376
42377         New module 'posix_spawnattr_setflags'.
42378         * modules/posix_spawnattr_setflags: New file.
42379         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42380         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42381         module.
42382
42383         New module 'posix_spawnattr_getflags'.
42384         * modules/posix_spawnattr_getflags: New file.
42385         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42386         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42387         module.
42388
42389         New module 'posix_spawnattr_init'.
42390         * modules/posix_spawnattr_init: New file.
42391         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42392         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42393         module.
42394
42395         New module 'posix_spawn_file_actions_destroy'.
42396         * modules/posix_spawn_file_actions_destroy: New file.
42397         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42398         modifications.
42399         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42400         the new module.
42401
42402         New module 'posix_spawn_file_actions_addopen'.
42403         * modules/posix_spawn_file_actions_addopen: New file.
42404         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42405         modifications.
42406         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42407         the new module.
42408
42409         New module 'posix_spawn_file_actions_adddup2'.
42410         * modules/posix_spawn_file_actions_adddup2: New file.
42411         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42412         modifications.
42413         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42414         the new module.
42415
42416         New module 'posix_spawn_file_actions_addclose'.
42417         * modules/posix_spawn_file_actions_addclose: New file.
42418         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42419         modifications.
42420         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42421         the new module.
42422
42423         New module 'posix_spawn_file_actions_init'.
42424         * modules/posix_spawn_file_actions_init: New file.
42425         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42426         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42427         new module.
42428
42429         New module 'posix_spawn-internal'.
42430         * modules/posix_spawn-internal: New file.
42431         * lib/spawn_int.h: New file, from GNU libc with modifications.
42432         * lib/spawni.c: New file, from GNU libc with modifications.
42433         * m4/posix_spawn.m4: New file.
42434
42435         New module 'spawn'.
42436         * modules/spawn: New file.
42437         * lib/spawn.in.h: New file, from GNU libc with modifications.
42438         * m4/spawn_h.m4: New file.
42439         * doc/posix-headers/spawn.texi: Mention the new module.
42440
42441 2008-09-28  Bruno Haible  <bruno@clisp.org>
42442
42443         * modules/sched-tests: New file.
42444         * tests/test-sched.c: New file.
42445
42446         New module 'sched'.
42447         * modules/sched: New file.
42448         * lib/sched.in.h: New file.
42449         * m4/sched_h.m4: New file.
42450         * doc/posix-headers/sched.texi: Mention the new module.
42451
42452 2008-09-27  Eric Blake  <ebb9@byu.net>
42453
42454         Fix previous patch, and tweak references to $0.
42455         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42456         (func_version, func_gnulib_dir): Don't call this program
42457         gnulib-tool.
42458         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42459         with using $0 in function.
42460         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42461         (func_fatal_error): Reuse the name the user invoked us with.
42462
42463 2008-09-27  Bruno Haible  <bruno@clisp.org>
42464
42465         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42466         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42467         (gl_ICONV_H): Not here.
42468         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42469         instead of assigning ICONV_H directly.
42470
42471         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42472         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42473         WCHAR_H directly.
42474
42475 2008-09-27  Bruno Haible  <bruno@clisp.org>
42476
42477         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42478         * modules/arpa_inet (Depends-on): Add link-warning.
42479         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42480         * modules/unistd (Makefile.am): Likewise.
42481
42482 2008-09-26  Bruno Haible  <bruno@clisp.org>
42483
42484         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42485         variables.
42486         (func_version): Essentially copied from gnulib-tool.
42487         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42488         func_readlink): Copied from gnulib-tool.
42489
42490 2008-09-26  Bruno Haible  <bruno@clisp.org>
42491
42492         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42493         invoking git-version-gen.
42494
42495 2008-09-26  Bruno Haible  <bruno@clisp.org>
42496
42497         * posix-modules: Update to directory names changed on 2008-01-19.
42498         Remove commas in output before splitting into words. No more need to
42499         avoid 'ftruncate' since 2007-02-19.
42500
42501 2008-09-26  Bruno Haible  <bruno@clisp.org>
42502
42503         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42504
42505 2008-09-26  Bruno Haible  <bruno@clisp.org>
42506
42507         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42508         * modules/fwriteerror (Depends-on): Add errno.
42509
42510 2008-09-26  Bruno Haible  <bruno@clisp.org>
42511
42512         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42513         * tests/test-vc-list-files-cvs.sh: Likewise.
42514
42515 2008-09-26  Bruno Haible  <bruno@clisp.org>
42516
42517         * doc/posix-headers/sys_resource.texi: Reorder items.
42518
42519 2008-09-26  Jim Meyering  <meyering@redhat.com>
42520
42521         fts: tweak inode comparison function
42522         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42523         inode numbers, as documented.
42524
42525         fts: sort dirent entries on inode number before traversing
42526         This avoids a quadratic, seek-related performance penalty when
42527         operating on a directory containing many entries (measurable at 10k;
42528         3.5 hours at 2 million entries with a cold cache) on certain types
42529         of file systems, including ext3 and ext4, but not tmpfs.
42530         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42531         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42532         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42533         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42534         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42535         (fts_build): Set the stat.st_ino member from D_INO.
42536         If it is likely to be useful, sort dirent entries on inode number.
42537
42538         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42539         and the struct statfs.f_type member.
42540         * modules/fts (Depends-on): Add d-ino.
42541
42542 2008-09-26  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/sigpipe-die (Depends-on): Add sigpipe.
42545
42546         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42547         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42548         and GNULIB_STDIO_H_SIGPIPE are set.
42549         * lib/stdio-write.c: New file.
42550         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42551         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42552         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42553         REPLACE_STDIO_WRITE_FUNCS.
42554         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42555         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42556         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42557         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42558         * modules/stdio (Files): Add lib/stdio-write.c.
42559         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42560         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42561         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42562         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42563         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42564         REPLACE_FPRINTF_POSIX.
42565         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42566         REPLACE_PRINTF_POSIX.
42567         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42568         REPLACE_VFPRINTF_POSIX.
42569         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42570         REPLACE_VPRINTF_POSIX.
42571         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42572         SIGPIPE issue.
42573         * doc/posix-functions/fputc.texi: Likewise.
42574         * doc/posix-functions/fputs.texi: Likewise.
42575         * doc/posix-functions/fwrite.texi: Likewise.
42576         * doc/posix-functions/printf.texi: Likewise.
42577         * doc/posix-functions/putc.texi: Likewise.
42578         * doc/posix-functions/putchar.texi: Likewise.
42579         * doc/posix-functions/puts.texi: Likewise.
42580         * doc/posix-functions/vfprintf.texi: Likewise.
42581         * doc/posix-functions/vprintf.texi: Likewise.
42582
42583         * modules/safe-write (Depends-on): Add write.
42584
42585         * modules/sigpipe-tests: New file.
42586         * tests/test-sigpipe.c: New file.
42587         * tests/test-sigpipe.sh: New file.
42588
42589         * modules/write: New file.
42590         * lib/unistd.in.h: Include <sys/types.h>.
42591         (write): New declaration.
42592         * lib/write.c: New file.
42593         * m4/write.m4: New file.
42594         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42595         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42596         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42597         GNULIB_WRITE, REPLACE_WRITE.
42598         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42599         and the SIGPIPE issue.
42600
42601         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42602         (raise): New declaration.
42603         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42604         (ext_signal): New function.
42605         (rpl_raise): New function.
42606         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42607         GNULIB_SIGNAL_H_SIGPIPE.
42608         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42609         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42610
42611         * modules/sigpipe: New file.
42612         * m4/sigpipe.m4: New file.
42613
42614 2008-09-25  Derek Price  <derek@ximbiot.com>
42615             Bruno Haible  <bruno@clisp.org>
42616
42617         * gnulib-tool (func_import): Report all license incompatibilities, not
42618         just the first one.
42619
42620 2008-09-25  Bruno Haible  <bruno@clisp.org>
42621
42622         * gnulib-tool (func_import): When computing the edits, consider not
42623         only the Makefile.ams that exist but also those that will be generated.
42624
42625 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42626
42627         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42628         fixes gnulib-tool --test warning about duplicate dependency.
42629
42630 2008-09-25  Bruno Haible  <bruno@clisp.org>
42631
42632         * gnulib-tool: Don't ask the user to perform edits in the generated
42633         Makefile.ams.
42634         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42635         apply to the Makefile.am being generated.
42636         (func_emit_tests_Makefile_am): Execute edits that apply to the
42637         Makefile.am being generated.
42638         (func_import): Setup list of Makefile.am edits before emitting the
42639         Makefile.ams, not at the end.
42640         (func_create_testdir): Update.
42641         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42642
42643 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42644
42645         * gnulib-tool (func_import): Store the --tests-base option in the
42646         comment in gnulib-cache.m4.
42647
42648 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42649
42650         * NEWS: Document increased portability that sys_select now provides.
42651
42652         * lib/sys_select.in.h: Install select wrapper.
42653         * lib/sys_socket.in.h: Use more descriptive name when there is no
42654         select wrapper.
42655         * lib/winsock-select.c: New.
42656         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42657         Require gl_HEADER_SYS_SOCKET.
42658         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42659         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42660         * tests/test-sys_select.c: Add functional tests.
42661
42662 2008-09-24  Eric Blake  <ebb9@byu.net>
42663
42664         open, fopen: close fd leak in last patch
42665         * lib/open.c (rpl_open): Close fd before returning error.
42666         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42667         * doc/posix-functions/open.texi (open): Document that Irix also
42668         has the bug.
42669         * doc/posix-functions/fopen.texi (fopen): Likewise.
42670         Reported by Paolo Bonzini.
42671
42672 2008-09-24  Bruno Haible  <bruno@clisp.org>
42673
42674         Ensure that a filename ending in a slash cannot be used to access a
42675         non-directory.
42676         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42677         to check whether it's really a directory.
42678         * lib/fopen.c: Include fcntl.h, unistd.h.
42679         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42680         and fdopen().
42681         * modules/fopen (Depends-on): Add unistd.
42682         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42683         * tests/test-fopen.c (main): Likewise.
42684         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42685         * doc/posix-functions/fopen.texi: Likewise.
42686         Reported by Eric Blake.
42687
42688 2008-09-23  Eric Blake  <ebb9@byu.net>
42689
42690         c-stack: avoid compiler optimizations when provoking overflow
42691         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42692         recursion harder to optimize, to ensure a stack overflow occurs.
42693         * tests/test-c-stack.c (recurse): Likewise.
42694         Borrowed from libsigsegv.
42695
42696         c-stack: work around Irix sigaltstack bug
42697         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42698         whether sigaltstack uses wrong end of stack_t (copied in part from
42699         libsigsegv).
42700         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42701         Irix bug, without requiring an over-allocation.
42702         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42703         bug.
42704
42705         fopen: document mingw bug on directories
42706         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42707         not allowing a stream visiting a directory, even though reading
42708         from such a stream is not portable.
42709
42710 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42711
42712         * lib/poll.c: Rewrite.
42713         * modules/poll: Depend on alloca.
42714
42715 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42716
42717         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42718         instead define prototypes for a full set of wrappers.  Ensure
42719         that Cygwin does not use the compatibility code, which is only
42720         for MinGW.
42721         * lib/winsock.c: New.
42722         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42723         * modules/sys_socket: Add lib/winsock.c.
42724
42725         * modules/poll-tests: Add errno and perror.
42726         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42727
42728 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42729
42730         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42731
42732 2008-09-23  Bruno Haible  <bruno@clisp.org>
42733
42734         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42735         * doc/glibc-functions/*: Likewise.
42736
42737 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42738
42739         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42740         success.
42741
42742 2008-09-22  Eric Blake  <ebb9@byu.net>
42743             Bruno Haible  <bruno@clisp.org>
42744
42745         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42746         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42747         supply %A but mishandle pseudo-NaN.
42748         Reported by Simon Josefsson.
42749
42750 2008-09-21  Bruno Haible  <bruno@clisp.org>
42751
42752         * tests/test-lock.c (main): Tweak skip message.
42753         * tests/test-tls.c (main): Likewise.
42754
42755 2008-09-21  Bruno Haible  <bruno@clisp.org>
42756
42757         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42758         whether 'struct sigaction' has sa_sigaction here...
42759         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42760         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42761
42762 2008-09-21  Bruno Haible  <bruno@clisp.org>
42763
42764         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42765         section.
42766         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42767         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42768         the new section.
42769         (Support for obsolete systems lacking POSIX:2001): New section.
42770         (String handling <string.h>): Move strdup to the new section.
42771         Suggested by Simon Josefsson and Paolo Bonzini.
42772
42773 2008-09-21  Bruno Haible  <bruno@clisp.org>
42774
42775         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42776         exponents in %e and %g results on 'long double'. Needed for mingw's
42777         improved *printf functions.
42778         * tests/test-vasprintf-posix.c (test_function): Likewise.
42779         * tests/test-snprintf-posix.h (test_function): Likewise.
42780         * tests/test-sprintf-posix.h (test_function): Likewise.
42781         Reported by Eric Blake.
42782
42783 2008-09-21  Bruno Haible  <bruno@clisp.org>
42784
42785         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42786         * tests/test-sprintf-posix.h (test_function): Likewise.
42787
42788 2008-09-21  Bruno Haible  <bruno@clisp.org>
42789
42790         * modules/getpass (Depends-on): Add strdup-posix.
42791
42792         New module 'strdup-posix'.
42793         * modules/strdup-posix: New file.
42794         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42795         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42797         REPLACE_STRDUP.
42798         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42799         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42800         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42801         strdup-posix.
42802
42803         * modules/strdup (Depends-on): Remove malloc-posix.
42804
42805 2008-09-20  Bruno Haible  <bruno@clisp.org>
42806
42807         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42808         Wildenhues.
42809
42810 2008-09-20  Bruno Haible  <bruno@clisp.org>
42811
42812         Ensure that wint_t gets defined on IRIX 5.3.
42813         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42814         * lib/wctype.in.h (wint_t): Likewise.
42815         (__wctype_wint_t): Remove type.
42816         (isw*): Use wint_t instead of __wctype_wint_t.
42817         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42818         * modules/wchar (Files): Add m4/wint_t.m4.
42819         (Makefile.am): Substitute HAVE_WINT_T.
42820         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42821         * tests/test-wctype.c: Check that wint_t is defined.
42822         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42823         * doc/posix-headers/wctype.texi: Likewise.
42824         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42825
42826 2008-09-18  Bruno Haible  <bruno@clisp.org>
42827
42828         * gnulib-tool (func_exit): Update comment.
42829
42830 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42831
42832         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42833         assumes strdup exists and does not depend on strdup to return
42834         ENOMEM on out of memory conditions.
42835
42836 2008-09-18  Bruno Haible  <bruno@clisp.org>
42837
42838         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42839         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42840         digits for the exponent.
42841
42842 2008-09-18  Jim Meyering  <meyering@redhat.com>
42843             Bruno Haible  <bruno@clisp.org>
42844
42845         * lib/vasnprintf.c (decimal_point_char): Define also if
42846         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42847
42848 2008-09-16  Bruno Haible  <bruno@clisp.org>
42849         and Eric Blake  <ebb9@byu.net>
42850
42851         vasnprintf: support Irix 5.3
42852         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42853         that mishandle long double infinity.
42854         Reported by Tom G. Christensen.
42855
42856 2008-09-16  Bruno Haible  <bruno@clisp.org>
42857
42858         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42859         Solaris 9.
42860         * doc/glibc-functions/alphasort.texi: Likewise.
42861         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42862
42863 2008-09-16  Jim Meyering  <meyering@redhat.com>
42864
42865         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42866         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42867         a umask modification leak out of a subshell.  Otherwise, the
42868         opensolaris /bin/sh would be accepted and thus cause unwarranted
42869         failures in the coreutils test suite.
42870
42871 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42872
42873         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42874         to succeed.
42875
42876 2008-09-16  Jim Meyering  <meyering@redhat.com>
42877
42878         avoid spurious test failure when library is built without ACL support
42879         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42880         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42881         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42882         * tests/test-copy-acl.sh: Likewise.
42883
42884 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42885
42886         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42887         based on character occurrence counts.
42888
42889 2008-09-15  Eric Blake  <ebb9@byu.net>
42890
42891         tests: avoid some compiler warnings
42892         * tests/test-memchr.c (main): Pass NULL indirectly.
42893         * tests/test-closein.c (main): Avoid unused variable.
42894
42895 2008-09-15  Bruno Haible  <bruno@clisp.org>
42896
42897         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42898         are missing on OpenBSD 4.0 individually.
42899         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42900
42901 2008-09-15  Bruno Haible  <bruno@clisp.org>
42902
42903         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42904         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42905         * doc/posix-functions/perror.texi: Likewise.
42906         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42907         is missing.
42908         Reported by Eric Blake.
42909
42910         * lib/errno.in.h: Use replacement values >= 2000.
42911         Reported by Eric Blake.
42912
42913 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42914
42915         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42916         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42917         limit.
42918         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42919         compareseq was aborted.
42920
42921 2008-09-14  Bruno Haible  <bruno@clisp.org>
42922
42923         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42924         yvec_edit_count.
42925         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42926         (fstrcmp_bounded): Simplify result computation accordingly.
42927
42928 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42929
42930         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42931         (fstrcmp): Define in terms of fstrcmp_bounded.
42932         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42933         lower_bound argument.
42934         Return quickly if the result is certainly < lower_bound.
42935         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42936
42937 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42938
42939         * lib/diffseq.h (EARLY_ABORT): New macro.
42940         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42941         evaluates to true.
42942
42943 2008-09-14  Bruno Haible  <bruno@clisp.org>
42944
42945         * modules/perror-tests: New file.
42946         * tests/test-perror.sh: New file.
42947         * tests/test-perror.c: New file.
42948
42949         New module 'perror'.
42950         * lib/stdio.in.h (perror): New declaration.
42951         * lib/perror.c: New file.
42952         * m4/perror.m4: New file.
42953         * modules/perror: New file.
42954         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
42955         * doc/posix-functions/perror.texi: Mention the perror module.
42956         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
42957         REPLACE_PERROR.
42958         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
42959         REPLACE_PERROR.
42960
42961 2008-09-14  Bruno Haible  <bruno@clisp.org>
42962
42963         * modules/stdio (Makefile.am): Reorder to match the order in
42964         lib/stdio.in.h.
42965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42966
42967 2008-09-13  Bruno Haible  <bruno@clisp.org>
42968
42969         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
42970
42971 2008-09-13  Bruno Haible  <bruno@clisp.org>
42972
42973         Extend strerror to cover the added errno values.
42974         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
42975         (rpl_strerror): Provide error messages for the added errno values and
42976         for the WSA* values.
42977         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
42978         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
42979         strerror.
42980         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
42981         * modules/strerror (Depends-on): Add errno.
42982         * doc/posix-functions/strerror.texi: Document the change.
42983         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
42984         and EOVERFLOW.
42985
42986 2008-09-13  Bruno Haible  <bruno@clisp.org>
42987
42988         * modules/EOVERFLOW: Remove file.
42989         * m4/eoverflow.m4: Remove file.
42990         * modules/EOVERFLOW-tests: Remove file.
42991         * tests/test-EOVERFLOW.c: Remove file.
42992         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
42993         * modules/ftell (Depends-on): Likewise.
42994         * modules/getdelim (Depends-on): Likewise.
42995         * modules/getugroups (Depends-on): Likewise.
42996         * modules/poll (Depends-on): Likewise.
42997         * modules/snprintf (Depends-on): Likewise.
42998         * modules/sprintf-posix (Depends-on): Likewise.
42999         * modules/vasnprintf (Depends-on): Likewise.
43000         * modules/vasprintf (Depends-on): Likewise.
43001         * modules/vfprintf-posix (Depends-on): Likewise.
43002         * modules/vsnprintf (Depends-on): Likewise.
43003         * modules/vsprintf-posix (Depends-on): Likewise.
43004         * modules/xvasprintf (Depends-on): Likewise.
43005         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43006         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43007         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43008         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43009         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43010         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43011         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43012         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43013         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43014         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43015         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43016         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43017         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43018         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43019         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43020         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43021         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43022         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43023         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43024         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43025         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43026         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43027         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43028         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43029         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43030         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43031         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43032         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43033         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43034         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43035         * MODULES.html.sh: Remove EOVERFLOW.
43036         * NEWS: Mention the change.
43037
43038 2008-09-13  Bruno Haible  <bruno@clisp.org>
43039
43040         * modules/errno-tests: New file.
43041         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43042
43043         * lib/errno.in.h: New file.
43044         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43045         * modules/errno: New file.
43046         * doc/posix-headers/errno.texi: Update documentation.
43047         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43048
43049 2008-09-13  Bruno Haible  <bruno@clisp.org>
43050
43051         * tests/test-poll.c: Use #if for native Windows, rather than testing
43052         __MSVCRT__.
43053
43054 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43055             Bruno Haible  <bruno@clisp.org>
43056
43057         * lib/glob.c: Don't include <pwd.h> on native Windows.
43058         (WINDOWS32): New macro.
43059         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43060
43061 2008-09-13  Bruno Haible  <bruno@clisp.org>
43062
43063         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43064         (ETIMEDOUT): Remove macro.
43065         (glthread_cond_timedwait_multithreaded): New declaration.
43066         (glthread_cond_timedwait): Use it.
43067         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43068         (glthread_cond_timedwait_multithreaded): New function.
43069
43070 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43071
43072         * modules/poll-tests: Do not check for io.h.
43073         * tests/test-poll.c: Check for __MSVCRT__ instead.
43074
43075 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43076
43077         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43078         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43079         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43080
43081 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43082
43083         * modules/poll-tests: New.
43084         * tests/test-poll.c: New.
43085
43086 2008-09-12  Eric Blake  <ebb9@byu.net>
43087
43088         frexp: test for NetBSD failure on -0.0
43089         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43090         not all, bugs from NetBSD 3.0 have been fixed.
43091         * doc/posix-functions/frexp.texi (frexp): Document bug.
43092         Reported by Thomas Klausner.
43093
43094         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43095         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43096         literal -0.0.
43097         Reported by Jonathan C. Patschke <jp@centtech.com>.
43098
43099 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43100
43101         * lib/glthread/cond.h: Use dummy implementation also if
43102         USE_WIN32_THREADS.
43103
43104 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43105
43106         * modules/fnmatch-posix (License): Change to LGPLv2+.
43107         * modules/fnmatch-gnu (License): Likewise.
43108
43109 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43110
43111         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43112
43113 2008-09-11  Jim Meyering  <meyering@redhat.com>
43114
43115         * users.txt: Add gtk-vnc.
43116
43117 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43118
43119         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43120         rotate amounts.
43121
43122         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43123         required for 16-bit and 8-bit rotates.
43124         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43125         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43126         UINT8_MAX instead of hard-coded constants.
43127         Suggested by Paul Eggert.
43128
43129 2008-09-07  Bruno Haible  <bruno@clisp.org>
43130
43131         * tests/test-striconveh.c (main): Check behaviour when converting from
43132         UTF-7.
43133
43134         Make striconveh work better with stateful encodings.
43135         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43136         that iconv does not increment the inptr when returning -1/EINVAL.
43137
43138 2008-09-07  Bruno Haible  <bruno@clisp.org>
43139
43140         * build-aux/config.rpath: Update according to libtool-2.2.6.
43141         * build-aux/config.libpath: Likewise.
43142
43143 2008-09-06  Bruno Haible  <bruno@clisp.org>
43144
43145         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43146         * lib/freadptr.c (freadptr): Likewise.
43147         * lib/freadseek.c (freadptrinc): Likewise.
43148         Reported by Simon Josefsson.
43149
43150 2008-09-06  Bruno Haible  <bruno@clisp.org>
43151
43152         * modules/freadptr (License): Change to LGPLv2+.
43153         * modules/freadseek (License): Likewise.
43154         Suggested by Eric Blake.
43155
43156         * modules/memchr2 (License): Change to LGPLv2+.
43157         Approved by Eric Blake.
43158
43159 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43160             Bruno Haible  <bruno@clisp.org>
43161
43162         Make gnulib-tool work with native 'sed' on AIX.
43163         * gnulib-tool (sed_noop): New variable.
43164         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43165         func_add_or_update, func_create_testdir): Use it to initialize sed
43166         script variables.
43167         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43168
43169 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43170             Bruno Haible  <bruno@clisp.org>
43171
43172         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43173         also works after #include directives.
43174
43175 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43176
43177         getdate.y: reject an out-of-range timezone value
43178         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43179         the range [-24...+24].  When specified with only one or two digits,
43180         * tests/test-getdate.c: Tests for the fix.
43181         * doc/getdate.texi: Document this change.
43182
43183 2008-09-03  Bruno Haible  <bruno@clisp.org>
43184
43185         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43186
43187 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43188
43189         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43190         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43191         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43192         Blake <ebb9@byu.net>.
43193
43194         * tests/test-bitrotate.c: Add more test vectors.
43195
43196 2008-09-02  Eric Blake  <ebb9@byu.net>
43197
43198         vasnprintf-posix: handle large precision via %.*d
43199         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43200         when handling it ourselves.
43201         * tests/test-vasnprintf-posix.c (test_function): Add test.
43202         * tests/test-snprintf-posix.h (test_function): Likewise.
43203         * tests/test-sprintf-posix.h (test_function): Likewise.
43204         * tests/test-vasprintf-posix.c (test_function): Likewise.
43205         Reported by Alain Guibert.
43206
43207 2008-09-01  Eric Blake  <ebb9@byu.net>
43208
43209         c-stack: make configure-time check more robust
43210         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43211         successful sigaction call.
43212         Reported by Tom G. Christensen.
43213
43214 2008-09-01  Bruno Haible  <bruno@clisp.org>
43215
43216         New module 'findprog-lgpl'.
43217         * modules/findprog-lgpl: New file.
43218         * lib/findprog-lgpl.c: New file.
43219         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43220         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43221         to decide whether to use strdup or xstrdup, concatenated_filename or
43222         xconcatenated_filename.
43223
43224 2008-09-01  Bruno Haible  <bruno@clisp.org>
43225
43226         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43227         'xconcat-filename' (GPL).
43228         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43229         (License): Change to LGPLv2+.
43230         * modules/xconcat-filename: New file.
43231         * lib/concat-filename.h (concatenated_filename): Change specification.
43232         (xconcatenated_filename): New declaration.
43233         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43234         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43235         memory situations.
43236         * lib/xconcat-filename.c: New file.
43237         * NEWS: Mention the change.
43238         * lib/findprog.c: Include concat-filename.h, not filename.h.
43239         (find_in_path): Use xconcatenated_filename instead of
43240         concatenated_filename.
43241         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43242         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43243         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43244         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43245         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43246         instead of concatenated_filename.
43247         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43248         (execute_java_class): Use xconcatenated_filename instead of
43249         concatenated_filename.
43250         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43251         * modules/javacomp (Depends-on): Likewise.
43252         * modules/javaexec (Depends-on): Likewise.
43253
43254 2008-09-01  Bruno Haible  <bruno@clisp.org>
43255
43256         Split module 'filename' into 'filename' and 'concat-filename'.
43257         * modules/filename: Keep only lib/filename.h.
43258         (License): Change to LGPLv2+.
43259         * modules/concat-filename: New file, extracted from modules/filename.
43260         * lib/filename.h (concatenated_filename): Remove declaration.
43261         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43262         * lib/concat-filename.c: Include concat-filename.h.
43263         * NEWS: Mention the change.
43264
43265 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43266
43267         * lib/bitrotate.h (rotl8, rotr8): Add.
43268
43269         * modules/bitrotate (configure.ac): Need
43270         AC_REQUIRE([AC_C_INLINE]).
43271         (Description): Mention stdint.h.  Reported by Bruno Haible
43272         <bruno@clisp.org>.
43273
43274         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43275         Paolo Bonzini <bonzini@gnu.org>.
43276
43277 2008-08-31  Bruno Haible  <bruno@clisp.org>
43278
43279         Assume Solaris specific bi-arch conventions on Solaris systems.
43280         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43281         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43282         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43283         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43284         like acl_libdirstem.
43285         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43286         acl_libdirstem.
43287         * NEWS: Mention the change.
43288         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43289
43290 2008-08-31  Jim Meyering  <meyering@redhat.com>
43291
43292         * lib/strftime.h: Add comments describing the two added arguments.
43293
43294         remove duplicate #include directives
43295         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43296         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43297
43298 2008-08-31  Bruno Haible  <bruno@clisp.org>
43299
43300         New module 'sigpipe-die'.
43301         * modules/sigpipe-die: New file.
43302         * lib/sigpipe-die.h: New file.
43303         * lib/sigpipe-die.c: New file.
43304         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43305
43306 2008-08-31  Bruno Haible  <bruno@clisp.org>
43307
43308         Don't override previously installed signal handlers.
43309         * lib/fatal-signal.c (saved_sigactions): New variable.
43310         (uninstall_handlers): Reset the signal to the saved handler, not
43311         to SIG_DFL (except when ignored).
43312         (install_handlers): Save the previous handlers.
43313
43314 2008-08-30  Bruno Haible  <bruno@clisp.org>
43315
43316         * gnulib-tool (func_reset_sigpipe): New function.
43317         (func_get_automake_snippet, func_modules_transitive_closure,
43318         func_import): Invoke it before a join command that reads from stdin,
43319         to avoid "echo: write error: Broken pipe" error messages on stderr.
43320         Reported by Sam Steingold <sds@gnu.org>.
43321
43322 2008-08-30  Bruno Haible  <bruno@clisp.org>
43323
43324         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43325         Code copied from m4/open.m4.
43326         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43327         access and the filename ends in a slash. Code copied from lib/open.c.
43328         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43329         * tests/test-fopen.c (main): Check against bug with trailing slash.
43330
43331 2008-08-29  Bruno Haible  <bruno@clisp.org>
43332
43333         Avoid some "gcc -pedantic" warnings.
43334         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43335         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43336         * lib/dirent.in.h: Likewise.
43337         * lib/fcntl.in.h: Likewise.
43338         * lib/float.in.h: Likewise.
43339         * lib/iconv.in.h: Likewise.
43340         * lib/inttypes.in.h: Likewise.
43341         * lib/locale.in.h: Likewise.
43342         * lib/math.in.h: Likewise.
43343         * lib/netinet_in.in.h: Likewise.
43344         * lib/search.in.h: Likewise.
43345         * lib/signal.in.h: Likewise.
43346         * lib/stdarg.in.h: Likewise.
43347         * lib/stdint.in.h: Likewise.
43348         * lib/stdio.in.h: Likewise.
43349         * lib/stdlib.in.h: Likewise.
43350         * lib/string.in.h: Likewise.
43351         * lib/strings.in.h: Likewise.
43352         * lib/sys_select.in.h: Likewise.
43353         * lib/sys_socket.in.h: Likewise.
43354         * lib/sys_stat.in.h: Likewise.
43355         * lib/sys_time.in.h: Likewise.
43356         * lib/sysexits.in.h: Likewise.
43357         * lib/time.in.h: Likewise.
43358         * lib/unistd.in.h: Likewise.
43359         * lib/wchar.in.h: Likewise.
43360         * lib/wctype.in.h: Likewise.
43361         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43362         * modules/fchdir (Makefile.am): Likewise.
43363         * modules/fcntl (Makefile.am): Likewise.
43364         * modules/float (Makefile.am): Likewise.
43365         * modules/iconv_open (Makefile.am): Likewise.
43366         * modules/inttypes (Makefile.am): Likewise.
43367         * modules/locale (Makefile.am): Likewise.
43368         * modules/math (Makefile.am): Likewise.
43369         * modules/netinet_in (Makefile.am): Likewise.
43370         * modules/search (Makefile.am): Likewise.
43371         * modules/signal (Makefile.am): Likewise.
43372         * modules/stdarg (Makefile.am): Likewise.
43373         * modules/stdint (Makefile.am): Likewise.
43374         * modules/stdio (Makefile.am): Likewise.
43375         * modules/stdlib (Makefile.am): Likewise.
43376         * modules/string (Makefile.am): Likewise.
43377         * modules/strings (Makefile.am): Likewise.
43378         * modules/sys_select (Makefile.am): Likewise.
43379         * modules/sys_socket (Makefile.am): Likewise.
43380         * modules/sys_stat (Makefile.am): Likewise.
43381         * modules/sys_time (Makefile.am): Likewise.
43382         * modules/sysexits (Makefile.am): Likewise.
43383         * modules/time (Makefile.am): Likewise.
43384         * modules/unistd (Makefile.am): Likewise.
43385         * modules/wchar (Makefile.am): Likewise.
43386         * modules/wctype (Makefile.am): Likewise.
43387         Reported by Reuben Thomas <rrt@sc3d.org>.
43388
43389 2008-08-29  Bruno Haible  <bruno@clisp.org>
43390
43391         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43392         any more.
43393
43394 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43395
43396         * MODULES.html.sh (Misc): Add bitrotate.
43397
43398         * modules/bitrotate: New file.
43399
43400         * lib/bitrotate.h: New file.
43401
43402         * modules/bitrotate-tests: New file.
43403
43404         * tests/test-bitrotate.c: New file.
43405
43406         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43407         on the bitrotate module.
43408
43409         * lib/arctwo.c: Use new bitrotate module.
43410
43411 2008-08-29  Jim Meyering  <meyering@redhat.com>
43412
43413         bootstrap: merge changes from coreutils
43414         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43415         of copied files.  Remove a kludge, now that this is fixed.
43416         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43417         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43418         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43419
43420 2008-08-29  Bruno Haible  <bruno@clisp.org>
43421
43422         * MODULES.html.sh: Remove --cvs-urls option.
43423
43424 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43425
43426         maint.mk: adjust to file name change
43427         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43428
43429 2008-08-28  Jim Meyering  <meyering@redhat.com>
43430
43431         * modules/getndelim2 (License): Relicense to LGPLv2+.
43432         Approved by Richard Stallman for the version of 1995, and by
43433         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43434
43435 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43436
43437         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43438         dummy if one is not available.  Do not touch them if
43439         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43440         (getc_maybe_unlocked): New.
43441         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43442
43443 2008-08-26  Eric Blake  <ebb9@byu.net>
43444
43445         doc/INSTALL: resync from autoconf
43446         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43447         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43448         moving...
43449         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43450         * INSTALL: Regenerate.
43451         * INSTALL.ISO: New file.
43452         * INSTALL.UTF-8: Likewise.
43453
43454 2008-08-26  Jim Meyering  <meyering@redhat.com>
43455
43456         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43457         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43458         these definitions conditional, so that they may be overridden, too.
43459
43460 2008-08-26  Bruno Haible  <bruno@clisp.org>
43461
43462         Generate INSTALL file variants with prettier quotes.
43463         * doc/Makefile (INSTALL_PRELUDE): New macro.
43464         (INSTALL): Use it.
43465         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43466
43467 2008-08-26  Bruno Haible  <bruno@clisp.org>
43468
43469         Run makeinfo in an English locale.
43470         * doc/Makefile (MAKEINFO): New variable.
43471
43472 2008-08-26  Bruno Haible  <bruno@clisp.org>
43473
43474         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43475         Suggested by Eric Blake.
43476
43477 2008-08-25  Bruno Haible  <bruno@clisp.org>
43478
43479         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43480
43481 2008-08-25  Eric Blake  <ebb9@byu.net>
43482
43483         c-stack: test that stack overflow can be caught
43484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43485         that platform allows handling stack overflow; at least OS/2 EMX
43486         has sigaltstack, but crashes before transferring control to
43487         handler on stack overflow.
43488         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43489         check for HAVE_STACK_OVERFLOW_HANDLING.
43490         Reported by Elbert Pol.
43491
43492 2008-08-25  Bruno Haible  <bruno@clisp.org>
43493
43494         * doc/posix-functions/strftime.texi: Fix description of strftime
43495         module.
43496
43497 2008-08-24  Bruno Haible  <bruno@clisp.org>
43498
43499         * tests/uniwidth/test-uc_width2.c: New file.
43500         * tests/uniwidth/test-uc_width2.sh: New file.
43501         * modules/uniwidth/width-tests (Files): Add the new files.
43502         (TESTS): Add uniwidth/test-uc_width2.sh.
43503         (TESTS_ENVIRONMENT): New variable.
43504         (check_PROGRAMS): Add test-uc_width2.
43505         (test_uc_width2_SOURCES): New variable.
43506
43507         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43508         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43509         not 0x00AB.
43510         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43511
43512 2008-08-22  Eric Blake  <ebb9@byu.net>
43513
43514         test-lock, test-tls: mention why a test is skipped
43515         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43516         skipped.
43517         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43518
43519         count-one-bits: relax license
43520         * modules/count-one-bits (License): Relicense to LGPLv2+.
43521         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43522
43523 2008-08-22  Andreas Schwab  <schwab@suse.de>
43524
43525         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43526         Remove spurious space in assignment.
43527
43528 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43529
43530         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43531         Paul Eggert <eggert@CS.UCLA.EDU>.
43532
43533 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43534
43535         * modules/gettext: Add m4/threadlib.m4.
43536
43537 2008-08-19  Eric Blake  <ebb9@byu.net>
43538
43539         test-c-stack: fix compilation failure on FreeBSD 5.0
43540         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43541         headers before <sys/resource.h>.
43542         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43543         the bug.
43544         Reported by Nelson H. F. Beebe.
43545
43546         strverscmp: migrate from "strverscmp.h" to <string.h>
43547         * modules/string (Makefile.am): Add new hooks.
43548         * modules/strverscmp (Files): Remove strverscmp.h.
43549         (Depends-on): Add string.
43550         (configure.ac): Add indicator.
43551         (Include): Mention new header.
43552         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43553         defaults.
43554         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43555         results.
43556         * lib/strverscmp.h: Delete.
43557         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43558         * tests/test-strverscmp.c (includes): Adjust client.
43559         * lib/check-version.c (includes): Likewise.
43560         * NEWS: Document the change.
43561
43562         strverscmp: add unit test
43563         * modules/strverscmp-tests: New file.
43564         * tests/test-strverscmp.c: Likewise.
43565
43566 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43567
43568         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43569         regarding Windows crypto stuff, from Mono.
43570
43571 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43572
43573         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43574         if present, for intel RND.  Return error on failures.
43575
43576 2008-08-18  Ben Pfaff  <blp@gnu.org>
43577
43578         gitlog-to-changelog: give better diagnostic for failed pipe-open
43579         * build-aux/gitlog-to-changelog: Improve error message: suggest
43580         that the version of Git may be too old.
43581
43582 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43583
43584         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43585         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43586
43587 2008-08-18  Bruno Haible  <bruno@clisp.org>
43588
43589         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43590         pthread_in_use().
43591
43592 2008-08-18  Bruno Haible  <bruno@clisp.org>
43593
43594         * lib/glthread/threadlib.c: Include <pthread.h>.
43595
43596 2008-08-18  Bruno Haible  <bruno@clisp.org>
43597
43598         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43599         glthread_recursive_lock_* macros.
43600         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43601         Fix syntax error.
43602
43603 2008-08-18  Bruno Haible  <bruno@clisp.org>
43604
43605         * lib/glthread/thread.c: Avoid forcing a context switch right after
43606         thread creation.
43607
43608 2008-08-17  Bruno Haible  <bruno@clisp.org>
43609
43610         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43611         * lib/glthread/thread.h: Provide Win32 specific implementation.
43612         * modules/thread (Files): Add lib/glthread/thread.c.
43613         (Depends-on): Add lock.
43614         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43615
43616 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43617
43618         New module 'yield'.
43619         * modules/yield: New file.
43620         * lib/glthread/yield.h: New file.
43621         * m4/yield.m4: New file.
43622         * MODULES.html.sh (Multithreading): Add yield.
43623
43624 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43625
43626         New module 'thread'.
43627         * modules/thread: New file.
43628         * lib/glthread/thread.h: New file.
43629         * m4/thread.m4: New file.
43630         * MODULES.html.sh (Multithreading): Add thread.
43631
43632 2008-08-17  Bruno Haible  <bruno@clisp.org>
43633
43634         * lib/glthread/lock.h: Include <stdlib.h> always.
43635         * lib/glthread/tls.h: Likewise.
43636         * lib/glthread/cond.h: Likewise.
43637
43638 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43639
43640         New module 'cond'.
43641         * modules/cond: New file.
43642         * lib/glthread/cond.h: New file.
43643         * lib/glthread/cond.c: New file.
43644         * m4/cond.m4: New file.
43645         * MODULES.html.sh (Multithreading): Add cond.
43646
43647 2008-08-16  Eric Blake  <ebb9@byu.net>
43648
43649         c-stack: fix regression on Irix 5.3 from 2008-06-21
43650         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43651         sa_sigaction...
43652         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43653         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43654         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43655         * modules/signal (Makefile.am): Use the value.
43656         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43657         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43658         * doc/posix-headers/signal.texi (signal.h): Document this
43659         portability issue.
43660         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43661         Reported by Tom G. Christensen.
43662
43663 2008-08-17  Bruno Haible  <bruno@clisp.org>
43664
43665         New module 'threadlib'.
43666         * modules/threadlib: New file.
43667         * lib/glthread/threadlib.c: New file, extracted from
43668         lib/glthread/lock.c.
43669         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43670         functions.
43671         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43672         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43673         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43674         macros.
43675         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43676         (gl_DISABLE_THREADS): Remove macro.
43677         * modules/lock (Files): Remove build-aux/config.rpath.
43678         (Depends-on): Remove havelib. Add threadlib.
43679         (configure.ac-early): Remove section.
43680         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43681         * modules/tls (Depends-on): Remove lock. Add threadlib.
43682         (Link): New section, copied from threadlib.
43683         * MODULES.html.sh (Multithreading): Add threadlib.
43684
43685 2008-08-14  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43688         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43689         glthread_rwlock_unlock, glthread_rwlock_destroy,
43690         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43691         glthread_recursive_lock_destroy): Define as macros always.
43692         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43693         glthread_lock_lock.
43694         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43695         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43696         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43697         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43698         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43699         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43700         (glthread_recursive_lock_lock_func): Renamed from
43701         glthread_recursive_lock_lock.
43702         (glthread_recursive_lock_unlock_func): Renamed from
43703         glthread_recursive_lock_unlock.
43704         (glthread_recursive_lock_destroy_func): Renamed from
43705         glthread_recursive_lock_destroy.
43706
43707 2008-08-14  Bruno Haible  <bruno@clisp.org>
43708
43709         * lib/glthread/lock.h: Renamed from lib/lock.h.
43710         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43711         * lib/glthread/tls.h: Renamed from lib/tls.h.
43712         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43713         * lib/fstrcmp.c: Update includes.
43714         * lib/strsignal.c: Update includes.
43715         * modules/lock (Files, Makefile.am): Update.
43716         (Include): Change to "glthread/lock.h".
43717         * modules/tls (Files, Makefile.am): Update.
43718         (Include): Change to "glthread/tls.h".
43719         * tests/test-lock.c: Update includes.
43720         * tests/test-tls.c: Update includes.
43721         * NEWS: Mention the renamed header files.
43722
43723 2008-08-11  Jim Meyering  <meyering@redhat.com>
43724
43725         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43726
43727 2008-08-11  Eric Blake  <ebb9@byu.net>
43728
43729         test-c-stack: avoid C99-ism
43730         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43731         before statement.
43732         Reported by Alain Guibert.
43733
43734 2008-08-10  Jim Meyering  <meyering@redhat.com>
43735
43736         ensure that return value of uinttostr et al are not ignored
43737         * lib/inttostr.h (__GNUC_PREREQ): Define.
43738         (__attribute_warn_unused_result__): Define.
43739         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43740
43741 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43742
43743         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43744         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43745
43746 2008-08-07  Jim Meyering  <meyering@redhat.com>
43747
43748         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43749
43750         * modules/mkstemp (License): Relicense under LGPLv2+.
43751         * modules/tempname (License): Likewise.
43752
43753 2008-08-06  Bruno Haible  <bruno@clisp.org>
43754
43755         * lib/poll.c (poll): Further micro-optimization.
43756
43757 2008-08-06  Jim Meyering  <meyering@redhat.com>
43758
43759         inet_pton.c: use locale-independent tolower
43760         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43761         (inet_pton6): Use c_tolower rather than tolower.
43762         * modules/inet_pton (Depends-on): Add c-ctype.
43763
43764 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43765
43766         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43767         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43768
43769 2008-08-06  Jim Meyering  <meyering@redhat.com>
43770
43771         * modules/inet_pton (License): Relicense under LGPLv2+.
43772
43773 2008-08-03  Bruno Haible  <bruno@clisp.org>
43774
43775         Additional non-aborting API for lock and tls.
43776         * lib/lock.h: Include <errno.h>.
43777         (glthread_lock_init): New macro/function.
43778         (gl_lock_init): Define as wrapper around glthread_lock_init.
43779         (glthread_lock_lock): New macro/function.
43780         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43781         (glthread_lock_unlock): New macro/function.
43782         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43783         (glthread_lock_destroy): New macro/function.
43784         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43785         (glthread_rwlock_init): New macro/function.
43786         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43787         (glthread_rwlock_rdlock): New macro/function.
43788         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43789         (glthread_rwlock_wrlock): New macro/function.
43790         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43791         (glthread_rwlock_unlock): New macro/function.
43792         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43793         (glthread_rwlock_destroy): New macro/function.
43794         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43795         (glthread_recursive_lock_init): New macro/function.
43796         (gl_recursive_lock_init): Define as wrapper around
43797         glthread_recursive_lock_init.
43798         (glthread_recursive_lock_lock): New macro/function.
43799         (gl_recursive_lock_lock): Define as wrapper around
43800         glthread_recursive_lock_lock.
43801         (glthread_recursive_lock_unlock): New macro/function.
43802         (gl_recursive_lock_unlock): Define as wrapper around
43803         glthread_recursive_lock_unlock.
43804         (glthread_recursive_lock_destroy): New macro/function.
43805         (gl_recursive_lock_destroy): Define as wrapper around
43806         glthread_recursive_lock_destroy.
43807         (glthread_once): New macro/function.
43808         (gl_once): Define as wrapper around glthread_once.
43809         Update function declarations.
43810         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43811         glthread_rwlock_init. Return error code.
43812         (glthread_rwlock_rdlock_multithreaded): Renamed from
43813         glthread_rwlock_rdlock. Return error code.
43814         (glthread_rwlock_wrlock_multithreaded): Renamed from
43815         glthread_rwlock_wrlock. Return error code.
43816         (glthread_rwlock_unlock_multithreaded): Renamed from
43817         glthread_rwlock_unlock. Return error code.
43818         (glthread_rwlock_destroy_multithreaded): Renamed from
43819         glthread_rwlock_destroy. Return error code.
43820         (glthread_recursive_lock_init_multithreaded): Renamed from
43821         glthread_recursive_lock_init. Return error code.
43822         (glthread_recursive_lock_lock_multithreaded): Renamed from
43823         glthread_recursive_lock_lock. Return error code.
43824         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43825         glthread_recursive_lock_unlock. Return error code.
43826         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43827         glthread_recursive_lock_destroy. Return error code.
43828         (glthread_once_call): Make static.
43829         (glthread_once_multithreaded): Renamed from glthread_once.
43830         * lib/tls.h: Include <errno.h>.
43831         (glthread_tls_key_init): New macro/function.
43832         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43833         (glthread_tls_set): New macro/function.
43834         (gl_tls_set): Define as wrapper around glthread_tls_set.
43835         (glthread_tls_key_destroy): New macro/function.
43836         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43837         Update function declarations.
43838         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43839         glthread_tls_get.
43840         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43841
43842 2008-08-04  Eric Blake  <ebb9@byu.net>
43843
43844         gnumakefile: use space, not TAB, outside of targets
43845         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43846
43847 2008-08-02  Jim Meyering  <meyering@redhat.com>
43848
43849         getdate.y: avoid locale-dependent date parsing failure
43850         In Turkish locales, getdate would fail to recognize keywords
43851         containing a lowercase "i".  The solution is not to rely on
43852         locale-sensitive case-conversion.
43853         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43854         (lookup_word): Use c_toupper in place of toupper.
43855         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43856         Reported by Vefa Bicakci <bicave@superonline.com> in
43857         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43858         * modules/getdate (Depends-on): Add c-ctype.
43859
43860 2008-08-02  Bruno Haible  <bruno@clisp.org>
43861
43862         * gnulib-tool (func_import): When updating or creating a .gitignore
43863         file, prepend each added line with a slash, and ignore leading slashes
43864         from the existing lines.
43865         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43866
43867 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43868
43869         Portability fix for GNU make 3.79.1.
43870         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43871         versions do not understand.
43872
43873 2008-08-01  Bruno Haible  <bruno@clisp.org>
43874
43875         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43876         * tests/test-isnanf.h (zero): New variable.
43877         (main): Avoid literal -0.0f.
43878         * tests/test-isnand.h (zero): New variable.
43879         (main): Avoid literal -0.0.
43880         * tests/test-isnanl.h (zero): New variable.
43881         (main): Avoid literal -0.0L.
43882         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43883         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43884         -0.0, -0.0L.
43885         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43886         (test_signbitd): Avoid literal -0.0.
43887         (test_signbitl): Avoid literal -0.0L.
43888         * tests/test-ceilf1.c (zero): New variable.
43889         (main): Avoid literal -0.0f.
43890         * tests/test-ceill.c (zero): New variable.
43891         (main): Avoid literal -0.0L.
43892         * tests/test-floorf1.c (zero): New variable.
43893         (main): Avoid literal -0.0f.
43894         * tests/test-floorl.c (zero): New variable.
43895         (main): Avoid literal -0.0L.
43896         * tests/test-roundf1.c (zero): New variable.
43897         (main): Avoid literal -0.0f.
43898         * tests/test-round1.c (zero): New variable.
43899         (main): Avoid literal -0.0.
43900         * tests/test-roundl.c (zero): New variable.
43901         (main): Avoid literal -0.0L.
43902         * tests/test-truncf1.c (zero): New variable.
43903         (main): Avoid literal -0.0f.
43904         * tests/test-trunc1.c (zero): New variable.
43905         (main): Avoid literal -0.0.
43906         * tests/test-truncl.c (zero): New variable.
43907         (main): Avoid literal -0.0L.
43908         * tests/test-frexp.c (zero): New variable.
43909         (main): Avoid literal -0.0.
43910         * tests/test-frexpl.c (zero): New variable.
43911         (main): Avoid literal -0.0L.
43912         * tests/test-ldexpl.c (zero): New variable.
43913         (main): Avoid literal -0.0L.
43914         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43915         (zerod, zerol): New variables.
43916         (test_function): Avoid literals -0.0, -0.0L.
43917         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43918         (zerod, zerol): New variables.
43919         (test_function): Avoid literals -0.0, -0.0L.
43920         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43921         (zerod, zerol): New variables.
43922         (test_function): Avoid literals -0.0, -0.0L.
43923         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43924         (zerod, zerol): New variables.
43925         (test_function): Avoid literals -0.0, -0.0L.
43926         * tests/test-strtod.c (zero): New variable.
43927         (main): Avoid literal -0.0.
43928         Reported by Jonathan C. Patschke <jp@centtech.com>.
43929
43930 2008-07-31  Jim Meyering  <meyering@redhat.com>
43931
43932         sha256.h: correct definition of SHA224_DIGEST_SIZE
43933         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43934         Reported by Paulie Pena IV <paulie4@gmail.com>.
43935         Define as 224 / 8, rather than as a literal.
43936         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43937         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43938         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43939
43940 2008-07-31  Bruno Haible  <bruno@clisp.org>
43941
43942         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43943         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43944         Reported by Jonathan Patschke <jp@centtech.com>.
43945
43946 2008-07-31  Bruno Haible  <bruno@clisp.org>
43947
43948         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
43949         Reported by Paolo Bonzini <bonzini@gnu.org>.
43950
43951 2008-07-30  Eric Blake  <ebb9@byu.net>
43952
43953         test-strtod: allow compilation without -lm
43954         * tests/test-strtod.c (main): Avoid link dependence on fabs.
43955         Reported by Dennis Clarke <blastwave@gmail.com>.
43956
43957 2008-07-28  Jim Meyering  <meyering@redhat.com>
43958
43959         bootstrap: work also when there are no .po files in po/
43960         * build-aux/bootstrap (update_po_files): Complete the change
43961         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
43962
43963 2008-07-27  Jim Meyering  <meyering@redhat.com>
43964
43965         * users.txt: Add zile.
43966
43967 2008-07-26  Ben Pfaff  <blp@gnu.org>
43968
43969         Add missing dependencies on new m4/exponent[fdl].m4 files.
43970         * modules/isnanf-nolibm: Add m4/exponentf.m4.
43971         * modules/isnand-nolibm: Add m4/exponentd.m4.
43972         * modules/isnanl-nolibm: Add m4/exponentl.m4.
43973         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
43974         m4/isnan[fdl].m4, because the macros actually used moved.
43975         Reported by Jim Meyering.
43976
43977 2008-07-14  Ben Pfaff  <blp@gnu.org>
43978
43979         Add isinf module.
43980         * lib/isinf.c: New file.
43981         * lib/math.in.h: Define isinf macro if we have decided to replace
43982         it.
43983         * m4/isinf.m4: New file.
43984         * m4/math_h.m4: Initialize and substitute variables for isinf
43985         module.
43986         * modules/isinf: New file.
43987         * modules/isinf-tests: New file.
43988         * modules/math: Add substitutions for new module.
43989         * tests/test-isinf.c: New file.
43990         * doc/posix-functions/isinf.texi: Mention new module.
43991         * MODULES.html.sh: Mention new module.
43992
43993 2008-07-14  Ben Pfaff  <blp@gnu.org>
43994
43995         Factor out some macros for use by additional modules.
43996         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
43997         exponentf.m4.
43998         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
43999         exponentd.m4.
44000         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44001         file exponentl.m4.
44002         * m4/exponentf.m4: New file.
44003         * m4/exponentd.m4: New file.
44004         * m4/exponentl.m4: New file.
44005         * modules/isnanf: Use new file m4/exponentf.m4.
44006         * modules/isnand: Use new file m4/exponentd.m4.
44007         * modules/isnanl: Use new file m4/exponentl.m4.
44008
44009 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44010
44011         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44012         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44013         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44014         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44015
44016         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44017         readlink on platforms without PATH_MAX.
44018
44019 2008-07-21  Eric Blake  <ebb9@byu.net>
44020
44021         Warn, not fail, on stale version.
44022         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44023
44024         Don't allow installation with stale devel version number.
44025         * top/GNUmakefile (_is-install-target): New macro.
44026         (_curr-ver): Forbid installation with stale version number.
44027
44028 2008-07-20  Bruno Haible  <bruno@clisp.org>
44029
44030         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44031         TESTS_ENVIRONMENT.
44032         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44033
44034 2008-07-20  Bruno Haible  <bruno@clisp.org>
44035
44036         * lib/c-stack.h (c_stack_action): Add documentation.
44037         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44038
44039 2008-07-20  Bruno Haible  <bruno@clisp.org>
44040
44041         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44042         * modules/readlink (License): Likewise.
44043
44044 2008-07-17  Eric Blake  <ebb9@byu.net>
44045
44046         * modules/c-stack (Link): Fix typo.
44047
44048         Make c-stack use libsigsegv, when available.
44049         * modules/c-stack (Depends-on): Add libsigsegv.
44050         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44051         needed.
44052         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44053         (segv_handler, overflow_handler, c_stack_action)
44054         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44055         implementation when libsigsegv is available, but only when using
44056         the library is necessary.
44057         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44058         comment, explaining why XSI check fails on Linux.
44059         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44060         * tests/test-c-stack2.sh: Tweak skip message.
44061         * NEWS: Document new link-time requirements.
44062
44063 2008-07-16  Eric Blake  <ebb9@byu.net>
44064
44065         c-stack: Expose false positives when not using libsigsegv.
44066         * modules/c-stack-tests (Files): Expand test.
44067         * tests/test-c-stack.c (main): Add means to conditionally trigger
44068         non-overflow SIGSEGV.
44069         * tests/test-c-stack2.sh: New file.
44070
44071 2008-07-14  Bruno Haible  <bruno@clisp.org>
44072
44073         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44074         Reported by Eric Blake.
44075
44076 2008-07-14  Sam Steingold  <sds@gnu.org>
44077             Bruno Haible  <bruno@clisp.org>
44078
44079         New module libsigsegv.
44080         * modules/libsigsegv: New file.
44081         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44082         modifications.
44083         * MODULES.html.sh (Signal handling): New section.
44084
44085 2008-07-14  Bruno Haible  <bruno@clisp.org>
44086
44087         * modules/unictype/ctype-* (Description): Add the word "function".
44088         Improves the resulting doc in MODULES.html.
44089
44090 2008-07-12  Ben Pfaff  <blp@gnu.org>
44091
44092         Add longlong module.
44093         * modules/longlong: New file.
44094
44095 2008-07-12  Bruno Haible  <bruno@clisp.org>
44096
44097         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44098         to empty.
44099
44100 2008-07-10  Ben Pfaff  <blp@gnu.org>
44101
44102         Add isnan module.
44103         * doc/posix-functions/isnan.texi: Mention new module.
44104         * lib/math.in.h: Define isnan macro if we have decided to replace
44105         it.
44106         * m4/isnan.m4: New file.
44107         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44108         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44109         also.
44110         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44111         redundancy.
44112         * m4/math_h.m4: Initialize and substitute variables for isnan
44113         module.
44114         * modules/isnan: New file.
44115         * modules/isnan-tests: New file.
44116         * modules/math: Add substitutions for new module.
44117         * tests/test-isnan.c: New file.
44118         * MODULES.html.sh: Mention new module.
44119
44120 2008-07-10  Ben Pfaff  <blp@gnu.org>
44121
44122         Add isnanf module.
44123         * lib/isnanf.m4: New file.
44124         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44125         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44126         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44127         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44128         * modules/isnanf: New file.
44129         * modules/isnanf-tests: New file.
44130         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44131         files.
44132         * tests/test-isnanf-nolibm.c: factored most of its contents into
44133         new file tests/test-isnanf.h.
44134         * tests/test-isnanf.h: New file.
44135         * tests/test-isnanf.c: New file.
44136         * MODULES.html.sh: Mention new module.
44137         * doc/glibc-functions/isnanf.texi: Mention new module.
44138
44139 2008-07-10  Ben Pfaff  <blp@gnu.org>
44140
44141         Add isnand module.
44142         * lib/isnand.h: New file.
44143         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44144         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44145         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44146         functionality also.
44147         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44148         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44149         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44150         * modules/isnand: New file.
44151         * modules/isnand-tests: New file.
44152         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44153         files.
44154         * tests/test-isnand-nolibm.c: factored most of its contents into
44155         new file tests/test-isnand.h.
44156         * tests/test-isnand.h: New file.
44157         * tests/test-isnand.c: New file.
44158         * MODULES.html.sh: Mention new module.
44159
44160 2008-07-10  Ben Pfaff  <blp@gnu.org>
44161
44162         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44163         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44164         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44165         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44166         * modules/isnanf-nolibm: Update references to renamed files.
44167         * modules/isnand-nolibm: Likewise.
44168         * modules/isnanf-nolibm-tests: Likewise.
44169         * modules/isnand-nolibm-tests: Likewise.
44170         * lib/frexp.c: Likewise.
44171         * lib/isfinite.c: Likewise.
44172         * lib/signbitd.c: Likewise.
44173         * lib/signbitf.c: Likewise.
44174         * lib/vasnprintf.c: Likewise.
44175         * tests/test-ceilf1.c: Likewise.
44176         * tests/test-ceilf2.c: Likewise.
44177         * tests/test-floorf1.c: Likewise.
44178         * tests/test-floorf2.c: Likewise.
44179         * tests/test-frexp.c: Likewise.
44180         * tests/test-round1.c: Likewise.
44181         * tests/test-round2.c: Likewise.
44182         * tests/test-roundf1.c: Likewise.
44183         * tests/test-strtod.c: Likewise.
44184         * tests/test-trunc1.c: Likewise.
44185         * tests/test-trunc2.c: Likewise.
44186         * tests/test-truncf1.c: Likewise.
44187         * tests/test-truncf2.c: Likewise.
44188         * NEWS: Mention the renamed header files.
44189
44190 2008-07-11  Jim Meyering  <meyering@redhat.com>
44191
44192         vc-list-files: make the last-resort awk code more portable
44193         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44194         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44195         does not support it.
44196
44197 2008-07-10  Eric Blake  <ebb9@byu.net>
44198
44199         Work with tar's bootstrap.
44200         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44201         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44202         an m4 comment.
44203
44204 2008-07-09  Jim Meyering  <meyering@redhat.com>
44205
44206         posix-shell.m4: fix typo that made this test malfunction
44207         * m4/posix-shell.m4: Remove capitalization in variable name.
44208
44209 2008-07-08  Bruno Haible  <bruno@clisp.org>
44210
44211         * m4/onceonly.m4: Update comments.
44212         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44213
44214 2008-07-04  Jim Meyering  <meyering@redhat.com>
44215
44216         * users.txt: Add vc-dwim.
44217         (bison, coreutils): Use the gitweb URL.
44218
44219 2008-07-03  Jim Meyering  <meyering@redhat.com>
44220
44221         * users.txt: Add libffcall.  From Sam Steingold.
44222
44223 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44224
44225         getdate.y: do not ignore TZ with relative day, month or year offset
44226         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44227         relative-date-handling, since otherwise, the latter would clobber the
44228         sole output (an updated Start value) of the tz-handling block.
44229         * tests/test-getdate.c: Tests for the fix
44230
44231 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44232
44233         Recognize 'foo_LIBRARIES += libgnu.a'.
44234         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44235         makefile snippet has already specified an installation location,
44236         also using '+='.
44237
44238 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44239
44240         getdate.y: factor out common actions
44241         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44242         Use them in place of open-coded actions.
44243
44244 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44245
44246         Add self-test for getdate module.
44247         * modules/getdate-tests: New file.
44248         * tests/test-getdate.c: New file.
44249
44250 2008-06-29  Bruno Haible  <bruno@clisp.org>
44251
44252         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44253         .gitignore.
44254         Reported by Sylvain Beucler <beuc@beuc.net>.
44255
44256 2008-06-29  Bruno Haible  <bruno@clisp.org>
44257
44258         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44259         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44260
44261 2008-06-29  Bruno Haible  <bruno@clisp.org>
44262
44263         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44264         EXTRA_DIST.
44265         Reported by Sylvain Beucler <beuc@beuc.net>.
44266
44267 2008-06-26  Jim Meyering  <meyering@redhat.com>
44268
44269         make several modules depend on the "open" module
44270         This provides slightly increased consistency when opening-for-write
44271         the name of a non-directory spelled with a trailing slash.
44272         * modules/chdir-safer: Likewise.
44273         * modules/chown: Likewise.
44274         * modules/clean-temp: Likewise.
44275         * modules/copy-file: Likewise.
44276         * modules/fchdir: Likewise.
44277         * modules/fcntl-safer: Likewise.
44278         * modules/pipe: Likewise.
44279         * modules/utime: Likewise.
44280         Prompted by Eric Blake and Bruno Haible.
44281
44282 2008-06-24  Andreas Schwab  <schwab@suse.de>
44283
44284         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44285         literals can be used as initializers for global variables.
44286
44287 2008-06-23  Eric Blake  <ebb9@byu.net>
44288
44289         Make gnulib-cache.m4 easier to diff.
44290         * gnulib-tool (func_import): Allow newlines when reading cached
44291         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44292
44293 2008-06-23  Bruno Haible  <bruno@clisp.org>
44294
44295         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44296         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44297         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44298         m4/signalblocking.m4.
44299         (gl_PREREQ_SIGACTION): Don't invoke it.
44300         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44301         gl_PREREQ_SIG_HANDLER_H.
44302         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44303         Don't check for sigaction here.
44304
44305 2008-06-23  Bruno Haible  <bruno@clisp.org>
44306
44307         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44308         (install_handlers): Don't set the SA_RESETHAND flag.
44309
44310 2008-06-23  Bruno Haible  <bruno@clisp.org>
44311
44312         * m4/sigaction.m4: Comment fixes.
44313         * lib/signal.in.h: Likewise.
44314
44315 2008-06-23  Eric Blake  <ebb9@byu.net>
44316
44317         Fix typo.
44318         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44319
44320         Avoid SA_ namespace.
44321         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44322         Reported by Ralf Wildenhues.
44323
44324         Avoid test failure due to SA_RESTORER.
44325         * tests/test-sigaction.c (SA_MASK): New macro.
44326         (main): Avoid failing due to extension flags being set.
44327         Reported by Jim Meyering.
44328
44329         Revert use of sig-handler.h in sigprocmask.c.
44330         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44331         it requires the existence of struct sigaction.
44332         * lib/sigprocmask.c (handler_t): Restore typedef.
44333         (rpl_signal, old_handlers): Use local type.
44334
44335 2008-06-22  Bruno Haible  <bruno@clisp.org>
44336
44337         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44338         conditionally.
44339         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44340
44341 2008-06-22  Bruno Haible  <bruno@clisp.org>
44342
44343         * doc/posix-functions/siginterrupt.texi: Move note.
44344
44345         * lib/signal.in.h (SA_RESTART): New macro.
44346         * lib/sigaction.c: Update comment.
44347
44348         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44349
44350         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44351         (gl_PREREQ_SIGPROCMASK): Invoke it.
44352         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44353
44354         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44355
44356         * lib/sigprocmask.c: Update a comment.
44357
44358 2008-06-21  Eric Blake  <ebb9@byu.net>
44359
44360         Use sigaction module rather than signal().
44361         * modules/c-stack (Depends-on): Add sigaction.
44362         * modules/fatal-signal (Depends-on): Likewise.
44363         * modules/nanosleep (Depends-on): Likewise.
44364         * modules/sigprocmask (Files): Add sig-handler.h.
44365         * modules/sigaction (Files): Likewise.
44366         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44367         Eggert.
44368         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44369         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44370         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44371         (init_fatal_signals): Likewise.
44372         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44373         (siginterrupt): Delete fallback.
44374         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44375         instead.
44376         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44377         siginterrupt.
44378
44379         New module sigaction, for mingw.
44380         * modules/sigaction: New module...
44381         * modules/sigaction-tests: ...and its test.
44382         * m4/sigaction.m4: New file.
44383         * lib/sigaction.c: Likewise.
44384         * tests/test-sigaction.c: Likewise.
44385         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44386         * modules/signal (Makefile.am): Likewise.
44387         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44388         needed.
44389         * doc/posix-headers/signal.texi (signal.h): Mention provided
44390         types.
44391         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44392         that sigaction is preferable.
44393         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44394         module.
44395         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44396         sigaction.
44397
44398         Improve robustness of sigprocmask by overriding signal.
44399         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44400         is in use.
44401         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44402         (SIGKILL, SIGSTOP): Provide fallbacks.
44403         (rpl_signal): Implement.
44404         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44405         signal can be called inside handlers.
44406
44407         Fix nanosleep module on mingw.
44408         * modules/nanosleep (Depends-on): Add sys_select.
44409         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44410
44411         Fix licensing of sigprocmask.
44412         * modules/raise (License): Relicense as LGPL.
44413
44414 2008-06-21  Bruno Haible  <bruno@clisp.org>
44415
44416         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44417         result if it contains question marks.
44418         Reported by Michael Geng <linux@michaelgeng.de>.
44419
44420 2008-06-19  Bruno Haible  <bruno@clisp.org>
44421
44422         Fix CVS-ism.
44423         * doc/gnulib.texi: Include updated-stamp.texi.
44424         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44425         (updated-stamp.texi): New rule.
44426         (gnulib.info): Depend on it.
44427         * doc/.gitignore: Add updated-stamp.texi.
44428         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44429
44430 2008-06-19  Bruno Haible  <bruno@clisp.org>
44431
44432         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44433         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44434
44435 2008-06-19  Eric Blake  <ebb9@byu.net>
44436
44437         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44438         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44439         Reported by Stepan Kasal.
44440
44441 2008-06-18  Bruno Haible  <bruno@clisp.org>
44442
44443         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44444         Reported by Eric Blake.
44445
44446 2008-06-18  Eric Blake  <ebb9@byu.net>
44447
44448         Work around cygwin 1.5.25 strsignal bug.
44449         * tests/test-strsignal.c: Allow for const char *.
44450         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44451
44452 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44453
44454         * users.txt: Update URL to article and add author/date
44455         information.
44456
44457 2008-06-17  Bruno Haible  <bruno@clisp.org>
44458
44459         New macro gl_DISABLE_THREADS.
44460         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44461         if the user did not pass --enable-threads or --disable-threads option.
44462         (gl_DISABLE_THREADS): New macro.
44463         Reported by Eric Blake <ebb9@byu.net>.
44464
44465 2008-06-17  Bruno Haible  <bruno@clisp.org>
44466
44467         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44468         when the macro ignores it.
44469         Based on a patch by Eric Blake <ebb9@byu.net>.
44470
44471 2008-06-17  Bruno Haible  <bruno@clisp.org>
44472
44473         * modules/tls (License): Change to LGPLv2+.
44474         Reported by Eric Blake.
44475
44476 2008-06-17  Eric Blake  <ebb9@byu.net>
44477
44478         Simplify c-stack prerequisites.
44479         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44480         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44481         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44482         check.
44483         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44484         <sys/resource.h>.
44485
44486         Move c-stack test into testsuite.
44487         * modules/c-stack-tests: New file.
44488         * lib/c-stack.c [DEBUG]: Move test program...
44489         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44490         fail test if sigaltstack is lacking.
44491         * tests/test-c-stack.sh: New driver file.
44492
44493 2008-06-16  Eric Blake  <ebb9@byu.net>
44494
44495         Use raise module consistently.
44496         * modules/fatal-signal (Depends-on): Add raise.
44497         * modules/sigprocmask (Depends-on): Likewise.
44498         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44499         * lib/sigprocmask.c (sigprocmask): Likewise.
44500         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44501         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44502
44503         Fix compliance bug in sigpending.
44504         * lib/sigprocmask.c (sigpending): Return pending array via
44505         parameter, not return value.
44506
44507 2008-06-14  Eric Blake  <ebb9@byu.net>
44508
44509         Improve obstack-printf test code.
44510         * tests/test-obstack-printf.c (test_function): Fix comment, and
44511         simplify usage of obstack_* in macros.  Add a test for coverage.
44512         Reported by Bruno Haible.
44513
44514 2008-06-14  Bruno Haible  <bruno@clisp.org>
44515
44516         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44517         array size as a constant, not as a const variable.
44518         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44519         AC_USE_SYSTEM_EXTENSIONS.
44520         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44521         Test whether the obstack_printf function actually exists.
44522         * modules/obstack-printf (Depends-on): Add extensions.
44523         (Include): Remove obstack.h.
44524         * modules/obstack-printf-posix (Depends-on): Add extensions.
44525         (Include): Remove obstack.h.
44526
44527 2008-06-13  Eric Blake  <ebb9@byu.net>
44528
44529         Add obstack-printf and obstack-printf-posix modules.
44530         * modules/obstack-printf: New file.
44531         * modules/obstack-printf-posix: Likewise.
44532         * MODULES.html.sh (Misc): Mention them.
44533         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44534         Likewise.
44535         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44536         Likewise.
44537         * modules/stdio (Makefile.am): Accomodate new modules.
44538         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44539         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44540         Declare.
44541         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44542         functions.
44543         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44544         (gl_REPLACE_OBSTACK_PRINTF): New macros
44545         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44546         * tests/test-obstack-printf.c: New file.
44547         * modules/obstack-printf-tests: Likewise.
44548         * modules/obstack-printf-posix-tests: Likewise.
44549
44550 2008-06-11  Bruno Haible  <bruno@clisp.org>
44551
44552         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44553         * lib/open.c: Include errno.h.
44554         (open): Fail when attempting to write to a file that has a trailing
44555         slash.
44556         * tests/test-open.c (main): Test against trailing slash bug.
44557         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44558
44559 2008-06-10  Bruno Haible  <bruno@clisp.org>
44560
44561         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44562         for $? to work inside the trap command, with various /bin/sh-s.
44563         * tests/test-vc-list-files-cvs.sh: Likewise.
44564
44565 2008-06-10  Bruno Haible  <bruno@clisp.org>
44566
44567         * lib/acl-internal.h: Don't include gettext.h here.
44568         * lib/set-mode-acl.c: Include gettext.h here.
44569         * lib/copy-acl.c: Likewise.
44570
44571 2008-06-10  Bruno Haible  <bruno@clisp.org>
44572
44573         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44574         * lib/wait-process.c (wait_subprocess): Likewise.
44575         * lib/execute.h (execute): Add termsigp argument.
44576         * lib/execute.c (execute): Likewise.
44577         * lib/csharpcomp.c (compile_csharp_using_pnet,
44578         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44579         * lib/csharpexec.c (execute_csharp_using_pnet,
44580         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44581         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44582         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44583         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44584         is_jikes_present): Update.
44585         * lib/javaexec.c (execute_java_class): Update.
44586         * lib/javaversion.c (execute_and_read_line): Update.
44587         * NEWS: Document the changes.
44588         Reported by Eric Blake.
44589
44590 2008-06-10  Eric Blake  <ebb9@byu.net>
44591
44592         Add missing include.
44593         * tests/test-strstr.c (includes): Add <signal.h>.
44594         * tests/test-strcasestr.c (includes): Likewise.
44595         * tests/test-memmem.c (includes): Likewise.
44596
44597 2008-06-10  Bruno Haible  <bruno@clisp.org>
44598
44599         * lib/wait-process.c (wait_subprocess): Add an assertion.
44600
44601 2008-06-10  Bruno Haible  <bruno@clisp.org>
44602
44603         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44604
44605 2008-06-10  Bruno Haible  <bruno@clisp.org>
44606
44607         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44608         using alarm().
44609         * tests/test-strcasestr.c (main): Likewise.
44610         * tests/test-strstr.c (main): Likewise.
44611
44612 2008-06-09  Bruno Haible  <bruno@clisp.org>
44613
44614         Work around the Solaris 10 ACE ACLs ABI change.
44615         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44616         declare if ACL_NO_TRIVIAL is present.
44617         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44618         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44619         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44620         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44621         define if ACL_NO_TRIVIAL is present.
44622         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44623         and use the current ABI.
44624         (file_has_acl): Use same #if condition as elsewhere.
44625         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44626         in use, and use the current ABI.
44627         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44628         Reported by Jim Meyering.
44629
44630 2008-06-09  Eric Blake  <ebb9@byu.net>
44631
44632         Work around environments that (stupidly) ignore SIGALRM.
44633         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44634         before using alarm().
44635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44636         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44637         Reported by Ian Beckwith <ianb@erislabs.net>.
44638
44639         Produce autobuild blurb earlier in log.
44640         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44641
44642 2008-06-09  Jim Meyering  <meyering@redhat.com>
44643         and OndÅ™ej Vašík  <ovasik@redhat.com>
44644
44645         utimens.c: correct kernel bug work-around
44646         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44647         failure, not success, and the kernel bug we're trying to work
44648         around affects not just the utimensat call, but also the fallback
44649         futimens call.
44650         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44651         not success.
44652         [HAVE_FUTIMENS]: Use the same work-around, here.
44653
44654 2008-06-09  Jim Meyering  <meyering@redhat.com>
44655
44656         add more guards around definition of ACE_-related code
44657         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44658         ALLOW and ACE_OWNER are also defined.
44659
44660 2008-06-08  Bruno Haible  <bruno@clisp.org>
44661
44662         * lib/acl-internal.h: Add me as co-author.
44663         * lib/file-has-acl.c: Likewise.
44664         * lib/set-mode-acl.c: Likewise.
44665         * lib/copy-acl.c: Likewise.
44666
44667 2008-06-08  Bruno Haible  <bruno@clisp.org>
44668
44669         Add support for AIX ACLs.
44670         * lib/acl-internal.h (acl_nontrivial): New declaration.
44671         * lib/file-has-acl.c (acl_nontrivial): New function.
44672         (file_has_acl): Add implementation using AIX 4 ACL API.
44673         * lib/set-mode-acl.c (qset_acl): Likewise.
44674         * lib/copy-acl.c (qcopy_acl): Likewise.
44675
44676 2008-06-08  Bruno Haible  <bruno@clisp.org>
44677
44678         Add support for HP-UX ACLs.
44679         * lib/acl-internal.h (acl_nontrivial): New declaration.
44680         * lib/file-has-acl.c (acl_nontrivial): New function.
44681         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44682         * lib/set-mode-acl.c (qset_acl): Likewise.
44683         * lib/copy-acl.c (qcopy_acl): Likewise.
44684
44685 2008-06-08  Bruno Haible  <bruno@clisp.org>
44686
44687         Add support for Cygwin ACLs.
44688         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44689         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44690         the chmod_or_fchmod call.
44691         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44692
44693 2008-06-08  Bruno Haible  <bruno@clisp.org>
44694
44695         Fix bug with setuid modes in Solaris 10+ code.
44696         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44697         succeeded, when the mode contains some special bits.
44698
44699 2008-06-08  Bruno Haible  <bruno@clisp.org>
44700
44701         Add support for Solaris 7..10 ACLs.
44702         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44703         declarations.
44704         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44705         functions.
44706         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44707         * lib/set-mode-acl.c (qset_acl): Likewise.
44708         * lib/copy-acl.c (qcopy_acl): Likewise.
44709
44710 2008-06-08  Bruno Haible  <bruno@clisp.org>
44711
44712         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44713         declaration.
44714         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44715         (acl_access_nontrivial): Remove MacOS X case.
44716         (file_has_acl): Use acl_extended_nontrivial.
44717         * lib/copy-acl.c (qcopy_acl): Likewise.
44718
44719 2008-06-08  Bruno Haible  <bruno@clisp.org>
44720
44721         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44722
44723 2008-06-08  Jim Meyering  <meyering@redhat.com>
44724
44725         * modules/acl (Maintainer): Add Bruno Haible.
44726
44727 2008-06-07  Bruno Haible  <bruno@clisp.org>
44728
44729         Improve support for Tru64 ACLs.
44730         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44731         ACL on OSF/1.
44732
44733 2008-06-07  Bruno Haible  <bruno@clisp.org>
44734
44735         Add support for MacOS X ACLs.
44736         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44737         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44738         * lib/set-mode-acl.c (qset_acl): Likewise.
44739         * lib/copy-acl.c (qcopy_acl): Likewise.
44740
44741 2008-06-07  Bruno Haible  <bruno@clisp.org>
44742
44743         Fix memory leak introduced on 2008-05-22.
44744         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44745         use.
44746
44747 2008-06-07  Bruno Haible  <bruno@clisp.org>
44748
44749         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44750         to construct an empty ACL.
44751
44752 2008-06-07  Bruno Haible  <bruno@clisp.org>
44753
44754         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44755         precisely.
44756         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44757
44758 2008-06-07  Bruno Haible  <bruno@clisp.org>
44759
44760         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44761         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44762
44763 2008-06-07  Bruno Haible  <bruno@clisp.org>
44764
44765         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44766         regardless of POSIX.
44767         * doc/posix-functions/_longjmp.texi: Likewise.
44768         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44769         SystemV platform in this case.
44770
44771 2008-06-06  Eric Blake  <ebb9@byu.net>
44772
44773         Document abort() bugs.
44774         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44775
44776         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44777         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44778         sigsetjmp.
44779         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44780         siglongjmp, but only as a macro.
44781         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44782         is obsolete.
44783         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44784
44785         Tweak documentation to cover cygwin argz bugs.
44786         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44787         argz bug fix; no code change needed since no cygwin releases
44788         occurred between the last fix and the bug being tested.
44789         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44790         module and recently fixed cygwin bugs.
44791         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44792         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44793         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44794         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44795         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44796         Likewise.
44797         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44798         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44799         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44800         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44801         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44802         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44803         Likewise.
44804
44805         Avoid gcc warning on cygwin.
44806         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44807         !ACL_NO_TRIVIAL]: Avoid unused variable.
44808
44809 2008-06-05  Eric Blake  <ebb9@byu.net>
44810
44811         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44812         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44813         git-version-gen fails to come up with a version.
44814         Reported by Simon Josefsson.
44815
44816 2008-06-05  Jim Meyering  <meyering@redhat.com>
44817             Paul Eggert  <eggert@cs.ucla.edu>
44818
44819         utimens.c: work around a probable Linux kernel bug
44820         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44821         appears to be a kernel bug that causes utimensat to return 280
44822         instead of 0, indicating success.
44823
44824 2008-06-04  Bruno Haible  <bruno@clisp.org>
44825
44826         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44827         2008-06-01 commit.
44828
44829 2008-06-04  Bruno Haible  <bruno@clisp.org>
44830
44831         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44832         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44833         (file_has_acl): Use it. Save errno afterwards.
44834         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44835
44836 2008-06-03  Bruno Haible  <bruno@clisp.org>
44837
44838         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44839         draft code. Simplify #ifs.
44840         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44841         Put Solaris code after POSIX-draft code. Fix comments regarding
44842         Solaris 10, HP-UX. Mention Cygwin.
44843         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44844
44845 2008-06-03  Eric Blake  <ebb9@byu.net>
44846
44847         Provide fallback for older kernels.
44848         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44849         Provide runtime fallback if kernel lacks support.
44850         Reported by Mike Frysinger.
44851
44852 2008-06-02  Bruno Haible  <bruno@clisp.org>
44853
44854         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44855         it exists.
44856
44857 2008-06-02  Bruno Haible  <bruno@clisp.org>
44858
44859         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44860         * lib/copy-acl.c (qcopy_acl): Update comment.
44861
44862 2008-06-02  Bruno Haible  <bruno@clisp.org>
44863
44864         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44865         like ACL APIs.
44866
44867 2008-06-02  Bruno Haible  <bruno@clisp.org>
44868
44869         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44870         * tests/test-set-mode-acl.sh: Likewise.
44871         * tests/test-copy-acl.sh: Likewise.
44872         * tests/test-copy-file.sh: Likewise.
44873
44874 2008-06-02  Bruno Haible  <bruno@clisp.org>
44875
44876         * tests/test-file-has-acl.sh: Remove unused code.
44877
44878 2008-06-01  Bruno Haible  <bruno@clisp.org>
44879
44880         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44881         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44882         messages.
44883         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44884
44885 2008-06-01  Bruno Haible  <bruno@clisp.org>
44886
44887         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44888         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44889         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44890         APIs.
44891         * modules/acl-tests (configure.ac): Remove tests now contained in
44892         m4/acl.m4.
44893
44894 2008-06-02  Jim Meyering  <meyering@redhat.com>
44895
44896         announce-gen: use a better key-server host name
44897         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44898         it may be more consistently reliable.  Suggested by Werner Koch
44899         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44900
44901 2008-06-01  Bruno Haible  <bruno@clisp.org>
44902
44903         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44904         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44905
44906 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44907
44908         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44909
44910 2008-06-01  Bruno Haible  <bruno@clisp.org>
44911
44912         New ACL tests.
44913         * tests/test-file-has-acl.sh: New file.
44914         * tests/test-file-has-acl.c: New file.
44915         * tests/test-set-mode-acl.sh: New file.
44916         * tests/test-set-mode-acl.c: New file.
44917         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44918         * tests/test-copy-acl.c: New file.
44919         * modules/acl-tests: New file, based on modules/copy-file-tests.
44920         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44921         (Depends-on): Add acl-tests.
44922         (configure.ac): Remove checks.
44923         (Makefile.am): Don't create test-sameacls program here any more.
44924
44925 2008-06-01  Bruno Haible  <bruno@clisp.org>
44926
44927         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44928         * tests/test-sameacls.c: Include progname.h.
44929         (main): Invoke set_program_name. Portability fixes for MacOS X,
44930         Solaris, HP-UX.
44931
44932 2008-06-01  Bruno Haible  <bruno@clisp.org>
44933
44934         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44935         function.
44936         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44937
44938 2008-06-01  Bruno Haible  <bruno@clisp.org>
44939
44940         * modules/rpmatch (Depends-on): Add strdup.
44941
44942 2008-06-01  Bruno Haible  <bruno@clisp.org>
44943
44944         * lib/pipe.c: Include unistd-safer.h.
44945         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44946         * modules/pipe (Depends-on): Add unistd-safer.
44947
44948 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44949
44950         * modules/autobuild (configure.ac): Call AB_INIT.
44951
44952 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44953
44954         * tests/test-getaddrinfo.c: Don't print debug messages by default.
44955         Suggested by Bruno Haible <bruno@clisp.org>.
44956
44957 2008-05-30  Simon Josefsson  <simon@josefsson.org>
44958
44959         * tests/test-base64.c: Cast size_t to unsigned long when invoking
44960         printf.  Use %lu instead of %d.  Reported by Bruno Haible
44961         <bruno@clisp.org>.
44962
44963 2008-05-29  Eric Blake  <ebb9@byu.net>
44964
44965         Prefer new POSIX 200x interfaces over futimesat.
44966         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
44967         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
44968         when available.
44969         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
44970
44971 2008-05-28  Bruno Haible  <bruno@clisp.org>
44972
44973         * modules/stpcpy (License): Change to LGPLv2+.
44974         Requested by David Lutterkort <dlutter@redhat.com>.
44975
44976 2008-05-27  Bruno Haible  <bruno@clisp.org>
44977
44978         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
44979         current mingw.
44980         Reported by Jose E. Marchesi <jemarch@gnu.org>.
44981
44982 2008-05-27  Bruno Haible  <bruno@clisp.org>
44983
44984         * modules/iconv_open (Link): New section, from module 'iconv'.
44985         * modules/striconv (Link): Likewise.
44986         * modules/striconveh (Link): Likewise.
44987         * modules/xstriconv (Link): Likewise.
44988         * modules/unicodeio (Link): Likewise.
44989         * modules/propername (Link): Likewise.
44990         Reported by Jim Meyering.
44991
44992 2008-05-26  Jim Meyering  <meyering@redhat.com>
44993
44994         sha256: do not artificially restrict buffer length to be < 2^32
44995         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
44996         uint32_t to size_t.
44997         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
44998         to match.
44999
45000         avoid unaligned access errors, e.g., on sparc
45001         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45002         direct access through a possibly-unaligned uint64* pointer.
45003         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45004         direct access through a possibly-unaligned uint32* pointer.
45005         Prompted by this patch from Tom "spot" Callaway:
45006         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45007
45008         sha512.c: fix typo in comment
45009         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45010
45011 2008-05-25  Bruno Haible  <bruno@clisp.org>
45012
45013         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45014         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45015         (Makefile.am): Update lib_SOURCES.
45016
45017 2008-05-25  Bruno Haible  <bruno@clisp.org>
45018
45019         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45020
45021 2008-05-25  Jim Meyering  <meyering@redhat.com>
45022
45023         useless-if-before-free: freed expr may have white-space differences
45024         * build-aux/useless-if-before-free: Recognize cases in which the
45025         freed expression differs from the tested one in embedded white
45026         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45027         $1 was used, so we can't make any regexp shy.  Improved tests now
45028         detect this.
45029
45030         useless-if-before-free: accept white space in the expression.
45031         * build-aux/useless-if-before-free: For now, any white space
45032         in the expression must be identical in the free argument.
45033
45034         useless-if-before-free: efficiency tweak
45035         * build-aux/useless-if-before-free: Make the expression-matching
45036         regexp "shy".
45037         Make the *outer* regexp shy, not the expr-matching one.
45038
45039         update code-in-comment to accept cast of free arg
45040         * build-aux/useless-if-before-free: Update regexp.
45041
45042 2008-05-25  Bruno Haible  <bruno@clisp.org>
45043
45044         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45045         * modules/copy-file-tests (Files, Makefile.am): Update.
45046         * tests/test-copy-file.c (func_test_copy): Update.
45047
45048 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45049
45050         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45051
45052 2008-05-23  Bruno Haible  <bruno@clisp.org>
45053
45054         Improve support for ACLs on OSF/1.
45055         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45056         Remove fallback for unknown flavors of ACLs.
45057
45058 2008-05-22  Bruno Haible  <bruno@clisp.org>
45059
45060         Add support for ACLs on OSF/1.
45061         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45062         replacements.
45063         (acl_free_text): New macro fallback.
45064         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45065         acl_free.
45066         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45067         acl_free_text function. Require AC_C_INLINE.
45068
45069 2008-05-22  Bruno Haible  <bruno@clisp.org>
45070
45071         Make copy_acl work on MacOS X 10.5.
45072         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45073         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45074         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45075         If MODE_INSIDE_ACL, don't assume that every system has the same text
45076         representation for ACLs as FreeBSD.
45077         * lib/copy-acl.c (copy_acl): Add support for platforms with
45078         !MODE_INSIDE_ACL.
45079         * lib/file-has-acl.c (file_has_acl): Likewise.
45080         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45081         FreeBSD, MacOS X, or IRIX, respectively.
45082
45083 2008-05-22  Bruno Haible  <bruno@clisp.org>
45084
45085         * lib/acl.h: Don't include <sys/acl.h>.
45086         (GETACLCNT): Move fallback to lib/acl-internal.h.
45087         * lib/acl-internal.h: Include <sys/acl.h> here.
45088         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45089
45090 2008-05-22  Bruno Haible  <bruno@clisp.org>
45091
45092         Split off copy_acl function to separate file.
45093         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45094         * lib/acl.c (copy_acl): Moved function to separate file.
45095         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45096         * modules/acl (Files): Add lib/copy-acl.c.
45097         (Makefiles.am): Augment lib_SOURCES.
45098
45099 2008-05-22  Bruno Haible  <bruno@clisp.org>
45100
45101         * modules/copy-file-tests: New file.
45102         * tests/test-copy-file.sh: New file.
45103         * tests/test-copy-file.c: New file.
45104         * tests/test-copy-file-sameacls.c: New file.
45105
45106 2008-05-22  Eric Blake  <ebb9@byu.net>
45107
45108         Avoid gcc warning.
45109         * tests/test-memcmp.c (main): Pass NULL indirectly.
45110
45111 2008-05-21  Bruno Haible  <bruno@clisp.org>
45112
45113         Add reference doc about ACLs.
45114         * doc/acl-resources.txt: New file.
45115         * doc/acl-cygwin.txt: New file.
45116
45117 2008-05-21  Bruno Haible  <bruno@clisp.org>
45118
45119         Avoid one more warning from gcc.
45120         * lib/vasnprintf.c (IF_LINT): Update comments.
45121         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45122
45123 2008-05-21  Jim Meyering  <meyering@redhat.com>
45124
45125         avoid a warning from gcc
45126         * lib/vasnprintf.c (IF_LINT): Define.
45127         (scale10_round_decimal_long_double):
45128         Use it to avoid a "may be used uninitialized" warning.
45129         (scale10_round_decimal_double): Likewise.
45130
45131 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45132
45133         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45134         declared.
45135
45136 2008-05-20  Bruno Haible  <bruno@clisp.org>
45137
45138         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45139         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45140
45141 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45142
45143         * modules/memcmp-tests: New file.
45144         * tests/test-memcmp.c: New file.
45145
45146 2008-05-19  Bruno Haible  <bruno@clisp.org>
45147
45148         * modules/propername (Notice, configure.ac): Put quoted "..." into
45149         --keyword option.
45150         * lib/propername.h: Update comments accordingly.
45151         Reported by Eric Blake.
45152
45153 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45154
45155         * modules/getpass-gnu (Depends-on): Add fseeko.
45156
45157 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45158
45159         * modules/base64-tests: New file.
45160
45161 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45162
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         * lib/base64.c (base64_decode_ctx): If a decode context structure
45172         was passed in use it to ignore newlines.  If a context structure
45173         was _not_ passed in, continue to treat newlines as garbage (this
45174         is the historical behavior).  Formerly base64_decode.
45175         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45176         takes a decode context structure.
45177         * lib/base64.h (base64_decode): Macro for four-argument calls.
45178         (base64_decode_alloc): Likewise.
45179
45180 2008-05-19  Jim Meyering  <meyering@redhat.com>
45181
45182         avoid a warning from gcc
45183         * lib/trim.c (IF_LINT): Define.
45184         (trim2): Use it to avoid a "may be used uninitialized" warning.
45185
45186         Fix doc typo.
45187         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45188
45189 2008-05-19  Bruno Haible  <bruno@clisp.org>
45190
45191         * doc/glibc-functions/getpass.texi: Document limits of other
45192         implementations.
45193
45194 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45195             Bruno Haible <bruno@clisp.org>
45196
45197         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45198
45199 2008-05-18  Bruno Haible  <bruno@clisp.org>
45200
45201         * modules/propername: New file, from GNU gettext.
45202         * lib/propername.h: New file, from GNU gettext.
45203         * lib/propername.c: New file, from GNU gettext.
45204         * MODULES.html.sh (Internationalization functions): Add propername.
45205
45206 2008-05-16  Jim Meyering  <meyering@redhat.com>
45207             Bruno Haible  <bruno@clisp.org>
45208
45209         Avoid some warnings from "gcc -Wshadow".
45210         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45211
45212 2008-05-15  Eric Blake  <ebb9@byu.net>
45213
45214         Extend previous patch to cygwin 1.7.0.
45215         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45216         fast implementation in cygwin >= 1.7.0.
45217         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45218         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45219
45220 2008-05-15  Bruno Haible  <bruno@clisp.org>
45221
45222         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45223         implementation in glibc >= 2.9.
45224         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45226
45227 2008-05-15  Bruno Haible  <bruno@clisp.org>
45228
45229         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45230         (Unicode string functions): Add unilbrk/*.
45231         Reported by Karl Berry.
45232
45233 2008-05-15  Eric Blake  <ebb9@byu.net>
45234
45235         Fix violation of <stdbool.h> replacement in regex.
45236         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45237         * lib/regexec.c (re_search_internal): Likewise.
45238         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45239
45240 2008-05-15  Jim Meyering  <meyering@redhat.com>
45241
45242         avoid distracting test output when git or cvs is not found
45243         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45244         * tests/test-vc-list-files-git.sh: Likewise.
45245
45246 2008-05-15  Eric Blake  <ebb9@byu.net>
45247
45248         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45249         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45250         glibc version.
45251         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45252         * doc/posix-functions/strstr.texi (strstr): Likewise.
45253         * lib/str-two-way.h (MAX): Sychronize with glibc.
45254
45255 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45256
45257         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45258         opr.ctx_type.
45259         (calc_first): Initialize constraint field.
45260         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45261         Fix grammar.
45262         (duplicate_node): Merge constraint field for all node types.
45263         (calc_eclosure_iter): Look at constraint field for all node types.
45264         * lib/regex_internal.c (create_cd_newstate): Don't look at
45265         opr.ctx_type.
45266
45267 2008-05-14  Bruno Haible  <bruno@clisp.org>
45268
45269         Help GCC to do better code generation.
45270         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45271         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45272         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45273         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45274         Declare with attribute 'malloc' if supported.
45275
45276 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45277
45278         use "echo STR|wc -c" rather than unportable "expr length STR"
45279         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45280         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45281
45282 2008-05-14  Jim Meyering  <meyering@redhat.com>
45283
45284         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45285         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45286         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45287         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45288         via Collin Lasse.
45289
45290 2008-05-14  Eric Blake  <ebb9@byu.net>
45291
45292         Avoid quadratic growth in gl_LIBSOURCES.
45293         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45294         Suggested by Bruno Haible.
45295
45296         Test xmemdup0.
45297         * modules/xmemdup0-tests: New file.
45298         * tests/test-xmemdup0.c: Likewise.
45299
45300 2008-05-13  Eric Blake  <ebb9@byu.net>
45301
45302         Split xmemdup0 into its own module.
45303         * modules/xmemdup0: New file.
45304         * lib/xmemdup0.h: Likewise.
45305         * lib/xmemdup0.c: Likewise.
45306         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45307         * lib/xalloc.h (xmemdup0): Remove.
45308         * lib/xmalloc.c (xmemdup0): Likewise.
45309
45310 2008-05-13  Eric Blake  <ebb9@byu.net>
45311             Bruno Haible  <bruno@clisp.org>
45312
45313         Reduce number of forks required during autoconf.
45314         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45315         and gl_LIBSOURCES_DIR.
45316         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45317         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45318         m4_syscmd per file.
45319         <m4_foreach_w>: Move...
45320         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45321
45322 2008-05-13  Eric Blake  <ebb9@byu.net>
45323
45324         * gnulib-tool: Fix various comment typos.
45325
45326 2008-05-12  Bruno Haible  <bruno@clisp.org>
45327
45328         Tailor the linebreaking algorithm.
45329         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45330
45331 2008-05-12  Bruno Haible  <bruno@clisp.org>
45332
45333         Update to Unicode 5.0.0.
45334         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45335         LBP_JV, LBP_JT. Redistribute values.
45336         (unilbrk_table): Change size.
45337         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45338         Unicode TR#14 rev. 22.
45339         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45340         LBP_JV, LBP_JT. Redistribute values.
45341         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45342         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45343         Update.
45344         * lib/unilbrk/lbrkprop1.h: Regenerated.
45345         * lib/unilbrk/lbrkprop2.h: Regenerated.
45346         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45347         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45348         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45349         Likewise.
45350         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45351         Likewise.
45352         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45353         result.
45354         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45355         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45356         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45357         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45358         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45359         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45360
45361 2008-05-11  Bruno Haible  <bruno@clisp.org>
45362
45363         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45364
45365 2008-05-11  Bruno Haible  <bruno@clisp.org>
45366
45367         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45368         * modules/unilbrk/gen-lbrk: New file.
45369
45370 2008-05-11  Bruno Haible  <bruno@clisp.org>
45371
45372         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45373         * m4/sha512.m4 (gl_SHA512): Likewise.
45374
45375 2008-05-11  Jim Meyering  <meyering@redhat.com>
45376
45377         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45378         * modules/crypto/sha256: New file.
45379         * modules/crypto/sha512: Likewise.
45380         * lib/sha256.c: Likewise.
45381         * lib/sha256.h: Likewise.
45382         * lib/sha512.c: Likewise.
45383         * lib/sha512.h: Likewise.
45384         * lib/u64.h: Likewise.
45385         * m4/sha256.m4: Likewise.
45386         * m4/sha512.m4: Likewise.
45387         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45388
45389 2008-05-10  Bruno Haible  <bruno@clisp.org>
45390
45391         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45392         (Input/Output <stdio.h>): Add xprintf.
45393         (Signal handling <signal.h>): Add strsignal.
45394         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45395         (Core language properties): Add func.
45396         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45397         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45398         strings.
45399         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45400         (Input/output): New section.
45401         (File system functions): Add openat-die, stat-macros.
45402         (Networking functions): Add sockets.
45403         (Unicode string functions): Add unictype/*.
45404         (Support for building libraries and executables): Add gperf.
45405         (Support for building documentation): Add agpl-3.0.
45406         (Misc): Add nocrash.
45407
45408 2008-05-10  Bruno Haible  <bruno@clisp.org>
45409
45410         * modules/unictype/gen-ctype: New file.
45411
45412 2008-05-10  Jim Meyering  <meyering@redhat.com>
45413
45414         Make chdir-safer.c more efficient on a system with no symlinks.
45415         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45416         also if ELOOP is zero.  Suggested by Bruno Haible.
45417
45418         Make chdir-safer.c slightly safer.
45419         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45420         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45421
45422         Avoid compile failure on systems without ELOOP (like mingw).
45423         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45424         Reported by Bruno Haible.
45425
45426 2008-05-10  Bruno Haible  <bruno@clisp.org>
45427
45428         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45429         (is_utf8_encoding): Use a case-insensitive comparison.
45430         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45431         streq.
45432
45433 2008-05-10  Bruno Haible  <bruno@clisp.org>
45434
45435         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45436         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45437         * lib/unilbrk/ulc-common.h (iconv_string_length,
45438         iconv_string_keeping_offsets): Remove declarations.
45439         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45440         Don't include <iconv.h>, streq.h, xsize.h.
45441         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45442         conversion.
45443         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45444         <iconv.h>, streq.h, xsize.h.
45445         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45446         conversion.
45447         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45448         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45449         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45450         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45451
45452 2008-05-10  Bruno Haible  <bruno@clisp.org>
45453
45454         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45455         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45456
45457         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45458         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45459
45460         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45461         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45462
45463         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45464         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45465
45466         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45467         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45468
45469         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45470         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45471
45472         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45473         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45474
45475         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45476         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45477
45478 2008-05-10  Bruno Haible  <bruno@clisp.org>
45479
45480         Split up 'linebreak' module.
45481         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45482         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45483         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45484         modifications.
45485         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45486         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45487         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45488         lib/linebreak.c.
45489         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45490         lib/linebreak.c.
45491         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45492         lib/linebreak.c.
45493         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45494         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45495         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45496         lib/linebreak.c.
45497         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45498         lib/linebreak.c.
45499         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45500         lib/linebreak.c.
45501         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45502         lib/linebreak.c.
45503         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45504         lib/linebreak.c.
45505         * modules/unilbrk/base: New file.
45506         * modules/unilbrk/tables: New file.
45507         * modules/unilbrk/u8-possible-linebreaks: New file.
45508         * modules/unilbrk/u16-possible-linebreaks: New file.
45509         * modules/unilbrk/u32-possible-linebreaks: New file.
45510         * modules/unilbrk/ulc-common: New file.
45511         * modules/unilbrk/ulc-possible-linebreaks: New file.
45512         * modules/unilbrk/u8-width-linebreaks: New file.
45513         * modules/unilbrk/u16-width-linebreaks: New file.
45514         * modules/unilbrk/u32-width-linebreaks: New file.
45515         * modules/unilbrk/ulc-width-linebreaks: New file.
45516         * lib/linebreak.h: Remove file.
45517         * lib/linebreak.c: Remove file.
45518         * m4/linebreak.m4: Remove file.
45519         * modules/linebreak: Remove file.
45520         * NEWS: Mention the changes.
45521
45522 2008-05-09  Eric Blake  <ebb9@byu.net>
45523
45524         Add xmemdup0.
45525         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45526         implementation.
45527         * lib/xmalloc.c (xmemdup0): New C implementation.
45528
45529 2008-05-08  Bruno Haible  <bruno@clisp.org>
45530
45531         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45532
45533 2008-05-07  Eric Blake  <ebb9@byu.net>
45534
45535         Support cross-compilation of <wctype.h>.
45536         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45537         AC_CACHE_CHECK.
45538
45539 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45540
45541         * build-aux/vc-list-files: Add support for bzr.
45542
45543 2008-05-03  Jim Meyering  <meyering@redhat.com>
45544
45545         avoid failed assertion with tight malloc
45546         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45547
45548 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45549
45550         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45551         are needed from arpa/inet.h.
45552         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45553         Reported by Bruno Haible.
45554
45555 2008-05-02  Jim Meyering  <meyering@redhat.com>
45556
45557         avoid compilation error on FreeBSD 6
45558         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45559
45560 2008-05-01  Jim Meyering  <meyering@redhat.com>
45561
45562         useless-if-before-free: correct --help's exit status description
45563         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45564         for one or more matches, etc.  Reported by Bruno Haible.
45565
45566         vc-list-files: make the stand-alone gnulib test work
45567         * modules/vc-list-files-tests (configure.ac):
45568         Define and AC_SUBST abs_aux_dir.
45569         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45570         $(abs_top_srcdir) to each script and having each of them
45571         duplicate the work of setting PATH, set PATH here, using
45572         the new variable, abs_aux_dir instead.
45573         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45574         * tests/test-vc-list-files-git.sh: Likewise.
45575         Reported by Bruno Haible.
45576
45577 2008-05-01  Bruno Haible  <bruno@clisp.org>
45578
45579         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45580         reallocation. Rename 'done' to 'found_delimiter'.
45581
45582 2008-05-01  Jim Meyering  <meyering@redhat.com>
45583
45584         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45585         * build-aux/vc-list-files: Use `...`, not $(...).
45586
45587 2008-04-30  Jim Meyering  <meyering@redhat.com>
45588
45589         add tests for vc-list-files
45590         * modules/vc-list-files-tests: New module.
45591         * tests/test-vc-list-files-cvs.sh: New file.
45592         * tests/test-vc-list-files-git.sh: New file.
45593
45594         avoid a warning from gcc
45595         * lib/getndelim2.c (IF_LINT): Define.
45596         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45597
45598         vc-list-files: work properly with build-aux/cvsu, too
45599         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45600         to all cvs-based clauses.
45601
45602         vc-list-files: work properly in the CVS+awk case, too
45603         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45604
45605         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45606         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45607         take more than one file argument, so .  Add quotes, just in case $dir
45608         ever contains a shell meta-character.  Prompted by Soren Hansen in
45609         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45610
45611 2008-04-29  Eric Blake  <ebb9@byu.net>
45612
45613         Optimize getndelim2 to use block operations when possible.
45614         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45615         freadseek, and memchr2.
45616         * lib/getndelim2.c (getndelim2): Use them for block reads.
45617
45618 2008-04-29  Bruno Haible  <bruno@clisp.org>
45619
45620         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45621         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45622         * modules/inet_ntop (Depends-on): Add extensions.
45623         * modules/inet_pton (Depends-on): Likewise.
45624         Reported by Simon Josefsson.
45625
45626 2008-04-29  Jim Meyering  <meyering@redhat.com>
45627
45628         When the is more than one match in a block, match all of them.
45629         * build-aux/useless-if-before-free: Iterate through each block
45630         until there are no more matches.
45631
45632         Fix broken useless-if-before-free script.
45633         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45634         the expression to match cast of argument to free-like function.
45635
45636 2008-04-29  Eric Blake  <ebb9@byu.net>
45637
45638         Use new header.
45639         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45640
45641 2008-04-29  Jim Meyering  <meyering@redhat.com>
45642
45643         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45644         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45645         by gnulib to exist and to declare e.g., inet_ntop.
45646         Don't include "inet_ntop.h", now removed.
45647
45648         * m4/arpa_inet_h.m4: Remove trailing blanks.
45649
45650 2008-04-29  Eric Blake  <ebb9@byu.net>
45651
45652         Silence valgrind on safe reads beyond potential array bounds.
45653         * lib/rawmemchr.valgrind: New file.
45654         * lib/strchrnul.valgrind: Likewise.
45655         * modules/rawmemchr (Files): Distribute new file.
45656         * modules/strchrnul (Files): Likewise.
45657         Suggested by Bruno Haible.
45658
45659 2008-04-29  Bruno Haible  <bruno@clisp.org>
45660
45661         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45662         (inet_ntop, inet_pton): Change portability warning's wording.
45663         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45664         Invoke gl_CHECK_NEXT_HEADERS.
45665         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45666         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45667         set ARPA_INET_H.
45668         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45669         * modules/arpa_inet (Description): No longer only for systems that
45670         lack it.
45671         (Depends-on): Add include_next.
45672         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45673         HAVE_ARPA_INET_H.
45674
45675 2008-04-29  Jim Meyering  <meyering@redhat.com>
45676
45677         * modules/mkdir (License): Re-license as LGPLv2+.
45678
45679 2008-04-29  Bruno Haible  <bruno@clisp.org>
45680
45681         * modules/rawmemchr (Maintainer): Set to Eric.
45682         * modules/strchrnul (Maintainer): Likewise.
45683
45684 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45685
45686         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45687         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45688
45689         * modules/arpa_inet (arpa/inet.h): Use them.
45690
45691 2008-04-28  Eric Blake  <ebb9@byu.net>
45692
45693         Test getndelim2.
45694         * modules/getndelim2-tests: New file.
45695         * tests/test-getndelim2.c: Likewise.
45696         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45697         stream.
45698         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45699
45700         * MODULES.html.sh: Document new module.
45701
45702 2008-04-20  Bruno Haible  <bruno@clisp.org>
45703
45704         * lib/c-stack.c (die): Use raise.
45705         * modules/c-stack (Depends-on): Add raise.
45706
45707 2008-04-28  Bruno Haible  <bruno@clisp.org>
45708
45709         Expect rpmatch to be declared.
45710         * lib/yesno.c (rpmatch): Remove declaration.
45711
45712         Declare rpmatch.
45713         * lib/stdlib.in.h (rpmatch): New declaration.
45714         * lib/rpmatch.c: Include <stdlib.h> first.
45715         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45716         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45717         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45718         HAVE_RPMATCH.
45719         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45720         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45721         (Include): Set to <stdlib.h>.
45722         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45723         HAVE_RPMATCH.
45724         * NEWS: Document the change.
45725
45726 2008-04-28  Bruno Haible  <bruno@clisp.org>
45727
45728         Change rpmatch to use nl_langinfo when appropriate.
45729         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45730         (N_): New macro.
45731         (localized_pattern): New function/macro.
45732         (try): Remove match, nomatch arguments. Copy the pattern into safe
45733         memory before caching it.
45734         (rpmatch): Use localized_pattern. Add translator comments.
45735         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45736         Suggested by Eric Blake.
45737         * modules/rpmatch (Depends-on): Add stdbool.
45738
45739 2008-04-28  Eric Blake  <ebb9@byu.net>
45740
45741         Add rawmemchr module, matching glibc.
45742         * modules/string (Makefile.am): New indicator.
45743         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45744         * lib/string.in.h (rawmemchr): Declare when appropriate.
45745         * modules/rawmemchr: New file.
45746         * m4/rawmemchr.m4: Likewise.
45747         * lib/rawmemchr.c: Likewise.
45748         * modules/rawmemchr-tests: Likewise.
45749         * tests/test-rawmemchr.c: Likewise.
45750         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45751         module.
45752         * modules/strchrnul (Depends-on): Add rawmemchr.
45753         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45754
45755         Whitespace cleanup.
45756         * tests/test-strchrnul.c: Reindent.
45757         * lib/strchrnul.c: Likewise.
45758
45759         Optimize and test strchrnul.
45760         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45761         * modules/strchrnul-tests: New file.
45762         * tests/test-strchrnul.c: Likewise.
45763
45764         Remove intprops dependency.
45765         * modules/memchr (Depends-on): Remove intprops.
45766         * modules/memrchr (Depends-on): Likewise.
45767         * modules/memchr2 (Depends-on): Likewise.
45768         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45769         * lib/memrchr.c (__memrchr): Likewise.
45770         * lib/memrchr2.c (memchr2): Likewise.
45771         Reported by Simon Josefsson.
45772
45773 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45774
45775         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45776         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45777
45778 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45779
45780         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45781
45782         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45783
45784         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45785
45786         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45787         declarations.
45788         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45789
45790         * m4/inet_pton.m4: Don't check for header files.
45791
45792         * m4/inet_ntop.m4: Don't check for header files.
45793
45794 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45795
45796         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45797         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45798         trigger for cygwin).
45799         Reported by Bruno Haible  <bruno@clisp.org>.
45800
45801 2008-04-28  Bruno Haible  <bruno@clisp.org>
45802
45803         * doc/posix-functions/strdup.texi: Mention mingw problem.
45804
45805 2008-04-27  Bruno Haible  <bruno@clisp.org>
45806
45807         * modules/stat-time-tests (Depends-on): Add sleep.
45808         * tests/test-stat-time.c (force_unlink): New function.
45809         (cleanup): Use it.
45810         (test_mtime): Remove the ctime related tests.
45811         (test_ctime): New function, containing the ctime related tests.
45812         (main): Call test_ctime, except on native Windows platforms.
45813
45814 2008-04-27  Bruno Haible  <bruno@clisp.org>
45815
45816         * lib/rpmatch.c (rpmatch): Add some comments.
45817         Reported by James Youngman <jay@gnu.org>.
45818
45819 2008-04-27  Bruno Haible  <bruno@clisp.org>
45820
45821         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45822         quiet NaNs.
45823
45824 2008-04-27  Bruno Haible  <bruno@clisp.org>
45825
45826         Make test-yesno.sh work on mingw.
45827         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45828         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45829         (main): Set stdin to binary mode.
45830         * modules/yesno-tests (Depends-on): Add binary-io.
45831
45832 2008-04-27  Bruno Haible  <bruno@clisp.org>
45833
45834         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45835         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45836         argument that lie outside the IEEE 854 domain.
45837         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45838         (gl_ISFINITE): Use it.
45839         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45840
45841 2008-04-27  Bruno Haible  <bruno@clisp.org>
45842
45843         Allow local renaming in config.h.
45844         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45845
45846 2008-04-27  Bruno Haible  <bruno@clisp.org>
45847
45848         * lib/memchr.c (__memchr): Change type of 'i'.
45849         * lib/memchr2.c (memchr2): Likewise.
45850
45851 2008-04-26  Eric Blake  <ebb9@byu.net>
45852         and Bruno Haible  <bruno@clisp.org>
45853
45854         Optimize and test memrchr.
45855         * modules/memrchr (Depends-on): Add intprops.
45856         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45857         * modules/memrchr-tests: New file.
45858         * tests/test-memrchr.c: New file.
45859
45860 2008-04-26  Bruno Haible  <bruno@clisp.org>
45861
45862         Add tentative support for DragonFly BSD.
45863         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45864         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45865         fp.
45866         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45867         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45868         * lib/fpurge.c (fpurge): Likewise.
45869         * lib/freadable.c (freaadable): Likewise.
45870         * lib/freadahead.c (freadahead): Likewise.
45871         * lib/freading.c (freading): Likewise.
45872         * lib/freadptr.c (freadptr): Likewise.
45873         * lib/freadseek.c (freadptrinc): Likewise.
45874         * lib/fseeko.c (fseeko): Likewise.
45875         * lib/fseterr.c (fseterr): Likewise.
45876         * lib/fwritable.c (fwritable): Likewise.
45877         * lib/fwriting.c (fwriting): Likewise.
45878
45879 2008-04-26  Bruno Haible  <bruno@clisp.org>
45880
45881         * lib/stdio-impl.h: New file.
45882         * lib/fbufmode.c: Include stdio-impl.h.
45883         (fbufmode): Use fp_, remove redundant #defines.
45884         * lib/fflush.c: Include stdio-impl.h.
45885         (clear_ungetc_buffer): Remove redundant #defines.
45886         * lib/fpurge.c: Include stdio-impl.h.
45887         (fpurge): Remove redundant #defines.
45888         * lib/freadable.c: Include stdio-impl.h.
45889         (freadable): Remove redundant #defines.
45890         * lib/freadahead.c: Include stdio-impl.h.
45891         (freadahead): Remove redundant #defines.
45892         * lib/freading.c: Include stdio-impl.h.
45893         (freading): Remove redundant #defines.
45894         * lib/freadptr.c: Include stdio-impl.h.
45895         (freadptr): Remove redundant #defines.
45896         * lib/freadseek.c: Include stdio-impl.h.
45897         (freadptrinc): Remove redundant #defines.
45898         * lib/fseeko.c: Include stdio-impl.h.
45899         (rpl_fseeko): Remove redundant #defines.
45900         * lib/fseterr.c: Include stdio-impl.h.
45901         (fseterr): Remove redundant #defines.
45902         * lib/fwritable.c: Include stdio-impl.h.
45903         (fwritable: Remove redundant #defines.
45904         * lib/fwriting.c: Include stdio-impl.h.
45905         (fwriting): Remove redundant #defines.
45906         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45907         * modules/fflush (Files): Likewise.
45908         * modules/fpurge (Files): Likewise.
45909         * modules/freadable (Files): Likewise.
45910         * modules/freadahead (Files): Likewise.
45911         * modules/freading (Files): Likewise.
45912         * modules/freadptr (Files): Likewise.
45913         * modules/freadseek (Files): Likewise.
45914         * modules/fseeko (Files): Likewise.
45915         * modules/fseterr (Files): Likewise.
45916         * modules/fwritable (Files): Likewise.
45917         * modules/fwriting (Files): Likewise.
45918
45919 2008-04-26  Bruno Haible  <bruno@clisp.org>
45920
45921         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45922         restore_seek_optimization, update_fpos_cache): New functions, extracted
45923         from rpl_fflush.
45924         (rpl_fflush): Use them.
45925         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45926         (gl_REPLACE_FFLUSH): Use it.
45927
45928 2008-04-26  Bruno Haible  <bruno@clisp.org>
45929
45930         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45931         on Solaris.
45932         * tests/test-xstrtoimax.sh: Likewise.
45933         * tests/test-xstrtoumax.sh: Likewise.
45934         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45935
45936 2008-04-26  Bruno Haible  <bruno@clisp.org>
45937
45938         * modules/memchr-tests: New file.
45939         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45940
45941 2008-04-26  Eric Blake  <ebb9@byu.net>
45942             Bruno Haible  <bruno@clisp.org>
45943
45944         * lib/memchr.c: Include intprops.h.
45945         (__memchr): Optimize parallel detection of matching bytes. Rename local
45946         variables. Add explanatory comments.
45947
45948 2008-04-26  Bruno Haible  <bruno@clisp.org>
45949
45950         Fix module 'memchr', broken since 2000-10-28.
45951         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
45952
45953 2008-04-26  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
45956         comments.
45957
45958 2008-04-25  Eric Blake  <ebb9@byu.net>
45959
45960         Use native fstatat on cygwin 1.7.0.
45961         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
45962         first.
45963
45964 2008-04-23  Eric Blake  <ebb9@byu.net>
45965
45966         Improve memchr2 performance.
45967         * lib/memchr2.c (memchr2): Further optimize parallel detection of
45968         NUL bytes.
45969         * modules/memchr2 (Depends-on): Use intprops.h.
45970
45971 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45972
45973         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
45974         an inline function instead of a CPP macro.  Patch by Ben Pfaff
45975         <blp@cs.stanford.edu>.
45976
45977 2008-04-23  Simon Josefsson  <simon@josefsson.org>
45978
45979         * lib/arpa_inet.in.h: New file.
45980
45981         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
45982         (Makefile.am): Sed in substitute header file.
45983
45984         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
45985         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
45986
45987         * modules/inet_ntop (configure.ac): Use
45988         gl_ARPA_INET_MODULE_INDICATOR.
45989
45990         * modules/inet_pton (configure.ac): Use
45991         gl_ARPA_INET_MODULE_INDICATOR.
45992
45993 2008-04-22  Jim Meyering  <meyering@redhat.com>
45994
45995         * modules/verify (License): Re-license as LGPLv2+.
45996
45997 2008-04-22  Simon Josefsson  <simon@josefsson.org>
45998
45999         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46000         parameter to void* as per POSIX standard (MinGW uses char*).
46001
46002 2008-04-21  Bruno Haible  <bruno@clisp.org>
46003
46004         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46005         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46006         Define to replacements if REPLACE_ISWCNTRL is 1.
46007         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46008         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46009         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46010         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46011         what it fixes.
46012         * doc/posix-functions/iswalpha.texi: Likewise.
46013         * doc/posix-functions/iswblank.texi: Likewise.
46014         * doc/posix-functions/iswcntrl.texi: Likewise.
46015         * doc/posix-functions/iswdigit.texi: Likewise.
46016         * doc/posix-functions/iswgraph.texi: Likewise.
46017         * doc/posix-functions/iswlower.texi: Likewise.
46018         * doc/posix-functions/iswprint.texi: Likewise.
46019         * doc/posix-functions/iswpunct.texi: Likewise.
46020         * doc/posix-functions/iswspace.texi: Likewise.
46021         * doc/posix-functions/iswupper.texi: Likewise.
46022         * doc/posix-functions/iswxdigit.texi: Likewise.
46023         Reported by Alain Guibert.
46024
46025 2008-04-21  Bruno Haible  <bruno@clisp.org>
46026
46027         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46028         Patch by Alain Guibert.
46029
46030 2008-04-21  Bruno Haible  <bruno@clisp.org>
46031
46032         Fix test failures on mingw.
46033         * tests/test-xstrtol.c (print_no_progname): New function.
46034         (main): Install it in error_print_progname hook.
46035         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46036         * tests/test-xstrtoimax.sh: Likewise.
46037         * tests/test-xstrtoumax.sh: Likewise.
46038
46039 2008-04-21  Bruno Haible  <bruno@clisp.org>
46040
46041         Fix test failure on mingw.
46042         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46043
46044 2008-04-21  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46047         Actually assign a value.
46048
46049 2008-04-20  Bruno Haible  <bruno@clisp.org>
46050
46051         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46052         take 2.
46053         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46054         'canonicalize-lgpl' module is also used.
46055         * lib/canonicalize-lgpl.c: Undo last change.
46056         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46057
46058 2008-04-20  Bruno Haible  <bruno@clisp.org>
46059
46060         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46061         config.h. Provide _mkdir based fallback for mingw.
46062         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46063         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46064         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46065         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46066         rather than defining mkdir in config.h.
46067         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46068         (gl_SYS_STAT_H_DEFAULTS): New macro.
46069         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46070         HAVE_IO_H any more.
46071         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46072         HAVE_DECL_MKDIR and HAVE_IO_H.
46073
46074 2008-04-20  Bruno Haible  <bruno@clisp.org>
46075
46076         * lib/isapipe.c: Port to native Windows platforms.
46077
46078 2008-04-20  Bruno Haible  <bruno@clisp.org>
46079
46080         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46081
46082 2008-04-21  Eric Blake  <ebb9@byu.net>
46083
46084         Work around preprocessors that don't handle UINTMAX_MAX.
46085         * lib/memchr2.c (memchr2): Avoid embedded #if.
46086         Reported by Alain Guibert, fix suggested by Bruno Haible.
46087
46088 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46089
46090         * doc/posix-functions/strftime.texi (strftime): Explain better
46091         Windows incompatibility.  Suggested by Micah Cowan
46092         <micah@cowan.name>.
46093
46094 2008-04-20  Bruno Haible  <bruno@clisp.org>
46095
46096         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46097         unistr/u8-mblen.
46098
46099 2008-04-20  Bruno Haible  <bruno@clisp.org>
46100
46101         Fix test failure on platforms with non-GNU iconv.
46102         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46103         (U_TO_U8): Use it, rather than u16_to_u8.
46104         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46105         units at the end of the input string.
46106         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46107
46108 2008-04-20  Bruno Haible  <bruno@clisp.org>
46109
46110         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46111         when the resulting length is 0.
46112         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46113
46114 2008-04-20  Bruno Haible  <bruno@clisp.org>
46115
46116         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46117         works.
46118         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46119
46120 2008-04-20  Bruno Haible  <bruno@clisp.org>
46121
46122         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46123         * modules/tsearch-tests (configure.ac): Test for initstate function.
46124
46125 2008-04-20  Bruno Haible  <bruno@clisp.org>
46126
46127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46128         for nlink_t if missing.
46129         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46130
46131 2008-04-19  Bruno Haible  <bruno@clisp.org>
46132
46133         Work around snprintf bug on Linux libc5.
46134         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46135         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46136         gl_SNPRINTF_SIZE1.
46137         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46138         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46139         that test failed.
46140         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46141         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46142         * modules/snprintf (Files): Add m4/printf.m4.
46143         * modules/vsnprintf (Files): Likewise.
46144         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46145         * doc/posix-functions/vsnprintf.texi: Likewise.
46146
46147 2008-04-19  Bruno Haible  <bruno@clisp.org>
46148
46149         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46150         from 0.0058 to less than 10^-7.
46151
46152 2008-04-19  Bruno Haible  <bruno@clisp.org>
46153
46154         Fix rounding when a precision is given.
46155         * lib/vasnprintf.c (is_borderline): New function.
46156         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46157         9...9x.
46158         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46159         %e, %g.
46160         * tests/test-vasprintf-posix.c (test_function): Likewise.
46161         * tests/test-snprintf-posix.h (test_function): Likewise.
46162         * tests/test-sprintf-posix.h (test_function): Likewise.
46163         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46164         * tests/test-printf-posix.h (test_function): Likewise.
46165         * tests/test-printf-posix.output: Update.
46166         Reported by John Darrington <john@darrington.wattle.id.au> via
46167         Ben Pfaff <blp@cs.stanford.edu>.
46168
46169 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46170
46171         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46172         Suggested by Bruno Haible <bruno@clisp.org>.
46173
46174 2008-04-17  Bruno Haible  <bruno@clisp.org>
46175
46176         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46177         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46178         implementation.
46179         Patch by Bruce Merry <bmerry@gmail.com>.
46180
46181 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46182
46183         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46184         doesn't work under Windows.
46185
46186 2008-04-16  Bruno Haible  <bruno@clisp.org>
46187
46188         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46189         New macros.
46190         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46191         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46192         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46193         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46194         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46195         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46196         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46197         macros.
46198         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46199         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46200         Northern Sotho, Uighur.
46201
46202 2008-04-16  Bruno Haible  <bruno@clisp.org>
46203
46204         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46205         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46206         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46207         Reported by Daniel Bergström <daniel@octocode.com>.
46208
46209 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46210             Bruno Haible  <bruno@clisp.org>
46211
46212         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46213         function.
46214         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46215         New functions, mostly extracted from gl_locale_name_default.
46216         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46217
46218 2008-04-16  Eric Blake  <ebb9@byu.net>
46219
46220         Adjust strtod detection to catch glibc 2.7 bug.
46221         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46222         Reported by John Gatewood Ham.
46223
46224 2008-04-16  Bruno Haible  <bruno@clisp.org>
46225
46226         Add tentative support for Linux libc5.
46227         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46228         * lib/fpurge.c (fpurge): Likewise.
46229         * lib/freadable.c (freadable): Likewise.
46230         * lib/freadahead.c (freadahead): Likewise.
46231         * lib/freading.c (freading): Likewise.
46232         * lib/freadptr.c (freadptr): Likewise.
46233         * lib/freadseek.c (freadptrinc): Likewise.
46234         * lib/fseeko.c (rpl_fseeko): Likewise.
46235         * lib/fseterr.c (fseterr): Likewise.
46236         * lib/fwritable.c (fwritable): Likewise.
46237         * lib/fwriting.c (fwriting): Likewise.
46238         Reported by Alain Guibert <alguibert+bts@free.fr>.
46239
46240 2008-04-15  Bruno Haible  <bruno@clisp.org>
46241
46242         * modules/mathl (configure.ac): Define module indicator.
46243
46244 2008-04-15  Bruno Haible  <bruno@clisp.org>
46245
46246         * lib/logl.c (logl): Remove unused variables.
46247
46248 2008-04-15  Bruno Haible  <bruno@clisp.org>
46249
46250         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46251         fails.
46252
46253 2008-04-15  Bruno Haible  <bruno@clisp.org>
46254
46255         * lib/trim.c (trim2): Fix argument of isspace() macro.
46256
46257 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46258
46259         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46260         to 0.
46261         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46262
46263 2008-04-14  Bruno Haible  <bruno@clisp.org>
46264
46265         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46266         AC_LANG_PROGRAM argument.
46267         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46268         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46269         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46270         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46271         * m4/math_h.m4 (gl_MATH_H): Likewise.
46272         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46273         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46274         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46275         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46276         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46277         * m4/regex.m4 (gl_REGEX): Likewise.
46278         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46279         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46280         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46281         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46282         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46283         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46284         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46285         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46286
46287 2008-04-14  Jim Meyering  <meyering@redhat.com>
46288
46289         test-strtod: fix typos: s/abs/fabs/
46290         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46291
46292 2008-04-13  Bruno Haible  <bruno@clisp.org>
46293
46294         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46295         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46296         module is also used and while not building the reloc-wrapper.
46297
46298 2008-04-13  Bruno Haible  <bruno@clisp.org>
46299
46300         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46301
46302 2008-04-13  Bruno Haible  <bruno@clisp.org>
46303
46304         Fix AIX compilation failure introduced on 2008-04-02.
46305         * tests/test-frexp.c (exp): Undefine before redefining.
46306         * tests/test-frexpl.c (exp): Likewise.
46307
46308 2008-04-13  Bruno Haible  <bruno@clisp.org>
46309
46310         Work around a HP-UX stdio bug.
46311         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46312         * tests/test-ftello.c (main): Likewise.
46313         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46314         * doc/posix-functions/ftello.texi: Likewise.
46315
46316 2008-04-13  Bruno Haible  <bruno@clisp.org>
46317
46318         Make test-signbit pass on HP-UX/hppa.
46319         * tests/test-signbit.c (minus_zerol): New variable.
46320         (test_signbitl): Use it.
46321
46322 2008-04-13  Bruno Haible  <bruno@clisp.org>
46323
46324         Make truncl work on OSF/1 4.0.
46325         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46326         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46327         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46328         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46329         HAVE_DECL_TRUNCL.
46330         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46331         HAVE_DECL_TRUNCL.
46332         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46333
46334 2008-04-13  Bruno Haible  <bruno@clisp.org>
46335
46336         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46337
46338 2008-04-13  Bruno Haible  <bruno@clisp.org>
46339
46340         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46341         expression, so as to avoid HP-UX 11 cc compiler bug.
46342
46343 2008-04-13  Bruno Haible  <bruno@clisp.org>
46344
46345         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46346
46347 2008-04-13  Bruno Haible  <bruno@clisp.org>
46348
46349         * lib/git-merge-changelog.c: Remove empty declaration outside of
46350         functions.
46351
46352 2008-04-13  Bruno Haible  <bruno@clisp.org>
46353
46354         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46355
46356 2008-04-13  Bruno Haible  <bruno@clisp.org>
46357
46358         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46359         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46360         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46361         also if it exists but lacks definitions of the SHUT_* macros.
46362         * modules/sys_socket (Description): Update.
46363         Reported by Elbert Pol <e.pol@chello.nl>.
46364
46365 2008-04-13  Bruno Haible  <bruno@clisp.org>
46366
46367         * lib/localcharset.c (OS2): Don't redefine if already defined.
46368         Reported by Elbert Pol <e.pol@chello.nl>.
46369
46370 2008-04-13  Bruno Haible  <bruno@clisp.org>
46371
46372         * lib/binary-io.h [__EMX__]: Include <io.h>.
46373         Reported by Elbert Pol <e.pol@chello.nl>.
46374
46375 2008-04-12  Bruno Haible  <bruno@clisp.org>
46376
46377         * lib/fpucw.h: Enable the definitions also for x86_64.
46378         Needed for NetBSD/x86_64.
46379         Reported by Thomas Klausner <tk@giga.or.at>.
46380
46381 2008-04-12  Bruno Haible  <bruno@clisp.org>
46382
46383         * tests/test-strtod.c: Include isnand.h.
46384         (main): Use isnand instead of isnan.
46385         Reported by Jim Meyering.
46386
46387 2008-04-12  Bruno Haible  <bruno@clisp.org>
46388
46389         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46390         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46391
46392 2008-04-12  Jim Meyering  <meyering@redhat.com>
46393
46394         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46395
46396 2008-04-12  Bruno Haible  <bruno@clisp.org>
46397
46398         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46399         Reported by Elbert Pol <e.pol@chello.nl>.
46400
46401 2008-04-12  Eric Blake  <ebb9@byu.net>
46402
46403         Work around Solaris 10 math.h bug.
46404         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46405         (gl_MATH_H_DEFAULTS): Set up default.
46406         * modules/math (Makefile.am): Replace new indicators.
46407         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46408         * tests/test-math.c (main): Test this.
46409         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46410         * doc/posix-headers/math.texi (math.h): Mention bug.
46411         Reported by Nelson H. F. Beebe and Jim Meyering.
46412
46413 2008-04-11  Bruno Haible  <bruno@clisp.org>
46414
46415         Adapt to future versions of Apple GCC.
46416         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46417         Reported by Peter O'Gorman <peter@pogma.com>.
46418
46419 2008-04-11  Bruno Haible  <bruno@clisp.org>
46420
46421         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46422
46423 2008-04-11  Bruno Haible  <bruno@clisp.org>
46424
46425         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46426
46427         * modules/getaddrinfo-tests (Makefile.am): Define
46428         test_getaddrinfo_LDADD.
46429
46430 2008-04-11  Bruno Haible  <bruno@clisp.org>
46431
46432         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46433         (init): Fix syntax error.
46434         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46435         is declared.
46436
46437 2008-04-11  Bruno Haible  <bruno@clisp.org>
46438
46439         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46440         * modules/glob (Depends-on): Add stdbool.
46441
46442 2008-04-11  Bruno Haible  <bruno@clisp.org>
46443
46444         * lib/trim.c: Include <string.h>.
46445
46446 2008-04-11  Eric Blake  <ebb9@byu.net>
46447
46448         Avoid compile failure on OS/2.
46449         * lib/regex_internal.h (internal_function): Disable optimization
46450         on OS/2 (__EMX__), where it caused compiler error.
46451         Reported by Elbert Pol.
46452
46453 2008-04-11  Bruno Haible  <bruno@clisp.org>
46454
46455         Flush the standard error stream before aborting. Needed on mingw.
46456         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46457         * tests/test-array_list.c (ASSERT): Likewise.
46458         * tests/test-array_oset.c (ASSERT): Likewise.
46459         * tests/test-avltree_list.c (ASSERT): Likewise.
46460         * tests/test-avltree_oset.c (ASSERT): Likewise.
46461         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46462         * tests/test-binary-io.c (ASSERT): Likewise.
46463         * tests/test-byteswap.c (ASSERT): Likewise.
46464         * tests/test-c-ctype.c (ASSERT): Likewise.
46465         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46466         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46467         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46468         * tests/test-c-strstr.c (ASSERT): Likewise.
46469         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46470         * tests/test-canonicalize.c (ASSERT): Likewise.
46471         * tests/test-carray_list.c (ASSERT): Likewise.
46472         * tests/test-ceilf1.c (ASSERT): Likewise.
46473         * tests/test-ceilf2.c (ASSERT): Likewise.
46474         * tests/test-ceill.c (ASSERT): Likewise.
46475         * tests/test-count-one-bits.c (ASSERT): Likewise.
46476         * tests/test-fbufmode.c (ASSERT): Likewise.
46477         * tests/test-fflush2.c (ASSERT): Likewise.
46478         * tests/test-floorf1.c (ASSERT): Likewise.
46479         * tests/test-floorf2.c (ASSERT): Likewise.
46480         * tests/test-floorl.c (ASSERT): Likewise.
46481         * tests/test-fopen.c (ASSERT): Likewise.
46482         * tests/test-fpending.c (ASSERT): Likewise.
46483         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46484         * tests/test-fpurge.c (ASSERT): Likewise.
46485         * tests/test-freadable.c (ASSERT): Likewise.
46486         * tests/test-freadahead.c (ASSERT): Likewise.
46487         * tests/test-freading.c (ASSERT): Likewise.
46488         * tests/test-freadptr.c (ASSERT): Likewise.
46489         * tests/test-freadptr2.c (ASSERT): Likewise.
46490         * tests/test-freadseek.c (ASSERT): Likewise.
46491         * tests/test-freopen.c (ASSERT): Likewise.
46492         * tests/test-frexp.c (ASSERT): Likewise.
46493         * tests/test-frexpl.c (ASSERT): Likewise.
46494         * tests/test-fseek.c (ASSERT): Likewise.
46495         * tests/test-fseeko.c (ASSERT): Likewise.
46496         * tests/test-fstrcmp.c (ASSERT): Likewise.
46497         * tests/test-ftell.c (ASSERT): Likewise.
46498         * tests/test-ftello.c (ASSERT): Likewise.
46499         * tests/test-func.c (ASSERT): Likewise.
46500         * tests/test-fwritable.c (ASSERT): Likewise.
46501         * tests/test-fwriting.c (ASSERT): Likewise.
46502         * tests/test-getdelim.c (ASSERT): Likewise.
46503         * tests/test-getline.c (ASSERT): Likewise.
46504         * tests/test-i-ring.c (ASSERT): Likewise.
46505         * tests/test-iconv-utf.c (ASSERT): Likewise.
46506         * tests/test-iconv.c (ASSERT): Likewise.
46507         * tests/test-isfinite.c (ASSERT): Likewise.
46508         * tests/test-isnand.c (ASSERT): Likewise.
46509         * tests/test-isnanf.c (ASSERT): Likewise.
46510         * tests/test-isnanl.h (ASSERT): Likewise.
46511         * tests/test-ldexpl.c (ASSERT): Likewise.
46512         * tests/test-linked_list.c (ASSERT): Likewise.
46513         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46514         * tests/test-localename.c (ASSERT): Likewise.
46515         * tests/test-lseek.c (ASSERT): Likewise.
46516         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46517         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46518         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46519         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46520         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46521         * tests/test-mbschr.c (ASSERT): Likewise.
46522         * tests/test-mbscspn.c (ASSERT): Likewise.
46523         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46524         * tests/test-mbspbrk.c (ASSERT): Likewise.
46525         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46526         * tests/test-mbsrchr.c (ASSERT): Likewise.
46527         * tests/test-mbsspn.c (ASSERT): Likewise.
46528         * tests/test-mbsstr1.c (ASSERT): Likewise.
46529         * tests/test-mbsstr2.c (ASSERT): Likewise.
46530         * tests/test-mbsstr3.c (ASSERT): Likewise.
46531         * tests/test-memchr2.c (ASSERT): Likewise.
46532         * tests/test-memmem.c (ASSERT): Likewise.
46533         * tests/test-open.c (ASSERT): Likewise.
46534         * tests/test-printf-frexp.c (ASSERT): Likewise.
46535         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46536         * tests/test-printf-posix.c (ASSERT): Likewise.
46537         * tests/test-quotearg.c (ASSERT): Likewise.
46538         * tests/test-rbtree_list.c (ASSERT): Likewise.
46539         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46540         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46541         * tests/test-round1.c (ASSERT): Likewise.
46542         * tests/test-roundf1.c (ASSERT): Likewise.
46543         * tests/test-roundl.c (ASSERT): Likewise.
46544         * tests/test-signbit.c (ASSERT): Likewise.
46545         * tests/test-sleep.c (ASSERT): Likewise.
46546         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46547         * tests/test-snprintf.c (ASSERT): Likewise.
46548         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46549         * tests/test-stat-time.c (ASSERT): Likewise.
46550         * tests/test-strcasestr.c (ASSERT): Likewise.
46551         * tests/test-strerror.c (ASSERT): Likewise.
46552         * tests/test-striconv.c (ASSERT): Likewise.
46553         * tests/test-striconveh.c (ASSERT): Likewise.
46554         * tests/test-striconveha.c (ASSERT): Likewise.
46555         * tests/test-strsignal.c (ASSERT): Likewise.
46556         * tests/test-strstr.c (ASSERT): Likewise.
46557         * tests/test-strtod.c (ASSERT): Likewise.
46558         * tests/test-trunc1.c (ASSERT): Likewise.
46559         * tests/test-trunc2.c (ASSERT): Likewise.
46560         * tests/test-truncf1.c (ASSERT): Likewise.
46561         * tests/test-truncf2.c (ASSERT): Likewise.
46562         * tests/test-truncl.c (ASSERT): Likewise.
46563         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46564         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46565         * tests/test-vasnprintf.c (ASSERT): Likewise.
46566         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46567         * tests/test-vasprintf.c (ASSERT): Likewise.
46568         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46569         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46570         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46571         * tests/test-vsnprintf.c (ASSERT): Likewise.
46572         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46573         * tests/test-wcwidth.c (ASSERT): Likewise.
46574         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46575         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46576         * tests/test-xvasprintf.c (ASSERT): Likewise.
46577         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46578         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46579         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46580         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46581         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46582         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46583         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46584         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46585         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46586         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46587         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46588         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46589         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46590         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46591         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46592         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46593         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46594         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46595         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46596         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46597         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46598         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46599         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46600         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46601         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46602         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46603         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46604         * tests/unictype/test-combining.c (ASSERT): Likewise.
46605         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46606         * tests/unictype/test-digit.c (ASSERT): Likewise.
46607         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46608         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46609         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46610         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46611         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46612         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46613         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46614         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46615         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46616         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46617         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46618         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46619         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46620         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46621         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46622         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46623         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46624         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46625         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46626         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46627         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46628         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46629         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46630         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46631         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46632         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46633         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46634         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46635         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46636         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46637         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46638         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46639         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46640         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46641         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46642         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46643         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46644         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46645         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46646         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46647         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46648         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46649         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46650         Reported by Eric Blake.
46651
46652 2008-04-11  Bruno Haible  <bruno@clisp.org>
46653
46654         * lib/wchar.in.h: Tweak comment.
46655
46656 2008-04-11  Bruno Haible  <bruno@clisp.org>
46657
46658         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46659         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46660         gl_COMMON.
46661         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46662
46663 2008-04-11  Bruno Haible  <bruno@clisp.org>
46664
46665         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46666
46667 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46668
46669         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46670         of attempting to use non-existing /dev/*random.  Based on patch
46671         from Adam Strzelecki <ono@java.pl> in
46672         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46673
46674 2008-04-08  Bruno Haible  <bruno@clisp.org>
46675
46676         Add tentative support for emx+gcc.
46677         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46678         * lib/fpurge.c (fpurge): Likewise.
46679         * lib/freadable.c (freadable): Likewise.
46680         * lib/freadahead.c (freadahead): Likewise.
46681         * lib/freading.c (freading): Likewise.
46682         * lib/freadptr.c (freadptr): Likewise.
46683         * lib/freadseek.c (freadptrinc): Likewise.
46684         * lib/fseeko.c (rpl_fseeko): Likewise.
46685         * lib/fseterr.c (fseterr): Likewise.
46686         * lib/fwritable.c (fwritable): Likewise.
46687         * lib/fwriting.c (fwriting): Likewise.
46688         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46689
46690 2008-04-09  Eric Blake  <ebb9@byu.net>
46691
46692         Avoid some autoconf warnings.
46693         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46694         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46695         * m4/afs.m4 (gl_AFS): Likewise.
46696         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46697         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46698         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46699         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46700         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46701         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46702         (AC_CHECK_DECLS_ONCE): Likewise.
46703         Rename file...
46704         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46705         gnulib-tool requires autoconf 2.59 or better.
46706         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46707
46708 2008-04-08  Eric Blake  <ebb9@byu.net>
46709
46710         Use 'git describe --match' if present (added in git 1.5.5).
46711         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46712         if possible.
46713
46714 2008-04-08  Bruno Haible  <bruno@clisp.org>
46715
46716         Add tentative support for OpenServer.
46717         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46718         _ptr, _cnt.
46719         * lib/fpurge.c (fpurge): Likewise.
46720         * lib/freadable.c (freadable): Likewise.
46721         * lib/freadahead.c (freadahead): Likewise.
46722         * lib/freading.c (freading): Likewise.
46723         * lib/freadptr.c (freadptr): Likewise.
46724         * lib/freadseek.c (freadptrinc): Likewise.
46725         * lib/fseeko.c (rpl_fseeko): Likewise.
46726         * lib/fseterr.c (fseterr): Likewise.
46727         * lib/fwritable.c (fwritable): Likewise.
46728         * lib/fwriting.c (fwriting): Likewise.
46729         Reported by Roger Cornelius <rac@tenzing.org> and
46730         Brian K. White <brian@aljex.com>.
46731
46732 2008-04-06  Jim Meyering  <meyering@redhat.com>
46733
46734         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46735
46736 2008-04-06  Bruno Haible  <bruno@clisp.org>
46737
46738         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46739         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46740         * tests/test-printf-posix.sh: Likewise.
46741         * tests/test-vfprintf-posix.sh: Likewise.
46742         * tests/test-vprintf-posix.sh: Likewise.
46743         * tests/test-xprintf-posix.sh: Likewise.
46744
46745 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46746
46747         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46748         hide error from 'ls', needed on OS/2.
46749         Report by Elbert Pol <elbert.pol@gmail.com>.
46750
46751 2008-04-04  Eric Blake  <ebb9@byu.net>
46752
46753         Make test-fseeko.c failures meaningful.
46754         * tests/test-fseeko.c: Print line number on failure.
46755         * tests/test-fseek.c: Likewise.
46756         Reported by Nelson H. F. Beebe.
46757
46758         Improve strtod bug detection check.
46759         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46760         required for Solaris 10.
46761         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46762
46763 2008-04-04  Bruno Haible  <bruno@clisp.org>
46764
46765         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46766         by m4/setenv.m4.
46767
46768 2008-04-03  Eric Blake  <ebb9@byu.net>
46769
46770         Ensure sane .version contents.
46771         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46772         version string.
46773         * build-aux/git-version-gen: Improve documentation.
46774
46775         Make GNU make output nicer.
46776         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46777         MAKECMDGOALS to enforce message for all command line targets.  Set
46778         srcdir for use in maint.mk.
46779
46780         Another maintainer tweak.
46781         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46782         a target that regenerates version.
46783
46784 2008-04-03  Jim Meyering  <meyering@redhat.com>
46785
46786         vc-list-files: don't cause coreutils "make po-check" failure
46787         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46788
46789 2008-04-03  Eric Blake  <ebb9@byu.net>
46790
46791         Allow VPATH usage of vc-list-files.
46792         * build-aux/vc-list-files (scriptversion): Add timestamp.
46793         (options): Add --help, --version, -C.
46794         (CVS): Support installed cvsu.
46795
46796 2008-04-02  Bruno Haible  <bruno@clisp.org>
46797
46798         Avoid some "statement with no effect" warnings from gcc.
46799         * tests/test-wctype.c (main): Explicitly ignore unused values.
46800         Reported by Jim Meyering.
46801
46802 2008-04-02  Jim Meyering  <meyering@redhat.com>
46803
46804         Avoid some warnings from "gcc -Wshadow".
46805         * tests/test-frexp.c (exp): Define to a different identifier.
46806         * tests/test-frexpl.c (exp): Likewise.
46807
46808 2008-04-03  Jim Meyering  <meyering@redhat.com>
46809
46810         bootstrap: remove dangling *.[ch] symlinks from lib
46811         * build-aux/bootstrap [dangling symlink removal]: Move find's
46812         -depth option to precede all others, to avoid a warning.
46813         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46814
46815 2008-04-02  Bruno Haible  <bruno@clisp.org>
46816
46817         Avoid some warnings from "gcc -Wshadow".
46818         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46819         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46820         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46821         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46822         Reported by Jim Meyering.
46823
46824 2008-04-01  Bruno Haible  <bruno@clisp.org>
46825
46826         Fix test to work on IRIX 6.5 with cc.
46827         * tests/test-math.c (numeric_equal): New function.
46828         (main): Use it.
46829
46830 2008-04-01  Bruno Haible  <bruno@clisp.org>
46831
46832         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46833
46834 2008-04-01  Bruno Haible  <bruno@clisp.org>
46835
46836         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46837         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46838         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46839         (Depends-on): Remove math.
46840
46841         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46842         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46843         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46844         (Depends-on): Remove math.
46845
46846         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46847         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46848         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46849         (Depends-on): Remove math.
46850         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46851         (Depends-on): Remove math.
46852
46853         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46854         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46855         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46856         (Depends-on): Remove math.
46857         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46858         (Depends-on): Remove math.
46859
46860         * tests/test-round1.c: Include nan.h.
46861         (main): Use NaNd instead of NAN.
46862         * modules/round-tests (Files): Add tests/nan.h.
46863
46864         * tests/test-trunc1.c: Include nan.h.
46865         (main): Use NaNd instead of NAN.
46866         * modules/trunc-tests (Files): Add tests/nan.h.
46867
46868         * tests/test-roundf1.c: Include nan.h.
46869         (main): Use NaNf instead of NAN.
46870         * modules/roundf-tests (Files): Add tests/nan.h.
46871
46872         * tests/test-truncf1.c: Include nan.h.
46873         (main): Use NaNf instead of NAN.
46874         * modules/truncf-tests (Files): Add tests/nan.h.
46875
46876         * tests/test-ceilf1.c: Include nan.h.
46877         (main): Use NaNf instead of NAN.
46878         * modules/ceilf-tests (Files): Add tests/nan.h.
46879
46880         * tests/test-floorf1.c: Include nan.h.
46881         (main): Use NaNf instead of NAN.
46882         * modules/floorf-tests (Files): Add tests/nan.h.
46883
46884         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46885         (main): Use NaNf instead of NAN.
46886         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46887
46888         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46889         (main): Use NaNd instead of NAN.
46890         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46891
46892         * tests/test-frexp.c: Include nan.h.
46893         (main): Use NaNd instead of NAN.
46894         * modules/frexp-tests (Files): Add tests/nan.h.
46895
46896         * lib/isnan.c: Don't include <math.h>.
46897         (FUNC): Don't use NAN macro.
46898         * modules/isnand-nolibm (Depends-on): Remove math.
46899         * modules/isnanf-nolibm (Depends-on): Remove math.
46900         * modules/isnanl (Depends-on): Remove math.
46901         * modules/isnanl-nolibm (Depends-on): Remove math.
46902
46903         * tests/nan.h: New file.
46904
46905 2008-04-01  Eric Blake  <ebb9@byu.net>
46906
46907         Fix typos.
46908         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46909         values to be the right type.
46910
46911         For now, cater to gnulib strtod inaccuracies.
46912         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46913         fractional results.  While not as nice from a QoI perspective, it
46914         is a quicker patch than correctly implementing decimal to binary
46915         rounding.
46916
46917 2008-03-31  Eric Blake  <ebb9@byu.net>
46918
46919         Guarantee a definition of NAN.
46920         * lib/math.in.h (NAN): Define if missing.
46921         * tests/test-math.c (main): Test it.
46922         * doc/posix-headers/math.texi (math.h): Document this.
46923         * lib/isnan.c (rpl_isnand): Use it.
46924         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46925         * tests/test-floorf1.c (NaN): Likewise.
46926         * tests/test-frexp.c (NaN): Likewise.
46927         * tests/test-isnand.c (NaN): Likewise.
46928         * tests/test-isnanf.c (NaN): Likewise.
46929         * tests/test-round1.c (NaN): Likewise.
46930         * tests/test-roundf1.c (NaN): Likewise.
46931         * tests/test-snprintf-posix.h (NaN): Likewise.
46932         * tests/test-sprintf-posix.h (NaN): Likewise.
46933         * tests/test-trunc1.c (NaN): Likewise.
46934         * tests/test-truncf1.c (NaN): Likewise.
46935         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46936         * tests/test-vasprintf-posix.c (NaN): Likewise.
46937         * modules/isnand-nolibm (Depends-on): Add math.
46938         * modules/isnanf-nolibm (Depends-on): Likewise.
46939         * modules/isnanl (Depends-on): Likewise.
46940         * modules/isnanl-nolibm (Depends-on): Likewise.
46941         * modules/snprintf-posix-tests (Depends-on): Likewise.
46942         * modules/sprintf-posix-tests (Depends-on): Likewise.
46943         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46944         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46945         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46946         * modules/vasprintf-posix-tests (Depends-on): Likewise.
46947
46948 2008-03-31  Bruno Haible  <bruno@clisp.org>
46949
46950         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
46951         * doc/posix-functions/strtod.texi: Likewise.
46952
46953 2008-03-31  Bruno Haible  <bruno@clisp.org>
46954
46955         * tests/test-strtod.c (main): Don't use C99 syntax.
46956
46957 2008-03-31  Bruno Haible  <bruno@clisp.org>
46958
46959         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
46960         Reported by Eric Blake.
46961
46962 2008-03-31  Jim Meyering  <meyering@redhat.com>
46963
46964         Don't compare actual signbit return values.
46965         * tests/test-strtod.c (main): Rather, compare only their
46966         zero/non-zero nature.
46967
46968 2008-03-31  Eric Blake  <ebb9@byu.net>
46969
46970         More strtod documentation.
46971         * doc/posix-functions/strtod.texi (strtod): Interpret more test
46972         failures as distinct bugs.
46973
46974 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
46975
46976         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
46977         Problem reported by Erik Benada in
46978         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
46979
46980 2008-03-30  Bruno Haible  <bruno@clisp.org>
46981
46982         * tests/test-strtod.c: Add comments about which assertion fails on which
46983         platform.
46984         * doc/posix-functions/strtod.texi: Add info about many more platforms.
46985
46986 2008-03-30  Eric Blake  <ebb9@byu.net>
46987
46988         Test signbit behavior on zeros.
46989         * tests/test-signbit.c (test_signbitf): Add tests for zero.
46990         (test_signbitd, test_signbitl): Likewise.
46991
46992         More strtod touchups.
46993         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
46994         sign of negative underflow, for now.  Use .5, not .1.
46995         * doc/posix-functions/strtod.texi (strtod): Mention these
46996         limitations.
46997         Reported by Jim Meyering.
46998
46999 2008-03-30  Bruno Haible  <bruno@clisp.org>
47000
47001         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47002         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47003
47004 2008-03-30  Bruno Haible  <bruno@clisp.org>
47005
47006         Avoid failure when attempting to return empty iconv results on some
47007         platforms.
47008         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47009         allocation, don't report ENOMEM when the resulting string is empty.
47010
47011 2008-03-30  Bruno Haible  <bruno@clisp.org>
47012
47013         Fix buffer overrun.
47014         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47015         Don't consider the width for tmp_length. Check count against tmp_length
47016         before doing the padding. Ensure enough allocation during padding.
47017
47018 2008-03-30  Eric Blake  <ebb9@byu.net>
47019
47020         strtod touchups.
47021         * lib/strtod.c (strtod): Avoid compiler warnings.
47022         Reported by Jim Meyering.
47023
47024 2008-03-30  Bruno Haible  <bruno@clisp.org>
47025
47026         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47027         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47028         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47029         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47030         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47031         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47032         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47033         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47034
47035         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47036         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47037         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47038         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47039         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47040         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47041         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47042         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47043
47044         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47045         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47046         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47047         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47048         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47049         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47050         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47051         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47052
47053         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47054         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47055
47056         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47057         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47058
47059         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47060         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47061
47062         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47063         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47064         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47065
47066         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47067         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47068         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47069
47070         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47071         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47072         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47073
47074         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47075         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47076         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47077
47078         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47079         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47080         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47081         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47082         (Depends-on): Add EOVERFLOW.
47083         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47084         (Depends-on): Add EOVERFLOW.
47085         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47086         (Depends-on): Add EOVERFLOW.
47087         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47088         (Depends-on): Add EOVERFLOW.
47089         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47090         (Depends-on): Add EOVERFLOW.
47091         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47092         (Depends-on): Add EOVERFLOW.
47093         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47094         (Depends-on): Add EOVERFLOW.
47095         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47096         (Depends-on): Add EOVERFLOW.
47097
47098         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47099         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47100         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47101
47102         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47103         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47104         * modules/snprintf (Depends-on): Add EOVERFLOW.
47105
47106         * lib/poll.c (EOVERFLOW): Remove fallback.
47107         * modules/poll (Depends-on): Add EOVERFLOW.
47108
47109         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47110         * modules/getugroups (Depends-on): Add EOVERFLOW.
47111
47112         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47113         * modules/getdelim (Depends-on): Add EOVERFLOW.
47114
47115         * lib/ftell.c (EOVERFLOW): Remove fallback.
47116         * modules/ftell (Depends-on): Add EOVERFLOW.
47117
47118         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47119         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47120         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47121
47122         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47123
47124         * modules/EOVERFLOW-tests: New file.
47125         * tests/test-EOVERFLOW.c: New file.
47126
47127         * modules/EOVERFLOW: New file.
47128         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47129
47130 2008-03-30  Bruno Haible  <bruno@clisp.org>
47131
47132         Fix bug introduced on 2007-06-10.
47133         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47134         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47135
47136 2008-03-30  Bruno Haible  <bruno@clisp.org>
47137
47138         Improve freadseek's efficiency after ungetc.
47139         * lib/freadseek.c: Include freadahead.h.
47140         (freadptrinc): New function, extracted from freadseek.
47141         (freadseek): Use it in a loop. Use freadahead to determine the number
47142         of loop iterations.
47143         * modules/freadseek (Depends-on): Add freadahead.
47144         (configure.ac): Require AC_C_INLINE.
47145
47146 2008-03-30  Bruno Haible  <bruno@clisp.org>
47147
47148         * lib/freadseek.c (freadseek): Don't ignore the return value of
47149         freadptr.
47150
47151 2008-03-29  Eric Blake  <ebb9@byu.net>
47152
47153         Add hex float support.
47154         * modules/strtod (Depends-on): Add c-ctype.
47155         (Link): Mention POW_LIB.
47156         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47157         whitespace between 'e' and exponent.
47158         * tests/test-strtod.c (main): Enable hex float tests.
47159         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47160         now provides.
47161
47162         Document various strtod bugs, with some fixes.
47163         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47164         "-0x", "inf", "nan", and hex constants.
47165         * doc/posix-functions/atof.texi (atof): Likewise.
47166         * modules/stdlib (Makefile.am): Support strtod.
47167         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47168         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47169         detect additional strtod bugs.
47170         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47171         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47172         bool where appropriate.  Parse 'inf' and 'nan'.
47173         * tests/test-strtod.c: New file.
47174         * modules/strtod (Depends-on): Add stdbool, stdlib.
47175         (configure.ac): Turn on module indicator.
47176         * modules/strtod-tests: New module.
47177
47178 2008-03-29  Eric Blake  <ebb9@byu.net>
47179
47180         Fix ftell on mingw.
47181         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47182         * modules/ftell-tests (Depends-on): Add binary-io.
47183         * modules/ftello-tests (Depends-on): Likewise.
47184         * tests/test-ftell.c (main): Enhance test to cover behavior after
47185         ungetc.  Enforce binary mode.
47186         * tests/test-ftello.c (main): Likewise.
47187
47188         Pass test-freadseek on cygwin.
47189         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47190         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47191         ungetc buffer.
47192
47193         * tests/test-fflush2.c (main): Fix typo.
47194
47195 2008-03-29  Bruno Haible  <bruno@clisp.org>
47196
47197         * tests/test-fflush2.c (main): Temporarily disable the contents of
47198         this test.
47199         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47200         Reported by Eric Blake.
47201
47202 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47203
47204         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47205         (GC_SHA224_DIGEST_SIZE): Add.
47206
47207         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47208         (gc_hash_digest_length): Likewise.
47209         (gc_hash_buffer): Likewise.
47210
47211 2008-03-25  Bruno Haible  <bruno@clisp.org>
47212
47213         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47214         detail which gettext release to use.
47215         Reported by Simon Josefsson.
47216
47217 2008-03-26  Jim Meyering  <meyering@redhat.com>
47218
47219         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47220         * modules/gnumakefile (clean-GNUmakefile): Also, use
47221         test ... && ... || : syntax rather than if-then ... fi.
47222
47223         gnumakefile: Don't double-quote-expand $(VPATH) value.
47224         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47225
47226 2008-03-24  Eric Blake  <ebb9@byu.net>
47227
47228         Alter GNUmakefile to install into top directory.
47229         * modules/maintainer-makefile: Split, and add dependency...
47230         * modules/gnumakefile: to this new module.
47231         * build-aux/GNUmakefile: Move...
47232         * top/GNUmakefile: ...here.
47233         * build-aux/maint.mk: Move...
47234         * top/maint.mk: ...here.
47235         * MODULES.html.sh (Support for maintaining...): Document new
47236         module.
47237
47238 2008-03-23  Bruno Haible  <bruno@clisp.org>
47239
47240         * gnulib-tool: New options --vc-files, --no-vc-files.
47241         (func_usage): Document them.
47242         (vc_files): New variable.
47243         (func_import): Consider vc_files.
47244         (func_create_testdir): Set vc_files to empty.
47245         Suggested by Jim Meyering and Karl Berry.
47246
47247 2008-03-23  Bruno Haible  <bruno@clisp.org>
47248
47249         Fix regex compilation error on HP-UX 11.
47250         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47251         * modules/regex (Files): Add m4/mbstate_t.m4.
47252         Reported by Ton Voon <ton.voon@altinity.com>.
47253
47254 2008-03-23  Bruno Haible  <bruno@clisp.org>
47255
47256         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47257
47258 2008-03-23  Eric Blake  <ebb9@byu.net>
47259             Bruno Haible  <bruno@clisp.org>
47260
47261         Install files from top/ in the destination directory.
47262         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47263         augmentation also for the files from top/.
47264         (func_import, func_create_testdir): Rewrite file names:
47265         top/filename -> filename.
47266
47267 2008-03-23  Bruno Haible  <bruno@clisp.org>
47268
47269         Tweak "gnulib --version" output.
47270         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47271
47272 2008-03-23  Bruno Haible  <bruno@clisp.org>
47273
47274         Tweak "gnulib --version" output.
47275         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47276         rather than contents of ChangeLog, when possible.
47277
47278 2008-03-21  Eric Blake  <ebb9@byu.net>
47279
47280         More --version tweaks.
47281         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47282         date of last ChangeLog entry.
47283
47284 2008-03-21  Jim Meyering  <meyering@redhat.com>
47285
47286         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47287
47288 2008-03-20  Eric Blake  <ebb9@byu.net>
47289
47290         VPATH fix.
47291         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47292
47293 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47294
47295         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47296         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47297
47298 2008-03-20  Eric Blake  <ebb9@byu.net>
47299
47300         Sync GNUmakefile with coreutils.
47301         * build-aux/GNUmakefile (have-Makefile): Rename...
47302         (_have-Makefile): ...to this, for namespace consideration.
47303         (GNUmakefile.cfg): Include, if present.
47304         (_autoreconf): Define a default.
47305         (_is-dist-target): New rule for rebuilds to pick up intra-release
47306         version.
47307         (maint-cfg.mk): Rename...
47308         (cfg.mk): ...to this.
47309
47310 2008-03-18  Jim Meyering  <meyering@redhat.com>
47311
47312         New script and module: mktempd
47313         * MODULES.html.sh (maint+release support): Add mktempd.
47314         * build-aux/mktempd: New file.
47315         * modules/mktempd: New file.
47316
47317 2008-03-15  Jim Meyering  <meyering@redhat.com>
47318
47319         Undo last change.
47320         * lib/sha1.c, lib/md5.c: 63 != ~63.
47321         Reported by Andreas Schwab.
47322
47323         sha1.c, md5.c: Hoist a redundant expression.
47324         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47325         "ctx->buflen" only once, before calling *_process_block.
47326         * lib/md5.c (md5_process_bytes): Likewise.
47327
47328 2008-03-14  Eric Blake  <ebb9@byu.net>
47329
47330         Bump copyright year in files generated by gnulib-tool.
47331         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47332         gnulib-tool, rather than hard-coding it.
47333
47334         Fix 'gnulib-tool --version' output to work with git.
47335         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47336         (startup): ...here.
47337         (func_version): Use it to invoke git-version-gen, rather than
47338         relying on CVS keyword expansion.  Modernize wording.
47339         (cvsdatestamp, last_checkin_date, version): Kill unused
47340         variables.
47341
47342 2008-03-12  Jim Meyering  <meyering@redhat.com>
47343
47344         Recognize optional cast of the argument to free.
47345         * build-aux/useless-if-before-free: Update regexps.
47346
47347         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47348
47349 2008-03-11  Bruno Haible  <bruno@clisp.org>
47350
47351         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47352         by a single package.
47353         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47354         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47355         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47356         Reported by Sam Steingold <sds@gnu.org>.
47357
47358 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47359
47360         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47361         repositories.
47362
47363 2008-03-11  Bruno Haible  <bruno@clisp.org>
47364
47365         Avoid conflicts between local macro definitions.
47366         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47367         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47368
47369 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47370             Bruno Haible  <bruno@clisp.org>
47371
47372         Make va_copy work with some version of xlc on AIX 5.1.
47373         * lib/stdarg.in.h: New file.
47374         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47375         On AIX, use a <stdarg.h> file substitute.
47376         * modules/stdarg (Files): Add lib/stdarg.in.h.
47377         (Depends-on): Add include_next.
47378         (Makefile.am): Build a stdarg.h substitute if requested.
47379         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47380
47381 2008-03-10  Bruno Haible  <bruno@clisp.org>
47382
47383         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47384         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47385         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47386
47387 2008-03-10  Bruno Haible  <bruno@clisp.org>
47388
47389         * modules/stdlib (Depends-on): Add include_next, remove
47390         absolute-header.
47391
47392 2008-03-09  Bruno Haible  <bruno@clisp.org>
47393
47394         * lib/freadahead.h (freadahead): Document more precisely.
47395         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47396         the sum of both buffer sizes.
47397         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47398         * NEWS: Document the change.
47399
47400 2008-03-09  Bruno Haible  <bruno@clisp.org>
47401
47402         Extend freadptr to return also the buffer size.
47403         * lib/freadptr.h (freadptr): Add sizep argument.
47404         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47405         (freadptr): Add sizep argument. Determine buffer size like freadahead
47406         does.
47407         * tests/test-freadptr.c: Don't include freadahead.h.
47408         (main): Adapt for new calling convention of freadptr.
47409         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47410         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47411         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47412         tests/test-freadptr2.sh.
47413         (Depends): Remove freadahead.
47414         (TESTS): Add test-freadptr2.sh.
47415         (check_PROGRAMS): Add test-freadptr2.
47416
47417 2008-03-09  Bruno Haible  <bruno@clisp.org>
47418
47419         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47420         Report and solution by Simon Josefsson.
47421
47422 2008-03-06  Bruno Haible  <bruno@clisp.org>
47423
47424         Make fflush after ungetc work on BSD platforms.
47425         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47426         * tests/test-fflush2.c: New file.
47427         * tests/test-fflush2.sh: New file.
47428         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47429         tests/test-fflush2.c.
47430         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47431         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47432
47433 2008-03-06  Eric Blake  <ebb9@byu.net>
47434
47435         Likewise for ftello.
47436         * modules/ftello (Dependencies): Add extensions.
47437         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47438
47439 2008-03-06  Bruno Haible  <bruno@clisp.org>
47440
47441         * modules/fseeko (Dependencies): Add extensions.
47442         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47443         Needed on glibc systems.
47444
47445 2008-03-06  Bruno Haible  <bruno@clisp.org>
47446
47447         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47448         email address.
47449         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47450
47451 2008-03-06  Bruno Haible  <bruno@clisp.org>
47452
47453         * users.txt: Add libgnupdf.
47454
47455 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47456
47457         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47458         (Header File Substitutes, Function Substitutes,
47459         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47460         (Build robot for gnulib): Fix typo.
47461
47462 2008-03-06  Bruno Haible  <bruno@clisp.org>
47463
47464         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47465         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47466
47467 2008-03-06  Bruno Haible  <bruno@clisp.org>
47468
47469         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47470         * doc/gnulib.texi: Include it.
47471
47472 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47473
47474         * modules/func (License): Change license to unlimited; there was
47475         no LGPL parts in the module anyway.
47476
47477 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47478
47479         * modules/__func__: Renamed to modules/func.
47480         * modules/__func__-tests: Renamed to modules/func-tests.
47481         * tests/test-__func__.c: Renamed to tests/test-func.c.
47482         * m4/__func__.m4: Renamed to m4/func.m4.
47483         * doc/gnulib.texi (__func__): Section renamed to func.
47484         Suggested by Eric Blake <ebb9@byu.net>.
47485
47486 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47487
47488         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47489         about __func__.  Make example self-contained.  Suggested by Eric
47490         Blake <ebb9@byu.net>.
47491
47492         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47493         Suggested by Eric Blake <ebb9@byu.net>.
47494
47495 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47496
47497         * modules/__func__: New file.
47498         * modules/__func__-tests: New file.
47499         * tests/test-__func__.c: New file.
47500         * m4/__func__.m4: New file.
47501         * doc/gnulib.texi (__func__): Document __func__ module.
47502
47503 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47504
47505         * modules/byteswap (License): Re-license as LGPLv2+.
47506
47507 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47508
47509         * doc/Makefile: Add pdf target.
47510
47511 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47512
47513         * modules/inline (License): Use 'unlimited', since there are only
47514         *.m4 files in this module.
47515
47516 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47517             Bruno Haible  <bruno@clisp.org>
47518
47519         Add support for HP C 7.1 on OpenVMS 8.3.
47520         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47521
47522 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47523
47524         Update VMS specifics.
47525         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47526
47527 2008-03-02  Jim Meyering  <meyering@redhat.com>
47528
47529         Remove the last dependency on the "free" module.
47530         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47531         Reported by Bob Proulx.
47532
47533         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47534
47535         Remove useless "if" tests before free.  Deprecate "free" module.
47536         * doc/posix-functions/free.texi: Mention that this
47537         module is no longer useful.
47538         * modules/free (Notice): Say this module is obsolete.
47539         * modules/readutmp (Depends-on): Remove free.
47540         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47541         * lib/putenv.c (putenv): Likewise.
47542         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47543         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47544         * tests/test-c-strcasestr.c (main): Likewise.
47545         * tests/test-c-strstr.c (main): Likewise.
47546         * tests/test-mbscasestr1.c (main): Likewise.
47547         * tests/test-mbscasestr2.c (main): Likewise.
47548         * tests/test-mbsstr1.c (main): Likewise.
47549         * tests/test-mbsstr2.c (main): Likewise.
47550         * tests/test-memmem.c (main): Likewise.
47551         * tests/test-strcasestr.c (main): Likewise.
47552         * tests/test-striconv.c (main): Likewise.
47553         * tests/test-striconveh.c (main): Likewise.
47554         * tests/test-striconveha.c (main): Likewise.
47555         * tests/test-strstr.c (main): Likewise.
47556
47557         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47558
47559         bootstrap: sync from coreutils again
47560         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47561
47562 2008-03-01  Jim Meyering  <meyering@redhat.com>
47563
47564         bootstrap: sync from coreutils
47565         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47566         also when the target doesn't exist.
47567
47568 2008-03-01  Eric Blake  <ebb9@byu.net>
47569
47570         Fix bugs in last patch.
47571         * lib/memchr2.c (memchr2): Fix typo.
47572         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47573         extension.
47574         Reported by Bruce Korb.
47575
47576         New module 'memchr2'.
47577         * modules/memchr2: New file.
47578         * modules/memchr2-tests: Likewise.
47579         * lib/memchr2.h: Likewise.
47580         * lib/memchr2.c: Likewise, based on memchr.c.
47581         * tests/test-memchr2.c: New test.
47582         * MODULES.html.sh (String handling): Add memchr2.
47583
47584 2008-02-29  Bruno Haible  <bruno@clisp.org>
47585
47586         * modules/freadseek-tests: New file.
47587         * tests/test-freadseek.sh: New file.
47588         * tests/test-freadseek.c: New file.
47589
47590         New module 'freadseek'.
47591         * modules/freadseek: New file.
47592         * lib/freadseek.h: New file.
47593         * lib/freadseek.c: New file.
47594         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47595
47596 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47597
47598         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47599         wydawca.
47600
47601         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47602         program_invocation_name and program_invocation_short_name are
47603         present.
47604
47605 2008-02-28  Bruno Haible  <bruno@clisp.org>
47606
47607         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47608         * tests/test-freadptr.sh: Also test non-seekable stdin.
47609
47610 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47611
47612         * build-aux/bootstrap (source_base, m4_base)
47613         (doc_base, tests_base): New variables.
47614         (gnulib_tool_options): Do not hardcode base directories, use
47615         the above variables instead.
47616
47617 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47618
47619         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47620
47621 2008-02-28  Bruno Haible  <bruno@clisp.org>
47622
47623         * modules/freadptr-tests: New file.
47624         * tests/test-freadptr.sh: New file.
47625         * tests/test-freadptr.c: New file.
47626
47627         New module 'freadptr'.
47628         * modules/freadptr: New file.
47629         * lib/freadptr.h: New file.
47630         * lib/freadptr.c: New file.
47631         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47632
47633 2008-02-26  Karl Berry  <karl@freefriends.org>
47634
47635         Sync from Libtool:
47636         * libltdl/argz.c (argz_add, argz_count): New functions.
47637         * libltdl/argz.in.h: Declare them.
47638         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47639
47640 2008-02-22  Bruno Haible  <bruno@clisp.org>
47641
47642         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47643         is a pointer type.  Needed for HP-UX 10.
47644         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47645         * doc/posix-functions/gmtime_r.texi: Likewise.
47646         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47647
47648 2008-02-24  Bruno Haible  <bruno@clisp.org>
47649
47650         * modules/environ-tests: New file.
47651         * tests/test-environ.c: New file.
47652
47653         New module 'environ'.
47654         * modules/environ: New file.
47655         * lib/unistd.in.h (environ): New declaration.
47656         * m4/environ.m4: New file.
47657         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47658         after use.
47659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47660         HAVE_DECL_ENVIRON.
47661         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47662         HAVE_DECL_ENVIRON.
47663         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47664         wrong claim that 'environ' is missing on some systems.
47665         * modules/execute (Depends-on): Add environ.
47666         * lib/execute.c (environ): Remove fallback declaration.
47667         * modules/pipe (Depends-on): Add environ.
47668         * lib/pipe.c (environ): Remove fallback declaration.
47669         * modules/setenv (Depends-on): Add environ.
47670         * lib/setenv.c (environ): Remove fallback declaration.
47671         * modules/unsetenv (Depends-on): Add environ.
47672         * lib/unsetenv.c (environ): Remove fallback declaration.
47673         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47674         m4/environ.m4.
47675         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47676         (gl_PREREQ_UNSETENV): Likewise.
47677
47678 2008-02-24  Bruno Haible  <bruno@clisp.org>
47679
47680         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47681
47682 2008-02-20  Bob Proulx  <bob@proulx.com>
47683
47684         Enable use of older two part flavor 'git describe'.
47685         * build-aux/git-version-gen: If using the older two part flavor of
47686         git version then recreate the third part now present in the
47687         newer three part flavor of git describe.
47688
47689 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47690
47691         * lib/fts.c (fts_build): Typo correction to comment.
47692
47693 2008-02-17  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47696         generating no-op conflicts.
47697
47698 2008-02-17  Bruno Haible  <bruno@clisp.org>
47699
47700         Speed up by 10%.
47701         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47702         result_entries, rather than an index-based loop.
47703
47704 2008-02-17  Bruno Haible  <bruno@clisp.org>
47705
47706         Speed up by 25%.
47707         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47708         'hashcode_cached'.
47709         (entry_create): New function.
47710         (entry_hashcode): Use the cached hashcode if possible.
47711         (read_changelog_file, try_split_merged_entry): Use entry_create.
47712
47713 2008-02-17  Bruno Haible  <bruno@clisp.org>
47714
47715         Speed up from O(n^2) to O(n) for long ChangeLog files.
47716         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47717         (read_changelog_file): Change implementation of entries_reversed list
47718         to rbtreehash.
47719         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47720
47721 2008-02-17  Bruno Haible  <bruno@clisp.org>
47722
47723         New option --split-merged-entry.
47724         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47725         (find_paragraph_end, try_split_merged_entry): New functions.
47726         (long_options): Add option --split-merged-entry.
47727         (usage): Document option --split-merged-entry.
47728         (main): Implement option --split-merged-entry.
47729         Reported by Eric Blake.
47730
47731 2008-02-17  Bruno Haible  <bruno@clisp.org>
47732
47733         * lib/git-merge-changelog.c: Include c-strstr.h.
47734         (main): Support the "git pull --rebase" situation.
47735         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47736         Reported by Eric Blake.
47737
47738 2008-02-16  Eric Blake  <ebb9@byu.net>
47739
47740         Avoid doubling \ in common case of "c-maybe" quoting style.
47741         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47742         eliding outer quotes.
47743         * lib/quotearg.h: Document this.
47744         * tests/test-quotearg.c (result_strings, inputs, results_g)
47745         (flag_results, locale_results): Test it by adding a new string to
47746         each test group.
47747         (compare_strings): Test new string.
47748
47749 2008-02-13  Eric Blake  <ebb9@byu.net>
47750
47751         Avoid trigraph quoting in default output.
47752         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47753         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47754         unless explicitly requested.
47755         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47756
47757 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47758
47759         Don't rely on signed integer overflowing to negative value.
47760         * lib/getugroups.c (getugroups): Include <limits.h>.
47761         Instead, compare against INT_MAX, and increment only if the test passes.
47762
47763 2008-02-13  Jim Meyering  <meyering@redhat.com>
47764         and Eric Blake  <ebb9@byu.net>
47765
47766         Avoid shadowing warning and compile errors on Linux.
47767         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47768         forwarding macros on Linux.
47769         (dcgettext): Define a stub, for Linux.
47770         (results_g, main): Avoid warnings.
47771
47772 2008-02-12  Eric Blake  <ebb9@byu.net>
47773
47774         Silence warning in last patch.
47775         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47776
47777         Quotearg part 4: add tests, fix c-maybe colon quoting.
47778         * lib/quotearg.h: Improve documentation.
47779         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47780         escapes when adding outer quotes.  When quoting trigraphs, use
47781         valid C notation.  When quoting NUL, omit extra characters if next
47782         character is not digit.  Alter prototype.
47783         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47784         callers.
47785         * modules/quotearg-tests: New module.
47786         * tests/test-quotearg.c: New test.
47787
47788 2008-02-07  Eric Blake  <ebb9@byu.net>
47789
47790         Quotearg part 3: add flag to control outer quote elision.
47791         * lib/quotearg.h (c_maybe_quoting_style): New style.
47792         (enum quoting_flags): Better documentation of flags.
47793         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47794         c-maybe style.
47795         (quotearg_buffer_restyled): Handle new flag to elide outer
47796         quotes.
47797
47798         Quotearg part 2: add flag that can control NUL elision.
47799         * lib/quotearg.h (set_quoting_flags): New prototype.
47800         * lib/quotearg.c (struct quoting_options): Add flag field.
47801         (set_quoting_flags): New function.
47802         (quotearg_buffer_restyled): Add flags parameter.
47803         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47804         (quotearg_n_options): Set the flag, since length cannot be
47805         returned.
47806         (quoting_options_from_style): Default flags correctly.
47807
47808         Quotearg part 1: more wrappers, restore quotearg_char state.
47809         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47810         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47811         (quotearg_colon_mem): New wrappers.
47812         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47813         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47814         functions.
47815         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47816         (quotearg_colon_mem): New functions.
47817
47818 2008-02-11  Bruno Haible  <bruno@clisp.org>
47819
47820         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47821         library in the current directory: it does not work with parallel make.
47822         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47823
47824 2008-02-11  Bruno Haible  <bruno@clisp.org>
47825
47826         * .gitattributes: New file.
47827
47828 2008-02-11  Jim Meyering  <meyering@redhat.com>
47829
47830         useless-if-before-free: Fix reversed exit values.
47831         * build-aux/useless-if-before-free: Use correct values
47832         for EXIT_MATCH and EXIT_NO_MATCH.
47833
47834         * build-aux/useless-if-before-free: Close stdout carefully.
47835
47836 2008-02-10  Bruno Haible  <bruno@clisp.org>
47837
47838         New module 'git-merge-changelog'.
47839         * modules/git-merge-changelog: New file.
47840         * lib/git-merge-changelog.c: New file.
47841
47842 2008-02-10  Jim Meyering  <meyering@redhat.com>
47843
47844         useless-if-before-free: New option: --list (-l).
47845
47846         useless-if-before-free: Don't exit immediately upon open failure.
47847         * build-aux/useless-if-before-free: Exit 2 for errors.
47848         Upon failure to open a file, don't exit immediately.
47849         Rather, just warn and continue with any remaining files.
47850
47851 2008-02-10  Bruno Haible  <bruno@clisp.org>
47852
47853         New abstract list operation 'node_set_value'.
47854         * lib/gl_list.h (gl_list_node_set_value): New function.
47855         (struct gl_list_implementation): New field node_set_value.
47856         * lib/gl_list.c (gl_list_node_set_value): New function.
47857         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47858         (gl_array_list_implementation): Update.
47859         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47860         (gl_carray_list_implementation): Update.
47861         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47862         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47863         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47864         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47865         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47866         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47867         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47868         Update.
47869         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47870         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47871         (gl_sublist_list_implementation): Update.
47872
47873 2008-02-10  Bruno Haible  <bruno@clisp.org>
47874
47875         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47876         Needed when ELEMENT is #defined to 'some_type *'.
47877
47878 2008-02-10  Jim Meyering  <meyering@redhat.com>
47879
47880         New script and module: useless-if-before-free
47881         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47882         * build-aux/useless-if-before-free: New file.
47883         * modules/useless-if-before-free: New file.
47884
47885         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47886
47887         xstrtol_error: Fix typo.
47888         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47889         s/exit_failure/exit_status/.
47890
47891 2008-02-09  Jim Meyering  <meyering@redhat.com>
47892
47893         New script and module: gitlog-to-changelog
47894         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47895         * modules/gitlog-to-changelog: New file.
47896         * build-aux/gitlog-to-changelog: New file.
47897
47898 2008-02-08  Jim Meyering  <meyering@redhat.com>
47899
47900         Avoid two "parameter unused" warnings.
47901         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47902         Mark "st" as used.
47903
47904         Use "git COMMAND", not "git-COMMAND".
47905         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47906         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47907         * build-aux/git-version-gen: Use "git status", not "git-status".
47908
47909 2008-02-07  Bruno Haible  <bruno@clisp.org>
47910
47911         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47912         Avoids a crash on Windows Vista.
47913         Reported by Adam Strzelecki <ono@java.pl> via
47914         Simon Josefsson <simon@josefsson.org>.
47915
47916 2008-02-06  Bruno Haible  <bruno@clisp.org>
47917
47918         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47919         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47920         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47922         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47924         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47925         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47926         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47927         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47928         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47929         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47930         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47931         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47932         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47933         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47934         left-adjust flag.
47935         * tests/test-snprintf-posix.h (test_function): Likewise.
47936         * tests/test-sprintf-posix.h (test_function): Likewise.
47937         * tests/test-vasprintf-posix.c (test_function): Likewise.
47938         * doc/posix-functions/fprintf.texi: Update.
47939         * doc/posix-functions/printf.texi: Update.
47940         * doc/posix-functions/snprintf.texi: Update.
47941         * doc/posix-functions/sprintf.texi: Update.
47942         * doc/posix-functions/vfprintf.texi: Update.
47943         * doc/posix-functions/vprintf.texi: Update.
47944         * doc/posix-functions/vsnprintf.texi: Update.
47945         * doc/posix-functions/vsprintf.texi: Update.
47946         Reported by Peter Fales <psfales@alcatel-lucent.com>.
47947
47948 2008-02-06  Bruno Haible  <bruno@clisp.org>
47949
47950         Fix bug introduced on 2008-01-26.
47951         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
47952
47953 2008-02-06  Bruno Haible  <bruno@clisp.org>
47954
47955         Fix bug introduced on 2007-06-10.
47956         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
47957         !NEED_PRINTF_FLAG_ZERO.
47958
47959 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
47960
47961         getloadavg: use libperfstat on AIX5
47962         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
47963
47964 2008-02-03  Bruno Haible  <bruno@clisp.org>
47965
47966         * lib/diffseq.h: Add comments about required #includes.
47967         Reported by Michael Biggs <gnulib@doubleplum.net>.
47968
47969 2008-02-01  Bruno Haible  <bruno@clisp.org>
47970
47971         * users.txt: Add gnuit.
47972
47973 2008-01-31  Bruno Haible  <bruno@clisp.org>
47974
47975         * lib/md4.c (set_uint32): Mark as inline.
47976         * lib/md5.c (set_uint32): Likewise.
47977         * lib/sha1.c (set_uint32): Likewise.
47978         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
47979         * m4/md5.m4 (gl_MD5): Likewise.
47980         * m4/sha1.m4 (gl_SHA1): Likewise.
47981
47982 2008-01-31  Jim Meyering  <meyering@redhat.com>
47983
47984         Use "sizeof VAR", rather than a literal "4".
47985         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
47986         * lib/md4.c (md4_read_ctx): Likewise.
47987         * lib/sha1.c (sha1_read_ctx): Likewise.
47988
47989 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47990
47991         * tests/test-sha1.c: New file, based on test-md5.c.
47992
47993         * modules/crypto/sha1-tests: New file.
47994
47995 2008-01-31  Simon Josefsson  <simon@josefsson.org>
47996
47997         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
47998
47999 2008-01-31  Jim Meyering  <meyering@redhat.com>
48000
48001         Prefer "sizeof v" over the equivalent "4".
48002         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48003         * lib/md5.c (set_uint32): Likewise.
48004         * lib/sha1.c (set_uint32): Likewise.
48005
48006 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48007
48008         * lib/sha1.c (set_uint32): Mark function as static.
48009
48010 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48011
48012         md2: clarify comments to say that alignment is not required.
48013         * lib/md2.h: Remove warning about alignment in comment.
48014         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48015         never been required.
48016
48017 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48018
48019         md4: adapt alignment constraint fix from sha1.
48020         * lib/md4.c (set_uint32): New function, from sha1.c
48021         (md4_read_ctx): Use it.
48022         (md4_finish_ctx): Doc fix.
48023         * lib/md4.h: Doc fix.
48024
48025 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48026
48027         md5: adapt alignment constraint fix from sha1.
48028         * lib/md5.c (set_uint32): New function, from sha1.c
48029         (md5_read_ctx): Use it.
48030         (md5_finish_ctx): Doc fix.
48031         * lib/md5.h: Doc fix.
48032
48033 2008-01-30  Peter Palfrader  <weasel@debian.org>
48034
48035         sha1: remove the result buffer alignment constraint
48036         * lib/sha1.c (set_uint32): New function.
48037         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48038         constraint.
48039         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48040         * lib/sha1.h: Likewise.
48041
48042 2008-01-30  Andreas Schwab  <schwab@suse.de>
48043             Bruno Haible  <bruno@clisp.org>
48044
48045         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48046         correct definition of LDBL_MIN_EXP.
48047
48048 2008-01-30  Karl Berry  <karl@gnu.org>
48049
48050         * config/srclist-update: try to preserve x bit on updates.
48051         * config/srclistvars.sh: update for karl.
48052
48053 2008-01-29  Jim Meyering  <meyering@redhat.com>
48054
48055         vasnprintf.c: Avoid warning about unused label
48056         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48057         "overflow" label definition and associated code with the
48058         same cpp condition that guards the sole use of that label.
48059
48060 2008-01-26  Bruno Haible  <bruno@clisp.org>
48061
48062         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48063         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48064         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48065         * lib/isnanl-nolibm.h (isnanl): Likewise.
48066         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48067
48068 2008-01-26  Bruno Haible  <bruno@clisp.org>
48069
48070         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48071         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48072
48073 2008-01-26  Bruno Haible  <bruno@clisp.org>
48074
48075         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48076         GCC >= 4.0 built-in.
48077         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48078
48079 2008-01-26  Bruno Haible  <bruno@clisp.org>
48080
48081         Rename isnan, applicable to 'double' only, to isnand.
48082         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48083         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48084         (configure.ac): Update.
48085         (Include): Replace "isnan.h" with "isnand.h".
48086         * m4/isnand.m4: Renamed from m4/isnan.m4.
48087         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48088         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48089         instead of isnan.c.
48090         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48091         instead of HAVE_ISNAN_IN_LIBC.
48092         (isnand): Renamed from isnan.
48093         * lib/isnand.c: New file.
48094         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48095         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48096         (Makefile.am): Update.
48097         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48098         Include isnand.h instead of isnan.h.
48099         (main): Test isnand instead of isnan.
48100         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48101         isnan-nolibm.
48102         * modules/frexp (Depends-on): Likewise.
48103         * modules/frexp-tests (Depends-on): Likewise.
48104         * modules/frexp-nolibm (Depends-on): Likewise.
48105         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48106         * modules/isfinite (Depends-on): Likewise.
48107         * modules/round-tests (Depends-on): Likewise.
48108         * modules/signbit (Depends-on): Likewise.
48109         * modules/signbit-tests (Depends-on): Likewise.
48110         * modules/snprintf-posix (Depends-on): Likewise.
48111         * modules/sprintf-posix (Depends-on): Likewise.
48112         * modules/trunc-tests (Depends-on): Likewise.
48113         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48114         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48115         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48116         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48117         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48118         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48119         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48120         * modules/vasnprintf-posix (Depends-on): Likewise.
48121         * modules/vasprintf-posix (Depends-on): Likewise.
48122         * modules/vfprintf-posix (Depends-on): Likewise.
48123         * modules/vsnprintf-posix (Depends-on): Likewise.
48124         * modules/vsprintf-posix (Depends-on): Likewise.
48125         * lib/frexp.c: Include isnand.h instead of isnan.h.
48126         (ISNAN): Set to isnand instead of isnan.
48127         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48128         (gl_isfinited): Use isnand instead of isnan.
48129         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48130         (gl_signbitd): Use isnand instead of isnan.
48131         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48132         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48133         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48134         (main): Use isnand instead of isnan.
48135         * tests/test-round1.c: Include isnand.h.
48136         (main): Use isnand instead of isnan.
48137         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48138         (ISNAN): Set to isnand instead of isnan.
48139         * tests/test-trunc1.c: Include isnand.h.
48140         (main): Use isnand instead of isnan.
48141         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48142         (equal): Use isnand instead of isnan.
48143         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48144         isnand-nolibm.
48145         * NEWS: Mention the change.
48146
48147 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48148             Bruno Haible  <bruno@clisp.org>
48149
48150         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48151         the GCC builtins for signbits are present and set
48152         REPLACE_SIGNBIT_USING_GCC if so.
48153         * lib/math.in.h (signbit): Define using GCC builtins if
48154         REPLACE_SIGNBIT_USING_GCC is set.
48155         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48156         REPLACE_SIGNBIT_USING_GCC.
48157         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48158
48159 2008-01-25  Jim Meyering  <meyering@redhat.com>
48160
48161         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48162         * lib/poll.c: Include <config.h>, not "config.h".
48163         * tests/test-getaddrinfo.c: Likewise.
48164
48165 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48166
48167         * modules/sockets-tests: New file.
48168
48169 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48170
48171         * modules/sockets: New module, can be used to call WSA_Startup and
48172         WSA_Cleanup when needed.
48173
48174         * lib/sockets.h, lib/sockets.c: New files.
48175
48176         * m4/sockets.m4: New file.
48177
48178         * tests/test-sockets.c: New file.
48179
48180 2008-01-19  Bruno Haible  <bruno@clisp.org>
48181
48182         * doc/posix-headers: Renamed from doc/headers.
48183         * doc/posix-functions: Renamed from doc/functions.
48184         * doc/gnulib.texi: Update.
48185
48186 2008-01-19  Bruno Haible  <bruno@clisp.org>
48187
48188         * doc/glibc-functions/strcasestr.texi: Include contents of
48189         doc/functions/strcasestr.texi, fixing the list of platforms.
48190         * doc/functions/strcasestr.texi: Remove file.
48191
48192 2008-01-19  Bruno Haible  <bruno@clisp.org>
48193
48194         * doc/glibc-functions/memmem.texi: Include contents of
48195         doc/functions/memmem.texi.
48196         * doc/functions/memmem.texi: Remove file.
48197
48198 2008-01-18  Bruno Haible  <bruno@clisp.org>
48199
48200         * doc/glibc-functions/*.texi: New files.
48201         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48202         to use the new files.
48203
48204 2008-01-17  Bruno Haible  <bruno@clisp.org>
48205
48206         * tests/test-gethostname.c (main): Fix printf statement.
48207
48208 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48209
48210         * modules/gethostname-tests: New file.
48211
48212         * tests/test-gethostname.c: New file.
48213
48214 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48215
48216         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48217         used by the UNAME case.  Reported by Bruno Haible
48218         <bruno@clisp.org>.
48219
48220 2008-01-17  Eric Blake  <ebb9@byu.net>
48221
48222         Convert c-strcasestr to be more efficient.
48223         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48224         (Depends-on): Add c-strcase, remove malloca, strnlen.
48225         * tests/test-c-strcasestr.c (main): Enhance test.
48226         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48227
48228 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48229
48230         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48231         Use it in creating po/Makevars.
48232
48233 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48234
48235         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48236         Applications that requires it should initialize libgcrypt
48237         manually.
48238
48239 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48240
48241         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48242
48243 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48244
48245         Fix problem with getdate on mingw32 reported by Simon Josefsson
48246         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48247         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48248         tzname", when deciding whether to declare tzname.
48249         * lib/strftime.c (tzname): Likewise.
48250
48251 2008-01-15  Bruno Haible  <bruno@clisp.org>
48252
48253         Work around a MacOS X 10.5 bug in frexpl().
48254         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48255         * doc/functions/frexpl.texi: Document the bug.
48256         Reported by Elias Pipping <pipping@gentoo.org>.
48257
48258 2008-01-14  Eric Blake  <ebb9@byu.net>
48259
48260         Touch up previous patch.
48261         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48262         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48263
48264         Convert strcasestr module to use Two-Way algorithm.
48265         * modules/strcasestr-simple: New module, based on the old
48266         strcasestr, but with Two-Way rather than KMP.
48267         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48268         * lib/string.in.h (rpl_strcasestr): Declare.
48269         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48270         performance.
48271         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48272         * modules/string (Makefile.am): Support strcasestr.
48273         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48274         * modules/strcasestr-tests (Depends-on): Check for alarm.
48275         * tests/test-strcasestr.c: Augment test.
48276         * lib/str-two-way.h: Clean up stray macro.
48277         * NEWS: Document new module.
48278         * MODULES.html.sh (string handling): Likewise.
48279         * doc/functions/strcasestr.texi: New file.
48280         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48281         here, since it is not a POSIX function.
48282
48283 2008-01-14  Colin Watson  <cjwatson@debian.org>
48284             Bruno Haible  <bruno@clisp.org>
48285
48286         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48287         works fine; if not, set REPLACE_STRSIGNAL.
48288         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48289         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48290         REPLACE_STRSIGNAL.
48291         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48292         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48293         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48294
48295 2008-01-14  Bruno Haible  <bruno@clisp.org>
48296
48297         * modules/strsignal (Include): Change to <string.h>.
48298
48299 2008-01-14  Colin Watson  <cjwatson@debian.org>
48300
48301         * modules/argp (Notice): Add a notice recommending to change
48302         XGETTEXT_OPTIONS.
48303         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48304
48305 2008-01-13  Colin Watson  <cjwatson@debian.org>
48306
48307         * modules/strsignal-tests: New file.
48308         * tests/test-strsignal.c: New file.
48309
48310         * lib/strsignal.c: New file, from glibc with modifications.
48311         * lib/siglist.h: New file, from glibc with modifications.
48312         * lib/string.in.h (strsignal): New declaration.
48313         * m4/strsignal.m4: New file.
48314         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48315         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48316         * modules/strsignal: New file.
48317         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48318         HAVE_DECL_STRSIGNAL.
48319
48320 2008-01-13  Bruno Haible  <bruno@clisp.org>
48321
48322         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48323         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48324         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48325         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48326
48327 2008-01-13  Bruno Haible  <bruno@clisp.org>
48328
48329         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48330         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48331         * lib/argp.h (__attribute__): Likewise.
48332         * lib/c-stack.c (__attribute__): Likewise.
48333         * lib/error.h (__attribute__): Likewise.
48334         * lib/fts.c (__attribute__): Likewise.
48335         * lib/openat.h (__attribute__): Likewise.
48336         * lib/stdio.in.h (__attribute__): Likewise.
48337         * lib/string.in.h (__attribute__): Likewise.
48338         * lib/utimens.c (__attribute__): Likewise.
48339         * lib/vasnprintf.h (__attribute__): Likewise.
48340         * lib/xalloc.h (__attribute__): Likewise.
48341         * lib/xprintf.h (__attribute__): Likewise.
48342         * lib/xstrtol.h (__attribute__): Likewise.
48343         * lib/xvasprintf.h (__attribute__): Likewise.
48344
48345 2008-01-12  Bruno Haible  <bruno@clisp.org>
48346
48347         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48348         * doc/glibc-headers/a.out.texi: New file.
48349         * doc/glibc-headers/aliases.texi: New file.
48350         * doc/glibc-headers/alloca.texi: New file.
48351         * doc/glibc-headers/ar.texi: New file.
48352         * doc/glibc-headers/argp.texi: New file.
48353         * doc/glibc-headers/argz.texi: New file.
48354         * doc/glibc-headers/byteswap.texi: New file.
48355         * doc/glibc-headers/crypt.texi: New file.
48356         * doc/glibc-headers/endian.texi: New file.
48357         * doc/glibc-headers/envz.texi: New file.
48358         * doc/glibc-headers/err.texi: New file.
48359         * doc/glibc-headers/error.texi: New file.
48360         * doc/glibc-headers/execinfo.texi: New file.
48361         * doc/glibc-headers/fpu_control.texi: New file.
48362         * doc/glibc-headers/fstab.texi: New file.
48363         * doc/glibc-headers/fts.texi: New file.
48364         * doc/glibc-headers/getopt.texi: New file.
48365         * doc/glibc-headers/ieee754.texi: New file.
48366         * doc/glibc-headers/ifaddrs.texi: New file.
48367         * doc/glibc-headers/libintl.texi: New file.
48368         * doc/glibc-headers/mcheck.texi: New file.
48369         * doc/glibc-headers/mntent.texi: New file.
48370         * doc/glibc-headers/obstack.texi: New file.
48371         * doc/glibc-headers/paths.texi: New file.
48372         * doc/glibc-headers/printf.texi: New file.
48373         * doc/glibc-headers/pty.texi: New file.
48374         * doc/glibc-headers/resolv.texi: New file.
48375         * doc/glibc-headers/shadow.texi: New file.
48376         * doc/glibc-headers/sysexits.texi: New file.
48377         * doc/glibc-headers/ttyent.texi: New file.
48378
48379 2008-01-12  Jim Meyering  <meyering@redhat.com>
48380
48381         announce-gen: emit Gnulib's git-based version string.
48382         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48383         New option --gnulib-version=V, where V is expected to be
48384         the output of running git describe in the gnulib directory.
48385         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48386         not useful, and plan to stop publishing an xdelta file with each
48387         coreutils release.
48388
48389         * build-aux/announce-gen: Also check for lzma-compressed files.
48390
48391 2008-01-11  Bruno Haible  <bruno@clisp.org>
48392
48393         * tests/test-memmem.c (main): Increase maximum allowed time.
48394         * tests/test-strstr.c (main): Likewise.
48395
48396 2008-01-11  Bruno Haible  <bruno@clisp.org>
48397
48398         * doc/functions/memmem.texi: Add more precisions about platforms.
48399         * doc/functions/strstr.texi: Likewise.
48400
48401 2008-01-10  Eric Blake  <ebb9@byu.net>
48402
48403         * m4/strstr.m4: Delete cruft from copy-n-paste.
48404         Reported by Bruno Haible.
48405
48406 2008-01-10  Bruno Haible  <bruno@clisp.org>
48407
48408         Make c-strstr rely on strstr.
48409         * lib/c-strstr.c: Don't include str-kmp.h.
48410         (c_strstr): Define in terms of strstr.
48411         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48412         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48413
48414 2008-01-10  Bruno Haible  <bruno@clisp.org>
48415
48416         * doc/gnulib.texi (String Functions in C Locale): New section.
48417         * doc/c-ctype.texi: New file.
48418         * doc/c-strcase.texi: New file.
48419         * doc/c-strcaseeq.texi: New file.
48420         * doc/c-strcasestr.texi: New file.
48421         * doc/c-strstr.texi: New file.
48422         * doc/c-strtod.texi: New file.
48423         * doc/c-strtold.texi: New file.
48424
48425 2008-01-10  Eric Blake  <ebb9@byu.net>
48426
48427         * lib/relocatable.h: Fix a comment.
48428
48429 2008-01-10  Eric Blake  <ebb9@byu.net>
48430
48431         Share two-way algorithm.
48432         * lib/str-two-way.h: New file, merged from...
48433         * lib/memmem.c: ...here...
48434         * lib/strstr.c: ...and here.
48435         * modules/memmem (Files): Use it.
48436         * modules/strstr (Files): Likewise.
48437
48438         Avoid quadratic strstr implementations.
48439         * lib/strstr.c: New file.
48440         * m4/strstr.m4: Likewise.
48441         * modules/strstr: Likewise.
48442         * modules/strstr-tests: Likewise.
48443         * tests/test-strstr.c: Likewise.
48444         * lib/string.in.h (rpl_strstr): Declare.
48445         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48446         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48447         * modules/string (Makefile.am): Likewise.
48448         * MODULES.html.sh (string handling): Mention new module.
48449         * doc/functions/strstr.texi (strstr): Document the bug.
48450
48451 2008-01-10  Bruno Haible  <bruno@clisp.org>
48452
48453         * lib/relocatable.h (relocate): State whether result is freshly
48454         allocated or not.
48455         * lib/relocatable.c (relocate): Return a freshly allocated string
48456         instead of a pointer to a privately held string.
48457         Reported by Sylvain Beucler <beuc@gnu.org>.
48458
48459 2008-01-10  Colin Watson  <cjwatson@debian.org>
48460
48461         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48462         s/S_ISNLK/S_ISLNK/.
48463
48464 2008-01-09  Bruno Haible  <bruno@clisp.org>
48465
48466         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48467         and other files.
48468         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48469         if it's only a guess.
48470         * modules/memmem: Simplify by depending on memmem-simple.
48471
48472 2008-01-09  Bruno Haible  <bruno@clisp.org>
48473
48474         Work around OpenBSD 4.0 tdelete() bug.
48475         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48476         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48477         macros and don't redefine the enum values.
48478         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48479         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48480         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48481
48482 2008-01-09  Bruno Haible  <bruno@clisp.org>
48483
48484         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48485         (main): Don't perform the tests if setlocale did not install a UTF-8
48486         locale. Needed on OpenBSD 4.0.
48487         * modules/wcwidth-tests (Depends-on): Add localcharset.
48488
48489 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48490
48491         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48492         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48493         * NEWS: announce this.
48494         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48495
48496 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48497         and Eric Blake  <ebb9@byu.net>
48498
48499         Add memmem-simple module.
48500         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48501         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48502         * modules/memmem-simple: New file.
48503         * modules/memmem (Description): Tweak.
48504         * MODULES.html.sh (string handling): Mention new module.
48505         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48506         addressed by memmem-simple.
48507         * NEWS: Document the difference.
48508
48509 2008-01-09  Eric Blake  <ebb9@byu.net>
48510
48511         Give gcc some memmem optimization hints.
48512         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48513         (strcasestr): Declare as pure.
48514         * modules/memmem (Maintainer): Claim my implementation.
48515
48516 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48517
48518         Support AIX 6.1 and higher.
48519         * build-aux/config.libpath: Likewise.
48520         * build-aux/config.rpath: Likewise.
48521
48522 2008-01-08  Jim Meyering  <meyering@redhat.com>
48523             Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48526         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48527         Reported by Peter Fales in
48528         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48529
48530 2008-01-08  Bruno Haible  <bruno@clisp.org>
48531
48532         * modules/unictype/category-of (Depends-on): Add
48533         unictype/category-none.
48534         * modules/unictype/category-and-tests (Depends-on): Add
48535         unictype/category-{L,N,Lu,Nd}.
48536         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48537         * modules/unictype/category-or-tests (Depends-on): Add
48538         unictype/category-{L,N}.
48539         * modules/unictype/category-name-tests (Depends-on): Add
48540         unictype/category-{Z,Nl}.
48541         Reported by Simon Josefsson.
48542
48543 2008-01-08  Bruno Haible  <bruno@clisp.org>
48544
48545         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48546         convention better.
48547         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48548         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48549         Reported by Peter Miller <millerp@canb.auug.org.au>.
48550
48551 2008-01-08  Eric Blake  <ebb9@byu.net>
48552
48553         Rewrite memmem to guarantee linear complexity without malloc.
48554         * lib/memmem.c (memmem): Use Two-Way rather than
48555         Knuth-Morris-Pratt, to allow O(1) space usage.
48556         (critical_factorization, two_way_short_needle)
48557         (two_way_long_needle): New functions.
48558         (knuth_morris_pratt): Delete.
48559         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48560         Add stdint.
48561         * tests/test-memmem.c (main): Add tests for periodic needle and
48562         sublinear performance.
48563         * doc/functions/memmem.texi (memmem): Document other deficiencies
48564         in cygwin and older glibc.
48565
48566 2008-01-08  Bruno Haible  <bruno@clisp.org>
48567
48568         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48569         augmentation.
48570
48571 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48572
48573         Add a configure time option: --disable-acl.
48574         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48575         AC_ARG_ENABLE(acl).
48576
48577 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48578
48579         * tests/test-localename.c: Don't include obsolete "setenv.h".
48580
48581         * modules/localename-tests (Depends-on): Need unsetenv.
48582
48583 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48584
48585         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48586
48587 2008-01-06  Colin Watson  <cjwatson@debian.org>
48588
48589         * users.txt: Add man-db.
48590
48591 2008-01-07  Bruno Haible  <bruno@clisp.org>
48592
48593         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48594         previous section name.
48595
48596 2008-01-07  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/progname.c (set_program_name): Don't strip off a leading
48599         "lt-" prefix outside a .libs directory.
48600         Suggested by Paul Eggert.
48601
48602 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48603             Bruno Haible  <bruno@clisp.org>
48604
48605         Improve memory cleanup in 'relocatable' module.
48606         * lib/relocatable.h (compute_curr_prefix): Change return type to
48607         'char *'.
48608         * lib/relocatable.c (compute_curr_prefix): Change return type to
48609         'char *'. Free curr_installdir after use.
48610         (relocate): Free curr_prefix_better after use.
48611         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48612
48613 2008-01-01  Bruno Haible  <bruno@clisp.org>
48614
48615         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48616         failure on older glibc systems.
48617         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48618
48619 2008-01-05  Eric Blake  <ebb9@byu.net>
48620
48621         Avoid quadratic system memmem.
48622         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48623         Reported by Ralf Wildenhues.
48624
48625         Fix memmem test for mingw.
48626         * modules/memmem-tests (configure.ac): Check for alarm.
48627         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48628         it.
48629         * doc/functions/memmem.texi: New file.
48630         * doc/gnulib.texi (Function Substitutes): Add memmem.
48631         Reported by Bruno Haible.
48632
48633 2008-01-04  Bruno Haible  <bruno@clisp.org>
48634
48635         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48636         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48637         gl_HEADER_STRING_H_DEFAULTS.
48638
48639 2008-01-04  Eric Blake  <ebb9@byu.net>
48640
48641         Shorten duration of memmem test.
48642         * tests/test-memmem.c (main): Use alarm to declare failure if test
48643         is taking too long.
48644         Reported by Ralf Wildenhues.
48645
48646 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48647
48648         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48649         string, needed by strerror.
48650
48651 2008-01-03  Colin Watson  <cjwatson@debian.org>
48652             Bruno Haible  <bruno@clisp.org>
48653
48654         * doc/gnulib-tool.texi (Localization): New section.
48655
48656 2008-01-02  Bruno Haible  <bruno@clisp.org>
48657
48658         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48659         variables to 'unsigned char *' type.
48660         Reported by Paul Eggert.
48661
48662 2008-01-02  Jim Meyering  <jim@meyering.net>
48663
48664         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48665
48666 2007-12-31  Jim Meyering  <jim@meyering.net>
48667
48668         Avoid use of private FTS type name.
48669         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48670
48671 2007-12-30  Karl Berry  <karl@gnu.org>
48672
48673         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48674         work around defect in Texinfo and/or the standalone Info browser.
48675
48676 2007-12-30  Bruno Haible  <bruno@clisp.org>
48677
48678         Unify 5 copies of the KMP code.
48679         * lib/str-kmp.h: New file.
48680         * lib/c-strcasestr.c: Include str-kmp.h.
48681         (knuth_morris_pratt): Remove function.
48682         (c_strcasestr): Update.
48683         * lib/c-strstr.c: Include str-kmp.h.
48684         (knuth_morris_pratt): Remove function.
48685         (c_strcasestr): Update.
48686         * lib/mbscasestr.c: Include str-kmp.h.
48687         (knuth_morris_pratt_unibyte): Remove function.
48688         * lib/mbsstr.c: Include str-kmp.h.
48689         (knuth_morris_pratt_unibyte): Remove function.
48690         * lib/strcasestr.c: Include str-kmp.h.
48691         (knuth_morris_pratt): Remove function.
48692         (strcasestr): Update.
48693         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48694         * modules/c-strstr (Files): Likewise.
48695         * modules/mbscasestr (Files): Likewise.
48696         * modules/mbsstr (Files): Likewise.
48697         * modules/strcasestr (Files): Likewise.
48698         Suggested by Paul Eggert.
48699
48700 2007-12-30  Bruno Haible  <bruno@clisp.org>
48701
48702         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48703         defined.
48704
48705 2007-12-30  Bruno Haible  <bruno@clisp.org>
48706
48707         * lib/xmalloca.h: Include xalloc.h.
48708         (xnmalloca): New macro.
48709
48710 2007-12-30  Bruno Haible  <bruno@clisp.org>
48711
48712         * lib/malloca.h (nmalloca): New macro.
48713         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48714         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48715         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48716         knuth_morris_pratt_multibyte): Likewise.
48717         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48718         knuth_morris_pratt_multibyte): Likewise.
48719         * lib/memmem.c (knuth_morris_pratt): Likewise.
48720         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48721
48722 2007-12-25  Bruno Haible  <bruno@clisp.org>
48723
48724         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48725         * lib/glob.c: Don't include openat.h.
48726         (link_exists2_p): Add back the code that deals with the
48727         !GLOB_ALTDIRFUNC case.
48728         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48729         let it do the filename concatenation.
48730         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48731         * modules/glob (Depends-on): Remove openat.
48732
48733 2007-12-31  Bruno Haible  <bruno@clisp.org>
48734
48735         * modules/dirfd (License): Change to LGPLv2+.
48736         Approved by Jim Meyering.
48737
48738 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48739
48740         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48741         when multiplying M by sizeof (size_t).
48742
48743 2007-12-10  Martin Lambers  <marlam@marlam.de>
48744
48745         Override getpagesize on mingw.
48746         * lib/getpagesize.c: New file.
48747         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48748         * modules/getpagesize (Files): Add lib/getpagesize.c.
48749         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48751         REPLACE_GETPAGESIZE.
48752         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48753
48754 2007-12-25  Bruno Haible  <bruno@clisp.org>
48755
48756         * modules/localcharset (Notice): New field.
48757         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48758         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48759
48760 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48761             Bruno Haible  <bruno@clisp.org>
48762
48763         Avoid using the syntax symbol() in formatted documentation.
48764         * MODULES.html.sh (func_module): When replacing symbol() with a
48765         hyperlink, remove the parentheses. Show an error if some remain.
48766         Recognize and render the '...' syntax.
48767         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48768         Rework. Add paragraph about GCC's inlining.
48769         * doc/alloca.texi: Likewise.
48770         * doc/error.texi: Remove parentheses from symbol reference.
48771         * doc/gnulib-intro.texi: Likewise.
48772         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48773         * modules/fnmatch (Description): Reword to say "the ... function".
48774         * modules/full-read (Description): Likewise.
48775         * modules/full-write (Description): Likewise.
48776         * modules/safe-read (Description): Likewise.
48777         * modules/safe-write (Description): Likewise.
48778         * modules/strchrnul (Description): Likewise.
48779         * modules/trim (Description): Likewise.
48780         * modules/error (Description): Remove parentheses from symbol
48781         references.
48782         * modules/verror (Description): Likewise.
48783         Reported by Karl Berry.
48784
48785 2007-12-25  Bruno Haible  <bruno@clisp.org>
48786
48787         Fixup after 2007-10-16 commit.
48788         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48789
48790 2007-12-24  Bruno Haible  <bruno@clisp.org>
48791
48792         Make --enable-relocatable work with DESTDIR.
48793         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48794         to compute installdir from destprog.
48795         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48796         also set the RELOC_DESTDIR variable.
48797         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48798
48799 2007-12-24  Bruno Haible  <bruno@clisp.org>
48800
48801         Fix link error due to xalloc_die().
48802         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48803         of xreadlink.
48804         * lib/relocwrapper.c: Update comments.
48805         * build-aux/install-reloc: Remove xreadlink.c from file list.
48806         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48807         xreadlink.c.
48808         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48809
48810 2007-12-24  Bruno Haible  <bruno@clisp.org>
48811
48812         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48813         * lib/setenv.h: Remove file.
48814         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48815         lib/setenv.h.
48816         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48817         (Depends-on): Add stdlib.
48818         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48819         gl_FUNC_UNSETENV.
48820         (Include): Replace setenv.h with <stdlib.h>.
48821         * modules/unsetenv: New file.
48822         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48823         * lib/unsetenv.c: Include <stdlib.h> first.
48824         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48825         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48826         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48827         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48828         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48829         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48830         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48831         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48832         * doc/functions/unsetenv.texi: Update.
48833         * modules/xsetenv (Depends-on): Add unsetenv.
48834         * modules/getdate (Depends-on): Likewise.
48835         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48836         * lib/xsetenv.c: Don't include setenv.h.
48837         * lib/getdate.y: Likewise.
48838         * lib/relocwrapper.c: Likewise.
48839         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48840         (Depends-on): Add stdlib.
48841         * NEWS: Mention the changes.
48842         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48843
48844 2007-12-23  Bruno Haible  <bruno@clisp.org>
48845
48846         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48847         indentation.
48848
48849 2007-12-23  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/c-strcasestr.c: Add more comments.
48852         * lib/c-strstr.c: Likewise.
48853         * lib/mbscasestr.c: Likewise.
48854         * lib/mbsstr.c: Likewise.
48855         * lib/strcasestr.c: Likewise.
48856         * lib/memmem.c: Likewise.
48857
48858 2007-12-23  Bruno Haible  <bruno@clisp.org>
48859
48860         * tests/test-memmem.c: Include <string.h> first.
48861
48862 2007-12-22  Bruno Haible  <bruno@clisp.org>
48863
48864         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48865         the contents of $testsbase.
48866         Reported by Ralf Wildenhues.
48867
48868 2007-12-22  Bruno Haible  <bruno@clisp.org>
48869
48870         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48871         two variables local_ldadd_before, local_ldadd_last.
48872
48873 2007-12-20  Eric Blake  <ebb9@byu.net>
48874
48875         Work around circular library issue when cross-compiling.
48876         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48877         that progname.o does not need to pull in rpl_memcmp.
48878
48879 2007-12-19  Eric Blake  <ebb9@byu.net>
48880
48881         Fix memmem to avoid O(n^2) worst-case complexity.
48882         * lib/memmem.c (knuth_morris_pratt): New function.
48883         (memmem): Use it if first few naive iterations fail.
48884         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48885         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48886         * modules/memchr (License): Likewise.
48887         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48888         malloca.
48889         * tests/test-memmem.c: Rewrite, borrowing ideas from
48890         test-mbsstr1.c; the old version wouldn't even compile!
48891         * modules/memmem-tests: New file.
48892         * lib/string.in.h (rpl_memmem): Add declaration.
48893         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48894         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48895         REPLACE_MEMMEM.
48896
48897 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48898
48899         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48900         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48901         before any system include files, and undef after them all.  This
48902         should fix a problem on VMS reported by John E. Malmberg in
48903         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48904
48905 2007-12-17  Eric Blake  <ebb9@byu.net>
48906
48907         Revert addition of verify, for BSD/OS.
48908         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48909         can't handle large files, for the sake of obsolete platforms.
48910         * modules/fseeko (Depends-on): Remove verify.
48911         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48912         * doc/functions/ftello.texi (ftello): Likewise.
48913         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48914         Reported by Larry Jones.
48915
48916 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48917
48918         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48919         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48920
48921 2007-12-17  Jim Meyering  <meyering@redhat.com>
48922
48923         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48924         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48925         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48926         * modules/getcwd (Depends-on): Add openat.
48927         Reported by Petr Salinger.
48928
48929 2007-12-17  Bruno Haible  <bruno@clisp.org>
48930
48931         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48932         avoid a segmentation fault of the configure test on x86_64 systems.
48933
48934 2007-12-15  Jim Meyering  <meyering@redhat.com>
48935
48936         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48937
48938 2007-12-13  Eric Blake  <ebb9@byu.net>
48939
48940         Another fseek test.
48941         * tests/test-fseek.c (main): Also test ungetc handling.
48942         * tests/test-fseeko.c (main): Likewise.
48943         * modules/fseeko (Depends-on): Add verify.
48944         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48945         large.
48946         Reported by Larry Jones.
48947
48948         Fix fseeko on mingw.
48949         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
48950         seek.
48951
48952         Beef up fseek tests.
48953         * tests/test-fseek.c (main): Also test eof handling.
48954         * tests/test-fseeko.c (main): Likewise.
48955         Reported by Larry Jones.
48956
48957 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
48958
48959         Fix fseeko on BSD-based platforms.
48960         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
48961         successful seek.
48962
48963 2007-12-12  Eric Blake  <ebb9@byu.net>
48964
48965         Allow circular dependency of separate libtests.a
48966         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
48967         when use_libtests.
48968
48969 2007-12-11  Eric Blake  <ebb9@byu.net>
48970
48971         Fix bug with -0.0L in previous patch.
48972         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
48973         * tests/test-isnan.c (main): Also test on zeroes.
48974         * tests/test-isnanf.c (main): Likewise.
48975         * tests/test-isnanl.h (main): Likewise.
48976
48977         Detect pseudo-denormals on x86 even when cross-compiling.
48978         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
48979         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
48980         invalid bit patterns that happen to satisfy ==.
48981
48982         Avoid link failures with separate libtests.a.
48983         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
48984         last, to satisfy circular dependencies.
48985
48986 2007-12-11  Eric Blake  <ebb9@byu.net>
48987         and Bruno Haible  <bruno@clisp.org>
48988
48989         Fix OpenBSD 4.0 <float.h> handling of long double.
48990         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
48991         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
48992         * doc/headers/float.texi (float.h): Document OpenBSD bug.
48993
48994 2007-12-11  Jim Meyering  <meyering@redhat.com>
48995
48996         * users.txt: Add libvirt.
48997
48998         Support versions of autoconf prior to 2.59c.
48999         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49000         if it is not already defined.
49001
49002 2007-12-09  Bruno Haible  <bruno@clisp.org>
49003
49004         Let 'gnulib-tool --import' collect sources needed for the tests in
49005         tests/ rather than in lib/.
49006         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49007         argument. If true, add rules to generate libtests.a, and put libtests.a
49008         into $(LDADD). Consider source files in subdirectories and set
49009         uses_subdirs.
49010         (func_emit_initmacro_start, func_emit_initmacro_end,
49011         func_emit_initmacro_done): Pass all arguments explicitly.
49012         (func_import): Determine two module lists main_modules,
49013         testsrelated_modules. Determine use_libtests. Determine two variables
49014         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49015         instead of just sed_transform_lib_file. Determine two variables
49016         main_files and testsrelated_files. Compute 'files' as the union of
49017         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49018         func_add_or_update. In the generated gnulib-comp.m4, collect the
49019         object files for tests/ in different variables than those for lib/.
49020         Substitute LIBTESTS_LIBDEPS.
49021         (func_create_testdir): Combine the uses_subdirs results from
49022         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49023
49024 2007-12-09  Bruno Haible  <bruno@clisp.org>
49025
49026         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49027         the build-aux directory.
49028
49029 2007-12-09  Bruno Haible  <bruno@clisp.org>
49030
49031         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49032         introduced on 2006-09-09.
49033
49034 2007-12-07  Jim Meyering  <meyering@redhat.com>
49035
49036         Let these macros work also with autoconf-2.59.
49037         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49038         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49039         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49040
49041 2007-12-06  Jim Meyering  <meyering@redhat.com>
49042
49043         Avoid a configure-time syntax error in gl_FUNC_ACL.
49044         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49045         function in each branch, before testing the cache variable.
49046
49047 2007-12-04  Eric Blake  <ebb9@byu.net>
49048
49049         Make scripts executable.
49050         * build-aux/config.guess: Add execute permissions.
49051         * build-aux/config.sub: Likewise.
49052         * build-aux/gendocs.sh: Likewise.
49053
49054         Fix frexp on mingw.
49055         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49056         cross-compiling.
49057         * doc/functions/frexp.texi (frexp): Document the bug.
49058
49059         Make cygwin fseeko check more reliable.
49060         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49061         version numbers, rather than unrelated feature check.
49062         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49063         * doc/functions/ftello.texi (ftello): Likewise.
49064         Reported by Bruno Haible.
49065
49066         * m4/strerror.m4: Bump version number.
49067
49068 2007-12-03  Bruno Haible  <bruno@clisp.org>
49069
49070         * doc/functions/mprotect.texi: Mention the mingw problem.
49071
49072 2007-12-03  Eric Blake  <ebb9@byu.net>
49073
49074         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49075         REPLACE_STRERROR is initialized before this macro.
49076
49077 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49078
49079         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49080         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49081         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49082         put -lsec in even for programs other than 'ls'.  This fixes a problem
49083         for gettext reported by Bruno Haible in
49084         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49085         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49086         Add support for Solaris 10.  This isn't efficient, but should get the
49087         job done for now.
49088
49089 2007-12-03  James Youngman  <jay@gnu.org>
49090
49091         * doc/regexprops-generic.texi: change "an close-group" to "a
49092         close-group" and "illegal" to "not allowed".
49093
49094 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49095
49096         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49097         pr_byname.h. Needed for the rare case when the maintainer has done
49098         "make maintainer-clean" in the source directory and then attempts a
49099         build outside the source directory.
49100         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49101         scripts_byname.h.
49102
49103 2007-12-02  Martin Lambers <marlam@marlam.de>
49104             Bruno Haible  <bruno@clisp.org>
49105
49106         * lib/getpagesize.h: Remove file.
49107         * lib/unistd.in.h: Include declaration of getpagesize here.
49108         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49109         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49110         HAVE_SYS_PARAM_H.
49111         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49112         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49113         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49114         (Depends-on): Add unistd.
49115         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49116         (Include): Use <unistd.h> instead of getpagesize.h.
49117         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49118         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49119         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49120         gl_GETPAGESIZE invocation, already handled by module dependency.
49121         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49122
49123 2007-12-02  Bruno Haible  <bruno@clisp.org>
49124
49125         * modules/strings-tests: New file.
49126         * tests/test-strings.c: New file.
49127
49128         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49129         * lib/strings.in.h: New file.
49130         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49131         * m4/strings_h.m4: New file.
49132         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49133         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49134         * modules/strings: New file.
49135         * modules/string (Makefile.am): Update.
49136         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49137         Reported by Karl Berry.
49138
49139 2007-12-01  Eric Blake  <ebb9@byu.net>
49140
49141         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49142         accomodate fix in cygwin 1.5.25.
49143
49144 2007-12-01  Jim Meyering  <meyering@redhat.com>
49145
49146         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49147         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49148         that would inhibit utf8-optimization of a regexp containing line-
49149         or buffer-anchors, e.g., `^', `$'.
49150
49151 2007-11-30  Bruno Haible  <bruno@clisp.org>
49152
49153         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49154         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49155         glthread_recursive_lock_init.
49156         * lib/lock.c (glthread_recursive_lock_init)
49157         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49158         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49159
49160 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49161
49162         New function qset_acl, like set_acl but with syscall semantics.
49163         * lib/acl.h (qset_acl): New decl.
49164         * lib/acl.c (qset_acl): New function.
49165         (set_acl): Use new function.  Use more-consistent diagnostics.
49166
49167 2007-11-28  Jim Meyering  <meyering@redhat.com>
49168
49169         * modules/physmem (License): Change from GPL to LGPLv2+.
49170
49171 2007-11-26  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49174         'long double' type has excess precision.
49175         Reported by Jim Meyering in
49176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49177
49178 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49179
49180         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49181         Sync from <http://gnu.org/licenses>.
49182         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49183         with license text from same location.
49184         * doc/maintain.texi, doc/standards.texi:  Sync from
49185         <http://savannah.gnu.org/projects/gnustandards>.
49186
49187 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49188         and Jim Meyering  <meyering@redhat.com>
49189
49190         Adjust getdate' grammar to accept a slightly more regular language.
49191         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49192         Before, the former was rejected.
49193         * lib/getdate.y (digits_to_date_time): New function, factored
49194         out of ...
49195         (number): ...here.  Just call digits_to_date_time.
49196         (hybrid): New non-terminal to handle an <unsigned number,
49197         signed relative offset> sequence consistently.
49198
49199 2007-11-18  Jim Meyering  <meyering@redhat.com>
49200
49201         Pull my changes from coreutils:
49202         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49203         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49204         use of $gnulib_tool_option_extras, so that it's separated from the
49205         preceding argument.
49206
49207         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49208         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49209         parent destination directories before copying a file into place.
49210
49211 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49212
49213         bootstrap: work also with 4-argument variant of AC_INIT
49214         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49215
49216 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49217
49218         Port test-getaddrinfo to Solaris.
49219         Problem reported by Bruno Haible in
49220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49221         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49222         explanation of setting 'hints'.
49223         Don't reject an implementation merely because it returns EAI_SERVICE.
49224         (EAI_SERVICE): Define to 0 if not defined.
49225
49226 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49227
49228         The license of gnu-make and posix-shell is now "GPLed build tool".
49229         * modules/gnu-make (License): Likewise.
49230         * modules/posix-shell (License): Likewise.
49231
49232         New module posix-shell, for determining a POSIX shell
49233         or perhaps something that is close enough to a POSIX shell.
49234         * m4/posix-shell.m4: New file.
49235         * modules/posix-shell: New file.
49236
49237         * MODULES.html.sh: Mention new module.
49238
49239         New module gnu-make, for determining whether we're using GNU Make.
49240         * m4/gnu-make.m4: New file.
49241         * modules/gnu-make: New file.
49242         * MODULES.html.sh: Mention new module.
49243
49244 2007-11-14  Jim Meyering  <meyering@redhat.com>
49245
49246         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49247         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49248         use this macro to create a function _definition_.
49249         Remove useless "#undef ARGMATCH_DIE".
49250
49251 2007-11-14  Bruno Haible  <bruno@clisp.org>
49252
49253         * lib/config.charset: Update for OpenBSD 4.1.
49254         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49255
49256 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49257
49258         Document 64-bit #if problems in stdint.texi.
49259         * doc/headers/stdint.texi (stdint.h): Mention problems with
49260         64-bit-#if, and how to work around them.
49261
49262         Don't insist on 'long long int' support in the preprocessor.  It
49263         breaks too many things.  For example, PRIdMAX still uses a 'long
49264         long int' format with the latest Sun compiler, even though
49265         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49266         preprocessor problem.  This causes the latest coreutils to dump
49267         core on Solaris 10 sparc with the Sun C compiler.
49268         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49269         the troublesome expressions at configure-time, not at #if-time.
49270         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49271         preprocessor.
49272         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49273         compile-time C checks, done at 'configure'-time.
49274         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49275         * modules/inttypes (Makefile): Substitute the new symbols that
49276         gl_INTTYPES_H now generates.
49277         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49278
49279 2007-11-12  Bruno Haible  <bruno@clisp.org>
49280
49281         Tests for Unicode character classification functions.
49282
49283         * modules/unictype/bidicategory-byname-tests: New file.
49284         * modules/unictype/bidicategory-name-tests: New file.
49285         * modules/unictype/bidicategory-of-tests: New file.
49286         * modules/unictype/bidicategory-test-tests: New file.
49287         * modules/unictype/block-list-tests: New file.
49288         * modules/unictype/block-of-tests: New file.
49289         * modules/unictype/block-test-tests: New file.
49290         * modules/unictype/category-C-tests: New file.
49291         * modules/unictype/category-Cc-tests: New file.
49292         * modules/unictype/category-Cf-tests: New file.
49293         * modules/unictype/category-Cn-tests: New file.
49294         * modules/unictype/category-Co-tests: New file.
49295         * modules/unictype/category-Cs-tests: New file.
49296         * modules/unictype/category-L-tests: New file.
49297         * modules/unictype/category-Ll-tests: New file.
49298         * modules/unictype/category-Lm-tests: New file.
49299         * modules/unictype/category-Lo-tests: New file.
49300         * modules/unictype/category-Lt-tests: New file.
49301         * modules/unictype/category-Lu-tests: New file.
49302         * modules/unictype/category-M-tests: New file.
49303         * modules/unictype/category-Mc-tests: New file.
49304         * modules/unictype/category-Me-tests: New file.
49305         * modules/unictype/category-Mn-tests: New file.
49306         * modules/unictype/category-N-tests: New file.
49307         * modules/unictype/category-Nd-tests: New file.
49308         * modules/unictype/category-Nl-tests: New file.
49309         * modules/unictype/category-No-tests: New file.
49310         * modules/unictype/category-P-tests: New file.
49311         * modules/unictype/category-Pc-tests: New file.
49312         * modules/unictype/category-Pd-tests: New file.
49313         * modules/unictype/category-Pe-tests: New file.
49314         * modules/unictype/category-Pf-tests: New file.
49315         * modules/unictype/category-Pi-tests: New file.
49316         * modules/unictype/category-Po-tests: New file.
49317         * modules/unictype/category-Ps-tests: New file.
49318         * modules/unictype/category-S-tests: New file.
49319         * modules/unictype/category-Sc-tests: New file.
49320         * modules/unictype/category-Sk-tests: New file.
49321         * modules/unictype/category-Sm-tests: New file.
49322         * modules/unictype/category-So-tests: New file.
49323         * modules/unictype/category-Z-tests: New file.
49324         * modules/unictype/category-Zl-tests: New file.
49325         * modules/unictype/category-Zp-tests: New file.
49326         * modules/unictype/category-Zs-tests: New file.
49327         * modules/unictype/category-and-not-tests: New file.
49328         * modules/unictype/category-and-tests: New file.
49329         * modules/unictype/category-byname-tests: New file.
49330         * modules/unictype/category-name-tests: New file.
49331         * modules/unictype/category-none-tests: New file.
49332         * modules/unictype/category-of-tests: New file.
49333         * modules/unictype/category-or-tests: New file.
49334         * modules/unictype/category-test-withtable-tests: New file.
49335         * modules/unictype/combining-class-tests: New file.
49336         * modules/unictype/ctype-alnum-tests: New file.
49337         * modules/unictype/ctype-alpha-tests: New file.
49338         * modules/unictype/ctype-blank-tests: New file.
49339         * modules/unictype/ctype-cntrl-tests: New file.
49340         * modules/unictype/ctype-digit-tests: New file.
49341         * modules/unictype/ctype-graph-tests: New file.
49342         * modules/unictype/ctype-lower-tests: New file.
49343         * modules/unictype/ctype-print-tests: New file.
49344         * modules/unictype/ctype-punct-tests: New file.
49345         * modules/unictype/ctype-space-tests: New file.
49346         * modules/unictype/ctype-upper-tests: New file.
49347         * modules/unictype/ctype-xdigit-tests: New file.
49348         * modules/unictype/decimal-digit-tests: New file.
49349         * modules/unictype/digit-tests: New file.
49350         * modules/unictype/mirror-tests: New file.
49351         * modules/unictype/numeric-tests: New file.
49352         * modules/unictype/property-alphabetic-tests: New file.
49353         * modules/unictype/property-ascii-hex-digit-tests: New file.
49354         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49355         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49356         * modules/unictype/property-bidi-block-separator-tests: New file.
49357         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49358         * modules/unictype/property-bidi-common-separator-tests: New file.
49359         * modules/unictype/property-bidi-control-tests: New file.
49360         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49361         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49362         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49363         * modules/unictype/property-bidi-european-digit-tests: New file.
49364         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49365         * modules/unictype/property-bidi-left-to-right-tests: New file.
49366         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49367         * modules/unictype/property-bidi-other-neutral-tests: New file.
49368         * modules/unictype/property-bidi-pdf-tests: New file.
49369         * modules/unictype/property-bidi-segment-separator-tests: New file.
49370         * modules/unictype/property-bidi-whitespace-tests: New file.
49371         * modules/unictype/property-byname-tests: New file.
49372         * modules/unictype/property-combining-tests: New file.
49373         * modules/unictype/property-composite-tests: New file.
49374         * modules/unictype/property-currency-symbol-tests: New file.
49375         * modules/unictype/property-dash-tests: New file.
49376         * modules/unictype/property-decimal-digit-tests: New file.
49377         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49378         * modules/unictype/property-deprecated-tests: New file.
49379         * modules/unictype/property-diacritic-tests: New file.
49380         * modules/unictype/property-extender-tests: New file.
49381         * modules/unictype/property-format-control-tests: New file.
49382         * modules/unictype/property-grapheme-base-tests: New file.
49383         * modules/unictype/property-grapheme-extend-tests: New file.
49384         * modules/unictype/property-grapheme-link-tests: New file.
49385         * modules/unictype/property-hex-digit-tests: New file.
49386         * modules/unictype/property-hyphen-tests: New file.
49387         * modules/unictype/property-id-continue-tests: New file.
49388         * modules/unictype/property-id-start-tests: New file.
49389         * modules/unictype/property-ideographic-tests: New file.
49390         * modules/unictype/property-ids-binary-operator-tests: New file.
49391         * modules/unictype/property-ids-trinary-operator-tests: New file.
49392         * modules/unictype/property-ignorable-control-tests: New file.
49393         * modules/unictype/property-iso-control-tests: New file.
49394         * modules/unictype/property-join-control-tests: New file.
49395         * modules/unictype/property-left-of-pair-tests: New file.
49396         * modules/unictype/property-line-separator-tests: New file.
49397         * modules/unictype/property-logical-order-exception-tests: New file.
49398         * modules/unictype/property-lowercase-tests: New file.
49399         * modules/unictype/property-math-tests: New file.
49400         * modules/unictype/property-non-break-tests: New file.
49401         * modules/unictype/property-not-a-character-tests: New file.
49402         * modules/unictype/property-numeric-tests: New file.
49403         * modules/unictype/property-other-alphabetic-tests: New file.
49404         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49405         * modules/unictype/property-other-grapheme-extend-tests: New file.
49406         * modules/unictype/property-other-id-continue-tests: New file.
49407         * modules/unictype/property-other-id-start-tests: New file.
49408         * modules/unictype/property-other-lowercase-tests: New file.
49409         * modules/unictype/property-other-math-tests: New file.
49410         * modules/unictype/property-other-uppercase-tests: New file.
49411         * modules/unictype/property-paired-punctuation-tests: New file.
49412         * modules/unictype/property-paragraph-separator-tests: New file.
49413         * modules/unictype/property-pattern-syntax-tests: New file.
49414         * modules/unictype/property-pattern-white-space-tests: New file.
49415         * modules/unictype/property-private-use-tests: New file.
49416         * modules/unictype/property-punctuation-tests: New file.
49417         * modules/unictype/property-quotation-mark-tests: New file.
49418         * modules/unictype/property-radical-tests: New file.
49419         * modules/unictype/property-sentence-terminal-tests: New file.
49420         * modules/unictype/property-soft-dotted-tests: New file.
49421         * modules/unictype/property-space-tests: New file.
49422         * modules/unictype/property-terminal-punctuation-tests: New file.
49423         * modules/unictype/property-test-tests: New file.
49424         * modules/unictype/property-titlecase-tests: New file.
49425         * modules/unictype/property-unassigned-code-value-tests: New file.
49426         * modules/unictype/property-unified-ideograph-tests: New file.
49427         * modules/unictype/property-uppercase-tests: New file.
49428         * modules/unictype/property-variation-selector-tests: New file.
49429         * modules/unictype/property-white-space-tests: New file.
49430         * modules/unictype/property-xid-continue-tests: New file.
49431         * modules/unictype/property-xid-start-tests: New file.
49432         * modules/unictype/property-zero-width-tests: New file.
49433         * modules/unictype/scripts-tests: New file.
49434         * modules/unictype/syntax-c-ident-tests: New file.
49435         * modules/unictype/syntax-c-whitespace-tests: New file.
49436         * modules/unictype/syntax-java-ident-tests: New file.
49437         * modules/unictype/syntax-java-whitespace-tests: New file.
49438         * tests/unictype/test-bidi_byname.c: New file.
49439         * tests/unictype/test-bidi_name.c: New file.
49440         * tests/unictype/test-bidi_of.c: New file.
49441         * tests/unictype/test-bidi_test.c: New file.
49442         * tests/unictype/test-block_list.c: New file.
49443         * tests/unictype/test-block_of.c: New file.
49444         * tests/unictype/test-block_test.c: New file.
49445         * tests/unictype/test-categ_and.c: New file.
49446         * tests/unictype/test-categ_and_not.c: New file.
49447         * tests/unictype/test-categ_byname.c: New file.
49448         * tests/unictype/test-categ_name.c: New file.
49449         * tests/unictype/test-categ_none.c: New file.
49450         * tests/unictype/test-categ_of.c: New file.
49451         * tests/unictype/test-categ_or.c: New file.
49452         * tests/unictype/test-categ_test_withtable.c: New file.
49453         * tests/unictype/test-combining.c: New file.
49454         * tests/unictype/test-decdigit.c: New file.
49455         * tests/unictype/test-digit.c: New file.
49456         * tests/unictype/test-mirror.c: New file.
49457         * tests/unictype/test-numeric.c: New file.
49458         * tests/unictype/test-pr_byname.c: New file.
49459         * tests/unictype/test-pr_test.c: New file.
49460         * tests/unictype/test-predicate-part1.h: New file.
49461         * tests/unictype/test-predicate-part2.h: New file.
49462         * tests/unictype/test-scripts.c: New file.
49463         * tests/unictype/test-sy_c_ident.c: New file.
49464         * tests/unictype/test-sy_java_ident.c: New file.
49465
49466         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49467         for Unicode 5.0.0.
49468         * tests/unictype/test-categ_Cc.c: Likewise.
49469         * tests/unictype/test-categ_Cf.c: Likewise.
49470         * tests/unictype/test-categ_Cn.c: Likewise.
49471         * tests/unictype/test-categ_Co.c: Likewise.
49472         * tests/unictype/test-categ_Cs.c: Likewise.
49473         * tests/unictype/test-categ_L.c: Likewise.
49474         * tests/unictype/test-categ_Ll.c: Likewise.
49475         * tests/unictype/test-categ_Lm.c: Likewise.
49476         * tests/unictype/test-categ_Lo.c: Likewise.
49477         * tests/unictype/test-categ_Lt.c: Likewise.
49478         * tests/unictype/test-categ_Lu.c: Likewise.
49479         * tests/unictype/test-categ_M.c: Likewise.
49480         * tests/unictype/test-categ_Mc.c: Likewise.
49481         * tests/unictype/test-categ_Me.c: Likewise.
49482         * tests/unictype/test-categ_Mn.c: Likewise.
49483         * tests/unictype/test-categ_N.c: Likewise.
49484         * tests/unictype/test-categ_Nd.c: Likewise.
49485         * tests/unictype/test-categ_Nl.c: Likewise.
49486         * tests/unictype/test-categ_No.c: Likewise.
49487         * tests/unictype/test-categ_P.c: Likewise.
49488         * tests/unictype/test-categ_Pc.c: Likewise.
49489         * tests/unictype/test-categ_Pd.c: Likewise.
49490         * tests/unictype/test-categ_Pe.c: Likewise.
49491         * tests/unictype/test-categ_Pf.c: Likewise.
49492         * tests/unictype/test-categ_Pi.c: Likewise.
49493         * tests/unictype/test-categ_Po.c: Likewise.
49494         * tests/unictype/test-categ_Ps.c: Likewise.
49495         * tests/unictype/test-categ_S.c: Likewise.
49496         * tests/unictype/test-categ_Sc.c: Likewise.
49497         * tests/unictype/test-categ_Sk.c: Likewise.
49498         * tests/unictype/test-categ_Sm.c: Likewise.
49499         * tests/unictype/test-categ_So.c: Likewise.
49500         * tests/unictype/test-categ_Z.c: Likewise.
49501         * tests/unictype/test-categ_Zl.c: Likewise.
49502         * tests/unictype/test-categ_Zp.c: Likewise.
49503         * tests/unictype/test-categ_Zs.c: Likewise.
49504         * tests/unictype/test-ctype_alnum.c: Likewise.
49505         * tests/unictype/test-ctype_alpha.c: Likewise.
49506         * tests/unictype/test-ctype_blank.c: Likewise.
49507         * tests/unictype/test-ctype_cntrl.c: Likewise.
49508         * tests/unictype/test-ctype_digit.c: Likewise.
49509         * tests/unictype/test-ctype_graph.c: Likewise.
49510         * tests/unictype/test-ctype_lower.c: Likewise.
49511         * tests/unictype/test-ctype_print.c: Likewise.
49512         * tests/unictype/test-ctype_punct.c: Likewise.
49513         * tests/unictype/test-ctype_space.c: Likewise.
49514         * tests/unictype/test-ctype_upper.c: Likewise.
49515         * tests/unictype/test-ctype_xdigit.c: Likewise.
49516         * tests/unictype/test-decdigit.h: Likewise.
49517         * tests/unictype/test-digit.h: Likewise.
49518         * tests/unictype/test-numeric.h: Likewise.
49519         * tests/unictype/test-pr_alphabetic.c: Likewise.
49520         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49521         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49522         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49523         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49524         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49525         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49526         * tests/unictype/test-pr_bidi_control.c: Likewise.
49527         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49528         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49529         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49530         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49531         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49532         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49533         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49534         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49535         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49536         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49537         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49538         * tests/unictype/test-pr_combining.c: Likewise.
49539         * tests/unictype/test-pr_composite.c: Likewise.
49540         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49541         * tests/unictype/test-pr_dash.c: Likewise.
49542         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49543         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49544         * tests/unictype/test-pr_deprecated.c: Likewise.
49545         * tests/unictype/test-pr_diacritic.c: Likewise.
49546         * tests/unictype/test-pr_extender.c: Likewise.
49547         * tests/unictype/test-pr_format_control.c: Likewise.
49548         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49549         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49550         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49551         * tests/unictype/test-pr_hex_digit.c: Likewise.
49552         * tests/unictype/test-pr_hyphen.c: Likewise.
49553         * tests/unictype/test-pr_id_continue.c: Likewise.
49554         * tests/unictype/test-pr_id_start.c: Likewise.
49555         * tests/unictype/test-pr_ideographic.c: Likewise.
49556         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49557         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49558         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49559         * tests/unictype/test-pr_iso_control.c: Likewise.
49560         * tests/unictype/test-pr_join_control.c: Likewise.
49561         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49562         * tests/unictype/test-pr_line_separator.c: Likewise.
49563         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49564         * tests/unictype/test-pr_lowercase.c: Likewise.
49565         * tests/unictype/test-pr_math.c: Likewise.
49566         * tests/unictype/test-pr_non_break.c: Likewise.
49567         * tests/unictype/test-pr_not_a_character.c: Likewise.
49568         * tests/unictype/test-pr_numeric.c: Likewise.
49569         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49570         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49571         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49572         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49573         * tests/unictype/test-pr_other_id_start.c: Likewise.
49574         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49575         * tests/unictype/test-pr_other_math.c: Likewise.
49576         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49577         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49578         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49579         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49580         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49581         * tests/unictype/test-pr_private_use.c: Likewise.
49582         * tests/unictype/test-pr_punctuation.c: Likewise.
49583         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49584         * tests/unictype/test-pr_radical.c: Likewise.
49585         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49586         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49587         * tests/unictype/test-pr_space.c: Likewise.
49588         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49589         * tests/unictype/test-pr_titlecase.c: Likewise.
49590         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49591         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49592         * tests/unictype/test-pr_uppercase.c: Likewise.
49593         * tests/unictype/test-pr_variation_selector.c: Likewise.
49594         * tests/unictype/test-pr_white_space.c: Likewise.
49595         * tests/unictype/test-pr_xid_continue.c: Likewise.
49596         * tests/unictype/test-pr_xid_start.c: Likewise.
49597         * tests/unictype/test-pr_zero_width.c: Likewise.
49598         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49599         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49600
49601 2007-11-12  Bruno Haible  <bruno@clisp.org>
49602
49603         Unicode character classification functions.
49604         * lib/unictype.h: New file.
49605         * modules/unictype/base: New file.
49606         * modules/unictype/category-L: New file.
49607         * modules/unictype/category-Lu: New file.
49608         * modules/unictype/category-Ll: New file.
49609         * modules/unictype/category-Lt: New file.
49610         * modules/unictype/category-Lm: New file.
49611         * modules/unictype/category-Lo: New file.
49612         * modules/unictype/category-M: New file.
49613         * modules/unictype/category-Mn: New file.
49614         * modules/unictype/category-Mc: New file.
49615         * modules/unictype/category-Me: New file.
49616         * modules/unictype/category-N: New file.
49617         * modules/unictype/category-Nd: New file.
49618         * modules/unictype/category-Nl: New file.
49619         * modules/unictype/category-No: New file.
49620         * modules/unictype/category-P: New file.
49621         * modules/unictype/category-Pc: New file.
49622         * modules/unictype/category-Pd: New file.
49623         * modules/unictype/category-Ps: New file.
49624         * modules/unictype/category-Pe: New file.
49625         * modules/unictype/category-Pi: New file.
49626         * modules/unictype/category-Pf: New file.
49627         * modules/unictype/category-Po: New file.
49628         * modules/unictype/category-S: New file.
49629         * modules/unictype/category-Sm: New file.
49630         * modules/unictype/category-Sc: New file.
49631         * modules/unictype/category-Sk: New file.
49632         * modules/unictype/category-So: New file.
49633         * modules/unictype/category-Z: New file.
49634         * modules/unictype/category-Zs: New file.
49635         * modules/unictype/category-Zl: New file.
49636         * modules/unictype/category-Zp: New file.
49637         * modules/unictype/category-C: New file.
49638         * modules/unictype/category-Cc: New file.
49639         * modules/unictype/category-Cf: New file.
49640         * modules/unictype/category-Cs: New file.
49641         * modules/unictype/category-Co: New file.
49642         * modules/unictype/category-Cn: New file.
49643         * modules/unictype/category-or: New file.
49644         * modules/unictype/category-of: New file.
49645         * modules/unictype/category-test: New file.
49646         * modules/unictype/category-test-withtable: New file.
49647         * modules/unictype/category-byname: New file.
49648         * modules/unictype/category-none: New file.
49649         * modules/unictype/category-and: New file.
49650         * modules/unictype/category-and-not: New file.
49651         * modules/unictype/category-name: New file.
49652         * modules/unictype/combining-class: New file.
49653         * modules/unictype/category-all: New file.
49654         * modules/unictype/bidicategory-all: New file.
49655         * modules/unictype/bidicategory-byname: New file.
49656         * modules/unictype/bidicategory-name: New file.
49657         * modules/unictype/bidicategory-of: New file.
49658         * modules/unictype/bidicategory-test: New file.
49659         * modules/unictype/decimal-digit: New file.
49660         * modules/unictype/digit: New file.
49661         * modules/unictype/numeric: New file.
49662         * modules/unictype/mirror: New file.
49663         * modules/unictype/property-white-space: New file.
49664         * modules/unictype/property-alphabetic: New file.
49665         * modules/unictype/property-other-alphabetic: New file.
49666         * modules/unictype/property-not-a-character: New file.
49667         * modules/unictype/property-default-ignorable-code-point: New file.
49668         * modules/unictype/property-other-default-ignorable-code-point: New
49669         file.
49670         * modules/unictype/property-deprecated: New file.
49671         * modules/unictype/property-logical-order-exception: New file.
49672         * modules/unictype/property-variation-selector: New file.
49673         * modules/unictype/property-private-use: New file.
49674         * modules/unictype/property-unassigned-code-value: New file.
49675         * modules/unictype/property-uppercase: New file.
49676         * modules/unictype/property-other-uppercase: New file.
49677         * modules/unictype/property-lowercase: New file.
49678         * modules/unictype/property-other-lowercase: New file.
49679         * modules/unictype/property-titlecase: New file.
49680         * modules/unictype/property-soft-dotted: New file.
49681         * modules/unictype/property-id-start: New file.
49682         * modules/unictype/property-other-id-start: New file.
49683         * modules/unictype/property-id-continue: New file.
49684         * modules/unictype/property-other-id-continue: New file.
49685         * modules/unictype/property-xid-start: New file.
49686         * modules/unictype/property-xid-continue: New file.
49687         * modules/unictype/property-pattern-white-space: New file.
49688         * modules/unictype/property-pattern-syntax: New file.
49689         * modules/unictype/property-join-control: New file.
49690         * modules/unictype/property-grapheme-base: New file.
49691         * modules/unictype/property-grapheme-extend: New file.
49692         * modules/unictype/property-other-grapheme-extend: New file.
49693         * modules/unictype/property-grapheme-link: New file.
49694         * modules/unictype/property-bidi-control: New file.
49695         * modules/unictype/property-bidi-left-to-right: New file.
49696         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49697         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49698         * modules/unictype/property-bidi-european-digit: New file.
49699         * modules/unictype/property-bidi-eur-num-separator: New file.
49700         * modules/unictype/property-bidi-eur-num-terminator: New file.
49701         * modules/unictype/property-bidi-arabic-digit: New file.
49702         * modules/unictype/property-bidi-common-separator: New file.
49703         * modules/unictype/property-bidi-block-separator: New file.
49704         * modules/unictype/property-bidi-segment-separator: New file.
49705         * modules/unictype/property-bidi-whitespace: New file.
49706         * modules/unictype/property-bidi-non-spacing-mark: New file.
49707         * modules/unictype/property-bidi-boundary-neutral: New file.
49708         * modules/unictype/property-bidi-pdf: New file.
49709         * modules/unictype/property-bidi-embedding-or-override: New file.
49710         * modules/unictype/property-bidi-other-neutral: New file.
49711         * modules/unictype/property-hex-digit: New file.
49712         * modules/unictype/property-ascii-hex-digit: New file.
49713         * modules/unictype/property-ideographic: New file.
49714         * modules/unictype/property-unified-ideograph: New file.
49715         * modules/unictype/property-radical: New file.
49716         * modules/unictype/property-ids-binary-operator: New file.
49717         * modules/unictype/property-ids-trinary-operator: New file.
49718         * modules/unictype/property-zero-width: New file.
49719         * modules/unictype/property-space: New file.
49720         * modules/unictype/property-non-break: New file.
49721         * modules/unictype/property-iso-control: New file.
49722         * modules/unictype/property-format-control: New file.
49723         * modules/unictype/property-dash: New file.
49724         * modules/unictype/property-hyphen: New file.
49725         * modules/unictype/property-punctuation: New file.
49726         * modules/unictype/property-line-separator: New file.
49727         * modules/unictype/property-paragraph-separator: New file.
49728         * modules/unictype/property-quotation-mark: New file.
49729         * modules/unictype/property-sentence-terminal: New file.
49730         * modules/unictype/property-terminal-punctuation: New file.
49731         * modules/unictype/property-currency-symbol: New file.
49732         * modules/unictype/property-math: New file.
49733         * modules/unictype/property-other-math: New file.
49734         * modules/unictype/property-paired-punctuation: New file.
49735         * modules/unictype/property-left-of-pair: New file.
49736         * modules/unictype/property-combining: New file.
49737         * modules/unictype/property-composite: New file.
49738         * modules/unictype/property-decimal-digit: New file.
49739         * modules/unictype/property-numeric: New file.
49740         * modules/unictype/property-diacritic: New file.
49741         * modules/unictype/property-extender: New file.
49742         * modules/unictype/property-ignorable-control: New file.
49743         * modules/unictype/property-test: New file.
49744         * modules/unictype/property-byname: New file.
49745         * modules/unictype/property-all: New file.
49746         * modules/unictype/scripts: New file.
49747         * modules/unictype/scripts-all: New file.
49748         * modules/unictype/block-of: New file.
49749         * modules/unictype/block-test: New file.
49750         * modules/unictype/block-list: New file.
49751         * modules/unictype/block-all: New file.
49752         * modules/unictype/syntax-c-whitespace: New file.
49753         * modules/unictype/syntax-java-whitespace: New file.
49754         * modules/unictype/syntax-c-ident: New file.
49755         * modules/unictype/syntax-java-ident: New file.
49756         * modules/unictype/ctype-alnum: New file.
49757         * modules/unictype/ctype-alpha: New file.
49758         * modules/unictype/ctype-cntrl: New file.
49759         * modules/unictype/ctype-digit: New file.
49760         * modules/unictype/ctype-graph: New file.
49761         * modules/unictype/ctype-lower: New file.
49762         * modules/unictype/ctype-print: New file.
49763         * modules/unictype/ctype-punct: New file.
49764         * modules/unictype/ctype-space: New file.
49765         * modules/unictype/ctype-upper: New file.
49766         * modules/unictype/ctype-xdigit: New file.
49767         * modules/unictype/ctype-blank: New file.
49768         * lib/unictype/bidi_byname.c: New file.
49769         * lib/unictype/bidi_name.c: New file.
49770         * lib/unictype/bidi_of.c: New file.
49771         * lib/unictype/bidi_test.c: New file.
49772         * lib/unictype/bitmap.h: New file.
49773         * lib/unictype/block_test.c: New file.
49774         * lib/unictype/blocks.c: New file.
49775         * lib/unictype/categ_C.c: New file.
49776         * lib/unictype/categ_Cc.c: New file.
49777         * lib/unictype/categ_Cf.c: New file.
49778         * lib/unictype/categ_Cn.c: New file.
49779         * lib/unictype/categ_Co.c: New file.
49780         * lib/unictype/categ_Cs.c: New file.
49781         * lib/unictype/categ_L.c: New file.
49782         * lib/unictype/categ_Ll.c: New file.
49783         * lib/unictype/categ_Lm.c: New file.
49784         * lib/unictype/categ_Lo.c: New file.
49785         * lib/unictype/categ_Lt.c: New file.
49786         * lib/unictype/categ_Lu.c: New file.
49787         * lib/unictype/categ_M.c: New file.
49788         * lib/unictype/categ_Mc.c: New file.
49789         * lib/unictype/categ_Me.c: New file.
49790         * lib/unictype/categ_Mn.c: New file.
49791         * lib/unictype/categ_N.c: New file.
49792         * lib/unictype/categ_Nd.c: New file.
49793         * lib/unictype/categ_Nl.c: New file.
49794         * lib/unictype/categ_No.c: New file.
49795         * lib/unictype/categ_P.c: New file.
49796         * lib/unictype/categ_Pc.c: New file.
49797         * lib/unictype/categ_Pd.c: New file.
49798         * lib/unictype/categ_Pe.c: New file.
49799         * lib/unictype/categ_Pf.c: New file.
49800         * lib/unictype/categ_Pi.c: New file.
49801         * lib/unictype/categ_Po.c: New file.
49802         * lib/unictype/categ_Ps.c: New file.
49803         * lib/unictype/categ_S.c: New file.
49804         * lib/unictype/categ_Sc.c: New file.
49805         * lib/unictype/categ_Sk.c: New file.
49806         * lib/unictype/categ_Sm.c: New file.
49807         * lib/unictype/categ_So.c: New file.
49808         * lib/unictype/categ_Z.c: New file.
49809         * lib/unictype/categ_Zl.c: New file.
49810         * lib/unictype/categ_Zp.c: New file.
49811         * lib/unictype/categ_Zs.c: New file.
49812         * lib/unictype/categ_and.c: New file.
49813         * lib/unictype/categ_and_not.c: New file.
49814         * lib/unictype/categ_byname.c: New file.
49815         * lib/unictype/categ_name.c: New file.
49816         * lib/unictype/categ_none.c: New file.
49817         * lib/unictype/categ_of.c: New file.
49818         * lib/unictype/categ_or.c: New file.
49819         * lib/unictype/categ_test.c: New file.
49820         * lib/unictype/combining.c: New file.
49821         * lib/unictype/ctype_alnum.c: New file.
49822         * lib/unictype/ctype_alpha.c: New file.
49823         * lib/unictype/ctype_blank.c: New file.
49824         * lib/unictype/ctype_cntrl.c: New file.
49825         * lib/unictype/ctype_digit.c: New file.
49826         * lib/unictype/ctype_graph.c: New file.
49827         * lib/unictype/ctype_lower.c: New file.
49828         * lib/unictype/ctype_print.c: New file.
49829         * lib/unictype/ctype_punct.c: New file.
49830         * lib/unictype/ctype_space.c: New file.
49831         * lib/unictype/ctype_upper.c: New file.
49832         * lib/unictype/ctype_xdigit.c: New file.
49833         * lib/unictype/decdigit.c: New file.
49834         * lib/unictype/digit.c: New file.
49835         * lib/unictype/identsyntaxmap.h: New file.
49836         * lib/unictype/mirror.c: New file.
49837         * lib/unictype/numeric.c: New file.
49838         * lib/unictype/pr_alphabetic.c: New file.
49839         * lib/unictype/pr_ascii_hex_digit.c: New file.
49840         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49841         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49842         * lib/unictype/pr_bidi_block_separator.c: New file.
49843         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49844         * lib/unictype/pr_bidi_common_separator.c: New file.
49845         * lib/unictype/pr_bidi_control.c: New file.
49846         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49847         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49848         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49849         * lib/unictype/pr_bidi_european_digit.c: New file.
49850         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49851         * lib/unictype/pr_bidi_left_to_right.c: New file.
49852         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49853         * lib/unictype/pr_bidi_other_neutral.c: New file.
49854         * lib/unictype/pr_bidi_pdf.c: New file.
49855         * lib/unictype/pr_bidi_segment_separator.c: New file.
49856         * lib/unictype/pr_bidi_whitespace.c: New file.
49857         * lib/unictype/pr_byname.c: New file.
49858         * lib/unictype/pr_byname.gperf: New file.
49859         * lib/unictype/pr_combining.c: New file.
49860         * lib/unictype/pr_composite.c: New file.
49861         * lib/unictype/pr_currency_symbol.c: New file.
49862         * lib/unictype/pr_dash.c: New file.
49863         * lib/unictype/pr_decimal_digit.c: New file.
49864         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49865         * lib/unictype/pr_deprecated.c: New file.
49866         * lib/unictype/pr_diacritic.c: New file.
49867         * lib/unictype/pr_extender.c: New file.
49868         * lib/unictype/pr_format_control.c: New file.
49869         * lib/unictype/pr_grapheme_base.c: New file.
49870         * lib/unictype/pr_grapheme_extend.c: New file.
49871         * lib/unictype/pr_grapheme_link.c: New file.
49872         * lib/unictype/pr_hex_digit.c: New file.
49873         * lib/unictype/pr_hyphen.c: New file.
49874         * lib/unictype/pr_id_continue.c: New file.
49875         * lib/unictype/pr_id_start.c: New file.
49876         * lib/unictype/pr_ideographic.c: New file.
49877         * lib/unictype/pr_ids_binary_operator.c: New file.
49878         * lib/unictype/pr_ids_trinary_operator.c: New file.
49879         * lib/unictype/pr_ignorable_control.c: New file.
49880         * lib/unictype/pr_iso_control.c: New file.
49881         * lib/unictype/pr_join_control.c: New file.
49882         * lib/unictype/pr_left_of_pair.c: New file.
49883         * lib/unictype/pr_line_separator.c: New file.
49884         * lib/unictype/pr_logical_order_exception.c: New file.
49885         * lib/unictype/pr_lowercase.c: New file.
49886         * lib/unictype/pr_math.c: New file.
49887         * lib/unictype/pr_non_break.c: New file.
49888         * lib/unictype/pr_not_a_character.c: New file.
49889         * lib/unictype/pr_numeric.c: New file.
49890         * lib/unictype/pr_other_alphabetic.c: New file.
49891         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49892         * lib/unictype/pr_other_grapheme_extend.c: New file.
49893         * lib/unictype/pr_other_id_continue.c: New file.
49894         * lib/unictype/pr_other_id_start.c: New file.
49895         * lib/unictype/pr_other_lowercase.c: New file.
49896         * lib/unictype/pr_other_math.c: New file.
49897         * lib/unictype/pr_other_uppercase.c: New file.
49898         * lib/unictype/pr_paired_punctuation.c: New file.
49899         * lib/unictype/pr_paragraph_separator.c: New file.
49900         * lib/unictype/pr_pattern_syntax.c: New file.
49901         * lib/unictype/pr_pattern_white_space.c: New file.
49902         * lib/unictype/pr_private_use.c: New file.
49903         * lib/unictype/pr_punctuation.c: New file.
49904         * lib/unictype/pr_quotation_mark.c: New file.
49905         * lib/unictype/pr_radical.c: New file.
49906         * lib/unictype/pr_sentence_terminal.c: New file.
49907         * lib/unictype/pr_soft_dotted.c: New file.
49908         * lib/unictype/pr_space.c: New file.
49909         * lib/unictype/pr_terminal_punctuation.c: New file.
49910         * lib/unictype/pr_test.c: New file.
49911         * lib/unictype/pr_titlecase.c: New file.
49912         * lib/unictype/pr_unassigned_code_value.c: New file.
49913         * lib/unictype/pr_unified_ideograph.c: New file.
49914         * lib/unictype/pr_uppercase.c: New file.
49915         * lib/unictype/pr_variation_selector.c: New file.
49916         * lib/unictype/pr_white_space.c: New file.
49917         * lib/unictype/pr_xid_continue.c: New file.
49918         * lib/unictype/pr_xid_start.c: New file.
49919         * lib/unictype/pr_zero_width.c: New file.
49920         * lib/unictype/scripts.c: New file.
49921         * lib/unictype/sy_c_ident.c: New file.
49922         * lib/unictype/sy_c_whitespace.c: New file.
49923         * lib/unictype/sy_java_ident.c: New file.
49924         * lib/unictype/sy_java_whitespace.c: New file.
49925
49926         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49927         Unicode 5.0.0.
49928         * lib/unictype/blocks.h: Likewise.
49929         * lib/unictype/categ_C.h: Likewise.
49930         * lib/unictype/categ_Cc.h: Likewise.
49931         * lib/unictype/categ_Cf.h: Likewise.
49932         * lib/unictype/categ_Cn.h: Likewise.
49933         * lib/unictype/categ_Co.h: Likewise.
49934         * lib/unictype/categ_Cs.h: Likewise.
49935         * lib/unictype/categ_L.h: Likewise.
49936         * lib/unictype/categ_Ll.h: Likewise.
49937         * lib/unictype/categ_Lm.h: Likewise.
49938         * lib/unictype/categ_Lo.h: Likewise.
49939         * lib/unictype/categ_Lt.h: Likewise.
49940         * lib/unictype/categ_Lu.h: Likewise.
49941         * lib/unictype/categ_M.h: Likewise.
49942         * lib/unictype/categ_Mc.h: Likewise.
49943         * lib/unictype/categ_Me.h: Likewise.
49944         * lib/unictype/categ_Mn.h: Likewise.
49945         * lib/unictype/categ_N.h: Likewise.
49946         * lib/unictype/categ_Nd.h: Likewise.
49947         * lib/unictype/categ_Nl.h: Likewise.
49948         * lib/unictype/categ_No.h: Likewise.
49949         * lib/unictype/categ_P.h: Likewise.
49950         * lib/unictype/categ_Pc.h: Likewise.
49951         * lib/unictype/categ_Pd.h: Likewise.
49952         * lib/unictype/categ_Pe.h: Likewise.
49953         * lib/unictype/categ_Pf.h: Likewise.
49954         * lib/unictype/categ_Pi.h: Likewise.
49955         * lib/unictype/categ_Po.h: Likewise.
49956         * lib/unictype/categ_Ps.h: Likewise.
49957         * lib/unictype/categ_S.h: Likewise.
49958         * lib/unictype/categ_Sc.h: Likewise.
49959         * lib/unictype/categ_Sk.h: Likewise.
49960         * lib/unictype/categ_Sm.h: Likewise.
49961         * lib/unictype/categ_So.h: Likewise.
49962         * lib/unictype/categ_Z.h: Likewise.
49963         * lib/unictype/categ_Zl.h: Likewise.
49964         * lib/unictype/categ_Zp.h: Likewise.
49965         * lib/unictype/categ_Zs.h: Likewise.
49966         * lib/unictype/categ_of.h: Likewise.
49967         * lib/unictype/combining.h: Likewise.
49968         * lib/unictype/ctype_alnum.h: Likewise.
49969         * lib/unictype/ctype_alpha.h: Likewise.
49970         * lib/unictype/ctype_blank.h: Likewise.
49971         * lib/unictype/ctype_cntrl.h: Likewise.
49972         * lib/unictype/ctype_digit.h: Likewise.
49973         * lib/unictype/ctype_graph.h: Likewise.
49974         * lib/unictype/ctype_lower.h: Likewise.
49975         * lib/unictype/ctype_print.h: Likewise.
49976         * lib/unictype/ctype_punct.h: Likewise.
49977         * lib/unictype/ctype_space.h: Likewise.
49978         * lib/unictype/ctype_upper.h: Likewise.
49979         * lib/unictype/ctype_xdigit.h: Likewise.
49980         * lib/unictype/decdigit.h: Likewise.
49981         * lib/unictype/digit.h: Likewise.
49982         * lib/unictype/mirror.h: Likewise.
49983         * lib/unictype/numeric.h: Likewise.
49984         * lib/unictype/pr_alphabetic.h: Likewise.
49985         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
49986         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
49987         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
49988         * lib/unictype/pr_bidi_block_separator.h: Likewise.
49989         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
49990         * lib/unictype/pr_bidi_common_separator.h: Likewise.
49991         * lib/unictype/pr_bidi_control.h: Likewise.
49992         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
49993         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
49994         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
49995         * lib/unictype/pr_bidi_european_digit.h: Likewise.
49996         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
49997         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
49998         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
49999         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50000         * lib/unictype/pr_bidi_pdf.h: Likewise.
50001         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50002         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50003         * lib/unictype/pr_combining.h: Likewise.
50004         * lib/unictype/pr_composite.h: Likewise.
50005         * lib/unictype/pr_currency_symbol.h: Likewise.
50006         * lib/unictype/pr_dash.h: Likewise.
50007         * lib/unictype/pr_decimal_digit.h: Likewise.
50008         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50009         * lib/unictype/pr_deprecated.h: Likewise.
50010         * lib/unictype/pr_diacritic.h: Likewise.
50011         * lib/unictype/pr_extender.h: Likewise.
50012         * lib/unictype/pr_format_control.h: Likewise.
50013         * lib/unictype/pr_grapheme_base.h: Likewise.
50014         * lib/unictype/pr_grapheme_extend.h: Likewise.
50015         * lib/unictype/pr_grapheme_link.h: Likewise.
50016         * lib/unictype/pr_hex_digit.h: Likewise.
50017         * lib/unictype/pr_hyphen.h: Likewise.
50018         * lib/unictype/pr_id_continue.h: Likewise.
50019         * lib/unictype/pr_id_start.h: Likewise.
50020         * lib/unictype/pr_ideographic.h: Likewise.
50021         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50022         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50023         * lib/unictype/pr_ignorable_control.h: Likewise.
50024         * lib/unictype/pr_iso_control.h: Likewise.
50025         * lib/unictype/pr_join_control.h: Likewise.
50026         * lib/unictype/pr_left_of_pair.h: Likewise.
50027         * lib/unictype/pr_line_separator.h: Likewise.
50028         * lib/unictype/pr_logical_order_exception.h: Likewise.
50029         * lib/unictype/pr_lowercase.h: Likewise.
50030         * lib/unictype/pr_math.h: Likewise.
50031         * lib/unictype/pr_non_break.h: Likewise.
50032         * lib/unictype/pr_not_a_character.h: Likewise.
50033         * lib/unictype/pr_numeric.h: Likewise.
50034         * lib/unictype/pr_other_alphabetic.h: Likewise.
50035         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50036         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50037         * lib/unictype/pr_other_id_continue.h: Likewise.
50038         * lib/unictype/pr_other_id_start.h: Likewise.
50039         * lib/unictype/pr_other_lowercase.h: Likewise.
50040         * lib/unictype/pr_other_math.h: Likewise.
50041         * lib/unictype/pr_other_uppercase.h: Likewise.
50042         * lib/unictype/pr_paired_punctuation.h: Likewise.
50043         * lib/unictype/pr_paragraph_separator.h: Likewise.
50044         * lib/unictype/pr_pattern_syntax.h: Likewise.
50045         * lib/unictype/pr_pattern_white_space.h: Likewise.
50046         * lib/unictype/pr_private_use.h: Likewise.
50047         * lib/unictype/pr_punctuation.h: Likewise.
50048         * lib/unictype/pr_quotation_mark.h: Likewise.
50049         * lib/unictype/pr_radical.h: Likewise.
50050         * lib/unictype/pr_sentence_terminal.h: Likewise.
50051         * lib/unictype/pr_soft_dotted.h: Likewise.
50052         * lib/unictype/pr_space.h: Likewise.
50053         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50054         * lib/unictype/pr_titlecase.h: Likewise.
50055         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50056         * lib/unictype/pr_unified_ideograph.h: Likewise.
50057         * lib/unictype/pr_uppercase.h: Likewise.
50058         * lib/unictype/pr_variation_selector.h: Likewise.
50059         * lib/unictype/pr_white_space.h: Likewise.
50060         * lib/unictype/pr_xid_continue.h: Likewise.
50061         * lib/unictype/pr_xid_start.h: Likewise.
50062         * lib/unictype/pr_zero_width.h: Likewise.
50063         * lib/unictype/scripts.h: Likewise.
50064         * lib/unictype/scripts_byname.gperf: Likewise.
50065         * lib/unictype/sy_c_ident.h: Likewise.
50066         * lib/unictype/sy_c_whitespace.h: Likewise.
50067         * lib/unictype/sy_java_ident.h: Likewise.
50068         * lib/unictype/sy_java_whitespace.h: Likewise.
50069
50070         * lib/unictype/Makefile: New file.
50071         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50072         glibc.
50073         * lib/unictype/3level.h: New file, copied from glibc.
50074         * lib/unictype/3levelbit.h: New file.
50075
50076 2007-11-11  Bruno Haible  <bruno@clisp.org>
50077
50078         * modules/gperf: New file.
50079         * modules/iconv_open (Depends-on): Add it.
50080         (Makefile.am): Remove the GPERF definition.
50081
50082 2007-11-11  Bruno Haible  <bruno@clisp.org>
50083
50084         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50085         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50086
50087 2007-11-11  Bruno Haible  <bruno@clisp.org>
50088
50089         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50090         (usage): Remove function.
50091
50092 2007-11-11  Bruno Haible  <bruno@clisp.org>
50093
50094         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50095         gl_FUNC_CEILF_LIBS.
50096         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50097         gl_FUNC_CEIL_LIBS.
50098         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50099         gl_FUNC_CEILL_LIBS.
50100         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50101         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50102         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50103
50104 2007-11-11  Bruno Haible  <bruno@clisp.org>
50105
50106         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50107         roundf were declared but do not exist on functions.
50108         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50109         roundl were declared but do not exist on functions.
50110         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50111         HAVE_FLOORL_AND_CEILL, respectively.
50112         Needed for Sun C on Solaris 10.
50113
50114 2007-11-11  Bruno Haible  <bruno@clisp.org>
50115
50116         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50117         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50118         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50119         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50120         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50121         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50122         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50123         HAVE_DECL_ROUNDF.
50124         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50125         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50126         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50127         of HAVE_DECL_ROUND*.
50128         * modules/math (Makefile.am): Update.
50129
50130 2007-11-10  Bruno Haible  <bruno@clisp.org>
50131
50132         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50133         ptrdiff_t as m4/intl.m4.
50134
50135 2007-11-10  Jim Meyering  <meyering@redhat.com>
50136
50137         Avoid link failure for the argmatch test.
50138         * tests/test-argmatch.c (usage): Define function to avoid a link
50139         failure: argmatch_die requires a usage function.
50140
50141 2007-11-09  Bruno Haible  <bruno@clisp.org>
50142
50143         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50144         * doc/functions/vsnprintf.texi: Likewise.
50145         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50146         with a size argument < 2.
50147
50148 2007-11-09  Bruno Haible  <bruno@clisp.org>
50149
50150         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50151         buffer. Fixes an inefficiency introduced on 2007-11-03.
50152
50153 2007-11-09  Bruno Haible  <bruno@clisp.org>
50154
50155         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50156         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50157
50158 2007-11-08  Jim Meyering  <meyering@redhat.com>
50159
50160         Change cache variable name prefix "jm_" to "gl_" everywhere.
50161         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50162         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50163         * m4/uptime.m4: s/gl_/jm_/
50164
50165 2007-11-07  Bruno Haible  <bruno@clisp.org>
50166
50167         Update to GNU gettext 0.17.
50168         * m4/intl.m4: Update to GNU gettext 0.17.
50169         * m4/po.m4: Likewise.
50170         * modules/gettext (Files): Remove m4/ulonglong.m4.
50171         (configure.ac): Require gettext infrastructure from version 0.17.
50172
50173 2007-11-06  Bruno Haible  <bruno@clisp.org>
50174
50175         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50176         symbolic values are not defined in a public header.
50177         * lib/freadable.c (freadable) [QNX]: Likewise.
50178         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50179         * lib/freading.c (freading) [QNX]: Likewise.
50180         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50181         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50182         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50183         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50184         Reported by Alain Magloire.
50185
50186         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50187
50188 2007-11-05  Bruno Haible  <bruno@clisp.org>
50189
50190         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50191         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50192         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50193         Reported by Eric Blake.
50194
50195 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50196             Bruno Haible  <bruno@clisp.org>
50197
50198         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50199         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50200         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50201         (malloc): Undefine also before including <stdlib.h>.
50202         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50203         Needed on OSF/1 4.0.
50204
50205 2007-11-05  Jim Meyering  <meyering@redhat.com>
50206
50207         git-version-gen: sync from coreutils.
50208         * build-aux/git-version-gen: Add comments.
50209         Change the first '-' to '.' in the snapshot version string,
50210         e.g., 6.9-377-08144 -> 6.9.377-08144
50211         Remove first parameter.
50212         Don't declare a version "-dirty" merely because a time
50213         stamp has changed.
50214
50215 2007-11-04  Bruno Haible  <bruno@clisp.org>
50216
50217         * lib/lock.h: Protect all macro definitions containing an 'if'
50218         statement through a "do { ... } while (0)".
50219         * lib/tls.h: Likewise.
50220
50221 2007-11-04  Bruno Haible  <bruno@clisp.org>
50222
50223         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50224
50225 2007-11-04  Bruno Haible  <bruno@clisp.org>
50226
50227         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50228         * modules/fprintf-posix (Depends-on): Add nocrash.
50229         * modules/snprintf-posix (Depends-on): Likewise.
50230         * modules/sprintf-posix (Depends-on): Likewise.
50231         * modules/vasnprintf-posix (Depends-on): Likewise.
50232         * modules/vasprintf-posix (Depends-on): Likewise.
50233         * modules/vfprintf-posix (Depends-on): Likewise.
50234         * modules/vsnprintf-posix (Depends-on): Likewise.
50235         * modules/vsprintf-posix (Depends-on): Likewise.
50236         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50237         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50238         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50239         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50240         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50241         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50242         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50243
50244 2007-11-04  Bruno Haible  <bruno@clisp.org>
50245
50246         * modules/nocrash: New file.
50247         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50248         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50249
50250 2007-11-04  Bruno Haible  <bruno@clisp.org>
50251
50252         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50253         precision handling.
50254         * tests/test-vasprintf-posix.c (test_function): Likewise.
50255         * tests/test-snprintf-posix.h (test_function): Likewise.
50256         * tests/test-sprintf-posix.h (test_function): Likewise.
50257
50258         Fix *printf behaviour for large precisions on mingw and BeOS.
50259         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50260         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50261         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50262         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50263         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50264         gl_PRINTF_PRECISION and test its result. Invoke
50265         gl_PREREQ_VASNPRINTF_PRECISION.
50266         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50267         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50268         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50269         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50270         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50271         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50272         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50273         * doc/functions/fprintf.texi: Update.
50274         * doc/functions/printf.texi: Update.
50275         * doc/functions/snprintf.texi: Update.
50276         * doc/functions/sprintf.texi: Update.
50277         * doc/functions/vfprintf.texi: Update.
50278         * doc/functions/vprintf.texi: Update.
50279         * doc/functions/vsnprintf.texi: Update.
50280         * doc/functions/vsprintf.texi: Update.
50281
50282 2007-11-04  Bruno Haible  <bruno@clisp.org>
50283
50284         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50285
50286 2007-11-04  Bruno Haible  <bruno@clisp.org>
50287
50288         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50289         Reported by Sylvain Beucler <beuc@gnu.org>.
50290
50291 2007-11-03  Bruno Haible  <bruno@clisp.org>
50292
50293         * tests/test-fprintf-posix2.sh: New file.
50294         * tests/test-fprintf-posix2.c: New file.
50295         * modules/fprintf-posix-tests (Files): Add them.
50296         (TESTS): Add test-fprintf-posix2.sh.
50297         (configure.ac): Check for getrlimit and setrlimit.
50298         (check_PROGRAMS): Add test-fprintf-posix2.
50299
50300         * tests/test-printf-posix2.sh: New file.
50301         * tests/test-printf-posix2.c: New file.
50302         * modules/printf-posix-tests (Files): Add them.
50303         (TESTS): Add test-printf-posix2.sh.
50304         (configure.ac): Check for getrlimit and setrlimit.
50305         (check_PROGRAMS): Add test-printf-posix2.
50306
50307         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50308         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50309         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50310         (decode_double): New function, copied from decode_long_double.
50311         (scale10_round_decimal_decoded): New function, extracted from
50312         scale10_round_decimal_long_double.
50313         (scale10_round_decimal_long_double): Use it.
50314         (scale10_round_decimal_double): New function.
50315         (floorlog10): New function.
50316         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50317         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50318         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50319         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50320         gl_PRINTF_ENOMEM and test its result. Invoke
50321         gl_PREREQ_VASNPRINTF_ENOMEM.
50322         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50323         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50324         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50325         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50326         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50327         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50328         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50329         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50330         * modules/snprintf-posix (Depends-on): Likewise.
50331         * modules/sprintf-posix (Depends-on): Likewise.
50332         * modules/vasnprintf-posix (Depends-on): Likewise.
50333         * modules/vasprintf-posix (Depends-on): Likewise.
50334         * modules/vfprintf-posix (Depends-on): Likewise.
50335         * modules/vsnprintf-posix (Depends-on): Likewise.
50336         * modules/vsprintf-posix (Depends-on): Likewise.
50337         * doc/functions/fprintf.texi: Update.
50338         * doc/functions/printf.texi: Update.
50339         * doc/functions/snprintf.texi: Update.
50340         * doc/functions/sprintf.texi: Update.
50341         * doc/functions/vfprintf.texi: Update.
50342         * doc/functions/vprintf.texi: Update.
50343         * doc/functions/vsnprintf.texi: Update.
50344         * doc/functions/vsprintf.texi: Update.
50345
50346 2007-11-03  Bruno Haible  <bruno@clisp.org>
50347
50348         * modules/frexp-nolibm-tests: New file.
50349
50350         * modules/frexp-nolibm: New file.
50351         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50352
50353 2007-11-03  Bruno Haible  <bruno@clisp.org>
50354
50355         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50356         value is C99 compliant.
50357         Needed for OSF/1 5.1.
50358
50359 2007-11-03  Bruno Haible  <bruno@clisp.org>
50360
50361         Fix out-of-memory handling of vasnprintf.
50362         * lib/printf-parse.c: Include <errno.h>.
50363         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50364         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50365         is already set.
50366
50367 2007-11-02  Eric Blake  <ebb9@byu.net>
50368
50369         Fix tests on cygwin.
50370         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50371
50372 2007-11-01  Bruno Haible  <bruno@clisp.org>
50373
50374         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50375         warning.
50376         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50377         needed for POSIX compatibility.
50378
50379 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50380
50381         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50382         for compatibility with GNU.
50383
50384 2007-11-01  Bruno Haible  <bruno@clisp.org>
50385
50386         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50387         (putenv): Renamed from rpl_putenv. Change argument type from
50388         'const char *' to 'char *'.
50389         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50390         of defining putenv in config.h, just set REPLACE_PUTENV.
50391         * modules/putenv (Depends-on): Add stdlib.
50392         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50393         (Include): Use <stdlib.h>.
50394         * lib/stdlib.in.h (putenv): New declaration.
50395         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50396         REPLACE_PUTENV.
50397         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50398         REPLACE_PUTENV.
50399         Needed for MacOS X 10.5.0.
50400         Reported by Peter O'Gorman <peter@pogma.com>.
50401
50402 2007-11-01  Jim Meyering  <meyering@redhat.com>
50403
50404         Treat an empty date string exactly like "0".
50405         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50406         if the remaining date string (to be parsed) is empty, use "0".
50407         Reported by Mischa Molhoek and discussed in this thread:
50408         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50409
50410 2007-10-31  Bruno Haible  <bruno@clisp.org>
50411
50412         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50413         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50414         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50415         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50416         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50417         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50418
50419 2007-10-31  Bruno Haible  <bruno@clisp.org>
50420
50421         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50422         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50423         (AC_TYPE_LONG_LONG_INT): Use it.
50424         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50425         it as well.
50426         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50427         to m4/longlong.m4.
50428         * modules/stdint (Files): Remove m4/ulonglong.m4.
50429         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50430         m4/ulonglong.m4.
50431         * modules/strtoumax (Files): Likewise.
50432
50433 2007-10-30  Bruno Haible  <bruno@clisp.org>
50434
50435         * modules/xvasprintf-posix: New file.
50436         Suggested by Eric Blake.
50437
50438 2007-10-30  Bruno Haible  <bruno@clisp.org>
50439
50440         * modules/xprintf-posix-tests: New file.
50441         * tests/test-xprintf-posix.sh: New file.
50442         * tests/test-xprintf-posix.c: New file.
50443         * tests/test-xfprintf-posix.c: New file.
50444
50445         * modules/xprintf-posix: New file.
50446
50447 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50448
50449         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50450         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50451         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50452
50453 2007-10-29  Bruno Haible  <bruno@clisp.org>
50454
50455         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50456         contain the special marker '_cv_'.
50457         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50458         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50459         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50460         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50461         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50462         Reported by Ralf Wildenhues.
50463
50464 2007-10-29  Bruno Haible  <bruno@clisp.org>
50465
50466         * gnulib-tool (func_import): When --lgpl is not specified, set
50467         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50468         GPLv3.
50469         Reported by Simon Josefsson.
50470
50471 2007-10-28  Bruno Haible  <bruno@clisp.org>
50472
50473         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50474         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50475         HAVE_DECL_ISFINITE.
50476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50477         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50478         HAVE_DECL_ISFINITE.
50479
50480 2007-10-28  Bruno Haible  <bruno@clisp.org>
50481
50482         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50483         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50484
50485 2007-10-28  Bruno Haible  <bruno@clisp.org>
50486
50487         Fix link errors with Sun C 5.0 on Solaris 10.
50488         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50489         function is declared but not present in the compiler's libm.
50490         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50491         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50492         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50493         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50494         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50495         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50496         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50497         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50498         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50499         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50500         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50501         HAVE_DECL_FLOORL.
50502
50503 2007-10-28  Bruno Haible  <bruno@clisp.org>
50504
50505         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50506         gl_FUNC_FLOORL. Cache the result.
50507         (gl_FUNC_FLOORL): Use it.
50508         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50509         gl_FUNC_CEILL. Cache the result.
50510         (gl_FUNC_CEILL): Use it.
50511
50512         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50513         gl_FUNC_FLOOR. Cache the result.
50514         (gl_FUNC_FLOOR): Use it.
50515         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50516         gl_FUNC_CEIL. Cache the result.
50517         (gl_FUNC_CEIL): Use it.
50518
50519         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50520         gl_FUNC_FLOORF. Cache the result.
50521         (gl_FUNC_FLOORF): Use it.
50522         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50523         gl_FUNC_CEILF. Cache the result.
50524         (gl_FUNC_CEILF): Use it.
50525
50526 2007-10-28  Bruno Haible  <bruno@clisp.org>
50527
50528         * gnulib-tool: Allow specifying the LGPL version number through
50529         --lgpl=2 or --lgpl=3.
50530         (func_usage): Document --lgpl with argument.
50531         Handle --lgpl=... arguments.
50532         (func_import): Recognize also gl_LGPL calls with an argument. When
50533         --lgpl=2 is used and the module's license is just LGPL, report an
50534         error. Set sed_transform_lib_file according to the lgpl variable. In
50535         the generated files, use --lgpl or gl_LGPL invocations with argument,
50536         if necessary.
50537         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50538         an LGPv2+ license.
50539         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50540         gl_LGPL macro.
50541
50542 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50543             Bruno Haible  <bruno@clisp.org>
50544
50545         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50546         (u16_uctomb_aux): Likewise.
50547         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50548         !HAVE_INLINE.
50549         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50550
50551 2007-10-28  Bruno Haible  <bruno@clisp.org>
50552
50553         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50554         Invoke AM_GETTEXT_OPTION if it exists.
50555         * modules/vasprintf: Likewise.
50556         * modules/verror: Likewise.
50557         * modules/xprintf: Likewise.
50558         * modules/xvasprintf: Likewise.
50559
50560 2007-10-27  Ben Pfaff  <blp@gnu.org>
50561
50562         * lib/math.in.h: Define isfinite macro and prototypes for
50563         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50564         implementations.
50565         * m4/math_h.m4: New substitutions for isfinite module.
50566         * lib/isfinite.c: New file.
50567         * m4/isfinite.m4: New file.
50568         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50569         * modules/isfinite: New file.
50570         * modules/isfinite-tests: New file.
50571         * tests/tests-isfinite.c: New file.
50572         * doc/functions/isfinite.texi: Mention isfinite module.
50573         * MODULES.html.sh: Mention new module.
50574
50575 2007-10-27  Ben Pfaff  <blp@gnu.org>
50576
50577         Ralf Wildenhues reported that Tru64 4.0D declares the round
50578         functions but does not have definitions.
50579         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50580         cannot be found in any library, set the output variable to
50581         "missing" instead of "".
50582         * m4/round.m4: Also use our substitute if we cannot find round in
50583         any library, even if it is declared.
50584         * m4/roundf.m4: Likewise for roundf.
50585         * m4/roundl.m4: Likewise for roundl.
50586         * lib/math.in.h: Undefine roundf, round, roundl before defining
50587         their replacements, to allow for hypothetical systems where these
50588         may be defined as macros but not available in libraries.
50589
50590 2007-10-27  Bruno Haible  <bruno@clisp.org>
50591
50592         * doc/gnulib.texi: Invoke @firstparagraphindent.
50593         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50594         changes in gnulib.
50595         (Source changes): New section.
50596
50597 2007-10-26  Bruno Haible  <bruno@clisp.org>
50598
50599         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50600         borrowed from autoconf.
50601
50602 2007-10-26  Bruno Haible  <bruno@clisp.org>
50603
50604         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50605         strerror returned the empty string. Needed on HP-UX 11.00.
50606
50607 2007-10-24  Micah Cowan  <micah@cowan.name>
50608
50609         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50610         * build-aux/bootstrap: Remove support for now-unnecessary option,
50611         --cvs-user, and envvars CVS_USER, CVS_RSH.
50612
50613 2007-10-24  Jim Meyering  <meyering@redhat.com>
50614
50615         Avoid diagnostics from sha1sum when there is no cached checksum.
50616         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50617         if the po.s1 file hasn't been created yet.
50618
50619         * build-aux/bootstrap: Sync from coreutils:
50620         2007-10-24  Jim Meyering  <meyering@redhat.com>
50621         Get gnulib from the git repository, not from an obsolete cvs one.
50622         * build-aux/bootstrap: Suggestion from Micah Cowan.
50623         2007-10-04  Jim Meyering  <jim@meyering.net>
50624         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50625         (update_po_files): Work also when there are no .po files in po/.
50626
50627 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50628
50629         * README: Append ".git" to git and cg examples.
50630         Problem reported by Benoit Sigoure.
50631
50632 2007-10-23  Micah Cowan  <micah@cowan.name>
50633
50634         * users.txt: Add wget.
50635
50636 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50637
50638         Fix linking of some unistdio tests on FreeBSD.
50639         * modules/unistdio/u16-vsnprintf-tests
50640         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50641         * modules/unistdio/u16-vsprintf-tests
50642         (test_u16_vsnprintf1_LDADD): Likewise.
50643         * modules/unistdio/u32-vsnprintf-tests
50644         (test_u32_vsnprintf1_LDADD): Likewise.
50645         * modules/unistdio/u32-vsprintf-tests
50646         (test_u32_vsprintf1_LDADD): Likewise.
50647         * modules/unistdio/u8-vsnprintf-tests
50648         (test_u8_vsnprintf1_LDADD): Likewise.
50649         * modules/unistdio/u8-vsprintf-tests
50650         (test_u8_vsprintf1_LDADD): Likewise.
50651         * modules/unistdio/ulc-vsnprintf-tests
50652         (test_ulc_vsnprintf1_LDADD): Likewise.
50653         * modules/unistdio/ulc-vsprintf-tests
50654         (test_ulc_vsprintf1_LDADD): Likewise.
50655
50656         Fix linking of some uniconv tests on FreeBSD.
50657         * modules/uniconv/u16-conv-from-enc-tests
50658         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50659         * modules/uniconv/u16-conv-to-enc-tests
50660         (test_u16_conv_to_enc_LDADD): Likewise.
50661         * modules/uniconv/u16-strconv-from-enc-tests
50662         (test_u16_strconv_from_enc_LDADD): Likewise.
50663         * modules/uniconv/u16-strconv-to-enc-tests
50664         (test_u16_strconv_to_enc_LDADD): Likewise.
50665         * modules/uniconv/u32-conv-from-enc-tests
50666         (test_u32_conv_from_enc_LDADD): Likewise.
50667         * modules/uniconv/u32-conv-to-enc-tests
50668         (test_u32_conv_to_enc_LDADD): Likewise.
50669         * modules/uniconv/u32-strconv-from-enc-tests
50670         (test_u32_strconv_from_enc_LDADD): Likewise.
50671         * modules/uniconv/u32-strconv-to-enc-tests
50672         (test_u32_strconv_to_enc_LDADD): Likewise.
50673         * modules/uniconv/u8-conv-from-enc-tests
50674         (test_u8_conv_from_enc_LDADD): Likewise.
50675         * modules/uniconv/u8-conv-to-enc-tests
50676         (test_u8_conv_to_enc_LDADD): Likewise.
50677         * modules/uniconv/u8-strconv-from-enc-tests
50678         (test_u8_strconv_from_enc_LDADD): Likewise.
50679         * modules/uniconv/u8-strconv-to-enc-tests
50680         (test_u8_strconv_to_enc_LDADD): Likewise.
50681
50682 2007-10-22  Bruno Haible  <bruno@clisp.org>
50683
50684         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50685         size.
50686
50687 2007-10-22  Eric Blake  <ebb9@byu.net>
50688
50689         Tweak x*printf documentation.
50690         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50691         variable name and comments.
50692         Suggested by Bruno Haible.
50693
50694 2007-10-22  Bruno Haible  <bruno@clisp.org>
50695
50696         * lib/acl.c (copy_acl): Fix file name in comment.
50697
50698 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50699
50700         Fix Tru64 problem with stdbool.h.
50701         * lib/stdbool.in.h (false, true):
50702         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50703         Don't declare as an enum in this situation; it runs afoul of Tru64.
50704         Problem reported by Steven M. Schweda in
50705         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50706
50707 2007-10-22  Eric Blake  <ebb9@byu.net>
50708
50709         Also wrap vf?printf.
50710         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50711         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50712         (xvprintf, xvfprintf): New functions.
50713
50714 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50715
50716         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50717         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50718
50719         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50720         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50721
50722 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50723
50724         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50725         by Bruno Haible.
50726
50727 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50728
50729         * lib/getloadavg.c
50730         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50731         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50732
50733         * tests/test-i-ring.c: Work for C89.
50734
50735 2007-10-22  Bruno Haible  <bruno@clisp.org>
50736
50737         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50738         -1u, in preprocessor expression, so that we don't test for the bug
50739         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50740         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50741
50742 2007-10-22  Eric Blake  <ebb9@byu.net>
50743
50744         * tests/test-yesno.sh: Silence stderr during test.
50745
50746 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50747
50748         * modules/crypto/gc-camellia: New file.
50749
50750         * m4/gc-camellia.m4: New file.
50751
50752         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50753
50754         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50755
50756 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50757
50758         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50759         --help to stdout.  Reported by sms@antinode.org (Steven
50760         M. Schweda).
50761
50762 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50763
50764         * users.txt: Fix link to libksba.
50765
50766 2007-10-21  Ben Pfaff  <blp@gnu.org>
50767
50768         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50769         round.c roundf implementation that depends on floorf and ceilf to
50770         be tested unconditionally.
50771
50772 2007-10-21  Ben Pfaff  <blp@gnu.org>
50773
50774         * m4/check-libm-func.m4: Removed.
50775         * m4/check-math-lib.m4: New file.
50776         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50777         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50778         definition and lack of AC_LIBOBJ([roundf]).
50779         * m4/roundl.m4: Ditto, and similarly for roundl.
50780         * modules/round: Reference new m4 file.
50781         * modules/roundf: Ditto.
50782         * modules/roundl: Ditto.
50783         * tests/test-round2.c (main): Use ROUND instead of round.
50784         Bug report from Bruno Haible.
50785
50786 2007-10-21  Bruno Haible  <bruno@clisp.org>
50787
50788         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50789         context.
50790
50791 2007-10-21  Bruno Haible  <bruno@clisp.org>
50792
50793         * tests/test-wcwidth.c (main): Allow negative result for some control
50794         characters.
50795
50796         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50797         Needed on OSF/1 5.1.
50798
50799 2007-10-21  Bruno Haible  <bruno@clisp.org>
50800
50801         * tests/test-floorf1.c: Include isnanf.h.
50802         (main): Use isnanf() instead of isnan().
50803         * tests/test-ceilf1.c: Include isnanf.h.
50804         (main): Use isnanf() instead of isnan().
50805         * tests/test-truncf1.c: Include isnanf.h.
50806         (main): Use isnanf() instead of isnan().
50807         * tests/test-roundf1.c: Include isnanf.h.
50808         (main): Use isnanf() instead of isnan().
50809
50810 2007-10-21  Eric Blake  <ebb9@byu.net>
50811
50812         * users.txt: Update URL for m4.
50813
50814 2007-10-21  Bruno Haible  <bruno@clisp.org>
50815
50816         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50817
50818 2007-10-21  Bruno Haible  <bruno@clisp.org>
50819
50820         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50821         Git's management files if the CVS files are not present.
50822
50823 2007-10-20  Bruno Haible  <bruno@clisp.org>
50824
50825         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50826         gcc-3.4.x.
50827
50828 2007-10-20  Ben Pfaff  <blp@gnu.org>
50829
50830         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50831         implementations.
50832         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50833         * lib/round.c: New file.
50834         * lib/roundf.c: New file.
50835         * lib/roundl.c: New file.
50836         * m4/round.m4: New file.
50837         * m4/roundf.m4: New file.
50838         * m4/roundl.m4: New file.
50839         * m4/check-libm-func-m4: New file.
50840         * modules/math: Replace round, roundf, roundl related @VARS@ in
50841         math.in.h.
50842         * modules/round: New file.
50843         * modules/round-tests: New file.
50844         * modules/roundf: New file.
50845         * modules/roundf-tests: New file.
50846         * modules/roundl: New file.
50847         * modules/roundl-tests: New file.
50848         * tests/test-round1.c: New file.
50849         * tests/test-round2.c: New file.
50850         * tests/test-roundf1.c: New file.
50851         * tests/test-roundf2.c: New file.
50852         * tests/test-roundl.c: New file.
50853         * doc/functions/round.texi: Mention round module.
50854         * doc/functions/roundf.texi: Mention roundf module.
50855         * doc/functions/roundl.texi: Mention roundl module.
50856         * MODULES.html.sh: Mention new modules.
50857         Thanks to Bruno Haible for suggestions.
50858
50859 2007-10-20  Jim Meyering  <meyering@redhat.com>
50860
50861         * lib/xprintf.c: Include <config.h> unconditionally.
50862
50863         Change xprintf's license to GPL.
50864         * modules/xprintf (License): s/LGPL/GPL/, since this module
50865         depends on modules (exit and exitfail) which are GPL.
50866         Suggestion from Bruno Haible.
50867
50868         xprintf fixes.
50869         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50870         Use a clearer diagnostic.
50871         Patch from Bruno Haible.
50872
50873 2007-10-20  Bruno Haible  <bruno@clisp.org>
50874
50875         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50876         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50877         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50878
50879 2007-10-20  Bruno Haible  <bruno@clisp.org>
50880
50881         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50882         precision in the comparison result > x - 1 or similar.
50883         * tests/test-ceilf2.c (correct_result_p): Likewise.
50884         * tests/test-truncf2.c (correct_result_p): Likewise.
50885         * tests/test-trunc2.c (correct_result_p): Likewise.
50886         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50887
50888 2007-10-20  Bruno Haible  <bruno@clisp.org>
50889
50890         * modules/ceil: New file.
50891         * m4/ceil.m4: New file.
50892         * doc/functions/ceil.texi: Mention the 'ceil' module.
50893
50894 2007-10-20  Bruno Haible  <bruno@clisp.org>
50895
50896         * modules/floor: New file.
50897         * m4/floor.m4: New file.
50898         * doc/functions/floor.texi: Mention the 'floor' module.
50899
50900 2007-10-20  Bruno Haible  <bruno@clisp.org>
50901
50902         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50903         of %a.
50904         * modules/floorf-tests (Depends-on): Likewise.
50905         * modules/truncf-tests (Depends-on): Likewise.
50906         * modules/trunc-tests (Depends-on): Likewise.
50907         Reported by Ben Pfaff.
50908
50909 2007-10-19  Jim Meyering  <meyering@redhat.com>
50910
50911         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50912         Don't bother testing specific errno values.  Just test ferror.
50913
50914         New module: xprintf
50915         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50916
50917 2007-10-19  Bruno Haible  <bruno@clisp.org>
50918
50919         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50920         syntax.
50921         * modules/javaexec (Makefile.am): Likewise.
50922         * modules/relocatable-prog (Makefile.am): Likewise.
50923         Suggested by Jim Meyering.
50924
50925 2007-10-18  Bruno Haible  <bruno@clisp.org>
50926
50927         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50928         Reported by Jim Meyering.
50929
50930 2007-10-18  Eric Blake  <ebb9@byu.net>
50931
50932         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50933
50934 2007-10-18  Bruno Haible  <bruno@clisp.org>
50935
50936         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50937         the format string into writable memory. Needed in Fortify conditions.
50938
50939 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50940             Bruno Haible  <bruno@clisp.org>
50941
50942         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50943         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50944         * modules/trim (Depends-on): Add mbchar.
50945         (configure.ac): Add gl_FUNC_MBRTOWC.
50946         (Makefile.am): Augment lib_SOURCES.
50947
50948 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
50949
50950         Modify glob.c to use fstatat and dirfd, to simplify it.
50951         Suggested by Eric Blake.
50952         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
50953         Don't include <stdbool.h>; not used.
50954         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
50955         (link_exists_p): Simplify implementation, since we can now assume
50956         dirfd and fstatat.
50957         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
50958
50959 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50960
50961         * gnulib-tool (func_get_dependencies): Fix sed script to
50962         match only tests.
50963
50964 2007-10-17  Bruno Haible  <bruno@clisp.org>
50965
50966         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
50967         allow locale names without encoding suffix.
50968         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
50969         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
50970
50971 2007-10-16  Bruno Haible  <bruno@clisp.org>
50972
50973         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
50974         * lib/getgroups.c (getgroups): Likewise.
50975         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
50976
50977 2007-10-16  Bruno Haible  <bruno@clisp.org>
50978
50979         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
50980         * modules/malloc-posix (License): Likewise.
50981         * modules/realloc-posix (License): Likewise.
50982         * modules/calloc-posix (License): Likewise.
50983         * modules/intprops (License): Change from GPL to LGPL, with
50984         Paul Eggert's approval.
50985
50986 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
50987
50988         Merge glibc changes into lib/glob.c.
50989
50990         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
50991         2007-10-15 04:59:03 UTC.  Here are the changes:
50992
50993         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
50994
50995         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
50996
50997         * lib/glob.c: Add some branch prediction throughout.
50998
50999         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51000
51001         [BZ #5103]
51002         * lib/glob.c (glob): Recognize patterns starting \/.
51003
51004         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51005
51006         [BZ #3996]
51007         * lib/glob.c (attribute_hidden): Define if not defined.
51008         (glob): Unescape dirname, filename or username when needed and not
51009         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51010         is NULL.  Handle unescaped [ in pattern without closing ].
51011         Don't pass GLOB_CHECK down to recursive glob for directories.
51012         (__glob_pattern_type): New function.
51013         (__glob_pattern_p): Implement using __glob_pattern_type.
51014         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51015         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51016         Remove unreachable code.
51017
51018         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51019
51020         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51021         explain why there are no leaks.
51022
51023         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51024
51025         [BZ #3253]
51026         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51027         time, rather allocate increasingly bigger arrays of pointers, if
51028         possible with alloca, if too large with malloc.
51029
51030 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51031
51032         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51033         Problem reported by H.Merijn Brand in
51034         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51035         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51036         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51037
51038 2007-10-15  Bruno Haible  <bruno@clisp.org>
51039
51040         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51041         with explicit rpl_ prefix.
51042         * lib/fopen.c (fopen): Likewise.
51043         * lib/freopen.c (freopen): Likewise.
51044         * lib/iconv.c (iconv): Likewise.
51045         * lib/iconv_close.c (iconv_close): Likewise.
51046
51047 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51048
51049         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51050
51051 2007-10-15  Bruno Haible  <bruno@clisp.org>
51052
51053         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51054         <stddef.h> instead of <stdlib.h> since we only need NULL.
51055         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51056
51057 2007-10-15  Bruno Haible  <bruno@clisp.org>
51058
51059         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51060         Replace paragraph talking about LIBOBJS.
51061         Reported by Colin Watson <cjwatson@debian.org>.
51062
51063 2007-10-15  Bruno Haible  <bruno@clisp.org>
51064
51065         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51066         <stdlib.h> before using NULL.
51067
51068 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51069
51070         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51071         Reported by Albert Chin <china@thewrittenword.com>.
51072
51073 2007-10-14  Bruno Haible  <bruno@clisp.org>
51074
51075         * modules/iconv_open-utf-tests: New file.
51076         * tests/test-iconv-utf.c: New file.
51077
51078         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51079         * modules/iconv_open-utf: New file.
51080         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51081         (iconv, iconv_close): New declarations.
51082         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51083         be defined.
51084         (iconv_open): Add special handling of conversion between UTF-8 and
51085         UTF-{16,32}{BE,LE}.
51086         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51087         * lib/iconv_close.c: New file.
51088         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51089         gl_FUNC_ICONV_OPEN.
51090         (gl_FUNC_ICONV_OPEN): Use it.
51091         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51092         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51093         and REPLACE_ICONV_UTF.
51094         * modules/iconv_open (Depends-on): Add c-strcase.
51095         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51096         ICONV_CONST.
51097         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51098
51099 2007-10-13  Albert Chin  <china@thewrittenword.com>
51100             Bruno Haible  <bruno@clisp.org>
51101
51102         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51103         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51104
51105 2007-10-13  Bruno Haible  <bruno@clisp.org>
51106
51107         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51108         defined, use the ISO C99 inline semantics.
51109         * lib/argp.h (ARGP_EI): Likewise.
51110
51111 2007-10-13  Bruno Haible  <bruno@clisp.org>
51112
51113         Handle 'inline' change in gcc 4.3.0.
51114         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51115         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51116         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51117         argp_fmtstream_point): Disable 'extern' declaration if the function
51118         definition is going to be provided inline.
51119         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51120         semantics, not the ISO C99 inline semantics.
51121         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51122         'extern' declaration if the function definition is going to be provided
51123         inline.
51124         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51125         the GNU C inline semantics, not the ISO C99 inline semantics. With
51126         GCC 4.2, avoid a warning.
51127
51128 2007-10-13  Bruno Haible  <bruno@clisp.org>
51129
51130         * lib/freading.h (freading): Enable the use of __freading for
51131         glibc >= 2.7.
51132         * lib/freading.c (freading): Likewise.
51133
51134 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51135
51136         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51137         "warning: C99 inline functions are not supported; using GNU89".
51138
51139 2007-10-12  Bruno Haible  <bruno@clisp.org>
51140
51141         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51142         of 2.
51143         * tests/test-ceilf2.c: New file.
51144         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51145
51146         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51147         * modules/ceilf-tests: Update.
51148
51149 2007-10-12  Bruno Haible  <bruno@clisp.org>
51150
51151         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51152         of 2.
51153         * tests/test-floorf2.c: New file.
51154         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51155
51156         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51157         * modules/floorf-tests: Update.
51158
51159 2007-10-12  Bruno Haible  <bruno@clisp.org>
51160
51161         * tests/test-trunc2.c: New file.
51162         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51163
51164         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51165         * modules/trunc-tests: Update.
51166
51167 2007-10-12  Bruno Haible  <bruno@clisp.org>
51168
51169         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51170         of 2.
51171         * tests/test-truncf2.c: New file.
51172         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51173
51174         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51175         * modules/truncf-tests: Update.
51176
51177 2007-10-11  Eric Blake  <ebb9@byu.net>
51178
51179         Don't claim strerror is broken on Interix.
51180         * doc/functions/strerror.texi (strerror): Known broken systems are
51181         now Solaris 8, and not Interix.
51182         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51183         Interix on cross-compile.
51184         Reported by Martin Koeppe in
51185         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51186
51187 2007-10-11  Bruno Haible  <bruno@clisp.org>
51188
51189         * modules/i-ring-tests: New file.
51190         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51191         instead of assert.
51192
51193 2007-10-11  Bruno Haible  <bruno@clisp.org>
51194
51195         * modules/filenamecat-tests: New file.
51196         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51197         * lib/filenamecat.c: Remove test code.
51198
51199 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51200
51201         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51202
51203         * lib/strerror.c: Include <string.h> always, to test interface,
51204         and to remove the need for the dummy.
51205         Include intprops.h to compute width instead of doing it ourselves
51206         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51207         (strerror): Define it to return NULL if there's no system strerror.
51208         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51209         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51210         ancient pre-strerror Unix systems well any more.  Saying "unknown
51211         system error" is enough.
51212         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51213         simpler strerror.c implementation.
51214         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51215         Simplify the tests to reflect the simpler strerror implementation.
51216         * modules/strerror (Depends-on): Add intprops.
51217
51218 2007-10-09  Eric Blake  <ebb9@byu.net>
51219
51220         Silence test-fpending.
51221         * modules/fpending-tests (Files): Add wrapper script.
51222         * tests/test-fpending.sh: New file.
51223
51224 2007-10-09  Bruno Haible  <bruno@clisp.org>
51225
51226         * MODULES.html.sh (func_module): Don't create a hyperlink for
51227         function names like 'printf_frexp'.
51228         (Misc): Add crc, memxor.
51229         (Characteristics of floating types): New section.
51230         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51231         isnanf-nolibm, signbit, trunc, truncf, truncl.
51232         (Enhancements for ISO C 99 functions): New subsection Input/output.
51233         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51234         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51235         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51236         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51237         (Enhancements for POSIX:2001 functions): Add chdir-long.
51238         (File system functions): Add areadlink, chdir-safer, read-file.
51239         Remove cycle-check.
51240         (File system as inode set): New section.
51241         (Date and time): Add gethrxtime.
51242         (Multithreading): Add openmp.
51243         (Internationalization functions): Add localename.
51244         (Unicode string functions): Add unistr/u*-mbsnlen.
51245         (Support for maintaining and releasing projects): Add git-version-gen.
51246         (Lone files): Remove directories.
51247
51248 2007-10-08  Ben Pfaff  <blp@gnu.org>
51249
51250         * lib/xmalloca.h: Fix typo in comment.
51251
51252 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51253
51254         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51255         when avoiding problems with integer overflow.  Use a portable test
51256         instead.
51257
51258 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51259
51260         * modules/dummy (License): Change to LGPLv2+.
51261         * modules/float (License): Likewise
51262         * modules/realloc (License): Likewise
51263         * modules/stdlib (License): Likewise
51264
51265 2007-10-07  Bruno Haible  <bruno@clisp.org>
51266
51267         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51268         * floor.c (TWO_MANT_DIG): Likewise.
51269         * ceil.c (TWO_MANT_DIG): Likewise.
51270         Reported by Ben Pfaff.
51271
51272 2007-10-07  Bruno Haible  <bruno@clisp.org>
51273
51274         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51275         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51276         * lib/frexp.c (FUNC): Likewise.
51277         * lib/printf-frexp.h (printf_frexp): Likewise.
51278         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51279         * lib/printf-frexp.c (FUNC): Likewise.
51280         Suggested by Jim Meyering.
51281
51282 2007-10-07  Jim Meyering  <meyering@redhat.com>
51283
51284         Make xnanosleep's integer overflow test more robust.
51285         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51286         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51287
51288 2007-10-07  Bruno Haible  <bruno@clisp.org>
51289
51290         * NEWS: Mention the license change.
51291
51292         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51293         abbreviations in the modules files.
51294
51295         Change copyright notice from GPLv2+ to GPLv3+.
51296         * README: Change copyright notice.
51297         * MODULES.html.sh: Likewise.
51298         * build-aux/bootstrap.conf: Likewise.
51299         * build-aux/config.libpath: Likewise.
51300         * build-aux/csharpcomp.sh.in: Likewise.
51301         * build-aux/csharpexec.sh.in: Likewise.
51302         * build-aux/install-reloc: Likewise.
51303         * build-aux/javacomp.sh.in: Likewise.
51304         * build-aux/javaexec.sh.in: Likewise.
51305         * build-aux/ldd.sh.in: Likewise.
51306         * build-aux/reloc-ldflags: Likewise.
51307         * build-aux/relocatable.sh.in: Likewise.
51308         * build-aux/x-to-1.in: Likewise.
51309         * check-module: Likewise.
51310         * config/srclistvars.sh: Likewise.
51311         * gnulib-tool: Likewise.
51312         * lib/acl-internal.h: Likewise.
51313         * lib/acl.c: Likewise.
51314         * lib/acl.h: Likewise.
51315         * lib/acl_entries.c: Likewise.
51316         * lib/areadlink-with-size.c: Likewise.
51317         * lib/areadlink.c: Likewise.
51318         * lib/areadlink.h: Likewise.
51319         * lib/argmatch.c: Likewise.
51320         * lib/argmatch.h: Likewise.
51321         * lib/argp-ba.c: Likewise.
51322         * lib/argp-eexst.c: Likewise.
51323         * lib/argp-fmtstream.c: Likewise.
51324         * lib/argp-fmtstream.h: Likewise.
51325         * lib/argp-fs-xinl.c: Likewise.
51326         * lib/argp-help.c: Likewise.
51327         * lib/argp-namefrob.h: Likewise.
51328         * lib/argp-parse.c: Likewise.
51329         * lib/argp-pin.c: Likewise.
51330         * lib/argp-pv.c: Likewise.
51331         * lib/argp-pvh.c: Likewise.
51332         * lib/argp-xinl.c: Likewise.
51333         * lib/argp.h: Likewise.
51334         * lib/at-func.c: Likewise.
51335         * lib/atanl.c: Likewise.
51336         * lib/backupfile.c: Likewise.
51337         * lib/backupfile.h: Likewise.
51338         * lib/basename.c: Likewise.
51339         * lib/binary-io.h: Likewise.
51340         * lib/byteswap.in.h: Likewise.
51341         * lib/c-stack.c: Likewise.
51342         * lib/c-stack.h: Likewise.
51343         * lib/c-strcasestr.c: Likewise.
51344         * lib/c-strcasestr.h: Likewise.
51345         * lib/c-strstr.c: Likewise.
51346         * lib/c-strstr.h: Likewise.
51347         * lib/c-strtod.c: Likewise.
51348         * lib/calloc.c: Likewise.
51349         * lib/canon-host.c: Likewise.
51350         * lib/canon-host.h: Likewise.
51351         * lib/canonicalize-lgpl.c: Likewise.
51352         * lib/canonicalize.c: Likewise.
51353         * lib/canonicalize.h: Likewise.
51354         * lib/ceil.c: Likewise.
51355         * lib/ceilf.c: Likewise.
51356         * lib/ceill.c: Likewise.
51357         * lib/chdir-long.c: Likewise.
51358         * lib/chdir-long.h: Likewise.
51359         * lib/chdir-safer.c: Likewise.
51360         * lib/chdir-safer.h: Likewise.
51361         * lib/chown.c: Likewise.
51362         * lib/classpath.c: Likewise.
51363         * lib/classpath.h: Likewise.
51364         * lib/clean-temp.c: Likewise.
51365         * lib/clean-temp.h: Likewise.
51366         * lib/cloexec.c: Likewise.
51367         * lib/close-stream.c: Likewise.
51368         * lib/closein.c: Likewise.
51369         * lib/closein.h: Likewise.
51370         * lib/closeout.c: Likewise.
51371         * lib/closeout.h: Likewise.
51372         * lib/concat-filename.c: Likewise.
51373         * lib/copy-file.c: Likewise.
51374         * lib/copy-file.h: Likewise.
51375         * lib/count-one-bits.h: Likewise.
51376         * lib/crc.c: Likewise.
51377         * lib/crc.h: Likewise.
51378         * lib/creat-safer.c: Likewise.
51379         * lib/csharpcomp.c: Likewise.
51380         * lib/csharpcomp.h: Likewise.
51381         * lib/csharpexec.c: Likewise.
51382         * lib/csharpexec.h: Likewise.
51383         * lib/cycle-check.c: Likewise.
51384         * lib/cycle-check.h: Likewise.
51385         * lib/diacrit.c: Likewise.
51386         * lib/diacrit.h: Likewise.
51387         * lib/diffseq.h: Likewise.
51388         * lib/dirchownmod.c: Likewise.
51389         * lib/dirent.in.h: Likewise.
51390         * lib/dirfd.c: Likewise.
51391         * lib/dirfd.h: Likewise.
51392         * lib/dirname.c: Likewise.
51393         * lib/dirname.h: Likewise.
51394         * lib/dummy.c: Likewise.
51395         * lib/dup-safer.c: Likewise.
51396         * lib/dup2.c: Likewise.
51397         * lib/eealloc.h: Likewise.
51398         * lib/error.c: Likewise.
51399         * lib/error.h: Likewise.
51400         * lib/euidaccess.c: Likewise.
51401         * lib/exclude.c: Likewise.
51402         * lib/exclude.h: Likewise.
51403         * lib/execute.c: Likewise.
51404         * lib/execute.h: Likewise.
51405         * lib/exitfail.c: Likewise.
51406         * lib/exitfail.h: Likewise.
51407         * lib/expl.c: Likewise.
51408         * lib/fatal-signal.c: Likewise.
51409         * lib/fatal-signal.h: Likewise.
51410         * lib/fbufmode.c: Likewise.
51411         * lib/fbufmode.h: Likewise.
51412         * lib/fchdir.c: Likewise.
51413         * lib/fchmodat.c: Likewise.
51414         * lib/fchownat.c: Likewise.
51415         * lib/fcntl--.h: Likewise.
51416         * lib/fcntl-safer.h: Likewise.
51417         * lib/fcntl.in.h: Likewise.
51418         * lib/fd-safer.c: Likewise.
51419         * lib/fflush.c: Likewise.
51420         * lib/file-has-acl.c: Likewise.
51421         * lib/file-set.c: Likewise.
51422         * lib/file-type.c: Likewise.
51423         * lib/file-type.h: Likewise.
51424         * lib/fileblocks.c: Likewise.
51425         * lib/filemode.c: Likewise.
51426         * lib/filemode.h: Likewise.
51427         * lib/filename.h: Likewise.
51428         * lib/filenamecat.c: Likewise.
51429         * lib/filenamecat.h: Likewise.
51430         * lib/findprog.c: Likewise.
51431         * lib/findprog.h: Likewise.
51432         * lib/float.in.h: Likewise.
51433         * lib/floor.c: Likewise.
51434         * lib/floorf.c: Likewise.
51435         * lib/floorl.c: Likewise.
51436         * lib/fopen-safer.c: Likewise.
51437         * lib/fopen.c: Likewise.
51438         * lib/fpending.c: Likewise.
51439         * lib/fpending.h: Likewise.
51440         * lib/fprintf.c: Likewise.
51441         * lib/fprintftime.h: Likewise.
51442         * lib/fpucw.h: Likewise.
51443         * lib/fpurge.c: Likewise.
51444         * lib/fpurge.h: Likewise.
51445         * lib/freadable.c: Likewise.
51446         * lib/freadable.h: Likewise.
51447         * lib/freadahead.c: Likewise.
51448         * lib/freadahead.h: Likewise.
51449         * lib/freading.c: Likewise.
51450         * lib/freading.h: Likewise.
51451         * lib/free.c: Likewise.
51452         * lib/freopen.c: Likewise.
51453         * lib/frexp.c: Likewise.
51454         * lib/frexpl.c: Likewise.
51455         * lib/fseek.c: Likewise.
51456         * lib/fseterr.c: Likewise.
51457         * lib/fseterr.h: Likewise.
51458         * lib/fstatat.c: Likewise.
51459         * lib/fstrcmp.c: Likewise.
51460         * lib/fstrcmp.h: Likewise.
51461         * lib/fsusage.c: Likewise.
51462         * lib/fsusage.h: Likewise.
51463         * lib/ftell.c: Likewise.
51464         * lib/ftello.c: Likewise.
51465         * lib/fts-cycle.c: Likewise.
51466         * lib/fts.c: Likewise.
51467         * lib/fts_.h: Likewise.
51468         * lib/full-read.c: Likewise.
51469         * lib/full-read.h: Likewise.
51470         * lib/full-write.c: Likewise.
51471         * lib/full-write.h: Likewise.
51472         * lib/fwritable.c: Likewise.
51473         * lib/fwritable.h: Likewise.
51474         * lib/fwriteerror.c: Likewise.
51475         * lib/fwriteerror.h: Likewise.
51476         * lib/fwriting.c: Likewise.
51477         * lib/fwriting.h: Likewise.
51478         * lib/gcd.c: Likewise.
51479         * lib/gcd.h: Likewise.
51480         * lib/getcwd.c: Likewise.
51481         * lib/getdate.h: Likewise.
51482         * lib/getdate.y: Likewise.
51483         * lib/getdomainname.c: Likewise.
51484         * lib/getdomainname.h: Likewise.
51485         * lib/getgroups.c: Likewise.
51486         * lib/gethostname.c: Likewise.
51487         * lib/gethrxtime.c: Likewise.
51488         * lib/gethrxtime.h: Likewise.
51489         * lib/getloadavg.c: Likewise.
51490         * lib/getndelim2.c: Likewise.
51491         * lib/getndelim2.h: Likewise.
51492         * lib/getnline.c: Likewise.
51493         * lib/getnline.h: Likewise.
51494         * lib/getopt.c: Likewise.
51495         * lib/getopt.in.h: Likewise.
51496         * lib/getopt1.c: Likewise.
51497         * lib/getopt_int.h: Likewise.
51498         * lib/getpagesize.h: Likewise.
51499         * lib/getsubopt.c: Likewise.
51500         * lib/gettime.c: Likewise.
51501         * lib/getugroups.c: Likewise.
51502         * lib/getugroups.h: Likewise.
51503         * lib/getusershell.c: Likewise.
51504         * lib/gl_anyavltree_list1.h: Likewise.
51505         * lib/gl_anyavltree_list2.h: Likewise.
51506         * lib/gl_anyhash_list1.h: Likewise.
51507         * lib/gl_anyhash_list2.h: Likewise.
51508         * lib/gl_anylinked_list1.h: Likewise.
51509         * lib/gl_anylinked_list2.h: Likewise.
51510         * lib/gl_anyrbtree_list1.h: Likewise.
51511         * lib/gl_anyrbtree_list2.h: Likewise.
51512         * lib/gl_anytree_list1.h: Likewise.
51513         * lib/gl_anytree_list2.h: Likewise.
51514         * lib/gl_anytree_oset.h: Likewise.
51515         * lib/gl_anytreehash_list1.h: Likewise.
51516         * lib/gl_anytreehash_list2.h: Likewise.
51517         * lib/gl_array_list.c: Likewise.
51518         * lib/gl_array_list.h: Likewise.
51519         * lib/gl_array_oset.c: Likewise.
51520         * lib/gl_array_oset.h: Likewise.
51521         * lib/gl_avltree_list.c: Likewise.
51522         * lib/gl_avltree_list.h: Likewise.
51523         * lib/gl_avltree_oset.c: Likewise.
51524         * lib/gl_avltree_oset.h: Likewise.
51525         * lib/gl_avltreehash_list.c: Likewise.
51526         * lib/gl_avltreehash_list.h: Likewise.
51527         * lib/gl_carray_list.c: Likewise.
51528         * lib/gl_carray_list.h: Likewise.
51529         * lib/gl_linked_list.c: Likewise.
51530         * lib/gl_linked_list.h: Likewise.
51531         * lib/gl_linkedhash_list.c: Likewise.
51532         * lib/gl_linkedhash_list.h: Likewise.
51533         * lib/gl_list.c: Likewise.
51534         * lib/gl_list.h: Likewise.
51535         * lib/gl_oset.c: Likewise.
51536         * lib/gl_oset.h: Likewise.
51537         * lib/gl_rbtree_list.c: Likewise.
51538         * lib/gl_rbtree_list.h: Likewise.
51539         * lib/gl_rbtree_oset.c: Likewise.
51540         * lib/gl_rbtree_oset.h: Likewise.
51541         * lib/gl_rbtreehash_list.c: Likewise.
51542         * lib/gl_rbtreehash_list.h: Likewise.
51543         * lib/gl_sublist.c: Likewise.
51544         * lib/gl_sublist.h: Likewise.
51545         * lib/group-member.c: Likewise.
51546         * lib/group-member.h: Likewise.
51547         * lib/hard-locale.c: Likewise.
51548         * lib/hard-locale.h: Likewise.
51549         * lib/hash-pjw.c: Likewise.
51550         * lib/hash-pjw.h: Likewise.
51551         * lib/hash-triple.c: Likewise.
51552         * lib/hash.c: Likewise.
51553         * lib/hash.h: Likewise.
51554         * lib/human.c: Likewise.
51555         * lib/human.h: Likewise.
51556         * lib/i-ring.c: Likewise.
51557         * lib/i-ring.h: Likewise.
51558         * lib/idcache.c: Likewise.
51559         * lib/imaxabs.c: Likewise.
51560         * lib/imaxdiv.c: Likewise.
51561         * lib/inet_pton.c: Likewise.
51562         * lib/inet_pton.h: Likewise.
51563         * lib/intprops.h: Likewise.
51564         * lib/inttostr.c: Likewise.
51565         * lib/inttostr.h: Likewise.
51566         * lib/inttypes.in.h: Likewise.
51567         * lib/isapipe.c: Likewise.
51568         * lib/isdir.c: Likewise.
51569         * lib/isnan.c: Likewise.
51570         * lib/isnan.h: Likewise.
51571         * lib/isnanf.c: Likewise.
51572         * lib/isnanf.h: Likewise.
51573         * lib/isnanl-nolibm.h: Likewise.
51574         * lib/isnanl.c: Likewise.
51575         * lib/isnanl.h: Likewise.
51576         * lib/javacomp.c: Likewise.
51577         * lib/javacomp.h: Likewise.
51578         * lib/javaexec.c: Likewise.
51579         * lib/javaexec.h: Likewise.
51580         * lib/javaversion.c: Likewise.
51581         * lib/javaversion.h: Likewise.
51582         * lib/javaversion.java: Likewise.
51583         * lib/lbrkprop.h: Likewise.
51584         * lib/lchmod.h: Likewise.
51585         * lib/lchown.c: Likewise.
51586         * lib/ldexpl.c: Likewise.
51587         * lib/linebreak.c: Likewise.
51588         * lib/linebreak.h: Likewise.
51589         * lib/linebuffer.c: Likewise.
51590         * lib/linebuffer.h: Likewise.
51591         * lib/locale.in.h: Likewise.
51592         * lib/logl.c: Likewise.
51593         * lib/long-options.c: Likewise.
51594         * lib/long-options.h: Likewise.
51595         * lib/lstat.c: Likewise.
51596         * lib/lstat.h: Likewise.
51597         * lib/math.in.h: Likewise.
51598         * lib/mbchar.c: Likewise.
51599         * lib/mbchar.h: Likewise.
51600         * lib/mbfile.h: Likewise.
51601         * lib/mbiter.h: Likewise.
51602         * lib/mbscasecmp.c: Likewise.
51603         * lib/mbscasestr.c: Likewise.
51604         * lib/mbschr.c: Likewise.
51605         * lib/mbscspn.c: Likewise.
51606         * lib/mbslen.c: Likewise.
51607         * lib/mbsncasecmp.c: Likewise.
51608         * lib/mbsnlen.c: Likewise.
51609         * lib/mbspbrk.c: Likewise.
51610         * lib/mbspcasecmp.c: Likewise.
51611         * lib/mbsrchr.c: Likewise.
51612         * lib/mbssep.c: Likewise.
51613         * lib/mbsspn.c: Likewise.
51614         * lib/mbsstr.c: Likewise.
51615         * lib/mbstok_r.c: Likewise.
51616         * lib/mbswidth.c: Likewise.
51617         * lib/mbswidth.h: Likewise.
51618         * lib/mbuiter.h: Likewise.
51619         * lib/memcasecmp.c: Likewise.
51620         * lib/memcasecmp.h: Likewise.
51621         * lib/memchr.c: Likewise.
51622         * lib/memcmp.c: Likewise.
51623         * lib/memcoll.c: Likewise.
51624         * lib/memcoll.h: Likewise.
51625         * lib/memcpy.c: Likewise.
51626         * lib/memrchr.c: Likewise.
51627         * lib/mkancesdirs.c: Likewise.
51628         * lib/mkdir-p.c: Likewise.
51629         * lib/mkdir-p.h: Likewise.
51630         * lib/mkdir.c: Likewise.
51631         * lib/mkdirat.c: Likewise.
51632         * lib/mkdtemp.c: Likewise.
51633         * lib/mkstemp-safer.c: Likewise.
51634         * lib/mkstemp.c: Likewise.
51635         * lib/modechange.c: Likewise.
51636         * lib/modechange.h: Likewise.
51637         * lib/mountlist.c: Likewise.
51638         * lib/mountlist.h: Likewise.
51639         * lib/mpsort.c: Likewise.
51640         * lib/nanosleep.c: Likewise.
51641         * lib/obstack.c: Likewise.
51642         * lib/obstack.h: Likewise.
51643         * lib/open-safer.c: Likewise.
51644         * lib/open.c: Likewise.
51645         * lib/openat-die.c: Likewise.
51646         * lib/openat-priv.h: Likewise.
51647         * lib/openat-proc.c: Likewise.
51648         * lib/openat.c: Likewise.
51649         * lib/openat.h: Likewise.
51650         * lib/pagealign_alloc.c: Likewise.
51651         * lib/pagealign_alloc.h: Likewise.
51652         * lib/physmem.c: Likewise.
51653         * lib/physmem.h: Likewise.
51654         * lib/pipe-safer.c: Likewise.
51655         * lib/pipe.c: Likewise.
51656         * lib/pipe.h: Likewise.
51657         * lib/posixtm.c: Likewise.
51658         * lib/posixtm.h: Likewise.
51659         * lib/posixver.c: Likewise.
51660         * lib/printf-frexp.c: Likewise.
51661         * lib/printf-frexp.h: Likewise.
51662         * lib/printf-frexpl.c: Likewise.
51663         * lib/printf-frexpl.h: Likewise.
51664         * lib/printf.c: Likewise.
51665         * lib/progname.c: Likewise.
51666         * lib/progname.h: Likewise.
51667         * lib/progreloc.c: Likewise.
51668         * lib/putenv.c: Likewise.
51669         * lib/quote.c: Likewise.
51670         * lib/quote.h: Likewise.
51671         * lib/quotearg.c: Likewise.
51672         * lib/quotearg.h: Likewise.
51673         * lib/raise.c: Likewise.
51674         * lib/readline.c: Likewise.
51675         * lib/readline.h: Likewise.
51676         * lib/readlink.c: Likewise.
51677         * lib/readtokens.c: Likewise.
51678         * lib/readtokens.h: Likewise.
51679         * lib/readtokens0.c: Likewise.
51680         * lib/readtokens0.h: Likewise.
51681         * lib/readutmp.c: Likewise.
51682         * lib/readutmp.h: Likewise.
51683         * lib/realloc.c: Likewise.
51684         * lib/relocwrapper.c: Likewise.
51685         * lib/rename-dest-slash.c: Likewise.
51686         * lib/rename.c: Likewise.
51687         * lib/rmdir.c: Likewise.
51688         * lib/rpmatch.c: Likewise.
51689         * lib/safe-read.c: Likewise.
51690         * lib/safe-read.h: Likewise.
51691         * lib/safe-write.c: Likewise.
51692         * lib/safe-write.h: Likewise.
51693         * lib/same-inode.h: Likewise.
51694         * lib/same.c: Likewise.
51695         * lib/same.h: Likewise.
51696         * lib/save-cwd.c: Likewise.
51697         * lib/save-cwd.h: Likewise.
51698         * lib/savedir.c: Likewise.
51699         * lib/savedir.h: Likewise.
51700         * lib/savewd.c: Likewise.
51701         * lib/savewd.h: Likewise.
51702         * lib/search.in.h: Likewise.
51703         * lib/setenv.c: Likewise.
51704         * lib/setenv.h: Likewise.
51705         * lib/settime.c: Likewise.
51706         * lib/sh-quote.c: Likewise.
51707         * lib/sh-quote.h: Likewise.
51708         * lib/sig2str.c: Likewise.
51709         * lib/sig2str.h: Likewise.
51710         * lib/signal.in.h: Likewise.
51711         * lib/signbitd.c: Likewise.
51712         * lib/signbitf.c: Likewise.
51713         * lib/signbitl.c: Likewise.
51714         * lib/sigprocmask.c: Likewise.
51715         * lib/sincosl.c: Likewise.
51716         * lib/sleep.c: Likewise.
51717         * lib/sprintf.c: Likewise.
51718         * lib/sqrtl.c: Likewise.
51719         * lib/stat-time.h: Likewise.
51720         * lib/stdio--.h: Likewise.
51721         * lib/stdio-safer.h: Likewise.
51722         * lib/stdlib--.h: Likewise.
51723         * lib/stdlib-safer.h: Likewise.
51724         * lib/stdlib.in.h: Likewise.
51725         * lib/stpcpy.c: Likewise.
51726         * lib/stpncpy.c: Likewise.
51727         * lib/strchrnul.c: Likewise.
51728         * lib/strcspn.c: Likewise.
51729         * lib/strerror.c: Likewise.
51730         * lib/strftime.c: Likewise.
51731         * lib/strftime.h: Likewise.
51732         * lib/striconveh.c: Likewise.
51733         * lib/striconveh.h: Likewise.
51734         * lib/striconveha.c: Likewise.
51735         * lib/striconveha.h: Likewise.
51736         * lib/stripslash.c: Likewise.
51737         * lib/strnlen1.c: Likewise.
51738         * lib/strnlen1.h: Likewise.
51739         * lib/strtod.c: Likewise.
51740         * lib/strtoimax.c: Likewise.
51741         * lib/strtok_r.c: Likewise.
51742         * lib/strtol.c: Likewise.
51743         * lib/strtoll.c: Likewise.
51744         * lib/strtoul.c: Likewise.
51745         * lib/strtoull.c: Likewise.
51746         * lib/sysexits.in.h: Likewise.
51747         * lib/tempname.c: Likewise.
51748         * lib/tempname.h: Likewise.
51749         * lib/timespec.h: Likewise.
51750         * lib/tls.c: Likewise.
51751         * lib/tls.h: Likewise.
51752         * lib/tmpdir.c: Likewise.
51753         * lib/tmpdir.h: Likewise.
51754         * lib/tmpfile-safer.c: Likewise.
51755         * lib/tmpfile.c: Likewise.
51756         * lib/trigl.c: Likewise.
51757         * lib/trigl.h: Likewise.
51758         * lib/trim.c: Likewise.
51759         * lib/trim.h: Likewise.
51760         * lib/trunc.c: Likewise.
51761         * lib/truncf.c: Likewise.
51762         * lib/truncl.c: Likewise.
51763         * lib/tsearch.c: Likewise.
51764         * lib/unicodeio.c: Likewise.
51765         * lib/unicodeio.h: Likewise.
51766         * lib/unistd--.h: Likewise.
51767         * lib/unistd-safer.h: Likewise.
51768         * lib/unistdio/ulc-fprintf.c: Likewise.
51769         * lib/unistdio/ulc-vfprintf.c: Likewise.
51770         * lib/unlinkdir.c: Likewise.
51771         * lib/unlinkdir.h: Likewise.
51772         * lib/unlocked-io.h: Likewise.
51773         * lib/unsetenv.c: Likewise.
51774         * lib/userspec.c: Likewise.
51775         * lib/utime.c: Likewise.
51776         * lib/utimecmp.c: Likewise.
51777         * lib/utimecmp.h: Likewise.
51778         * lib/utimens.c: Likewise.
51779         * lib/verify.h: Likewise.
51780         * lib/verror.c: Likewise.
51781         * lib/verror.h: Likewise.
51782         * lib/version-etc-fsf.c: Likewise.
51783         * lib/version-etc.c: Likewise.
51784         * lib/version-etc.h: Likewise.
51785         * lib/vfprintf.c: Likewise.
51786         * lib/vprintf.c: Likewise.
51787         * lib/vsprintf.c: Likewise.
51788         * lib/w32spawn.h: Likewise.
51789         * lib/wait-process.c: Likewise.
51790         * lib/wait-process.h: Likewise.
51791         * lib/wcwidth.c: Likewise.
51792         * lib/write-any-file.c: Likewise.
51793         * lib/xalloc-die.c: Likewise.
51794         * lib/xalloc.h: Likewise.
51795         * lib/xasprintf.c: Likewise.
51796         * lib/xgetcwd.c: Likewise.
51797         * lib/xgetcwd.h: Likewise.
51798         * lib/xgetdomainname.c: Likewise.
51799         * lib/xgetdomainname.h: Likewise.
51800         * lib/xgethostname.c: Likewise.
51801         * lib/xmalloc.c: Likewise.
51802         * lib/xmalloca.c: Likewise.
51803         * lib/xmalloca.h: Likewise.
51804         * lib/xmemcoll.c: Likewise.
51805         * lib/xnanosleep.c: Likewise.
51806         * lib/xreadlink.c: Likewise.
51807         * lib/xreadlink.h: Likewise.
51808         * lib/xsetenv.c: Likewise.
51809         * lib/xsetenv.h: Likewise.
51810         * lib/xstriconv.c: Likewise.
51811         * lib/xstriconv.h: Likewise.
51812         * lib/xstrndup.c: Likewise.
51813         * lib/xstrndup.h: Likewise.
51814         * lib/xstrtod.c: Likewise.
51815         * lib/xstrtod.h: Likewise.
51816         * lib/xstrtol-error.c: Likewise.
51817         * lib/xstrtol.c: Likewise.
51818         * lib/xstrtol.h: Likewise.
51819         * lib/xtime.h: Likewise.
51820         * lib/xvasprintf.c: Likewise.
51821         * lib/xvasprintf.h: Likewise.
51822         * lib/yesno.c: Likewise.
51823         * lib/yesno.h: Likewise.
51824         * posix-modules: Likewise.
51825         * tests/test-alloca-opt.c: Likewise.
51826         * tests/test-arcfour.c: Likewise.
51827         * tests/test-arctwo.c: Likewise.
51828         * tests/test-argmatch.c: Likewise.
51829         * tests/test-argp-2.sh: Likewise.
51830         * tests/test-argp.c: Likewise.
51831         * tests/test-arpa_inet.c: Likewise.
51832         * tests/test-array_list.c: Likewise.
51833         * tests/test-array_oset.c: Likewise.
51834         * tests/test-atexit.c: Likewise.
51835         * tests/test-avltree_list.c: Likewise.
51836         * tests/test-avltree_oset.c: Likewise.
51837         * tests/test-avltreehash_list.c: Likewise.
51838         * tests/test-base64.c: Likewise.
51839         * tests/test-binary-io.c: Likewise.
51840         * tests/test-byteswap.c: Likewise.
51841         * tests/test-c-ctype.c: Likewise.
51842         * tests/test-c-strcasecmp.c: Likewise.
51843         * tests/test-c-strcasestr.c: Likewise.
51844         * tests/test-c-strncasecmp.c: Likewise.
51845         * tests/test-c-strstr.c: Likewise.
51846         * tests/test-canonicalize-lgpl.c: Likewise.
51847         * tests/test-canonicalize.c: Likewise.
51848         * tests/test-carray_list.c: Likewise.
51849         * tests/test-ceilf.c: Likewise.
51850         * tests/test-ceill.c: Likewise.
51851         * tests/test-count-one-bits.c: Likewise.
51852         * tests/test-crc.c: Likewise.
51853         * tests/test-dirname.c: Likewise.
51854         * tests/test-fbufmode.c: Likewise.
51855         * tests/test-fcntl.c: Likewise.
51856         * tests/test-fflush.c: Likewise.
51857         * tests/test-floorf.c: Likewise.
51858         * tests/test-floorl.c: Likewise.
51859         * tests/test-fopen.c: Likewise.
51860         * tests/test-fprintf-posix.c: Likewise.
51861         * tests/test-fprintf-posix.h: Likewise.
51862         * tests/test-fpurge.c: Likewise.
51863         * tests/test-freadable.c: Likewise.
51864         * tests/test-freadahead.c: Likewise.
51865         * tests/test-freading.c: Likewise.
51866         * tests/test-freopen.c: Likewise.
51867         * tests/test-frexp.c: Likewise.
51868         * tests/test-frexpl.c: Likewise.
51869         * tests/test-fseek.c: Likewise.
51870         * tests/test-fseeko.c: Likewise.
51871         * tests/test-fseterr.c: Likewise.
51872         * tests/test-fstrcmp.c: Likewise.
51873         * tests/test-ftell.c: Likewise.
51874         * tests/test-ftello.c: Likewise.
51875         * tests/test-fwritable.c: Likewise.
51876         * tests/test-fwriting.c: Likewise.
51877         * tests/test-getaddrinfo.c: Likewise.
51878         * tests/test-getpass.c: Likewise.
51879         * tests/test-gettimeofday.c: Likewise.
51880         * tests/test-hmac-md5.c: Likewise.
51881         * tests/test-hmac-sha1.c: Likewise.
51882         * tests/test-iconv.c: Likewise.
51883         * tests/test-iconvme.c: Likewise.
51884         * tests/test-inttypes.c: Likewise.
51885         * tests/test-isnan.c: Likewise.
51886         * tests/test-isnanf.c: Likewise.
51887         * tests/test-isnanl-nolibm.c: Likewise.
51888         * tests/test-isnanl.c: Likewise.
51889         * tests/test-isnanl.h: Likewise.
51890         * tests/test-ldexpl.c: Likewise.
51891         * tests/test-linked_list.c: Likewise.
51892         * tests/test-linkedhash_list.c: Likewise.
51893         * tests/test-locale.c: Likewise.
51894         * tests/test-localename.c: Likewise.
51895         * tests/test-lock.c: Likewise.
51896         * tests/test-lseek.c: Likewise.
51897         * tests/test-malloca.c: Likewise.
51898         * tests/test-math.c: Likewise.
51899         * tests/test-mbscasecmp.c: Likewise.
51900         * tests/test-mbscasestr1.c: Likewise.
51901         * tests/test-mbscasestr2.c: Likewise.
51902         * tests/test-mbscasestr3.c: Likewise.
51903         * tests/test-mbscasestr4.c: Likewise.
51904         * tests/test-mbschr.c: Likewise.
51905         * tests/test-mbscspn.c: Likewise.
51906         * tests/test-mbsncasecmp.c: Likewise.
51907         * tests/test-mbspbrk.c: Likewise.
51908         * tests/test-mbspcasecmp.c: Likewise.
51909         * tests/test-mbsrchr.c: Likewise.
51910         * tests/test-mbsspn.c: Likewise.
51911         * tests/test-mbsstr1.c: Likewise.
51912         * tests/test-mbsstr2.c: Likewise.
51913         * tests/test-mbsstr3.c: Likewise.
51914         * tests/test-md5.c: Likewise.
51915         * tests/test-memmem.c: Likewise.
51916         * tests/test-netinet_in.c: Likewise.
51917         * tests/test-open.c: Likewise.
51918         * tests/test-printf-frexp.c: Likewise.
51919         * tests/test-printf-frexpl.c: Likewise.
51920         * tests/test-printf-posix.c: Likewise.
51921         * tests/test-printf-posix.h: Likewise.
51922         * tests/test-rbtree_list.c: Likewise.
51923         * tests/test-rbtree_oset.c: Likewise.
51924         * tests/test-rbtreehash_list.c: Likewise.
51925         * tests/test-read-file.c: Likewise.
51926         * tests/test-rijndael.c: Likewise.
51927         * tests/test-search.c: Likewise.
51928         * tests/test-signbit.c: Likewise.
51929         * tests/test-sleep.c: Likewise.
51930         * tests/test-snprintf-posix.c: Likewise.
51931         * tests/test-snprintf-posix.h: Likewise.
51932         * tests/test-snprintf.c: Likewise.
51933         * tests/test-sprintf-posix.c: Likewise.
51934         * tests/test-sprintf-posix.h: Likewise.
51935         * tests/test-stat-time.c: Likewise.
51936         * tests/test-stdbool.c: Likewise.
51937         * tests/test-stdint.c: Likewise.
51938         * tests/test-stdio.c: Likewise.
51939         * tests/test-stdlib.c: Likewise.
51940         * tests/test-stpncpy.c: Likewise.
51941         * tests/test-strcasestr.c: Likewise.
51942         * tests/test-striconv.c: Likewise.
51943         * tests/test-striconveh.c: Likewise.
51944         * tests/test-striconveha.c: Likewise.
51945         * tests/test-string.c: Likewise.
51946         * tests/test-sys_select.c: Likewise.
51947         * tests/test-sys_socket.c: Likewise.
51948         * tests/test-sys_stat.c: Likewise.
51949         * tests/test-sys_time.c: Likewise.
51950         * tests/test-sysexits.c: Likewise.
51951         * tests/test-time.c: Likewise.
51952         * tests/test-tls.c: Likewise.
51953         * tests/test-trunc.c: Likewise.
51954         * tests/test-truncf.c: Likewise.
51955         * tests/test-truncl.c: Likewise.
51956         * tests/test-unistd.c: Likewise.
51957         * tests/test-vasnprintf-posix.c: Likewise.
51958         * tests/test-vasnprintf-posix2.c: Likewise.
51959         * tests/test-vasnprintf.c: Likewise.
51960         * tests/test-vasprintf-posix.c: Likewise.
51961         * tests/test-vasprintf.c: Likewise.
51962         * tests/test-verify.c: Likewise.
51963         * tests/test-vfprintf-posix.c: Likewise.
51964         * tests/test-vprintf-posix.c: Likewise.
51965         * tests/test-vsnprintf-posix.c: Likewise.
51966         * tests/test-vsnprintf.c: Likewise.
51967         * tests/test-vsprintf-posix.c: Likewise.
51968         * tests/test-wchar.c: Likewise.
51969         * tests/test-wctype.c: Likewise.
51970         * tests/test-wcwidth.c: Likewise.
51971         * tests/test-xstrtol.c: Likewise.
51972         * tests/test-xvasprintf.c: Likewise.
51973         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
51974         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
51975         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
51976         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
51977         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
51978         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
51979         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
51980         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
51981         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
51982         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
51983         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
51984         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
51985         * tests/uniname/test-uninames.c: Likewise.
51986         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
51987         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
51988         * tests/unistdio/test-u16-printf1.h: Likewise.
51989         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
51990         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
51991         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
51992         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
51993         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
51994         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
51995         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
51996         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
51997         * tests/unistdio/test-u32-printf1.h: Likewise.
51998         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
51999         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52000         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52001         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52002         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52003         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52004         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52005         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52006         * tests/unistdio/test-u8-printf1.h: Likewise.
52007         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52008         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52009         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52010         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52011         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52012         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52013         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52014         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52015         * tests/unistdio/test-ulc-printf1.h: Likewise.
52016         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52017         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52018         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52019         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52020         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52021         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52022         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52023         * tests/uniwidth/test-u16-width.c: Likewise.
52024         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52025         * tests/uniwidth/test-u32-width.c: Likewise.
52026         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52027         * tests/uniwidth/test-u8-width.c: Likewise.
52028         * tests/uniwidth/test-uc_width.c: Likewise.
52029         * config/srclist-update: Likewise.
52030         (fixlicense): Update to GPLv3+.
52031
52032         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52033         * tests/test-tsearch.c: Change copyright notice.
52034
52035         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52036         * lib/c-strcaseeq.h: Change copyright notice.
52037         * lib/streq.h: Likewise.
52038         * lib/uniconv.h: Likewise.
52039         * lib/uniconv/u-conv-from-enc.h: Likewise.
52040         * lib/uniconv/u-conv-to-enc.h: Likewise.
52041         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52042         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52043         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52044         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52045         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52046         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52047         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52048         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52049         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52050         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52051         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52052         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52053         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52054         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52055         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52056         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52057         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52058         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52059         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52060         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52061         * lib/uniname.h: Likewise.
52062         * lib/uniname/uniname.c: Likewise.
52063         * lib/unistdio.h: Likewise.
52064         * lib/unistdio/u-asnprintf.h: Likewise.
52065         * lib/unistdio/u-asprintf.h: Likewise.
52066         * lib/unistdio/u-printf-args.c: Likewise.
52067         * lib/unistdio/u-printf-args.h: Likewise.
52068         * lib/unistdio/u-printf-parse.h: Likewise.
52069         * lib/unistdio/u-snprintf.h: Likewise.
52070         * lib/unistdio/u-sprintf.h: Likewise.
52071         * lib/unistdio/u-vasprintf.h: Likewise.
52072         * lib/unistdio/u-vsnprintf.h: Likewise.
52073         * lib/unistdio/u-vsprintf.h: Likewise.
52074         * lib/unistdio/u16-asnprintf.c: Likewise.
52075         * lib/unistdio/u16-asprintf.c: Likewise.
52076         * lib/unistdio/u16-printf-parse.c: Likewise.
52077         * lib/unistdio/u16-snprintf.c: Likewise.
52078         * lib/unistdio/u16-sprintf.c: Likewise.
52079         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52080         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52081         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52082         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52083         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52084         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52085         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52086         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52087         * lib/unistdio/u16-vasnprintf.c: Likewise.
52088         * lib/unistdio/u16-vasprintf.c: Likewise.
52089         * lib/unistdio/u16-vsnprintf.c: Likewise.
52090         * lib/unistdio/u16-vsprintf.c: Likewise.
52091         * lib/unistdio/u32-asnprintf.c: Likewise.
52092         * lib/unistdio/u32-asprintf.c: Likewise.
52093         * lib/unistdio/u32-printf-parse.c: Likewise.
52094         * lib/unistdio/u32-snprintf.c: Likewise.
52095         * lib/unistdio/u32-sprintf.c: Likewise.
52096         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52097         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52098         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52099         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52100         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52101         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52102         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52103         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52104         * lib/unistdio/u32-vasnprintf.c: Likewise.
52105         * lib/unistdio/u32-vasprintf.c: Likewise.
52106         * lib/unistdio/u32-vsnprintf.c: Likewise.
52107         * lib/unistdio/u32-vsprintf.c: Likewise.
52108         * lib/unistdio/u8-asnprintf.c: Likewise.
52109         * lib/unistdio/u8-asprintf.c: Likewise.
52110         * lib/unistdio/u8-printf-parse.c: Likewise.
52111         * lib/unistdio/u8-snprintf.c: Likewise.
52112         * lib/unistdio/u8-sprintf.c: Likewise.
52113         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52114         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52115         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52116         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52117         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52118         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52119         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52120         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52121         * lib/unistdio/u8-vasnprintf.c: Likewise.
52122         * lib/unistdio/u8-vasprintf.c: Likewise.
52123         * lib/unistdio/u8-vsnprintf.c: Likewise.
52124         * lib/unistdio/u8-vsprintf.c: Likewise.
52125         * lib/unistdio/ulc-asnprintf.c: Likewise.
52126         * lib/unistdio/ulc-asprintf.c: Likewise.
52127         * lib/unistdio/ulc-printf-parse.c: Likewise.
52128         * lib/unistdio/ulc-snprintf.c: Likewise.
52129         * lib/unistdio/ulc-sprintf.c: Likewise.
52130         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52131         * lib/unistdio/ulc-vasprintf.c: Likewise.
52132         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52133         * lib/unistdio/ulc-vsprintf.c: Likewise.
52134         * lib/unistr.h: Likewise.
52135         * lib/unistr/u-cpy-alloc.h: Likewise.
52136         * lib/unistr/u-cpy.h: Likewise.
52137         * lib/unistr/u-endswith.h: Likewise.
52138         * lib/unistr/u-move.h: Likewise.
52139         * lib/unistr/u-set.h: Likewise.
52140         * lib/unistr/u-startswith.h: Likewise.
52141         * lib/unistr/u-stpcpy.h: Likewise.
52142         * lib/unistr/u-stpncpy.h: Likewise.
52143         * lib/unistr/u-strcat.h: Likewise.
52144         * lib/unistr/u-strcpy.h: Likewise.
52145         * lib/unistr/u-strcspn.h: Likewise.
52146         * lib/unistr/u-strdup.h: Likewise.
52147         * lib/unistr/u-strlen.h: Likewise.
52148         * lib/unistr/u-strncat.h: Likewise.
52149         * lib/unistr/u-strncpy.h: Likewise.
52150         * lib/unistr/u-strnlen.h: Likewise.
52151         * lib/unistr/u-strpbrk.h: Likewise.
52152         * lib/unistr/u-strspn.h: Likewise.
52153         * lib/unistr/u-strstr.h: Likewise.
52154         * lib/unistr/u-strtok.h: Likewise.
52155         * lib/unistr/u16-check.c: Likewise.
52156         * lib/unistr/u16-chr.c: Likewise.
52157         * lib/unistr/u16-cmp.c: Likewise.
52158         * lib/unistr/u16-cpy-alloc.c: Likewise.
52159         * lib/unistr/u16-cpy.c: Likewise.
52160         * lib/unistr/u16-endswith.c: Likewise.
52161         * lib/unistr/u16-mblen.c: Likewise.
52162         * lib/unistr/u16-mbsnlen.c: Likewise.
52163         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52164         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52165         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52166         * lib/unistr/u16-mbtouc.c: Likewise.
52167         * lib/unistr/u16-mbtoucr.c: Likewise.
52168         * lib/unistr/u16-move.c: Likewise.
52169         * lib/unistr/u16-next.c: Likewise.
52170         * lib/unistr/u16-prev.c: Likewise.
52171         * lib/unistr/u16-set.c: Likewise.
52172         * lib/unistr/u16-startswith.c: Likewise.
52173         * lib/unistr/u16-stpcpy.c: Likewise.
52174         * lib/unistr/u16-stpncpy.c: Likewise.
52175         * lib/unistr/u16-strcat.c: Likewise.
52176         * lib/unistr/u16-strchr.c: Likewise.
52177         * lib/unistr/u16-strcmp.c: Likewise.
52178         * lib/unistr/u16-strcpy.c: Likewise.
52179         * lib/unistr/u16-strcspn.c: Likewise.
52180         * lib/unistr/u16-strdup.c: Likewise.
52181         * lib/unistr/u16-strlen.c: Likewise.
52182         * lib/unistr/u16-strmblen.c: Likewise.
52183         * lib/unistr/u16-strmbtouc.c: Likewise.
52184         * lib/unistr/u16-strncat.c: Likewise.
52185         * lib/unistr/u16-strncmp.c: Likewise.
52186         * lib/unistr/u16-strncpy.c: Likewise.
52187         * lib/unistr/u16-strnlen.c: Likewise.
52188         * lib/unistr/u16-strpbrk.c: Likewise.
52189         * lib/unistr/u16-strrchr.c: Likewise.
52190         * lib/unistr/u16-strspn.c: Likewise.
52191         * lib/unistr/u16-strstr.c: Likewise.
52192         * lib/unistr/u16-strtok.c: Likewise.
52193         * lib/unistr/u16-to-u32.c: Likewise.
52194         * lib/unistr/u16-to-u8.c: Likewise.
52195         * lib/unistr/u16-uctomb-aux.c: Likewise.
52196         * lib/unistr/u16-uctomb.c: Likewise.
52197         * lib/unistr/u32-check.c: Likewise.
52198         * lib/unistr/u32-chr.c: Likewise.
52199         * lib/unistr/u32-cmp.c: Likewise.
52200         * lib/unistr/u32-cpy-alloc.c: Likewise.
52201         * lib/unistr/u32-cpy.c: Likewise.
52202         * lib/unistr/u32-endswith.c: Likewise.
52203         * lib/unistr/u32-mblen.c: Likewise.
52204         * lib/unistr/u32-mbsnlen.c: Likewise.
52205         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52206         * lib/unistr/u32-mbtouc.c: Likewise.
52207         * lib/unistr/u32-mbtoucr.c: Likewise.
52208         * lib/unistr/u32-move.c: Likewise.
52209         * lib/unistr/u32-next.c: Likewise.
52210         * lib/unistr/u32-prev.c: Likewise.
52211         * lib/unistr/u32-set.c: Likewise.
52212         * lib/unistr/u32-startswith.c: Likewise.
52213         * lib/unistr/u32-stpcpy.c: Likewise.
52214         * lib/unistr/u32-stpncpy.c: Likewise.
52215         * lib/unistr/u32-strcat.c: Likewise.
52216         * lib/unistr/u32-strchr.c: Likewise.
52217         * lib/unistr/u32-strcmp.c: Likewise.
52218         * lib/unistr/u32-strcpy.c: Likewise.
52219         * lib/unistr/u32-strcspn.c: Likewise.
52220         * lib/unistr/u32-strdup.c: Likewise.
52221         * lib/unistr/u32-strlen.c: Likewise.
52222         * lib/unistr/u32-strmblen.c: Likewise.
52223         * lib/unistr/u32-strmbtouc.c: Likewise.
52224         * lib/unistr/u32-strncat.c: Likewise.
52225         * lib/unistr/u32-strncmp.c: Likewise.
52226         * lib/unistr/u32-strncpy.c: Likewise.
52227         * lib/unistr/u32-strnlen.c: Likewise.
52228         * lib/unistr/u32-strpbrk.c: Likewise.
52229         * lib/unistr/u32-strrchr.c: Likewise.
52230         * lib/unistr/u32-strspn.c: Likewise.
52231         * lib/unistr/u32-strstr.c: Likewise.
52232         * lib/unistr/u32-strtok.c: Likewise.
52233         * lib/unistr/u32-to-u16.c: Likewise.
52234         * lib/unistr/u32-to-u8.c: Likewise.
52235         * lib/unistr/u32-uctomb.c: Likewise.
52236         * lib/unistr/u8-check.c: Likewise.
52237         * lib/unistr/u8-chr.c: Likewise.
52238         * lib/unistr/u8-cmp.c: Likewise.
52239         * lib/unistr/u8-cpy-alloc.c: Likewise.
52240         * lib/unistr/u8-cpy.c: Likewise.
52241         * lib/unistr/u8-endswith.c: Likewise.
52242         * lib/unistr/u8-mblen.c: Likewise.
52243         * lib/unistr/u8-mbsnlen.c: Likewise.
52244         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52245         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52246         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52247         * lib/unistr/u8-mbtouc.c: Likewise.
52248         * lib/unistr/u8-mbtoucr.c: Likewise.
52249         * lib/unistr/u8-move.c: Likewise.
52250         * lib/unistr/u8-next.c: Likewise.
52251         * lib/unistr/u8-prev.c: Likewise.
52252         * lib/unistr/u8-set.c: Likewise.
52253         * lib/unistr/u8-startswith.c: Likewise.
52254         * lib/unistr/u8-stpcpy.c: Likewise.
52255         * lib/unistr/u8-stpncpy.c: Likewise.
52256         * lib/unistr/u8-strcat.c: Likewise.
52257         * lib/unistr/u8-strchr.c: Likewise.
52258         * lib/unistr/u8-strcmp.c: Likewise.
52259         * lib/unistr/u8-strcpy.c: Likewise.
52260         * lib/unistr/u8-strcspn.c: Likewise.
52261         * lib/unistr/u8-strdup.c: Likewise.
52262         * lib/unistr/u8-strlen.c: Likewise.
52263         * lib/unistr/u8-strmblen.c: Likewise.
52264         * lib/unistr/u8-strmbtouc.c: Likewise.
52265         * lib/unistr/u8-strncat.c: Likewise.
52266         * lib/unistr/u8-strncmp.c: Likewise.
52267         * lib/unistr/u8-strncpy.c: Likewise.
52268         * lib/unistr/u8-strnlen.c: Likewise.
52269         * lib/unistr/u8-strpbrk.c: Likewise.
52270         * lib/unistr/u8-strrchr.c: Likewise.
52271         * lib/unistr/u8-strspn.c: Likewise.
52272         * lib/unistr/u8-strstr.c: Likewise.
52273         * lib/unistr/u8-strtok.c: Likewise.
52274         * lib/unistr/u8-to-u16.c: Likewise.
52275         * lib/unistr/u8-to-u32.c: Likewise.
52276         * lib/unistr/u8-uctomb-aux.c: Likewise.
52277         * lib/unistr/u8-uctomb.c: Likewise.
52278         * lib/unitypes.h: Likewise.
52279         * lib/uniwidth.h: Likewise.
52280         * lib/uniwidth/cjk.h: Likewise.
52281         * lib/uniwidth/u16-strwidth.c: Likewise.
52282         * lib/uniwidth/u16-width.c: Likewise.
52283         * lib/uniwidth/u32-strwidth.c: Likewise.
52284         * lib/uniwidth/u32-width.c: Likewise.
52285         * lib/uniwidth/u8-strwidth.c: Likewise.
52286         * lib/uniwidth/u8-width.c: Likewise.
52287         * lib/uniwidth/width.c: Likewise.
52288
52289 2007-10-07  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52292         The file is still under LGPL (see modules/inttypes).
52293
52294 2007-10-06  Bruno Haible  <bruno@clisp.org>
52295
52296         * modules/trunc (Dependencies): Add 'extensions'.
52297         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52298         Reported by Ben Pfaff <blp@gnu.org>.
52299
52300 2007-10-06  Bruno Haible  <bruno@clisp.org>
52301
52302         * modules/freopen-tests: New file.
52303         * tests/test-freopen.c: New file.
52304
52305         * modules/fopen-tests: New file.
52306         * tests/test-fopen.c: New file.
52307
52308         * modules/fopen: New file.
52309         * lib/fopen.c: New file.
52310         * m4/fopen.m4: New file.
52311         * modules/freopen: New file.
52312         * lib/freopen.c: New file.
52313         * m4/freopen.m4: New file.
52314         * lib/stdio.in.h (fopen, freopen): New declarations.
52315         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52316         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52317         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52318         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52319         * doc/functions/fopen.texi: Mention the 'fopen' module.
52320         * doc/functions/freopen.texi: Mention the 'freopen' module.
52321
52322 2007-10-06  Bruno Haible  <bruno@clisp.org>
52323
52324         * modules/open-tests: New file.
52325         * tests/test-open.c: New file.
52326
52327         * modules/open: New file.
52328         * lib/open.c: New file.
52329         * m4/open.m4: New file.
52330         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52331         lib/open.c does.
52332         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52333         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52334         macros.
52335         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52336         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52337         REPLACE_OPEN.
52338         * doc/functions/open.texi: Mention the 'open' module.
52339
52340 2007-10-04  Bruno Haible  <bruno@clisp.org>
52341
52342         * modules/ceill-tests: New file.
52343         * tests/test-ceill.c: New file.
52344
52345         * modules/ceill: New file.
52346         * lib/ceill.c: Replace entire file.
52347         * m4/ceill.m4: New file.
52348         * lib/math.in.h (ceill): Replace declaration.
52349         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52350         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52351         * doc/functions/ceill.texi: Mention the 'ceill' module.
52352         * modules/mathl (Files): Remove lib/ceill.c.
52353         (Depends-on): Add ceill.
52354
52355 2007-10-04  Bruno Haible  <bruno@clisp.org>
52356
52357         * modules/ceilf-tests: New file.
52358         * tests/test-ceilf.c: New file.
52359
52360         * modules/ceilf: New file.
52361         * lib/ceil.c: New file.
52362         * lib/ceilf.c: New file.
52363         * m4/ceilf.m4: New file.
52364         * lib/math.in.h (ceilf): New declaration.
52365         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52366         HAVE_DECL_CEILF.
52367         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52368         HAVE_DECL_CEILF.
52369         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52370
52371 2007-10-04  Bruno Haible  <bruno@clisp.org>
52372
52373         * modules/floorl-tests: New file.
52374         * tests/test-floorl.c: New file.
52375
52376         * modules/floorl: New file.
52377         * lib/floorl.c: Replace entire file.
52378         * m4/floorl.m4: New file.
52379         * lib/math.in.h (floorl): Replace declaration.
52380         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52381         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52382         * doc/functions/floorl.texi: Mention the 'floorl' module.
52383         * modules/mathl (Files): Remove lib/floorl.c.
52384         (Depends-on): Add floorl.
52385
52386 2007-10-04  Bruno Haible  <bruno@clisp.org>
52387
52388         * modules/floorf-tests: New file.
52389         * tests/test-floorf.c: New file.
52390
52391         * modules/floorf: New file.
52392         * lib/floor.c: New file.
52393         * lib/floorf.c: New file.
52394         * m4/floorf.m4: New file.
52395         * lib/math.in.h (floorf): New declaration.
52396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52397         HAVE_DECL_FLOORF.
52398         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52399         HAVE_DECL_FLOORF.
52400         * doc/functions/floorf.texi: Mention the 'floorf' module.
52401
52402 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52403             Bruno Haible  <bruno@clisp.org>
52404
52405         Advertise for the Git server instead of the CVS server.
52406         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52407         repository instead of the CVS one.
52408         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52409         about all VCS systems generically.
52410         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52411
52412 2007-10-04  Bruno Haible  <bruno@clisp.org>
52413
52414         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52415         means.
52416         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52417
52418 2007-10-04  Bruno Haible  <bruno@clisp.org>
52419
52420         * modules/truncl-tests: New file.
52421         * tests/test-truncl.c: New file.
52422
52423         * modules/truncl: New file.
52424         * lib/truncl.c: New file.
52425         * m4/truncl.m4: New file.
52426         * lib/math.in.h (truncl): New declaration.
52427         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52428         HAVE_DECL_TRUNCL.
52429         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52430         HAVE_DECL_TRUNCL.
52431         * doc/functions/truncl.texi: Mention the 'truncl' module.
52432
52433 2007-10-04  Bruno Haible  <bruno@clisp.org>
52434
52435         * modules/truncf-tests: New file.
52436         * tests/test-truncf.c: New file.
52437
52438         * modules/truncf: New file.
52439         * lib/trunc.c: Make paramerizable through USE_* macros.
52440         * lib/truncf.c: New file.
52441         * m4/truncf.m4: New file.
52442         * lib/math.in.h (truncf): New declaration.
52443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52444         HAVE_DECL_TRUNCF.
52445         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52446         HAVE_DECL_TRUNCF.
52447         * doc/functions/truncf.texi: Mention the 'truncf' module.
52448
52449 2007-10-03  Bruno Haible  <bruno@clisp.org>
52450
52451         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52452         augmentation also for tests modules.
52453         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52454         * modules/atexit-tests (Makefile.am): Likewise.
52455         * modules/binary-io-tests (Makefile.am): Likewise.
52456         * modules/c-strcase-tests (Makefile.am): Likewise.
52457         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52458         * modules/canonicalize-tests (Makefile.am): Likewise.
52459         * modules/closein-tests (Makefile.am): Likewise.
52460         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52461         * modules/freadahead-tests (Makefile.am): Likewise.
52462         * modules/fseek-tests (Makefile.am): Likewise.
52463         * modules/fseeko-tests (Makefile.am): Likewise.
52464         * modules/ftell-tests (Makefile.am): Likewise.
52465         * modules/ftello-tests (Makefile.am): Likewise.
52466         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52467         * modules/isnanl-tests (Makefile.am): Likewise.
52468         * modules/lseek-tests (Makefile.am): Likewise.
52469         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52470         * modules/mbscasestr-tests (Makefile.am): Likewise.
52471         * modules/mbschr-tests (Makefile.am): Likewise.
52472         * modules/mbscspn-tests (Makefile.am): Likewise.
52473         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52474         * modules/mbspbrk-tests (Makefile.am): Likewise.
52475         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52476         * modules/mbsrchr-tests (Makefile.am): Likewise.
52477         * modules/mbsspn-tests (Makefile.am): Likewise.
52478         * modules/mbsstr-tests (Makefile.am): Likewise.
52479         * modules/printf-posix-tests (Makefile.am): Likewise.
52480         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52481         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52482         * modules/tsearch-tests (Makefile.am): Likewise.
52483         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52484         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52485         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52486         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52487         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52488         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52489         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52490         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52491         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52492         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52493         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52494         * modules/xstrtol-tests (Makefile.am): Likewise.
52495         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52496         * modules/yesno-tests (Makefile.am): Likewise.
52497
52498 2007-10-03  Bruno Haible  <bruno@clisp.org>
52499
52500         * modules/trunc-tests: New file.
52501         * tests/test-trunc.c: New file.
52502
52503         * modules/trunc: New file.
52504         * lib/trunc.c: New file.
52505         * m4/trunc.m4: New file.
52506         * lib/math.in.h (trunc): New declaration.
52507         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52508         HAVE_DECL_TRUNC.
52509         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52510         HAVE_DECL_TRUNC.
52511         * doc/functions/trunc.texi: Mention the 'trunc' module.
52512
52513 2007-10-03  Bruno Haible  <bruno@clisp.org>
52514
52515         * tests/test-fpending.c: New file, mostly copied
52516         from coreutils/lib/t-fpending.c.
52517         * modules/fpending-tests: New file.
52518
52519 2007-10-03  Bruno Haible  <bruno@clisp.org>
52520
52521         Port the stdio extensions to QNX (untested).
52522         * lib/fseterr.c (fseterr): Add support for QNX.
52523         * lib/fbufmode.c (fbufmode): Likewise.
52524         * lib/freadable.c (freadable): Likewise.
52525         * lib/fwritable.c (fwritable): Likewise.
52526         * lib/freading.c (freading): Likewise.
52527         * lib/fwriting.c (fwriting): Likewise.
52528         * lib/freadahead.c (freadahed): Likewise.
52529         * lib/fpurge.c (fpurge): Likewise.
52530         * lib/fseeko.c (rpl_fseeko): Likewise.
52531
52532 2007-10-03  Bruno Haible  <bruno@clisp.org>
52533             Jim Meyering  <jim@meyering.net>
52534             Eric Blake  <ebb9@byu.net>
52535
52536         * doc/relocatable.texi: Use @command instead of @program.
52537
52538 2007-10-02  Jim Meyering  <jim@meyering.net>
52539
52540         Perform one more "_.h" -> ".in.h" substitution.
52541         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52542         instead of unistd_.h here, too.
52543
52544 2007-10-01  Bruno Haible  <bruno@clisp.org>
52545
52546         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52547         Needed for the alloca-opt module.
52548
52549 2007-09-30  Bruno Haible  <bruno@clisp.org>
52550
52551         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52552         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52553         alloca_.h.
52554         * lib/argz.in.h: Renamed from lib/argz_.h.
52555         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52556         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52557         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52558         byteswap_.h.
52559         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52560         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52561         dirent_.h.
52562         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52563         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52564         fcntl_.h.
52565         * lib/float.in.h: Renamed from lib/float_.h.
52566         * modules/float (Files, Makefile.am): Use float.in.h instead of
52567         float_.h.
52568         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52569         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52570         fnmatch_.h.
52571         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52572         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52573         getopt_.h.
52574         * lib/glob.in.h: Renamed from lib/glob_.h.
52575         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52576         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52577         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52578         iconv_.h.
52579         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52580         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52581         inttypes_.h.
52582         * lib/locale.in.h: Renamed from lib/locale_.h.
52583         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52584         locale_.h.
52585         * lib/math.in.h: Renamed from lib/math_.h.
52586         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52587         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52588         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52589         of netinet_in_.h. Add dependency.
52590         * lib/poll.in.h: Renamed from lib/poll_.h.
52591         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52592         * lib/search.in.h: Renamed from lib/search_.h.
52593         * modules/search (Files, Makefile.am): Use search.in.h instead of
52594         search_.h.
52595         * lib/signal.in.h: Renamed from lib/signal_.h.
52596         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52597         _signal.h.
52598         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52599         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52600         stdbool_.h.
52601         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52602         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52603         stdint_.h.
52604         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52605         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52606         stdio_.h.
52607         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52608         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52609         stdlib_.h.
52610         * lib/string.in.h: Renamed from lib/string_.h.
52611         * modules/string (Files, Makefile.am): Use string.in.h instead of
52612         string_.h.
52613         * doc/gnulib-tool.texi (Initial import): Update.
52614         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52615         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52616         of sys_select_.h. Add dependency.
52617         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52618         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52619         of sys_socket_.h.
52620         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52621         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52622         sys_stat_.h.
52623         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52624         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52625         sys_time_.h.
52626         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52627         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52628         sysexits_.h.
52629         * lib/time.in.h: Renamed from lib/time_.h.
52630         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52631         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52632         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52633         unistd_.h.
52634         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52635         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52636         wchar_.h.
52637         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52638         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52639         wctype_.h.
52640         * build-aux/bootstrap (slurp): Update.
52641         * lib/.cppi-disable: Update.
52642
52643 2007-09-30  Bruno Haible  <bruno@clisp.org>
52644
52645         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52646         Needed on BeOS.
52647
52648 2007-09-30  Bruno Haible  <bruno@clisp.org>
52649
52650         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52651
52652 2007-09-29  Bruno Haible  <bruno@clisp.org>
52653
52654         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52655
52656 2007-09-29  Bruno Haible  <bruno@clisp.org>
52657
52658         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52659         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52660         * build-aux/install-reloc: Compile also areadlink.c.
52661         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52662
52663 2007-09-29  Bruno Haible  <bruno@clisp.org>
52664
52665         * gnulib-tool (func_emit_initmacro_done): Indentation.
52666
52667 2007-09-29  Bruno Haible  <bruno@clisp.org>
52668
52669         * README: Add CVS checkout update instructions.
52670         Info from Bob Proulx <bob@proulx.com>.
52671
52672 2007-09-28  Eric Blake  <ebb9@byu.net>
52673
52674         Provide move-if-change.
52675         * build-aux/move-if-change: New file, based on best practice
52676         rather than any canonical upstream location.
52677
52678 2007-09-28  Jim Meyering  <jim@meyering.net>
52679
52680         Fix canonicalize loop-detection corner case.
52681         Do not attempt to stat the symlink values stored via seen_triple.
52682         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52683         on linux-2.6.18, (but not 2.6.22).
52684         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52685         triple_compare.  The former compares dev,ino,filename, while the latter
52686         would actually stat dirname(filename) when dev and ino were equal.
52687         * lib/hash-triple.c: Install <string.h>.
52688         (STREQ): Define.
52689         (triple_compare_ino_str): New function.
52690         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52691
52692 2007-09-28  Eric Blake  <ebb9@byu.net>
52693
52694         Enforce that AC_REPLACE_FUNCS files exist.
52695         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52696         override check for typos.
52697
52698         Fix test-closein on Solaris 10.
52699         * tests/test-closein.c (main): Don't assume stdin can be inherited
52700         closed on all systems.
52701         * tests/test-closein.sh: Likewise.
52702         Reported by Piotr Tarnowski.
52703
52704 2007-09-28  Jim Meyering  <jim@meyering.net>
52705
52706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52707
52708 2007-09-27  Jim Meyering  <jim@meyering.net>
52709
52710         canonicalize: Avoid a false-positive cycle failure.
52711         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52712         Sort.  Remove cycle-check.
52713         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52714         not cycle-check.h.
52715         (seen_triple): New function.
52716         (canonicalize_filename_mode): Use it instead of cycle-check.
52717         * tests/test-canonicalize.c: Add a test for this bug.
52718         * tests/test-canonicalize.sh: Set up and run the test.
52719
52720         New module, file-set, from coreutils.
52721         * modules/file-set: Define it.
52722         * lib/file-set.c, lib/file-set.h: Implement.
52723
52724         New module, hash-triple, from coreutils.
52725         * modules/hash-triple: Define it.
52726         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52727
52728 2007-09-25  Eric Blake  <ebb9@byu.net>
52729
52730         Fix strerror on Interix.
52731         * lib/string_.h (strerror): Declare replacement.
52732         * doc/functions/strerror.texi (strerror): Document the Interix
52733         shortcoming.
52734         * modules/string (Makefile.am): Support new hooks.
52735         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52736         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52737         gl_FUNC_STRERROR_SEPARATE.
52738         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52739         * lib/strerror.c (rpl_strerror): Provide replacement.
52740         * modules/strerror (Depends-on): Add string.
52741         (configure.ac): Detect use of module.
52742         * tests/test-strerror.c: New file.
52743         * modules/strerror-tests: New test module.
52744         * modules/argp (Depends-on): Add strerror.
52745         * modules/error (Depends-on): Likewise.
52746         Reported by Martin Koeppe.
52747
52748 2007-09-24  Bruno Haible  <bruno@clisp.org>
52749
52750         * README: Update git instructions.
52751
52752 2007-09-24  Eric Blake  <ebb9@byu.net>
52753
52754         Revert fpending breakage from 2007-09-08.
52755         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52756         __fpending.c.
52757
52758 2007-09-24  Jim Meyering  <jim@meyering.net>
52759
52760         filenamecat.c: Add a test.
52761         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52762         showing how the function works when DIR is the empty string.
52763
52764 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52765
52766         * tests/test-canonicalize.sh: Turn on executable bit.
52767
52768 2007-09-19  Eric Blake  <ebb9@byu.net>
52769
52770         * README: Update CVS instructions.
52771
52772 2007-09-18  Bruno Haible  <bruno@clisp.org>
52773
52774         * modules/areadlink: New file.
52775         * lib/areadlink.h (areadlink): New declaration.
52776         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52777
52778 2007-09-17  Jim Meyering  <jim@meyering.net>
52779
52780         * lib/savewd.c (ESTALE) [!defined]: Define.
52781         Reported to be required on Interix by Martin Koeppe.
52782
52783 2007-09-17  Bruno Haible  <bruno@clisp.org>
52784
52785         * gnulib-tool (func_version): Use $version.
52786
52787 2007-09-16  Bruno Haible  <bruno@clisp.org>
52788
52789         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52790         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52791         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52792         Reported by Greg Schafer <gschafer@zip.com.au>.
52793
52794 2007-09-15  Bruno Haible  <bruno@clisp.org>
52795
52796         * gnulib-tool (sed): Try a little harder to make bash understand the
52797         alias.
52798         Reported by Bruce Korb <bruce.korb@gmail.com>.
52799
52800 2007-09-13  Eric Blake  <ebb9@byu.net>
52801
52802         * ChangeLog: Remove conflict markers.
52803
52804 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52805
52806         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52807         Reported by Bruno Haible <bruno@clisp.org>.
52808
52809 2007-09-12  Bruno Haible  <bruno@clisp.org>
52810
52811         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52812         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52813         is not defined.
52814
52815 2007-09-12  Eric Blake  <ebb9@byu.net>
52816
52817         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52818         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52819         Autoconf definition.
52820         * modules/euidaccess (Depends-on): Add extensions, for
52821         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52822         * modules/fnmatch (Depends-on): Likewise.
52823         * modules/getaddrinfo (Depends-on): Likewise.
52824         * modules/getdelim (Depends-on): Likewise.
52825         * modules/getline (Depends-on): Likewise.
52826         * modules/getsubopt (Depends-on): Likewise.
52827         * modules/gettext (Depends-on): Likewise.
52828         * modules/group-member (Depends-on): Likewise.
52829         * modules/mbchar (Depends-on): Likewise.
52830         * modules/memmem (Depends-on): Likewise.
52831         * modules/mempcpy (Depends-on): Likewise.
52832         * modules/memrchr (Depends-on): Likewise.
52833         * modules/pagealign_alloc (Depends-on): Likewise.
52834         * modules/readutmp (Depends-on): Likewise.
52835         * modules/stpcpy (Depends-on): Likewise.
52836         * modules/stpncpy (Depends-on): Likewise.
52837         * modules/strchrnul (Depends-on): Likewise.
52838         * modules/strndup (Depends-on): Likewise.
52839         * modules/strsep (Depends-on): Likewise.
52840         * modules/strverscmp (Depends-on): Likewise.
52841         * modules/vasprintf (Depends-on): Likewise.
52842         * modules/wcwidth (Depends-on): Likewise.
52843         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52844         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52845         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52846         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52847         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52848         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52849         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52850         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52851         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52852         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52853         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52854         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52855         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52856         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52857         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52858         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52859         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52860         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52861         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52862         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52863         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52864         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52865         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52866         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52867         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52868         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52869         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52870         so that lock.m4 can be used in gettext without extensions module.
52871
52872 2007-09-11  Bruno Haible  <bruno@clisp.org>
52873
52874         * m4/isc-posix.m4: Remove file.
52875         Suggested by Eric Blake.
52876
52877 2007-09-11  Eric Blake  <ebb9@byu.net>
52878
52879         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52880
52881 2007-09-10  Bruno Haible  <bruno@clisp.org>
52882
52883         * posix-modules: Fix typo in error message.
52884         Reported by Matt <mkraai@beckman.com>.
52885
52886 2007-09-09  Bruno Haible  <bruno@clisp.org>
52887
52888         * doc/functions/getdelim.texi: Update list of platforms lacking the
52889         function.
52890         * doc/functions/getline.texi: Likewise.
52891
52892 2007-09-09  Jim Meyering  <jim@meyering.net>
52893
52894         * lib/hash.c (hash_initialize): Detect calloc failure.
52895         Reported by Bruno Haible.
52896
52897 2007-09-09  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52900         malloc or realloc fails.
52901
52902 2007-09-09  Bruno Haible  <bruno@clisp.org>
52903
52904         * modules/getcwd (Depends-on): Add malloc-posix.
52905         * modules/glob (Depends-on): Likewise.
52906         * modules/putenv (Depends-on): Likewise.
52907         * modules/strdup (Depends-on): Likewise.
52908         * modules/getdelim (Depends-on): Add realloc-posix.
52909         * modules/read-file (Depends-on): Likewise.
52910
52911 2007-09-09  Bruno Haible  <bruno@clisp.org>
52912
52913         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52914         (gl_FUNC_MALLOC_POSIX): Require it.
52915         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52916         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52917         * modules/realloc (Files): Add m4/malloc.m4.
52918         * modules/calloc (Files): Likewise.
52919
52920 2007-09-09  Bruno Haible  <bruno@clisp.org>
52921
52922         * modules/malloc-posix: New file.
52923         * modules/malloc (Depends-on): Add malloc-posix.
52924         * lib/malloc.c: Include errno.h.
52925         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52926         and a POSIX-compatible malloc into a single function. Set ENOMEM
52927         when returning NULL.
52928         * m4/malloc.m4: New file.
52929         * doc/functions/malloc.texi: Mention the malloc-posix module.
52930         * lib/stdlib_.h (malloc): New declaration.
52931         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52932         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52933         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52934         and HAVE_MALLOC_POSIX.
52935
52936 2007-09-09  Bruno Haible  <bruno@clisp.org>
52937
52938         * modules/realloc-posix: New file.
52939         * modules/realloc (Depends-on): Add realloc-posix.
52940         * lib/realloc.c: Include errno.h.
52941         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52942         and a POSIX-compatible realloc into a single function. Set ENOMEM
52943         when returning NULL.
52944         * m4/realloc.m4: New file.
52945         * doc/functions/realloc.texi: Mention the realloc-posix module.
52946         * lib/stdlib_.h (realloc): New declaration.
52947         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52948         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
52949         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
52950         and HAVE_REALLOC_POSIX.
52951
52952 2007-09-09  Bruno Haible  <bruno@clisp.org>
52953
52954         * modules/calloc-posix: New file.
52955         * modules/calloc (Depends-on): Add calloc-posix.
52956         * lib/calloc.c: Include errno.h.
52957         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
52958         and a POSIX-compatible calloc into a single function. Set ENOMEM
52959         when returning NULL.
52960         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
52961         * doc/functions/calloc.texi: Mention the calloc-posix module.
52962         * lib/stdlib_.h (calloc): New declaration.
52963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52964         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
52965         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
52966         and HAVE_CALLOC_POSIX.
52967
52968 2007-09-09  Bruno Haible  <bruno@clisp.org>
52969
52970         Allow for modules to show an arbitrary notice.
52971         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
52972         * gnulib-tool: New option --extract-notice.
52973         (func_usage): Document it.
52974         (sed_extract_prog): Update.
52975         (func_get_notice): New function.
52976         (func_modules_notice): New function.
52977         (func_import, func_create_testdir): Invoke it.
52978         Suggested by Jim Meyering.
52979
52980 2007-09-09  Bruno Haible  <bruno@clisp.org>
52981
52982         * gnulib-tool: New options --verbose, --quiet.
52983         (func_usage): Document them.
52984         (verbose): New variable.
52985         (func_execute_command): New function.
52986         (func_import): Don't show the module list and the file list if
52987         $verbose < 0.
52988         (func_create_testdir): Likewise. Use func_execute_command.
52989         (func_create_megatestdir): Use func_execute_command.
52990
52991 2007-09-08  Bruno Haible  <bruno@clisp.org>
52992
52993         * gnulib-tool (func_import): Prefer rsync over wget when available,
52994         for fetching the PO files.
52995
52996 2007-09-08  Bruno Haible  <bruno@clisp.org>
52997
52998         * posix-modules: New file. Portions copied from gnulib-tool.
52999         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53000
53001 2007-09-08  Jim Meyering  <jim@meyering.net>
53002
53003         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53004         * lib/fpending.h: Rename from __fpending.h.
53005         * lib/fpending.c: Rename from __fpending.c.
53006         Include "fpending.h", not "__fpending.h".
53007         * lib/__fpending.h, lib/__fpending.c: Remove files.
53008         * modules/fpending (Files): Reflect new file names.
53009         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53010
53011 2007-09-08  Bruno Haible  <bruno@clisp.org>
53012
53013         * m4/inttypes-h.m4: Remove stub file.
53014
53015 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53016
53017         * doc/headers/stdint.texi: Discuss #include_next issue.
53018
53019 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53020
53021         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53022
53023 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53024
53025         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53026         in variable name.
53027
53028 2007-09-03  Jim Meyering  <jim@meyering.net>
53029
53030         New module: git-version-gen.
53031         * modules/git-version-gen: New file.
53032
53033         Import changes from coreutils for bootstrap script.
53034
53035         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53036
53037         bootstrap: uses rsync to download the .po files
53038         * build-aux/bootstrap (po_download_command_format): New global.
53039         (download_po_files): Use rsync.
53040         (update_po_files): Don't remove .po files after download,
53041         so future rsync runs can take advantage of the copies.
53042
53043         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53044
53045         Solve the unnecessary-.po-file-regeneration problem once and for all.
53046         * build-aux/bootstrap (download_po_files): New function, renamed from
53047         get_translations.  Now, downloads, but doesn't update LINGUAS.
53048         (update_po_files): New function.
53049
53050         bootstrap: Ignore more.
53051         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53052         uniwidth to e.g., lib/.gitignore.
53053         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53054
53055         * build-aux/bootstrap: New setting: vc_ignore.
53056         (insert_sorted_if_absent): Create $file if absent.
53057         Adapt to new, possibly empty, list: $vc_ignore.
53058
53059         bootstrap: generate more ignorable names
53060         * build-aux/bootstrap (slurp): When generating ignorable names,
53061         also map .sin to .sed, .gperf to .c, and .y to .c.
53062
53063 2007-09-03  Jim Meyering  <jim@meyering.net>
53064
53065         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53066         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53067
53068 2007-09-02  Bruno Haible  <bruno@clisp.org>
53069
53070         Fix mis-recognition of 'mcs' on QNX 6.
53071         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53072         output contains the string "Mono".
53073         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53074         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53075
53076 2007-09-01  Bruno Haible  <bruno@clisp.org>
53077
53078         Fix collision between uniwidth/* and linebreak modules.
53079         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53080         u32_width): Remove declarations.
53081         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53082         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53083         streq3, streq2, streq1, streq0): Remove functions.
53084         (STREQ): Remove macro.
53085         (is_cjk_encoding): Remove function.
53086         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53087         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53088         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53089         * NEWS: Document the change.
53090
53091 2007-09-01  Bruno Haible  <bruno@clisp.org>
53092
53093         * lib/streq.h: Add double-inclusion guard.
53094
53095 2007-09-01  Karl Berry  <karl@gnu.org>
53096
53097         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53098
53099 2007-08-28  Jim Meyering  <jim@meyering.net>
53100
53101         Rename mreadlink_with_size to areadlink_with_size.
53102         * NEWS: Document the change.
53103         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53104         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53105         * lib/mreadlink.h: Rename this to...
53106         * lib/areadlink.h: ...this.
53107         * modules/mreadlink-with-size: Rename this to...
53108         * modules/areadlink-with-size: ...this.
53109         * lib/canonicalize.c: Reflect the renaming.
53110         * modules/canonicalize: Likewise.
53111
53112 2007-08-26  Bruno Haible  <bruno@clisp.org>
53113
53114         * gnulib-tool (func_import): When deciding which files to remove,
53115         consider also dangling symbolic links.
53116         Reported by Eric Blake.
53117
53118 2007-08-26  Bruno Haible  <bruno@clisp.org>
53119
53120         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53121
53122 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53123
53124         * lib/readline.c: Don't include getline.h, the prototype is now
53125         found in stdio.h.
53126
53127 2007-08-23  Jim Meyering  <jim@meyering.net>
53128
53129         Getdelim touchup.
53130         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53131         around the funlockfile call, since funlockfile never sets errno.
53132         Don't set errno upon failed realloc.
53133
53134 2007-08-22  Eric Blake  <ebb9@byu.net>
53135
53136         Getline touchups.
53137         * lib/getdelim.c (getdelim): Revert regression that required *n to
53138         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53139         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53140         getdelim, rather than whether implementation is missing.
53141         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53142         * lib/stdio_.h (getline): Also declare if replacement is
53143         required.
53144         * doc/functions/getdelim.texi: New file.
53145         * doc/functions/getline.texi: Likewise.
53146         * doc/gnulib.texi (Function Substitutes): Add new files.
53147         Reported by Bruno Haible.
53148
53149 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53150
53151         * users.txt: Add Guile.
53152
53153 2007-08-22  Eric Blake  <ebb9@byu.net>
53154
53155         * tests/test-getdelim.c (main): Use remove, not unlink.
53156         * tests/test-getline.c (main): Likewise.
53157
53158         Move getline and getdelim into stdio.h, per POSIX 200x.
53159         * modules/getline (Files): Remove getline.h.
53160         (Depends-on): Add stdio.
53161         (configure.ac): Add module indicator.
53162         * modules/getdelim (Files): Remove getdelim.h.
53163         (Depends-on): Add stdio.
53164         (configure.ac): Add module indicator.
53165         * modules/stdio (Makefile.am): Work with new indicators.
53166         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53167         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53168         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53169         * lib/getdelim.h: Delete.
53170         * lib/getline.h: Delete.
53171         * lib/stdio_.h (getdelim, getline): Declare.
53172         * modules/getdelim-tests: New module.
53173         * modules/getline-tests: Likewise.
53174         * tests/test-getdelim.c: New file.
53175         * tests/test-getline.c: Likewise.
53176         * NEWS: Document the change.
53177         * lib/getline.c: Update choice of header.
53178         * lib/csharpcomp.c: Likewise.
53179         * lib/getpass.c: Likewise.
53180         * lib/javacomp.c: Likewise.
53181         * lib/javaversion.c: Likewise.
53182         * lib/yesno.c: Likewise.
53183         * lib/getdelim.c: Likewise.
53184         (getdelim): Set errno on failure, and avoid memory leak.
53185
53186 2007-08-19  Bruno Haible  <bruno@clisp.org>
53187
53188         * modules/closein (Depends-on): Add freadahead.
53189         * lib/closein.c: Include freadahead.h.
53190         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53191         is zero.
53192
53193 2007-08-19  Bruno Haible  <bruno@clisp.org>
53194
53195         * modules/freadahead-tests: New file.
53196         * tests/test-freadahead.sh: New file.
53197         * tests/test-freadahead.c: New file.
53198
53199         * modules/freadahead: New file.
53200         * lib/freadahead.h: New file.
53201         * lib/freadahead.c: New file.
53202         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53203         fbufmode, fpurge, freadable, fwritable.
53204
53205 2007-08-19  Eric Blake  <ebb9@byu.net>
53206
53207         Test yesno in combination with closein.
53208         * lib/yesno.c (yesno): Document use of stdin.
53209         * modules/yesno-tests (Files): New module.
53210         * tests/test-yesno.c (main): New file.
53211         * tests/test-yesno.sh: Likewise.
53212
53213 2007-08-19  Bruno Haible  <bruno@clisp.org>
53214
53215         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53216         * lib/fseeko.c (rpl_fseeko): Likewise.
53217         * lib/fseterr.c (fseterr): Likewise.
53218
53219 2007-08-19  Bruno Haible  <bruno@clisp.org>
53220
53221         * tests/test-lseek.c (main): Disable a test for BeOS.
53222         * doc/functions/lseek.texi: Document the BeOS bug.
53223
53224 2007-08-19  Bruno Haible  <bruno@clisp.org>
53225             Eric Blake  <ebb9@byu.net>
53226
53227         * lib/lseek.c: Include <sys/stat.h>.
53228         (rpl_lseek): Add workaround code also for Unix platforms.
53229         Needed for BeOS.
53230         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53231         * doc/functions/lseek.texi: Document BeOS definiency.
53232
53233 2007-08-18  Bruno Haible  <bruno@clisp.org>
53234
53235         * modules/fstrcmp-tests: New file.
53236         * tests/test-fstrcmp.c: New file.
53237
53238 2007-08-18  Bruno Haible  <bruno@clisp.org>
53239
53240         * modules/fstrcmp: New file, from GNU gettext with modifications.
53241         * lib/fstrcmp.h: New file, from GNU gettext.
53242         * lib/fstrcmp.c: New file, from GNU gettext.
53243         * MODULES.html.sh (String handling): Add fstrcmp.
53244
53245 2007-08-18  Bruno Haible  <bruno@clisp.org>
53246
53247         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53248         'bool'.
53249         (diag, compareseq): Remove const from the ctxt argument.
53250         (USE_HEURISTIC): Undefine at the end.
53251
53252 2007-08-18  Jim Meyering  <jim@meyering.net>
53253
53254         New file: lib/idcache.h
53255         * NEWS: Mention the addition.
53256         * modules/idcache (Files): Add lib/idcache.h
53257         * lib/idcache.c: Include "idcache.h".
53258         Don't include <sys/types.h>.
53259         Add a FIXME comment.
53260         Move file-scoped "static" declarations to the top.
53261         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53262
53263 2007-08-17  Bruno Haible  <bruno@clisp.org>
53264         and Paul Eggert  <eggert@cs.ucla.edu>
53265
53266         * MODULES.html.sh: Add diffseq.
53267         * modules/diffseq: New file.
53268         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53269         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53270
53271 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53272
53273         Import changes from coreutils for bootstrap script.
53274
53275         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53276
53277         * build-aux/bootstrap (slurp): Work even in environments where
53278         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53279         current code does not slurp files whose names start with ".", and
53280         this looks like it might be a troublesome area.
53281
53282         2007-07-11  Jim Meyering  <jim@meyering.net>
53283
53284         If there's a GPL vN copyright comment, require that N == 3.
53285
53286         2007-07-08  Jim Meyering  <jim@meyering.net>
53287
53288         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53289         * build-aux/bootstrap (mam_template): Move definition out of loop.
53290
53291         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53292
53293         * build-aux/bootstrap (symlink_to_dir): Rename function from
53294         symlink_to_gnulib.  Add a directory parameter.  Update all
53295         callers.
53296         (cp_mark_as_generated): Also check for -- and link to -- files in
53297         gl/.
53298
53299         2007-07-08  Jim Meyering  <jim@meyering.net>
53300
53301         Adapt to deeper hierarchy in gnulib.
53302         * build-aux/bootstrap (symlink_to_dir): If the destination
53303         directory doesn't exist, create it. This is required at least for
53304         "lib/uniwidth/cjk.h".
53305
53306         2007-05-15  Jim Meyering  <jim@meyering.net>
53307
53308         * build-aux/bootstrap: Now that generated Makefile.am files
53309         are no longer under version control, they must be created at
53310         bootstrap time.
53311
53312 2007-08-14  Ben Pfaff  <blp@gnu.org>
53313
53314         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53315
53316 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53317
53318         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53319         given the changes below.
53320         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53321         even on hosts that have padding bits beyond the supported 64.
53322
53323 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53324
53325         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53326         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53327         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53328         depends on it.
53329         (xstrtol_error): Remove.
53330         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53331         but with a different signature.
53332         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53333         * lib/xstrtol-error.c: Include exitfail.h.
53334         (xstrtol_fatal): New function, with a different signature from the
53335         old xstrtol_error, so that the caller need not worry about passing
53336         in an exit status, or about storage management of the option argument.
53337         (xstrtol_error): Now a static function.  Redo signature to
53338         implement xstrtol_fatal.  Output the correct number of hyphens in
53339         front of the option so that the caller need not worry about
53340         storage management.
53341         (N_): New macro.
53342         (_): Remove; not used now.
53343         * modules/xstrtol: Depend on getopt.
53344         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53345         of old STRTOL_FATAL_ERROR macro.
53346         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53347         of test program.
53348         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53349         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53350
53351 2007-08-08  Eric Blake  <ebb9@byu.net>
53352
53353         * lib/xstrtol-error.c: Add missing include.
53354
53355         Move xstrtol messages into gnulib domain, when --pobase is used.
53356         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53357         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53358         * modules/xstrtol (Files): Distribute new file.
53359         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53360         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53361         * tests/test-xstrtol.c: ...into new file.
53362         * tests/test-xstrtoul.c: Also test xstrtoul.
53363         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53364         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53365         * tests/test-xstrtol.sh: Drive the tests.
53366         * tests/test-xstrtoimax.sh: Likewise.
53367         * tests/test-xstrtoumax.sh: Likewise.
53368         * modules/xstrtol-tests: New module.
53369         * modules/xstrtoimax-tests: Likewise.
53370         * modules/xstrtoumax-tests: Likewise.
53371
53372 2007-08-08  Jim Meyering  <jim@meyering.net>
53373
53374         New function: mfile_name_concat.
53375         * lib/filenamecat.c (mfile_name_concat): New function, just like
53376         file_name_concat, but return NULL upon failure rather than exiting
53377         with a diagnostic.
53378         * lib/filenamecat.h: Declare it.
53379
53380 2007-08-07  Bruno Haible  <bruno@clisp.org>
53381
53382         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53383         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53384         warning from gcc.
53385         Reported by Eric Blake.
53386
53387 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53388
53389         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53390         * modules/crypto/arcfour (License): Likewise.
53391         * modules/crypto/des-tests (License): Likewise.
53392         * modules/crypto/gc-arctwo-tests (License): Likewise.
53393         * modules/crypto/gc-des-tests (License): Likewise.
53394         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53395         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53396         * modules/crypto/gc-md2-tests (License): Likewise.
53397         * modules/crypto/gc-md4-tests (License): Likewise.
53398         * modules/crypto/gc-md5-tests (License): Likewise.
53399         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53400         * modules/crypto/gc-rijndael-tests (License): Likewise.
53401         * modules/crypto/gc-sha1-tests (License): Likewise.
53402         * modules/crypto/gc-tests (License): Likewise.
53403         * modules/crypto/hmac-md5 (License): Likewise.
53404         * modules/crypto/hmac-sha1 (License): Likewise.
53405         * modules/crypto/md2-tests (License): Likewise.
53406         * modules/crypto/md4-tests (License): Likewise.
53407         * modules/crypto/md5 (License): Likewise.
53408         * modules/crypto/rijndael (License): Likewise.
53409         * modules/crypto/sha1 (License): Likewise.
53410         * modules/memxor (License): Likewise.
53411
53412 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53413         and Bruno Haible  <bruno@clisp.org>
53414
53415         * NEWS: Describe interface changes to human, xstrtol.
53416         * lib/human.h: Include <xstrtol.h>.
53417         (human_options): Return enum strtol_error, not int.  Remove
53418         bool arg; take int * instead.
53419         * lib/human.c: Don't include "gettext.h".
53420         (_): Remove; no longer used.
53421         Don't include <xstrtol.h>, since human.h does it.
53422         (human_options): Adjust to abovementioned interface changes.
53423         Do not report error to stderr; that's now the caller's
53424         responsibility.
53425         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53426         interface change.
53427         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53428         Str, Argument_type_string.  All uses changed.  Put " argument"
53429         in diagnostics to make them clearer.  Change wording of suffix
53430         message for clarity.
53431         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53432         Argument_type_string.
53433         (STRTOL_FATAL_WARN): Remove; no longer used.
53434         * modules/human (Depends-on): Remove gettext-h.
53435
53436 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53437
53438         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53439
53440 2007-07-31  Bruno Haible  <bruno@clisp.org>
53441
53442         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53443         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53444         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53445
53446 2007-07-31  Bruno Haible  <bruno@clisp.org>
53447
53448         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53449         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53450
53451 2007-07-30  Bruno Haible  <bruno@clisp.org>
53452
53453         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53454         * modules/c-ctype (License): Likewise.
53455         * modules/c-strcase (License): Likewise.
53456         * modules/check-version (License): Likewise.
53457         * modules/iconv (License): Likewise.
53458         * modules/iconv_open (License): Likewise.
53459         * modules/read-file (License): Likewise.
53460         * modules/striconv (License): Likewise.
53461         * modules/strverscmp (License): Likewise.
53462         * modules/vasprintf (License): Likewise.
53463         * modules/crypto/des (License): Likewise.
53464         * modules/crypto/gc (License): Likewise.
53465         * modules/crypto/gc-arcfour (License): Likewise.
53466         * modules/crypto/gc-arctwo (License): Likewise.
53467         * modules/crypto/gc-des (License): Likewise.
53468         * modules/crypto/gc-hmac-md5 (License): Likewise.
53469         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53470         * modules/crypto/gc-md2 (License): Likewise.
53471         * modules/crypto/gc-md4 (License): Likewise.
53472         * modules/crypto/gc-md5 (License): Likewise.
53473         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53474         * modules/crypto/gc-random (License): Likewise.
53475         * modules/crypto/gc-rijndael (License): Likewise.
53476         * modules/crypto/gc-sha1 (License): Likewise.
53477         * modules/crypto/md2 (License): Likewise.
53478         * modules/crypto/md4 (License): Likewise.
53479
53480 2007-07-30  Jim Meyering  <jim@meyering.net>
53481
53482         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53483         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53484         it has valid stat data.  This bug would cause du not to count the
53485         sizes of inaccessible directories.
53486         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53487         in <http://bugzilla.redhat.com/250077>.
53488
53489 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53490             Bruno Haible  <bruno@clisp.org>
53491
53492         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53493         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53494         #include_next, gives a diagnostic about it, but reports no error in
53495         the exit code.
53496         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53497
53498 2007-07-24  Ben Pfaff  <blp@gnu.org>
53499
53500         Improve name: "count-one-bits" is better than "popcount".
53501         * MODULES.html.sh: Update name.
53502         * lib/popcount.h: Renamed lib/count-one-bits.h.
53503         (popcount): Renamed count_one_bits.
53504         (popcountl): Renamed count_one_bits_l.
53505         (popcountll): Renamed count_one_bits_ll.
53506         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53507         * modules/popcount: Renamed module/count-one-bits.
53508         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53509         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53510
53511 2007-07-23  Ben Pfaff  <blp@gnu.org>
53512
53513         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53514         better code generation, and add U to large constants to avoid
53515         warnings, in non-GCC case.
53516         Suggested by Bruno Haible.
53517
53518 2007-07-23  Ben Pfaff  <blp@gnu.org>
53519
53520         * lib/popcount.h: Use verify_true instead of if...abort.
53521         * modules/popcount: Depend on verify module.
53522         Suggested by Jim Meyering.
53523
53524 2007-07-23  Bruno Haible  <bruno@clisp.org>
53525
53526         * gnulib-tool (func_import): Create a .cvsignore file also when the
53527         directory is not yet in CVS but the toplevel directory is. When
53528         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53529         Reported by Karl Berry.
53530
53531 2007-07-22  Ben Pfaff  <blp@gnu.org>
53532
53533         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53534         case.
53535         Suggested by Eric Blake.
53536
53537 2007-07-22  Ben Pfaff  <blp@gnu.org>
53538
53539         New module: popcount.
53540         * MODULES.html.sh: Add popcount.
53541         * modules/popcount: New file.
53542         * modules/popcount-tests: New file.
53543         * tests/test-popcount.c: New file.
53544         * lib/popcount.h: New file.
53545         * m4/popcount.m4: New file.
53546
53547 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53548
53549         * build-aux/announce-gen: Update to GPLv3.
53550
53551         * build-aux/config.guess: Update from config.
53552
53553 2007-07-21  Bruno Haible  <bruno@clisp.org>
53554
53555         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53556         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53557
53558 2007-07-20  Jim Meyering  <jim@meyering.net>
53559
53560         * check-module: Diagnose a self-dependency.
53561
53562 2007-07-19  Bruno Haible  <bruno@clisp.org>
53563
53564         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53565         empty.
53566         Reported by Eric Blake.
53567
53568 2007-07-18  Bruno Haible  <bruno@clisp.org>
53569
53570         * gnulib-tool: New options --po-base, --po-domain.
53571         (func_usage): Document them.
53572         (pobase, po_domain): New variables.
53573         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53574         DEFAULT_TEXT_DOMAIN.
53575         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53576         (func_import): Consider pobase and po_domain. Create a po/ directory.
53577         (func_create_testdir): Set pobase and po_domain to empty.
53578         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53579         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53580
53581 2007-07-18  Bruno Haible  <bruno@clisp.org>
53582
53583         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53584         EXTRA_DIST augmentation for files in build-aux/.
53585
53586 2007-07-16  Bruno Haible  <bruno@clisp.org>
53587
53588         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53589         * modules/getdelim (License): Likewise.
53590
53591 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53592
53593         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53594         * modules/d-type (License): Likewise.
53595         * modules/extensions (License): Likewise.
53596         * modules/fnmatch (License): Likewise.
53597         * modules/fseeko (License): Likewise.
53598         * modules/getaddrinfo (License): Likewise.
53599         * modules/getline (License): Likewise.
53600         * modules/getlogin_r (License): Likewise.
53601         * modules/getpass (License): Likewise.
53602         * modules/gettimeofday (License): Likewise.
53603         * modules/glob (License): Likewise.
53604         * modules/inet_ntop (License): Likewise.
53605         * modules/malloc (License): Likewise.
53606         * modules/malloca (License): Likewise.
53607         * modules/memmem (License): Likewise.
53608         * modules/mempcpy (License): Likewise.
53609         * modules/memset (License): Likewise.
53610         * modules/minmax (License): Likewise.
53611         * modules/mktime (License): Likewise.
53612         * modules/netinet_in (License): Likewise.
53613         * modules/pathmax (License): Likewise.
53614         * modules/poll (License): Likewise.
53615         * modules/regex (License): Likewise.
53616         * modules/snprintf (License): Likewise.
53617         * modules/stdbool (License): Likewise.
53618         * modules/stdint (License): Likewise.
53619         * modules/stdio (License): Likewise.
53620         * modules/strcase (License): Likewise.
53621         * modules/strcasestr (License): Likewise.
53622         * modules/strdup (License): Likewise.
53623         * modules/string (License): Likewise.
53624         * modules/strndup (License): Likewise.
53625         * modules/strnlen (License): Likewise.
53626         * modules/strpbrk (License): Likewise.
53627         * modules/strptime (License): Likewise.
53628         * modules/strsep (License): Likewise.
53629         * modules/sys_select (License): Likewise.
53630         * modules/sys_socket (License): Likewise.
53631         * modules/sys_stat (License): Likewise.
53632         * modules/sys_time (License): Likewise.
53633         * modules/time (License): Likewise.
53634         * modules/time_r (License): Likewise.
53635         * modules/timegm (License): Likewise.
53636         * modules/unistd (License): Likewise.
53637         * modules/vsnprintf (License): Likewise.
53638         * modules/wctype (License): Likewise.
53639
53640 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53641
53642         * modules/argz (License): LGPLv2+.
53643
53644 2007-07-15  Karl Berry  <karl@gnu.org>
53645
53646         * doc/gnulib.texi: revise node structure per new fdl.texi.
53647
53648 2007-07-14  Bruno Haible  <bruno@clisp.org>
53649
53650         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53651         the output file.
53652         * lib/uniname/uninames.h: Regenerated.
53653
53654 2007-07-14  Karl Berry  <karl@gnu.org>
53655
53656         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53657         omitting sectioning and index commands.
53658
53659 2007-07-13  Bruno Haible  <bruno@clisp.org>
53660
53661         New gnulib-tool option --more-symlinks.
53662         * gnulib-tool (func_usage): Document --more-symlinks.
53663         (do_copyrights): New variable.
53664         Recognize option --more-symlinks.
53665         (func_import): Don't add a copyright notice transform to
53666         sed_transform_lib_file if do_copyrights is empty.
53667
53668 2007-07-13  Bruno Haible  <bruno@clisp.org>
53669
53670         * lib/vasnprintf.c (decimal_point_char): Define also if
53671         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53672         && !NEED_PRINTF_DIRECTIVE_A.
53673         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53674         Gary V. Vaughan <gary@gnu.org>.
53675
53676 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53677
53678         * lib/inttypes_.h: Undo previous change, since it was fixed
53679         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53680
53681 2007-07-13  Bruno Haible  <bruno@clisp.org>
53682
53683         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53684         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53685
53686 2007-07-13  Jim Meyering  <jim@meyering.net>
53687
53688         df: Don't fail for Tru64's "file-on-file mount".
53689         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53690         so we fall through and use statfs instead.  Details here:
53691         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53692         Reported by Albert Chin.
53693
53694 2007-07-13  Bruno Haible  <bruno@clisp.org>
53695
53696         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53697         * modules/configmake (License): Likewise.
53698         * modules/gettext (License): Likewise.
53699         * modules/gettext-h (License): Likewise.
53700         * modules/include_next (License): Likewise.
53701         * modules/link-warning (License): Likewise.
53702         * modules/localcharset (License): Likewise.
53703         * modules/localename (License): Likewise.
53704         * modules/lock (License): Likewise.
53705         * modules/relocatable-lib-lgpl (License): Likewise.
53706         * modules/size_max (License): Likewise.
53707         * modules/vasnprintf (License): Likewise.
53708         * modules/wchar (License): Likewise.
53709         * modules/xsize (License): Likewise.
53710
53711 2007-07-13  Bruno Haible  <bruno@clisp.org>
53712
53713         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53714         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53715
53716 2007-07-12  Bruno Haible  <bruno@clisp.org>
53717
53718         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53719         in the modules files.
53720
53721 2007-07-11  Karl Berry  <karl@gnu.org>
53722
53723         * MODULES.html.sh (func_module): use
53724          sed -e '\|^'"${includefile}"'$|d'
53725          instead of /.../d, to avoid errors on $includefile's containing /.
53726
53727 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53728
53729         * gnulib-tool (func_import): Avoid duplication of --avoid
53730         statements
53731         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53732         names to `_' in variable names.
53733
53734 2007-07-10  Eric Blake  <ebb9@byu.net>
53735
53736         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53737         * NEWS: Document this change.
53738
53739 2007-07-08  Bruno Haible  <bruno@clisp.org>
53740
53741         Update to Unicode 5.0.
53742         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53743         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53744         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53745         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53746         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53747         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53748         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53749         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53750         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53751         U+10A3F, U+1D242..U+1D244.
53752         (nonspacing_table_ind): Update.
53753         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53754         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53755
53756 2007-07-08  Bruno Haible  <bruno@clisp.org>
53757
53758         Update to Unicode 5.0.
53759         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53760         code transform. Extend the name index field of unicode_name_to_code and
53761         unicode_code_to_name from 16 to 24 bits.
53762         * lib/uniname/uniname.c (unicode_character_name,
53763         unicode_name_character): Add the range 0x12xxx to the code transform.
53764         * lib/uniname/uninames.h: Regenerated.
53765         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53766
53767 2007-07-07  Bruno Haible  <bruno@clisp.org>
53768
53769         * modules/wcwidth-tests: New file.
53770         * tests/test-wcwidth.c: New file.
53771
53772         Work around MacOS X wcwidth() bug.
53773         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53774         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53775         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53776         original wcwidth in non-UTF-8 locales.
53777         * modules/wcwidth (Depends-on): Add localcharset, streq,
53778         uniwidth/width.
53779         * doc/functions/wcwidth.texi: Update.
53780
53781 2007-07-07  Bruno Haible  <bruno@clisp.org>
53782
53783         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53784         (wcwidth): New declaration.
53785         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53786         macros.
53787         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53788         here. Prepare for creating <wchar.h> unconditionally.
53789         * modules/wchar (Depends-on): Add link-warning.
53790         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53791         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53792         * lib/wcwidth.h: Remove file.
53793         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53794         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53795         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53796         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53797         (Include): Replace wcwidth.h with <wchar.h>.
53798         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53799         * lib/mbchar.h: Don't include wcwidth.h.
53800         * lib/mbswidth.c: Likewise.
53801         * NEWS: Mention the change.
53802
53803 2007-07-07  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53806         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53807         definition with an external declaration.
53808         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53809         defined as a function. Remove AC_C_INLINE requirement.
53810         * modules/wcwidth (Files): Add lib/wcwidth.c.
53811         (Makefile.am): Remove redundant statement.
53812
53813 2007-07-07  Bruno Haible  <bruno@clisp.org>
53814
53815         * MODULES.html.sh (Unicode string functions): Add the new modules.
53816
53817         * tests/uniwidth/test-u32-strwidth.c: New file.
53818         * modules/uniwidth/u32-strwidth-tests: New file.
53819
53820         * lib/uniwidth/u32-strwidth.c: New file.
53821         * modules/uniwidth/u32-strwidth: New file.
53822
53823         * tests/uniwidth/test-u16-strwidth.c: New file.
53824         * modules/uniwidth/u16-strwidth-tests: New file.
53825
53826         * lib/uniwidth/u16-strwidth.c: New file.
53827         * modules/uniwidth/u16-strwidth: New file.
53828
53829         * tests/uniwidth/test-u8-strwidth.c: New file.
53830         * modules/uniwidth/u8-strwidth-tests: New file.
53831
53832         * lib/uniwidth/u8-strwidth.c: New file.
53833         * modules/uniwidth/u8-strwidth: New file.
53834
53835         * tests/uniwidth/test-u32-width.c: New file.
53836         * modules/uniwidth/u32-width-tests: New file.
53837
53838         * lib/uniwidth/u32-width.c: New file.
53839         * modules/uniwidth/u32-width: New file.
53840
53841         * tests/uniwidth/test-u16-width.c: New file.
53842         * modules/uniwidth/u16-width-tests: New file.
53843
53844         * lib/uniwidth/u16-width.c: New file.
53845         * modules/uniwidth/u16-width: New file.
53846
53847         * tests/uniwidth/test-u8-width.c: New file.
53848         * modules/uniwidth/u8-width-tests: New file.
53849
53850         * lib/uniwidth/u8-width.c: New file.
53851         * modules/uniwidth/u8-width: New file.
53852
53853         * tests/uniwidth/test-uc_width.c: New file.
53854         * modules/uniwidth/width-tests: New file.
53855
53856         * lib/uniwidth/width.c: New file, from GNU libiconv.
53857         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53858         * modules/uniwidth/width: New file.
53859
53860         * lib/uniwidth.h: New file, from GNU libiconv.
53861         * modules/uniwidth/base: New file.
53862
53863 2007-07-07  Bruno Haible  <bruno@clisp.org>
53864
53865         * lib/uniname.h: New file, from GNU gettext.
53866         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53867         * lib/uniname/uninames.h: New file, from GNU gettext.
53868         * lib/uniname/uniname.c: New file, from GNU gettext.
53869         * tests/uniname/test-uninames.sh: New file.
53870         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53871         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53872         * modules/uniname/base: New file.
53873         * modules/uniname/uniname: New file.
53874         * modules/uniname/uniname-tests: New file.
53875         * MODULES.html.sh (Unicode string functions): Add the new modules.
53876
53877 2007-07-06  Bruno Haible  <bruno@clisp.org>
53878
53879         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53880
53881 2007-07-06  Bruno Haible  <bruno@clisp.org>
53882
53883         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53884         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53885         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53886         include <sys/time.h>.
53887         Reported by Eric Blake.
53888
53889 2007-07-06  Eric Blake  <ebb9@byu.net>
53890
53891         Fix testing canonicalize on cygwin.
53892         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53893         Revert patch from 2007-06-19.
53894         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53895         canonicalize module is also in use.
53896         * tests/test-canonicalize.c: New file.
53897         * tests/test-canonicalize.sh: Likewise.
53898         * modules/canonicalize-tests: Likewise.
53899
53900 2007-07-06  Jim Meyering  <jim@meyering.net>
53901
53902         * lib/getugroups.c (getugroups): Detect getgrent failure.
53903         Adjust comment to reflect reality: this function may return -1.
53904
53905 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53906
53907         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53908         the new TP address.
53909         (usage): Fix typo
53910         (gnulib_mk): New variable.
53911
53912 2007-07-05  Jim Meyering  <jim@meyering.net>
53913
53914         Don't let endgrent clobber errno, no matter how improbable.
53915         * lib/getugroups.c (getugroups): Save and restore errno around
53916         endgrent call.
53917
53918         Close the group DB even when failing with 2^31 or more members.
53919         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53920
53921 2007-07-04  Jim Meyering  <jim@meyering.net>
53922
53923         * lib/getugroups.h: New file.
53924         * lib/getugroups.c: Include "getugroups.h".
53925         Remove uses of "register" keyword.
53926         Move local variable, "cp", down into scope where used.
53927         Give "username" parameter the "const" attribute.
53928         * modules/getugroups (Files): Add lib/getugroups.h
53929
53930 2007-07-04  Karl Berry  <karl@gnu.org>
53931
53932         * MODULES.html.sh (func_all_modules): Complete rename of
53933         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53934
53935 2007-07-02  Bruno Haible  <bruno@clisp.org>
53936
53937         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53938         mode, when inttypes.h comes from gnulib.
53939         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53940
53941 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53942
53943         * NEWS: Mention lgpl module name change.
53944
53945         * modules/lgpl-2.1: Renamed from lgpl.
53946
53947         * NEWS: Mention gpl module name change.
53948
53949         * modules/gpl-3.0: New file, based on gpl-2.0.
53950
53951         * modules/gpl-2.0: Renamed from gpl.
53952
53953         * modules/gpl: Fix filename, doc/gpl.texi is now found at
53954         doc/gpl-2.0.texi.
53955
53956 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
53957
53958         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
53959         #define __STDC_LIMIT_MACROS temporarily while including
53960         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
53961         Problem reported by Joel E. Denny in
53962         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
53963
53964 2007-07-01  Bruno Haible  <bruno@clisp.org>
53965
53966         * lib/unistdio.h: New file.
53967         * lib/unistdio/u-asnprintf.h: New file.
53968         * lib/unistdio/u-asprintf.h: New file.
53969         * lib/unistdio/u-printf-args.c: New file.
53970         * lib/unistdio/u-printf-args.h: New file.
53971         * lib/unistdio/u-printf-parse.h: New file.
53972         * lib/unistdio/u-snprintf.h: New file.
53973         * lib/unistdio/u-sprintf.h: New file.
53974         * lib/unistdio/u-vasprintf.h: New file.
53975         * lib/unistdio/u-vsnprintf.h: New file.
53976         * lib/unistdio/u-vsprintf.h: New file.
53977         * lib/unistdio/ulc-asnprintf.c: New file.
53978         * lib/unistdio/ulc-asprintf.c: New file.
53979         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
53980         * lib/unistdio/ulc-printf-parse.c: New file.
53981         * lib/unistdio/ulc-snprintf.c: New file.
53982         * lib/unistdio/ulc-sprintf.c: New file.
53983         * lib/unistdio/ulc-vasnprintf.c: New file.
53984         * lib/unistdio/ulc-vasprintf.c: New file.
53985         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
53986         * lib/unistdio/ulc-vsnprintf.c: New file.
53987         * lib/unistdio/ulc-vsprintf.c: New file.
53988         * lib/unistdio/u8-asnprintf.c: New file.
53989         * lib/unistdio/u8-asprintf.c: New file.
53990         * lib/unistdio/u8-printf-parse.c: New file.
53991         * lib/unistdio/u8-snprintf.c: New file.
53992         * lib/unistdio/u8-sprintf.c: New file.
53993         * lib/unistdio/u8-vasnprintf.c: New file.
53994         * lib/unistdio/u8-vasprintf.c: New file.
53995         * lib/unistdio/u8-vsnprintf.c: New file.
53996         * lib/unistdio/u8-vsprintf.c: New file.
53997         * lib/unistdio/u8-u8-asnprintf.c: New file.
53998         * lib/unistdio/u8-u8-asprintf.c: New file.
53999         * lib/unistdio/u8-u8-snprintf.c: New file.
54000         * lib/unistdio/u8-u8-sprintf.c: New file.
54001         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54002         * lib/unistdio/u8-u8-vasprintf.c: New file.
54003         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54004         * lib/unistdio/u8-u8-vsprintf.c: New file.
54005         * lib/unistdio/u16-asnprintf.c: New file.
54006         * lib/unistdio/u16-asprintf.c: New file.
54007         * lib/unistdio/u16-printf-parse.c: New file.
54008         * lib/unistdio/u16-snprintf.c: New file.
54009         * lib/unistdio/u16-sprintf.c: New file.
54010         * lib/unistdio/u16-vasnprintf.c: New file.
54011         * lib/unistdio/u16-vasprintf.c: New file.
54012         * lib/unistdio/u16-vsnprintf.c: New file.
54013         * lib/unistdio/u16-vsprintf.c: New file.
54014         * lib/unistdio/u16-u16-asnprintf.c: New file.
54015         * lib/unistdio/u16-u16-asprintf.c: New file.
54016         * lib/unistdio/u16-u16-snprintf.c: New file.
54017         * lib/unistdio/u16-u16-sprintf.c: New file.
54018         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54019         * lib/unistdio/u16-u16-vasprintf.c: New file.
54020         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54021         * lib/unistdio/u16-u16-vsprintf.c: New file.
54022         * lib/unistdio/u32-asnprintf.c: New file.
54023         * lib/unistdio/u32-asprintf.c: New file.
54024         * lib/unistdio/u32-printf-parse.c: New file.
54025         * lib/unistdio/u32-snprintf.c: New file.
54026         * lib/unistdio/u32-sprintf.c: New file.
54027         * lib/unistdio/u32-vasnprintf.c: New file.
54028         * lib/unistdio/u32-vasprintf.c: New file.
54029         * lib/unistdio/u32-vsnprintf.c: New file.
54030         * lib/unistdio/u32-vsprintf.c: New file.
54031         * lib/unistdio/u32-u32-asnprintf.c: New file.
54032         * lib/unistdio/u32-u32-asprintf.c: New file.
54033         * lib/unistdio/u32-u32-snprintf.c: New file.
54034         * lib/unistdio/u32-u32-sprintf.c: New file.
54035         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54036         * lib/unistdio/u32-u32-vasprintf.c: New file.
54037         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54038         * lib/unistdio/u32-u32-vsprintf.c: New file.
54039         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54040         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54041         * tests/unistdio/test-ulc-printf1.h: New file.
54042         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54043         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54044         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54045         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54046         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54047         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54048         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54049         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54050         * tests/unistdio/test-u8-asnprintf1.c: New file.
54051         * tests/unistdio/test-u8-asnprintf1.h: New file.
54052         * tests/unistdio/test-u8-printf1.h: New file.
54053         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54054         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54055         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54056         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54057         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54058         * tests/unistdio/test-u8-vasprintf1.c: New file.
54059         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54060         * tests/unistdio/test-u8-vsprintf1.c: New file.
54061         * tests/unistdio/test-u16-asnprintf1.c: New file.
54062         * tests/unistdio/test-u16-asnprintf1.h: New file.
54063         * tests/unistdio/test-u16-printf1.h: New file.
54064         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54065         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54066         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54067         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54068         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54069         * tests/unistdio/test-u16-vasprintf1.c: New file.
54070         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54071         * tests/unistdio/test-u16-vsprintf1.c: New file.
54072         * tests/unistdio/test-u32-asnprintf1.c: New file.
54073         * tests/unistdio/test-u32-asnprintf1.h: New file.
54074         * tests/unistdio/test-u32-printf1.h: New file.
54075         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54076         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54077         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54078         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54079         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54080         * tests/unistdio/test-u32-vasprintf1.c: New file.
54081         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54082         * tests/unistdio/test-u32-vsprintf1.c: New file.
54083         * modules/unistdio/base: New file.
54084         * modules/unistdio/u-printf-args: New file.
54085         * modules/unistdio/ulc-asnprintf: New file.
54086         * modules/unistdio/ulc-asprintf: New file.
54087         * modules/unistdio/ulc-fprintf: New file.
54088         * modules/unistdio/ulc-printf-parse: New file.
54089         * modules/unistdio/ulc-snprintf: New file.
54090         * modules/unistdio/ulc-sprintf: New file.
54091         * modules/unistdio/ulc-vasnprintf: New file.
54092         * modules/unistdio/ulc-vasprintf: New file.
54093         * modules/unistdio/ulc-vfprintf: New file.
54094         * modules/unistdio/ulc-vsnprintf: New file.
54095         * modules/unistdio/ulc-vsprintf: New file.
54096         * modules/unistdio/u8-asnprintf: New file.
54097         * modules/unistdio/u8-asprintf: New file.
54098         * modules/unistdio/u8-printf-parse: New file.
54099         * modules/unistdio/u8-snprintf: New file.
54100         * modules/unistdio/u8-sprintf: New file.
54101         * modules/unistdio/u8-vasnprintf: New file.
54102         * modules/unistdio/u8-vasprintf: New file.
54103         * modules/unistdio/u8-vsnprintf: New file.
54104         * modules/unistdio/u8-vsprintf: New file.
54105         * modules/unistdio/u8-u8-asnprintf: New file.
54106         * modules/unistdio/u8-u8-asprintf: New file.
54107         * modules/unistdio/u8-u8-snprintf: New file.
54108         * modules/unistdio/u8-u8-sprintf: New file.
54109         * modules/unistdio/u8-u8-vasnprintf: New file.
54110         * modules/unistdio/u8-u8-vasprintf: New file.
54111         * modules/unistdio/u8-u8-vsnprintf: New file.
54112         * modules/unistdio/u8-u8-vsprintf: New file.
54113         * modules/unistdio/u16-asnprintf: New file.
54114         * modules/unistdio/u16-asprintf: New file.
54115         * modules/unistdio/u16-printf-parse: New file.
54116         * modules/unistdio/u16-snprintf: New file.
54117         * modules/unistdio/u16-sprintf: New file.
54118         * modules/unistdio/u16-vasnprintf: New file.
54119         * modules/unistdio/u16-vasprintf: New file.
54120         * modules/unistdio/u16-vsnprintf: New file.
54121         * modules/unistdio/u16-vsprintf: New file.
54122         * modules/unistdio/u16-u16-asnprintf: New file.
54123         * modules/unistdio/u16-u16-asprintf: New file.
54124         * modules/unistdio/u16-u16-snprintf: New file.
54125         * modules/unistdio/u16-u16-sprintf: New file.
54126         * modules/unistdio/u16-u16-vasnprintf: New file.
54127         * modules/unistdio/u16-u16-vasprintf: New file.
54128         * modules/unistdio/u16-u16-vsnprintf: New file.
54129         * modules/unistdio/u16-u16-vsprintf: New file.
54130         * modules/unistdio/u32-asnprintf: New file.
54131         * modules/unistdio/u32-asprintf: New file.
54132         * modules/unistdio/u32-printf-parse: New file.
54133         * modules/unistdio/u32-snprintf: New file.
54134         * modules/unistdio/u32-sprintf: New file.
54135         * modules/unistdio/u32-vasnprintf: New file.
54136         * modules/unistdio/u32-vasprintf: New file.
54137         * modules/unistdio/u32-vsnprintf: New file.
54138         * modules/unistdio/u32-vsprintf: New file.
54139         * modules/unistdio/u32-u32-asnprintf: New file.
54140         * modules/unistdio/u32-u32-asprintf: New file.
54141         * modules/unistdio/u32-u32-snprintf: New file.
54142         * modules/unistdio/u32-u32-sprintf: New file.
54143         * modules/unistdio/u32-u32-vasnprintf: New file.
54144         * modules/unistdio/u32-u32-vasprintf: New file.
54145         * modules/unistdio/u32-u32-vsnprintf: New file.
54146         * modules/unistdio/u32-u32-vsprintf: New file.
54147         * modules/unistdio/ulc-asnprintf-tests: New file.
54148         * modules/unistdio/ulc-vasnprintf-tests: New file.
54149         * modules/unistdio/ulc-vasprintf-tests: New file.
54150         * modules/unistdio/ulc-vsnprintf-tests: New file.
54151         * modules/unistdio/ulc-vsprintf-tests: New file.
54152         * modules/unistdio/u8-asnprintf-tests: New file.
54153         * modules/unistdio/u8-vasnprintf-tests: New file.
54154         * modules/unistdio/u8-vasprintf-tests: New file.
54155         * modules/unistdio/u8-vsnprintf-tests: New file.
54156         * modules/unistdio/u8-vsprintf-tests: New file.
54157         * modules/unistdio/u16-asnprintf-tests: New file.
54158         * modules/unistdio/u16-vasnprintf-tests: New file.
54159         * modules/unistdio/u16-vasprintf-tests: New file.
54160         * modules/unistdio/u16-vsnprintf-tests: New file.
54161         * modules/unistdio/u16-vsprintf-tests: New file.
54162         * modules/unistdio/u32-asnprintf-tests: New file.
54163         * modules/unistdio/u32-vasnprintf-tests: New file.
54164         * modules/unistdio/u32-vasprintf-tests: New file.
54165         * modules/unistdio/u32-vsnprintf-tests: New file.
54166         * modules/unistdio/u32-vsprintf-tests: New file.
54167         * MODULES.html.sh (Unicode string functions): Add the new modules.
54168
54169 2007-07-01  Bruno Haible  <bruno@clisp.org>
54170
54171         * lib/sprintf.c (sprintf): Limit the available length estimation,
54172         to avoid address wraparound.
54173         * lib/vsprintf.c (vsprintf): Likewise.
54174         * modules/sprintf-posix (Dependencies): Add stdint.
54175         * modules/vsprintf-posix (Dependencies): Likewise.
54176
54177 2007-07-01  Bruno Haible  <bruno@clisp.org>
54178
54179         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54180         Windows PATH as well. Conservative double-quoting. Comments.
54181
54182 2007-07-01  Bruno Haible  <bruno@clisp.org>
54183             Eric Blake  <ebb9@byu.net>
54184             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54185
54186         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54187         empty components in $PATH, denoting '.'.
54188
54189 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54190
54191         * gnulib-tool: Fix indentation.
54192         (func_create_megatestdir): Likewise.
54193         Report by Bruno Haible.
54194
54195 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54196
54197         Sync from Automake.
54198         * build-aux/gnupload: Fix shell portability issues with for loops.
54199         Report by Karl Berry.
54200
54201 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54202
54203         * build-aux/maint.mk (POURL): Use translationproject.org.
54204
54205 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54206             Bruno Haible  <bruno@clisp.org>
54207
54208         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54209         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54210         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54211         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54212         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54213
54214 2007-06-27  Bruno Haible  <bruno@clisp.org>
54215
54216         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54217         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54218
54219 2007-06-26  Karl Berry  <karl@gnu.org>
54220
54221         * MODULES.html.sh: remove xreadlink-with-size.
54222
54223 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54224
54225         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54226         method that I hope also handles the double-include problem noted
54227         by Bruno Haible in
54228         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54229
54230 2007-06-23  Bruno Haible  <bruno@clisp.org>
54231
54232         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54233         Don't let the 'mostlyclean' target fail if the last subdirectory could
54234         not be removed.
54235         Reported by Karl Berry.
54236
54237 2007-06-23  Bruno Haible  <bruno@clisp.org>
54238
54239         * gnulib-tool (echo): Add a speedier workaround for ksh.
54240         * tests/test-echo.sh: Likewise.
54241
54242 2007-06-23  Bruno Haible  <bruno@clisp.org>
54243
54244         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54245         * tests/test-echo.sh: Likewise.
54246
54247 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54248
54249         * gnulib-tool (IFS): Initialize early, so we don't set it to
54250         empty later.
54251         (self_abspathname): Rewrite algorithm to set it, reindent.
54252         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54253         (func_create_megatestdir): Merge some sed scripts.
54254
54255 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54256
54257         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54258         exposed by Sun Studio 11 cc on Solaris 8.
54259
54260 2007-06-22  Bruno Haible  <bruno@clisp.org>
54261
54262         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54263         backslashes.
54264         * tests/test-echo.sh: New file.
54265
54266 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54267
54268         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54269         simplify `sed_replace_build_aux' scripts, they are portable but
54270         echoing them with `echo' is not.
54271         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54272
54273 2007-06-21  Karl Berry  <karl@gnu.org>
54274
54275         * config/srclist.txt: guess we can't handle the licenses via
54276         srclist at the moment.
54277
54278 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54279
54280         * MODULES.html.sh: Add include_next.
54281         * modules/include_next: New file.
54282
54283 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54284
54285         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54286         INCLUDE_NEXT.
54287         (gl_CHECK_NEXT_HEADERS): New macro.
54288         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54289         the obsolescent gl_ABSOLUTE_HEADER.
54290         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54291         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54292         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54293         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54294         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54295         * m4/math_h.m4 (gl_MATH_H): Likewise.
54296         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54297         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54298         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54299         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54300         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54301         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54302         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54303         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54304         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54305         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54306         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54307         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54308         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54309         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54310         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54311         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54312         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54313         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54314         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54315         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54316         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54317         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54318         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54319         * lib/float_.h: Likewise.
54320         * lib/inttypes_.h: Likewise.
54321         * lib/math_.h: Likewise.
54322         * lib/search_.h: Likewise.
54323         * lib/signal_.h: Likewise.
54324         * lib/stdint_.h: Likewise.
54325         * lib/stdio_.h: Likewise.
54326         * lib/stdlib_.h: Likewise.
54327         * lib/string_.h: Likewise.
54328         * lib/sys_stat_.h: Likewise.
54329         * lib/sys_time_.h: Likewise.
54330         * lib/time_.h: Likewise.
54331         * lib/unistd_.h: Likewise.
54332         * lib/wchar_.h: Likewise.
54333         * lib/wctype_.h: Likewise.
54334         * lib/dirent_.h: Likewise.
54335         * lib/iconv_.h: Likewise.
54336         * lib/locale_.h: Likewise.
54337         * lib/netinet_in_.h: Likewise.
54338         * lib/sys_select_.h: Likewise.
54339         * lib/sys_socket_.h: Likewise.
54340         * lib/sysexits_.h: Likewise.
54341         * modules/fcntl (Depends-on): Depend on include_next, not
54342         absolute_header.
54343         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54344         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54345         * modules/fchdir: Likewise.
54346         * modules/float: Likewise.
54347         * modules/iconv_open: Likewise.
54348         * modules/inttypes: Likewise.
54349         * modules/locale: Likewise.
54350         * modules/math: Likewise.
54351         * modules/netinet_in: Likewise.
54352         * modules/search: Likewise.
54353         * modules/signal: Likewise.
54354         * modules/stdint: Likewise.
54355         * modules/stdio: Likewise.
54356         * modules/stdlib: Likewise.
54357         * modules/string: Likewise.
54358         * modules/sys_select: Likewise.
54359         * modules/sys_socket: Likewise.
54360         * modules/sys_stat: Likewise.
54361         * modules/sys_time: Likewise.
54362         * modules/sysexits: Likewise.
54363         * modules/time: Likewise.
54364         * modules/unistd: Likewise.
54365         * modules/wchar: Likewise.
54366         * modules/wctype: Likewise.
54367         * modules/sys_stat: Change maintainer to "all".
54368         * modules/unistd: Likewise.
54369
54370 2007-06-20  Karl Berry  <karl@gnu.org>
54371
54372         * config/srclist.txt: track www changes in license files.
54373
54374 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54375
54376         * build-aux/bootstrap: Remove stray dot.
54377         Make sure build_aux settings are honored when linking
54378         gnulib_extra_files.
54379
54380 2007-06-19  Eric Blake  <ebb9@byu.net>
54381
54382         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54383         Allow compilation on cygwin.
54384
54385 2007-06-19  Jim Meyering  <jim@meyering.net>
54386
54387         xreadlink-with-size: Remove module.  No longer used.
54388         Ex-callers now use xreadlink or mreadlink-with-size.
54389         * modules/xreadlink-with-size: Remove module.
54390         * lib/xreadlink-with-size.c: Remove file.
54391         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54392         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54393         just before the function definition *is* accurate.
54394
54395         Eliminate one way canonicalize_filename_mode could exit.
54396         * lib/canonicalize.c (canonicalize_filename_mode):
54397         Use mreadlink_with_size, not xreadlink_with_size.
54398
54399 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54400
54401         Detect porting problems to FreeBSD/arm, which has time_t wider than
54402         long int.  Original problem reported for GNU diff by Xin Li in
54403         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54404         * modules/getdate (Depends-on): Add intprops, verify.
54405         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54406         is an integer type no wider than long int.
54407
54408 2007-06-18  Jim Meyering  <jim@meyering.net>
54409
54410         New module: mreadlink-with-size.
54411         * MODULES.html.sh: Add mreadlink-with-size.
54412         * modules/mreadlink-with-size: New module
54413         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54414         not xreadlink-with-size.
54415         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54416
54417 2007-06-16  Bruno Haible  <bruno@clisp.org>
54418
54419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54420         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54421         Reported by Gary V. Vaughan <gary@gnu.org>.
54422
54423 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54424
54425         Revamp lchown so that it lives in unistd.h where it belongs.
54426         * lib/lchown.h: Remove.
54427         * lib/dirchownmod.c: Don't include lib/lchown.h.
54428         * lib/fchownat.c: Likewise.
54429         * lib/openat.c: Likewise.
54430         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54431         does not follow symlinks.
54432         (EOPNOTSUPP): Define if not defined.
54433         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54434         is defined to 0.
54435         (lchown): New decl.
54436         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54437         Do not check for lchown decl.
54438         Set REPLACE_LCHOWN.
54439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54440         REPLACE_LCHOWN.
54441         * modules/chown: Make it clear it follows symlinks.
54442         * modules/lchown: Make it clear it doesn't follow symlinks.
54443         (Files): Remove lib/lchown.h
54444         (Depends-on): Add unistd.
54445         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54446         (Include): Include <unistd.h>, not "lchown.h".
54447         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54448         REPLACE_LCHOWN.
54449
54450 2007-06-15  Jim Meyering  <jim@meyering.net>
54451
54452         Change license (GPL to LGPL) of fsusage and dependents.
54453         * modules/fsusage (License): Change to LGPL.
54454         * modules/full-read (License): Likewise.
54455         * modules/full-write (License): Likewise.
54456         * modules/safe-read (License): Likewise.
54457         * modules/safe-write (License): Likewise.
54458
54459 2007-06-14  Ben Pfaff  <blp@gnu.org>
54460
54461         Missing part of allocsa -> malloca transition.
54462         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54463         gl_MALLOCA.
54464
54465 2007-06-12  Bruno Haible  <bruno@clisp.org>
54466
54467         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54468         to ia64, x86_64, i386.
54469         Reported by Eric Blake.
54470
54471 2007-06-12  Bruno Haible  <bruno@clisp.org>
54472
54473         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54474         cross-compiling to x86_64.
54475
54476 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54477
54478         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54479         glitch reported by Ralf Wildenhues in
54480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54481
54482         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54483         Vin Shelton.
54484
54485 2007-06-11  Bruno Haible  <bruno@clisp.org>
54486
54487         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54488         replacement string.
54489         Reported by Eric Blake.
54490
54491 2007-06-10  Bruno Haible  <bruno@clisp.org>
54492
54493         Prepare vasnprintf code for use with Unicode strings.
54494         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54495         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54496         TYPE_U32_STRING.
54497         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54498         a_u32_string variants.
54499         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54500         * lib/printf-args.c: Don't include config.h and the specification
54501         header if PRINTF_FETCHARGS is already defined.
54502         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54503         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54504         TYPE_U16_STRING, TYPE_U32_STRING.
54505         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54506         u16_directive, u16_directives, u32_directive, u32_directives): New
54507         types.
54508         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54509         New declarations.
54510         * lib/printf-parse.c: Don't include config.h and the specification
54511         header if PRINTF_PARSE is already defined. Eliminate the set of
54512         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54513         them now. Include c-ctype.h.
54514         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54515         directive and CHAR_T_ONLY_ASCII.
54516         * lib/vasnprintf.c: Don't include config.h and the specification header
54517         if VASNPRINTF is already defined.
54518         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54519         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54520         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54521         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54522         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54523         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54524         code accordingly.
54525         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54526         pad_ourselves also in this case, with the 'c' and 's' directives, and
54527         with a different notion of "width".
54528         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54529
54530 2007-06-10  Bruno Haible  <bruno@clisp.org>
54531
54532         * modules/unistr/u32-mbsnlen: New file.
54533         * lib/unistr/u32-mbsnlen.c: New file.
54534
54535         * modules/unistr/u16-mbsnlen: New file.
54536         * lib/unistr/u16-mbsnlen.c: New file.
54537
54538         * modules/unistr/u8-mbsnlen: New file.
54539         * lib/unistr/u8-mbsnlen.c: New file.
54540
54541         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54542         declarations.
54543
54544 2007-06-10  Bruno Haible  <bruno@clisp.org>
54545
54546         * lib/string_.h (mbsnlen): New declaration.
54547         * lib/mbsnlen.c: New file.
54548         * m4/mbsnlen.m4: New file.
54549         * modules/mbsnlen: New file.
54550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54551         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54552         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54553
54554 2007-06-10  Bruno Haible  <bruno@clisp.org>
54555
54556         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54557
54558 2007-06-10  Bruno Haible  <bruno@clisp.org>
54559
54560         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54561         * lib/mbuiter.h: Likewise.
54562
54563 2007-06-10  Bruno Haible  <bruno@clisp.org>
54564
54565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54566         declaration.
54567
54568 2007-06-10  Karl Berry  <karl@gnu.org>
54569
54570         * config/srclist.txt: remove gettext entries, Bruno prefers
54571         to update individually.
54572
54573 2007-06-10  Bruno Haible  <bruno@clisp.org>
54574
54575         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54576         'maxlen'. Ensure only length + width bytes are allocated, not
54577         length + 1 + width.
54578
54579 2007-06-09  Bruno Haible  <bruno@clisp.org>
54580
54581         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54582         (CHAR_T): Remove macro.
54583         (VASNPRINTF): Update.
54584
54585 2007-06-09  Bruno Haible  <bruno@clisp.org>
54586
54587         * MODULES.html.sh (Unicode string functions): Add the new modules.
54588
54589         * modules/uniconv/u32-conv-to-enc: New file.
54590         * lib/uniconv/u32-conv-to-enc.c: New file.
54591         * modules/uniconv/u32-conv-to-enc-tests: New file.
54592         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54593
54594         * modules/uniconv/u16-conv-to-enc: New file.
54595         * lib/uniconv/u16-conv-to-enc.c: New file.
54596         * lib/uniconv/u-conv-to-enc.h: New file.
54597         * modules/uniconv/u16-conv-to-enc-tests: New file.
54598         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54599
54600         * modules/uniconv/u8-conv-to-enc: New file.
54601         * lib/uniconv/u8-conv-to-enc.c: New file.
54602         * modules/uniconv/u8-conv-to-enc-tests: New file.
54603         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54604
54605         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54606         u32_conv_to_encoding): New declarations.
54607
54608 2007-06-09  Bruno Haible  <bruno@clisp.org>
54609
54610         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54611
54612 2007-06-09  Bruno Haible  <bruno@clisp.org>
54613
54614         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54615         * modules/malloca: Renamed from modules/allocsa, updated.
54616         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54617         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54618         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54619         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54620         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54621         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54622         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54623         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54624         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54625         * modules/c-strcasestr (Depends-on): Update.
54626         * lib/c-strcasestr.c: Update.
54627         * modules/c-strstr (Depends-on): Update.
54628         * lib/c-strstr.c: Update.
54629         * modules/canonicalize-lgpl (Depends-on): Update.
54630         * lib/canonicalize-lgpl.c: Update.
54631         * modules/clean-temp (Depends-on): Update.
54632         * lib/clean-temp.c: Update.
54633         * modules/csharpcomp (Depends-on): Update.
54634         * lib/csharpcomp.c: Update.
54635         * modules/csharpexec (Depends-on): Update.
54636         * lib/csharpexec.c: Update.
54637         * modules/javacomp (Depends-on): Update.
54638         * lib/javacomp.c: Update.
54639         * modules/javaexec (Depends-on): Update.
54640         * lib/javaexec.c: Update.
54641         * modules/mbscasestr (Depends-on): Update.
54642         * lib/mbscasestr.c: Update.
54643         * modules/mbsstr (Depends-on): Update.
54644         * lib/mbsstr.c: Update.
54645         * modules/setenv (Depends-on): Update.
54646         * lib/setenv.c: Update.
54647         * modules/strcasestr (Depends-on): Update.
54648         * lib/strcasestr.c: Update.
54649         * modules/striconveha (Depends-on): Update.
54650         * lib/striconveha.c: Update.
54651         * modules/relocatable-prog-wrapper (Files): Update.
54652         * lib/relocwrapper.c: Update.
54653         * build-aux/install-reloc: Update.
54654         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54655
54656 2007-06-08  Bruno Haible  <bruno@clisp.org>
54657
54658         Port to uClibc.
54659         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54660         * lib/fpurge.c (fpurge): Likewise.
54661         * lib/freading.c (freading): Likewise.
54662         * lib/fseeko.c (rpl_fseeko): Likewise.
54663         * lib/fseterr.c (fseterr): Likewise.
54664         * lib/fwriting.c (fwriting): Likewise.
54665         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54666
54667 2007-06-08  Bruno Haible  <bruno@clisp.org>
54668
54669         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54670         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54671         * modules/gettext (Files): Add m4/intlmacosx.m4.
54672
54673 2007-06-07  Bruno Haible  <bruno@clisp.org>
54674
54675         * modules/localename-tests: New file.
54676         * tests/test-localename.c: New file.
54677
54678         New module 'localename'.
54679         * lib/localename.h: New file.
54680         * lib/localename.c: New file, from GNU gettext.
54681         * m4/localename.m4: New file.
54682         * modules/localename: New file.
54683
54684 2007-06-07  Bruno Haible  <bruno@clisp.org>
54685
54686         Work around the lack of <wchar.h> on some builds of uClibc.
54687         * doc/headers/wchar.texi: Update.
54688         * lib/wchar_.h: Include <wchar.h> only if it exists.
54689         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54690         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54691         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54692         doesn't exist.
54693         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54694         * modules/mbfile (Depends-on): Add wchar.
54695         * modules/mbiter (Depends-on): Likewise.
54696         * modules/mbuiter (Depends-on): Likewise.
54697         Reported by Simon Josefsson.
54698
54699 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54700
54701         Work around problem reported by Steven M. Schweda in
54702         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54703         Tru64 5.1B with the Compaq compiler environment installed declares
54704         an 'isblank' function but does not define it in the C library.
54705         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54706         * lib/regex_internal.h (isblank): Likewise.
54707         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54708         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54709
54710 2007-06-05  Bruno Haible  <bruno@clisp.org>
54711
54712         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54713         ia64.
54714         * modules/printf-safe: New file.
54715         * modules/fprintf-posix (Depends-on): Add printf-safe.
54716         * modules/printf-posix (Depends-on): Likewise.
54717         * modules/snprintf-posix (Depends-on): Likewise.
54718         * modules/sprintf-posix (Depends-on): Likewise.
54719         * modules/vasnprintf-posix (Depends-on): Likewise.
54720         * modules/vasprintf-posix (Depends-on): Likewise.
54721         * modules/vfprintf-posix (Depends-on): Likewise.
54722         * modules/vprintf-posix (Depends-on): Likewise.
54723         * modules/vsnprintf-posix (Depends-on): Likewise.
54724         * modules/vsprintf-posix (Depends-on): Likewise.
54725         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54726         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54727         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54728         "no" on i386, x86_64, ia64.
54729         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54730         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54731         on i386, x86_64, ia64.
54732         * tests/test-sprintf-posix.h (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-vasnprintf-posix.c: Include float.h.
54736         (LDBL80_WORDS): New macro.
54737         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54738         on i386, x86_64, ia64.
54739         * tests/test-vasprintf-posix.c: Include float.h.
54740         (LDBL80_WORDS): New macro.
54741         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54742         on i386, x86_64, ia64.
54743         * tests/test-snprintf-posix.c: Include float.h.
54744         * tests/test-sprintf-posix.c: Likewise.
54745         * tests/test-vsnprintf-posix.c: Likewise.
54746         * tests/test-vsprintf-posix.c: Likewise.
54747
54748 2007-06-05  Bruno Haible  <bruno@clisp.org>
54749
54750         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54751         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54752         non-IEEE numbers on i386, x86_64, ia64.
54753         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54754         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54755         * tests/test-isnanl.h: Include float.h.
54756         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54757
54758 2007-06-05  Bruno Haible  <bruno@clisp.org>
54759
54760         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54761         also the %a / %A. Handle the %a / %A code before this extra handling.
54762
54763 2007-06-05  Bruno Haible  <bruno@clisp.org>
54764
54765         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54766         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54767
54768 2007-06-05  Bruno Haible  <bruno@clisp.org>
54769
54770         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54771         typo in variable name.
54772
54773 2007-06-05  Eric Blake  <ebb9@byu.net>
54774
54775         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54776         Reported by Simon Josefsson.
54777
54778 2007-06-04  Bruno Haible  <bruno@clisp.org>
54779
54780         Avoid test failures on some PowerPC platforms.
54781         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54782         Define differently for PowerPC.
54783         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54784         Reported by Gary V. Vaughan <gary@gnu.org>.
54785
54786 2007-06-02  Bruno Haible  <bruno@clisp.org>
54787
54788         Fix test-stdint failure on FreeBSD/ia64.
54789         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54790         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54791         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54792         * doc/headers/stdint.texi: Update.
54793
54794 2007-06-01  Bruno Haible  <bruno@clisp.org>
54795
54796         * tests/test-binary-io.c (main): Pass a third argument to open().
54797         Reported by Gary V. Vaughan <gary@gnu.org>.
54798
54799 2007-06-01  Bruno Haible  <bruno@clisp.org>
54800
54801         * doc/functions/frexpl.texi: Update for mingw.
54802
54803 2007-06-01  Bruno Haible  <bruno@clisp.org>
54804
54805         * tests/test-lseek.c (main): Disable test of errno for invalid third
54806         argument.
54807         * doc/functions/lseek.texi: Update.
54808         Reported by Gary V. Vaughan <gary@gnu.org>.
54809
54810 2007-05-28  Bruno Haible  <bruno@clisp.org>
54811
54812         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54813
54814 2007-05-31  Eric Blake  <ebb9@byu.net>
54815
54816         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54817         cross compiling.
54818
54819 2007-05-30  Eric Blake  <ebb9@byu.net>
54820         and Bruno Haible  <bruno@clisp.org>
54821
54822         Work around mingw test failures exposed by m4-1.4.9b.
54823         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54824         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54825         moment.
54826
54827 2007-05-30  Bruno Haible  <bruno@clisp.org>
54828
54829         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54830         assuming that they are closed. Needed on HP-UX 11.
54831
54832 2007-05-29  Bruno Haible  <bruno@clisp.org>
54833
54834         Fix a problem with #include_next.
54835         * lib/dirent_.h: Split the double-inclusion guard.
54836         * lib/fcntl_.h: Likewise.
54837         * lib/float_.h: Likewise.
54838         * lib/iconv_.h: Likewise.
54839         * lib/inttypes_.h: Likewise.
54840         * lib/locale_.h: Likewise.
54841         * lib/math_.h: Likewise.
54842         * lib/netinet_in_.h: Likewise.
54843         * lib/search_.h: Likewise.
54844         * lib/signal_.h: Likewise.
54845         * lib/stdint_.h: Likewise.
54846         * lib/stdio_.h: Likewise.
54847         * lib/stdlib_.h: Likewise.
54848         * lib/string_.h: Likewise.
54849         * lib/sys_select_.h: Likewise.
54850         * lib/sys_socket_.h: Likewise.
54851         * lib/sys_stat_.h: Likewise.
54852         * lib/sys_time_.h: Likewise.
54853         * lib/sysexits_.h: Likewise.
54854         * lib/time_.h: Likewise.
54855         * lib/unistd_.h: Likewise.
54856         * lib/wchar_.h: Likewise.
54857         * lib/wctype_.h: Likewise.
54858
54859 2007-05-29  Bruno Haible  <bruno@clisp.org>
54860
54861         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54862         for the moment.
54863
54864 2007-05-29  Bruno Haible  <bruno@clisp.org>
54865
54866         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54867         invocation.
54868         Reported by Eric Blake.
54869
54870 2007-05-29  Bruno Haible  <bruno@clisp.org>
54871
54872         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54873         compiling case.
54874
54875 2007-05-29  Eric Blake  <ebb9@byu.net>
54876             Bruno Haible  <bruno@clisp.org>
54877
54878         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54879         cross compiles.
54880
54881 2007-05-28  Eric Blake  <ebb9@byu.net>
54882
54883         * modules/closein-tests (test_closein_LDADD): Support test on
54884         cygwin with libtool.
54885
54886 2007-05-28  Bruno Haible  <bruno@clisp.org>
54887
54888         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54889         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54890         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54891         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54892         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54893         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54894         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54895         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54896         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54897
54898 2007-05-28  Eric Blake  <ebb9@byu.net>
54899
54900         Unconditionally include <config.h> in unit tests.
54901         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54902         * tests/test-allocsa.c, tests/test-arcfour.c,
54903         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54904         tests/test-array_list.c, tests/test-array_oset.c,
54905         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54906         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54907         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54908         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54909         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54910         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54911         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54912         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54913         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54914         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54915         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54916         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54917         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54918         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54919         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54920         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54921         test-md5.c, test-memmem.c, test-printf-posix.c,
54922         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54923         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54924         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54925         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54926         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54927         test-vasnprintf-posix2.c, test-vasnprintf.c,
54928         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54929         test-vfprintf-posix.c, test-vprintf-posix.c,
54930         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54931         test-xvasprintf.c: Likewise.
54932
54933 2007-05-28  Bruno Haible  <bruno@clisp.org>
54934
54935         * gnulib-tool (func_import): Remember the --with-tests command-line
54936         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54937         Reported by Eric Blake.
54938
54939 2007-05-28  Bruno Haible  <bruno@clisp.org>
54940
54941         * modules/ftell-tests: New file.
54942         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54943         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54944
54945         * lib/ftell.c: New file.
54946         * modules/ftell: New file.
54947         * m4/ftell.m4: New file.
54948         * doc/functions/ftell.texi: Update.
54949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
54950         REPLACE_FTELL.
54951         * lib/stdio_.h (rpl_ftell): New declaration.
54952         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
54953         REPLACE_FTELL.
54954
54955 2007-05-28  Eric Blake  <ebb9@byu.net>
54956
54957         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
54958
54959 2007-05-28  Bruno Haible  <bruno@clisp.org>
54960
54961         * modules/fseek-tests: New file.
54962         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
54963         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
54964
54965         * lib/fseek.c: New file.
54966         * modules/fseek: New file.
54967         * m4/fseek.m4: New file.
54968         * doc/functions/fseek.texi: Update.
54969         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
54970         REPLACE_FSEEK.
54971         * lib/stdio_.h (rpl_fseek): New declaration.
54972         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
54973         REPLACE_FSEEK.
54974
54975 2007-05-28  Bruno Haible  <bruno@clisp.org>
54976
54977         * lib/stdio_.h (fflush): More comments.
54978
54979 2007-05-28  Bruno Haible  <bruno@clisp.org>
54980
54981         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
54982         runtime test.
54983
54984 2007-05-28  Eric Blake  <ebb9@byu.net>
54985
54986         Improve lseek module.
54987         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
54988         * lib/unistd_.h (lseek): Scale back link warning message.
54989         * tests/test-lseek.c: Beef up test.
54990         * tests/test-lseek.sh: Exercise more facets of lseek.
54991         Reported by Bruno Haible.
54992
54993 2007-05-28  Bruno Haible  <bruno@clisp.org>
54994
54995         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
54996         to define.
54997
54998 2007-05-27  Bruno Haible  <bruno@clisp.org>
54999
55000         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55001
55002 2007-05-27  Bruno Haible  <bruno@clisp.org>
55003
55004         * modules/openmp: New file.
55005         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55006         Noah Misch.
55007
55008 2007-05-26  Bruno Haible  <bruno@clisp.org>
55009
55010         * modules/chdir-long (Depends-on): Add fchdir.
55011         * modules/chdir-safer (Depends-on): Likewise.
55012         * modules/fts (Depends-on): Likewise.
55013         * modules/fts-lgpl (Depends-on): Likewise.
55014         * modules/openat (Depends-on): Likewise.
55015         * modules/savewd (Depends-on): Likewise.
55016
55017 2007-05-24  Eric Blake  <ebb9@byu.net>
55018
55019         Fix lseek on mingw.
55020         * modules/lseek: New module.
55021         * m4/lseek.m4: New file.
55022         * lib/lseek.c: New file.
55023         * modules/lseek-tests: New file.
55024         * tests/test-lseek.c: New file.
55025         * tests/test-lseek.sh: New file.
55026         * MODULES.html.sh: Document lseek module.
55027         * modules/fflush (Depends-on): Add lseek, fseeko.
55028         * modules/fseeko (Depends-on): Likewise.
55029         * modules/ftello (Depends-on): Likewise.
55030         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55031         broken.
55032         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55033         broken.
55034         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55035         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55036         * lib/ftello.c (rpl_ftello): Likewise.
55037         * tests/test-fseeko.c (main): Test this.
55038         * tests/test-fseeko.sh: Likewise.
55039         * tests/test-ftello.c (main): Likewise.
55040         * tests/test-ftello.sh: Likewise.
55041         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55042         implies replacing fseek.
55043         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55044         HAVE_FTELLO.
55045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55046         * modules/unistd (Makefile.am): Likewise.
55047         * lib/unistd_.h (lseek): Declare a replacement.
55048         * doc/functions/lseek.texi (lseek): Document this fix.
55049         * doc/functions/fseek.texi (fseek): Likewise.
55050         * doc/functions/ftell.texi (ftell): Likewise.
55051
55052 2007-05-24  Bruno Haible  <bruno@clisp.org>
55053
55054         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55055         in the printed representation of a NaN.
55056         * tests/test-vasprintf-posix.c (test_function): Likewise.
55057         * tests/test-snprintf-posix.h (test_function): Likewise.
55058         * tests/test-sprintf-posix.h (test_function): Likewise.
55059         Reported by Eric Blake.
55060
55061 2007-05-23  Eric Blake  <ebb9@byu.net>
55062
55063         Fix fseeko/ftello on cygwin 1.5.24.
55064         * doc/functions/fseeko.texi (fseeko): Document the fix.
55065         * doc/functions/ftello.texi (ftello): Document the fix.
55066         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55067         * doc/functions/stdout.text (stdout): New file.
55068         * doc/functions/stderr.text (stderr): New file.
55069         * doc/gnulib.texi (Function Substitutes): Use new files.
55070         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55071         prior to 1.7.0.
55072         * tests/test-ftello.c (main): Likewise for ftello.
55073         * tests/test-fseeko.sh: New file.
55074         * tests/test-ftello.sh: New file.
55075         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55076         with seekable stdin.
55077         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55078         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55079         (gl_REPLACE_FSEEKO): New macro.
55080         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55081         * modules/fseeko (Files): Distribute fseeko.c.
55082         * modules/ftello (Files): Distribute ftello.c.
55083         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55084         mode.
55085         * lib/ftello.c (rpl_ftello): New file.
55086         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55087         fseeko, ftello.
55088         (gl_STDIN_LARGE_OFFSET): New macro.
55089         * modules/stdio (Makefile.am): Perform the replacement.
55090         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55091
55092 2007-05-23  Bruno Haible  <bruno@clisp.org>
55093
55094         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55095         GNULIB_POSIXCHECK is defined.
55096
55097 2007-05-21  Bruno Haible  <bruno@clisp.org>
55098
55099         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55100         Check also the output for NaN arguments. When cross-compiling, guess
55101         no on IRIX.
55102         * lib/vasnprintf.c: Update comments.
55103         * tests/test-vasnprintf-posix.c (strisnan): New function.
55104         (test_function): Use it.
55105         * tests/test-vasprintf-posix.c (strisnan): New function.
55106         (test_function): Use it.
55107         * tests/test-snprintf-posix.h (strisnan): New function.
55108         (test_function): Use it.
55109         * tests/test-sprintf-posix.h (strisnan): New function.
55110         (test_function): Use it.
55111         Reported by Eric Blake.
55112
55113 2007-05-20  Bruno Haible  <bruno@clisp.org>
55114
55115         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55116         numbers that fails on BeOS.
55117         * doc/functions/frexpl.texi: Update.
55118
55119 2007-05-20  Jim Meyering  <jim@meyering.net>
55120
55121         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55122         forced upon us by glibc-2.6.
55123
55124 2007-05-20  Bruno Haible  <bruno@clisp.org>
55125
55126         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55127         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55128         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55129         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55130         NEED_PRINTF_INFINITE.
55131         (is_infinitel): New function.
55132         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55133         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55134         gl_PREREQ_VASNPRINTF_INFINITE.
55135         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55136         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55137         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55138         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55139         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55140         gl_PREREQ_VASNPRINTF_INFINITE.
55141         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55142         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55143         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55144         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55145         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55146         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55147         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55148         * doc/functions/fprintf.texi: Update.
55149         * doc/functions/printf.texi: Update.
55150         * doc/functions/snprintf.texi: Update.
55151         * doc/functions/sprintf.texi: Update.
55152         * doc/functions/vfprintf.texi: Update.
55153         * doc/functions/vprintf.texi: Update.
55154         * doc/functions/vsnprintf.texi: Update.
55155         * doc/functions/vsprintf.texi: Update.
55156
55157 2007-05-20  Bruno Haible  <bruno@clisp.org>
55158
55159         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55160         was not found in libc.
55161         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55162
55163 2007-05-20  Bruno Haible  <bruno@clisp.org>
55164
55165         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55166         printed as "-nan" instead of "nan".
55167         * tests/test-vasprintf-posix.c (test_function): Likewise.
55168         * tests/test-snprintf-posix.h (test_function): Likewise.
55169         * tests/test-sprintf-posix.h (test_function): Likewise.
55170         Needed for HP-UX 11.
55171
55172 2007-05-20  Jim Meyering  <jim@meyering.net>
55173
55174         Fix buggy test for the fchownat-deref bug.
55175         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55176         symlink required for the run-test.  Without it, this test would
55177         always declare that fchownat doesn't work, and client code would
55178         unnecessarily use the replacement function with fixed libc.
55179         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55180         Reported by Greg Schafer.
55181
55182 2007-05-19  Bruno Haible  <bruno@clisp.org>
55183
55184         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55185         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55186         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55187         Needed for IRIX 6.5 and Solaris 2.5.1.
55188
55189 2007-05-19  Bruno Haible  <bruno@clisp.org>
55190
55191         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55192         (test_function): Skip tests involving -0.0 on platforms where
55193         -0.0 = 0.0.
55194         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55195         (test_function): Skip tests involving -0.0 on platforms where
55196         -0.0 = 0.0.
55197         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55198         (test_function): Skip tests involving -0.0 on platforms where
55199         -0.0 = 0.0.
55200         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55201         (test_function): Skip tests involving -0.0 on platforms where
55202         -0.0 = 0.0.
55203         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55204         tests.
55205         * tests/test-printf-posix.h (test_function): Likewise.
55206         * tests/test-printf-posix.output: Remove all -0.0 related results.
55207         Needed for IRIX 6.5.
55208
55209 2007-05-19  Bruno Haible  <bruno@clisp.org>
55210
55211         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55212         printed as "nan0x7fffffff" instead of "nan".
55213         * tests/test-vasprintf-posix.c (test_function): Likewise.
55214         * tests/test-snprintf-posix.h (test_function): Likewise.
55215         * tests/test-sprintf-posix.h (test_function): Likewise.
55216         * tests/test-fprintf-posix.h (NaN): Remove macro.
55217         (test_function): Remove all NaN related tests.
55218         * tests/test-printf-posix.h (NaN): Remove macro.
55219         (test_function): Remove all NaN related tests.
55220         * tests/test-printf-posix.output: Remove all NaN related results.
55221         Needed for IRIX 6.5.
55222
55223 2007-05-19  Bruno Haible  <bruno@clisp.org>
55224
55225         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55226         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55227
55228 2007-05-19  Bruno Haible  <bruno@clisp.org>
55229
55230         * lib/float_.h: New file.
55231         * m4/float_h.m4: New file.
55232         * modules/float: New file.
55233         * modules/isnanl (Dependencies): Add float.
55234         * modules/isnanl-nolibm (Dependencies): Likewise.
55235         * modules/mathl (Dependencies): Likewise.
55236         * modules/printf-frexpl (Dependencies): Likewise.
55237         * modules/signbit (Dependencies): Likewise.
55238         * modules/vasnprintf (Dependencies): Likewise.
55239         * doc/headers/float.texi: Update.
55240
55241 2007-05-19  Jim Meyering  <jim@meyering.net>
55242
55243         * lib/utimens.c (gl_futimens): Rename from futimens,
55244         now that glibc-2.6 declares futimens.
55245         * lib/utimens.h: Likewise.
55246
55247 2007-05-19  Bruno Haible  <bruno@clisp.org>
55248
55249         Avoid test failures on mingw.
55250         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55251         * tests/test-printf-posix.sh: Likewise.
55252         * tests/test-vfprintf-posix.sh: Likewise.
55253         * tests/test-vprintf-posix.sh: Likewise.
55254
55255 2007-05-19  Bruno Haible  <bruno@clisp.org>
55256
55257         Fix *printf result for NaN, Inf, -0.0 on mingw.
55258         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55259         * lib/vasnprintf.c: Include math.h and isnan.h.
55260         (is_infinite_or_zero): New function.
55261         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55262         values in the %f, %F, %e, %E, %g, %G directives.
55263         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55265         gl_PRINTF_INFINITE and test its result. Invoke
55266         gl_PREREQ_VASNPRINTF_INFINITE.
55267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55274         * doc/functions/fprintf.texi: Update.
55275         * doc/functions/printf.texi: Update.
55276         * doc/functions/snprintf.texi: Update.
55277         * doc/functions/sprintf.texi: Update.
55278         * doc/functions/vfprintf.texi: Update.
55279         * doc/functions/vprintf.texi: Update.
55280         * doc/functions/vsnprintf.texi: Update.
55281         * doc/functions/vsprintf.texi: Update.
55282
55283 2007-05-19  Bruno Haible  <bruno@clisp.org>
55284
55285         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55286         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55287         Instead of multiplying with 10^k, set extra_zeroes to k.
55288         (scale10_round_long_double): Remove function.
55289
55290 2007-05-18  Bruno Haible  <bruno@clisp.org>
55291
55292         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55293         introduced on 2007-05-06.
55294
55295 2007-05-18  Bruno Haible  <bruno@clisp.org>
55296
55297         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55298         %g directives.
55299         * tests/test-vasprintf-posix.c (test_function): Likewise.
55300         * tests/test-snprintf-posix.h (test_function): Likewise.
55301         * tests/test-sprintf-posix.h (test_function): Likewise.
55302
55303 2007-05-18  Bruno Haible  <bruno@clisp.org>
55304
55305         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55306         (strmatch): New function.
55307         (test_function): Test the %f directive on numbers of various exponents.
55308         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55309         (strmatch): New function.
55310         (test_function): Test the %f directive on numbers of various exponents.
55311         * tests/test-snprintf-posix.h (strmatch): New function.
55312         (test_function): Test the %f directive on numbers of various exponents.
55313         * tests/test-sprintf-posix.h (strmatch): New function.
55314         (test_function): Test the %f directive on numbers of various exponents.
55315         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55316         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55317         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55318         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55319
55320 2007-05-18  Bruno Haible  <bruno@clisp.org>
55321
55322         Add support for 'long double' number output.
55323         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55324         * lib/vasnprintf.c: Include math.h and float+.h.
55325         (mp_limb_t): New type.
55326         (GMP_LIMB_BITS): New macro.
55327         (mp_twolimb_t): New type.
55328         (GMP_TWOLIMB_BITS): New macro.
55329         (mpn_t): New type.
55330         (multiply, divide, convert_to_decimal, decode_long_double,
55331         scale10_round_long_double, scale10_round_decimal_long_double,
55332         floorlog10l): New functions.
55333         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55334         for the %f, %F, %e, %E, %g, %G directives.
55335         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55336         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55337         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55338         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55339         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55340         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55341         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55342         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55343         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55344         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55345         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55346         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55347         * modules/snprintf-posix (Depends-on): Likewise.
55348         * modules/sprintf-posix (Depends-on): Likewise.
55349         * modules/vasnprintf-posix (Depends-on): Likewise.
55350         * modules/vasprintf-posix (Depends-on): Likewise.
55351         * modules/vfprintf-posix (Depends-on): Likewise.
55352         * modules/vsnprintf-posix (Depends-on): Likewise.
55353         * modules/vsprintf-posix (Depends-on): Likewise.
55354         * modules/vasnprintf (Files): Add lib/float+.h.
55355         * doc/functions/fprintf.texi: Update.
55356         * doc/functions/printf.texi: Update.
55357         * doc/functions/snprintf.texi: Update.
55358         * doc/functions/sprintf.texi: Update.
55359         * doc/functions/vfprintf.texi: Update.
55360         * doc/functions/vprintf.texi: Update.
55361         * doc/functions/vsnprintf.texi: Update.
55362         * doc/functions/vsprintf.texi: Update.
55363
55364 2007-05-18  Bruno Haible  <bruno@clisp.org>
55365
55366         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55367
55368 2007-05-18  Bruno Haible  <bruno@clisp.org>
55369
55370         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55371         for printing 64-bit integers. Needed for mingw.
55372
55373 2007-05-18  Bruno Haible  <bruno@clisp.org>
55374
55375         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55376         gl_FUNC_FREXPL_WORKS.
55377         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55378
55379 2007-05-18  Bruno Haible  <bruno@clisp.org>
55380
55381         * modules/frexpl-nolibm-tests: New file.
55382
55383         * modules/frexpl-nolibm: New file.
55384         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55385
55386 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55387
55388         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55389         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55390         GCC 4.2, which otherwise issues a lot of warnings.
55391         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55392         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55393         Likewise.
55394         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55395         * modules/iconv_open (iconv.h): Likewise.
55396         * modules/locale (locale.h): Likewise.
55397         * modules/netinet_in (netinet/in.h): Likewise.
55398         * modules/sys_select (sys_select.h): Likewise.
55399         * modules/sys_socket (sys/socket.h): Likewise.
55400         * modules/sys_stat (sys/stat.h): Likewise.
55401         * modules/sysexits (sysexits.h): Likewise.
55402         * modules/unistd (unistd.h): Likewise.
55403
55404 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55405
55406         * modules/closein-tests (Makefile.am): Distribute
55407         `test-closein.sh'.
55408
55409 2007-05-17  Bruno Haible  <bruno@clisp.org>
55410
55411         * tests/test-printf-posix.output: Renamed from
55412         tests/test-fprintf-posix.out.
55413         * modules/fprintf-posix-tests: Update.
55414         * modules/printf-posix-tests: Update.
55415         * modules/vfprintf-posix-tests: Update.
55416         * modules/vprintf-posix-tests: Update.
55417         * tests/test-fprintf-posix.sh: Update.
55418         * tests/test-printf-posix.sh: Update.
55419         * tests/test-vfprintf-posix.sh: Update.
55420         * tests/test-vprintf-posix.sh: Update.
55421         Reported by Ralf Wildenhues.
55422
55423 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55424
55425         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55426         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55427         GCC 4.2, which otherwise issues a lot of warnings.
55428         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55429         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55430         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55431         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55432         it should no longer be needed.
55433         * lib/string_.h: Likewise.
55434         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55435         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55436         * modules/inttypes (inttypes.h): Likewise.
55437         * modules/math (math.h): Likewise.
55438         * modules/search (search.h): Likewise.
55439         * modules/signal (signal.h): Likewise.
55440         * modules/stdint (stdint.h): Likewise.
55441         * modules/stdio (stdio.h): Likewise.
55442         * modules/stdlib (stdlib.h): Likewise.
55443         * modules/string (string.h): Likewise.
55444         * modules/sys_time (sys/time.h): Likewise.
55445         * modules/time (time.h): Likewise.
55446         * modules/wchar (wchar.h): Likewise.
55447         * modules/wctype (wtype.h): Likewise.
55448
55449 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55450
55451         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55452
55453 2007-05-13  Bruno Haible  <bruno@clisp.org>
55454
55455         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55456         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55457         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55458         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55459         (gl_PREREQ_STRTOK_R): Don't require it here.
55460
55461 2007-05-13  Bruno Haible  <bruno@clisp.org>
55462
55463         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55464         when used in C++ mode.
55465
55466 2007-05-12  Bruno Haible  <bruno@clisp.org>
55467
55468         * lib/linebuffer.h: Tweak doc.
55469         * lib/linebuffer.c: Likewise.
55470
55471 2007-05-12  James Youngman  <jay@gnu.org>
55472
55473         * lib/linebuffer.c (readlinebuffer_delim): New function,
55474         like readlinebuffer, but use a caller-specified delimiter.
55475         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55476         as the delimiter.
55477         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55478
55479 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55480
55481         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55482         * modules/openat (Files): Remove openat-die.c.
55483         (Depends-on): Add openat-die.
55484         * modules/openat-die: New module.
55485
55486 2007-05-06  Bruno Haible  <bruno@clisp.org>
55487
55488         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55489         Update with info about Cygwin.
55490         * doc/functions/fprintf.texi: Update.
55491         * doc/functions/printf.texi: Update.
55492         * doc/functions/snprintf.texi: Update.
55493         * doc/functions/sprintf.texi: Update.
55494         * doc/functions/vfprintf.texi: Update.
55495         * doc/functions/vprintf.texi: Update.
55496         * doc/functions/vsnprintf.texi: Update.
55497         * doc/functions/vsprintf.texi: Update.
55498         Reported by Eric Blake.
55499
55500 2007-05-06  Bruno Haible  <bruno@clisp.org>
55501
55502         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55503         padding ourselves for the floating-point directives.
55504         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55505         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55506         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55507         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55508         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55509         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55510         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55511         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55512         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55513         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55514         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55515         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55516         * tests/test-snprintf-posix.h (test_function): Also check the width
55517         and some flags in the %f directive.
55518         * tests/test-sprintf-posix.h (test_function): Likewise.
55519         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55520         * tests/test-vasprintf-posix.c (test_function): Likewise.
55521         * doc/functions/fprintf.texi: Update.
55522         * doc/functions/printf.texi: Update.
55523         * doc/functions/snprintf.texi: Update.
55524         * doc/functions/sprintf.texi: Update.
55525         * doc/functions/vfprintf.texi: Update.
55526         * doc/functions/vprintf.texi: Update.
55527         * doc/functions/vsnprintf.texi: Update.
55528         * doc/functions/vsprintf.texi: Update.
55529
55530 2007-05-06  Bruno Haible  <bruno@clisp.org>
55531
55532         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55533         pass the ' flag character to sprintf or snprintf.
55534         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55535         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55536         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55537         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55538         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55539         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55540         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55541         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55542         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55543         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55544         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55545         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55546         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55547         flag.
55548         * tests/test-sprintf-posix.h (test_function): Likewise.
55549         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55550         * tests/test-vasprintf-posix.c (test_function): Likewise.
55551         * doc/functions/fprintf.texi: Update.
55552         * doc/functions/printf.texi: Update.
55553         * doc/functions/snprintf.texi: Update.
55554         * doc/functions/sprintf.texi: Update.
55555         * doc/functions/vfprintf.texi: Update.
55556         * doc/functions/vprintf.texi: Update.
55557         * doc/functions/vsnprintf.texi: Update.
55558         * doc/functions/vsprintf.texi: Update.
55559
55560 2007-05-01  Bruno Haible  <bruno@clisp.org>
55561
55562         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55563
55564 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55565
55566         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55567         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55568
55569 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55570
55571         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55572         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55573         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55574
55575 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55576
55577         * lib/argp-help.c (struct hol_entry): New member `ord'.
55578         (HOL_ENTRY_PTRCMP): Use ord for comparison
55579         (hol_sort): Initialize ord.
55580
55581 2007-05-01  Bruno Haible  <bruno@clisp.org>
55582
55583         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55584         Reported by Eric Blake.
55585         * doc/gnulib.texi (Function Substitutes): Update.
55586
55587 2007-05-01  Bruno Haible  <bruno@clisp.org>
55588
55589         * doc/functions.texi: Remove file, now redundant through
55590         doc/functions/*.texi.
55591
55592 2007-05-01  Bruno Haible  <bruno@clisp.org>
55593
55594         * modules/argp (Depends-on): Add sleep.
55595
55596 2007-05-01  Bruno Haible  <bruno@clisp.org>
55597
55598         * modules/sleep-tests: New file.
55599         * tests/test-sleep.c: New file.
55600
55601         * modules/sleep: New file.
55602         * lib/sleep.c: New file.
55603         * m4/sleep.m4: New file.
55604         * lib/unistd_.h (sleep): New declaration.
55605         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55606         HAVE_SLEEP.
55607         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55608         * doc/functions/sleep.texi: Document the sleep module.
55609
55610 2007-05-01  Bruno Haible  <bruno@clisp.org>
55611
55612         * lib/sigprocmask.h: Remove file.
55613         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55614         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55615         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55616         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55617         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55618         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55619         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55620         HAVE_SIGSET_T as a shell variable.
55621         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55622         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55623         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55624         (Depends-on): Add signal. Remove verify.
55625         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55626         (Include): Mention <signal.h> instead of sigprocmask.h.
55627         * NEWS: Mention the change.
55628         * lib/fatal-signal.c: Don't include sigprocmask.h.
55629
55630 2007-05-01  Bruno Haible  <bruno@clisp.org>
55631
55632         * modules/signal: New file.
55633         * lib/signal_.h: New file.
55634         * m4/signal_h.m4: New file.
55635
55636 2007-05-01  Bruno Haible  <bruno@clisp.org>
55637
55638         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55639         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55640         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55641         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55642
55643 2007-05-01  Bruno Haible  <bruno@clisp.org>
55644
55645         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55646         configure time.
55647         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55648         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55649         * modules/sys_stat (Makefile.am): Substitute their values into
55650         sys/stat.h.
55651
55652 2007-05-01  Bruno Haible  <bruno@clisp.org>
55653
55654         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55655         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55656         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55657
55658 2007-05-01  Bruno Haible  <bruno@clisp.org>
55659
55660         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55661         'assert' module here.
55662
55663 2007-05-01  Bruno Haible  <bruno@clisp.org>
55664
55665         * doc/functions/*.texi: New files.
55666         * doc/functions/google-ranking.txt: New file.
55667         * doc/gnulib.texi (Function Substitutes): New chapter.
55668         (ctime, inet_ntoa): Remove sections.
55669         * doc/ctime.texi: Remove file.
55670         * doc/inet_ntoa.texi: Remove file.
55671         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55672         dependencies.
55673         (%.info): New rule, specifying a --reference-limit.
55674
55675 2007-05-01  Bruno Haible  <bruno@clisp.org>
55676
55677         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55678
55679 2007-05-01  Bruno Haible  <bruno@clisp.org>
55680
55681         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55682         the portability of 'mkdir' to mingw systems.
55683
55684 2007-05-01  Bruno Haible  <bruno@clisp.org>
55685
55686         * doc/headers/google-ranking.txt: New file.
55687
55688 2007-04-30  Eric Blake  <ebb9@byu.net>
55689
55690         Prefer fseeko to fseek.
55691         * modules/getpass (Depends-on): Add fseeko.
55692         * lib/getpass.c (getpass): Use fseeko, not fseek.
55693
55694 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55695
55696         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55697         assumes the sorting is stable, while most qsort implementations
55698         are not.  Use argument addresses to ensure they never compare as
55699         equal.
55700
55701         * tests/test-argp-2.sh (usage-indent test): Fix output
55702         (func_compare): Restore diff options
55703         * tests/test-argp.c: Restore #include "progname.h"
55704
55705 2007-04-29  Bruno Haible  <bruno@clisp.org>
55706
55707         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55708         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55709         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55710         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55711         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55712         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55713         (TESTS, check_PROGRAMS): Add test-snprintf.
55714         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55715         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55716         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55717         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55718         assertions that fail on HP-UX, OSF/1, or IRIX.
55719         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55720
55721 2007-04-29  Bruno Haible  <bruno@clisp.org>
55722
55723         * MODULES.html.sh (posix_functions): Remove 'contents'.
55724
55725 2007-04-29  Karl Berry  <karl@gnu.org>
55726
55727         * config/srclist.txt (gendocs_template_min): new entry.
55728
55729 2007-04-29  Bruno Haible  <bruno@clisp.org>
55730
55731         Work around fpurge bug on BSD systems.
55732         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55733         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55734         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55735         fpurge to rpl_fpurge if the system already has this function.
55736         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55737         the case where the system already has this function. Correct invariants
55738         on BSD systems.
55739         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55740         BSD systems.
55741
55742 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55743
55744         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55745         proposed by Sven Verdoolaege.
55746
55747         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55748         options.
55749         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55750         (usage and help tests): Update
55751
55752 2007-04-29  Bruno Haible  <bruno@clisp.org>
55753
55754         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55755         Print more information in case of failure. Disable a test on BeOS.
55756
55757 2007-04-29  Bruno Haible  <bruno@clisp.org>
55758
55759         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55760         This helps debugging on systems on which no gdb is available.
55761
55762 2007-04-29  Bruno Haible  <bruno@clisp.org>
55763
55764         * lib/freading.h: Improve comments.
55765         * lib/fwriting.h: Likewise.
55766         * tests/test-freading.c (main): Don't check freading immediately after
55767         repositioning. Needed for glibc.
55768
55769 2007-04-29  Bruno Haible  <bruno@clisp.org>
55770
55771         * lib/freading.c (freading): Trivial simplification.
55772
55773 2007-04-28  Bruno Haible  <bruno@clisp.org>
55774
55775         * tests/test-fwriting.c (main): Also test the interaction between
55776         fflush and fwriting.
55777         * modules/fwriting-tests (Depends-on): Add fflush.
55778
55779         * tests/test-freading.c (main): Also test the interaction between
55780         fflush and freading.
55781         * modules/freading-tests (Depends-on): Add fflush.
55782
55783 2007-04-28  Bruno Haible  <bruno@clisp.org>
55784
55785         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55786         fseeko and ftello.
55787         Suggested by Eric Blake.
55788
55789 2007-04-28  Jim Meyering  <jim@meyering.net>
55790
55791         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55792         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55793         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55794
55795 2007-04-27  Eric Blake  <ebb9@byu.net>
55796
55797         * doc/headers/assert.texi (assert.h): Document assert module use.
55798
55799 2007-04-27  Bruno Haible  <bruno@clisp.org>
55800
55801         * doc/headers/*.texi: New files.
55802         * doc/gnulib.texi (Header File Substitutes): New chapter.
55803         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55804         dependencies.
55805         (standards.info ,standards.html, standards.dvi): Update dependencies.
55806         (mostlyclean, clean): New targets.
55807
55808 2007-04-27  Bruno Haible  <bruno@clisp.org>
55809
55810         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55811         * modules/sysexits (Files, Makefile.am): Update.
55812
55813         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55814         * modules/sys_socket (Files, Makefile.am): Update.
55815
55816         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55817         * modules/sys_stat (Files, Makefile.am): Update.
55818
55819 2007-04-27  Eric Blake  <ebb9@byu.net>
55820
55821         * lib/freading.h: Improve comments.
55822         * lib/fwriting.h: Likewise.
55823         * lib/fflush.c: Likewise.
55824
55825         Fix closein for mingw.
55826         * modules/closein-tests: Add tests for closein.
55827         * tests/test-closein.c: New file.
55828         * tests/test-closein.sh: Likewise.
55829         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55830         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55831
55832 2007-04-27  Bruno Haible  <bruno@clisp.org>
55833
55834         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55835         version is < 6.
55836         * lib/math_.h [__DECC]: Likewise.
55837         * lib/stdio_.h [__DECC]: Likewise.
55838         * lib/stdlib_.h [__DECC]: Likewise.
55839         * lib/string_.h [__DECC]: Likewise.
55840         * lib/time_.h [__DECC]: Likewise.
55841         * lib/wchar_.h [__DECC]: Likewise.
55842         * lib/wctype_.h [__DECC]: Likewise.
55843
55844 2007-04-27  Bruno Haible  <bruno@clisp.org>
55845
55846         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55847
55848 2007-04-27  Bruno Haible  <bruno@clisp.org>
55849
55850         * lib/fflush.c: Add comments.
55851         * modules/fpurge-tests (Depends-on): Add fflush.
55852         * modules/freadable-tests (Depends-on): Likewise.
55853         * modules/fwritable-tests (Depends-on): Likewise.
55854
55855 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55856
55857         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55858         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55859         Report by Bruno Haible <bruno@clisp.org>.
55860
55861 2007-04-26  Eric Blake  <ebb9@byu.net>
55862
55863         Fix fflush on mingw.
55864         * modules/fflush (Depends-on): Add freading.
55865         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55866         but unread data.
55867
55868 2007-04-26  Eric Blake  <ebb9@byu.net>
55869         and Bruno Haible  <bruno@clisp.org>
55870
55871         Implement freading and fwriting.
55872         * lib/freading.c: New file.
55873         * lib/freading.h: Likewise.
55874         * m4/freading.m4: Likewise.
55875         * modules/freading: Likewise.
55876         * modules/freading-tests: Likewise.
55877         * tests/test-freading.c: Likewise.
55878         * lib/fwriting.c: New file.
55879         * lib/fwriting.h: Likewise.
55880         * m4/fwriting.m4: Likewise.
55881         * modules/fwriting: Likewise.
55882         * modules/fwriting-tests: Likewise.
55883         * tests/test-fwriting.c: Likewise.
55884         * MODULES.html.sh (File stream based Input/Output): Mention them.
55885
55886 2007-04-26  Bruno Haible  <bruno@clisp.org>
55887
55888         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55889         'long' when we assume it.
55890         Suggested by Eric Blake.
55891
55892 2007-04-26  Bruno Haible  <bruno@clisp.org>
55893
55894         Ensure fseeko, ftello are declared on glibc systems.
55895         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55896         * modules/fseeko (configure.ac-early): Likewise.
55897         * modules/ftello (configure.ac-early): Likewise.
55898         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55899         AC_FUNC_FSEEKO for this.
55900         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55901         (gl_CHECK_FSEEKO): Remove macro.
55902
55903 2007-04-26  Bruno Haible  <bruno@clisp.org>
55904
55905         * tests/test-fflush.c (main): Also check the ftell result after
55906         fflush and fseek/fseeko.
55907         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55908         file descriptor position cache in the stream.
55909         * lib/fseeko.c (rpl_fseeko): Likewise.
55910
55911 2007-04-26  Bruno Haible  <bruno@clisp.org>
55912
55913         * modules/fflush-tests (Depends-on): Add fseeko.
55914
55915 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55916             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55917
55918         * lib/argz_.h: ensure error_t definition is obtained in same
55919         mechanism system argz.h would have.
55920         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55921         argz facilities are known bad.  Err on the side of caution if
55922         cross-compiling.
55923
55924 2007-04-25  Eric Blake  <ebb9@byu.net>
55925
55926         * lib/fpurge.c (includes): Use stdlib.h for free.
55927         * tests/test-fflush.c (main): Also test fflush-fseeko.
55928
55929 2007-04-25  Bruno Haible  <bruno@clisp.org>
55930
55931         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55932         * lib/fseeko.c: New file.
55933         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55934         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55935         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55936         gl_FUNC_FSEEKO.
55937         (gl_FUNC_FSEEKO): Invoke it.
55938         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55939         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55940         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55941
55942 2007-04-25  Bruno Haible  <bruno@clisp.org>
55943
55944         * modules/fflush (Depends-on): Add ftello.
55945
55946 2007-04-25  Bruno Haible  <bruno@clisp.org>
55947
55948         * modules/ftello-tests: New file.
55949         * tests/test-ftello.c: New file.
55950
55951         * modules/ftello: New file.
55952         * m4/ftello.m4: New file.
55953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
55954         HAVE_FTELLO.
55955         * lib/stdio_.h (ftello): New declaration.
55956         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
55957         HAVE_FTELLO.
55958
55959 2007-04-25  Bruno Haible  <bruno@clisp.org>
55960
55961         * modules/fseeko-tests: New file.
55962         * tests/test-fseeko.c: New file.
55963
55964         * modules/fseeko: New file.
55965         * m4/fseeko.m4: New file.
55966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
55967         HAVE_FSEEKO.
55968         * lib/stdio_.h (fseeko): New declaration.
55969         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
55970         HAVE_FSEEKO.
55971
55972 2007-04-25  Bruno Haible  <bruno@clisp.org>
55973
55974         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
55975
55976 2007-04-25  Bruno Haible  <bruno@clisp.org>
55977
55978         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
55979         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
55980         * tests/test-unistd.c: Likewise.
55981         * tests/test-fcntl.c: Likewise.
55982
55983 2007-04-23  Eric Blake  <ebb9@byu.net>
55984
55985         * lib/fflush.c: Fix missing include.
55986         Reported by Bruno Haible.
55987
55988 2007-04-23  Bruno Haible  <bruno@clisp.org>
55989
55990         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
55991         Reported by Eric Blake.
55992
55993 2007-04-23  Bruno Haible  <bruno@clisp.org>
55994
55995         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
55996
55997 2007-04-23  Bruno Haible  <bruno@clisp.org>
55998
55999         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56000
56001 2007-04-23  Bruno Haible  <bruno@clisp.org>
56002
56003         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56004         Needed on HP-UX 11.
56005
56006 2007-04-16  Eric Blake  <ebb9@byu.net>
56007
56008         Make fflush rely on fpurge.
56009         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56010         open coding all variants.
56011         * modules/fflush (Depends-on): Add fpurge and unistd.
56012         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56013         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56014
56015         Fix --with-tests compilation on cygwin.
56016         * modules/argmatch-tests (Makefile.am): List gnulib library first
56017         in LDADD.
56018         * modules/argp-tests (Makefile.am): Likewise.
56019         * modules/array-list-tests (Makefile.am): Likewise.
56020         * modules/array-oset-tests (Makefile.am): Likewise.
56021         * modules/avltree-list-tests (Makefile.am): Likewise.
56022         * modules/avltree-oset-tests (Makefile.am): Likewise.
56023         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56024         * modules/carray-list-tests (Makefile.am): Likewise.
56025         * modules/dirname-tests (Makefile.am): Likewise.
56026         * modules/frexp-tests (Makefile.am): Likewise.
56027         * modules/isnanl-tests (Makefile.am): Likewise.
56028         * modules/linked-list-tests (Makefile.am): Likewise.
56029         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56030         * modules/lock-tests (Makefile.am): Likewise.
56031         * modules/rbtree-list-tests (Makefile.am): Likewise.
56032         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56033         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56034         * modules/tls-tests (Makefile.am): Likewise.
56035         * modules/tsearch-tests (Makefile.am): Likewise.
56036         * modules/xvasprintf-tests (Makefile.am): Likewise.
56037
56038         Fix fpurge for cygwin.
56039         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56040         value.
56041         * modules/fpurge-tests (Depends-on): Clean up trash.
56042
56043 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56044
56045         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56046
56047         * m4/autobuild.m4: Re-indent.
56048
56049 2007-04-13  Bruno Haible  <bruno@clisp.org>
56050
56051         * modules/fpurge-tests: New file.
56052         * tests/test-fpurge.c: New file.
56053
56054         * modules/fpurge: New file.
56055         * lib/fpurge.h: New file.
56056         * lib/fpurge.c: New file.
56057         * m4/fpurge.m4: New file.
56058
56059 2007-04-13  Bruno Haible  <bruno@clisp.org>
56060
56061         * modules/fbufmode-tests: New file.
56062         * tests/test-fbufmode.c: New file.
56063
56064         * modules/fbufmode: New file.
56065         * lib/fbufmode.h: New file.
56066         * lib/fbufmode.c: New file.
56067         * m4/fbufmode.m4: New file.
56068
56069 2007-04-13  Bruno Haible  <bruno@clisp.org>
56070
56071         * modules/fwritable-tests: New file.
56072         * tests/test-fwritable.c: New file.
56073
56074         * modules/fwritable: New file.
56075         * lib/fwritable.h: New file.
56076         * lib/fwritable.c: New file.
56077         * m4/fwritable.m4: New file.
56078
56079 2007-04-13  Bruno Haible  <bruno@clisp.org>
56080
56081         * modules/freadable-tests: New file.
56082         * tests/test-freadable.c: New file.
56083
56084         * modules/freadable: New file.
56085         * lib/freadable.h: New file.
56086         * lib/freadable.c: New file.
56087         * m4/freadable.m4: New file.
56088
56089 2007-04-13  Bruno Haible  <bruno@clisp.org>
56090
56091         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56092         MOSTLYCLEANFILES.
56093
56094 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56095
56096         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56097         gzip bootstrap.conf to avoid dragging in i18n machinery.
56098         (gnulib_tool_option): Use it.
56099
56100 2007-04-13  Bruno Haible  <bruno@clisp.org>
56101
56102         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56103         %F directives.
56104         * tests/test-vasprintf-posix.c (test_function): Likewise.
56105         * tests/test-snprintf-posix.h (test_function): Likewise.
56106         * tests/test-sprintf-posix.h (test_function): Likewise.
56107         * tests/test-fprintf-posix.h (test_function): Likewise.
56108         * tests/test-printf-posix.h (test_function): Likewise.
56109         * tests/test-fprintf-posix.out: Likewise.
56110
56111 2007-04-13  Bruno Haible  <bruno@clisp.org>
56112
56113         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56114         * modules/tls-tests (configure.ac): Likewise.
56115         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56116
56117 2007-04-13  Bruno Haible  <bruno@clisp.org>
56118
56119         * lib/tls.c (glthread_tls_get): Fix return type.
56120         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56121
56122 2007-04-12  Eric Blake  <ebb9@byu.net>
56123
56124         * modules/gettime (Depends-on): Remove gettime.
56125         Reported by Dmitry V. Levin.
56126
56127 2007-04-12  Bruno Haible  <bruno@clisp.org>
56128
56129         * modules/fflush (Include): Mention <stdio.h>.
56130         * modules/strtoimax (Include): Mention <inttypes.h>.
56131         * modules/strtoumax (Include): Likewise.
56132
56133 2007-04-12  Eric Blake  <ebb9@byu.net>
56134
56135         * .cvsignore: New file.
56136         * .gitignore: Likewise.
56137
56138 2007-04-12  Bruno Haible  <bruno@clisp.org>
56139
56140         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56141         not before, since $(LDADD) often contains libgnu.a.
56142         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56143         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56144         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56145         Needed on Cygwin.
56146
56147 2007-04-12  Eric Blake  <ebb9@byu.net>
56148
56149         Work around glibc's failure to flush stdin on fclose.
56150         * lib/closein.c (close_stdin): Flush stdin before closing.
56151
56152         Work around glibc's failure to reset seekable stdin on exit.
56153         * modules/closein: New module.
56154         * lib/closein.c: New file.
56155         * lib/closein.h: Likewise.
56156         * m4/closein.m4: Likewise.
56157         * MODULES.html.sh (File stream based Input/Output): Document it.
56158
56159 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56160
56161         * gnulib-tool: Rename generated 'autobuild' script to
56162         'do-autobuild' in --create-megatestdir output.
56163
56164         * doc/gnulib.texi (Build robot for gnulib): Fix.
56165
56166 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56167
56168         * modules/sysexits (Depends-on): Add absolute-header.
56169
56170 2007-04-12  Eric Blake  <ebb9@byu.net>
56171
56172         No need to preserve errno on success.
56173         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56174         Reported by Bruno Haible.
56175
56176 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56177
56178         * MODULES.html.sh (Support for maintaining and releasing
56179         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56180
56181 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56182
56183         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56184
56185 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56186
56187         * modules/autobuild: New module.
56188
56189         * m4/autobuild.m4: New file.
56190
56191 2007-04-11  Bruno Haible  <bruno@clisp.org>
56192
56193         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56194         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56195         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56197         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56198         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56199         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56200         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56201         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56202         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56203         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56204         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56205         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56206         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56207         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56208         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56209         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56210         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56211         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56212         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56213         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56214         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56215         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56216         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56217         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56218         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56219         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56220         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56221         Reported by Eric Blake.
56222
56223 2007-04-11  Bruno Haible  <bruno@clisp.org>
56224
56225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56226
56227 2007-04-10  Bruno Haible  <bruno@clisp.org>
56228
56229         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56230         for NaN and Infinity. Needed on FreeBSD 6.1.
56231         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56232         regarding results for "%010a" of Infinity and NaN.
56233         * tests/test-vasprintf-posix.c (test_function): Likewise.
56234         * tests/test-snprintf-posix.h (test_function): Likewise.
56235         * tests/test-sprintf-posix.h (test_function): Likewise.
56236         * tests/test-fprintf-posix.h (test_function): Likewise.
56237         * tests/test-printf-posix.h (test_function): Likewise.
56238         * tests/test-fprintf-posix.out: Likewise.
56239
56240 2007-04-10  Bruno Haible  <bruno@clisp.org>
56241
56242         * modules/locale-tests: New file.
56243         * tests/test-locale.c: New file.
56244
56245         * modules/locale: New file.
56246         * lib/locale_.h: New file.
56247         * m4/locale_h.m4: New file.
56248
56249 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56250             Bruno Haible  <bruno@clisp.org>
56251
56252         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56253         be determined, test for availability of the copysignf, copysign,
56254         copysignl functions.
56255         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56256         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56257         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56258
56259 2007-04-09  Eric Blake  <ebb9@byu.net>
56260
56261         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56262         * modules/stdio (Makefile.am): Support fflush.
56263         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56264         * modules/fflush: New file.
56265         * lib/fflush.c: Likewise.
56266         * m4/fflush.m4: Likewise.
56267         * modules/fflush-tests: New test.
56268         * tests/test-fflush.c: Likewise.
56269         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56270
56271 2007-04-06  Bruno Haible  <bruno@clisp.org>
56272
56273         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56274         (VASNPRINTF): Use signbit for faster determination whether to print a
56275         minus sign.
56276         * modules/vasnprintf (Files): Remove lib/float+.h.
56277         * modules/fprintf-posix (Depends-on): Add signbit.
56278         * modules/snprintf-posix (Depends-on): Likewise.
56279         * modules/sprintf-posix (Depends-on): Likewise.
56280         * modules/vasnprintf-posix (Depends-on): Likewise.
56281         * modules/vasprintf-posix (Depends-on): Likewise.
56282         * modules/vfprintf-posix (Depends-on): Likewise.
56283         * modules/vsnprintf-posix (Depends-on): Likewise.
56284         * modules/vsprintf-posix (Depends-on): Likewise.
56285
56286 2007-04-06  Bruno Haible  <bruno@clisp.org>
56287
56288         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56289         * tests/test-frexpl.c (main): Likewise.
56290         * tests/test-ldexpl.c (main): Likewise.
56291         * modules/frexp-tests (Depends-on): Add signbit.
56292         * modules/frexpl-tests (Depdends-on): Likewise.
56293         * modules/ldexpl-tests (Depdends-on): Likewise.
56294
56295 2007-04-06  Bruno Haible  <bruno@clisp.org>
56296
56297         * modules/signbit-tests: New file.
56298         * tests/test-signbit.c: New file.
56299
56300         * modules/signbit: New file.
56301         * lib/signbitf.c: New file.
56302         * lib/signbitd.c: New file.
56303         * lib/signbitl.c: New file.
56304         * m4/signbit.m4: New file.
56305         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56306         (signbit): New macro.
56307         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56308         REPLACE_SIGNBIT.
56309         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56310         REPLACE_FREXPL into math.h.
56311
56312 2007-04-06  Bruno Haible  <bruno@clisp.org>
56313
56314         * modules/isnanf-nolibm-tests: New file.
56315         * tests/test-isnanf.c: New file.
56316
56317         * modules/isnanf-nolibm: New file.
56318         * lib/isnanf.h: New file.
56319         * lib/isnanf.c: New file.
56320         * lib/isnan.c: Consider the USE_FLOAT macro.
56321         * m4/isnanf.m4: New file.
56322
56323 2007-04-06  Bruno Haible  <bruno@clisp.org>
56324
56325         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56326         (Link): New section.
56327
56328         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56329
56330 2007-04-06  Bruno Haible  <bruno@clisp.org>
56331
56332         Assume the 'long double' type.
56333         * m4/longdouble.m4: Remove file.
56334         * config/srclist.txt: Don't mention longdouble.m4.
56335         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56336         * lib/float+.h: Likewise.
56337         * lib/frexp.c: Likewise.
56338         * lib/printf-args.h: Likewise.
56339         * lib/printf-args.c: Likewise.
56340         * lib/printf-frexp.c: Likewise.
56341         * lib/printf-parse.c: Likewise.
56342         * lib/vasnprintf.c: Likewise.
56343         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56344         * m4/intl.m4: Likewise.
56345         * m4/isnanl.m4: Likewise.
56346         * m4/printf.m4: Likewise.
56347         * m4/printf-frexpl.m4: Likewise.
56348         * m4/vasnprintf.m4: Likewise.
56349         * modules/allocsa (Files): Remove m4/longdouble.m4.
56350         * modules/gettext (Files): Likewise.
56351         * modules/relocatable-prog-wrapper (Files): Likewise.
56352         * modules/vasnprintf (Files): Likewise.
56353         * modules/isnanl (Files): Likewise.
56354         (Include): Simplify.
56355         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56356         (Include): Simplify.
56357         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56358         (Include): Simplify.
56359         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56360         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56361         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56362         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56363         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56364         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56365         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56366         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56367         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56368         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56369         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56370         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56371         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56372         * tests/test-isnanl.c: Likewise.
56373         * tests/test-snprintf-posix.h: Likewise.
56374         * tests/test-sprintf-posix.h: Likewise.
56375         * tests/test-vasnprintf-posix.c: Likewise.
56376         * tests/test-vasnprintf-posix2.c: Likewise.
56377         * tests/test-vasprintf-posix.c: Likewise.
56378
56379 2007-04-06  Bruno Haible  <bruno@clisp.org>
56380
56381         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56382         * lib/math_.h [__DECC]: Include the overridden include file through
56383         #include_next, outside the double-inclusion guard.
56384         * lib/stdio_.h [__DECC]: Likewise.
56385         * lib/stdlib_.h [__DECC]: Likewise.
56386         * lib/string_.h [__DECC]: Likewise.
56387         * lib/time_.h [__DECC]: Likewise.
56388         * lib/wchar_.h [__DECC]: Likewise.
56389         * lib/wctype_.h [__DECC]: Likewise.
56390         * lib/inttypes_.h [__DECC]: Likewise.
56391         Reported by Albert Chin <china@thewrittenword.com> in
56392         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56393
56394 2007-04-04  Eric Blake  <ebb9@byu.net>
56395
56396         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56397         1.5.x.
56398
56399 2007-04-04  Bruno Haible  <bruno@clisp.org>
56400
56401         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56402         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56403
56404 2007-04-04  Bruno Haible  <bruno@clisp.org>
56405
56406         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56407         results for "%010a" of Infinity and NaN.
56408         * tests/test-vasprintf-posix.c (test_function): Likewise.
56409         * tests/test-snprintf-posix.h (test_function): Likewise.
56410         * tests/test-sprintf-posix.h (test_function): Likewise.
56411         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56412         * tests/test-printf-posix.h (test_function): Likewise.
56413         * tests/test-fprintf-posix.out: Update.
56414         Needed for FreeBSD 6.1.
56415
56416 2007-04-04  Bruno Haible  <bruno@clisp.org>
56417
56418         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56419         directly used by the gnulib modules nor by gnulib-tool.
56420
56421 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56422
56423         * DEPENDENCIES: Give overall description of version dependency
56424         desirability.  Use more-typical names for apps.
56425         Add shell, coreutils, diffutils, grep, tar, gzip.
56426
56427 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56428
56429         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56430
56431 2007-04-04  Karl Berry  <karl@gnu.org>
56432
56433         * MODULES.html.sh (func_module): missing '.
56434
56435 2007-04-03  Bruno Haible  <bruno@clisp.org>
56436
56437         * modules/argmatch-tests (Makefile.am): New variable
56438         test_argmatch_LDADD.
56439         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56440         * modules/array-list-tests (Makefile.am): New variable
56441         test_array_list_LDADD.
56442         * modules/array-oset-tests (Makefile.am): New variable
56443         test_array_oset_LDADD.
56444         * modules/avltree-list-tests (Makefile.am): New variable
56445         test_avltree_list_LDADD.
56446         * modules/avltree-oset-tests (Makefile.am): New variable
56447         test_avltree_oset_LDADD.
56448         * modules/avltreehash-list-tests (Makefile.am): New variable
56449         test_avltreehash_list_LDADD.
56450         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56451         test_canonicalize_lgpl_LDADD.
56452         * modules/carray-list-tests (Makefile.am): New variable
56453         test_carray_list_LDADD.
56454         * modules/dirname-tests (Makefile.am): New variable
56455         test_dirname_LDADD.
56456         * modules/linked-list-tests (Makefile.am): New variable
56457         test_linked_list_LDADD.
56458         * modules/linkedhash-list-tests (Makefile.am): New variable
56459         test_linkedhash_list_LDADD.
56460         * modules/rbtree-list-tests (Makefile.am): New variable
56461         test_rbtree_list_LDADD.
56462         * modules/rbtree-oset-tests (Makefile.am): New variable
56463         test_rbtree_oset_LDADD.
56464         * modules/rbtreehash-list-tests (Makefile.am): New variable
56465         test_rbtreehash_list_LDADD.
56466         * modules/xvasprintf-tests (Makefile.am): New variable
56467         test_xvasprintf_LDADD.
56468         Reported by Eric Blake.
56469
56470 2007-04-03  Eric Blake  <ebb9@byu.net>
56471
56472         * DEPENDENCIES: Weaken m4 requirements.
56473
56474 2007-04-03  Bruno Haible  <bruno@clisp.org>
56475
56476         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56477         * modules/isnanl-tests (configure.ac): Likewise.
56478
56479 2007-04-03  Ben Pfaff  <blp@gnu.org>
56480
56481         * modules/iconv_open: Add $(srcdir)/ to source directory
56482         references in Makefile fragments that call gperf, to fix VPATH
56483         builds.
56484
56485 2007-04-03  Bruno Haible  <bruno@clisp.org>
56486
56487         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56488         * lib/ldexpl.c: Undo last change.
56489
56490 2007-04-03  Bruno Haible  <bruno@clisp.org>
56491
56492         * modules/printf-frexpl (Depends-on): Undo last change.
56493         (Files): Add m4/ldexpl.m4.
56494
56495 2007-04-03  Bruno Haible  <bruno@clisp.org>
56496
56497         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56498         * modules/isnanl (Link): New section.
56499
56500         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56501         * modules/frexp (Link): New section.
56502
56503         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56504         * modules/frexpl (Link): New section.
56505
56506         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56507         * modules/ldexpl (Link): New section.
56508
56509 2007-04-03  Bruno Haible  <bruno@clisp.org>
56510
56511         * modules/TEMPLATE-EXTENDED: New file.
56512         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56513
56514 2007-04-03  Bruno Haible  <bruno@clisp.org>
56515
56516         * DEPENDENCIES: New file.
56517         Suggested by Simon Josefsson.
56518
56519 2007-04-03  Bruno Haible  <bruno@clisp.org>
56520
56521         * doc/gnulib.texi: Escape @.
56522
56523 2007-04-03  James Youngman  <jay@gnu.org>
56524         and Paul Eggert  <eggert@cs.ucla.edu>
56525
56526         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56527         birthtime on all systems that have birthtime, not just those which
56528         use st_birthtimensec rather than st_birthtim.  Putting zero in
56529         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56530         that the birth time is not available for files on an NFS mount.
56531
56532 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56533
56534         * modules/memxor: Move back from crypto/, suggested by Bruno.
56535         * modules/crypto/hmac-sha1: Fix memxor dependency.
56536
56537         * modules/crypto/gc: Moved from ../.
56538
56539 2007-04-02  Eric Blake  <ebb9@byu.net>
56540
56541         * lib/ldexpl.c (includes): Avoid libm.
56542
56543         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56544
56545 2007-04-02  Bruno Haible  <bruno@clisp.org>
56546
56547         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56548         on IRIX.
56549
56550 2007-04-02  Bruno Haible  <bruno@clisp.org>
56551
56552         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56553         x86 or x86_64 platforms running MacOS X.
56554         Reported by Ryan Schmidt <@ryandesign.com>.
56555
56556 2007-04-02  Bruno Haible  <bruno@clisp.org>
56557
56558         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56559         i386.
56560
56561 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56562
56563         * modules/crypto/arcfour: Moved from ../.
56564         * modules/crypto/arcfour-tests: Moved from ../.
56565         * modules/crypto/arctwo: Moved from ../.
56566         * modules/crypto/arctwo-tests: Moved from ../.
56567         * modules/crypto/des: Moved from ../.
56568         * modules/crypto/des-tests: Moved from ../.
56569         * modules/crypto/gc-arcfour: Moved from ../.
56570         * modules/crypto/gc-arcfour-tests: Moved from ../.
56571         * modules/crypto/gc-arctwo: Moved from ../.
56572         * modules/crypto/gc-arctwo-tests: Moved from ../.
56573         * modules/crypto/gc-des: Moved from ../.
56574         * modules/crypto/gc-des-tests: Moved from ../.
56575         * modules/crypto/gc-hmac-md5: Moved from ../.
56576         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56577         * modules/crypto/gc-hmac-sha1: Moved from ../.
56578         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56579         * modules/crypto/gc-md2: Moved from ../.
56580         * modules/crypto/gc-md2-tests: Moved from ../.
56581         * modules/crypto/gc-md4: Moved from ../.
56582         * modules/crypto/gc-md4-tests: Moved from ../.
56583         * modules/crypto/gc-md5: Moved from ../.
56584         * modules/crypto/gc-md5-tests: Moved from ../.
56585         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56586         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56587         * modules/crypto/gc-random: Moved from ../.
56588         * modules/crypto/gc-rijndael: Moved from ../.
56589         * modules/crypto/gc-rijndael-tests: Moved from ../.
56590         * modules/crypto/gc-sha1: Moved from ../.
56591         * modules/crypto/gc-sha1-tests: Moved from ../.
56592         * modules/crypto/gc-tests: Moved from ../.
56593         * modules/crypto/hmac-md5: Moved from ../.
56594         * modules/crypto/hmac-md5-tests: Moved from ../.
56595         * modules/crypto/hmac-sha1: Moved from ../.
56596         * modules/crypto/hmac-sha1-tests: Moved from ../.
56597         * modules/crypto/md2: Moved from ../.
56598         * modules/crypto/md2-tests: Moved from ../.
56599         * modules/crypto/md4: Moved from ../.
56600         * modules/crypto/md4-tests: Moved from ../.
56601         * modules/crypto/md5: Moved from ../.
56602         * modules/crypto/md5-tests: Moved from ../.
56603         * modules/crypto/memxor: Moved from ../.
56604         * modules/crypto/rijndael: Moved from ../.
56605         * modules/crypto/rijndael-tests: Moved from ../.
56606         * modules/crypto/sha1: Moved from ../.
56607
56608 2007-03-30  James Youngman  <jay@gnu.org>
56609
56610         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56611         rename() to change the ctime of a file (because ctime is unaffected
56612         by rename on jfs2 on AIX 5.1).
56613         (main): Start by doing cleanup, in case a previous run failed leaving
56614         test files behind.
56615
56616 2007-03-31  Bruno Haible  <bruno@clisp.org>
56617
56618         Support old proprietary implementations of iconv.
56619         * modules/iconv_open: New file.
56620         * lib/iconv_.h: New file.
56621         * m4/iconv_h.m4: New file.
56622         * lib/iconv_open.c: New file.
56623         * lib/iconv_open-aix.gperf: New file.
56624         * lib/iconv_open-hpux.gperf: New file.
56625         * lib/iconv_open-irix.gperf: New file.
56626         * lib/iconv_open-osf.gperf: New file.
56627         * m4/iconv_open.m4: New file.
56628         * modules/linebreak (Depends-on): Add iconv_open.
56629         * modules/striconv (Depends-on): Likewise.
56630         * modules/striconveh (Depends-on): Likewise.
56631         * modules/unicodeio (Depends-on): Likewise.
56632         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56633         (iconv_t)(-1).
56634         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56635         conversion if cd is (iconv_t)(-1).
56636         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56637         is not possible.
56638
56639 2007-03-31  Bruno Haible  <bruno@clisp.org>
56640
56641         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56642         work on Solaris either. Protect also second use of "autodetect_jp".
56643
56644 2007-03-31  Bruno Haible  <bruno@clisp.org>
56645
56646         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56647         the function is not present.
56648
56649 2007-03-31  Bruno Haible  <bruno@clisp.org>
56650
56651         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56652         the function is not present.
56653
56654 2007-03-31  Bruno Haible  <bruno@clisp.org>
56655
56656         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56657         a bug in HP-UX iconv_open().
56658
56659 2007-03-31  Bruno Haible  <bruno@clisp.org>
56660
56661         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56662         (Mathematics <math.h>): New section, add fpieee.
56663         (Input/output <stdio.h>): Add fseterr.
56664         (Mathematics <math.h>): New section, add printf-frexp.
56665         (Container data structures): Add sublist.
56666         (Core language properties): Add fpucw, inline.
56667         (Functions for greatest-width integer types <inttypes.h>): Add
56668         imaxabs, imaxdiv, inttypes.
56669         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56670         isnanl-nolibm, ldexp.
56671         (Mathematics <math.h>): New section, add printf-frexpl.
56672         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56673         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56674         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56675         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56676         (Unicode string functions): Add unistr/u*-mbtoucr.
56677         (Java): Add javacomp-script, javaexec-script.
56678         (C#): Add csharpcomp-script, csharpexec-script.
56679         (Support for building libraries and executables): Add havelib,
56680         relocatable-*.
56681         (Support for maintaining and releasing projects): Renamed from
56682         'Support for maintaining and release projects'. Add announce-gen.
56683
56684 2007-03-31  Bruno Haible  <bruno@clisp.org>
56685
56686         * README: Talk primarily about git.
56687         (git and CVS): Renamed from CVS.
56688         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56689         gnulib is available through git.
56690         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56691
56692 2007-03-30  Bruno Haible  <bruno@clisp.org>
56693
56694         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56695         * lib/poll_.h: Likewise.
56696         * lib/stat_.h: Likewise.
56697         * lib/sys_time_.h: Likewise.
56698         * lib/sysexit_.h: Likewise.
56699         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56700         * lib/stdbool_.h: Likewise.
56701         * lib/byteswap_.h: Add double-inclusion guard.
56702
56703 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56704
56705         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56706
56707 2007-03-30  Karl Berry  <karl@gnu.org>
56708
56709         * config/srclist-update: double space after USA in the license
56710         substitution, since that's how it's usually (?) written.
56711
56712 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56713
56714         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56715         reported by Bruno Haible.
56716
56717 2007-03-29  Bruno Haible  <bruno@clisp.org>
56718
56719         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56720         a bug in AIX iconv().
56721
56722 2007-03-29  Bruno Haible  <bruno@clisp.org>
56723
56724         * modules/ldexpl-tests: New file.
56725         * tests/test-ldexpl.c: New file.
56726
56727 2007-03-29  Bruno Haible  <bruno@clisp.org>
56728
56729         * lib/ldexpl.c: Include fpucw.h.
56730         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56731         multiplication.
56732         * modules/ldexpl (Depends-on): Add fpucw.
56733
56734 2007-03-29  Bruno Haible  <bruno@clisp.org>
56735
56736         * modules/ldexpl: New file.
56737         * m4/ldexpl.m4: New file.
56738         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56739         set.
56740         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56741         REPLACE_LDEXPL.
56742         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56743         REPLACE_LDEXPL.
56744         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56745         gl_FUNC_LDEXPL_WORKS.
56746         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56747         * modules/mathl (Files): Remove lib/ldexpl.c.
56748         (Depends-on): Add ldexpl.
56749
56750 2007-03-29  Bruno Haible  <bruno@clisp.org>
56751
56752         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56753
56754 2007-03-29  Bruno Haible  <bruno@clisp.org>
56755
56756         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56757         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56758         and possibly also HP-UX.
56759         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56760         work on AIX, IRIX, HP-UX, OSF/1.
56761         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56762         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56763         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56764         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56765         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56766         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56767
56768 2007-03-29  Bruno Haible  <bruno@clisp.org>
56769
56770         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56771
56772 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56773
56774         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56775         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56776
56777 2007-03-29  Eric Blake  <ebb9@byu.net>
56778
56779         * lib/acl-internal.h: Remove redundant include.
56780         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56781         Cygwin when a file is locked.
56782
56783 2007-03-29  Bruno Haible  <bruno@clisp.org>
56784
56785         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56786         file.
56787         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56788
56789 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56790
56791         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56792         try to remove a parent directory if the child couldn't be removed
56793         (except for the first rmdir, which could fail because the child
56794         doesn't exist).  Problem reported by Jeff Blaine in
56795         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56796
56797 2007-03-28  Bruno Haible  <bruno@clisp.org>
56798
56799         * lib/striconveh.c (utf8conv_carefully): New function.
56800         (mem_cd_iconveh_internal): Invoke it.
56801
56802 2007-03-28  Bruno Haible  <bruno@clisp.org>
56803
56804         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56805         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56806         input.
56807         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56808         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56809         unistr/u8-uctomb.
56810
56811 2007-03-28  Bruno Haible  <bruno@clisp.org>
56812
56813         * modules/unistr/u8-mbtoucr: New file.
56814         * lib/unistr/u8-mbtoucr.c: New file.
56815         * modules/unistr/u16-mbtoucr: New file.
56816         * lib/unistr/u16-mbtoucr.c: New file.
56817         * modules/unistr/u16-mbtoucr: New file.
56818         * lib/unistr/u16-mbtoucr.c: New file.
56819         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56820
56821 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56822             Bruno Haible  <bruno@clisp.org>
56823
56824         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56825         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56826         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56827
56828         * m4/stdio_h.m4: Add stubs for vasprintf too.
56829
56830         * modules/stdio: Support vasprintf in sed command.
56831
56832         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56833         vasprintf.h.  Add stdio module indicator.
56834
56835         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56836         vasprintf.h.
56837
56838         * lib/vasprintf.h: File removed.
56839
56840         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56841         * lib/vasprintf.c: Ditto.
56842         * lib/xvasprintf.c: Ditto.
56843         * tests/test-vasprintf-posix.c: Ditto.
56844         * tests/test-vasprintf.c: Ditto.
56845
56846 2007-03-27  Bruno Haible  <bruno@clisp.org>
56847
56848         Make vasnprintf multithread-safe.
56849         * lib/vasnprintf.c (decimal_point_char): New function.
56850         (VASNPRINTF): Use it.
56851         Suggested by Simon Josefsson.
56852
56853 2007-03-27  Eric Blake  <ebb9@byu.net>
56854
56855         Support sub-second birthtime on cygwin.
56856         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56857         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56858         (get_stat_birthtime): Also work with st_birthtim.
56859
56860 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56861
56862         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56863         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56864         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56865         (get_stat_birthtime_ns): Simplify compile-time tests.
56866         (get_stat_birthtime): Change the API to look like
56867         get_stat_mtime etc., except return a negative tv_nsec on error.
56868         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56869         Don't check for "spare" fields.
56870         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56871         or for struct stat.st_birthtime, as these tests aren't used.
56872         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56873
56874 2007-03-27  Bruno Haible  <bruno@clisp.org>
56875
56876         * lib/stat-time.h: Include <sys/stat.h>.
56877
56878 2007-03-27  James Youngman  <jay@gnu.org>
56879
56880         * lib/stat-time.h (get_stat_birthtime): New function for
56881           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56882         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56883           and its variants.
56884         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56885         * modules/stat-time-test: New file.
56886         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56887
56888 2007-03-26  Bruno Haible  <bruno@clisp.org>
56889
56890         Better support of signalling NaNs.
56891         * lib/atanl.c: Include isnanl.h.
56892         (atanl): Perform test for NaN at the beginning of the function and
56893         through a call to isnanl.
56894         * lib/cosl.c: Include isnanl.h.
56895         (cosl): Perform test for NaN at the beginning of the function and
56896         through a call to isnanl.
56897         * lib/ldexpl.c: Include isnanl.h.
56898         (ldexpl): Perform test for NaN through a call to isnanl.
56899         * lib/logl.c: Include isnanl.h.
56900         (logl): Perform test for NaN at the beginning of the function and
56901         through a call to isnanl.
56902         * lib/sinl.c: Include isnanl.h.
56903         (sinl): Perform test for NaN at the beginning of the function and
56904         through a call to isnanl.
56905         * lib/sqrtl.c: Include isnanl.h.
56906         (sqrtl): Perform test for NaN at the beginning of the function and
56907         through a call to isnanl.
56908         * lib/tanl.c: Include isnanl.h.
56909         (tanl): Perform test for NaN at the beginning of the function and
56910         through a call to isnanl.
56911         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56912         * modules/mathl (Depends-on): Add isnanl.
56913
56914 2007-03-26  Eric Blake  <ebb9@byu.net>
56915
56916         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56917         regression in logic sense of previous patch.
56918
56919 2007-03-26  Bruno Haible  <bruno@clisp.org>
56920
56921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56922         unportable shell command "if ! ...".
56923         Reported by Ralf Wildenhues.
56924
56925 2007-03-25  Bruno Haible  <bruno@clisp.org>
56926
56927         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56928         <sysexits.h> file, and only add EX_CONFIG.
56929         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56930         absolute file name and whether it is sufficient. Substitute also
56931         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56932         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56933         ABSOLUTE_SYSEXITS_H into sysexits.h.
56934
56935 2007-03-25  Bruno Haible  <bruno@clisp.org>
56936
56937         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56938         hints is NULL.
56939
56940 2007-03-25  Bruno Haible  <bruno@clisp.org>
56941
56942         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56943         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56944
56945 2007-03-25  Bruno Haible  <bruno@clisp.org>
56946
56947         * lib/vasnprintf.c: Include langinfo.h.
56948         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
56949         multithread-safe.
56950         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
56951         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
56952         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56953         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56956         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56957         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
56958         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56959         Reported by Simon Josefsson.
56960
56961 2007-03-25  Bruno Haible  <bruno@clisp.org>
56962
56963         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
56964         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
56965         * modules/vasnprintf (Depends-on): Add stdint.
56966
56967 2007-03-25  Bruno Haible  <bruno@clisp.org>
56968
56969         * modules/fpieee: New file.
56970         * m4/fpieee.m4: New file.
56971         * modules/isnan-nolibm (Depends-on): Add fpieee.
56972         * modules/isnanl-nolibm (Depends-on): Add fpieee.
56973         * modules/isnanl (Depends-on): Add fpieee.
56974
56975 2007-03-25  Bruno Haible  <bruno@clisp.org>
56976
56977         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
56978
56979 2007-03-25  Bruno Haible  <bruno@clisp.org>
56980
56981         Avoid test failures on IRIX 6.5.
56982         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
56983         (main): Use it.
56984         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
56985         macros.
56986         (main): Use them.
56987
56988 2007-03-25  Bruno Haible  <bruno@clisp.org>
56989
56990         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
56991         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
56992         exists but doesn't work.
56993         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
56994         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
56995         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
56996         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
56997         math.h.
56998
56999 2007-03-25  Bruno Haible  <bruno@clisp.org>
57000
57001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57002         returns inf. Needed on IRIX 6.5.
57003
57004 2007-03-25  Bruno Haible  <bruno@clisp.org>
57005
57006         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57007         (main): Use isnanl instead of x != x idiom.
57008         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57009
57010         * tests/test-frexp.c: Include isnan.h.
57011         (main): Use isnan instead of x != x idiom.
57012         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57013
57014 2007-03-25  Bruno Haible  <bruno@clisp.org>
57015
57016         * tests/test-frexp.c (NaN): New function/macro.
57017         (main): Use it instead of 0.0 / 0.0.
57018         * tests/test-isnan.c (NaN): New function/macro.
57019         (main): Use it instead of 0.0 / 0.0.
57020         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57021         (test_function): Use it instead of 0.0 / 0.0.
57022         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57023         (test_function): Use it instead of 0.0 / 0.0.
57024         * tests/test-snprintf-posix.h (NaN): New function/macro.
57025         (test_function): Use it instead of 0.0 / 0.0.
57026         * tests/test-sprintf-posix.h (NaN): New function/macro.
57027         (test_function): Use it instead of 0.0 / 0.0.
57028         * tests/test-fprintf-posix.h (NaN): New function/macro.
57029         (test_function): Use it instead of 0.0 / 0.0.
57030         * tests/test-printf-posix.h (NaN): New function/macro.
57031         (test_function): Use it instead of 0.0 / 0.0.
57032
57033         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57034
57035 2007-03-25  Bruno Haible  <bruno@clisp.org>
57036
57037         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57038
57039 2007-03-25  Bruno Haible  <bruno@clisp.org>
57040
57041         * lib/regexec.c (merge_state_with_log): Make static.
57042
57043 2007-03-25  Bruno Haible  <bruno@clisp.org>
57044
57045         * lib/trigl.c (kernel_rem_pio2): Make static.
57046
57047 2007-03-25  Bruno Haible  <bruno@clisp.org>
57048
57049         * lib/sincosl.c (sincosl_table): Make static.
57050
57051 2007-03-25  Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57054         if the compiler does not support C99.
57055
57056 2007-03-25  Bruno Haible  <bruno@clisp.org>
57057
57058         * modules/time (Makefile.am): Ensure all rule action lines start with a
57059         tab.
57060
57061 2007-03-24  Bruno Haible  <bruno@clisp.org>
57062
57063         * modules/tsearch-tests: New file.
57064         * tests/test-tsearch.sh: New file.
57065         * tests/test-tsearch.c: New file, mostly copied from glibc.
57066
57067         * modules/search-tests: New file.
57068         * tests/test-search.c: New file.
57069
57070         * modules/search: New file.
57071         * lib/search_.h: New file, incorporating lib/tsearch.h.
57072         * m4/search_h.m4: New file.
57073         * lib/tsearch.h: Remove file.
57074         * lib/tsearch.c: Include search.h instead of tsearch.h.
57075         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57076         HAVE_TSEARCH.
57077         * modules/tsearch (Files): Remove lib/tsearch.h.
57078         (Depends-on): Add search.
57079         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57080         (Include): Change tsearch.h into search.h.
57081
57082 2007-03-24  Bruno Haible  <bruno@clisp.org>
57083
57084         * modules/fpucw: New file.
57085         * lib/fpucw.h: New file.
57086         * lib/frexp.c: Include fpucw.h.
57087         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57088         (FUNC): Use them.
57089         * lib/printf-frexp.c: Include fpucw.h.
57090         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57091         (FUNC): Use them.
57092         * lib/vasnprintf.c: Include fpucw.h.
57093         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57094         'long double' calculations.
57095         * tests/test-frexpl.c: Include fpucw.h.
57096         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57097         * tests/test-printf-frexpl.c: Include fpucw.h.
57098         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57099         * modules/frexpl (Depends-on): Add fpucw.
57100         * modules/printf-frexpl (Depends-on): Likewise.
57101         * modules/fprintf-posix (Depends-on): Likewise.
57102         * modules/snprintf-posix (Depends-on): Likewise.
57103         * modules/sprintf-posix (Depends-on): Likewise.
57104         * modules/vasnprintf-posix (Depends-on): Likewise.
57105         * modules/vasprintf-posix (Depends-on): Likewise.
57106         * modules/vfprintf-posix (Depends-on): Likewise.
57107         * modules/vsnprintf-posix (Depends-on): Likewise.
57108         * modules/vsprintf-posix (Depends-on): Likewise.
57109         * modules/frexpl-tests (Depends-on): Likewise.
57110         * modules/printf-frexpl-tests (Depends-on): Likewise.
57111
57112 2007-03-24  Bruno Haible  <bruno@clisp.org>
57113
57114         * lib/float+.h: New file.
57115         * lib/isnan.c: Include float+.h.
57116         (SIZE): New macro.
57117         (FUNC): Compare only SIZE bytes of the value.
57118         * lib/vasnprintf.c: Include float+.h.
57119         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57120         SIZEOF_LDBL or SIZEOF_DBL bytes.
57121         * modules/isnan-nolibm (Files): Add lib/float+.h.
57122         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57123         * modules/isnanl (Files): Add lib/float+.h.
57124         * modules/vasnprintf (Files): Add lib/float+.h.
57125
57126 2007-03-24  Bruno Haible  <bruno@clisp.org>
57127
57128         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57129         include isnanl-nolibm.h.
57130
57131 2007-03-24  Bruno Haible  <bruno@clisp.org>
57132
57133         * tests/test-read-file.c (main): Don't produce spurious output for
57134         expected situations. Make the test fail if it encountered unexpected
57135         results.
57136
57137 2007-03-24  Bruno Haible  <bruno@clisp.org>
57138
57139         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57140         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57141
57142 2007-03-24  Bruno Haible  <bruno@clisp.org>
57143
57144         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57145
57146 2007-03-24  Bruno Haible  <bruno@clisp.org>
57147
57148         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57149         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57150
57151         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57152         * modules/utf8-ucs4: Turn into a symbolic link to module
57153         unistr/u8-mbtouc.
57154
57155         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57156         utf8-ucs4-unsafe.
57157         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57158         unistr/u8-mbtouc-unsafe.
57159
57160         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57161         * modules/utf16-ucs4: Turn into a symbolic link to module
57162         unistr/u16-mbtouc.
57163
57164         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57165         utf16-ucs4-unsafe.
57166         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57167         unistr/u16-mbtouc-unsafe.
57168
57169         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57170         * modules/ucs4-utf8: Turn into a symbolic link to module
57171         unistr/u8-ubtomb.
57172
57173         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57174         * modules/ucs4-utf16: Turn into a symbolic link to module
57175         unistr/u16-ubtomb.
57176
57177 2007-03-24  Bruno Haible  <bruno@clisp.org>
57178
57179         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57180         Enable the function only if HAVE_INLINE.
57181         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57182         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57183         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57184         Enable the function only if HAVE_INLINE.
57185         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57186         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57187         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57188         Enable the function only if HAVE_INLINE.
57189         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57190         Enable the function only if HAVE_INLINE.
57191         * modules/utf8-ucs4: Update.
57192         * modules/utf8-ucs4-unsafe: Update.
57193         * modules/utf16-ucs4: Update.
57194         * modules/utf16-ucs4-unsafe: Update.
57195         * modules/ucs4-utf8: Update.
57196         * modules/ucs4-utf16: Update.
57197
57198 2007-03-24  Bruno Haible  <bruno@clisp.org>
57199
57200         * lib/utf8-ucs4.h: Remove file.
57201         * lib/utf8-ucs4-unsafe.h: Remove file.
57202         * lib/utf16-ucs4.h: Remove file.
57203         * lib/utf16-ucs4-unsafe.h: Remove file.
57204         * lib/ucs4-utf8.h: Remove file.
57205         * lib/ucs4-utf16.h: Remove file.
57206         * lib/unistr.h: Include their previous contents.
57207         * m4/utf-ucs4.m4: Remove file.
57208         * m4/ucs4-utf.m4: Remove file.
57209         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57210         (Depends-on): Add unistr/base.
57211         (configure.ac): Remove gl_UTF_UCS4.
57212         (Makefile.am): Update.
57213         (Include): Change to unistr.h.
57214         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57215         (Depends-on): Add unistr/base.
57216         (configure.ac): Remove gl_UTF_UCS4.
57217         (Makefile.am): Update.
57218         (Include): Change to unistr.h.
57219         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57220         (Depends-on): Add unistr/base.
57221         (configure.ac): Remove gl_UTF_UCS4.
57222         (Makefile.am): Update.
57223         (Include): Change to unistr.h.
57224         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57225         (Depends-on): Add unistr/base.
57226         (configure.ac): Remove gl_UTF_UCS4.
57227         (Makefile.am): Update.
57228         (Include): Change to unistr.h.
57229         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57230         (Depends-on): Add unistr/base.
57231         (configure.ac): Remove gl_UCS4_UTF.
57232         (Makefile.am): Update.
57233         (Include): Change to unistr.h.
57234         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57235         (Depends-on): Add unistr/base.
57236         (configure.ac): Remove gl_UCS4_UTF.
57237         (Makefile.am): Update.
57238         (Include): Change to unistr.h.
57239         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57240         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57241         utf8-ucs4-unsafe.h.
57242         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57243         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57244         utf16-ucs4-unsafe.h.
57245         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57246         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57247         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57248         * lib/unistr/u8-strchr.c: Likewise.
57249         * lib/unistr/u8-strrchr.c: Likewise.
57250         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57251         * lib/unistr/u16-strchr.c: Likewise.
57252         * lib/unistr/u16-strrchr.c: Likewise.
57253         * lib/striconveh.c: Update.
57254         * lib/linebreak.c: Update.
57255
57256 2007-03-24  Bruno Haible  <bruno@clisp.org>
57257
57258         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57259         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57260
57261 2007-03-22  Bruno Haible  <bruno@clisp.org>
57262
57263         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57264
57265 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57266
57267         * MODULES.html.sh (File system functions): New module write-any-file.
57268         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57269         * m4/write-any-file.m4: New files.
57270
57271 2007-03-23  Eric Blake  <ebb9@byu.net>
57272
57273         * gnulib-tool: Rearrange space-tab sequences, since some editors
57274         like to eat them.
57275
57276 2007-03-23  Eric Blake  <ebb9@byu.net>
57277
57278         * lib/version-etc.c (version_etc_va): Update license wording to
57279         be more concise.  Recommended by Richard Stallman.
57280
57281 2007-03-22  Bruno Haible  <bruno@clisp.org>
57282
57283         * lib/poll.c (MSG_PEEK): New fallback definition.
57284
57285 2007-03-22  Bruno Haible  <bruno@clisp.org>
57286
57287         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57288         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57289         (main): Update.
57290         Fixes a compilation error on BeOS.
57291
57292 2007-03-22  Bruno Haible  <bruno@clisp.org>
57293
57294         * modules/frexpl-tests: New file.
57295         * tests/test-frexpl.c: New file.
57296
57297         * modules/frexpl: New file.
57298         * m4/frexpl.m4: New file.
57299         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57300         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57302         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57303         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57304         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57305
57306 2007-03-22  Bruno Haible  <bruno@clisp.org>
57307
57308         * lib/frexpl.c: Share code with lib/frexp.c.
57309         * modules/mathl (Files): Add lib/frexp.c.
57310         (Depends-on): Add isnanl-nolibm.
57311
57312 2007-03-22  Bruno Haible  <bruno@clisp.org>
57313
57314         * modules/printf-frexp (Files): Add m4/frexp.m4.
57315         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57316         only if the found frexp function actually works.
57317
57318 2007-03-22  Bruno Haible  <bruno@clisp.org>
57319
57320         * lib/frexp.c: Remove older implementation that uses divisions.
57321
57322 2007-03-21  Bruno Haible  <bruno@clisp.org>
57323
57324         * modules/frexp-tests: New file.
57325         * tests/test-frexp.c: New file.
57326
57327         * modules/frexp: New file.
57328         * lib/frexp.c: New file.
57329         * m4/frexp.m4: New file.
57330         * lib/math_.h (frexp): New declaration.
57331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57332         REPLACE_FREXP.
57333         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57334
57335 2007-03-21  Bruno Haible  <bruno@clisp.org>
57336
57337         * modules/isnanl-tests: New file.
57338         * tests/test-isnanl.c: New file.
57339
57340         * modules/isnanl: New file.
57341         * lib/isnanl.h: New file.
57342         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57343         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57344         gl_FUNC_ISNANL_WORKS.
57345         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57346         New macros.
57347
57348 2007-03-21  Bruno Haible  <bruno@clisp.org>
57349
57350         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57351         lib/isnanl.h.
57352         (Include): Update.
57353         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57354         * lib/vasnprintf.c: Update.
57355         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57356         tests/test-isnanl.h, remove tests/test-isnanl.c.
57357         (Makefile.am): Update.
57358         * tests/test-isnanl-nolibm.c: New file.
57359         * tests/test-isnanl.h: New file.
57360         * tests/test-isnanl.c: Remove file.
57361
57362 2007-03-21  Jim Meyering  <jim@meyering.net>
57363
57364         When trying to open ".", treat ESTALE like EACCES.
57365         * lib/savewd.c (savewd_save): Resort to forking not just upon
57366         failure with EACCES, but also when errno is ESTALE.
57367
57368 2007-03-20  Bruno Haible  <bruno@clisp.org>
57369
57370         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57371         Needed on AIX 5.1. Reported by Matthew Woehlke.
57372
57373 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57374
57375         Suggestions by Bruno Haible:
57376         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57377         our own.
57378         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57379         * modules/acl (Depends-on): Add gettext.
57380
57381 2007-03-19  Bruno Haible  <bruno@clisp.org>
57382
57383         * modules/iconvme: Remove file.
57384         * lib/iconvme.h: Remove file.
57385         * lib/iconvme.c: Remove file.
57386         * m4/iconvme.m4: Remove file.
57387
57388 2007-03-19  Bruno Haible  <bruno@clisp.org>
57389
57390         * doc/relocatable-maint.texi: Break long shell script line.
57391         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57392
57393 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57394
57395         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57396         handle file_has_acl.
57397         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57398         * lib/acl.c: Move header inclusions and related macro defns into
57399         lib/acl-internal.h.
57400         (S_ISLNK): Remove defn, since that's now done for us.
57401         (file_has_acl): Move to lib/file-has-acl.c.
57402         Call acl_trivial if available.  This is the crucial part of the fix.
57403         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57404         shared within the library.  Rewrite a bit, partly to make it compatible
57405         with the GNU coding style.
57406         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57407         Remove unnecessary double-quotes.
57408         Don't test for acl_to_text; the build will catch that.
57409         Replace acl_entries if it doesn't exist and it is needed.
57410         Check for -lsec and acl_trivial (as used on Solaris 10).
57411         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57412         lib/file-has-acl.c.
57413         (Depends-on): Add sys_stat, for S_ISLNK.
57414
57415 2007-03-19  Ben Pfaff  <blp@gnu.org>
57416
57417         * doc/gnulib.texi: Fix typos.
57418         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57419
57420 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57421
57422         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57423         If size is zero here, buf must be zero.
57424
57425 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57426
57427         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57428         <bruno@clisp.org>.
57429
57430 2007-03-18  Bruno Haible  <bruno@clisp.org>
57431
57432         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57433         Suggested by Eric Blake.
57434
57435 2007-03-18  Ben Pfaff  <blp@gnu.org>
57436
57437         * doc/relocatable.texi: Recommend using as prefix a directory
57438         that does not exist and will never be created.  Based on
57439         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57440         and others.
57441
57442 2007-03-17  Bruno Haible  <bruno@clisp.org>
57443
57444         * lib/fchownat.c: Include lchown.h.
57445
57446 2007-03-17  Bruno Haible  <bruno@clisp.org>
57447
57448         Fix endless loop when the given allocated size was > INT_MAX.
57449         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57450         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57451         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57452         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57453         * lib/sprintf.c (sprintf): Likewise.
57454
57455 2007-03-17  Bruno Haible  <bruno@clisp.org>
57456
57457         * tests/test-argp-2.sh (func_compare): Output a context diff.
57458
57459 2007-03-17  Bruno Haible  <bruno@clisp.org>
57460
57461         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57462         locale's decimal-point character.
57463
57464 2007-03-17  Bruno Haible  <bruno@clisp.org>
57465
57466         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57467         before comparing it. Needed because on some platforms (e.g. x86) a
57468         'long double' occupies less bytes than sizeof (long double).
57469
57470 2007-03-17  Bruno Haible  <bruno@clisp.org>
57471
57472         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57473         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57474         * tests/test-getaddrinfo.c (simple): Likewise.
57475         * tests/test-read-file.c (main): Likewise.
57476
57477 2007-03-17  Bruno Haible  <bruno@clisp.org>
57478
57479         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57480
57481 2007-03-17  Bruno Haible  <bruno@clisp.org>
57482
57483         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57484         unused variable.
57485
57486 2007-03-17  Bruno Haible  <bruno@clisp.org>
57487
57488         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57489         * tests/test-c-strncasecmp.c: Likewise.
57490
57491 2007-03-17  Bruno Haible  <bruno@clisp.org>
57492
57493         * modules/stdlib (Depends-on): Add unistd.
57494         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57495         Needed for MacOS X 10.3.
57496
57497 2007-03-17  Bruno Haible  <bruno@clisp.org>
57498
57499         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57500
57501 2007-03-17  Bruno Haible  <bruno@clisp.org>
57502
57503         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57504
57505 2007-03-17  Bruno Haible  <bruno@clisp.org>
57506
57507         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57508         to reflect files copied from gnulib (with or without modifications).
57509         Suggested by Jim Meyering.
57510
57511 2007-03-17  Eric Blake  <ebb9@byu.net>
57512
57513         * NEWS: Document stdlib change from 2007-02-18.
57514
57515 2007-03-17  Jim Meyering  <jim@meyering.net>
57516
57517         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57518         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57519         someone uses a name containing shell meta-characters.
57520         Reported by Alfred M. Szmidt.
57521
57522         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57523
57524 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57525
57526         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57527         and copy gettext configuration files only if configure.ac contains
57528         a use of AM_GNU_GETTEXT_VERSION.
57529
57530 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57531
57532         * build-aux/bootstrap (gnulib_name): New variable.
57533         (gnulib_tool_options): Use it.
57534
57535 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57536
57537         * tests/test-des.c: Use new namespace.
57538
57539 2007-03-15  Bruno Haible  <bruno@clisp.org>
57540
57541         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57542         Reported by James Youngman <jay@gnu.org>.
57543
57544 2007-03-15  Bruno Haible  <bruno@clisp.org>
57545
57546         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57547         declared prototype. Needed with cc on OSF/1 5.1.
57548
57549 2007-03-15  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57552         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57553         (struct gl_list_implementation): Add dispose_fn argument to the
57554         'create_empty', 'create' methods.
57555         (struct gl_list_impl_base): Add field 'dispose_fn'.
57556         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57557         argument.
57558         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57559         dispose_fn argument.
57560         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57561         dispose_fn on the dropped values.
57562         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57563         dispose_fn argument.
57564         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57565         dropped values.
57566         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57567         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57568         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57569         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57570         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57571         argument.
57572         (gl_tree_list_free): Call dispose_fn on the dropped values.
57573         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57574         the dropped values.
57575         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57576         Add dispose_fn argument.
57577         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57578         Call dispose_fn on the dropped values.
57579         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57580         Add dispose_fn argument.
57581         (gl_sublist_create): Initialize the 'dispose_fn' field.
57582         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57583         * tests/test-array_list.c (main): Update.
57584         * tests/test-carray_list.c (main): Update.
57585         * tests/test-avltree_list.c (main): Update.
57586         * tests/test-rbtree_list.c (main): Update.
57587         * tests/test-avltreehash_list.c (main): Update.
57588         * tests/test-rbtreehash_list.c (main): Update.
57589         * tests/test-linked_list.c (main): Update.
57590         * tests/test-linkedhash_list.c (main): Update.
57591         * tests/test-array_oset.c (main): Update.
57592
57593 2007-03-15  Bruno Haible  <bruno@clisp.org>
57594
57595         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57596         (gl_oset_create_empty): Add dispose_fn argument.
57597         (struct gl_oset_implementation): Add dispose_fn argument to
57598         'create_empty' method.
57599         (struct gl_oset_impl_base): Add dispose_fn field.
57600         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57601         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57602         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57603         values.
57604         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57605         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57606         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57607         dropped value.
57608         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57609         dropped value.
57610         * tests/test-array_oset.c (main): Update.
57611         * tests/test-avltree_oset.c (main): Update.
57612         * tests/test-rbtree_oset.c (main): Update.
57613         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57614
57615 2007-03-13  Bruno Haible  <bruno@clisp.org>
57616
57617         * tests/test-stdbool.c (i): Update after last patch.
57618
57619 2007-03-12  Bruno Haible  <bruno@clisp.org>
57620
57621         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57622         the iswprint macro. Needed on Solaris 2.5.1.
57623
57624 2007-03-12  Bruno Haible  <bruno@clisp.org>
57625
57626         * tests/test-printf-frexp.c (main): Declare x as volatile.
57627
57628 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57629
57630         * doc/gnulib.texi (Build robot for gnulib): New section.
57631
57632 2007-03-12  Jim Meyering  <jim@meyering.net>
57633
57634         * build-aux/bootstrap: New file.
57635         * build-aux/bootstrap.conf: New file, from coreutils.
57636
57637 2007-03-11  Bruno Haible  <bruno@clisp.org>
57638
57639         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57640
57641 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57642
57643         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57644         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57645         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57646
57647 2007-03-11  Bruno Haible  <bruno@clisp.org>
57648
57649         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57650         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57651
57652 2007-03-11  Bruno Haible  <bruno@clisp.org>
57653
57654         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57655         formula. Needed for SunPRO C 5.0.
57656
57657 2007-03-11  Bruno Haible  <bruno@clisp.org>
57658
57659         * modules/long-options (Depends-on): Add getopt.
57660
57661 2007-03-11  Bruno Haible  <bruno@clisp.org>
57662
57663         * modules/modechange (Depends-on): Add stdbool.
57664
57665 2007-03-11  Bruno Haible  <bruno@clisp.org>
57666
57667         * modules/i-ring (Depends-on): Add stdbool.
57668
57669 2007-03-11  Bruno Haible  <bruno@clisp.org>
57670
57671         * modules/gc-des (Depends-on): Add stdbool.
57672
57673 2007-03-11  Bruno Haible  <bruno@clisp.org>
57674
57675         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57676
57677 2007-03-11  Bruno Haible  <bruno@clisp.org>
57678
57679         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57680
57681 2007-03-11  Bruno Haible  <bruno@clisp.org>
57682
57683         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57684
57685 2007-03-11  Bruno Haible  <bruno@clisp.org>
57686
57687         * lib/vasnprintf.c (sprintf): Undefine.
57688
57689 2007-03-11  Bruno Haible  <bruno@clisp.org>
57690
57691         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57692         initializers in SunPRO C and Compaq C compilers.
57693
57694 2007-03-11  Bruno Haible  <bruno@clisp.org>
57695
57696         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57697         decrementing code ANSI C compliant.
57698
57699 2007-03-11  Bruno Haible  <bruno@clisp.org>
57700
57701         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57702         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57703
57704 2007-03-11  Bruno Haible  <bruno@clisp.org>
57705
57706         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57707         <stdbool.h> substitute doesn't pass.
57708
57709 2007-03-11  Bruno Haible  <bruno@clisp.org>
57710
57711         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57712
57713 2007-03-11  Bruno Haible  <bruno@clisp.org>
57714
57715         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57716         script, for submission to autobuild.josefsson.org.
57717
57718 2007-03-10  Bruno Haible  <bruno@clisp.org>
57719
57720         * modules/canonicalize-lgpl-tests: New file.
57721         * tests/test-canonicalize-lgpl.sh: New file.
57722         * tests/test-canonicalize-lgpl.c: New file.
57723
57724         * modules/c-strcase-tests: New file.
57725         * tests/test-c-strcase.sh: New file.
57726         * tests/test-c-strcasecmp.c: New file.
57727         * tests/test-c-strncasecmp.c: New file.
57728
57729         * modules/atexit-tests: New file.
57730         * tests/test-atexit.sh: New file.
57731         * tests/test-atexit.c: New file.
57732
57733 2007-03-10  Bruno Haible  <bruno@clisp.org>
57734
57735         * tests/test-binary-io.sh: Use temporary filenames that are not so
57736         likely to clash with those of other tests (in a parallel make).
57737         * tests/test-binary-io.c: Likewise.
57738
57739 2007-03-10  Bruno Haible  <bruno@clisp.org>
57740
57741         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57742         fallback; use #error instead.
57743         Suggested by Simon Josefsson.
57744
57745 2007-03-10  Bruno Haible  <bruno@clisp.org>
57746
57747         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57748         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57749         first and the last.
57750
57751 2007-03-10  Bruno Haible  <bruno@clisp.org>
57752
57753         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57754
57755 2007-03-10  Bruno Haible  <bruno@clisp.org>
57756
57757         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57758         "make distcheck".
57759         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57760         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57761         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57762
57763 2007-03-10  Bruno Haible  <bruno@clisp.org>
57764
57765         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57766         variable.
57767         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57768         variable.
57769
57770 2007-03-09  Eric Blake  <ebb9@byu.net>
57771         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57772
57773         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57774         types are not being provided by gnulib.
57775         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57776         types are supported.
57777
57778 2007-03-10  Bruno Haible  <bruno@clisp.org>
57779
57780         * lib/stdio_.h (__attribute__): New macro.
57781         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57782         vsprintf): Specify __attribute__ __format__ for GCC.
57783         Suggested by Eric Blake.
57784
57785 2007-03-09  Bruno Haible  <bruno@clisp.org>
57786
57787         * modules/printf-posix-tests: New file.
57788         * tests/test-printf-posix.sh: New file.
57789         * tests/test-printf-posix.c: New file.
57790
57791         * modules/printf-posix: New file.
57792         * lib/printf.c: New file.
57793         * m4/printf-posix-rpl.m4: New file.
57794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57795         REPLACE_PRINTF.
57796         * lib/stdio_.h (printf): New declaration.
57797         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57798         ____strfmon____): New macros.
57799         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57800         REPLACE_PRINTF.
57801
57802 2007-03-09  Bruno Haible  <bruno@clisp.org>
57803
57804         * tests/test-vasnprintf-posix2.sh: New file.
57805         * tests/test-vasnprintf-posix2.c: New file.
57806         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57807         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57808         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57809
57810         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57811         a locale dependent decimal point, rather than always '.'.
57812
57813 2007-03-09  Eric Blake  <ebb9@byu.net>
57814
57815         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57816         spite of platforms like Tandem/NSK that define it to -1.
57817
57818 2007-03-08  Bruno Haible  <bruno@clisp.org>
57819
57820         * modules/vprintf-posix-tests: New file.
57821         * tests/test-vprintf-posix.sh: New file.
57822         * tests/test-vprintf-posix.c: New file.
57823         * tests/test-printf-posix.h: New file.
57824
57825         * modules/vprintf-posix: New file.
57826         * lib/vprintf.c: New file.
57827         * m4/vprintf-posix.m4: New file.
57828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57829         REPLACE_VPRINTF.
57830         * lib/stdio_.h (vprintf): New declaration.
57831         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57832         REPLACE_VPRINTF.
57833
57834 2007-03-08  Bruno Haible  <bruno@clisp.org>
57835
57836         * modules/fprintf-posix-tests: New file.
57837         * tests/test-fprintf-posix.sh: New file.
57838         * tests/test-fprintf-posix.c: New file.
57839
57840         * modules/fprintf-posix: New file.
57841         * lib/fprintf.c: New file.
57842         * m4/fprintf-posix.m4: New file.
57843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57844         REPLACE_FPRINTF.
57845         * lib/stdio_.h (fprintf): New declaration.
57846         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57847         REPLACE_FPRINTF.
57848
57849 2007-03-08  Bruno Haible  <bruno@clisp.org>
57850
57851         * modules/vfprintf-posix-tests: New file.
57852         * tests/test-vfprintf-posix.sh: New file.
57853         * tests/test-vfprintf-posix.c: New file.
57854         * tests/test-fprintf-posix.h: New file.
57855         * tests/test-fprintf-posix.out: New file.
57856
57857         * modules/vfprintf-posix: New file.
57858         * lib/vfprintf.c: New file.
57859         * m4/vfprintf-posix.m4: New file.
57860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57861         REPLACE_VFPRINTF.
57862         * lib/stdio_.h (vfprintf): New declaration.
57863         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57864         REPLACE_VFPRINTF.
57865
57866 2007-03-08  Bruno Haible  <bruno@clisp.org>
57867
57868         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57869
57870 2007-03-08  Bruno Haible  <bruno@clisp.org>
57871
57872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57873         instead of 'expr' invocations.
57874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57879         Suggested by Paul Eggert.
57880
57881 2007-03-08  Bruno Haible  <bruno@clisp.org>
57882
57883         * modules/fseterr-tests: New file.
57884         * tests/test-fseterr.c: New file.
57885
57886         * modules/fseterr: New file.
57887         * lib/fseterr.h: New file.
57888         * lib/fseterr.c: New file.
57889
57890 2007-03-08  Bruno Haible  <bruno@clisp.org>
57891
57892         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57893         * lib/getopt_.h: Likewise.
57894         * lib/mbswidth.h: Likewise.
57895         * lib/setenv.h: Likewise.
57896         * lib/vasnprintf.h: Likewise.
57897         * lib/vasprintf.h: Likewise.
57898         * lib/verror.h: Likewise.
57899         * lib/xsetenv.h: Likewise.
57900         * lib/xvasprintf.h: Likewise.
57901
57902 2007-03-08  Jim Meyering  <jim@meyering.net>
57903
57904         * users.txt: Add parted.
57905
57906         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57907
57908 2007-03-07  Bruno Haible  <bruno@clisp.org>
57909
57910         * m4/printf.m4: Make the shell script snippets copy&pastable.
57911
57912 2007-03-02  Bruno Haible  <bruno@clisp.org>
57913
57914         * lib/netinet_in_.h: New file.
57915         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57916         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57917         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57918         (Depends-on): Add absolute-header.
57919         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57920         into netinet/in.h.
57921
57922 2007-03-03  Bruno Haible  <bruno@clisp.org>
57923
57924         * lib/sys_select_.h: New file.
57925         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57926         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57927         * modules/sys_select (Files): Add lib/sys_select_.h.
57928         (Depends-on): Add absolute-header.
57929         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57930         into sys/select.h.
57931
57932 2007-03-02  Bruno Haible  <bruno@clisp.org>
57933
57934         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57935         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57936         values.
57937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57938         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57939         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57940         * modules/sys_socket (Depends-on): Add absolute-header.
57941         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57942         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57943         (Include): Remove requirement of inclusion of <sys/types.h>.
57944
57945 2007-03-02  Bruno Haible  <bruno@clisp.org>
57946
57947         * lib/byteswap_.h (bswap_32): Fix formula.
57948
57949 2007-03-06  Bruno Haible  <bruno@clisp.org>
57950
57951         * modules/sprintf-posix-tests: New file.
57952         * tests/test-sprintf-posix.c: New file.
57953
57954         * modules/sprintf-posix: New file.
57955         * lib/sprintf.c: New file.
57956         * m4/sprintf-posix.m4: New file.
57957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
57958         REPLACE_SPRINTF.
57959         * lib/stdio_.h (sprintf): New declaration.
57960         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
57961         REPLACE_SPRINTF.
57962
57963 2007-03-06  Bruno Haible  <bruno@clisp.org>
57964
57965         * modules/vsprintf-posix-tests: New file.
57966         * tests/test-vsprintf-posix.c: New file.
57967         * tests/test-sprintf-posix.h: New file.
57968
57969         * modules/vsprintf-posix: New file.
57970         * lib/vsprintf.c: New file.
57971         * m4/vsprintf-posix.m4: New file.
57972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
57973         REPLACE_VSPRINTF.
57974         * lib/stdio_.h (vsprintf): New declaration.
57975         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
57976         REPLACE_VSPRINTF.
57977
57978 2007-03-06  Bruno Haible  <bruno@clisp.org>
57979
57980         * modules/vsnprintf (Depend-on): Remove minmax.
57981
57982 2007-03-06  Bruno Haible  <bruno@clisp.org>
57983
57984         * modules/snprintf-posix-tests: New file.
57985         * tests/test-snprintf-posix.c: New file.
57986
57987         * modules/snprintf-posix: New file.
57988         * m4/snprintf-posix.m4: New file.
57989         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
57990         gl_FUNC_SNPRINTF.
57991         (gl_FUNC_SNPRINTF): Invoke it.
57992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
57993         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
57994         is set.
57995         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
57996
57997 2007-03-06  Bruno Haible  <bruno@clisp.org>
57998
57999         * modules/vsnprintf-posix-tests: New file.
58000         * tests/test-vsnprintf-posix.c: New file.
58001         * tests/test-snprintf-posix.h: New file.
58002
58003         * modules/vsnprintf-posix: New file.
58004         * m4/vsnprintf-posix.m4: New file.
58005         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58006         gl_FUNC_VSNPRINTF.
58007         (gl_FUNC_VSNPRINTF): Invoke it.
58008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58009         * lib/stdio_.h (vsnprintf): Define as a replacement if
58010         REPLACE_VSNPRINTF is set.
58011         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58012
58013 2007-03-06  Bruno Haible  <bruno@clisp.org>
58014
58015         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58017
58018 2007-03-06  Bruno Haible  <bruno@clisp.org>
58019
58020         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58021         (asinl): Declare also if HAVE_DECL_ASINL is set.
58022         (atanl): Declare also if HAVE_DECL_ATANL is set.
58023         (ceill): Declare also if HAVE_DECL_CEILL is set.
58024         (cosl): Declare also if HAVE_DECL_COSL is set.
58025         (expl): Declare also if HAVE_DECL_EXPL is set.
58026         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58027         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58028         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58029         (logl): Declare also if HAVE_DECL_LOGL is set.
58030         (sinl): Declare also if HAVE_DECL_SINL is set.
58031         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58032         (tanl): Declare also if HAVE_DECL_TANL is set.
58033         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58035         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58036         declaration of frexpl, ldexpl.
58037         * modules/printf-frexpl (Depends-on): Add math.
58038         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58039
58040 2007-03-05  Bruno Haible  <bruno@clisp.org>
58041
58042         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58043         frexpl and ldexpl are declared.
58044         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58045
58046 2007-03-05  Bruno Haible  <bruno@clisp.org>
58047
58048         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58049         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58050
58051 2007-03-05  Bruno Haible  <bruno@clisp.org>
58052
58053         * lib/stdio_.h: Include <stddef.h>.
58054
58055 2007-03-05  Bruno Haible  <bruno@clisp.org>
58056
58057         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58058
58059 2007-03-05  Bruno Haible  <bruno@clisp.org>
58060
58061         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58062         NetBSD 4, from Ralf Wildenhues.
58063
58064 2007-03-04  Bruno Haible  <bruno@clisp.org>
58065
58066         * lib/vasprintf.h: Update #if logic for the case when the functions
58067         exist but are overridden.
58068
58069 2007-03-04  Bruno Haible  <bruno@clisp.org>
58070
58071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58072         implementations: glibc-2.4 and MacOS X 10.3.
58073         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58074         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58075         * tests/test-vasprintf-posix.c (test_function): Likewise.
58076
58077 2007-03-04  Bruno Haible  <bruno@clisp.org>
58078
58079         * modules/vasprintf-posix-tests: New file.
58080         * tests/test-vasprintf-posix.c: New file.
58081
58082         * modules/vasprintf-posix: New file.
58083         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58084         defined.
58085         * m4/vasprintf-posix.m4: New file.
58086         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58087         gl_FUNC_VASPRINTF.
58088         (gl_FUNC_VASPRINTF): Invoke it.
58089         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58090         here.
58091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58092
58093 2007-03-04  Bruno Haible  <bruno@clisp.org>
58094
58095         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58096         REPLACE_GETTIMEOFDAY.
58097         * modules/sys_time (Makefile.am): Likewise.
58098         * m4/sys_time_h.m4: Likewise.
58099         * m4/gettimeofday.m4: Likewise.
58100
58101 2007-03-04  Bruno Haible  <bruno@clisp.org>
58102
58103         * modules/vasnprintf-posix-tests: New file.
58104         * tests/test-vasnprintf-posix.c: New file.
58105
58106         * modules/vasnprintf-posix: New file.
58107         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58108         printf-frexpl.h.
58109         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58110         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58111         REPLACE_VASNPRINTF is defined.
58112         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58113         gl_FUNC_VASNPRINTF.
58114         (gl_FUNC_VASNPRINTF): Invoke it.
58115         * m4/vasnprintf-posix.m4: New file.
58116         * m4/printf.m4: New file.
58117
58118 2007-03-04  Bruno Haible  <bruno@clisp.org>
58119
58120         Compile progreloc.c only if --enable-relocatable is specified.
58121         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58122         if --enable-relocatable was specified.
58123         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58124         lib_SOURCES.
58125
58126 2007-03-04  Jim Meyering  <jim@meyering.net>
58127
58128         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58129         Use it consistently, rather than enumerating errno constants.
58130
58131 2007-03-04  Bruno Haible  <bruno@clisp.org>
58132
58133         * modules/xvasprintf-tests: New file.
58134         * tests/test-xvasprintf.c: New file.
58135
58136         * modules/vasprintf-tests: New file.
58137         * tests/test-vasprintf.c: New file.
58138
58139         * modules/vasnprintf-tests: New file.
58140         * tests/test-vasnprintf.c: New file.
58141
58142         * modules/vsnprintf-tests: New file.
58143         * tests/test-vsnprintf.c: New file.
58144
58145         * modules/snprintf-tests: New file.
58146         * tests/test-snprintf.c: New file.
58147
58148 2007-03-04  Bruno Haible  <bruno@clisp.org>
58149
58150         Compile relocatable.c only if --enable-relocatable is specified.
58151         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58152         gl_RELOCATABLE_LIBRARY.
58153         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58154         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58155         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58156         gl_RELOCATABLE_LIBRARY.
58157         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58158         (Makefile.am): Remove lib_SOURCES.
58159         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58160         gl_RELOCATABLE_LIBRARY.
58161         (Makefile.am): Remove lib_SOURCES.
58162         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58163         always.
58164         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58165         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58166
58167 2007-03-04  Bruno Haible  <bruno@clisp.org>
58168
58169         * modules/argmatch-tests: New file.
58170         * tests/test-argmatch.c: New file.
58171
58172         * tests/test-allocsa.c (main): Halve the number of loop runs.
58173
58174         * modules/alloca-opt-tests: New file.
58175         * tests/test-alloca-opt.c: New file.
58176
58177 2007-03-04  Jim Meyering  <jim@meyering.net>
58178
58179         Work around difference between Linux ACLs and Solaris 10 ZFS.
58180         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58181         for EINVAL.
58182
58183 2007-03-03  Bruno Haible  <bruno@clisp.org>
58184
58185         * modules/relocatable-prog (Depends-on): Add back progreloc's
58186         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58187
58188 2007-03-03  Bruno Haible  <bruno@clisp.org>
58189
58190         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58191         * modules/relocatable-lib: New file.
58192
58193 2007-03-03  Bruno Haible  <bruno@clisp.org>
58194
58195         * modules/relocatable-prog: Renamed from modules/relocatable.
58196         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58197
58198 2007-03-03  Bruno Haible  <bruno@clisp.org>
58199
58200         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58201         m4/relocatable-lib.m4.
58202         (Depends-on): Remove 'relocatable'.
58203         (configure.ac): Add gl_RELOCATABLE_NOP.
58204
58205 2007-03-03  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/relocatable-prog-wrapper: New file.
58208         * modules/relocatable (Depends-on): Add it. Remove all other
58209         dependencies except progname.
58210         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58211
58212         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58213         (gl_FUNC_STRERROR): Nop.
58214         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58215
58216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58217         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58218
58219         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58220         (gl_FUNC_READLINK): Update.
58221
58222         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58223
58224 2007-03-03  Bruno Haible  <bruno@clisp.org>
58225
58226         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58227         * modules/xreadlink (Depends-on): Add unistd.
58228         * modules/xreadlink-with-size (Depends-on): Likewise.
58229
58230 2007-03-03  Bruno Haible  <bruno@clisp.org>
58231
58232         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58233         extracted from gt_FUNC_SETENV.
58234         (gt_FUNC_SETENV): Remove macro.
58235         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58236         remove gt_FUNC_SETENV.
58237
58238 2007-03-03  Bruno Haible  <bruno@clisp.org>
58239
58240         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58241         ENABLE_RELOCATABLE here.
58242         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58243
58244 2007-03-03  Bruno Haible  <bruno@clisp.org>
58245
58246         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58247         * tests/test-rbtreehash_list.c: Include progname.h.
58248         (main): Call set_program_name.
58249
58250         * modules/rbtree-oset-tests (Depends-on): Add progname.
58251         * tests/test-rbtree_oset.c: Include progname.h.
58252         (main): Call set_program_name.
58253
58254         * modules/rbtree-list-tests (Depends-on): Add progname.
58255         * tests/test-rbtree_list.c: Include progname.h.
58256         (main): Call set_program_name.
58257
58258         * modules/linked-list-tests (Depends-on): Add progname.
58259         * tests/test-linked_list.c: Include progname.h.
58260         (main): Call set_program_name.
58261
58262 2007-03-03  Bruno Haible  <bruno@clisp.org>
58263
58264         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58265         All uses of __restrict changed to _Restrict_.
58266         * lib/glob_.h (__restrict): Remove macro.
58267
58268 2007-03-02  Bruno Haible  <bruno@clisp.org>
58269
58270         * modules/gettext (configure.ac): Require gettext infrastructure
58271         from version 0.16.1.
58272
58273 2007-03-02  Bruno Haible  <bruno@clisp.org>
58274
58275         * modules/linkedhash-list-tests (Depends-on): Add progname.
58276         * tests/test-linkedhash_list.c: Include progname.h.
58277         (main): Call set_program_name.
58278
58279         * modules/carray-list-tests (Depends-on): Add progname.
58280         * tests/test-carray_list.c: Include progname.h.
58281         (main): Call set_program_name.
58282
58283         * modules/avltreehash-list-tests (Depends-on): Add progname.
58284         * tests/test-avltreehash_list.c: Include progname.h.
58285         (main): Call set_program_name.
58286
58287         * modules/avltree-oset-tests (Depends-on): Add progname.
58288         * tests/test-avltree_oset.c: Include progname.h.
58289         (main): Call set_program_name.
58290
58291         * modules/avltree-list-tests (Depends-on): Add progname.
58292         * tests/test-avltree_list.c: Include progname.h.
58293         (main): Call set_program_name.
58294
58295         * modules/array-oset-tests (Depends-on): Add progname.
58296         * tests/test-array_oset.c: Include progname.h.
58297         (main): Call set_program_name.
58298
58299         * modules/array-list-tests (Depends-on): Add progname.
58300         * tests/test-array_list.c: Include progname.h.
58301         (main): Call set_program_name.
58302
58303         * modules/argp-tests (Depends-on): Add progname.
58304         * tests/test-argp.c: Include argp.h first. Include progname.h.
58305         (main): Call set_program_name.
58306
58307 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58308
58309         * doc/gnulib-tool.texi (Initial import): Reword description of
58310         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58311         limited effect even if defined after the first system include.
58312
58313 2007-03-01  Bruno Haible  <bruno@clisp.org>
58314
58315         * build-aux/config.libpath: Update to libtool-1.5.22.
58316         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58317
58318 2007-03-01  Bruno Haible  <bruno@clisp.org>
58319
58320         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58321         foo_CFLAGS.
58322         Reported by Ralf Wildenhues.
58323
58324 2007-03-01  Bruno Haible  <bruno@clisp.org>
58325
58326         * build-aux/install-reloc: Remove object files left over by some
58327         compilers.
58328         Reported by Ralf Wildenhues.
58329
58330 2007-03-01  Bruno Haible  <bruno@clisp.org>
58331
58332         * build-aux/install-reloc: Break long lines.
58333
58334 2007-03-01  Bruno Haible  <bruno@clisp.org>
58335
58336         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58337         Reported by Ralf Wildenhues.
58338
58339 2007-03-01  Bruno Haible  <bruno@clisp.org>
58340
58341         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58342         include ordering constraints.
58343
58344 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58345
58346         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58348         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58349         as another example.
58350         * lib/time_.h: Fix misspelling.
58351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58352         Require gl_HEADER_TIME_H_DEFAULTS.
58353         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58354         * m4/time_r.m4 (gl_TIME_R): Likewise.
58355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58356
58357 2007-03-01  Bruno Haible  <bruno@clisp.org>
58358
58359         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58360         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58361
58362 2007-03-01  Jim Meyering  <jim@meyering.net>
58363
58364         * modules/xreadlink (Maintainer): Add my name.
58365         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58366
58367 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58368             Bruno Haible  <bruno@clisp.org>
58369
58370         * build-aux/install-reloc: Compile also c-ctype.c.
58371         * build-aux/relocatable.sh.in: New file.
58372         * doc/relocatable.texi: New file.
58373         * doc/relocatable-maint.texi: New file.
58374         * doc/gnulib.texi: Include relocatable-maint.texi.
58375         * lib/progreloc.c: Include unistd.h unconditionally.
58376         * lib/relocwrapper.c: Include unistd.h unconditionally.
58377         Include c-ctype.h.
58378         (add_dotbin): Use c_tolower.
58379         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58380         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58381         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58382         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58383         to m4/relocatable-lib.m4.
58384         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58385         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58386         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58387         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58388         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58389         * modules/relocatable: New file.
58390         * modules/relocatable-lib: New file.
58391         * modules/relocatable-script: New file.
58392
58393 2007-02-28  Bruno Haible  <bruno@clisp.org>
58394
58395         Import --enable-relocatable infrastructure.
58396         * build-aux/config.libpath: New file, from GNU gettext.
58397         * build-aux/install-reloc: New file, from GNU gettext.
58398         * build-aux/reloc-ldflags: New file, from GNU gettext.
58399         * lib/relocatable.h: New file, from GNU gettext.
58400         * lib/relocatable.c: New file, from GNU gettext.
58401         * lib/relocwrapper.c: New file, from GNU gettext.
58402         * m4/relocatable.m4: New file, from GNU gettext.
58403
58404 2007-02-28  Bruno Haible  <bruno@clisp.org>
58405
58406         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58407
58408         * modules/xreadlink: New file, from GNU gettext with modifications.
58409         * lib/xreadlink.c: New file, from GNU gettext.
58410         * lib/xreadlink.h: Add comments.
58411         (xreadlink): New declaration.
58412
58413         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58414         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58415         lib/xreadlink-with-size.c.
58416         (configure.ac): Remove gl_XREADLINK invocation.
58417         (Makefile.am): Augment lib_SOURCES.
58418         * m4/xreadlink.m4: Remove file.
58419         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58420         (xreadlink_with_size): Renamed from xreadink.
58421         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58422         * modules/canonicalize (Depends-on): Replace xreadlink with
58423         xreadlink-with-size.
58424         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58425
58426 2007-02-25  Jim Meyering  <jim@meyering.net>
58427
58428         * build-aux/announce-gen: When complaining about excess arguments,
58429         list them.
58430
58431 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58432
58433         * README: Document signed integer overflow situation more
58434         accurately.
58435
58436 2007-02-25  Bruno Haible  <bruno@clisp.org>
58437
58438         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58439         'a' or 'A' conversion.
58440
58441 2007-02-25  Bruno Haible  <bruno@clisp.org>
58442
58443         * modules/filename: Renamed from modules/pathname.
58444         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58445         lib/concatpath.c with lib/concat-filename.c.
58446         (Makefile.am): Update.
58447         (Include): Replace pathname.h with filename.h.
58448         * lib/filename.h: Renamed from lib/pathname.h.
58449         (concatenated_filename): Renamed from concatenated_pathname.
58450         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58451         (concatenated_filename): Renamed from concatenated_pathname.
58452         * lib/findprog.c: Include filename.h instead of pathname.h.
58453         (find_in_path): Update.
58454         * lib/javacomp.c: Include filename.h instead of pathname.h.
58455         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58456         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58457         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58458         is_oldgcj_14_13_usable, is_javac_usable): Update.
58459         * lib/javaexec.c: Include filename.h instead of pathname.h.
58460         (execute_java_class): Update.
58461         * modules/findprog: Update.
58462         * modules/javacomp: Update.
58463         * modules/javaexec: Update.
58464         * MODULES.html.sh (File system functions): Add 'filename', remove
58465         'pathname'.
58466
58467 2007-02-25  Bruno Haible  <bruno@clisp.org>
58468
58469         * modules/printf-frexpl-tests: New file.
58470         * tests/test-printf-frexpl.c: New file.
58471
58472         * modules/printf-frexpl: New file.
58473         * lib/printf-frexpl.h: New file.
58474         * lib/printf-frexpl.c: New file.
58475         * m4/printf-frexpl.m4: New file.
58476
58477 2007-02-25  Bruno Haible  <bruno@clisp.org>
58478
58479         * modules/printf-frexp-tests: New file.
58480         * tests/test-printf-frexp.c: New file.
58481
58482         * modules/printf-frexp: New file.
58483         * lib/printf-frexp.h: New file.
58484         * lib/printf-frexp.c: New file.
58485         * m4/printf-frexp.m4: New file.
58486
58487 2007-02-25  Bruno Haible  <bruno@clisp.org>
58488
58489         Assume automake >= 1.10 for the tests.
58490         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58491         * modules/arctwo-tests: Likewise.
58492         * modules/argp-tests: Likewise.
58493         * modules/avltree-list-tests: Likewise.
58494         * modules/avltree-oset-tests: Likewise.
58495         * modules/avltreehash-list-tests: Likewise.
58496         * modules/carray-list-tests: Likewise.
58497         * modules/crc-tests: Likewise.
58498         * modules/des-tests: Likewise.
58499         * modules/gc-arcfour-tests: Likewise.
58500         * modules/gc-arctwo-tests: Likewise.
58501         * modules/gc-des-tests: Likewise.
58502         * modules/gc-hmac-md5-tests: Likewise.
58503         * modules/gc-hmac-sha1-tests: Likewise.
58504         * modules/gc-md2-tests: Likewise.
58505         * modules/gc-md4-tests: Likewise.
58506         * modules/gc-md5-tests: Likewise.
58507         * modules/gc-pbkdf2-sha1-tests: Likewise.
58508         * modules/gc-rijndael-tests: Likewise.
58509         * modules/gc-sha1-tests: Likewise.
58510         * modules/gc-tests: Likewise.
58511         * modules/getaddrinfo-tests: Likewise.
58512         * modules/hmac-md5-tests: Likewise.
58513         * modules/hmac-sha1-tests: Likewise.
58514         * modules/linked-list-tests: Likewise.
58515         * modules/linkedhash-list-tests: Likewise.
58516         * modules/lock-tests: Likewise.
58517         * modules/md2-tests: Likewise.
58518         * modules/md4-tests: Likewise.
58519         * modules/md5-tests: Likewise.
58520         * modules/rbtree-list-tests: Likewise.
58521         * modules/rbtree-oset-tests: Likewise.
58522         * modules/rbtreehash-list-tests: Likewise.
58523         * modules/read-file-tests: Likewise.
58524         * modules/rijndael-tests: Likewise.
58525         * modules/stdint-tests: Likewise.
58526         * modules/tls-tests: Likewise.
58527
58528 2007-02-24  Bruno Haible  <bruno@clisp.org>
58529
58530         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58531         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58532         function; instead check whether isnan with a double argument links.
58533         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58534         function; instead check whether isnan with a 'long double' argument
58535         links.
58536         Reported by Eric Blake <ebb9@byu.net>.
58537
58538 2007-02-24  Bruno Haible  <bruno@clisp.org>
58539
58540         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58541         defined.
58542         * lib/isnanl.c: Remove all code. Just include isnan.c.
58543         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58544
58545 2007-02-25  Jim Meyering  <jim@meyering.net>
58546
58547         Avoid conflicting types for 'unsetenv' on FreeBSD.
58548         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58549         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58550         in stdlib.h.
58551
58552 2007-02-24  Bruno Haible  <bruno@clisp.org>
58553
58554         * modules/isnanl-nolibm-tests: New file.
58555         * tests/test-isnanl.c: New file.
58556
58557         * modules/isnanl-nolibm: New file.
58558         * lib/isnanl.h: New file.
58559         * lib/isnanl.c: New file.
58560         * m4/isnanl.m4: New file.
58561
58562 2007-02-24  Bruno Haible  <bruno@clisp.org>
58563
58564         * modules/isnan-nolibm-tests: New file.
58565         * tests/test-isnan.c: New file.
58566
58567         * modules/isnan-nolibm: New file.
58568         * lib/isnan.h: New file.
58569         * lib/isnan.c: New file.
58570         * m4/isnan.m4: New file.
58571
58572 2007-02-24  Bruno Haible  <bruno@clisp.org>
58573
58574         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58575         assume that an exponent fits in 20 bits.
58576
58577 2007-02-24  Jim Meyering  <jim@meyering.net>
58578
58579         * m4/regex.m4: Update the description of the configure-time option,
58580         --without-included-regex, to state accurately what the defaults are,
58581         and perhaps to give people an idea why using this option is risky.
58582
58583 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58584
58585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58586         loops on small arguments.  This attempts to avoid the problem
58587         Bruno Haible reported for AIX 4.3.2 in
58588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58589
58590 2007-02-23  Bruno Haible  <bruno@clisp.org>
58591
58592         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58593         Needed for help2man.
58594
58595 2007-02-23  Karl Berry  <karl@gnu.org>
58596
58597         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58598         exists, foo.h should be cvs-ignored, not committed.
58599
58600 2007-02-23  Eric Blake  <ebb9@byu.net>
58601
58602         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58603         * lib/stat-time.h (includes): Likewise.
58604         * lib/utimecmp.c (includes): Likewise.
58605         * lib/utimens.h (includes): Likewise.
58606         * lib/getdate.y (includes): Also include "timespec.h" for use
58607         internal to the module.
58608         * modules/utimens (Depends-on): Revert yesterday's patch.
58609         * modules/nanosleep (Depends-on): Add missing dependency.
58610
58611 2007-02-22  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/glob.c: Don't include getlogin_r.h.
58614
58615 2007-02-22  Jim Meyering  <jim@meyering.net>
58616
58617         * modules/utimens (Depends-on): Add timespec, required for
58618         utimens.h's inclusion of timespec.h.
58619
58620 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58621
58622         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58623         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58624         Schwab in
58625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58626         I'll try to think of a better way to fix the Solaris problem.
58627
58628         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58629         like glibc; on Solaris 10, it fails with errno == EINVAL.
58630         POSIX says the behavior is unspecified if the first argument is NULL,
58631         so play it safe and never pass NULL to the system getcwd.
58632
58633 2007-02-21  Jim Meyering  <jim@meyering.net>
58634
58635         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58636         of gettimeofday.  It would conflict with the one now always
58637         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58638         an IRIX 6.5 build failure.
58639
58640 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58641
58642         Minor fixups to port to Solaris 10 with Sun C 5.8.
58643         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58644         * modules/getcwd (Depends-on): Add dirfd.
58645         * lib/putenv.c (putenv): #undef it.
58646         (rpl_putenv): New decl.
58647         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58648
58649 2007-02-20  Bruno Haible  <bruno@clisp.org>
58650
58651         * modules/stdio-tests: New file.
58652         * tests/test-stdio.c: New file.
58653
58654         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58655         (Depends-on): Add stdio.
58656         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58657         (Include): Use <stdio.h> instead of vsnprintf.h.
58658         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58659         HAVE_DECL_VSNPRINTF.
58660         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58661
58662         * modules/snprintf (Files): Remove lib/snprintf.h.
58663         (Depends-on): Add stdio.
58664         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58665         (Include): Use <stdio.h> instead of snprintf.h.
58666         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58667         HAVE_DECL_SNPRINTF.
58668         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58669         * lib/getaddrinfo.c: Likewise.
58670
58671         * modules/stdio: New file.
58672         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58673         * lib/snprintf.h: Remove file.
58674         * lib/vsnprintf.h: Remove file.
58675         * lib/.cppi-disable: Remove snprintf.h.
58676         * m4/stdio_h.m4: New file.
58677         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58678
58679 2007-02-20  Jim Meyering  <jim@meyering.net>
58680
58681         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58682         used by e.g., mingw.  From Bruno Haible.
58683
58684 2007-02-19  Bruno Haible  <bruno@clisp.org>
58685
58686         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58687         warnings.
58688         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58689
58690 2007-02-19  Bruno Haible  <bruno@clisp.org>
58691
58692         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58693         from mingw users.
58694
58695 2007-02-19  Bruno Haible  <bruno@clisp.org>
58696
58697         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58698         warnings.
58699         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58700
58701 2007-02-19  Jim Meyering  <jim@meyering.net>
58702
58703         Don't use FD after a successful "fdopendir (fd)".
58704         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58705         Reset it by calling dirfd on the just-obtained DIR*.
58706
58707         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58708         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58709
58710 2007-02-18  Bruno Haible  <bruno@clisp.org>
58711
58712         * lib/readlink.c: Include <unistd.h>.
58713         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58714         HAVE_READLINK.
58715         * modules/readlink (Depends-on): Add unistd.
58716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58717         (Include): Add <unistd.h>.
58718
58719         * lib/getlogin_r.h: Remove file.
58720         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58721         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58722         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58723         HAVE_DECL_GETLOGIN_R.
58724         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58725         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58726         (Include): Use <unistd.h> instead of getlogin_r.h.
58727
58728         * lib/getcwd.h: Remove file.
58729         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58730         * lib/xgetcwd.c: Likewise.
58731         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58732         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58733         * modules/getcwd (Files): Remove lib/getcwd.h.
58734         (Depends-on): Add unistd.
58735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58736         (Include): Use <unistd.h> instad of getcwd.h.
58737
58738         * lib/ftruncate.c: Include <unistd.h> first.
58739         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58740         Set HAVE_FTRUNCATE.
58741         * modules/ftruncate (Depends-on): Add unistd.
58742         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58743
58744         * lib/fchdir.c: Include <unistd.h> first.
58745         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58747         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58748         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58749         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58750
58751         * lib/dup2.c: Include <unistd.h> first.
58752         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58753         HAVE_DUP2.
58754         * modules/dup2 (Depends-on): Add unistd.
58755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58756
58757         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58758         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58759         REPLACE_CHOWN. Don't define chown as a macro here.
58760         * modules/chown (Depends-on): Add unistd.
58761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58762
58763         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58764         Add definition for GL_LINK_WARNING.
58765         (chown, dup2): New declarations.
58766         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58767         link warning.
58768         (ftruncate): New declaration.
58769         (getcwd): New declaration, taken from old getcwd.h.
58770         (getlogin_r): New declaration, taken from old getlogin_r.h.
58771         (readlink): New declaration.
58772         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58773         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58774         (gl_PREREQ_UNISTD): Remove macro.
58775         (gl_UNISTD_MODULE_INDICATOR): New macro.
58776         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58777         many new variables. Don't set UNISTD_H.
58778         * modules/unistd (Description): Change.
58779         (Depends-on): Add link-warning.
58780         (configure.ac): Update.
58781         (Makefile.am): Create unistd.h always. Substitute many new variables
58782         into it.
58783
58784 2007-02-18  Bruno Haible  <bruno@clisp.org>
58785
58786         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58787         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58788         HAVE_GETSUBOPT.
58789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58790         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58791         * lib/getsubopt.h: Remove file.
58792         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58793         (Depends-on): Add stdlib.
58794         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58795         (Includes): Use <stdlib.h> instead of getsubopt.h.
58796         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58797         Set HAVE_GETSUBOPT.
58798         * lib/getsubopt.c: Don't include getsubopt.h.
58799
58800 2007-02-18  Bruno Haible  <bruno@clisp.org>
58801
58802         * modules/fchdir (Depends-on): Add dup2.
58803
58804 2007-02-18  Bruno Haible  <bruno@clisp.org>
58805
58806         * lib/stdlib_.h: Handle glibc's special invocation convention
58807         specially.
58808
58809 2007-02-18  Bruno Haible  <bruno@clisp.org>
58810
58811         * modules/stdlib-tests: New file.
58812         * tests/test-stdlib.c: New file.
58813
58814         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58815         (Depends-on): Add stdlib.
58816         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58817         (Includes): Use <stdlib.h> instead of mkstemp.h.
58818         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58819         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58820         * lib/mkstemp.c: Don't include mkstemp.h.
58821         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58822         * lib/stdlib--.h: Don't include mkstemp.h.
58823
58824         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58825         (Depends-on): Add stdlib.
58826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58827         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58828         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58829         HAVE_MKDTEMP.
58830         * lib/mkdtemp.c: Don't include mkdtemp.h.
58831         * lib/clean-temp.c: Don't include mkdtemp.h.
58832
58833         * modules/exit (Files): Remove lib/exit.h.
58834         (Depends-on): Add stdlib.
58835         (Makefile.am): Remove lib_SOURCES.
58836         (Include): Use <stdlib.h> instead of exit.h.
58837         * lib/argmatch.c: Don't include exit.h.
58838         * lib/execute.c: Likewise.
58839         * lib/pagealign_alloc.c: Likewise.
58840         * lib/pipe.c: Likewise.
58841         * lib/wait-process.c: Likewise.
58842         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58843         * lib/exitfail.c: Likewise.
58844         * lib/savewd.c: Likewise.
58845         * lib/xsetenv.c: Likewise.
58846
58847         * modules/stdlib: New file.
58848         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58849         and extra comments about mkstemp().
58850         * lib/exit.h: Remove file.
58851         * lib/mkdtemp.h: Remove file.
58852         * lib/mkstemp.h: Remove file.
58853         * m4/stdlib_h.m4: New file.
58854         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58855
58856 2007-02-18  Bruno Haible  <bruno@clisp.org>
58857
58858         * modules/math-tests: New file.
58859         * tests/test-math.c: New file.
58860
58861         * modules/math: New file.
58862         * modules/mathl (Files): Remove lib/mathl.h.
58863         (Depends-on): Add math.
58864         (Makefile.am): Don't mention mathl.h.
58865         (Include): Use <math.h> instead of mathl.h.
58866         * lib/math_.h: New file.
58867         * lib/mathl.h: Remove file.
58868         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58869         mathl.h.
58870         * lib/asinl.c: Likewise.
58871         * lib/atanl.c: Likewise.
58872         * lib/ceill.c: Likewise.
58873         * lib/cosl.c: Likewise.
58874         * lib/expl.c: Likewise.
58875         * lib/floorl.c: Likewise.
58876         * lib/frexpl.c: Likewise.
58877         * lib/ldexpl.c: Likewise.
58878         * lib/logl.c: Likewise.
58879         * lib/sincosl.c: Likewise.
58880         * lib/sinl.c: Likewise.
58881         * lib/sqrtl.c: Likewise.
58882         * lib/tanl.c: Likewise.
58883         * lib/trigl.c: Likewise.
58884         * m4/math_h.m4: New file.
58885         * MODULES.html.sh (Mathematics): Add math.
58886
58887 2007-02-17  Bruno Haible  <bruno@clisp.org>
58888
58889         * modules/wctype-tests: New file.
58890         * tests/test-wctype.c: New file.
58891
58892         * modules/wchar-tests: New file.
58893         * tests/test-wchar.c: New file.
58894
58895         * modules/unistd-tests: New file.
58896         * tests/test-unistd.c: New file.
58897
58898         * modules/time-tests: New file.
58899         * tests/test-time.c: New file.
58900
58901         * modules/sysexits-tests: New file.
58902         * tests/test-sysexits.c: New file.
58903
58904         * modules/sys_time-tests: New file.
58905         * tests/test-sys_time.c: New file.
58906
58907         * modules/sys_stat-tests: New file.
58908         * tests/test-sys_stat.c: New file.
58909
58910         * modules/sys_socket-tests: New file.
58911         * tests/test-sys_socket.c: New file.
58912
58913         * modules/sys_select-tests: New file.
58914         * tests/test-sys_select.c: New file.
58915
58916         * modules/string-tests: New file.
58917         * tests/test-string.c: New file.
58918
58919         * modules/stdbool-tests: New file.
58920         * tests/test-stdbool.c: New file.
58921
58922         * modules/netinet_in-tests: New file.
58923         * tests/test-netinet_in.c: New file.
58924
58925         * modules/inttypes-tests: New file.
58926         * tests/test-inttypes.c: New file.
58927
58928         * modules/fcntl-tests: New file.
58929         * tests/test-fcntl.c: New file.
58930
58931         * modules/byteswap-tests: New file.
58932         * tests/test-byteswap.c: New file.
58933
58934         * modules/arpa_inet-tests: New file.
58935         * tests/test-arpa_inet.c: New file.
58936
58937 2007-02-17  Bruno Haible  <bruno@clisp.org>
58938
58939         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58940         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58941         if the corresponding module is not enabled. Emit link warnings if
58942         the function is used nevertheless.
58943         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58944         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58945         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58946         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
58947         * modules/inttypes (Depends-on): Add link-warning.
58948         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58949         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
58950         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
58951         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
58952         * modules/imaxdiv (configure.ac): Likewise.
58953         * modules/strtoimax (configure.ac): Likewise.
58954         * modules/strtoumax (configure.ac): Likewise.
58955
58956 2007-02-17  Bruno Haible  <bruno@clisp.org>
58957
58958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
58959         gl_STRING_MODULE_INDICATOR_DEFAULTS.
58960         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
58961         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
58962
58963 2007-02-17  Bruno Haible  <bruno@clisp.org>
58964
58965         * modules/link-warning: New file.
58966         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
58967         * lib/string_.h (GL_LINK_WARNING): Remove definition.
58968         * modules/string (Depends-on): Add link-warning.
58969         (Makefile.am): Copy the contents of build-aux/link-warning.h into
58970         string.h.
58971         * MODULES.html.sh (Support for building libraries and executables): Add
58972         link-warning.
58973
58974 2007-02-17  Bruno Haible  <bruno@clisp.org>
58975
58976         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
58977         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
58978         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
58979         long lines.
58980
58981 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
58982             Bruno Haible  <bruno@clisp.org>
58983
58984         * modules/tmpfile: New file.
58985         * lib/tmpfile.c: New file.
58986         * m4/tmpfile.m4: New file.
58987         * MODULES.html.sh (func_all_modules): New section "Input/output".
58988
58989 2007-02-15  Bruno Haible  <bruno@clisp.org>
58990
58991         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
58992         (supports_delete_on_close): New function.
58993         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
58994
58995 2007-02-14  Bruno Haible  <bruno@clisp.org>
58996
58997         * modules/mbspcasecmp-tests: New file.
58998         * tests/test-mbspcasecmp.sh: New file.
58999         * tests/test-mbspcasecmp.c: New file.
59000
59001         New module mbspcasecmp.
59002         * modules/mbspcasecmp: New file.
59003         * lib/mbspcasecmp.c: New file.
59004         * lib/string_.h (strncasecmp): Change warning message.
59005         (mbspcasecmp): New declaration.
59006         * m4/mbspcasecmp.m4: New file.
59007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59008         GNULIB_MBSPCASECMP.
59009         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59010         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59011
59012 2007-02-14  Bruno Haible  <bruno@clisp.org>
59013
59014         * modules/mbsncasecmp-tests: New file.
59015         * tests/test-mbsncasecmp.sh: New file.
59016         * tests/test-mbsncasecmp.c: New file.
59017
59018         New module mbsncasecmp.
59019         * modules/mbsncasecmp: New file.
59020         * lib/mbsncasecmp.c: New file.
59021         * lib/string_.h (mbsncasecmp): New declaration.
59022         * m4/mbsncasecmp.m4: New file.
59023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59024         GNULIB_MBSNCASECMP.
59025         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59026         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59027
59028 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59029
59030         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59031         Verify that it doesn't overlap with our flags.
59032         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59033         do not have the desired effect in multibyte locales; instead, use
59034         mbscasecmp.
59035         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59036         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59037         we don't require GNU fnmatch ourselves (if our users require it, they
59038         should do so explicitly).
59039
59040         Fix regex code so it doesn't rely on strcasecmp.
59041         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59042         Otherwise, include gnulib's langinfo.h.
59043         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59044         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59045         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59046         * modules/regex (FILES): Remove m4/codeset.m4.
59047         (Depends-on): Add localcharset.  Remove strcase.
59048
59049 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59050
59051         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59052         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59053
59054 2007-02-13  Bruno Haible  <bruno@clisp.org>
59055
59056         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59058
59059 2007-02-12  Bruno Haible  <bruno@clisp.org>
59060
59061         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59062         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59063         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59064         time warning rather than a link error.
59065
59066 2007-02-12  Bruno Haible  <bruno@clisp.org>
59067
59068         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59069         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59071
59072 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59073
59074         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59075         args, not 2.
59076
59077 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59078
59079         New module 'time', so that apps can include <time.h> as per
59080         POSIX and GNU instead of separate include files like time_r.h
59081         and timegm.h.  This implementation tries out a simpler approach
59082         for replacing decls in standard include files (as compared to
59083         the string module), somewhat as an experiment.
59084
59085         * config/srclist.txt: Comment out mktime.c for now.
59086         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59087         since it doesn't apply any more.  Use generic wording instead.
59088         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59089         'time'.
59090         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59091         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59092         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59093         Don't include <sys/types.h>; no longer needed since we assume C89.
59094         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59095         * lib/strftime.c: Likewise.
59096         * lib/time_r.c: Likewise.
59097         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59098         * lib/nanosleep.c: Include <time.h> first, to check interface.
59099         * lib/strptime.c: Likewise.
59100         * lib/time_r.c: Likewise.
59101         * lib/timegm.c: Likewise.
59102         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59103         needed.
59104         * lib/timegm.c: Don't include timegm.h; no longer needed.
59105         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59106         time.h now handles any problems in that area.
59107         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59108         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59109         that time.h defines struct timespec.
59110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59111         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59112         handles that.
59113         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59114         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59115         needed.  Set REPLACE_LOCALTIME.
59116         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59117         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59118         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59119         nanosleep; time_h.m4 now does that.  Don't require
59120         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59121         module handles this now.
59122         * modules/getdate (Depends-on): Remove timespec.  Add time.
59123         * modules/nanosleep (Depends-on): Likewise.
59124         * modules/stat-time (Depends-on): Likewise.
59125         * modules/nanosleep (Include): Include time.h, not timespec.h.
59126         * modules/strptime (Files): Remove lib/strptime.h.
59127         (Depends-on): Add extensions, time.
59128         (Include): Include time.h, not strptime.h.
59129         * modules/time_r (Files): Remove lib/time_r.h.
59130         (Depends-on): Add time.
59131         (Include): Include time.h, not time_r.h.
59132         * modules/timegm: Likewise.
59133         * modules/timespec (Description): Now does timespec-related decls
59134         of our own, instead of struct timespec itself.
59135         (Depends-on): Add time; remove extensions.
59136         (Maintainer): Add self.
59137         * modules/utimecmp (Depends-on): Add time; remove timespec.
59138         * modules/utimens (Depends-on): Likewise.
59139         * modules/xnanosleep (Depends-on): Likewise.
59140
59141 2007-02-11  Bruno Haible  <bruno@clisp.org>
59142
59143         * lib/c-strstr.c: Include allocsa.h.
59144         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59145         * lib/c-strcasestr.c: Include allocsa.h.
59146         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59147         * lib/strcasestr.c: Include allocsa.h.
59148         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59149         * lib/mbsstr.c: Include allocsa.h.
59150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59151         allocsa/freesa instead of malloc/free.
59152         * lib/mbscasestr.c: Include allocsa.h.
59153         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59154         allocsa/freesa instead of malloc/free.
59155         * modules/c-strstr (Depends-on): Add allocsa.
59156         * modules/c-strcasestr (Depends-on): Likewise.
59157         * modules/strcasestr (Depends-on): Likewise.
59158         * modules/mbsstr (Depends-on): Likewise.
59159         * modules/mbscasestr (Depends-on): Likewise.
59160
59161 2007-02-11  Bruno Haible  <bruno@clisp.org>
59162
59163         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59164
59165         * modules/mbsspn-tests: New file.
59166         * tests/test-mbsspn.sh: New file.
59167         * tests/test-mbsspn.c: New file.
59168
59169 2007-02-11  Bruno Haible  <bruno@clisp.org>
59170
59171         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59172
59173         * modules/mbspbrk-tests: New file.
59174         * tests/test-mbspbrk.sh: New file.
59175         * tests/test-mbspbrk.c: New file.
59176
59177 2007-02-11  Bruno Haible  <bruno@clisp.org>
59178
59179         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59180         unneeded cast.
59181
59182         * modules/mbscspn-tests: New file.
59183         * tests/test-mbscspn.sh: New file.
59184         * tests/test-mbscspn.c: New file.
59185
59186 2007-02-11  Bruno Haible  <bruno@clisp.org>
59187
59188         * modules/mbscasecmp-tests: New file.
59189         * tests/test-mbscasecmp.sh: New file.
59190         * tests/test-mbscasecmp.c: New file.
59191
59192 2007-02-11  Bruno Haible  <bruno@clisp.org>
59193
59194         Ensure O(n) worst-case complexity of mbscasestr.
59195         * lib/mbscasestr.c: Include stdbool.h.
59196         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59197         functions.
59198         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59199         the bookkeeping indicates that it's worth it.
59200         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59201
59202         * modules/mbscasestr-tests: New file.
59203         * tests/test-mbscasestr1.c: New file.
59204         * tests/test-mbscasestr2.sh: New file.
59205         * tests/test-mbscasestr2.c: New file.
59206         * tests/test-mbscasestr3.sh: New file.
59207         * tests/test-mbscasestr3.c: New file.
59208         * tests/test-mbscasestr4.sh: New file.
59209         * tests/test-mbscasestr4.c: New file.
59210         * m4/locale-tr.m4: New file.
59211
59212 2007-02-11  Bruno Haible  <bruno@clisp.org>
59213
59214         Ensure O(n) worst-case complexity of mbsstr.
59215         * lib/mbsstr.c: Include stdbool.h.
59216         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59217         functions.
59218         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59219         bookkeeping indicates that it's worth it.
59220         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59221
59222         * modules/mbsstr-tests: New file.
59223         * tests/test-mbsstr1.c: New file.
59224         * tests/test-mbsstr2.sh: New file.
59225         * tests/test-mbsstr2.c: New file.
59226         * tests/test-mbsstr3.sh: New file.
59227         * tests/test-mbsstr3.c: New file.
59228         * m4/locale-fr.m4: New file.
59229
59230 2007-02-11  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/mbsrchr.c (mbsrchr): Fix bug.
59233
59234         * modules/mbsrchr-tests: New file.
59235         * tests/test-mbsrchr.sh: New file.
59236         * tests/test-mbsrchr.c: New file.
59237
59238 2007-02-11  Bruno Haible  <bruno@clisp.org>
59239
59240         * lib/mbschr.c (mbschr): Fix bug.
59241
59242         * modules/mbschr-tests: New file.
59243         * tests/test-mbschr.sh: New file.
59244         * tests/test-mbschr.c: New file.
59245         * m4/locale-zh.m4: New file.
59246
59247 2007-02-11  Bruno Haible  <bruno@clisp.org>
59248
59249         Support for copying multibyte string iterators.
59250         * lib/mbiter.h: Include <string.h>.
59251         (mbiter_multi_copy): New function.
59252         (mbi_copy): New macro.
59253         * lib/mbuiter.h: Include <string.h>.
59254         (mbuiter_multi_copy): New function.
59255         (mbui_copy): New macro.
59256
59257 2007-02-11  Bruno Haible  <bruno@clisp.org>
59258
59259         New module mbslen.
59260         * modules/mbslen: New file.
59261         * lib/mbslen.c: New file.
59262         * lib/string_.h (mbslen): New declaration.
59263         * m4/mbslen.m4: New file.
59264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59265         GNULIB_MBSLEN.
59266         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59267         * MODULES.html.sh (Internationalization functions): Add mbslen.
59268
59269 2007-02-11  Bruno Haible  <bruno@clisp.org>
59270
59271         Ensure O(n) worst-case complexity of strcasestr substitute.
59272         * lib/strcasestr.c: Include stdbool.h.
59273         (knuth_morris_pratt): New function.
59274         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59275         bookkeeping indicates that it's worth it.
59276         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59277
59278         * modules/strcasestr-tests: New file.
59279         * tests/test-strcasestr.c: New file.
59280
59281 2007-02-11  Bruno Haible  <bruno@clisp.org>
59282
59283         Ensure O(n) worst-case complexity of c_strcasestr.
59284         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59285         (knuth_morris_pratt): New function.
59286         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59287         the bookkeeping indicates that it's worth it.
59288         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59289
59290         * modules/c-strcasestr-tests: New file.
59291         * tests/test-c-strcasestr.c: New file.
59292
59293 2007-02-11  Bruno Haible  <bruno@clisp.org>
59294
59295         Ensure O(n) worst-case complexity of c_strstr.
59296         * lib/c-strstr.c: Include stdbool.h, string.h.
59297         (knuth_morris_pratt): New function.
59298         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59299         bookkeeping indicates that it's worth it.
59300         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59301
59302         * lib/c-strstr.c: Complete rewrite for maintainability.
59303
59304         * modules/c-strstr-tests: New file.
59305         * tests/test-c-strstr.c: New file.
59306
59307 2007-02-11  Bruno Haible  <bruno@clisp.org>
59308
59309         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59310         5.2.1 and earlier, whereby \055 was treated just like the range
59311         delimiter '-'.
59312         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59313
59314 2007-02-08  Bruno Haible  <bruno@clisp.org>
59315
59316         * modules/regex (Depends-on): Add stdbool.
59317         Reported by Dalibor Topic <robilad@kaffe.org>.
59318
59319 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59320
59321         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59322         Prefer returning from main to exiting from it.
59323         Remove unnecessary parens after sizeof.
59324
59325 2007-02-05  Bruno Haible  <bruno@clisp.org>
59326
59327         New module mbssep.
59328         * modules/mbssep: New file.
59329         * lib/mbssep.c: New file.
59330         * lib/string_.h (strsep): Add a conditional link warning.
59331         (mbssep): New declaration.
59332         * m4/mbssep.m4: New file.
59333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59334         GNULIB_MBSSEP.
59335         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59336         * MODULES.html.sh (Internationalization functions): Add mbssep.
59337
59338 2007-02-05  Bruno Haible  <bruno@clisp.org>
59339
59340         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59341         Optimize search in case of 1 delimiter.
59342
59343 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59344
59345         * lib/acl.h: Include sys/types.h before sys/acl.h.
59346
59347 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59348
59349         Merge upstream fix for glibc bugzilla #3957:
59350
59351         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59352
59353         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59354         bit for RE_HAT_LISTS_NOT_NEWLINE.
59355         (build_charclass_op): Remove bogus comment.
59356
59357 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59358
59359         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59360
59361 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59362
59363         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59364         * lib/memmem.c [!defined _LIBC]: Include config.h.
59365
59366 2007-02-04  Bruno Haible  <bruno@clisp.org>
59367
59368         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59369         warning message.
59370
59371 2007-02-04  Bruno Haible  <bruno@clisp.org>
59372
59373         New module mbstok_r.
59374         * modules/mbstok_r: New file.
59375         * lib/mbstok_r.c: New file.
59376         * lib/string_.h (strtok_r): Change argument names to match the
59377         comments. Add a conditional link warning.
59378         (mbstok_r): New declaration.
59379         * m4/mbstok_r.m4: New file.
59380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59381         GNULIB_MBSTOK_R.
59382         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59383         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59384
59385 2007-02-04  Bruno Haible  <bruno@clisp.org>
59386
59387         New module mbsspn.
59388         * modules/mbsspn: New file.
59389         * lib/mbsspn.c: New file.
59390         * lib/string_.h (strspn): Add a conditional link warning.
59391         (mbsspn): New declaration.
59392         * m4/mbsspn.m4: New file.
59393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59394         GNULIB_MBSSPN.
59395         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59396         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59397
59398 2007-02-04  Bruno Haible  <bruno@clisp.org>
59399
59400         New module mbspbrk.
59401         * modules/mbspbrk: New file.
59402         * lib/mbspbrk.c: New file.
59403         * lib/string_.h (strpbrk): Add a conditional link warning.
59404         (mbspbrk): New declaration.
59405         * m4/mbspbrk.m4: New file.
59406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59407         GNULIB_MBSPBRK.
59408         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59409         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59410
59411 2007-02-04  Bruno Haible  <bruno@clisp.org>
59412
59413         New module mbscspn.
59414         * modules/mbscspn: New file.
59415         * lib/mbscspn.c: New file.
59416         * lib/string_.h (strcspn): Add a conditional link warning.
59417         (mbscspn): New declaration.
59418         * m4/mbscspn.m4: New file.
59419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59420         GNULIB_MBSCSPN.
59421         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59422         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59423
59424 2007-02-04  Bruno Haible  <bruno@clisp.org>
59425
59426         New module mbscasestr, reduced goal of strcasestr.
59427         * modules/mbscasestr: New file.
59428         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59429         (mbscasestr): Renamed from strcasestr.
59430         * lib/strcasestr.c: Don't include mbuiter.h.
59431         (strcasestr): Remove support for multibyte locales.
59432         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59433         Change the conditional link warning.
59434         (mbscasestr): New declaration.
59435         * m4/mbscasestr.m4: New file.
59436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59437         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59438         REPLACE_STRCASESTR.
59439         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59441         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59442         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59443         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59444         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59445         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59446         (Depends-on): Remove mbuiter.
59447         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59448
59449 2007-02-04  Bruno Haible  <bruno@clisp.org>
59450
59451         Simplify handling of strncasecmp.
59452         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59453         the conditional link warning.
59454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59455         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59456         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59457         * modules/strcase (configure.ac): Don't invoke
59458         gl_STRING_MODULE_INDICATOR.
59459         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59460
59461 2007-02-04  Bruno Haible  <bruno@clisp.org>
59462
59463         New module mbscasecmp, reduced goal of strcasecmp.
59464         * modules/mbscasecmp: New file.
59465         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59466         (mbscasecmp): Renamed from strcasecmp.
59467         * lib/strcasecmp.c: Don't include mbuiter.h.
59468         (strcasecmp): Remove support for multibyte locales.
59469         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59470         Change the conditional link warning.
59471         (mbscasecmp): New declaration.
59472         * m4/mbscasecmp.m4: New file.
59473         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59474         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59475         REPLACE_STRCASECMP.
59476         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59478         GNULIB_MBSCASECMP.
59479         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59480         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59481         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59482         (Depends-on): Remove mbuiter.
59483         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59484
59485 2007-02-04  Bruno Haible  <bruno@clisp.org>
59486
59487         New module mbsstr. Remove module strstr.
59488         * modules/mbsstr: New file.
59489         * modules/strstr: Remove file.
59490         * lib/mbsstr.c: Renamed from lib/strstr.c.
59491         (mbsstr): Renamed from strstr.
59492         * lib/string_.h (strstr): Remove declaration. Change the conditional
59493         link warning.
59494         (mbsstr): New declaration.
59495         * m4/mbsstr.m4: New file.
59496         * m4/strstr.m4: Remove file.
59497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59498         REPLACE_STRSTR.
59499         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59500         Don't initialize GNULIB_STRSTR.
59501         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59502         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59503         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59504         (Support for systems lacking ANSI C 89): Remove strstr.
59505
59506 2007-02-04  Bruno Haible  <bruno@clisp.org>
59507
59508         New module mbsrchr.
59509         * modules/mbsrchr: New file.
59510         * lib/mbsrchr.c: New file.
59511         * lib/string_.h (strrchr): Add a conditional link warning.
59512         (mbsrchr): New declaration.
59513         * m4/mbsrchr.m4: New file.
59514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59515         GNULIB_MBSRCHR.
59516         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59517         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59518
59519 2007-02-04  Bruno Haible  <bruno@clisp.org>
59520
59521         New module mbschr.
59522         * modules/mbschr: New file.
59523         * lib/mbschr.c: New file.
59524         * lib/string_.h (strchr): Add a conditional link warning.
59525         (mbschr): New declaration.
59526         * m4/mbschr.m4: New file.
59527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59528         GNULIB_MBSCHR.
59529         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59530         * MODULES.html.sh (Internationalization functions): Add mbschr.
59531
59532 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59533
59534         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59535
59536         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59537
59538 2007-02-04  Bruno Haible  <bruno@clisp.org>
59539
59540         New module description section 'configure.ac-early'.
59541         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59542         (func_get_autoconf_early_snippet): New function.
59543         (func_import, func_create_testdir): Use it. Remove special cases for
59544         modules 'extensions' and 'lock'.
59545         * modules/extensions (configure.ac-early): Require
59546         gl_USE_SYSTEM_EXTENSIONS.
59547         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59548
59549 2007-02-04  Bruno Haible  <bruno@clisp.org>
59550
59551         Make use of gcj-4.3's -fsource and -ftarget option.
59552         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59553         and if so try the options -fsource and -ftarget.
59554         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59555         source_version, ftarget_option, target_version arguments.
59556         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59557         (is_envjavac_oldgcj_14_14_usable): Renamed from
59558         is_envjavac_gcj_14_14_usable.
59559         (is_envjavac_oldgcj_14_13_usable): Renamed from
59560         is_envjavac_gcj_14_13_usable.
59561         (is_gcj_present): Update.
59562         (is_gcj_43, is_gcj43_usable): New functions.
59563         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59564         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59565         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59566         try the options -fsource and -ftarget.
59567
59568 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59569
59570         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59571         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59572         larger value.
59573
59574 2007-02-03  Jim Meyering  <jim@meyering.net>
59575
59576         Give tools a better chance to allocate space for very large buffers.
59577         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59578
59579         Make pwd and readlink work also when run with an unreadable parent dir
59580         on systems with openat support.
59581         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59582         provided getcwd function, even when we have openat support.
59583         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59584
59585 2007-02-02  Bruno Haible  <bruno@clisp.org>
59586
59587         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59588         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59589         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59590         portability problems if one of these functions is only used on specific
59591         platforms.
59592         Reported by Paul Eggert.
59593
59594 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59595
59596         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59597         is causing more trouble than it's curing.
59598         * lib/regex_internal.h (__mempcpy): Remove.
59599         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59600         (and make the code a tad smaller to boot).
59601         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59602
59603 2007-02-02  Jim Meyering  <jim@meyering.net>
59604
59605         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59606         section, not in the Makefile.am: one.
59607
59608 2007-02-02  Eric Blake  <ebb9@byu.net>
59609
59610         * lib/strchrnul.c: Always include config.h first.
59611
59612         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59613         gnulib strstr is not necessary here.
59614
59615 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59616
59617         * m4/socklen.m4: Fix typo.
59618
59619 2007-02-02  Eric Blake  <ebb9@byu.net>
59620
59621         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59622         * modules/netinet_in (Makefile.am): Likewise.
59623
59624 2007-02-01  Bruno Haible  <bruno@clisp.org>
59625
59626         * lib/string_.h (GL_LINK_WARNING): New macro.
59627         (strcasecmp, strstr, strcasestr): If provided by the system,
59628         conditionally define as a macro that leads to a warning instead of to
59629         an error.
59630         (strncasecmp): Conditionally define as a macro that leads to a warning.
59631
59632 2007-02-01  Karl Berry  <karl@gnu.org>
59633
59634         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59635
59636 2007-02-01  Bruno Haible  <bruno@clisp.org>
59637
59638         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59639         renamings.
59640
59641 2007-02-01  Eric Blake  <ebb9@byu.net>
59642
59643         * modules/regex (Depends-on): Revert dependence on mempcpy.
59644         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59645         module's definition of mempcpy.
59646         Reported by Paul Eggert.
59647
59648 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59649
59650         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59651         the symbol XYZ before redefining it.  This fixes a problem with
59652         programs that don't use XYZ, when compiled on systems that define
59653         XYZ to something else.
59654
59655 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59656
59657         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59658         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59659         writeable to group or other and (2) is intended to have a special
59660         mode bit that is set or cleared.  In such a case, the directory
59661         should be neither group- nor other-writeable until the special
59662         mode bits are right.
59663
59664 2007-01-31  Eric Blake  <ebb9@byu.net>
59665
59666         * modules/mountlist (Depends-on): Add strstr.
59667
59668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59669         bug.
59670         * modules/string (Makefile.am): Remove redundant replacement.
59671         * modules/regex (Depends-on): Add mempcpy.
59672
59673 2007-01-31  Bruno Haible  <bruno@clisp.org>
59674
59675         New module description field 'Link'.
59676         * gnulib-tool (func_usage): Document --extract-link-directive.
59677         (sed_extract_prog): Recognize 'Link' directive.
59678         (func_get_link_directive): New function.
59679         (func_import): Show summary of link directives.
59680         Handle --extract-link-directive option.
59681         * modules/acl (Link): New section.
59682         * modules/clock-time (Link): New section.
59683         * modules/euidaccess (Link): New section.
59684         * modules/gettext (Link): New section.
59685         * modules/iconv (Link): New section.
59686         * modules/lock (Link): New section.
59687         * modules/nanosleep (Link): New section.
59688         * modules/readline (Link): New section.
59689
59690 2007-01-27  Bruno Haible  <bruno@clisp.org>
59691
59692         Enforce the use of gnulib modules for unportable <string.h> functions.
59693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59694         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59695         (gl_HEADER_STRING_H_BODY): Require it.
59696         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59697         the symbol XYZ to one that gives a link error.
59698         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59699         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59700         * modules/mempcpy (configure.ac): Likewise.
59701         * modules/memrchr (configure.ac): Likewise.
59702         * modules/stpcpy (configure.ac): Likewise.
59703         * modules/stpncpy (configure.ac): Likewise.
59704         * modules/strcase (configure.ac): Likewise.
59705         * modules/strcasestr (configure.ac): Likewise.
59706         * modules/strchrnul (configure.ac): Likewise.
59707         * modules/strdup (configure.ac): Likewise.
59708         * modules/strndup (configure.ac): Likewise.
59709         * modules/strnlen (configure.ac): Likewise.
59710         * modules/strpbrk (configure.ac): Likewise.
59711         * modules/strsep (configure.ac): Likewise.
59712         * modules/strstr (configure.ac): Likewise.
59713         * modules/strtok_r (configure.ac): Likewise.
59714
59715 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59716
59717         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59718
59719 2007-01-30  Jim Meyering  <jim@meyering.net>
59720
59721         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59722
59723 2007-01-29  Bruno Haible  <bruno@clisp.org>
59724
59725         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59726         * lib/execute.c: Likewise.
59727         * lib/pipe.c: Likewise.
59728         * lib/printf-args.h: Likewise.
59729         * lib/printf-args.c: Likewise.
59730         * lib/printf-parse.c: Likewise.
59731         * lib/vasnprintf.c: Likewise.
59732
59733 2007-01-29  Eric Blake  <ebb9@byu.net>
59734
59735         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59736         declaration.
59737
59738 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59739
59740         * lib/strptime.h (strptime): Use 'restrict' for args where
59741         POSIX requires this.
59742         * lib/strptime.c (strptime): Likewise.
59743         Change license notice from LGPL to GPL, since gnulib-tool will
59744         change this as needed.
59745         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59746         defined.
59747         Include "strptime.h" first, to check interface.
59748         Do not #undef _LIBC and _NL_CURRENT.
59749         Do not include <stdlib.h>; no longer needed.
59750         Include "time_r.h" and declare ptime_locale_status
59751         only if _LIBC is not defined.
59752         (__P): Remove unused macro.
59753         (match_string): Bring back glibc version, but use it only if _LIBC
59754         is defined.
59755         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59756         Remove unnecessary assertion and abort() call.
59757         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59758         * m4/strptime.m4: Fix serial number comment.
59759         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59760         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59761         (Depends-on): Add time_r.
59762
59763 2007-01-29  Bruno Haible  <bruno@clisp.org>
59764
59765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59766         strptime.
59767         * modules/strptime (Depends-on): Add stdbool.
59768         * lib/strptime.h: Include <time.h> always. Add comments.
59769
59770 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59771
59772         * modules/strptime: New file.
59773         * lib/strptime.h: New file.
59774         * lib/strptime.c: New file.
59775         * m4/strptime.m4: New file.
59776
59777 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59778
59779         * MODULES.html.sh: New module mpsort.
59780         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59781
59782         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59783         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59785         All uses changed.
59786         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59787         All uses changed.
59788         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59789         to _Restrict_.
59790         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59791         the parameter matches the prototype.
59792
59793 2007-01-28  Jim Meyering  <jim@meyering.net>
59794
59795         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59796         sys/time.h here, reverting that part of the previous patch:
59797         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59798
59799 2007-01-28  Bruno Haible  <bruno@clisp.org>
59800
59801         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59802         value of $(SYS_TIME_H).
59803         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59804         remove it conditionally, too. [added by Jim Meyering]
59805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59807         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59808         GETTIMEOFDAY_REPLACEMENT to 1.
59809
59810 2007-01-28  Bruno Haible  <bruno@clisp.org>
59811
59812         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59813         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59815         Set UNISTD_H instead of UNISTD_H2.
59816         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59817
59818 2007-01-28  Bruno Haible  <bruno@clisp.org>
59819
59820         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59821         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59822
59823 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59824
59825         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59826         (func_create_testdir): Ensure C locale for `grep' and `tr'
59827         character ranges.
59828         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59829         ACLOCAL_AMFLAGS parsing state machine.
59830
59831 2007-01-27  Bruno Haible  <bruno@clisp.org>
59832
59833         * modules/unistr/base: Update.
59834
59835 2007-01-27  Bruno Haible  <bruno@clisp.org>
59836
59837         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59838         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59839         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59840         modules/unistr/u32-mbtouc.
59841         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59842         * lib/unistr.h: Update.
59843         * lib/linebreak.c: Update.
59844         * modules/unistr/u32-mbtouc: Renamed from
59845         modules/unistr/u32-mbtouc-safe.
59846         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59847         * lib/unistr.h: Update.
59848         * lib/unistr/u32-to-u8.c: Update.
59849         * lib/unistr/u32-to-u16.c: Update.
59850
59851 2007-01-27  Bruno Haible  <bruno@clisp.org>
59852
59853         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59854         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59855         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59856         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59857         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59858         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59859         modules/unistr/u16-mbtouc.
59860         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59861         * lib/unistr.h: Update.
59862         * lib/linebreak.c: Update.
59863         * modules/linebreak: Update.
59864         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59865         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59866         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59867         * modules/unistr/u16-mbtouc: Renamed from
59868         modules/unistr/u16-mbtouc-safe.
59869         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59870         * lib/unistr.h: Update.
59871         * lib/unistr/u16-to-u8.c: Update.
59872         * modules/unistr/u16-to-u8: Update.
59873         * lib/unistr/u16-to-u32.c: Update.
59874         * modules/unistr/u16-to-u32: Update.
59875
59876 2007-01-27  Bruno Haible  <bruno@clisp.org>
59877
59878         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59879         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59880         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59881         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59882         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59883         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59884         modules/unistr/u8-mbtouc.
59885         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59886         * lib/unistr.h: Update.
59887         * lib/striconveh.c: Update.
59888         * modules/striconveh: Update.
59889         * lib/linebreak.c: Update.
59890         * modules/linebreak: Update.
59891         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59892         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59893         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59894         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59895         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59896         * lib/unistr.h: Update.
59897         * lib/striconveh.c: Update.
59898         * modules/striconveh: Update.
59899         * lib/unistr/u8-to-u16.c: Update.
59900         * modules/unistr/u8-to-u16: Update.
59901         * lib/unistr/u8-to-u32.c: Update.
59902         * modules/unistr/u8-to-u32: Update.
59903
59904 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59905
59906         Sync from Libtool.
59907         * lib/argz.c: Do not include strings.h nor memory.h, include
59908         string.h unconditionally.  Patch by Simon Josefsson.
59909
59910 2007-01-27  Bruno Haible  <bruno@clisp.org>
59911
59912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59913         from gl_HEADER_STRING_H_BODY.
59914         (gl_HEADER_STRING_H_BODY): Require it.
59915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59916         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59917         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59918         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59920         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59922         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59923         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59924         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59925         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59926         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59927         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59928         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59929         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59930
59931 2007-01-27  Bruno Haible  <bruno@clisp.org>
59932
59933         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59934         check_PROGRAMS into noinst_PROGRAMS.
59935         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59936         check_PROGRAMS in this case.
59937         (func_import): Set for_test to false.
59938         (func_create_testdir): Set for_test to true.
59939
59940 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59941             Bruno Haible  <bruno@clisp.org>
59942
59943         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59944         (Depends-on): Add string.
59945         (Includes): Use <string.h> instead of strcasestr.h.
59946         * modules/string (Makefile.am): Also substitute the value of
59947         REPLACE_STRCASESTR.
59948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
59949         assume strcasestr is declared in <string.h> not <strings.h>. Also
59950         set REPLACE_STRCASESTR.
59951         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
59952         REPLACE_STRCASESTR.
59953         * lib/strcasestr.h: Remove file.
59954         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
59955         * lib/string_.h (strcasestr): New declaration.
59956
59957 2007-01-27  Bruno Haible  <bruno@clisp.org>
59958
59959         * lib/string_.h: Use 'extern'.
59960
59961 2007-01-27  Jim Meyering  <jim@meyering.net>
59962
59963         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
59964         of set-but-not-used local, "q".
59965
59966         * lib/mempcpy.c: Include <config.h> before <string.h>.
59967         This fixes a compilation error on HP-UX, due to the system's
59968         "restrict"-using mempcpy prototype.
59969
59970 2007-01-26  Bruno Haible  <bruno@clisp.org>
59971
59972         Small optimization.
59973         * lib/javacomp.c: Include c-strstr.h.
59974          (is_envjavac_gcj): Use c_strstr instead of strstr.
59975         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
59976
59977 2007-01-26  Bruno Haible  <bruno@clisp.org>
59978
59979         * MODULES.html.sh (Unicode string functions): Add the new modules.
59980
59981         * modules/uniconv/u32-strconv-to-locale: New file.
59982         * lib/uniconv/u32-strconv-to-locale.c: New file.
59983
59984         * modules/uniconv/u16-strconv-to-locale: New file.
59985         * lib/uniconv/u16-strconv-to-locale.c: New file.
59986
59987         * modules/uniconv/u8-strconv-to-locale: New file.
59988         * lib/uniconv/u8-strconv-to-locale.c: New file.
59989
59990         * modules/uniconv/u32-strconv-from-locale: New file.
59991         * lib/uniconv/u32-strconv-from-locale.c: New file.
59992
59993         * modules/uniconv/u16-strconv-from-locale: New file.
59994         * lib/uniconv/u16-strconv-from-locale.c: New file.
59995
59996         * modules/uniconv/u8-strconv-from-locale: New file.
59997         * lib/uniconv/u8-strconv-from-locale.c: New file.
59998
59999         * modules/uniconv/u32-strconv-to-enc: New file.
60000         * lib/uniconv/u32-strconv-to-enc.c: New file.
60001         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60002         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60003
60004         * modules/uniconv/u16-strconv-to-enc: New file.
60005         * lib/uniconv/u16-strconv-to-enc.c: New file.
60006         * lib/uniconv/u-strconv-to-enc.h: New file.
60007         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60008         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60009
60010         * modules/uniconv/u8-strconv-to-enc: New file.
60011         * lib/uniconv/u8-strconv-to-enc.c: New file.
60012         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60013         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60014
60015         * modules/uniconv/u32-strconv-from-enc: New file.
60016         * lib/uniconv/u32-strconv-from-enc.c: New file.
60017         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60018         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60019
60020         * modules/uniconv/u16-strconv-from-enc: New file.
60021         * lib/uniconv/u16-strconv-from-enc.c: New file.
60022         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60023         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60024
60025         * modules/uniconv/u8-strconv-from-enc: New file.
60026         * lib/uniconv/u8-strconv-from-enc.c: New file.
60027         * lib/uniconv/u-strconv-from-enc.h: New file.
60028         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60029         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60030
60031         * modules/uniconv/u32-conv-from-enc: New file.
60032         * lib/uniconv/u32-conv-from-enc.c: New file.
60033         * modules/uniconv/u32-conv-from-enc-tests: New file.
60034         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60035
60036         * modules/uniconv/u16-conv-from-enc: New file.
60037         * lib/uniconv/u16-conv-from-enc.c: New file.
60038         * lib/uniconv/u-conv-from-enc.h: New file.
60039         * modules/uniconv/u16-conv-from-enc-tests: New file.
60040         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60041
60042         * modules/uniconv/u8-conv-from-enc: New file.
60043         * lib/uniconv/u8-conv-from-enc.c: New file.
60044         * modules/uniconv/u8-conv-from-enc-tests: New file.
60045         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60046
60047         * modules/uniconv/base: New file.
60048         * lib/uniconv.h: New file.
60049
60050 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60051
60052         * doc/gnulib-tool.texi (Initial import): Update to match current
60053         behavior with strdup module.
60054         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60055         * lib/memmem.h: Remove; all uses removed.  This is now done
60056         by <string.h>.
60057         * lib/mempcpy.h: Likewise.
60058         * lib/memrchr.h: Likewise.
60059         * lib/stpcpy.h: Likewise.
60060         * lib/stpncpy.h: Likewise.
60061         * lib/strcase.h: Likewise.
60062         * lib/strchrnul.h: Likewise.
60063         * lib/strdup.h: Likewise.
60064         * lib/strndup.h: Likewise.
60065         * lib/strnlen.h: Likewise.
60066         * lib/strpbrk.h: Likewise.
60067         * lib/strsep.h: Likewise.
60068         * lib/strstr.h: Likewise.
60069         * lib/strtok_r.h: Likewise.
60070         * lib/string_.h: New file.
60071         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60072         Rely on <string.h> instead.
60073         * lib/canon-host.c: Likewise.
60074         * lib/chdir-long.c: Likewise.
60075         * lib/concatpath.c: Likewise.
60076         * lib/exclude.c: Likewise.
60077         * lib/fchdir.c: Likewise.
60078         * lib/getaddrinfo.c: Likewise.
60079         * lib/getcwd.c: Likewise.
60080         * lib/getsubopt.c: Likewise.
60081         * lib/glob.c: Likewise.
60082         * lib/hard-locale.c: Likewise.
60083         * lib/iconvme.c: Likewise.
60084         * lib/javacomp.c: Likewise.
60085         * lib/mempcpy.c: Likewise.
60086         * lib/memrchr.c: Likewise.
60087         * lib/regex_internal.h: Likewise.
60088         * lib/stpncpy.c: Likewise.
60089         * lib/strcasecmp.c: Likewise.
60090         * lib/strchrnul.c: Likewise.
60091         * lib/strdup.c: Likewise.
60092         * lib/striconv.c: Likewise.
60093         * lib/striconveh.c: Likewise.
60094         * lib/striconveha.c: Likewise.
60095         * lib/strncasecmp.c: Likewise.
60096         * lib/strndup.c: Likewise.
60097         * lib/strnlen.c: Likewise.
60098         * lib/strsep.c: Likewise.
60099         * lib/strstr.c: Likewise.
60100         * lib/strtok_r.c: Likewise.
60101         * lib/userspec.c: Likewise.
60102         * lib/w32spawn.h: Likewise.
60103         * lib/xstrndup.c: Likewise.
60104         * lib/mountlist.c (strstr): Remove decl.
60105         * m4/string_h.m4: New file.
60106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60107         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60108         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60109         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60110         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60111         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60112         Set REPLACE_STRCASECMP if necessary.
60113         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60114         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60115         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60116         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60117         HAVE_DECL_STRDUP if necessary.
60118         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60119         since gl_FUNC_STRNDUP does that now.
60120         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60121         Check for decl here...
60122         (gl_PREREQ_STRNLEN): ... not here.
60123         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60124         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60125         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60127         necessary.
60128         * modules/string: New file.
60129         * modules/memmem (Files): Remove special-purpose include file.
60130         (Depends-on): Add string.
60131         (Include): Include <string.h>, not the removed file.
60132         * modules/mempcpy: Likewise.
60133         * modules/memrchr: Likewise.
60134         * modules/stpcpy: Likewise.
60135         * modules/stpncpy: Likewise.
60136         * modules/strcase: Likewise.
60137         * modules/strchrnul: Likewise.
60138         * modules/strdup: Likewise.
60139         * modules/strndup: Likewise.
60140         * modules/strnlen: Likewise.
60141         * modules/strpbrk: Likewise.
60142         * modules/strsep: Likewise.
60143         * modules/strstr: Likewise.
60144         * modules/strtok_r: Likewise.
60145         * tests/test-dirname.c: Don't include "strdup.h", since
60146         <string.h> now suffices.
60147         * tests/test-memmem.c: Don't include "memmem.h", since
60148         <string.h> now suffices.
60149
60150 2007-01-25  Bruno Haible  <bruno@clisp.org>
60151
60152         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60153         *resultp is 0.
60154
60155         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60156         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60157         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60158         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60159
60160         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60161         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60162         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60163         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60164         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60165         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60166
60167 2007-01-24  Bruno Haible  <bruno@clisp.org>
60168
60169         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60170         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60171         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60172         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60173         gl_FUNC_FTS_CORE.
60174         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60175         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60176         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60177         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60178         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60179         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60180         gl_FUNC_FCHOWNAT.
60181         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60182         gl_FUNC_STRFTIME.
60183         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60184         Reported by Ralf Wildenhues.
60185
60186 2007-01-24  Bruno Haible  <bruno@clisp.org>
60187
60188         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60189         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60190         gl_GETADDRINFO.
60191         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60192         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60193         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60194
60195 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60196
60197         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60198         Don't use 'exit'; just return from 'main'.
60199         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60200
60201         * lib/fnmatch_.h: Readjust white space and comments to match
60202         glibc, to avoid spurious diffs.
60203
60204 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60205
60206         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60207         2004-12-01 change by Jakub Jelinek, since this code won't compile
60208         if !LIBC.  Problem reported by Bob Proulx.
60209
60210 2007-01-23  Bruno Haible  <bruno@clisp.org>
60211
60212         * lib/striconveh.c: Include c-strcaseeq.h.
60213         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60214         * modules/striconveh (Depends-on): Add c-strcaseeq.
60215
60216 2007-01-23  Bruno Haible  <bruno@clisp.org>
60217
60218         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60219
60220         * modules/c-strcaseeq: New file.
60221         * lib/c-strcaseeq.h: New file.
60222
60223         * modules/streq: New file.
60224         * lib/streq.h: New file.
60225
60226 2007-01-23  Bruno Haible  <bruno@clisp.org>
60227
60228         * modules/striconveha-tests: New file.
60229         * tests/test-striconveha.c: New file.
60230
60231         * lib/striconveha.h: Include <stdbool.h>.
60232         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60233         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60234         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60235         (mem_iconveha): New function.
60236         (str_iconveha_notranslit): Renamed from str_iconveha.
60237         (str_iconveha): New function.
60238         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60239         c-strcase.
60240
60241 2007-01-23  Bruno Haible  <bruno@clisp.org>
60242
60243         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60244         encodings without forgiving before trying any encoding with handler.
60245         (str_iconveha): Try all encodings without forgiving before trying any
60246         encoding with handler.
60247
60248 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60249
60250         Import the following changes from libc.
60251
60252         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60253
60254         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60255
60256         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60257
60258         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60259         normal_bracket label.
60260
60261         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60262
60263         [BZ #361]
60264         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60265         to normal_bracket after fetching the next character.
60266
60267 2007-01-22  Bruno Haible  <bruno@clisp.org>
60268
60269         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60270         argument.
60271         * lib/striconveh.c (iconv_carefully_1): New function.
60272         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60273         argument.
60274         (str_cd_iconveh): Update.
60275         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60276         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60277         * tests/test-striconveh.c (MAGIC): New macro.
60278         (new_offsets): New function.
60279         (main): Test call with and without offsets.
60280
60281 2007-01-22  Bruno Haible  <bruno@clisp.org>
60282
60283         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60284         * modules/sys_select (Makefile.am): Likewise.
60285         * modules/sys_socket (Makefile.am): Likewise.
60286         * modules/sys_time (Makefile.am): Likewise.
60287
60288 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60289
60290         * modules/gettimeofday (License): Change from GPL to LGPL, since
60291         gettimeofday is a library function.
60292
60293 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60294
60295         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60296
60297 2007-01-21  Bruno Haible  <bruno@clisp.org>
60298
60299         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60300
60301 2007-01-21  Bruno Haible  <bruno@clisp.org>
60302
60303         * modules/striconveha: New file.
60304         * lib/striconveha.h: New file.
60305         * lib/striconveha.c: New file.
60306         * MODULES.html.sh (Internationalization functions): Add striconveha.
60307         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60308         string.
60309         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60310
60311 2007-01-21  Bruno Haible  <bruno@clisp.org>
60312
60313         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60314         * lib/striconveh.c (str_iconveh): Likewise.
60315
60316 2007-01-21  Bruno Haible  <bruno@clisp.org>
60317
60318         * lib/striconveh.h (mem_iconveh): New declaration.
60319         * lib/striconveh.c (mem_iconveh): New function.
60320         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60321
60322 2007-01-21  Bruno Haible  <bruno@clisp.org>
60323
60324         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60325
60326         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60327         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60328         original result buffer.
60329         (str_cd_iconveh): Update.
60330         * tests/test-striconveh.c (main): Update.
60331
60332         * lib/striconv.h (mem_cd_iconv): Change specification.
60333         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60334         result buffer.
60335         (str_cd_iconv): Update.
60336         * tests/test-striconv.c (main): Update.
60337
60338 2007-01-21  Bruno Haible  <bruno@clisp.org>
60339
60340         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60341
60342 2007-01-20  Jim Meyering  <jim@meyering.net>
60343
60344         * lib/userspec.c (parse_with_separator): If a user or group string
60345         starts with "+", skip the corresponding name-to-ID look-up, since
60346         such a look-up must fail: user and group names may not include "+".
60347
60348 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60349
60350         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60351         since we now assume the sys_time module.
60352         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60353         check for sys/time.h; no longer needed.
60354         * modules/poll (Depends-on): Depend on sys_time.
60355
60356 2007-01-18  Bruno Haible  <bruno@clisp.org>
60357
60358         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60359         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60360
60361         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60362         gettimeofday.
60363
60364         * tests/test-gettimeofday.c: Include <time.h>.
60365         (dummy): Remove variable.
60366
60367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60368         gl_HEADER_SYS_TIME_H.
60369         (gl_HEADER_SYS_TIME_H): New macro.
60370
60371         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60372         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60374         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60375         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60376         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60377         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60378         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60379         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60380         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60381         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60382
60383         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60384         last change; it caused a compilation error when cross-compiling to
60385         Cygwin.
60386
60387 2007-01-18  Jim Meyering  <jim@meyering.net>
60388
60389         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60390         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60391         than the race-prone "test -d sys || mkdir sys".
60392         (configure.ac): Use AC_PROG_MKDIR_P.
60393         * modules/sys_select: Likewise.
60394         * modules/sys_socket: Likewise.
60395         * modules/sys_time: Likewise.
60396
60397 2007-01-18  Eric Blake  <ebb9@byu.net>
60398
60399         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60400         replace gettimeofday.
60401         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60402         name, to avoid infinite recursion.
60403
60404 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60405
60406         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60407         module sys_time.
60408         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60409         assume timespec.h defines struct timeval.
60410         * lib/settime.c: Likewise.
60411         * lib/utimens.c: Likewise.
60412         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60413         since we now assume the gettimeofday module.
60414         * lib/tempname.c (__gen_tempname): Likewise.
60415         * lib/gettimeofday.h: Remove.
60416         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60417         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60418         Include <time.h>, for 'time()'.
60419         (localtime_buffer_addr): Also use this workaround if
60420         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60421         to simplify the uses.  All uses changed.
60422         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60423         that #undef is inside {}, and 'const' follows type name consistently.
60424         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60425         (gettimeofday): Do not use the maximum possible value for
60426         tv->tv_usec, since that might break usages other than ls.c.
60427         Instead, we'll leave ls.c alone.  This undoes today's patch
60428         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60429         we've never observed the problem but might as well keep the
60430         canary.
60431         * lib/nanosleep.c: Include timespec.h first, for interface check.
60432         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60433         now assume the sys_time module.
60434         * lib/tempname.c: Likewise.
60435         * lib/timespec.h: Likewise.
60436         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60437         needed.
60438         * lib/strftime.c: Likewise.
60439         * lib/timespec.h: Likewise.
60440         * lib/posixtm.c: Include posixtm.h first, for interface check.
60441         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60442         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60443         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60444         * lib/sys_time_.h: New file.
60445         * lib/timespec.h (struct timespec): Use long int, not long.
60446         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60447         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60448         Remove obsolescent call to AC_HEADER_TIME.
60449         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60451         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60452         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60453         Likewise.
60454         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60455         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60457         into the sys_time module.  Check for gettimeofday just once.
60458         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60459         for gettimeofday signature to just check the signature.  Merely
60460         compile it, since linking doesn't test signature.  Improve test for
60461         whether gettimeofday.o is actually needed.
60462         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60463         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60464         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60465         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60466         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60467         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60468         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60469         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60470         than worrying about sys/time.h.
60471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60472         Don't bother worrying about TIME_WITH_SYS_TIME.
60473         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60474         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60475         * m4/sys_time_h.m4: New file.
60476         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60477         Don't include sys/time.h.  Return from main rather than exiting.
60478         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60479         all uses changed.
60480         * modules/gethrxtime (Depends-on): Add sys_time.
60481         * modules/gettime (Depends-on): Likewise.
60482         * modules/gettimeofday (Depends-on): Likewise.
60483         * modules/nanosleep (Depends-on): Likewise.
60484         * modules/settime (Depends-on): Likewise.
60485         * modules/tempname (Depends-on): Likewise.
60486         * modules/utimens (Depends-on): Likewise.
60487         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60488         (Include): Change back to <sys/time.h>.
60489         (Maintainer): Add self.
60490         * modules/sys_time: New file.
60491         * modules/tempname (Depends-on): Add gettimeofday.
60492         * tests/test-gettimeofday.c: Include <sys/time.h>
60493         rather than gettimeofday.h.
60494
60495 2007-01-17  Bruno Haible  <bruno@clisp.org>
60496
60497         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60498         the license default to GPL.
60499         (func_create_testdir): Don't complain if a module is LGPL and its
60500         tests module depends on GPLed modules.
60501
60502 2007-01-17  Bruno Haible  <bruno@clisp.org>
60503
60504         * lib/gettimeofday.c (gettimeofday): Add code for the case
60505         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60506         maximum possible value for tv->tv_usec, rather than the minimum one.
60507
60508 2005-10-08  Martin Lambers  <marlam@marlam.de>
60509 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60510 2007-01-16  Bruno Haible  <bruno@clisp.org>
60511
60512         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60513         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60514         gl_FUNC_GETTIMEOFDAY.
60515         (Include): Add gettimeofday.h.
60516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60517         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60518         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60519         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60520         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60521         * lib/gettimeofday.h: New file.
60522         * lib/gettimeofday.c: Include <sys/timeb.h>.
60523         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60524         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60525         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60526         fall back on time().
60527
60528         * tests/test-gettimeofday.c: New file.
60529         * modules/gettimeofday-tests: New file.
60530
60531 2007-01-16  Eric Blake  <ebb9@byu.net>
60532
60533         * modules/fnmatch (Depends-on): Depend on wchar.
60534         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60535         * m4/fnmatch.m4: Likewise.
60536         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60537         * m4/mbchar.m4: Likewise.
60538         * modules/mbswidth (Depends-on): Depend on wchar.
60539         * lib/mbswidth.c: Assume <wchar.h>.
60540         * m4/mbswidth.m4: Likewise.
60541         * modules/quotearg (Depends-on): Depend on wchar.
60542         * lib/quotearg.c: Assume <wchar.h>.
60543         * m4/quotearg.m4: Likewise.
60544         * modules/regex (Depends-on): Depend on wchar.
60545         * lib/regex_internal.h: Assume <wchar.h>.
60546         * m4/regex.m4: Likewise.
60547         * modules/stdint (Depends-on): Depend on wchar.
60548         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60549         * m4/stdint.m4: Likewise.
60550         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60551         * modules/strftime (Depends-on): Depend on wchar.
60552         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60553         * modules/strtol (Depends-on): Depend on wchar.
60554         * lib/strtol.c: Assume <wchar.h>.
60555         * modules/wcwidth (Depends-on): Depend on wchar.
60556         * lib/wcwidth.h: Assume <wchar.h>.
60557         * m4/wcwidth.m4: Likewise.
60558
60559 2007-01-16  Bruno Haible  <bruno@clisp.org>
60560
60561         * modules/csharpexec-script: New, created from...
60562         * modules/csharpexec: ... this.
60563
60564 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60565
60566         * modules/javaexec-script: New, created from...
60567         * modules/javaexec: ... this.
60568
60569 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60570
60571         * modules/poll (Dependencies): Add sys_select.
60572
60573 2007-01-15  Jim Meyering  <jim@meyering.net>
60574
60575         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60576         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60577         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60578         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60579
60580 2007-01-15  Bruno Haible  <bruno@clisp.org>
60581
60582         * modules/striconveh: New file.
60583         * lib/striconveh.h: New file.
60584         * lib/striconveh.c: New file.
60585         * MODULES.html.sh (Internationalization functions): Add striconveh.
60586
60587         * modules/striconveh-tests: New file.
60588         * tests/test-striconveh.c: New file.
60589
60590 2007-01-15  Bruno Haible  <bruno@clisp.org>
60591
60592         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60593         not from GNU libiconv or GNU libc.
60594
60595 2007-01-15  Bruno Haible  <bruno@clisp.org>
60596
60597         * doc/gnulib-intro.texi (Copyright): Explain the different license
60598         terms for module descriptions, autoconf macros, tests, documentation.
60599
60600 2007-01-14  Bruno Haible  <bruno@clisp.org>
60601
60602         * modules/striconv-tests: New file.
60603         * tests/test-striconv.c: New file.
60604
60605 2007-01-14  Bruno Haible  <bruno@clisp.org>
60606
60607         * modules/iconv-tests: New file.
60608         * tests/test-iconv.c: New file.
60609
60610 2007-01-14  Bruno Haible  <bruno@clisp.org>
60611
60612         * gnulib-tool (func_get_license): For test modules, use the license of
60613         the main module.
60614
60615 2007-01-14  Bruno Haible  <bruno@clisp.org>
60616
60617         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60618         if iconv is found to exist.
60619
60620 2007-01-14  Bruno Haible  <bruno@clisp.org>
60621
60622         * modules/c-ctype-tests: New file.
60623         * tests/test-c-ctype.c: New file.
60624
60625 2007-01-14  Bruno Haible  <bruno@clisp.org>
60626
60627         * modules/binary-io-tests: New file.
60628         * tests/test-binary-io.sh: New file.
60629         * tests/test-binary-io.c: New file.
60630
60631 2007-01-14  Bruno Haible  <bruno@clisp.org>
60632
60633         * modules/array-oset-tests: New file.
60634         * tests/test-array_oset.c: New file.
60635
60636 2007-01-14  Bruno Haible  <bruno@clisp.org>
60637
60638         * modules/array-list-tests: New file.
60639         * tests/test-array_list.c: New file.
60640
60641 2007-01-14  Bruno Haible  <bruno@clisp.org>
60642
60643         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60644         and make.
60645         Reported by Simon Josefsson in
60646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60647
60648 2007-01-14  Bruno Haible  <bruno@clisp.org>
60649
60650         * modules/allocsa-tests: New file.
60651         * tests/test-allocsa.c: New file.
60652
60653 2007-01-14  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/fchdir (Depends-on): Add absolute-header.
60656         * modules/unistd (Depends-on): Likewise.
60657
60658 2006-12-30  Bruno Haible  <bruno@clisp.org>
60659
60660         * modules/fchdir: New file.
60661         * modules/unistd (Files): Add lib/unistd_.h.
60662         (Makefile.am): Generate unistd.h from unistd_.h.
60663         * lib/fchdir.c: New file.
60664         * lib/dirent_.h: New file.
60665         * lib/unistd_.h: New file.
60666         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60667         * m4/fchdir.m4: New file.
60668         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60669         (gl_HEADER_UNISTD): Invoke it.
60670         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60671         function.
60672         * lib/backupfile.c (opendir, closedir): Undefine.
60673         * lib/chown.c (open, close): Undefine.
60674         * lib/clean-temp.c (open, close): Undefine.
60675         * lib/copy-file.c (open, close): Undefine.
60676         * lib/execute.c (open, close): Undefine.
60677         * lib/fsusage.c (open, close): Undefine.
60678         * lib/gc-gnulib.c (open, close): Undefine.
60679         * lib/getcwd.c (opendir, closedir): Undefine.
60680         * lib/glob.c (opendir, closedir): Undefine.
60681         * lib/javacomp.c (open, close): Undefine.
60682         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60683         * lib/openat-proc.c (open, close): Undefine.
60684         * lib/pagealign_alloc.c (open, close): Undefine.
60685         * lib/pipe.c (open, close): Undefine.
60686         * lib/progreloc.c (open, close): Undefine.
60687         * lib/savedir.c (opendir, closedir): Undefine.
60688         * lib/utime.c (open, close): Undefine.
60689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60690
60691 2007-01-10  Bruno Haible  <bruno@clisp.org>
60692
60693         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60694
60695 2007-01-12  Eric Blake  <ebb9@byu.net>
60696
60697         Provide a robust <wchar.h>.  Further simplifications are now
60698         possible in other modules, but not included here.
60699         * modules/wchar: New module.
60700         * m4/wchar.m4: New file.
60701         * lib/wchar_.h: Likewise.
60702         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60703         of the new module.
60704         * MODULES.html.sh (Extended multibyte and wide character utilities):
60705         New section.
60706
60707 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60708
60709         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60710         to a reasonable default for memory allocation.
60711         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60712         file system that reports garbage st_size values for symlinks.
60713         Problem reported by Liyang Hu.
60714
60715 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60716
60717         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60718         Emacs .#* auto-save files).
60719
60720 2007-01-11  Bruno Haible  <bruno@clisp.org>
60721
60722         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60723         directory.
60724
60725 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60726
60727         Use @...@ consistently in lib/wctype_.h.
60728         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60729         on it being set to 1 or 0.
60730         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60731         go back to AC_SUBSTing it.
60732         * modules/wctype (Makefile.am): Undo previous change.
60733
60734 2007-01-10  Eric Blake  <ebb9@byu.net>
60735
60736         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60737         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60738         * modules/wctype (Makefile.am): Likewise.
60739         Reported by Chris McGuire.
60740
60741 2007-01-10  Jim Meyering  <jim@meyering.net>
60742
60743         fts.c: a small readability/maintainability improvement
60744         * lib/fts.c (fts_read): Make this code slightly more readable and
60745         maintainable by hoisting the "sp->fts_cur = p" assignments to
60746         immediately follow the statements that set P.  Derived from
60747         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60748
60749 2007-01-10  Eric Blake  <ebb9@byu.net>
60750
60751         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60752         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60754         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60755         Reported by Chris McGuire.
60756
60757 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60758
60759         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60760         in sed script.
60761
60762 2007-01-09  Bruno Haible  <bruno@clisp.org>
60763
60764         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60765         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60766         variables.
60767         (func_module): Use them.
60768
60769 2007-01-09  Bruno Haible  <bruno@clisp.org>
60770
60771         * modules/unistr/base: New file.
60772         * lib/unistr.h: New file.
60773
60774         * modules/unistr/u8-to-u16: New file.
60775         * lib/unistr/u8-to-u16.c: New file.
60776
60777         * modules/unistr/u8-to-u32: New file.
60778         * lib/unistr/u8-to-u32.c: New file.
60779
60780         * modules/unistr/u16-to-u8: New file.
60781         * lib/unistr/u16-to-u8.c: New file.
60782
60783         * modules/unistr/u16-to-u32: New file.
60784         * lib/unistr/u16-to-u32.c: New file.
60785
60786         * modules/unistr/u32-to-u8: New file.
60787         * lib/unistr/u32-to-u8.c: New file.
60788
60789         * modules/unistr/u32-to-u16: New file.
60790         * lib/unistr/u32-to-u16.c: New file.
60791
60792         * modules/unistr/u8-check: New file.
60793         * modules/unistr/u16-check: New file.
60794         * modules/unistr/u32-check: New file.
60795         * lib/unistr/u8-check.c: New file.
60796         * lib/unistr/u16-check.c: New file.
60797         * lib/unistr/u32-check.c: New file.
60798
60799         * modules/unistr/u8-chr: New file.
60800         * modules/unistr/u16-chr: New file.
60801         * modules/unistr/u32-chr: New file.
60802         * lib/unistr/u8-chr.c: New file.
60803         * lib/unistr/u16-chr.c: New file.
60804         * lib/unistr/u32-chr.c: New file.
60805
60806         * modules/unistr/u8-cmp: New file.
60807         * modules/unistr/u16-cmp: New file.
60808         * modules/unistr/u32-cmp: New file.
60809         * lib/unistr/u8-cmp.c: New file.
60810         * lib/unistr/u16-cmp.c: New file.
60811         * lib/unistr/u32-cmp.c: New file.
60812
60813         * modules/unistr/u8-cpy: New file.
60814         * modules/unistr/u16-cpy: New file.
60815         * modules/unistr/u32-cpy: New file.
60816         * lib/unistr/u8-cpy.c: New file.
60817         * lib/unistr/u16-cpy.c: New file.
60818         * lib/unistr/u32-cpy.c: New file.
60819         * lib/unistr/u-cpy.h: New file.
60820
60821         * modules/unistr/u8-cpy-alloc: New file.
60822         * modules/unistr/u16-cpy-alloc: New file.
60823         * modules/unistr/u32-cpy-alloc: New file.
60824         * lib/unistr/u8-cpy-alloc.c: New file.
60825         * lib/unistr/u16-cpy-alloc.c: New file.
60826         * lib/unistr/u32-cpy-alloc.c: New file.
60827         * lib/unistr/u-cpy-alloc.h: New file.
60828
60829         * modules/unistr/u8-endswith: New file.
60830         * modules/unistr/u16-endswith: New file.
60831         * modules/unistr/u32-endswith: New file.
60832         * lib/unistr/u8-endswith.c: New file.
60833         * lib/unistr/u16-endswith.c: New file.
60834         * lib/unistr/u32-endswith.c: New file.
60835         * lib/unistr/u-endswith.h: New file.
60836
60837         * modules/unistr/u8-mblen: New file.
60838         * modules/unistr/u16-mblen: New file.
60839         * modules/unistr/u32-mblen: New file.
60840         * lib/unistr/u8-mblen.c: New file.
60841         * lib/unistr/u16-mblen.c: New file.
60842         * lib/unistr/u32-mblen.c: New file.
60843
60844         * modules/unistr/u8-mbtouc: New file.
60845         * modules/unistr/u16-mbtouc: New file.
60846         * modules/unistr/u32-mbtouc: New file.
60847         * lib/unistr/u8-mbtouc.c: New file.
60848         * lib/unistr/u16-mbtouc.c: New file.
60849         * lib/unistr/u32-mbtouc.c: New file.
60850
60851         * modules/unistr/u8-mbtouc-safe: New file.
60852         * modules/unistr/u16-mbtouc-safe: New file.
60853         * modules/unistr/u32-mbtouc-safe: New file.
60854         * lib/unistr/u8-mbtouc-safe.c: New file.
60855         * lib/unistr/u16-mbtouc-safe.c: New file.
60856         * lib/unistr/u32-mbtouc-safe.c: New file.
60857
60858         * modules/unistr/u8-move: New file.
60859         * modules/unistr/u16-move: New file.
60860         * modules/unistr/u32-move: New file.
60861         * lib/unistr/u8-move.c: New file.
60862         * lib/unistr/u16-move.c: New file.
60863         * lib/unistr/u32-move.c: New file.
60864         * lib/unistr/u-move.h: New file.
60865
60866         * modules/unistr/u8-next: New file.
60867         * modules/unistr/u16-next: New file.
60868         * modules/unistr/u32-next: New file.
60869         * lib/unistr/u8-next.c: New file.
60870         * lib/unistr/u16-next.c: New file.
60871         * lib/unistr/u32-next.c: New file.
60872
60873         * modules/unistr/u8-prev: New file.
60874         * modules/unistr/u16-prev: New file.
60875         * modules/unistr/u32-prev: New file.
60876         * lib/unistr/u8-prev.c: New file.
60877         * lib/unistr/u16-prev.c: New file.
60878         * lib/unistr/u32-prev.c: New file.
60879
60880         * modules/unistr/u8-set: New file.
60881         * modules/unistr/u16-set: New file.
60882         * modules/unistr/u32-set: New file.
60883         * lib/unistr/u8-set.c: New file.
60884         * lib/unistr/u16-set.c: New file.
60885         * lib/unistr/u32-set.c: New file.
60886         * lib/unistr/u-set.h: New file.
60887
60888         * modules/unistr/u8-startswith: New file.
60889         * modules/unistr/u16-startswith: New file.
60890         * modules/unistr/u32-startswith: New file.
60891         * lib/unistr/u8-startswith.c: New file.
60892         * lib/unistr/u16-startswith.c: New file.
60893         * lib/unistr/u32-startswith.c: New file.
60894         * lib/unistr/u-startswith.h: New file.
60895
60896         * modules/unistr/u8-stpcpy: New file.
60897         * modules/unistr/u16-stpcpy: New file.
60898         * modules/unistr/u32-stpcpy: New file.
60899         * lib/unistr/u8-stpcpy.c: New file.
60900         * lib/unistr/u16-stpcpy.c: New file.
60901         * lib/unistr/u32-stpcpy.c: New file.
60902         * lib/unistr/u-stpcpy.h: New file.
60903
60904         * modules/unistr/u8-stpncpy: New file.
60905         * modules/unistr/u16-stpncpy: New file.
60906         * modules/unistr/u32-stpncpy: New file.
60907         * lib/unistr/u8-stpncpy.c: New file.
60908         * lib/unistr/u16-stpncpy.c: New file.
60909         * lib/unistr/u32-stpncpy.c: New file.
60910         * lib/unistr/u-stpncpy.h: New file.
60911
60912         * modules/unistr/u8-strcat: New file.
60913         * modules/unistr/u16-strcat: New file.
60914         * modules/unistr/u32-strcat: New file.
60915         * lib/unistr/u8-strcat.c: New file.
60916         * lib/unistr/u16-strcat.c: New file.
60917         * lib/unistr/u32-strcat.c: New file.
60918         * lib/unistr/u-strcat.h: New file.
60919
60920         * modules/unistr/u8-strchr: New file.
60921         * modules/unistr/u16-strchr: New file.
60922         * modules/unistr/u32-strchr: New file.
60923         * lib/unistr/u8-strchr.c: New file.
60924         * lib/unistr/u16-strchr.c: New file.
60925         * lib/unistr/u32-strchr.c: New file.
60926
60927         * modules/unistr/u8-strcmp: New file.
60928         * modules/unistr/u16-strcmp: New file.
60929         * modules/unistr/u32-strcmp: New file.
60930         * lib/unistr/u8-strcmp.c: New file.
60931         * lib/unistr/u16-strcmp.c: New file.
60932         * lib/unistr/u32-strcmp.c: New file.
60933
60934         * modules/unistr/u8-strcpy: New file.
60935         * modules/unistr/u16-strcpy: New file.
60936         * modules/unistr/u32-strcpy: New file.
60937         * lib/unistr/u8-strcpy.c: New file.
60938         * lib/unistr/u16-strcpy.c: New file.
60939         * lib/unistr/u32-strcpy.c: New file.
60940         * lib/unistr/u-strcpy.h: New file.
60941
60942         * modules/unistr/u8-strcspn: New file.
60943         * modules/unistr/u16-strcspn: New file.
60944         * modules/unistr/u32-strcspn: New file.
60945         * lib/unistr/u8-strcspn.c: New file.
60946         * lib/unistr/u16-strcspn.c: New file.
60947         * lib/unistr/u32-strcspn.c: New file.
60948         * lib/unistr/u-strcspn.h: New file.
60949
60950         * modules/unistr/u8-strdup: New file.
60951         * modules/unistr/u16-strdup: New file.
60952         * modules/unistr/u32-strdup: New file.
60953         * lib/unistr/u8-strdup.c: New file.
60954         * lib/unistr/u16-strdup.c: New file.
60955         * lib/unistr/u32-strdup.c: New file.
60956         * lib/unistr/u-strdup.h: New file.
60957
60958         * modules/unistr/u8-strlen: New file.
60959         * modules/unistr/u16-strlen: New file.
60960         * modules/unistr/u32-strlen: New file.
60961         * lib/unistr/u8-strlen.c: New file.
60962         * lib/unistr/u16-strlen.c: New file.
60963         * lib/unistr/u32-strlen.c: New file.
60964         * lib/unistr/u-strlen.h: New file.
60965
60966         * modules/unistr/u8-strmblen: New file.
60967         * modules/unistr/u16-strmblen: New file.
60968         * modules/unistr/u32-strmblen: New file.
60969         * lib/unistr/u8-strmblen.c: New file.
60970         * lib/unistr/u16-strmblen.c: New file.
60971         * lib/unistr/u32-strmblen.c: New file.
60972
60973         * modules/unistr/u8-strmbtouc: New file.
60974         * modules/unistr/u16-strmbtouc: New file.
60975         * modules/unistr/u32-strmbtouc: New file.
60976         * lib/unistr/u8-strmbtouc.c: New file.
60977         * lib/unistr/u16-strmbtouc.c: New file.
60978         * lib/unistr/u32-strmbtouc.c: New file.
60979
60980         * modules/unistr/u8-strncat: New file.
60981         * modules/unistr/u16-strncat: New file.
60982         * modules/unistr/u32-strncat: New file.
60983         * lib/unistr/u8-strncat.c: New file.
60984         * lib/unistr/u16-strncat.c: New file.
60985         * lib/unistr/u32-strncat.c: New file.
60986         * lib/unistr/u-strncat.h: New file.
60987
60988         * modules/unistr/u8-strncmp: New file.
60989         * modules/unistr/u16-strncmp: New file.
60990         * modules/unistr/u32-strncmp: New file.
60991         * lib/unistr/u8-strncmp.c: New file.
60992         * lib/unistr/u16-strncmp.c: New file.
60993         * lib/unistr/u32-strncmp.c: New file.
60994
60995         * modules/unistr/u8-strncpy: New file.
60996         * modules/unistr/u16-strncpy: New file.
60997         * modules/unistr/u32-strncpy: New file.
60998         * lib/unistr/u8-strncpy.c: New file.
60999         * lib/unistr/u16-strncpy.c: New file.
61000         * lib/unistr/u32-strncpy.c: New file.
61001         * lib/unistr/u-strncpy.h: New file.
61002
61003         * modules/unistr/u8-strnlen: New file.
61004         * modules/unistr/u16-strnlen: New file.
61005         * modules/unistr/u32-strnlen: New file.
61006         * lib/unistr/u8-strnlen.c: New file.
61007         * lib/unistr/u16-strnlen.c: New file.
61008         * lib/unistr/u32-strnlen.c: New file.
61009         * lib/unistr/u-strnlen.h: New file.
61010
61011         * modules/unistr/u8-strpbrk: New file.
61012         * modules/unistr/u16-strpbrk: New file.
61013         * modules/unistr/u32-strpbrk: New file.
61014         * lib/unistr/u8-strpbrk.c: New file.
61015         * lib/unistr/u16-strpbrk.c: New file.
61016         * lib/unistr/u32-strpbrk.c: New file.
61017         * lib/unistr/u-strpbrk.h: New file.
61018
61019         * modules/unistr/u8-strrchr: New file.
61020         * modules/unistr/u16-strrchr: New file.
61021         * modules/unistr/u32-strrchr: New file.
61022         * lib/unistr/u8-strrchr.c: New file.
61023         * lib/unistr/u16-strrchr.c: New file.
61024         * lib/unistr/u32-strrchr.c: New file.
61025
61026         * modules/unistr/u8-strspn: New file.
61027         * modules/unistr/u16-strspn: New file.
61028         * modules/unistr/u32-strspn: New file.
61029         * lib/unistr/u8-strspn.c: New file.
61030         * lib/unistr/u16-strspn.c: New file.
61031         * lib/unistr/u32-strspn.c: New file.
61032         * lib/unistr/u-strspn.h: New file.
61033
61034         * modules/unistr/u8-strstr: New file.
61035         * modules/unistr/u16-strstr: New file.
61036         * modules/unistr/u32-strstr: New file.
61037         * lib/unistr/u8-strstr.c: New file.
61038         * lib/unistr/u16-strstr.c: New file.
61039         * lib/unistr/u32-strstr.c: New file.
61040         * lib/unistr/u-strstr.h: New file.
61041
61042         * modules/unistr/u8-strtok: New file.
61043         * modules/unistr/u16-strtok: New file.
61044         * modules/unistr/u32-strtok: New file.
61045         * lib/unistr/u8-strtok.c: New file.
61046         * lib/unistr/u16-strtok.c: New file.
61047         * lib/unistr/u32-strtok.c: New file.
61048         * lib/unistr/u-strtok.h: New file.
61049
61050         * modules/unistr/u8-uctomb: New file.
61051         * modules/unistr/u16-uctomb: New file.
61052         * modules/unistr/u32-uctomb: New file.
61053         * lib/unistr/u8-uctomb.c: New file.
61054         * lib/unistr/u16-uctomb.c: New file.
61055         * lib/unistr/u32-uctomb.c: New file.
61056
61057         * MODULES.html.sh (Unicode string functions): Add the new modules.
61058
61059 2007-01-08  Bruno Haible  <bruno@clisp.org>
61060
61061         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61062         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61063         subdirectories.
61064
61065 2007-01-08  Karl Berry  <karl@gnu.org>
61066
61067         * doc/error.texi: mention that main() fns must set program_name
61068         when progname is used.
61069
61070 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61071
61072         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61073         WCTYPE_H is empty, for the benefit of builds from non-distclean
61074         directories.  Problem reported by Eric Blake in
61075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61076
61077 2007-01-08  Bruno Haible  <bruno@clisp.org>
61078
61079         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61080         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61081         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61082         PROVIDE_CANONICALIZE_FILENAME_MODE.
61083         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61084
61085 2007-01-08  Bruno Haible  <bruno@clisp.org>
61086
61087         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61088         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61089         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61090         * lib/fts.c: Likewise.
61091         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61092
61093 2006-12-25  Bruno Haible  <bruno@clisp.org>
61094
61095         * modules/utf8-ucs4-safe: New file.
61096         * lib/utf8-ucs4-safe.h: New file.
61097         * lib/unistr/utf8-ucs4-safe.c: New file.
61098
61099         * modules/utf16-ucs4-safe: New file.
61100         * lib/utf16-ucs4-safe.h: New file.
61101         * lib/unistr/utf16-ucs4-safe.c: New file.
61102
61103         * MODULES.html.sh (Unicode string functions): Add the new modules.
61104
61105 2007-01-08  Bruno Haible  <bruno@clisp.org>
61106
61107         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61108         (Depends-on): Add unitypes.
61109         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61110         (u8_mbtouc_aux): Move out to separate file.
61111         (u8_mbtouc): Use ucs4_t, uint8_t types.
61112         * lib/unistr/utf8-ucs4.c: New file.
61113
61114         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61115         (Depends-on): Add unitypes.
61116         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61117         (u16_mbtouc_aux): Move out to separate file.
61118         (u16_mbtouc): Use ucs4_t, uint16_t types.
61119         * lib/unistr/utf16-ucs4.c: New file.
61120
61121         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61122         (Depends-on): Add unitypes.
61123         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61124         (u8_uctomb_aux): Move out to separate file.
61125         (u8_uctomb): Use ucs4_t, uint8_t types.
61126         * lib/unistr/ucs4-utf8.c: New file.
61127
61128         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61129         (Depends-on): Add unitypes.
61130         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61131         (u16_uctomb_aux): Move out to separate file.
61132         (u16_uctomb): Use ucs4_t, uint16_t types.
61133         * lib/unistr/ucs4-utf16.c: New file.
61134
61135 2006-12-25  Bruno Haible  <bruno@clisp.org>
61136
61137         * modules/unitypes: New file.
61138         * lib/unitypes.h: New file.
61139         * MODULES.html.sh (func_all_modules): New section "Unicode string
61140         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61141         this section. Add unitypes.
61142
61143 2007-01-08  Bruno Haible  <bruno@clisp.org>
61144
61145         Avoid variable names that conflict with those from libtool.
61146         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61147         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61148         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61149         library_names_spec to acl_library_names_spec, hardcode_* to
61150         acl_hardcode_*.
61151         Reported by Ralf Wildenhues.
61152
61153 2007-01-08  Bruno Haible  <bruno@clisp.org>
61154
61155         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61156         definition.
61157         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61158         definition.
61159         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61160         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61161         definition.
61162         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61163         definition.
61164         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61165         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61166         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61167         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61168         definition.
61169         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61170         definition.
61171         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61172         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61173         GC_USE_<algorithm>.
61174         * lib/gc-libgcrypt.c: Likewise.
61175         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61176         * modules/gc-arctwo (configure.ac): Likewise.
61177         * modules/gc-des (configure.ac): Likewise.
61178         * modules/gc-hmac-md5 (configure.ac): Likewise.
61179         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61180         * modules/gc-md2 (configure.ac): Likewise.
61181         * modules/gc-md4 (configure.ac): Likewise.
61182         * modules/gc-md5 (configure.ac): Likewise.
61183         * modules/gc-random (configure.ac): Likewise.
61184         * modules/gc-rijndael (configure.ac): Likewise.
61185         * modules/gc-sha1 (configure.ac): Likewise.
61186
61187 2007-01-08  Bruno Haible  <bruno@clisp.org>
61188
61189         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61190         macro definition.
61191         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61192         definition.
61193         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61194         definition.
61195         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61196         * modules/fcntl-safer (configure.ac): Likewise.
61197         * modules/fopen-safer (configure.ac): Likewise.
61198         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61199         GNULIB_FWRITEERROR macro definition.
61200
61201 2007-01-08  Bruno Haible  <bruno@clisp.org>
61202
61203         * m4/gnulib-common.m4: New file.
61204         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61205         (func_get_filelist): Add m4/gnulib-common.m4.
61206
61207 2007-01-08  Bruno Haible  <bruno@clisp.org>
61208
61209         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61210         command.
61211
61212 2007-01-08  Jim Meyering  <jim@meyering.net>
61213
61214         Use a more robust test for a "can't happen" condition.
61215         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61216         narrowed the st_size value.  Presuming the "can't happen" condition
61217         is true, that narrowing could conceivably convert an invalid st_size
61218         value into a valid one.  Instead, use a change based on Matthew
61219         Woehlke's original patch.
61220
61221         Slight readability improvement: use an assert-like macro
61222         in place of literal "abort ()" uses.
61223         * lib/fts.c (fts_assert): Define.
61224         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61225         Use this macro instead of a bare 'abort'.
61226
61227 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61228
61229         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61230         simply work around them.
61231         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61232         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61233         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61234         declaring.
61235         Don't bother to define as macros, since the standard doesn't require it.
61236         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61237         longer worry about IRIX 5.3.
61238         (HAVE_WCTYPE_CTMP_BUG): Remove.
61239
61240 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61241
61242         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61243         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61244         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61245         Problems reported by Georg Schwarz for IRIX 5.3.
61246
61247         * gnulib-tool (autoconf_minversion): Take the maximum version number
61248         found, not the minimum.  Problem reported by James Youngman.
61249
61250 2007-01-03  Karl Berry  <karl@gnu.org>
61251
61252         * doc/error.texi: new file, explaining interaction with progname.
61253         * doc/gnulib.texi: include it.  Update copyright.
61254
61255 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61256
61257         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61258         AC_CANONICAL_HOST, to improve autobuild outputs.
61259
61260 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61261             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61262
61263         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61264         sockets, server sockets, and other file descriptors.  Count errors
61265         to compute the return value.  Reorder the code a bit to be easier
61266         to follow.  Don't set event bits that were not requested (except
61267         POLLERR and POLLHUP).
61268
61269 2007-01-01  Bruno Haible  <bruno@clisp.org>
61270
61271         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61272
61273 2007-01-03  Jim Meyering  <jim@meyering.net>
61274
61275         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61276
61277 2007-01-02  Bruno Haible  <bruno@clisp.org>
61278
61279         * modules/settime (Include): Require timespec.h.
61280         * modules/nanosleep (Include): Likewise.
61281
61282 2007-01-01  Bruno Haible  <bruno@clisp.org>
61283
61284         * gnulib-tool (func_emit_copyright_notice): Bump year.
61285         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61286
61287 2007-01-01  Bruno Haible  <bruno@clisp.org>
61288
61289         Improve support for OpenBSD.
61290         * build-aux/config.rpath (libname_spec): Export.
61291         (library_names_spec): New variable. Export.
61292         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61293         library_names_spec from the config.rpath output. Locate shared library
61294         through the name pattern in library_names_spec.
61295
61296 2007-01-01  Eric Blake  <ebb9@byu.net>
61297
61298         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61299
61300 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61301
61302         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61303         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61304         assume the C locale, and avoid an "eval" that could cause trouble.
61305         Problem with SORT reported by Bob Proulx.
61306
61307         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61308         Define.  Trivial patch from Henning Nielsen Lund, originally
61309         sent to bug-grep@gnu.org today.
61310
61311 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61312
61313         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61314         struct stat.  Problem reported by Henning Nielsen Lund.
61315         * lib/acl.c: Include acl.h first, to check interface.  Don't
61316         bother to include sys/types.h and sys/stat.h again.
61317
61318 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61319
61320         Import the following change from libc; problem reported by
61321         Sven Verdoolaege.
61322
61323         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61324
61325         [BZ #1373]
61326         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61327
61328 2006-12-28  Jim Meyering  <jim@meyering.net>
61329
61330         * build-aux/announce-gen: Do not assume that the package
61331         builds any of tar.gz, tar.bz2, and .xdelta files.
61332         Suggestion from Simon Josefsson.
61333
61334 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61335
61336         * modules/announce-gen: New file.
61337
61338 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61339
61340         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61341         handles its gotchas now.
61342         * lib/mbswidth.c: Likewise.
61343         * lib/wcwidth.h: Likewise.
61344         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61345         and iswcntrl; the wctype module does this stuff now.
61346         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61348         * modules/mbchar (Depends-on): Add wctype.
61349         * modules/mbswidth (Depends-on): Likewise.
61350         * modules/wcwidth (Depends-on): Likewise.
61351
61352 2006-12-27  Eric Blake  <ebb9@byu.net>
61353
61354         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61355         module uses more than what <wctype.h> is required to provide.
61356
61357 2006-12-26  Eric Blake  <ebb9@byu.net>
61358
61359         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61360
61361 2006-12-26  Eric Blake  <ebb9@byu.net>
61362
61363         * modules/absolute-header: New module.
61364         * modules/fcntl (Depends-on): Depend on it.
61365         * modules/inttypes (Depends-on): Likewise.
61366         * modules/stdint (Depends-on): Likewise.
61367         * modules/sys_stat (Depends-on): Likewise.
61368         * modules/wctype (Depends-on): Likewise.
61369         * MODULES.html.sh (Support for building libraries and
61370         executables): Document it.
61371
61372 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61373
61374         * gnulib-tool (SED): Remove, undoing previous change.
61375         The problem was that it broke coreutils on Solaris, because
61376         "sed --posix" leaked into a makefile.
61377         (sed): New alias, if 'alias' and GNU sed.
61378
61379 2006-12-24  Jim Meyering  <jim@meyering.net>
61380
61381         Work around an fchownat bug in glibc-2.4:
61382         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61383         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61384         in spite of the -P option.
61385         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61386         New macros.
61387         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61388         * modules/openat (Files): Add lib/fchownat.c.
61389         * lib/openat.c (fchownat): Don't define here.  Move to...
61390         * lib/fchownat.c: ...this new file.
61391
61392 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61393
61394         Fix bug reported by Bruno Haible in
61395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61396         where quotearg.c didn't compile on Mac OS X 10.2 because it
61397         lacks <wchar.h> and wint_t.
61398         * lib/wctype_.h (__wctype_wint_t): New type.
61399         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61400         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61401         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61402         Arg is now of type __wctype_wint_t, not wint_t.
61403         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61404         substitute HAVE_WINT_T.
61405         * modules/wctype (Files): Add m4/wint_t.m4.
61406         (wctype.h): Substitute HAVE_WINT_T.
61407
61408 2006-12-23  Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61411
61412 2006-12-23  Bruno Haible  <bruno@clisp.org>
61413
61414         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61415         S_ISLNK.
61416         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61417         mingw.
61418
61419 2006-12-22  Bruno Haible  <bruno@clisp.org>
61420
61421         * lib/copy-file.c: Include acl.h.
61422         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61423         Close the file descriptors only after being done with copy_acl.
61424         * modules/copy-file (Depends-on): Add acl.
61425
61426 2006-12-22  Bruno Haible  <bruno@clisp.org>
61427
61428         * gnulib-tool (SED): New variable.
61429         Use $SED instead of sed everywhere.
61430
61431 2006-12-22  Bruno Haible  <bruno@clisp.org>
61432
61433         * modules/no-c++: New file.
61434         * m4/no-c++.m4: New file.
61435         * MODULES.html.sh (Support for building libraries and executables):
61436         Add no-c++.
61437
61438 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61439
61440         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61441         Include <limits.h>, and use its INT_MAX to rewrite the
61442         j loop so that it does not overflow 'int'.  Problem reported by
61443         Ralf Wildenhues in
61444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61445         Play it safe by shifting left by 1 rather than multiplying by 2,
61446         as GCC is less likely to optimize this away when the value
61447         is signed (when it assumes overflow leads to undefined behavior).
61448         Also, don't assume time_t uses two's complement.
61449
61450 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61451
61452         * MODULES.html.sh: New module wctype.
61453         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61454         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61455         <wctype.h>, since the new wctype module should fix this.
61456         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61457         the wctype module should arrange for it.
61458         * lib/regex_internal.h: Likewise.
61459         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61460         since the wctype module should handle this now.
61461         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61462         * modules/fnmatch (Depends-on): Add wctype.
61463         * modules/quotearg (Depends-on): Likewise.
61464         * modules/regex (Depends-on): Likewise.
61465
61466 2006-12-19  Bruno Haible  <bruno@clisp.org>
61467
61468         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61469         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61470
61471 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61472
61473         * modules/savewd (Depends-on): Fix dependency on fcntl.
61474
61475 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61476
61477         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61478         conforms to C99, rather than relying on the user's environment
61479         setting of STDINT_H.
61480
61481 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61482         and Eric Blake  <ebb9@byu.net>
61483
61484         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61485         This is more consistent with the other defines here.
61486         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61487         Port to z/OS.  Problem reported by Paul Gilmartin.
61488         Change local vars to use gl_ prefix rather than ac_.
61489         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61490         with other defines.
61491         * modules/double-slash-root: New module.
61492         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61493         (Depends-on): Add double-slash-root.
61494         * MODULES.html.sh (File system functions): Mention new module.
61495
61496 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61497
61498         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61499         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61500         This is for the benefit of gzip, which doesn't do i18n.
61501
61502 2006-12-12  Jim Meyering  <jim@meyering.net>
61503
61504         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61505         Reported by Andreas Schwab <schwab@suse.de>.
61506
61507 2006-12-12  Bruno Haible  <bruno@clisp.org>
61508
61509         Merge these changes.
61510         2006-09-05  Bruno Haible  <bruno@clisp.org>
61511         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61512         iconv_alloc succeeded.
61513         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61514         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61515         test for " && dest " at the end - dest is always != NULL there. Call
61516         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61517         with 2xNULL arguments, also to flush the state storage. Handle the
61518         IRIX iconv behaviour. Realloc the final result, to throw away unused
61519         memory.
61520
61521 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61522
61523         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61524         and fchmodat unconditionally, since glibc 2.4 has them.
61525         Problem reported by Arkadiusz Miskiewicz.
61526
61527 2006-12-10  Bruno Haible  <bruno@clisp.org>
61528
61529         * gnulib-tool (func_import): Show the include files only for those
61530         modules that are copied and specified.
61531         Reported by Karl Berry.
61532
61533 2006-12-08  Jim Meyering  <jim@meyering.net>
61534
61535         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61536         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61537
61538         * build-aux/announce-gen: Add two new options, both optional:
61539         --bootstrap-tools=TOOL_LIST
61540               a comma-separated list of tools, e.g.,
61541               autoconf,automake,bison,gnulib
61542         --gnulib-snapshot-date=DATE
61543               if gnulib is in the bootstrap tool list,
61544               then report this as the snapshot date.
61545               If not specified, use the current date/time.
61546               If you specify a date here, be sure it's UTC.
61547
61548 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61549
61550         * tests/test-argp-2.sh: Fix test to match actual output.
61551         (func_compare): Fix sed script to be portable.
61552
61553 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61554
61555         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61556         workaround for this case.  It is not autoconfigured now; offhand
61557         it's hard to see how to autoconfigure it.
61558
61559 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61560
61561         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61562         a directory that is about to be chowned.  Such a directory's
61563         initial file permissions should permit the owner only and this
61564         should not be changed until after the chown, since the group and
61565         other bits would be incorrect if they granted permission before
61566         the chown.
61567
61568         Fix porting problem for iswctype reported by Georg Schwarz in:
61569         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61570         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61571         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61572         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61573         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61574
61575 2006-12-03  Jim Meyering  <jim@meyering.net>
61576
61577         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61578         p->fts_statp may not yet be defined.
61579         (fts_read): Instead, set it in the caller, once p->fts_statp is
61580         sure to be defined, and corresponds to a top-level directory.
61581         This bug made du -x fail.  Here's the coreutils test case:
61582         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61583         Reported by Mike Frysinger.
61584
61585 2006-12-01  Jim Meyering  <jim@meyering.net>
61586
61587         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61588         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61589         Reported by Simon Josefsson.
61590
61591 2006-11-30  Jim Meyering  <jim@meyering.net>
61592
61593         * m4/warning.m4: Use the all-permissive copyright notice
61594         recommended by RMS (rather than LGPL).
61595         * m4/vararrays.m4: Likewise.
61596         * m4/flexmember.m4: Likewise.
61597
61598 2006-11-29  Bruno Haible  <bruno@clisp.org>
61599
61600         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61601         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61602         using +=.
61603         Reported by Simon Josefsson <simon@josefsson.org>.
61604
61605 2006-11-28  James Youngman <jay@gnu.org>
61606
61607         * README: Advise users that they might find the bug-gnulib@gnu.org
61608         and autotools-announce@gnu.org mailing lists useful.
61609
61610 2006-11-28  Bruno Haible  <bruno@clisp.org>
61611
61612         * m4/ptrdiff_max.m4: Remove file.
61613
61614 2006-11-21  Bruno Haible  <bruno@clisp.org>
61615
61616         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61617         _AC_COMPUTE_INT.
61618         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61619         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61620         _AC_COMPUTE_INT.
61621         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61622         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61623         _AC_COMPUTE_INT.
61624         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61625
61626 2006-11-28  Jim Meyering  <jim@meyering.net>
61627
61628         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61629         warning from "gcc -Wshadow" about shadowing the builtin.
61630
61631 2006-11-27  Bruno Haible  <bruno@clisp.org>
61632
61633         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61634         _AC_COMPUTE_INT.
61635         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61636
61637 2006-11-27  Bruno Haible  <bruno@clisp.org>
61638             Paul Eggert  <eggert@cs.ucla.edu>
61639
61640         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61641
61642 2006-11-26  Bruno Haible  <bruno@clisp.org>
61643
61644         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61645         noinst_LTLIBRARIES.
61646
61647 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61648             Bruno Haible  <bruno@clisp.org>
61649
61650         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61651         if compiling with "gcc -ansi".
61652
61653 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61654
61655         Fix some incompatibilities with gcc -ansi -pedantic.
61656         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61657         if compiling pedantically with GCC, unless it's C99 or later.
61658         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61659         it mishandles gcc -ansi -pedantic as well.
61660         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61661         if gcc -pedantic.
61662         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61663         initializers for struct if -pedantic, unless it's C99 or later.
61664
61665 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61666
61667         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61668         Don't close an fd more than once. Identical atimes indicate
61669         success, not failure.
61670
61671 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61672
61673         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61674
61675 2006-11-23  Jim Meyering  <jim@meyering.net>
61676
61677         * build-aux/announce-gen: New file.  From coreutils.
61678
61679 2006-11-22  Jim Meyering  <jim@meyering.net>
61680
61681         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61682         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61683         (fts_read): Use a temporary to narrow the overused st_size member
61684         before using it in a switch statement.  Reported by Matthew Woehlke.
61685
61686         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61687         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61688
61689 2006-11-20  Bruno Haible  <bruno@clisp.org>
61690
61691         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61692         changequote instead of pairs of brackets.
61693         Reported by Andreas Schwab <schwab@suse.de>.
61694
61695 2006-11-21  Jim Meyering  <jim@meyering.net>
61696
61697         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61698         so as to remain compatible with older compilers.
61699         Patch from Michael Deutschmann.
61700
61701 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61702
61703         * MODULES.html.sh (File system functions): Add openat.
61704
61705         * lib/openat.h (rpl_fstatat): New macro, if
61706         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61707         (fstatat): Define to rpl_fstatat under the same conditions,
61708         unless COMPILING_FSTATAT.
61709         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61710         seems to have the bug.
61711         * lib/fstatat.c: New file.
61712         * modules/openat (Files): Add it.
61713
61714 2006-11-20  Bruno Haible  <bruno@clisp.org>
61715
61716         * Makefile: New file.
61717
61718 2006-11-20  Jim Meyering  <jim@meyering.net>
61719
61720         The beginnings of syntax-related checks for gnulib.
61721         * lib/Makefile: New file.
61722         * lib/t-idcache: New script.  Ensure that the two halves of
61723         idcache.c stay in sync.
61724
61725         * lib/idcache.c: Adjust comments in user- and group- portions to
61726         be more accurate, and to be consistent with one another.
61727
61728 2006-11-20  Jim Meyering  <jim@meyering.net>
61729
61730         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61731         continue using the flexible array member (thus, this module performs
61732         half as many malloc calls), with the addition that...
61733         (getgroup, getuser): Consistently record a non-match via an empty
61734         "name" string, and map an empty string match to a NULL return value.
61735         * modules/idcache (Depends-on): Re-add flexmember.
61736
61737         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61738         (getuidbyname, getgroup, getgidbyname): Likewise.
61739
61740         Use cleaner syntax: NULL rather than 0.
61741         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61742
61743 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61744
61745         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61746         It mishandled the case where the group was missing.
61747         Problem reported by Greg Schafer.
61748         * modules/idcache: Likewise.
61749
61750 2006-11-18  Jim Meyering  <jim@meyering.net>
61751
61752         * check-module (%exempt_header): Add exception for some
61753         conditionally-included headers.
61754
61755         * modules/i-ring (Depends-on): Add verify.
61756         (License): Change to LGPL.
61757
61758 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61759
61760         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61761         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61762         and inttostr.h.  Use snprintf rather than uinttostr, so that
61763         LGPLed code doesn't depend on GPLed.
61764
61765 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61766
61767         * modules/inline (License): Change from GPL to LGPL.
61768
61769 2006-11-17  Jim Meyering  <jim@meyering.net>
61770
61771         * modules/d-type (License): Switch to LGPL.
61772
61773 2006-11-15  Bruno Haible  <bruno@clisp.org>
61774
61775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61776
61777 2006-11-15  Eric Blake  <ebb9@byu.net>
61778
61779         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61780         the module dependency.
61781
61782 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61783             Bruno Haible  <bruno@clisp.org>
61784
61785         * gnulib-tool (func_create_testdir): Add license consistency check.
61786
61787 2006-11-15  Eric Blake  <ebb9@byu.net>
61788
61789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61790         random "(cached)" in configure output.
61791
61792 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61793
61794         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61795         test for conforming inttypes.h is both announced and cached.
61796
61797         * MODULES.html.sh (seen_modules, seen_files): New variables.
61798         (func_module): Rewrite to use a few less gnulib-tool and sed
61799         invocations.  Avoid a couple of quadratic algorithms for ...
61800         (missed_modules, missed_files): ... these, with ...
61801         (func_append, func_tmpdir): ... these new functions, from
61802         gnulib-tool.  Analogously, install traps for cleanup.
61803
61804         * tests/test-gc.c (main): Remove unused variables.
61805         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61806
61807 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61808
61809         * modules/inttostr (License): Change to LGPL.
61810
61811 2006-11-14  Eric Blake  <ebb9@byu.net>
61812
61813         * modules/tempname (License): Change to LGPL.
61814
61815 2006-11-14  Eric Blake  <ebb9@byu.net>
61816
61817         * doc/functions.texi (Function Portability): *printf functions on
61818         Cygwin now understand all POSIX size specifiers.
61819
61820 2006-11-14  Bruno Haible  <bruno@clisp.org>
61821
61822         * modules/c-ctype (License): Change to LGPL.
61823
61824 2006-11-12  Bruno Haible  <bruno@clisp.org>
61825
61826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61827         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61828         for GNOME libraries, for which the include files are installed in
61829         subdirectories of $prefix/include.
61830
61831 2006-11-12  Bruno Haible  <bruno@clisp.org>
61832
61833         * m4/lib-link.m4: Require at least autoconf-2.54.
61834         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61835         name to underscores for the --with option.
61836
61837 2006-11-13  Bruno Haible  <bruno@clisp.org>
61838
61839         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61840         the tests directory.
61841         Reported by Ralf Wildenhues.
61842
61843 2006-11-13  Bruno Haible  <bruno@clisp.org>
61844
61845         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61846         (func_emit_initmacro_end): Undo the override here.
61847         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61848         Works around the famous automake error in coreutils.
61849
61850 2006-11-13  Eric Blake  <ebb9@byu.net>
61851
61852         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61853         element, not its node.
61854
61855 2006-11-12  Bruno Haible  <bruno@clisp.org>
61856
61857         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61858         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61859
61860 2006-11-12  Bruno Haible  <bruno@clisp.org>
61861
61862         * gnulib-tool: New option --local-symlink.
61863         (func_usage): Document it.
61864         (lsymbolic): New variable.
61865         (func_import, func_create_testdir): If --symlink was not specified,
61866         test whether --local-symlink was specified and the file comes from
61867         the local_gnulib_dir.
61868
61869 2006-11-12  Bruno Haible  <bruno@clisp.org>
61870
61871         * gnulib-tool (func_ln): New function.
61872         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61873
61874 2006-11-12  Bruno Haible  <bruno@clisp.org>
61875
61876         Finish support for source files in subdirectories.
61877         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61878         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61879         AUTOMAKE_OPTIONS.
61880         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61881
61882 2006-11-12  Bruno Haible  <bruno@clisp.org>
61883
61884         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61885         EXTRA_lib_SOURCES augmentation.
61886         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61887
61888 2006-11-12  Jim Meyering  <jim@meyering.net>
61889
61890         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61891         file descriptors.  This also averts a failure on systems with
61892         native openat support when a traversed directory lacks "x" access.
61893         * lib/fts_.h: Include "i-ring.h"
61894         (struct FTS) [fts_fd_ring]: New member.
61895         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61896         (FCHDIR): Add parentheses.
61897         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61898         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61899         When descending, rather than simply closing the previous
61900         fts_cwd_fd value, push that file descriptor onto the ring.
61901         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61902         (fts_open): Initialize the new fd_ring member.
61903         (fts_close): Clear the ring.
61904         (fts_safe_changedir): When possible, use our new fd_ring to skip
61905         the diropen and fstat and dev/ino comparison that would normally
61906         accompany a virtual `chdir ("..")'.
61907
61908         * modules/fts (Depends-on): Add i-ring.
61909         * modules/i-ring: New module.
61910         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61911         * m4/i-ring.m4: New file.
61912
61913 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61914
61915         * gnulib-tool (func_create_testdir): Fix replacement of
61916         `build-aux' in configure.ac.  Run autotools in gltests
61917         subdirectory.
61918         (func_create_testdir, func_create_megatestdir, test): There is
61919         no need for '--force' in most autotool invocations in a new
61920         tree.  Actually fail the whole test if any of the tools, or the
61921         configure or make stages fail.
61922
61923         Sync from Automake.
61924         * build-aux/gnupload: Revert last change.  Add pointer to upload
61925         instructions of the GNU Maintenance Instructions.
61926         Suggestion by Karl Berry.
61927
61928 2006-11-10  Jim Meyering  <jim@meyering.net>
61929
61930         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61931
61932 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61933
61934         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61935         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61936         (bind_textdomain_codeset) [! ENABLE_NLS]:
61937         Evaluate all the arguments.  That way, callers get compatible behavior
61938         if the arguments have side effects.  Also, it avoids some GCC
61939         diagnostics in some cases; Joel E. Denny reported problems when Bison
61940         was configured with --enable-gcc-warnigs.
61941
61942 2006-11-10  Jim Meyering  <jim@meyering.net>
61943
61944         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61945         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61946         account.
61947
61948 2006-11-10  Jim Meyering  <jim@meyering.net>
61949
61950         * modules/inline: New file/module.
61951         * modules/xalloc (Files): Remove m4/inline.m4.
61952         (Depends-on): Add inline, instead.
61953         * modules/oset: Likewise.
61954         * modules/list: Likewise.
61955
61956 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61957
61958         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
61959         Problem reported by Matthew Woehlke.
61960
61961 2006-11-09  Bruno Haible  <bruno@clisp.org>
61962
61963         * lib/tempname.c (gen_tempname): Remove variant that invokes
61964         __gen_tempname.
61965         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
61966         __gen_tempname.
61967
61968 2006-11-08  Bruno Haible  <bruno@clisp.org>
61969
61970         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
61971         to 'yes' instead of 'cross-compiling'.
61972
61973 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
61974
61975         * lib/quotearg.h (quotearg_free): New decl.
61976         * lib/quotearg.c (quotearg_free): New function.
61977         (slot0, nslots, slotvec0, slotvec):
61978         Now file-scope so that quotearg_free can get at them.
61979
61980 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61981
61982         Sync from Automake.
61983         * build-aux/gnupload: Add missing 'gnu' to example URL.
61984         Report by Karl Berry.
61985
61986 2006-11-08  Bruno Haible  <bruno@clisp.org>
61987
61988         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
61989         Suggested by Paul Eggert.
61990
61991 2006-11-08  Jim Meyering  <jim@meyering.net>
61992
61993         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
61994         It's already included if !_LIBC.
61995         (fts_safe_changedir): Add a comment.
61996
61997 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
61998
61999         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62000         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62001         Matthew Woehlke.
62002
62003         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62004         definitions up, to avoid colliding with change below.
62005         (static_inline) [HAVE_INLINE]: New macro.
62006         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62007         Provide extern decls when !HAVE_INLINE.  Do not define unless
62008         static_inline is defined, either by us or by xmalloc.c.  Use
62009         static_inline rather than static inline.
62010         (XCALLOC): Optimize sizeof(T) = 1 case.
62011         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62012
62013 2006-11-07  Bruno Haible  <bruno@clisp.org>
62014
62015         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62016         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62017         AC_C_INLINE.
62018         * modules/xalloc (Files): Add m4/inline.m4.
62019
62020 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62021
62022         * README: Fix typo.
62023         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62024         (Miscellanous Notes): ...from this.
62025
62026 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62027
62028         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62029         Mention that offsetof should be used instead of sizeof.
62030         From Bruno Haible.
62031
62032 2006-11-07  Bruno Haible  <bruno@clisp.org>
62033
62034         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62035
62036 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62037
62038         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62039         * lib/gl_anyavltree_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):
62042         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62043         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62044         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62045         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62046         (gl_linked_add_after, gl_linked_add_at): Likewise.
62047         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62048         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62049         (gl_tree_add_before, gl_tree_add_after): Likewise.
62050         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62051         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62052         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62053
62054 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62055
62056         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62057
62058 2006-11-06  Bruno Haible  <bruno@clisp.org>
62059
62060         * m4/inline.m4: New file.
62061         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62062         * modules/list (Files): Add m4/inline.m4.
62063         * modules/oset (Files): Likewise.
62064
62065 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62066
62067         * lib/idcache.c: Include <stddef.h>, for offsetof.
62068         (struct userid.name): Change from char * to a flexible array member.
62069         All uses changed.
62070         * modules/idcache (Depends-on): Add flexmember.
62071
62072         * MODULES.html.sh (Core language properties): New module flexmember.
62073         * modules/flexmember, m4/flexmember.m4: New files.
62074
62075         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62076         inline functions that are identical with the old xnmalloc_inline,
62077         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62078         that we can avoid some unnecessary integer multiplications and
62079         divisions in the common case where the element size is known at
62080         compile time.
62081         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62082         needed.
62083         (xnboundedmalloc): Remove.
62084         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62085         arguments, for consistency with rest of this header.
62086         (xcharalloc): Rewrite using XNMALLOC.
62087         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62088         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62089         versions have been moved to lib/xalloc.h and renamed to be the
62090         non-*_inline versions.
62091         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62092         and xnrealloc functions, since those functions are now inline and
62093         now call us.
62094         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62095         renaming described above.
62096         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62097         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62098         captures the dependency in AC_C_INLINE.
62099
62100         New module canonicalize-lgpl, proposed by Charles Wilson in
62101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62102         with a few small changes afterwards.
62103         * MODULES.html.sh (File system functions): New module
62104         canonicalize-lgpl.
62105         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62106         and canonicalize_file_name.
62107         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62108         * modules/canonicalize-lgpl: New files.
62109
62110 2006-11-05  Bruno Haible  <bruno@clisp.org>
62111
62112         * gnulib-tool (func_import, func_create_testdir): Create directories
62113         also for files in subdirectories of lib/.
62114
62115 2006-11-05  Bruno Haible  <bruno@clisp.org>
62116
62117         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62118         ANSI C compliant.
62119
62120 2006-11-03  Bruno Haible  <bruno@clisp.org>
62121
62122         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62123         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62124         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62125         (xnboundedmalloc): New inline function.
62126         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62127         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62128         xmalloc.
62129         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62130         xmalloc.
62131         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62132         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62133         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62134         xmalloc.
62135         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62136         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62137         xmalloc.
62138         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62139         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62140         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62141         xmalloc.
62142         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62143         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62144         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62145         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62146         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62147         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62148         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62149
62150 2006-11-03  Bruno Haible  <bruno@clisp.org>
62151
62152         * lib/c-ctype.h [C++]: Define functions without name mangling.
62153         * lib/fwriteerror.h [C++]: Likewise.
62154         * lib/gcd.h [C++]: Likewise.
62155         * lib/linebreak.h [C++]: Likewise.
62156
62157 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62158
62159         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62160         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62161         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62162         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62163         Check for functions and headers just once.
62164         Check for declaration of canonicalize_file_name.
62165         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62166
62167 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62168
62169         * gnulib-tool (func_import): Fix typo in actioncmd.
62170
62171 2006-11-02  Bruno Haible  <bruno@clisp.org>
62172
62173         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62174         newline sequence in the Makefile.am snippet as a space, like "make"
62175         does.
62176         Reported by Roger Persson <perrog@gmail.com>.
62177
62178 2006-11-01  Bruno Haible  <bruno@clisp.org>
62179
62180         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62181         already declared in <string.h>.
62182         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62183
62184 2006-11-01  Bruno Haible  <bruno@clisp.org>
62185
62186         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62187         * lib/strcase.h: Include <string.h>.
62188         (strcasecmp): Define to rpl_strcasecmp here.
62189
62190 2006-11-01  Bruno Haible  <bruno@clisp.org>
62191
62192         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62193
62194 2006-11-01  Eric Blake  <ebb9@byu.net>
62195
62196         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62197
62198         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62199
62200 2006-10-29  Bruno Haible  <bruno@clisp.org>
62201
62202         Make it compile in C++ mode.
62203         * lib/full-write.c (full_rw): Add a cast.
62204
62205 2006-11-01  Bruno Haible  <bruno@clisp.org>
62206
62207         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62208         be POSIX compliant.
62209         Reported by Roger Persson <perrog@gmail.com>.
62210
62211 2006-11-01  Eric Blake  <ebb9@byu.net>
62212
62213         * lib/getopt_.h: Fix comments.
62214
62215 2006-10-31  Eric Blake  <ebb9@byu.net>
62216
62217         * modules/tmpdir (Depends-on): Add sys_stat.
62218         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62219         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62220         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62221         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62222         tempname.
62223
62224 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62225
62226         Avoid some C++ diagnostics reported by Bruno Haible.
62227         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62228         xmalloc.
62229         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62230         (struct slotvec): Move to top level.
62231         (quotearg_n_options): Rewrite to avoid xmalloc.
62232         * lib/xalloc.h (xcharalloc): New function.
62233         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62234         [defined __cplusplus]: Add function template that provides result
62235         type propagation.  This part of the change is from Bruno Haible.
62236
62237 2006-10-29  Bruno Haible  <bruno@clisp.org>
62238
62239         Make it compile in C++ mode.
62240         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62241         * lib/strnlen1.c (strnlen1): Cast memchr result.
62242         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62243         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62244         (create_temp_dir): Rename local variable 'template'.
62245         (compile_csharp_using_sscli): Add cast.
62246         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62247         * lib/findprog.c (find_in_path): Likewise.
62248         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62249         * lib/wait-process.c (register_slave_subprocess): Likewise.
62250
62251 2006-10-22  Bruno Haible  <bruno@clisp.org>
62252
62253         * modules/tsearch: New file.
62254         * lib/tsearch.h: New file.
62255         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62256         * m4/tsearch.m4: New file.
62257         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62258
62259 2006-10-29  Eric Blake  <ebb9@byu.net>
62260
62261         * lib/arcfour.c: Assume config.h.
62262         * lib/arctwo.c: Likewise.
62263         * lib/base64.c: Likewise.
62264         * lib/check-version.c: Likewise.
62265         * lib/crc.c: Likewise.
62266         * lib/des.c: Likewise.
62267         * lib/gc-gnulib.c: Likewise.
62268         * lib/gc-libgcrypt.c: Likewise.
62269         * lib/gc-pbkdf2-sha1.c: Likewise.
62270         * lib/getaddrinfo.c: Likewise.
62271         * lib/getdelim.c: Likewise.
62272         * lib/getline.c: Likewise.
62273         * lib/hmac-md5.c: Likewise.
62274         * lib/hmac-sha1.c: Likewise.
62275         * lib/iconvme.c: Likewise.
62276         * lib/md2.c: Likewise.
62277         * lib/md4.c: Likewise.
62278         * lib/memxor.c: Likewise.
62279         * lib/read-file.c: Likewise.
62280         * lib/readline.c: Likewise.
62281         * lib/rijndael-alg-fst.c: Likewise.
62282         * lib/rijndael-api-fst.c: Likewise.
62283         * lib/xgetdomainname.c: Likewise.
62284
62285 2006-10-28  Eric Blake  <ebb9@byu.net>
62286
62287         * lib/xstrndup.c: Assume config.h.
62288
62289 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62290
62291         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62292         stat-macros.h is now for our own macros, whereas stat_h is for
62293         macros in the <sys/stat.h> name space.
62294         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62295         (STAT_MACROS_H): Remove.
62296         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62297         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62298         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62299         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62300         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62301         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62302         Move these macros to ...
62303         * lib/stat_.h: here.  Don't include stat-macros.h.
62304         * lib/canonicalize.c: Don't include stat-macros.h.
62305         * lib/chown.c: Likewise.
62306         * lib/euidaccess.c: Likewise.
62307         * lib/file-type.c: Likewise.
62308         * lib/filemode.c: Likewise.
62309         * lib/glob.c: Likewise.
62310         * lib/isapipe.c: Likewise.
62311         * lib/lchown.c: Likewise.
62312         * lib/lstat.c: Likewise.
62313         * lib/mkdir-p.c: Likewise.
62314         * lib/rmdir.c: Likewise.
62315         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62317         unless mkdir isn't declared, to speed up 'configure'.
62318         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62319         would define all the S_* symbols.
62320         * modules/canonicalize (Depends-on):
62321         Depend on sys_stat, not stat-macros.
62322         * modules/chown: Likewise.
62323         * modules/euidaccess: Likewise.
62324         * modules/filemode: Likewise.
62325         * modules/file-type: Likewise.
62326         * modules/glob: Likewise.
62327         * modules/isapipe: Likewise.
62328         * modules/lchown: Likewise.
62329         * modules/lstat: Likewise.
62330         * modules/mkancesdirs: Likewise.
62331         * modules/rmdir: Likewise.
62332         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62333         * modules/modechange: Likewise.
62334         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62335         (configure.ac): Remove gl_STAT_MACROS.
62336         * modules/sys_stat (Depends-on): Remove stat-macros.
62337
62338 2006-10-27  Bruno Haible  <bruno@clisp.org>
62339
62340         * m4/signed.m4: Remove file.
62341         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62342         invocation.
62343         * modules/vasnprintf (Files): Remove m4/signed.m4.
62344
62345 2006-10-27  Bruno Haible  <bruno@clisp.org>
62346
62347         Update to GNU gettext 0.16.
62348         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62349         m4/inttypes-h.m4, m4/signed.m4.
62350         * m4/gettext.m4: Update to GNU gettext 0.16.
62351         * m4/intl.m4: New file, from GNU gettext.
62352         * m4/intldir.m4: New file, from GNU gettext.
62353         * config/srclist.txt: Update
62354
62355 2006-10-27  Eric Blake  <ebb9@byu.net>
62356
62357         * MODULES.html.sh: Document tempname.
62358         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62359         dependencies.
62360         (Files): Move lib/tempname.c...
62361         * modules/tempname: ...to this new module.
62362         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62363         (gl_PREREQ_TEMPNAME): Move...
62364         * m4/tempname.m4: ...to this new file.
62365         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62366         * modules/sys_stat (Depends-on): Add stat-macros.
62367         * lib/stat_.h (includes): Pick up stat macros.
62368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62369         if stat macros are broken.
62370         * lib/tempname.c (includes): No need to include "stat-macros.h".
62371         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62372         (direxists, __path_search) [!_LIBC]: Don't compile these in
62373         gnulib; the tmpdir module covers that.
62374         * lib/tempname.h: New file.
62375
62376 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62377
62378         * COPYING: Explain how gnulib-tool converts licence headers.
62379         Almost all wording by Eric Blake.
62380
62381 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62382
62383         * lib/mbchar.h (is_basic_table): Make read-only.
62384         * lib/mbchar.c (is_basic_table): Likewise.
62385         Reported by John Darrington.
62386
62387 2006-10-25  Bruno Haible  <bruno@clisp.org>
62388
62389         * lib/progname.h (set_program_name): Undefine before defining.
62390
62391 2006-10-25  Bruno Haible  <bruno@clisp.org>
62392
62393         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62394         false for non-gcc C++ compilers.
62395         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62396
62397 2006-10-24  Bruno Haible  <bruno@clisp.org>
62398
62399         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62400         iconv implementations like Irix iconv.
62401
62402 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62403
62404         * modules/vararrays: New file.
62405         * m4/vararrays.m4: New file, taken from diffutils.
62406         * MODULES.html.sh: New module vararrays.
62407
62408 2006-10-24  Karl Berry  <karl@gnu.org>
62409
62410         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62411         Don't call GNU Unix.
62412
62413 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62414
62415         * users.txt: Add Libtool.
62416
62417         Sync from Libtool:
62418
62419         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62420
62421         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62422         to gnulib's policy of including config.h unconditionally.
62423
62424 2006-10-24  Bruno Haible  <bruno@clisp.org>
62425
62426         * modules/wcwidth (Files): Add m4/wint_t.m4.
62427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62428         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62429
62430 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62431
62432         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62433         to pacify GCC with some -W flags enabled.  Problem reported by
62434         Bruno Haible.
62435
62436 2006-10-24  Jim Meyering  <jim@meyering.net>
62437
62438         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62439         Reported by Karl Berry.
62440
62441 2006-10-23  Bruno Haible  <bruno@clisp.org>
62442
62443         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62444
62445 2006-10-24  Bruno Haible  <bruno@clisp.org>
62446
62447         * lib/gl_list.h: Use C comment style, not C++ comment style.
62448
62449 2006-10-23  Eric Blake  <ebb9@byu.net>
62450
62451         * lib/getaddrinfo.c (includes): Add missing include.
62452
62453 2006-10-23  Bruno Haible  <bruno@clisp.org>
62454             Paul Eggert  <eggert@cs.ucla.edu>
62455
62456         Ability to rename obstack_free.
62457         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62458         obstack_free.
62459         (obstack_free): Invoke the __obstack_free macro.
62460         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62461
62462 2006-10-23  Bruno Haible  <bruno@clisp.org>
62463             Paul Eggert  <eggert@cs.ucla.edu>
62464
62465         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62466         __argc, __argv from the declaration. (They are defined as macros on
62467         mingw.)
62468
62469 2006-10-22  Bruno Haible  <bruno@clisp.org>
62470
62471         * doc/gnulib-intro.texi: New file.
62472         * doc/gnulib.texi: Include it.
62473
62474 2006-10-21  Bruno Haible  <bruno@clisp.org>
62475
62476         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62477         "Introduction", "Miscellanous Notes", "Particular Modules".
62478
62479 2006-10-21  Bruno Haible  <bruno@clisp.org>
62480
62481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62482         Change mostlyclean-local rule to avoid sh syntax error from bash
62483         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62484
62485 2006-10-23  Jim Meyering  <jim@meyering.net>
62486
62487         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62488         in place of snprintf.
62489
62490         * modules/inttostr (Files): Add lib/uinttostr.c.
62491         * lib/uinttostr.c (inttostr): New file/function.
62492         * lib/inttostr.h (uinttostr): Declare.
62493         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62494         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62495         Add uinttostr.
62496         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62497
62498 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62499
62500         * lib/canonicalize.c (ELOOP): Define if not already defined.
62501         Problem reported by Bruno Haible in
62502         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62503
62504 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62505
62506         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62507         Problem reported by Perry Smith and Ville Laurikari.
62508
62509         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62510         uses.
62511
62512 2006-10-19  Bruno Haible  <bruno@clisp.org>
62513
62514         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62515         for mingw.
62516
62517 2006-10-19  Bruno Haible  <bruno@clisp.org>
62518
62519         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62520         Needed for mingw.
62521
62522 2006-10-19  Bruno Haible  <bruno@clisp.org>
62523
62524         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62525
62526 2006-10-19  Bruno Haible  <bruno@clisp.org>
62527
62528         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62529         it.
62530
62531 2006-10-19  Bruno Haible  <bruno@clisp.org>
62532
62533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62534         invocation.
62535
62536 2006-10-19  Bruno Haible  <bruno@clisp.org>
62537
62538         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62539         mountlist by default.
62540
62541 2006-10-16  Bruno Haible  <bruno@clisp.org>
62542
62543         * lib/c-strstr.c: Include c-strstr.h.
62544
62545 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62546
62547         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62548         in a slash.
62549
62550 2006-10-18  Bruno Haible  <bruno@clisp.org>
62551
62552         * lib/lock.h [C++]: Wrap definitions in extern "C".
62553
62554 2006-10-18  Bruno Haible  <bruno@clisp.org>
62555
62556         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62557         gl_LIBOBJS list.
62558
62559 2006-10-18  Bruno Haible  <bruno@clisp.org>
62560
62561         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62562
62563 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62564
62565         * lib/xstrtol.h: Include gettext.h.
62566         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62567         Problem reported by Eric Blake.
62568         * modules/xstrtol (Depends-on): Add gettext-h.
62569
62570 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62571
62572         * lib/strftime.c (advance): New macro.
62573         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62574         incomplete type, so you can't add 0 to it.  Problem and patch
62575         reported by Eelco Dolstra for dietlibc.
62576
62577 2006-10-18  Jim Meyering  <jim@meyering.net>
62578
62579         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62580         type for a local, and rename it: s/up/user_proc/.
62581
62582 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62583
62584         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62585         READ_UTMP_USER_PROCESS.
62586         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62587
62588 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62589
62590         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62591         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62592
62593 2006-10-17  Eric Blake  <ebb9@byu.net>
62594
62595         * lib/sigprocmask.c (sigprocmask): Fix typo.
62596
62597         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62598
62599         * modules/clean-temp (Makefile.am): Don't add to make output...
62600         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62601         config.h.
62602
62603 2006-10-17  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62606         differently if DEFAULT_TEXT_DOMAIN is set.
62607
62608 2006-10-16  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/clean-temp.c: Include fwriteerror.h.
62611
62612 2006-10-16  Bruno Haible  <bruno@clisp.org>
62613
62614         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62615
62616 2006-10-16  Bruno Haible  <bruno@clisp.org>
62617
62618         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62619         * lib/sigprocmask.h: Include <sys/types.h>.
62620         (sigset_t): Use the system's definition if present.
62621
62622 2006-10-17  Eric Blake  <ebb9@byu.net>
62623
62624         * lib/xvasprintf.c (includes): Assume config.h.
62625         * lib/xasprintf.c (includes): Likewise.
62626
62627 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62628
62629         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62630         at least as wide as intmax_t.
62631
62632 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62633
62634         (Imported from Automake.)
62635         * build-aux/gnupload: Update to version 1.1 of directive file.
62636
62637 2006-10-16  Eric Blake  <ebb9@byu.net>
62638
62639         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62640         match Automake 1.10a.
62641
62642 2006-10-14  Bruno Haible  <bruno@clisp.org>
62643
62644         * modules/sigprocmask: New file.
62645         * lib/sigprocmask.h: New file.
62646         * lib/sigprocmask.c: New file.
62647         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62648         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62649         request sigprocmask.o.
62650         (gl_PREREQ_SIGPROCMASK): New macro.
62651         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62652         (Depends-on): Add sigprocmask.
62653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62654         gt_SIGNALBLOCKING. Test for 'raise' only once.
62655         * lib/fatal-signal.c: Include sigprocmask.h.
62656         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62657         unblock_fatal_signals): Define always.
62658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62659         sigprocmask.
62660
62661 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62662
62663         Sync from Automake.
62664         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62665         which incorrectly sets the mode of an existing destination
62666         directory.  In some cases the unpatched install-sh could do the
62667         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62668         system.  We hope this is rare in practice, but it's clearly worth
62669         fixing.  Problem reported by Alex Unleashed in
62670         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62671         Also, don't bother to check for -m bugs unless we're using -m;
62672         suggested by Stepan Kasal.
62673
62674 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62675
62676         Sync from Automake.
62677         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62678         `-c' flag, so they appear at the same position as in %FASTDEP%
62679         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62680         which ignores unknown options only after the first non-option.
62681         Bug report against M4 by Nelson H. F. Beebe.
62682
62683 2006-10-13  Jim Meyering  <jim@meyering.net>
62684
62685         Fix a bug in yesterday's change.
62686         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62687         p->fts_statp->st_dev would be used uninitialized.
62688         Ensures that we always call fts_stat on the very first entry.
62689         Miklos Szeredi reported that find -xdev stopped working.
62690
62691 2006-10-12  Bruno Haible  <bruno@clisp.org>
62692
62693         * gnulib-tool (func_get_automake_snippet): Append an automatically
62694         computed EXTRA_DIST augmentation.
62695         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62696         * modules/alloca-opt (Makefile.am): Likewise.
62697         * modules/allocsa (Makefile.am): Likewise.
62698         * modules/arcfour (Makefile.am): Likewise.
62699         * modules/arctwo (Makefile.am): Likewise.
62700         * modules/argmatch (Makefile.am): Likewise.
62701         * modules/argz (Makefile.am): Likewise.
62702         * modules/atexit (Makefile.am): Likewise.
62703         * modules/backupfile (Makefile.am): Likewise.
62704         * modules/byteswap (Makefile.am): Likewise.
62705         * modules/c-strtod (Makefile.am): Likewise.
62706         * modules/c-strtold (Makefile.am): Likewise.
62707         * modules/calloc (Makefile.am): Likewise.
62708         * modules/canon-host (Makefile.am): Likewise.
62709         * modules/canonicalize (Makefile.am): Likewise.
62710         * modules/chdir-long (Makefile.am): Likewise.
62711         * modules/chdir-safer (Makefile.am): Likewise.
62712         * modules/check-version (Makefile.am): Likewise.
62713         * modules/chown (Makefile.am): Likewise.
62714         * modules/cloexec (Makefile.am): Likewise.
62715         * modules/close-stream (Makefile.am): Likewise.
62716         * modules/closeout (Makefile.am): Likewise.
62717         * modules/crc (Makefile.am): Likewise.
62718         * modules/csharpexec (Makefile.am): Likewise.
62719         * modules/cycle-check (Makefile.am): Likewise.
62720         * modules/des (Makefile.am): Likewise.
62721         * modules/dev-ino (Makefile.am): Likewise.
62722         * modules/dirfd (Makefile.am): Likewise.
62723         * modules/dirname (Makefile.am): Likewise.
62724         * modules/dup2 (Makefile.am): Likewise.
62725         * modules/eealloc (Makefile.am): Likewise.
62726         * modules/error (Makefile.am): Likewise.
62727         * modules/euidaccess (Makefile.am): Likewise.
62728         * modules/exclude (Makefile.am): Likewise.
62729         * modules/exitfail (Makefile.am): Likewise.
62730         * modules/fcntl-safer (Makefile.am): Likewise.
62731         * modules/fcntl (Makefile.am): Likewise.
62732         * modules/file-type (Makefile.am): Likewise.
62733         * modules/fileblocks (Makefile.am): Likewise.
62734         * modules/filemode (Makefile.am): Likewise.
62735         * modules/filenamecat (Makefile.am): Likewise.
62736         * modules/fnmatch (Makefile.am): Likewise.
62737         * modules/fopen-safer (Makefile.am): Likewise.
62738         * modules/fpending (Makefile.am): Likewise.
62739         * modules/fprintftime (Makefile.am): Likewise.
62740         * modules/free (Makefile.am): Likewise.
62741         * modules/fsusage (Makefile.am): Likewise.
62742         * modules/ftruncate (Makefile.am): Likewise.
62743         * modules/fts (Makefile.am): Likewise.
62744         * modules/gc-arcfour (Makefile.am): Likewise.
62745         * modules/gc-des (Makefile.am): Likewise.
62746         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62747         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62748         * modules/gc-md4 (Makefile.am): Likewise.
62749         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62750         * modules/gc-sha1 (Makefile.am): Likewise.
62751         * modules/gc (Makefile.am): Likewise.
62752         * modules/getaddrinfo (Makefile.am): Likewise.
62753         * modules/getcwd (Makefile.am): Likewise.
62754         * modules/getdelim (Makefile.am): Likewise.
62755         * modules/getdomainname (Makefile.am): Likewise.
62756         * modules/getgroups (Makefile.am): Likewise.
62757         * modules/gethostname (Makefile.am): Likewise.
62758         * modules/gethrxtime (Makefile.am): Likewise.
62759         * modules/getline (Makefile.am): Likewise.
62760         * modules/getloadavg (Makefile.am): Likewise.
62761         * modules/getlogin_r (Makefile.am): Likewise.
62762         * modules/getndelim2 (Makefile.am): Likewise.
62763         * modules/getopt (Makefile.am): Likewise.
62764         * modules/getpagesize (Makefile.am): Likewise.
62765         * modules/getpass-gnu (Makefile.am): Likewise.
62766         * modules/getpass (Makefile.am): Likewise.
62767         * modules/getsubopt (Makefile.am): Likewise.
62768         * modules/gettime (Makefile.am): Likewise.
62769         * modules/gettimeofday (Makefile.am): Likewise.
62770         * modules/getugroups (Makefile.am): Likewise.
62771         * modules/getusershell (Makefile.am): Likewise.
62772         * modules/glob (Makefile.am): Likewise.
62773         * modules/group-member (Makefile.am): Likewise.
62774         * modules/hard-locale (Makefile.am): Likewise.
62775         * modules/hash (Makefile.am): Likewise.
62776         * modules/hmac-md5 (Makefile.am): Likewise.
62777         * modules/hmac-sha1 (Makefile.am): Likewise.
62778         * modules/human (Makefile.am): Likewise.
62779         * modules/idcache (Makefile.am): Likewise.
62780         * modules/imaxabs (Makefile.am): Likewise.
62781         * modules/imaxdiv (Makefile.am): Likewise.
62782         * modules/inet_ntop (Makefile.am): Likewise.
62783         * modules/inet_pton (Makefile.am): Likewise.
62784         * modules/intprops (Makefile.am): Likewise.
62785         * modules/inttostr (Makefile.am): Likewise.
62786         * modules/inttypes (Makefile.am): Likewise.
62787         * modules/isapipe (Makefile.am): Likewise.
62788         * modules/javaversion (Makefile.am): Likewise.
62789         * modules/lchmod (Makefile.am): Likewise.
62790         * modules/lchown (Makefile.am): Likewise.
62791         * modules/localcharset (Makefile.am): Likewise.
62792         * modules/long-options (Makefile.am): Likewise.
62793         * modules/lstat (Makefile.am): Likewise.
62794         * modules/malloc (Makefile.am): Likewise.
62795         * modules/mathl (Makefile.am): Likewise.
62796         * modules/mbchar (Makefile.am): Likewise.
62797         * modules/md2 (Makefile.am): Likewise.
62798         * modules/md4 (Makefile.am): Likewise.
62799         * modules/md5 (Makefile.am): Likewise.
62800         * modules/memcasecmp (Makefile.am): Likewise.
62801         * modules/memchr (Makefile.am): Likewise.
62802         * modules/memcmp (Makefile.am): Likewise.
62803         * modules/memcoll (Makefile.am): Likewise.
62804         * modules/memcpy (Makefile.am): Likewise.
62805         * modules/memmem (Makefile.am): Likewise.
62806         * modules/memmove (Makefile.am): Likewise.
62807         * modules/mempcpy (Makefile.am): Likewise.
62808         * modules/memrchr (Makefile.am): Likewise.
62809         * modules/memset (Makefile.am): Likewise.
62810         * modules/memxor (Makefile.am): Likewise.
62811         * modules/mkancesdirs (Makefile.am): Likewise.
62812         * modules/mkdir-p (Makefile.am): Likewise.
62813         * modules/mkdir (Makefile.am): Likewise.
62814         * modules/mkdtemp (Makefile.am): Likewise.
62815         * modules/mkstemp (Makefile.am): Likewise.
62816         * modules/mktime (Makefile.am): Likewise.
62817         * modules/modechange (Makefile.am): Likewise.
62818         * modules/mountlist (Makefile.am): Likewise.
62819         * modules/nanosleep (Makefile.am): Likewise.
62820         * modules/obstack (Makefile.am): Likewise.
62821         * modules/openat (Makefile.am): Likewise.
62822         * modules/pagealign_alloc (Makefile.am): Likewise.
62823         * modules/pathmax (Makefile.am): Likewise.
62824         * modules/physmem (Makefile.am): Likewise.
62825         * modules/poll (Makefile.am): Likewise.
62826         * modules/posixtm (Makefile.am): Likewise.
62827         * modules/posixver (Makefile.am): Likewise.
62828         * modules/putenv (Makefile.am): Likewise.
62829         * modules/quote (Makefile.am): Likewise.
62830         * modules/quotearg (Makefile.am): Likewise.
62831         * modules/raise (Makefile.am): Likewise.
62832         * modules/read-file (Makefile.am): Likewise.
62833         * modules/readline (Makefile.am): Likewise.
62834         * modules/readlink (Makefile.am): Likewise.
62835         * modules/readtokens (Makefile.am): Likewise.
62836         * modules/readutmp (Makefile.am): Likewise.
62837         * modules/realloc (Makefile.am): Likewise.
62838         * modules/regex (Makefile.am): Likewise.
62839         * modules/rename-dest-slash (Makefile.am): Likewise.
62840         * modules/rename (Makefile.am): Likewise.
62841         * modules/rijndael (Makefile.am): Likewise.
62842         * modules/rmdir (Makefile.am): Likewise.
62843         * modules/rpmatch (Makefile.am): Likewise.
62844         * modules/safe-read (Makefile.am): Likewise.
62845         * modules/safe-write (Makefile.am): Likewise.
62846         * modules/same-inode (Makefile.am): Likewise.
62847         * modules/same (Makefile.am): Likewise.
62848         * modules/save-cwd (Makefile.am): Likewise.
62849         * modules/savedir (Makefile.am): Likewise.
62850         * modules/setenv (Makefile.am): Likewise.
62851         * modules/settime (Makefile.am): Likewise.
62852         * modules/sha1 (Makefile.am): Likewise.
62853         * modules/sig2str (Makefile.am): Likewise.
62854         * modules/snprintf (Makefile.am): Likewise.
62855         * modules/stat-macros (Makefile.am): Likewise.
62856         * modules/stat-time (Makefile.am): Likewise.
62857         * modules/stdbool (Makefile.am): Likewise.
62858         * modules/stdint (Makefile.am): Likewise.
62859         * modules/stdlib-safer (Makefile.am): Likewise.
62860         * modules/stpcpy (Makefile.am): Likewise.
62861         * modules/stpncpy (Makefile.am): Likewise.
62862         * modules/strcase (Makefile.am): Likewise.
62863         * modules/strcasestr (Makefile.am): Likewise.
62864         * modules/strchrnul (Makefile.am): Likewise.
62865         * modules/strcspn (Makefile.am): Likewise.
62866         * modules/strdup (Makefile.am): Likewise.
62867         * modules/strerror (Makefile.am): Likewise.
62868         * modules/strftime (Makefile.am): Likewise.
62869         * modules/strndup (Makefile.am): Likewise.
62870         * modules/strnlen (Makefile.am): Likewise.
62871         * modules/strpbrk (Makefile.am): Likewise.
62872         * modules/strsep (Makefile.am): Likewise.
62873         * modules/strstr (Makefile.am): Likewise.
62874         * modules/strtod (Makefile.am): Likewise.
62875         * modules/strtoimax (Makefile.am): Likewise.
62876         * modules/strtok_r (Makefile.am): Likewise.
62877         * modules/strtol (Makefile.am): Likewise.
62878         * modules/strtoll (Makefile.am): Likewise.
62879         * modules/strtoul (Makefile.am): Likewise.
62880         * modules/strtoull (Makefile.am): Likewise.
62881         * modules/strtoumax (Makefile.am): Likewise.
62882         * modules/strverscmp (Makefile.am): Likewise.
62883         * modules/sys_socket (Makefile.am): Likewise.
62884         * modules/sys_stat (Makefile.am): Likewise.
62885         * modules/sysexits (Makefile.am): Likewise.
62886         * modules/time_r (Makefile.am): Likewise.
62887         * modules/timegm (Makefile.am): Likewise.
62888         * modules/timespec (Makefile.am): Likewise.
62889         * modules/tmpfile-safer (Makefile.am): Likewise.
62890         * modules/trim (Makefile.am): Likewise.
62891         * modules/unistd-safer (Makefile.am): Likewise.
62892         * modules/unlinkdir (Makefile.am): Likewise.
62893         * modules/unlocked-io (Makefile.am): Likewise.
62894         * modules/userspec (Makefile.am): Likewise.
62895         * modules/utime (Makefile.am): Likewise.
62896         * modules/utimecmp (Makefile.am): Likewise.
62897         * modules/utimens (Makefile.am): Likewise.
62898         * modules/vasnprintf (Makefile.am): Likewise.
62899         * modules/vasprintf (Makefile.am): Likewise.
62900         * modules/vsnprintf (Makefile.am): Likewise.
62901         * modules/xalloc (Makefile.am): Likewise.
62902         * modules/xgetcwd (Makefile.am): Likewise.
62903         * modules/xnanosleep (Makefile.am): Likewise.
62904         * modules/xreadlink (Makefile.am): Likewise.
62905         * modules/xstrtod (Makefile.am): Likewise.
62906         * modules/xstrtol (Makefile.am): Likewise.
62907         * modules/xstrtold (Makefile.am): Likewise.
62908         * modules/yesno (Makefile.am): Likewise.
62909         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62910
62911 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62912
62913         * modules/error (Makefile.am): Distribute files through
62914         EXTRA_DIST, not lib_SOURCES.
62915
62916 2006-10-12  Eric Blake  <ebb9@byu.net>
62917
62918         * modules/error (Makefile.am): Distribute files in /lib.
62919         * modules/obstack (Makefile.am): Likewise.
62920
62921 2006-10-12  Bruno Haible  <bruno@clisp.org>
62922
62923         * modules/acl (Makefile.am): Distribute all files in lib/ through
62924         EXTRA_DIST.
62925         * modules/arcfour (Makefile.am): Likewise.
62926         * modules/arctwo (Makefile.am): Likewise.
62927         * modules/argmatch (Makefile.am): Likewise.
62928         * modules/argz (Makefile.am): Likewise.
62929         * modules/atexit (Makefile.am): Likewise.
62930         * modules/backupfile (Makefile.am): Likewise.
62931         * modules/c-strtod (Makefile.am): Likewise.
62932         * modules/c-strtold (Makefile.am): Likewise.
62933         * modules/calloc (Makefile.am): Likewise.
62934         * modules/canon-host (Makefile.am): Likewise.
62935         * modules/canonicalize (Makefile.am): Likewise.
62936         * modules/chdir-long (Makefile.am): Likewise.
62937         * modules/chdir-safer (Makefile.am): Likewise.
62938         * modules/check-version (Makefile.am): Likewise.
62939         * modules/chown (Makefile.am): Likewise.
62940         * modules/cloexec (Makefile.am): Likewise.
62941         * modules/close-stream (Makefile.am): Likewise.
62942         * modules/closeout (Makefile.am): Likewise.
62943         * modules/crc (Makefile.am): Likewise.
62944         * modules/cycle-check (Makefile.am): Likewise.
62945         * modules/des (Makefile.am): Likewise.
62946         * modules/dirfd (Makefile.am): Likewise.
62947         * modules/dirname (Makefile.am): Likewise.
62948         * modules/dup2 (Makefile.am): Likewise.
62949         * modules/euidaccess (Makefile.am): Likewise.
62950         * modules/exclude (Makefile.am): Likewise.
62951         * modules/exitfail (Makefile.am): Likewise.
62952         * modules/fcntl-safer (Makefile.am): Likewise.
62953         * modules/file-type (Makefile.am): Likewise.
62954         * modules/fileblocks (Makefile.am): Likewise.
62955         * modules/filemode (Makefile.am): Likewise.
62956         * modules/filenamecat (Makefile.am): Likewise.
62957         * modules/fnmatch (Makefile.am): Likewise.
62958         * modules/fopen-safer (Makefile.am): Likewise.
62959         * modules/fpending (Makefile.am): Likewise.
62960         * modules/fprintftime (Makefile.am): Likewise.
62961         * modules/free (Makefile.am): Likewise.
62962         * modules/fsusage (Makefile.am): Likewise.
62963         * modules/ftruncate (Makefile.am): Likewise.
62964         * modules/fts (Makefile.am): Likewise.
62965         * modules/gc (Makefile.am): Likewise.
62966         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62967         * modules/getaddrinfo (Makefile.am): Likewise.
62968         * modules/getcwd (Makefile.am): Likewise.
62969         * modules/getdelim (Makefile.am): Likewise.
62970         * modules/getdomainname (Makefile.am): Likewise.
62971         * modules/getgroups (Makefile.am): Likewise.
62972         * modules/gethostname (Makefile.am): Likewise.
62973         * modules/gethrxtime (Makefile.am): Likewise.
62974         * modules/getline (Makefile.am): Likewise.
62975         * modules/getloadavg (Makefile.am): Likewise.
62976         * modules/getlogin_r (Makefile.am): Likewise.
62977         * modules/getopt (Makefile.am): Likewise.
62978         * modules/getpass (Makefile.am): Likewise.
62979         * modules/getpass-gnu (Makefile.am): Likewise.
62980         * modules/getsubopt (Makefile.am): Likewise.
62981         * modules/gettime (Makefile.am): Likewise.
62982         * modules/gettimeofday (Makefile.am): Likewise.
62983         * modules/getugroups (Makefile.am): Likewise.
62984         * modules/getusershell (Makefile.am): Likewise.
62985         * modules/glob (Makefile.am): Likewise.
62986         * modules/group-member (Makefile.am): Likewise.
62987         * modules/hard-locale (Makefile.am): Likewise.
62988         * modules/hash (Makefile.am): Likewise.
62989         * modules/hmac-md5 (Makefile.am): Likewise.
62990         * modules/hmac-sha1 (Makefile.am): Likewise.
62991         * modules/human (Makefile.am): Likewise.
62992         * modules/idcache (Makefile.am): Likewise.
62993         * modules/imaxabs (Makefile.am): Likewise.
62994         * modules/imaxdiv (Makefile.am): Likewise.
62995         * modules/inet_ntop (Makefile.am): Likewise.
62996         * modules/inet_pton (Makefile.am): Likewise.
62997         * modules/inttostr (Makefile.am): Likewise.
62998         * modules/isapipe (Makefile.am): Likewise.
62999         * modules/lchown (Makefile.am): Likewise.
63000         * modules/long-options (Makefile.am): Likewise.
63001         * modules/lstat (Makefile.am): Likewise.
63002         * modules/malloc (Makefile.am): Likewise.
63003         * modules/mathl (Makefile.am): Likewise.
63004         * modules/mbchar (Makefile.am): Likewise.
63005         * modules/md2 (Makefile.am): Likewise.
63006         * modules/md4 (Makefile.am): Likewise.
63007         * modules/md5 (Makefile.am): Likewise.
63008         * modules/memcasecmp (Makefile.am): Likewise.
63009         * modules/memchr (Makefile.am): Likewise.
63010         * modules/memcmp (Makefile.am): Likewise.
63011         * modules/memcoll (Makefile.am): Likewise.
63012         * modules/memcpy (Makefile.am): Likewise.
63013         * modules/memmem (Makefile.am): Likewise.
63014         * modules/memmove (Makefile.am): Likewise.
63015         * modules/mempcpy (Makefile.am): Likewise.
63016         * modules/memrchr (Makefile.am): Likewise.
63017         * modules/memset (Makefile.am): Likewise.
63018         * modules/memxor (Makefile.am): Likewise.
63019         * modules/mkancesdirs (Makefile.am): Likewise.
63020         * modules/mkdir (Makefile.am): Likewise.
63021         * modules/mkdir-p (Makefile.am): Likewise.
63022         * modules/mkdtemp (Makefile.am): Likewise.
63023         * modules/mkstemp (Makefile.am): Likewise.
63024         * modules/mktime (Makefile.am): Likewise.
63025         * modules/modechange (Makefile.am): Likewise.
63026         * modules/mountlist (Makefile.am): Likewise.
63027         * modules/nanosleep (Makefile.am): Likewise.
63028         * modules/openat (Makefile.am): Likewise.
63029         * modules/pagealign_alloc (Makefile.am): Likewise.
63030         * modules/physmem (Makefile.am): Likewise.
63031         * modules/poll (Makefile.am): Likewise.
63032         * modules/posixtm (Makefile.am): Likewise.
63033         * modules/posixver (Makefile.am): Likewise.
63034         * modules/putenv (Makefile.am): Likewise.
63035         * modules/quote (Makefile.am): Likewise.
63036         * modules/quotearg (Makefile.am): Likewise.
63037         * modules/raise (Makefile.am): Likewise.
63038         * modules/read-file (Makefile.am): Likewise.
63039         * modules/readline (Makefile.am): Likewise.
63040         * modules/readlink (Makefile.am): Likewise.
63041         * modules/readtokens (Makefile.am): Likewise.
63042         * modules/readutmp (Makefile.am): Likewise.
63043         * modules/realloc (Makefile.am): Likewise.
63044         * modules/regex (Makefile.am): Likewise.
63045         * modules/rename (Makefile.am): Likewise.
63046         * modules/rename-dest-slash (Makefile.am): Likewise.
63047         * modules/rijndael (Makefile.am): Likewise.
63048         * modules/rmdir (Makefile.am): Likewise.
63049         * modules/rpmatch (Makefile.am): Likewise.
63050         * modules/safe-read (Makefile.am): Likewise.
63051         * modules/safe-write (Makefile.am): Likewise.
63052         * modules/same (Makefile.am): Likewise.
63053         * modules/save-cwd (Makefile.am): Likewise.
63054         * modules/savedir (Makefile.am): Likewise.
63055         * modules/setenv (Makefile.am): Likewise.
63056         * modules/settime (Makefile.am): Likewise.
63057         * modules/sha1 (Makefile.am): Likewise.
63058         * modules/sig2str (Makefile.am): Likewise.
63059         * modules/snprintf (Makefile.am): Likewise.
63060         * modules/stdlib-safer (Makefile.am): Likewise.
63061         * modules/stpcpy (Makefile.am): Likewise.
63062         * modules/stpncpy (Makefile.am): Likewise.
63063         * modules/strcase (Makefile.am): Likewise.
63064         * modules/strcasestr (Makefile.am): Likewise.
63065         * modules/strchrnul (Makefile.am): Likewise.
63066         * modules/strcspn (Makefile.am): Likewise.
63067         * modules/strdup (Makefile.am): Likewise.
63068         * modules/strerror (Makefile.am): Likewise.
63069         * modules/strftime (Makefile.am): Likewise.
63070         * modules/strndup (Makefile.am): Likewise.
63071         * modules/strnlen (Makefile.am): Likewise.
63072         * modules/strpbrk (Makefile.am): Likewise.
63073         * modules/strsep (Makefile.am): Likewise.
63074         * modules/strstr (Makefile.am): Likewise.
63075         * modules/strtod (Makefile.am): Likewise.
63076         * modules/strtoimax (Makefile.am): Likewise.
63077         * modules/strtok_r (Makefile.am): Likewise.
63078         * modules/strtol (Makefile.am): Likewise.
63079         * modules/strtoll (Makefile.am): Likewise.
63080         * modules/strtoul (Makefile.am): Likewise.
63081         * modules/strtoull (Makefile.am): Likewise.
63082         * modules/strtoumax (Makefile.am): Likewise.
63083         * modules/strverscmp (Makefile.am): Likewise.
63084         * modules/time_r (Makefile.am): Likewise.
63085         * modules/timegm (Makefile.am): Likewise.
63086         * modules/tmpfile-safer (Makefile.am): Likewise.
63087         * modules/unistd-safer (Makefile.am): Likewise.
63088         * modules/unlinkdir (Makefile.am): Likewise.
63089         * modules/userspec (Makefile.am): Likewise.
63090         * modules/utime (Makefile.am): Likewise.
63091         * modules/utimecmp (Makefile.am): Likewise.
63092         * modules/utimens (Makefile.am): Likewise.
63093         * modules/vasnprintf (Makefile.am): Likewise.
63094         * modules/vasprintf (Makefile.am): Likewise.
63095         * modules/vsnprintf (Makefile.am): Likewise.
63096         * modules/xalloc (Makefile.am): Likewise.
63097         * modules/xgetcwd (Makefile.am): Likewise.
63098         * modules/xnanosleep (Makefile.am): Likewise.
63099         * modules/xreadlink (Makefile.am): Likewise.
63100         * modules/xstrtod (Makefile.am): Likewise.
63101         * modules/xstrtol (Makefile.am): Likewise.
63102         * modules/xstrtold (Makefile.am): Likewise.
63103         * modules/yesno (Makefile.am): Likewise.
63104
63105 2006-10-12  Jim Meyering  <jim@meyering.net>
63106
63107         * m4/getloadavg.m4: Revert the change below.
63108
63109         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63110         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63111         fail with a symlink, which is what coreutils' ./bootstrap now
63112         creates by default.
63113
63114 2006-10-12  Bruno Haible  <bruno@clisp.org>
63115
63116         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63117         mingw.
63118         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63119         MSVC and mingw explicitly.
63120
63121 2006-10-11  Simon Josefsson  <jas@extundo.com>
63122             Bruno Haible  <bruno@clisp.org>
63123
63124         Add support for multiple gnulib-tool invocations in the scope of a
63125         single configure.ac file.
63126         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63127         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63128         with the same contents as the _LIBADD variable.
63129         (func_emit_initmacro_start, func_emit_initmacro_end,
63130         func_emit_initmacro_done): New functions.
63131         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63132         gl_LIBOBJS and gl_LTLIBOBJS.
63133
63134 2006-10-11  Bruno Haible  <bruno@clisp.org>
63135
63136         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63137         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63138         autoreconf. Instead, invoke autopoint explicitly but move back the
63139         *.m4 files from gnulib.
63140
63141 2006-10-11  Bruno Haible  <bruno@clisp.org>
63142
63143         * gnulib-tool (func_usage): Make module names after --create-testdir
63144         optional.
63145         (func_create_testdir): If no module was specified, use nearly all
63146         modules.
63147
63148 2006-10-12  Jim Meyering  <jim@meyering.net>
63149
63150         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63151         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63152         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63153         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63154         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63155         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63156         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63157         (fts_set_stat_required): New function.
63158         (fts_open): Defer the calls to fts_stat, if possible or requested.
63159         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63160         into fts_stat itself.
63161         (fts_read): Perform any required (deferred) fts_stat call.
63162         (fts_build): Likewise, for the directory we're about to open and read.
63163         In the readdir loop, carefully decide whether each entry will require
63164         an eventual call to fts_stat, using dirent.d_type info if available.
63165         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63166         a command line argument into this function.  Update all callers.
63167         Map a return value of FTS_DOT to FTS_D for a command line argument.
63168         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63169         Thanks to Miklos Szeredi for his tenacity and for the initial
63170         bug report about "find" failing on a FUSE-based file system.
63171
63172         * lib/fts.c (fts_open): Use consistent indentation.
63173
63174 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63175
63176         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63177         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63178         reported by Jim Meyering.  All uses of cache variables renamed
63179         to match Autoconf's.
63180         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63181         the other one.
63182
63183         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63184         Fix misspelling in diagnostic.
63185
63186 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63187
63188         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63189         defined.  Problem reported by Matthew Woehlke.
63190
63191         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63192         Add support for Tandem NonStop R series.
63193         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63194         Use new macro.
63195
63196         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63197         (has_trailing_slash): Omit size arg; all callers changed.
63198         Omit 'inline', since it doesn't help performance and we'd
63199         need to configure it.
63200         Don't count //, ///, etc. as having a trailing slash.
63201         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63202         (rpl_rename_dest_slash): On failure, use rename's errno rather
63203         than (in some cases) an incorrect or junk errno.
63204         Simplify code by removing need to compute length; this does
63205         cause it to make two passes instead of one over the file name,
63206         but it's worth it.
63207
63208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63209         change, since Autoconf's version may no longer be appropriate now
63210         that we are using CVS Autoconf's version.  Add support for Tandem.
63211
63212 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63213             Bruno Haible  <bruno@clisp.org>
63214
63215         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63216         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63217         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63218         gl_AC_TYPE_LONG_LONG.
63219
63220         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63221         instead of HAVE_LONG_LONG.
63222         * lib/printf-args.c (printf_fetchargs): Likewise.
63223         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63224         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63225         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63226         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63227         gl_AC_TYPE_LONG_LONG.
63228
63229 2006-10-11  Bruno Haible  <bruno@clisp.org>
63230
63231         * m4/longlong.m4: Add comments.
63232         * m4/ulonglong.m4: Likewise.
63233
63234 2006-10-10  Bruno Haible  <bruno@clisp.org>
63235
63236         Make it possible to #define stpcpy, strdup to aliases.
63237         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63238         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63239
63240 2006-10-10  Bruno Haible  <bruno@clisp.org>
63241
63242         Make it possible to #define gcd to an alias.
63243         * lib/gcd.c: Include config.h.
63244
63245 2006-10-10  Bruno Haible  <bruno@clisp.org>
63246
63247         Make it possible to #define c_isascii to an alias.
63248         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63249         defined. Undefine the macros before defining them, to avoid gcc
63250         warnings.
63251         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63252         define NO_C_CTYPE_MACROS early.
63253
63254 2006-10-10  Bruno Haible  <bruno@clisp.org>
63255
63256         Make it possible to #define set_program_name to an alias.
63257         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63258         ENABLE_RELOCATABLE early.
63259
63260 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63261
63262         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63263         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63264         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63265         More generally, don't assume that 64-bit signed int is available
63266         if unsigned int is, and vice versa.
63267         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63268         unsigned symbols, not on their signed counterparts.
63269         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63270         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63271         (UINT64_C, UINTMAX_C):
63272         Likewise.
63273         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63274         unsigned counterparts.
63275         (Have_long_long, Unsigned): New macros.
63276         (Int): Renamed from INT.
63277         (strtoimax): Use the new macros.
63278         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63279         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63280         * modules/inttypes (inttypes.h): Substitute
63281         HAVE_UNSIGNED_LONG_LONG_INT.
63282         * modules/stdint (stdint.h): Likewise.
63283         (Files): Add m4/ulonglong.m4.
63284
63285 2006-10-10  Bruno Haible  <bruno@clisp.org>
63286
63287         Fix a gcc -Wshadow warning.
63288         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63289         to 'bucket'.
63290         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63291         gl_linked_indexof_from_to): Likewise.
63292         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63293         Likewise.
63294         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63295         Likewise.
63296         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63297         Reported by Eric Blake.
63298
63299 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63300
63301         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63302         for NetBSD.  Problem reported by Bruno Haible.
63303
63304 2006-10-09  Jim Meyering  <jim@meyering.net>
63305
63306         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63307         Patch from Bruno Haible.
63308
63309 2006-10-09  Jim Meyering  <jim@meyering.net>
63310
63311         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63312         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63313         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63314
63315 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63316
63317         Don't include <config.h> twice; this doesn't work in some cases,
63318         e.g., when config.h has "#define intmax_t long long int" and
63319         we include <config.h>, <inttypes.h>, <config.h> in that order.
63320         Problem reported by Matthew Woehlke in:
63321         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63322         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63323         * lib/fts-cycle.c: Don't include config.h.
63324         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63325         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63326         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63327         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63328         inttypes.h.
63329         * lib/xstrtoumax.c: Likewise.
63330         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63331         __strtol and the like, so that this module is more like its siblings.
63332         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63333         Remove; no longer needed now that we assume gnulib inttypes.h.
63334
63335 2006-10-08  Bruno Haible  <bruno@clisp.org>
63336
63337         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63338         option.
63339
63340 2006-10-07  Jim Meyering  <jim@meyering.net>
63341
63342         * modules/inttypes (inttypes.h): Revert what seems to have been
63343         an inadvertent part of today's change: use "|", not "/" in the
63344         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63345
63346 2006-10-07  Bruno Haible  <bruno@clisp.org>
63347
63348         * modules/sublist: New file.
63349
63350 2006-10-07  Bruno Haible  <bruno@clisp.org>
63351
63352         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63353         * modules/argz (argz.h): Likewise.
63354         * modules/arpa_inet (arpa/inet.h): Likewise.
63355         * modules/byteswap (byteswap.h): Likewise.
63356         * modules/configmake (configmake.h): Likewise.
63357         * modules/fcntl (fcntl.h): Likewise.
63358         * modules/fnmatch (fnmatch.h): Likewise.
63359         * modules/getopt (getopt.h): Likewise.
63360         * modules/glob (glob.h): Likewise.
63361         * modules/inttypes (inttypes.h): Likewise.
63362         * modules/netinet_in (netinet/in.h): Likewise.
63363         * modules/poll (poll.h): Likewise.
63364         * modules/stdbool (stdbool.h): Likewise.
63365         * modules/stdint (stdint.h): Likewise.
63366         * modules/sys_select (sys/select.h): Likewise.
63367         * modules/sys_socket (sys/socket.h): Likewise.
63368         * modules/sys_stat (sys/stat.h): Likewise.
63369         * modules/sysexits (sysexits.h): Likewise.
63370         * modules/unistd (unistd.h): Likewise.
63371         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63372         Add a "DO NOT EDIT" comment to the generated file.
63373         (func_import): Likewise for gnulib-comp.m4.
63374
63375 2006-10-07  Bruno Haible  <bruno@clisp.org>
63376
63377         * lib/gl_sublist.h: New file.
63378         * lib/gl_sublist.c: New file.
63379
63380 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63381
63382         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63383         name (relative to the original working directory) and the file
63384         name component (relative to the temporary working directory).  All
63385         callers changed.
63386         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63387         * lib/mkdir-p.c (make_dir_parents): Likewise.
63388         * lib/mkdir-p.h (make_dir_parents): Likewise.
63389
63390 2006-10-06  Eric Blake  <ebb9@byu.net>
63391
63392         Define several macros for use by the clean-temp module.
63393         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63395         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63396
63397         * lib/clean-temp.h (close_stream_temp): New declaration.
63398         * lib/clean-temp.c (includes): Pull in headers according to what
63399         other modules are in use.
63400         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63401
63402 2006-10-06  Bruno Haible  <bruno@clisp.org>
63403
63404         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63405         instead of fopen, fwriteerror.
63406
63407 2006-10-06  Bruno Haible  <bruno@clisp.org>
63408
63409         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63410         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63411         int.
63412         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63413         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63414         Return an error indicator.
63415         Suggested by Eric Blake.
63416
63417 2006-10-06  Bruno Haible  <bruno@clisp.org>
63418
63419         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63420         Reported by Eric Blake.
63421
63422 2006-10-06  Bruno Haible  <bruno@clisp.org>
63423
63424         * modules/closeout (Description): Mention stderr too.
63425
63426 2006-10-06  Bruno Haible  <bruno@clisp.org>
63427         and Paul Eggert  <eggert@cs.ucla.edu>
63428
63429         * lib/closeout.c (close_stdout): Also close stderr.
63430         * lib/closeout.h: Update comment.
63431
63432 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63433
63434         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63435         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63436         * lib/dirchownmod.c: Include lchown.h.
63437         * lib/lchown.c: Don't include files that lchown.h now includes.
63438         Don't declare chown, since lchown.h now does that.
63439         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63440         (lchown): Define to rpl_chown if lchown is declared but
63441         does not exist.  Declare using a prototype if lchown is not
63442         declared.  Add a copyright notice.
63443         * lib/mkstemp.h: Include <unistd.h>.
63444         * lib/openat.c: Include lchown.h.
63445
63446         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63447         we now test for that separately.
63448         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63449         rather than O_NOFOLLOW, when testing whether it's possible to
63450         avoid a race condition reliably.
63451         * lib/savewd.c (savewd_chdir): Likewise.
63452
63453         Remove macros that are no longer needed now that stdint.h is
63454         reliable.
63455         * lib/fsusage.c (UINTMAX_MAX): Remove.
63456         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63457         * lib/utimecmp.c (SIZE_MAX): Remove.
63458
63459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63460
63461         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63462         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63463         O_NOATIME works.
63464
63465 2006-10-05  Bruno Haible  <bruno@clisp.org>
63466
63467         * lib/gl_list.h (gl_sortedlist_search_from_to,
63468         gl_sortedlist_indexof_from_to): New declarations.
63469         (gl_list_implementation): New fields sortedlist_search_from_to,
63470         sortedlist_indexof_from_to.
63471         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63472         inline functions.
63473         * lib/gl_list.c (gl_sortedlist_search_from_to,
63474         gl_sortedlist_indexof_from_to): New functions.
63475         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63476         function.
63477         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63478         (gl_array_sortedlist_search_from_to): New function.
63479         (gl_array_list_implementation): Update.
63480         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63481         function.
63482         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63483         (gl_carray_sortedlist_search_from_to): New function.
63484         (gl_carray_list_implementation): Update.
63485         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63486         gl_linked_sortedlist_indexof_from_to): New functions.
63487         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63488         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63489         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63490         gl_tree_sortedlist_indexof_from_to): New functions.
63491         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63492         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63493         Update.
63494         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63495         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63496         Update.
63497
63498 2006-10-05  Bruno Haible  <bruno@clisp.org>
63499
63500         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63501         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63502         (struct gl_list_implementation): Add fields search_from_to,
63503         indexof_from_to. Remove fields search, indexof.
63504         (gl_list_search): Use the search_from_to method.
63505         (gl_list_search_from, gl_list_search_from_to): New functions.
63506         (gl_list_indexof): Use the indexof_from_to method.
63507         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63508         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63509         (gl_list_search_from, gl_list_search_from_to): New functions.
63510         (gl_list_indexof): Use the indexof_from_to method.
63511         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63512         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63513         gl_array_indexof. Add start_index, end_index arguments.
63514         (gl_array_search_from_to): Renamed from gl_array_search. Add
63515         start_index, end_index arguments.
63516         (gl_array_remove, gl_array_list_implementation): Update.
63517         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63518         gl_carray_indexof. Add start_index, end_index arguments.
63519         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63520         start_index, end_index arguments.
63521         (gl_carray_remove, gl_carray_list_implementation): Update.
63522         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63523         gl_linked_search. Add start_index, end_index arguments.
63524         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63525         start_index, end_index arguments.
63526         (gl_linked_remove): Update.
63527         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63528         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63529         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63530         field to 'size_t'.
63531         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63532         gl_tree_search. Add start_index, end_index arguments.
63533         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63534         start_index, end_index arguments.
63535         (gl_tree_remove): Update.
63536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63537         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63538         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63539         function.
63540         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63541         gl_tree_search. Add start_index, end_index arguments.
63542         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63543         start_index, end_index arguments.
63544         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63545         Update.
63546         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63547
63548 2006-10-05  Bruno Haible  <bruno@clisp.org>
63549
63550         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63551
63552         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63553         fwriteerror_temp): New declarations.
63554         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63555         (descriptors): New variable.
63556         (cleanup): First, close the descriptors.
63557         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63558         fclose_temp, fwriteerror_temp): New functions.
63559
63560 2006-10-04  Jim Meyering  <jim@meyering.net>
63561
63562         * lib/fts.c (fts_open): Tiny comment change.
63563
63564 2006-10-04  Bruno Haible  <bruno@clisp.org>
63565
63566         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63567         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63568         gl_LOCK_BODY.
63569         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63570         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63571         gl_LOCK_EARLY_BODY.
63572         (gl_LOCK): Require gl_LOCK_BODY.
63573
63574 2006-10-04  Bruno Haible  <bruno@clisp.org>
63575
63576         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63577         (gl_oset_search_atleast): New declaration.
63578         (struct gl_oset_implementation): Add field 'search_atleast'.
63579         (gl_oset_search_atleast): New inline function.
63580         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63581         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63582         (gl_array_oset_implementation): Update.
63583         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63584         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63585         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63586
63587 2006-10-04  Bruno Haible  <bruno@clisp.org>
63588
63589         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63590
63591 2006-10-03  Bruno Haible  <bruno@clisp.org>
63592
63593         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63594         from gl_avltreehash_list_implementation.
63595
63596 2006-10-03  Bruno Haible  <bruno@clisp.org>
63597
63598         * lib/gl_oset.c (gl_oset_add): Fix return type.
63599
63600 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63601
63602         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63603
63604 2006-10-02  Eric Blake  <ebb9@byu.net>
63605
63606         * modules/strnlen (Depends-on): Add extensions.
63607
63608 2006-10-02  Eric Blake  <ebb9@byu.net>
63609
63610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63611         definition in 2.60+.
63612
63613 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63614
63615         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63616         checks.
63617
63618 2006-10-02  Bruno Haible  <bruno@clisp.org>
63619
63620         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63621         to the AUTOMAKE_OPTIONS.
63622         Reported by Jim Meyering.
63623
63624 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63625
63626         Work around bug in Solaris 10 /proc file system:
63627         /proc/self/fd/NNN/.. isn't the parent directory of
63628         the directory whose file descriptor is NNN.  This needs to
63629         be worked around at run time, not compile time, since a
63630         program might be built on Solaris 8, where things work, and
63631         run on Solaris 10.
63632         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63633         to use the following interface instead:
63634         (OPENAT_BUFFER_SIZE): New macro.
63635         (openat_proc_name): New function.
63636         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63637         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63638         Likewise.
63639         * lib/openat-proc.c: New file.
63640         * modules/openat (Files): Add lib/openat-proc.c.
63641         (Depends-on): Add same-inode, stdbool.
63642         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63643
63644 2006-09-29  Bruno Haible  <bruno@clisp.org>
63645
63646         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63647         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63648         argument. Set stdout_closed before testing for ferror, not after.
63649         (fwriteerror, fwriteerror_no_ebadf): New functions.
63650
63651 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63652
63653         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63654
63655 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63656
63657         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63658         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63659
63660 2006-09-28  Jim Meyering  <jim@meyering.net>
63661
63662         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63663         Include <unistd.h>.
63664
63665 2006-09-28  Bruno Haible  <bruno@clisp.org>
63666
63667         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63668         * modules/linkedhash-list (Depends-on): Likewise.
63669         * modules/rbtreehash-list (Depends-on): Likewise.
63670
63671 2006-09-28  Bruno Haible  <bruno@clisp.org>
63672
63673         * lib/strndup.h: Simplify the redefinition of strndup.
63674         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63675         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63676
63677 2006-09-28  Bruno Haible  <bruno@clisp.org>
63678
63679         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63680         * lib/gl_linkedhash_list.c: Likewise.
63681         * lib/gl_rbtreehash_list.c: Likewise.
63682
63683 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63684
63685         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63686         getaddrinfo.
63687
63688         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63689         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63690         it causes <stdio_ext.h> to cause a compile-time error.
63691         Problem reported by Nelson H. F. Beebe.
63692         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63693         of HAVE_DECL___PENDING.
63694
63695         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63696         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63697         declaration.
63698
63699 2006-09-27  Jim Meyering  <jim@meyering.net>
63700
63701         This file could end up with a definition for a function
63702         named __strndup, rather than rpl_strndup on a system with
63703         incomplete weak_alias support.
63704         * lib/strndup.c (strndup): Rename from __strndup.
63705         Remove #defines that used to map __strndup to strndup.
63706         Don't use K&R prototypes.
63707         Remove LIBC-related code, since this file is not sync'd with glibc.
63708         * lib/strndup.h: Revamp, accordingly.
63709         * m4/strndup.m4: Modernize.
63710
63711 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63712
63713         * modules/savewd (Depends-on): Add 'raise'.
63714         * lib/savewd.c: Include <signal.h>, for 'raise'.
63715
63716 2006-09-26  Jim Meyering  <jim@meyering.net>
63717
63718         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63719         when we detect Darwin 8.7.0's acl_get_file bug.
63720         Rearrange to perform the new (below) run-test while $LIBS
63721         contains any acl-related library.  Set USE_ACL at the end.
63722         (gl_ACL_GET_FILE): New function.
63723
63724 2006-09-26  Eric Blake  <ebb9@byu.net>
63725
63726         * lib/verror.c: Include <config.h> unconditionally.
63727
63728 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63729
63730         * modules/clock-time (Maintainer): Add self.
63731         * modules/getlogin_r (Depends-on): Add extensions.
63732
63733 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63734
63735         * modules/clock-time: New module.
63736         * modules/nanosleep (Depends-on): Add clock-time.
63737         * modules/gethrxtime (Depends-on): Likewise.
63738         * modules/gettime (Depends-on): Likewise.
63739         * modules/settime (Depends-on): Likewise.
63740
63741         * modules/fts-lgpl: Depend on openat.
63742         * modules/mkancesdirs: Depend on savewd.
63743         * modules/mkdir-p: Likewise.
63744
63745 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63746
63747         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63748
63749         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63750         `gl_have_arbitrary_file_name_length_limit' to
63751         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63752         actually works between configure runs.
63753
63754 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63755             Bruno Haible  <bruno@clisp.org>
63756
63757         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63758
63759 2006-09-25  Jim Meyering  <jim@meyering.net>
63760
63761         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63762         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63763
63764 2006-09-25  Eric Blake  <ebb9@byu.net>
63765
63766         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63767         exec's in 2006-09-18 patch when shuffling fds.
63768
63769 2006-09-25  Bruno Haible  <bruno@clisp.org>
63770
63771         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63772         Reported by Jim Meyering.
63773
63774 2006-09-24  Jim Meyering  <jim@meyering.net>
63775
63776         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63777         compare a pointer against a literal "0".  That caused failures with
63778         at least HP-UX's hpcc.
63779
63780 2006-09-22  Simon Josefsson  <jas@extundo.com>
63781
63782         * modules/gc-sha1:
63783         * modules/gc-md4:
63784         * modules/gc-hmac-sha1:
63785         * modules/gc-hmac-md5:
63786         * modules/gc-des:
63787         * modules/gc-arcfour: Distribute more files.
63788
63789 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63790
63791         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63792         (gl_linked_iterator_from_to): Initialize struct completely.
63793         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63794         (gl_tree_iterator_from_to): Likewise
63795         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63796         * lib/gl_array_list.c [lint] (gl_array_iterator)
63797         (gl_array_iterator_from_to): Likewise.
63798         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63799         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63800         (gl_carray_iterator_from_to): Likewise.
63801
63802         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63803         * lib/md4.c (md4_process_block): Remove unused variable.
63804         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63805         parentheses for clarity.
63806
63807 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63808
63809         * modules/bison-i18n (Depends-on): Add gettext.
63810
63811 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63812
63813         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63814         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63815         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63816         also add missing comma that caused broken test.
63817         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63818         stdlib.h, for `abort'.
63819         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63820         variables.
63821         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63822         include unistd.h if present, for `rmdir'.
63823         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63824         variables.
63825         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63826         in the process include standard headers for prototypes.
63827         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63828         gets declared on GNU/Linux.
63829         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63830         unistd.h, for `rmdir'.
63831         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63832
63833         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63834         always true.
63835         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63836
63837         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63838
63839 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63840
63841         * gnulib-tool (func_version): Create output all at once.  This
63842         may help avoid triggering unnecessary SIGPIPEs, and at any
63843         rate it doesn't hurt.
63844
63845 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63846             Bruno Haible  <bruno@clisp.org>
63847
63848         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63849         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63850         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63851
63852         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63853         (gl_FUNC_VASPRINTF): Invoke it.
63854
63855 2006-09-22  Bruno Haible  <bruno@clisp.org>
63856
63857         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63858         getloadavg.c as first argument.
63859
63860 2006-09-22  Bruno Haible  <bruno@clisp.org>
63861
63862         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63863         at the beginning of the gl_INIT macro.
63864         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63865         gl_GETLOADAVG.
63866
63867 2006-09-22  Bruno Haible  <bruno@clisp.org>
63868
63869         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63870         module.
63871         Suggested by Ralf Wildenhues.
63872
63873 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63874
63875         Import this patch from libc:
63876
63877         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63878
63879         * lib/regex_internal.c (re_string_reconstruct): Handle
63880         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63881         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63882         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63883         re_string_context_at.
63884
63885         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63886         now requires it.
63887         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63888         gl_REGEX now does it for us.
63889         (gl_REGEX): Add test taken from
63890         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63891
63892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63893         Check that large offsets work.  Modernize Autoconf usages.
63894         Prefer "yes" to mean a good thing rather than a bad.
63895         Don't put "#define mkstemp" in config.h, as this might interfere
63896         with standard system headers that "#define mkstemp mkstemp64".
63897
63898         * modules/mkstemp (Depends-on): Add extensions, so that
63899         mkstemp is visible on some platforms.
63900         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63901         (Include): Change to "mkstemp.h" from <stdlib.h>.
63902         (Files): Add mkstemp.h.
63903
63904         * lib/mkstemp.h: New file, since some standard headers
63905         #define mkstemp.
63906         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63907         Include "mkstemp.h".
63908         Make the _LIBC code resemble glibc original more,
63909         e.g., use K&R style.
63910         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63911         (mkstemp): Remove, since mkstemp.h does this for us.
63912         * lib/stdlib--.h: Include mkstemp.h.
63913
63914         Import this patch from libc:
63915
63916         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63917
63918         * lib/tempname.c (__gen_tempname): Change attempts_min
63919         into a macro.  Use preprocessor to decide how to initialize
63920         attempts [Coverity CID 67].
63921
63922 2006-09-20  Bruno Haible  <bruno@clisp.org>
63923
63924         * lib/mkdtemp.c: Import from libc.
63925         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63926                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63927                 attempts_min into a macro.  Use preprocessor to decide how to
63928                 initialize attempts [Coverity CID 67].
63929         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63930                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63931                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63932
63933 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63934
63935         * gnulib-tool (func_exit): New function, to allow to pass the
63936         exit status portably through the trap.  Use everywhere.
63937         (--help, --version): Signal a write error.
63938         (trap): catch SIGPIPE, for write errors.
63939         Exit at the end of the trap, with the correct exit status.
63940
63941 2006-09-19  Karl Berry  <karl@gnu.org>
63942
63943         * doc/gnulib.texi: note about the license texinfo files.
63944
63945 2006-09-19  Eric Blake  <ebb9@byu.net>
63946
63947         * gnulib-tool: Avoid space-tab.
63948
63949 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63950
63951         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
63952         that prevented coreutils 6.1 from building.  Problem reported
63953         by Petter Reinholdtsen.
63954
63955 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
63956
63957         * gnulib-tool (avoidlist): Fix typo that broke options like
63958         --avoid=lock that are used by coreutils bootstrap.
63959
63960 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
63961
63962         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
63963         more systematically.
63964
63965 2006-09-18  Jim Meyering  <jim@meyering.net>
63966
63967         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
63968
63969 2006-09-18  Bruno Haible  <bruno@clisp.org>
63970
63971         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
63972
63973 2006-09-18  Bruno Haible  <bruno@clisp.org>
63974
63975         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
63976         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
63977         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
63978         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
63979         * m4/gettext.m4: Require autoconf >= 2.52.
63980         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
63981         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
63982         of gl_cv_header_inttypes_h.
63983
63984 2006-09-18  Bruno Haible  <bruno@clisp.org>
63985
63986         * lib/javaversion.c: Include configmake.h.
63987
63988 2006-09-18  Bruno Haible  <bruno@clisp.org>
63989
63990         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
63991         avoid that the while loops be executed in a subshell.
63992
63993 2006-09-18  Bruno Haible  <bruno@clisp.org>
63994
63995         * MODULES.html.sh (func_module): Break long lines.
63996         Suggested by Bruce Korb <bkorb@gnu.org>.
63997
63998 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63999
64000         Speed up by a factor of 1.12.
64001         * gnulib-tool (nl): New variable.
64002         (func_import): Rewrite include directive extraction to only read each
64003         directive once.
64004
64005 2006-09-17  Bruno Haible  <bruno@clisp.org>
64006
64007         * modules/javaversion (Makefile.am): Remove DEFS setting.
64008         (Depends-on): Add configmake, for PKGDATADIR definition.
64009
64010 2006-09-17  Bruno Haible  <bruno@clisp.org>
64011
64012         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64013
64014 2006-09-17  Bruno Haible  <bruno@clisp.org>
64015
64016         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64017         (func_modules_transitive_closure, func_modules_add_dummy,
64018         func_modules_to_filelist, func_import, func_create_testdir,
64019         func_create_megatestdir, ...): Use it wherever possible.
64020         Suggested by Ralf Wildenhues.
64021
64022 2006-09-16  Karl Berry  <karl@gnu.org>
64023
64024         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64025         to avoid sectioning errors.
64026         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64027         [ifinfo]: blank line after @center-ed titles.
64028         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64029         Spell FSF address consistently with others.
64030         (These changes approved by rms.)
64031
64032 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64033
64034         Speed up by a factor of 1.61.
64035         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64036         already checked module names again.
64037
64038 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64039
64040         Speed up by a factor of 1.13.
64041         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64042         for new_files, and the input to func_add_or_update.
64043
64044 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64045
64046         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64047         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64048
64049 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * modules/mkancesdirs (Depends-on): Add fcntl.
64052         * modules/savewd: New file.
64053         * MODULES.html.sh (File system functions): Add savewd.
64054
64055         * modules/configmake (Makefile.am): Add support for the
64056         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64057
64058 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64059
64060         * m4/savewd.m4: New file.
64061
64062 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64063
64064         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64065         (dirchownmod): New arg FD.  All callers changed.
64066         Use FD rather than opening the directory ourself, as opening is
64067         now the caller's responsibility.
64068         * lib/dirchownmod.h: Likewise.
64069         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64070         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64071         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64072         (test_dir): Remove.
64073         (mkancesdirs): Return length of prefix of FILE that has already
64074         been made, or -2 if there is a child doing the work.  Redo
64075         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64076         ".", and treat ".." specially since it might stray back into
64077         already-created areas.  Use a subprocess if necessary.  New arg
64078         WD; all users changed.  MAKE_DIR function should now return 1
64079         if it creates a directory that is not readable.  Return -2 if
64080         a child process is spun off.
64081         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64082         Adjust signature to match code.
64083         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64084         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64085         all users changed.
64086         * lib/savewd.c, lib/savewd.h: New files.
64087
64088 2006-09-15  Jim Meyering  <jim@meyering.net>
64089
64090         * modules/rename-dest-slash: New module.
64091         * MODULES.html.sh (posix_compat): Add it here.
64092
64093         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64094
64095 2006-09-15  Jim Meyering  <jim@meyering.net>
64096
64097         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64098         file.
64099
64100         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64101
64102 2006-09-15  Jim Meyering  <jim@meyering.net>
64103
64104         * lib/rename-dest-slash.c (has_trailing_slash): Use
64105         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64106         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64107         test before testing whether SRC is a directory.
64108         Suggestions from Bruno Haible.
64109
64110         Avoid a warning about an unused variable.
64111         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64112         into the #ifdef block where it's used.
64113
64114         * lib/rename-dest-slash.c: New file.
64115
64116 2006-09-14  Bruno Haible  <bruno@clisp.org>
64117
64118         * lib/allocsa.c: Include <config.h> unconditionally.
64119         * lib/asnprintf.c: Likewise.
64120         * lib/asprintf.c: Likewise.
64121         * lib/c-strcasecmp.c: Likewise.
64122         * lib/c-strcasestr.c: Likewise.
64123         * lib/c-strncasecmp.c: Likewise.
64124         * lib/c-strstr.c: Likewise.
64125         * lib/classpath.c: Likewise.
64126         * lib/clean-temp.c: Likewise.
64127         * lib/concatpath.c: Likewise.
64128         * lib/copy-file.c: Likewise.
64129         * lib/csharpcomp.c: Likewise.
64130         * lib/csharpexec.c: Likewise.
64131         * lib/execute.c: Likewise.
64132         * lib/fatal-signal.c: Likewise.
64133         * lib/findprog.c: Likewise.
64134         * lib/fwriteerror.c: Likewise.
64135         * lib/gl_array_list.c: Likewise.
64136         * lib/gl_array_oset.c: Likewise.
64137         * lib/gl_avltree_list.c: Likewise.
64138         * lib/gl_avltree_oset.c: Likewise.
64139         * lib/gl_avltreehash_list.c: Likewise.
64140         * lib/gl_carray_list.c: Likewise.
64141         * lib/gl_linked_list.c: Likewise.
64142         * lib/gl_linkedhash_list.c: Likewise.
64143         * lib/gl_list.c: Likewise.
64144         * lib/gl_oset.c: Likewise.
64145         * lib/gl_rbtree_list.c: Likewise.
64146         * lib/gl_rbtree_oset.c: Likewise.
64147         * lib/gl_rbtreehash_list.c: Likewise.
64148         * lib/imaxabs.c: Likewise.
64149         * lib/imaxdiv.c: Likewise.
64150         * lib/javacomp.c: Likewise.
64151         * lib/javaexec.c: Likewise.
64152         * lib/javaversion.c: Likewise.
64153         * lib/linebreak.c: Likewise.
64154         * lib/localcharset.c: Likewise.
64155         * lib/lock.c: Likewise.
64156         * lib/mbchar.c: Likewise.
64157         * lib/mbswidth.c: Likewise.
64158         * lib/mkdtemp.c: Likewise.
64159         * lib/pipe.c: Likewise.
64160         * lib/printf-args.c: Likewise.
64161         * lib/printf-parse.c: Likewise.
64162         * lib/progname.c: Likewise.
64163         * lib/progreloc.c: Likewise.
64164         * lib/readlink.c: Likewise.
64165         * lib/sh-quote.c: Likewise.
64166         * lib/stpcpy.c: Likewise.
64167         * lib/stpncpy.c: Likewise.
64168         * lib/strcasecmp.c: Likewise.
64169         * lib/strcasestr.c: Likewise.
64170         * lib/strcspn.c: Likewise.
64171         * lib/striconv.c: Likewise.
64172         * lib/strncasecmp.c: Likewise.
64173         * lib/strnlen1.c: Likewise.
64174         * lib/strstr.c: Likewise.
64175         * lib/strtok_r.c: Likewise.
64176         * lib/tls.c: Likewise.
64177         * lib/tmpdir.c: Likewise.
64178         * lib/unicodeio.c: Likewise.
64179         * lib/unsetenv.c: Likewise.
64180         * lib/vasnprintf.c: Likewise.
64181         * lib/vasprintf.c: Likewise.
64182         * lib/wait-process.c: Likewise.
64183         * lib/xallocsa.c: Likewise.
64184         * lib/xsetenv.c: Likewise.
64185         * lib/xstriconv.c: Likewise.
64186
64187 2006-09-13  Simon Josefsson  <jas@extundo.com>
64188
64189         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64190         that internally, suggested by Ralf Wildenhues
64191         <Ralf.Wildenhues@gmx.de>.
64192
64193 2006-09-13  Simon Josefsson  <jas@extundo.com>
64194
64195         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64196         @LIBOBJS@.
64197         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64198
64199 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64200
64201         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64202         longer worry about uses that don't define HAVE_CONFIG_H.
64203         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64204         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64205         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64206         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64207         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64208         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64209         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64210         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64211         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64212         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64213         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64214         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64215         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64216         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64217         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64218         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64219         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64220         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64221         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64222         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64223         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64224         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64225         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64226         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64227         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64228         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64229         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64230         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64231         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64232         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64233         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64234         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64235         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64236         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64237         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64238         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64239         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64240         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64241         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64242         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64243         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64244         Likewise.
64245
64246 2006-09-13  Eric Blake  <ebb9@byu.net>
64247
64248         * lib/getopt.c: Fix typo in last commit.
64249
64250 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64251
64252         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64253         dgettext.
64254
64255 2006-09-12  Jim Meyering  <jim@meyering.net>
64256
64257         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64258         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64259         Reported by Nelson H. F. Beebe.
64260
64261 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64262
64263         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64264         program_invocation_name and program_invocation_short_name are
64265         initialized.
64266         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64267         and program_invocation_short_name to argp.h, so they are visible
64268         to user programs.
64269         * lib/argp.h: Likewise
64270
64271 2006-09-10  Bruno Haible  <bruno@clisp.org>
64272
64273         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64274         m4/inttypes_h.m4, m4/uintmax_t.m4.
64275
64276 2006-09-10  Bruno Haible  <bruno@clisp.org>
64277
64278         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64279         gl_AC_TYPE_UINTMAX_T.
64280
64281 2006-09-10  Bruno Haible  <bruno@clisp.org>
64282
64283         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64284
64285 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64286
64287         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64288         convention.  Text proposed by Bruno Haible.
64289         (struct argp_option): Document the use of N_() wrappers.
64290
64291         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64292         '\v', and translate the two parts separately, instead of feeding
64293         the whole string to gettext.  This allows to exclude
64294         '\v' from the strings visible to the translator by writing doc
64295         strings as N_("..") "\v" N_("..").
64296
64297 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64298
64299         * config/srclist.txt: Undo latest change; the bug was fixed.
64300
64301 2006-09-09  Bruno Haible  <bruno@clisp.org>
64302
64303         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64304         assignments if building a library without libtool.
64305         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64306         in func_emit_lib_Makefile_am.
64307         (func_import): When building a static library libfoo.a, arrange to
64308         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64309         (func_create_testdir): Likewise.
64310         * modules/gc (configure.ac, Makefile.am): If building statically,
64311         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64312         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64313         * modules/striconv (configure.ac, Makefile.am): Likewise.
64314         Based on a suggestion by Ralf Wildenhues.
64315
64316 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64317
64318         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64319         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64320         Also:
64321
64322         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64323         Add year_2050_test to catch glibc bug 2821
64324         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64325
64326         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64327         Prefer #ifdef to #if.
64328
64329         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64330         Return from 'main' instead of calling 'exit'.
64331
64332 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64333
64334         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64335         returned the maximum time_t value rather than (time_t) -1.
64336         Problem originally reported by William Bardwell
64337         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64338
64339         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64340         Moved to here ...
64341         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64342         ... from here.
64343
64344 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64345
64346         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64347         2821 is fixed.
64348
64349 2006-09-08  Jim Meyering  <jim@meyering.net>
64350
64351         Don't make generated files read-only.  That would bother too many
64352         people.  However, do retain the ability to work when targets are
64353         read-only: remove the destination and temporary files before writing
64354         them (when generated via sed or echo), or by using the -f option for
64355         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64356         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64357         * modules/byteswap, modules/configmake, modules/fcntl:
64358         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64359         * modules/localcharset, modules/netinet_in, modules/poll:
64360         * modules/stdbool, modules/stdint, modules/sys_select:
64361         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64362
64363 2006-09-08  Jim Meyering  <jim@meyering.net>
64364
64365         Avoid new build failure on FreeBSD 6.0.
64366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64367         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64368         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64369
64370 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64371
64372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64373
64374 2006-09-07  Jim Meyering  <jim@meyering.net>
64375
64376         Fix global typo in last change: use chmod u-w, not chmod u-x.
64377         Spotted by Paul Eggert and Bruce Korb.
64378         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64379         * modules/byteswap, modules/configmake, modules/fcntl:
64380         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64381         * modules/localcharset, modules/netinet_in, modules/poll:
64382         * modules/stdbool, modules/stdint, modules/sys_select:
64383         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64384
64385 2006-09-06  Jim Meyering  <jim@meyering.net>
64386
64387         Make generated files be read-only.
64388         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64389         Ensure that each generated file is now read-only.
64390         * modules/argz: Likewise.
64391         * modules/arpa_inet: Likewise.
64392         * modules/byteswap: Likewise.
64393         * modules/configmake: Likewise.
64394         * modules/fcntl: Likewise.
64395         * modules/fnmatch: Likewise.
64396         * modules/getopt: Likewise.
64397         * modules/glob: Likewise.
64398         * modules/inttypes: Likewise.
64399         * modules/netinet_in: Likewise.
64400         * modules/poll: Likewise.
64401         * modules/stdbool: Likewise.
64402         * modules/stdint: Likewise.
64403         * modules/sys_select: Likewise.
64404         * modules/sys_socket: Likewise.
64405         * modules/sys_stat: Likewise.
64406         * modules/sysexits: Likewise.
64407         * modules/localcharset: Same as above, but continue using temporary
64408         file named "t-$@" (why different?) rather than the "$@-t" used
64409         everywhere else.
64410
64411         * modules/sysexits (Makefile.am): Replace literal occurrences
64412         of "sysexit.h" more readable, and more consistent, "$@".
64413
64414 2006-09-06  Bruno Haible  <bruno@clisp.org>
64415
64416         * modules/striconv: New file.
64417         * modules/xstriconv: New file.
64418         * MODULES.html.sh (Internationalization functions): Add striconv,
64419         xstriconv.
64420
64421 2006-09-06  Bruno Haible  <bruno@clisp.org>
64422
64423         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64424         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64425         not using libtool correctly.
64426
64427 2006-09-06  Bruno Haible  <bruno@clisp.org>
64428
64429         * lib/striconv.h: New file.
64430         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64431         iconvstring.c.
64432         * lib/xstriconv.h: New file.
64433         * lib/xstriconv.c: New file.
64434
64435 2006-09-06  Bruno Haible  <bruno@clisp.org>
64436
64437         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64438         lib_..._LDFLAGS.
64439
64440 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64441
64442         * lib/argz_.h: Sync from Libtool.
64443
64444         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64445                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64446
64447         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64448
64449 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64450
64451         * modules/trim: New file.
64452
64453 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64454
64455         * lib/trim.h: New file.
64456         * lib/trim.c: New file.
64457
64458 2006-09-05  Bruno Haible  <bruno@clisp.org>
64459
64460         * MODULES.html.sh (String handling): Add trim.
64461
64462 2006-09-04  Karl Berry  <karl@gnu.org>
64463
64464         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64465         until next release.
64466
64467 2006-09-03  Bruno Haible  <bruno@clisp.org>
64468
64469         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64470         correctly.
64471
64472 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64473
64474         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64475         not gl_GETLOADAVG.  Omit unneeded semicolons.
64476         Problems reported by Ralf Wildenhues in
64477         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64478         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64479         at the end, which is the usual gnulib style.
64480
64481         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64482         of doing all the work ourselves.
64483         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64484         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64485
64486 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64487
64488         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64489         Problem reported by Ralf Wildenhues in
64490         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64491
64492         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64493         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64494
64495 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64496
64497         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64498         yesterday's patch by changing test -n to test -z.
64499
64500 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64501
64502         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64503         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64504         the former is now obsolescent.
64505
64506         * modules/chdir-long (Depends-on): Add fcntl.
64507
64508 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64509
64510         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64511         obsolescent, and programs should use gnulib instead.
64512         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64513         but with prefixes changed.
64514
64515 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64516
64517         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64518         or stdbool.h, because they might not exist while configuring.
64519
64520         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64521         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64522         does that for us.
64523         (O_DIRECTORY): Remove.
64524
64525 2006-08-31  Eric Blake  <ebb9@byu.net>
64526
64527         * gnulib-tool: Don't let emacs change spaces to TAB.
64528
64529 2006-08-31  Bruno Haible  <bruno@clisp.org>
64530
64531         * gnulib-tool: When calling func_import more than once, do it in a
64532         subshell.
64533         Reported by Eric Blake <ebb9@byu.net>.
64534
64535 2006-08-31  Bruno Haible  <bruno@clisp.org>
64536
64537         * gnulib-tool (nl): Remove variable.
64538         (sed_transform_lib_file): Use more robust test for config-h module.
64539         (func_import): Fix typo in 2006-08-25 patch.
64540
64541 2006-08-31  Bruno Haible  <bruno@clisp.org>
64542
64543         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64544         specified, augment Makefile.am variables instead of assigning them.
64545
64546 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64547
64548         Work around a bug in both the Linux and SunOS 64-bit kernels:
64549         nanosleep mishandles sleeps for longer than 2**31 seconds.
64550         Problem reported by Frank v Waveren in
64551         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64553         Check for nanosleep bug.
64554         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64555
64556 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64557
64558         Work around a bug in both the Linux and SunOS 64-bit kernels:
64559         nanosleep mishandles sleeps for longer than 2**31 seconds.
64560         Problem reported by Frank v Waveren in
64561         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64562         * lib/nanosleep.c (BILLION): New constant.
64563         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64564         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64565         implementation.
64566
64567 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64568
64569         * modules/nanosleep (Depends-on): Add gettime.
64570
64571 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64572         and Simon Josefsson  <jas@extundo.com>
64573         and Oskar Liljeblad  <oskar@osk.mine.nu>
64574
64575         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64576         * gnulib-tool (func_import): New license type 'unmodifiable license
64577         text'.
64578         * modules/fdl: Use it.  Longer description.
64579         * module/gpl, module/lgpl: New files.
64580
64581 2006-08-30  Jim Meyering  <jim@meyering.net>
64582
64583         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64584         shadowing the parameter.
64585
64586 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64587
64588         Sync from Libtool:
64589
64590         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64591
64592         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64593         sharing with gnulib.  Report by Eric Blake.
64594
64595 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64596
64597         * modules/isapipe: New file.
64598         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64599
64600 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64601
64602         * modules/configmake (Makefile.am): Add a comment, and omit
64603         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64604         by Bruno Haible.
64605
64606 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64607
64608         * m4/isapipe.m4: New file.
64609
64610 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64611
64612         * lib/isapipe.c, lib/isapipe.h: New files.
64613
64614 2006-08-29  Jim Meyering  <jim@meyering.net>
64615
64616         * modules/configmake (Makefile.am): Make configmake.h depend on
64617         Makefile.  Otherwise, a stale configmake.h could hang around.
64618
64619 2006-08-29  Eric Blake  <ebb9@byu.net>
64620
64621         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64622         resolution of upstream bug 3044.
64623
64624 2006-08-29  Bruno Haible  <bruno@clisp.org>
64625
64626         * modules/localcharset (Depends-on): Add configmake.
64627         (Makefile.am): Remove setting of LIBDIR through DEFS.
64628
64629 2006-08-29  Bruno Haible  <bruno@clisp.org>
64630
64631         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64632         defined.
64633
64634 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64635
64636         * modules/fcntl: New file.
64637         * modules/chdir-safer (Depends-on): Add fcntl.
64638         * modules/fts: Likewise.
64639         * modules/mkdir-p: Likewise.
64640
64641         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64642         This undoes the most recent change, since we're now addressing the
64643         problem in a different way.
64644
64645         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64646         into output, since the output might be called Makefile.am even
64647         if $makefile_name is something different.
64648         (func_import): Use $makefile_am rather than
64649         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64650         empty.
64651
64652         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64653
64654 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64655
64656         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64657         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64658         recent change to stdint.m4, since we're now addressing the problem in a
64659         different way.
64660
64661 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64662
64663         * m4/fcntl_h.m4: New file.
64664
64665 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64666
64667         * lib/fcntl_.h: New file.
64668         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64669         the fcntl module.
64670         * lib/dirchownmod.c: Likewise.
64671         * lib/fts.c: Likewise.
64672
64673         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64674         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64675         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64676         just before including <inttypes.h>, to avoid circular inclusion.
64677
64678 2006-08-28  Jim Meyering  <jim@meyering.net>
64679
64680         * doc/visibility.texi: Actually read and correct the grammar of the
64681         sentence affected by yesterday's change.
64682
64683 2006-08-28  Eric Blake  <ebb9@byu.net>
64684
64685         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64686         needs wrapper.
64687
64688 2006-08-28  Eric Blake  <ebb9@byu.net>
64689
64690         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64691
64692 2006-08-28  Eric Blake  <ebb9@byu.net>
64693
64694         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64695
64696 2006-08-28  Bruno Haible  <bruno@clisp.org>
64697
64698         * modules/c-strstr: New file, from GNU gettext.
64699         * MODULES.html.sh (String handling): Add c-strstr.
64700
64701 2006-08-28  Bruno Haible  <bruno@clisp.org>
64702
64703         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64704         macros.
64705         Reported by Eric Blake.
64706
64707 2006-08-28  Bruno Haible  <bruno@clisp.org>
64708
64709         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64710         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64711         * lib/vasprintf.c: Include errno.h, limits.h.
64712         (EOVERFLOW): New fallback definition.
64713         (vasprintf): Test here whether the string length is > INT_MAX.
64714         * lib/vsnprintf.c: Include errno.h, limits.h.
64715         (EOVERFLOW): New fallback definition.
64716         (vsnprintf): Fix bug when generated string was too long for the buffer.
64717         Test here whether the string length is > INT_MAX.
64718
64719 2006-08-28  Bruno Haible  <bruno@clisp.org>
64720
64721         * lib/inttypes_.h (SCNX*): Remove definitions.
64722         Reported by Eric Blake.
64723
64724 2006-08-28  Bruno Haible  <bruno@clisp.org>
64725
64726         * lib/c-strstr.h: New file, from GNU gettext.
64727         * lib/c-strstr.c: New file, from GNU gettext.
64728
64729 2006-08-28  Bruno Haible  <bruno@clisp.org>
64730
64731         * gnulib-tool: Reorder some statements.
64732
64733 2006-08-28  Bruno Haible  <bruno@clisp.org>
64734
64735         * gnulib-tool: New option --makefile-name.
64736         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64737         $makefile_name.
64738         (func_import): Write $makefile_name to the cache file, and read it from
64739         there unless explicitly specified. Use $makefile_name as file name
64740         instead of Makefile.am. Adjust the recommendations accordingly.
64741
64742 2006-08-28  Bruno Haible  <bruno@clisp.org>
64743
64744         * gnulib-tool (func_verify_module): Check against misapplying patch.
64745
64746 2006-08-28  Bruno Haible  <bruno@clisp.org>
64747
64748         * gnulib-tool (func_relativize, func_relconcat): New functions.
64749         Give an error if --local-dir is given with --update.
64750         Remove trailing slashes from $local_gnulib_dir.
64751         (func_import): Store the relativized $local_gnulib_dir in
64752         gnulib-cache.m4, and read it from there if not specified explicitly.
64753
64754 2006-08-28  Bruno Haible  <bruno@clisp.org>
64755
64756         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64757         is the current directory. Respect also $local_gnulib_dir.
64758
64759 2006-08-28  Bruno Haible  <bruno@clisp.org>
64760             Simon Josefsson  <jas@extundo.com>
64761
64762         BeOS portability.
64763         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64764
64765 2006-08-27  Jim Meyering  <jim@meyering.net>
64766
64767         * doc/visibility.texi: Remove duplicate word: "pointer".
64768
64769 2006-08-26  Bruno Haible  <bruno@clisp.org>
64770
64771         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64772         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64773         (Makefile.am): Create inttypes.h from inttypes_.h.
64774         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64775
64776         * modules/imaxabs: New file.
64777
64778         * modules/imaxdiv: New file.
64779
64780 2006-08-26  Bruno Haible  <bruno@clisp.org>
64781
64782         * m4/inttypes.m4: New file.
64783         * m4/_inttypes_h.m4: Remove file.
64784         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64785         PRI_MACROS_BROKEN.
64786         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64787
64788         * m4/imaxabs.m4: New file.
64789
64790         * m4/imaxdiv.m4: New file.
64791
64792 2006-08-26  Bruno Haible  <bruno@clisp.org>
64793
64794         * lib/inttypes_.h: New file.
64795         * lib/inttypes.h: Remove file.
64796         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64797
64798         * lib/imaxabs.c: New file.
64799
64800         * lib/imaxdiv.c: New file.
64801
64802 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64803
64804         New config-h module, so that "make" output needn't be cluttered
64805         by -DHAVE_CONFIG_H.
64806         * MODULES.html.sh (Support for building libraries and executables):
64807         Add config-h.
64808         * modules/config-h: New file.
64809         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64810         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64811         the config-h module is used.
64812
64813         New configmake module, so that "make" output needn't be cluttered
64814         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64815         * MODULES.html.sh (Support for building libraries and executables):
64816         Add configmake.
64817         * modules/configmake: New file.
64818
64819 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64820
64821         * m4/config-h.m4: New file.
64822
64823 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64824
64825         * config/srclist.txt: Add elisp-comp.
64826
64827 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64828
64829         * MODULES.html.sh (Support for building libraries and executables):
64830         Add elisp-comp.
64831         * build-aux/elisp-comp: New file.
64832         * modules/elisp-comp: New file.
64833
64834 2006-08-24  Bruno Haible  <bruno@clisp.org>
64835
64836         * gnulib-tool (func_create_testdir): Use non-default values of
64837         sourcebase and m4base.
64838
64839 2006-08-24  Bruno Haible  <bruno@clisp.org>
64840
64841         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64842         HTML structure.
64843
64844 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64845
64846         * modules/openat (Depends-on): Add lchown.
64847
64848 2006-08-23  Bruno Haible  <bruno@clisp.org>
64849
64850         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64851         of gl_LOCK_EARLY instead of gl_LOCK.
64852
64853 2006-08-23  Bruno Haible  <bruno@clisp.org>
64854
64855         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64856         on OSF/1 to no.
64857         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64858
64859 2006-08-23  Bruno Haible  <bruno@clisp.org>
64860
64861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64862         as unusable.
64863
64864         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64865         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64866         (gl_LOCK): New macro.
64867
64868 2006-08-22  Simon Josefsson  <jas@extundo.com>
64869
64870         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64871         to md5 module.
64872
64873 2006-08-22  Simon Josefsson  <jas@extundo.com>
64874
64875         * MODULES.html.sh: Add "Support for maintaining and release
64876         projects".
64877
64878         * build-aux/gnupload: New file, from coreutils.
64879
64880 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         Avoid the need for AC_LIBSOURCES in m4 macros.
64883         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64884         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64885         * modules/check-version (EXTRA_DIST): Add check-version.h.
64886         * modules/crc (EXTRA_DIST): Add crc.h.
64887         * modules/des (EXTRA_DIST): Add des.h.
64888         * modules/gc (EXTRA_DIST): Add gc.h.
64889         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64890         * modules/getline (EXTRA_DIST): Add getline.h.
64891         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64892         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64893         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64894         * modules/md2 (EXTRA_DIST): Add md2.h.
64895         * modules/md4 (EXTRA_DIST): Add md4.h.
64896         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64897         * modules/read-file (EXTRA_DIST): Add read-file.h.
64898         * modules/readline (EXTRA_DIST): Add readline.h.
64899         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64900         rijndael-api-fst.h.
64901
64902 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64903
64904         * m4/rijndael.m4 (gl_ARCFOUR):
64905         * m4/arctwo.m4 (gl_ARCTWO):
64906         * m4/check-version.m4 (gl_CHECK_VERSION):
64907         * m4/crc.m4 (gl_CRC):
64908         * m4/des.m4 (gl_DES):
64909         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64910         * m4/gc.m4 (gl_GC):
64911         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64912         * m4/getline.m4 (gl_FUNC_GETLINE):
64913         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64914         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64915         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64916         * m4/md2.m4 (gl_MD2):
64917         * m4/md4.m4 (gl_MD4):
64918         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64919         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64920         * m4/readline.m4 (gl_FUNC_READLINE):
64921         * m4/rijndael.m4 (gl_RIJNDAEL):
64922         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64923         to get the necessary .h files and whatnot.
64924
64925 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64926
64927         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64928         gnulib rather than the other way around.
64929         * config/srclistvars.sh (COREUTILS): Remove.
64930
64931 2006-08-22  Jim Meyering  <jim@meyering.net>
64932
64933         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64934
64935         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64936
64937 2006-08-22  Eric Blake  <ebb9@byu.net>
64938
64939         * modules/regexprops-generic: New file.
64940         * MODULES.html.sh (Support for building documentation): List it.
64941
64942 2006-08-22  Eric Blake  <ebb9@byu.net>
64943
64944         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64945         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64946         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
64947         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
64948
64949 2006-08-22  Bruno Haible  <bruno@clisp.org>
64950
64951         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
64952         and lib_LTLIBRARIES like the other lib_* variables.
64953
64954 2006-08-22  Bruno Haible  <bruno@clisp.org>
64955
64956         * build-aux/x-to-1.in: New file, from GNU gettext.
64957
64958 2006-08-22  Bruno Haible  <bruno@clisp.org>
64959
64960         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
64961         <utmpx.h> exists.
64962
64963 2006-08-22  Bruno Haible  <bruno@clisp.org>
64964
64965         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
64966         <utmpx.h> exists.
64967
64968 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64969
64970         BeOS portability.
64971         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
64972         exist.
64973         Problem reported by Bruno Haible.
64974
64975 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
64976
64977         Avoid the need for AC_LIBSOURCES in m4 macros.
64978         * modules/acl (EXTRA_DIST): Add acl.h.
64979         * modules/argmatch (Files): Add m4/argmatch.m4.
64980         (configure.ac): Add gl_ARGMATCH.
64981         (EXTRA_DIST): Renamed from lib_SOURCES, for
64982         consistency with the other modules.  Remove argmatch.c.
64983         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
64984         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
64985         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
64986         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
64987         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
64988         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
64989         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
64990         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
64991         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
64992         * modules/closeout (EXTRA_DIST): Add closeout.h.
64993         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
64994         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
64995         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
64996         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
64997         dirname.h; remove basename.c and stripslash.c.
64998         * modules/exclude (EXTRA_DIST): Add exclude.h.
64999         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65000         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65001         * modules/file-type (EXTRA_DIST): Add file-type.h.
65002         * modules/filemode (EXTRA_DIST): Add filemode.h.
65003         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65004         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65005         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65006         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65007         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65008         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65009         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65010         * modules/getdate (EXTRA_DIST): Add getdate.c.
65011         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65012         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65013         * modules/getpass (EXTRA_DIST): Add getpass.h.
65014         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65015         * modules/group-member (EXTRA_DIST): Add group-member.h.
65016         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65017         * modules/hash (EXTRA_DIST): Add hash.h.
65018         * modules/human (EXTRA_DIST): Add human.h.
65019         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65020         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65021         * modules/lchown (EXTRA_DIST): Add lchown.h.
65022         * modules/long-options (EXTRA_DIST): Add long-options.h.
65023         * modules/lstat (EXTRA_DIST): Add lstat.h.
65024         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65025         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65026         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65027         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65028         * modules/memxor (EXTRA_DIST): Add memxor.h.
65029         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65030         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65031         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65032         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65033         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65034         * modules/physmem (EXTRA_DIST): Add physmem.h.
65035         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65036         * modules/posixver (EXTRA_DIST): Add posixver.h.
65037         * modules/quote (EXTRA_DIST): Add quote.h.
65038         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65039         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65040         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65041         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65042         regex_internal.h regexec.c.
65043         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65044         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65045         * modules/same (EXTRA_DIST): Add same.h.
65046         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65047         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65048         * modules/savedir (EXTRA_DIST): Add savedir.h.
65049         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65050         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65051         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65052         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65053         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65054         * modules/strdup (EXTRA_DIST): Add strdup.h.
65055         * modules/strftime (EXTRA_DIST): Add strftime.h.
65056         * modules/strndup (EXTRA_DIST): Add strndup.h.
65057         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65058         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65059         * modules/time_r (EXTRA_DIST): Add time_r.h.
65060         * modules/timespec (EXTRA_DIST): Add timespec.h.
65061         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65062         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65063         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65064         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65065         * modules/userspec (EXTRA_DIST): Add userspec.h.
65066         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65067         * modules/utimens (EXTRA_DIST): Add utimens.h.
65068         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65069         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65070         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65071         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65072         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65073         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65074         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65075         * modules/yesno (EXTRA_DIST): Add yesno.h.
65076
65077 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65078
65079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65080
65081         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65082         * m4/dev-ino.m4, same-inode.m4: Remove.
65083
65084         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65085         * m4/acl.m4 (AC_FUNC_ACL):
65086         * m4/backupfile.m4 (gl_BACKUPFILE):
65087         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65088         * m4/canon-host.m4 (gl_CANON_HOST):
65089         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65090         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65091         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65092         * m4/cloexec.m4 (gl_CLOEXEC):
65093         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65094         * m4/closeout.m4 (gl_CLOSEOUT):
65095         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65096         * m4/dirname.m4 (gl_DIRNAME):
65097         * m4/exclude.m4 (gl_EXCLUDE):
65098         * m4/exitfail.m4 (gl_EXITFAIL):
65099         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65100         * m4/file-type.m4 (gl_FILE_TYPE):
65101         * m4/filemode.m4 (gl_FILEMODE):
65102         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65103         * m4/fpending.m4 (gl_FUNC_FPENDING):
65104         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65105         * m4/fts.m4 (gl_FUNC_FTS):
65106         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65107         * m4/getdate.m4 (gl_GETDATE):
65108         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65109         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65110         * m4/getpass.m4 (gl_FUNC_GETPASS):
65111         * m4/gettime.m4 (gl_GETTIME):
65112         * m4/getugroups.m4 (gl_GETUGROUPS):
65113         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65114         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65115         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65116         * m4/hash.m4 (gl_HASH):
65117         * m4/idcache.m4 (gl_IDCACHE):
65118         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65119         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65120         * m4/long-options.m4 (gl_LONG_OPTIONS):
65121         * m4/lstat.m4 (gl_FUNC_LSTAT):
65122         * m4/md5.m4 (gl_MD5):
65123         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65124         * m4/memcoll.m4 (gl_MEMCOLL):
65125         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65126         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65127         * m4/memxor.m4 (gl_MEMXOR):
65128         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65129         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65130         * m4/modechange.m4 (gl_MODECHANGE):
65131         * m4/mountlist.m4 (gl_MOUNTLIST):
65132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65133         * m4/openat.m4 (gl_FUNC_OPENAT):
65134         * m4/pathmax.m4 (gl_PATHMAX):
65135         * m4/physmem.m4 (gl_PHYSMEM):
65136         * m4/posixtm.m4 (gl_POSIXTM):
65137         * m4/posixver.m4 (gl_POSIXVER):
65138         * m4/quote.m4 (gl_QUOTE):
65139         * m4/quotearg.m4 (gl_QUOTEARG):
65140         * m4/readtokens.m4 (gl_READTOKENS):
65141         * m4/readutmp.m4 (gl_READUTMP):
65142         * m4/regex.m4 (gl_REGEX):
65143         * m4/safe-read.m4 (gl_SAFE_READ):
65144         * m4/safe-write.m4 (gl_SAFE_WRITE):
65145         * m4/same.m4 (gl_SAME):
65146         * m4/save-cwd.m4 (gl_SAVE_CWD):
65147         * m4/savedir.m4 (gl_SAVEDIR):
65148         * m4/settime.m4 (gl_SETTIME):
65149         * m4/sha1.m4 (gl_SHA1):
65150         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65151         * m4/stat-macros.m4 (gl_STAT_MACROS):
65152         * m4/stat-time.m4 (gl_STAT_TIME):
65153         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65154         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65155         * m4/strdup.m4 (gl_FUNC_STRDUP):
65156         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65157         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65158         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65159         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65160         * m4/time_r.m4 (gl_TIME_R):
65161         * m4/timespec.m4 (gl_TIMESPEC):
65162         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65163         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65164         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65165         * m4/userspec.m4 (gl_USERSPEC):
65166         * m4/utimecmp.m4 (gl_UTIMECMP):
65167         * m4/utimens.m4 (gl_UTIMENS):
65168         * m4/xalloc.m4 (gl_XALLOC):
65169         * m4/xgetcwd.m4 (gl_XGETCWD):
65170         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65171         * m4/xreadlink.m4 (gl_XREADLINK):
65172         * m4/xstrtod.m4 (gl_XSTRTOD):
65173         * m4/yesno.m4 (gl_YESNO):
65174         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65175         to get the necessary .h files and whatnot.
65176
65177 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65178             Bruno Haible  <bruno@clisp.org>
65179
65180         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65181         /bin/sh understanding of '!' conditional negation.
65182
65183 2006-08-21  Jim Meyering  <jim@meyering.net>
65184
65185         * modules/openat (Depends-on): Really alphabetize.
65186
65187         * modules/acl (Depends-on): Add error and quote.
65188
65189         * check-module (find_included_lib_files): Add at-func.c to the
65190         ok-to-include-more-than-once white list.
65191
65192         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65193
65194 2006-08-21  Bruno Haible  <bruno@clisp.org>
65195
65196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65197         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65198         Reported by Martin Lambers <marlam@marlam.de>.
65199
65200 2006-08-21  Bruno Haible  <bruno@clisp.org>
65201
65202         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65203         specify an installation location, don't emit a noinst_LIBRARIES or
65204         noinst_LTLIBRARIES assignment.
65205
65206 2006-08-21  Bruno Haible  <bruno@clisp.org>
65207
65208         BeOS portability.
65209         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65210         BeOS has mbrtowc() but no <wctype.h>.
65211
65212 2006-08-21  Bruno Haible  <bruno@clisp.org>
65213
65214         BeOS portability.
65215         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65216         exist.
65217
65218 2006-08-21  Bruno Haible  <bruno@clisp.org>
65219
65220         BeOS portability.
65221         * lib/mbchar.h: Include <wctype.h> only if it exists.
65222
65223 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65224
65225         Remove files that are no longer needed by their respective modules.
65226         * m4/obstack.m4: Remove.
65227         * m4/strerror_r.m4: Remove.
65228         * m4/uint32_t.m4: Remove.
65229         * m4/uintptr_t.m4: Remove.
65230         * m4/ullong_max.m4: Remove.
65231         * m4/xstrtoimax.m4: Remove.
65232         * m4/xstrtoumax.m4: Remove.
65233
65234         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65235         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65236         dependencies now capture this.
65237
65238         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65239         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65240         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65241         * m4/human.m4 (gl_HUMAN): Likewise.
65242         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65243         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65244
65245         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65246
65247         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65248         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65249         stdint.
65250         * m4/human.m4 (gl_HUMAN): Likewise.
65251         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65252         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65253         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65254         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65255         * m4/xstrtol (gl_XSTRTOL): Likewise.
65256
65257         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65258         AC_TYPE_LONG_LONG_INT.
65259         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65260         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65261         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65262         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65263
65264         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65265         on stdbool.
65266
65267         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65268         (gl_PREREQ_XSTRTOUL): Remove.
65269
65270         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65271
65272         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65273         mode.
65274
65275 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65276
65277         Add and change modules to make it easier for coreutils to use
65278         gnulib-tool.
65279         * modules/backupfile (Files): Remove m4/d-ino.m4.
65280         (Depends-on): Add d-ino.
65281         * modules/cycle-check (Depends-on): Add stdint.
65282         (lib_SOURCES): Add cycle-check.h.
65283         * modules/d-ino: New module.
65284         * modules/d-type: New module.
65285         * modules/error (Files): Remove m4/strerror_r.m4.
65286         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65287         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65288         m4/inttypes_h.m4, m4/uintmax_t.m4.
65289         (Depends-on): Add stdint.
65290         (lib_SOURCES): Add fsusage.h.
65291         * modules/getcwd (Files): Remove d-ino.m4.
65292         (Depends-on): Add d-ino.
65293         * modules/getndelim2 (Depends-on): Add stdint.
65294         * modules/glob (Files): Remove m4/d-type.m4.
65295         (Depends-on): Add d-type.
65296         * modules/host-os: New module.
65297         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65298         m4/inttypes_h.m4, m4/uintmax_t.m4.
65299         * Depends-on: Add stdint.
65300         (lib_SOURCES): Add human.h.
65301         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65302         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65303         m4/uintmax_t.m4, m4/ulonglong.m4.
65304         (Depends-on): Add stdint.
65305         (EXTRA_DIST): Add inttostr.h.
65306         * modules/lchmod: New module.
65307         * modules/link-follow: New module.
65308         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65309         (Depends-on): Add lchmod.
65310         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65311         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65312         (Depends-on): Add stdint.
65313         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65314         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65315         (Depends-on): Add stdint.
65316         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65317         * modules/perl: New module.
65318         * modules/regex (Depends-on): Add stdint.
65319         * modules/rmdir-errno: New module.
65320         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65321         m4/intmax_t.m4.
65322         (Depends-on): Add stdint.
65323         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65324         m4/uintmax_t.m4.
65325         (Depends-on): Add stdint.
65326         * modules/unlink-busy: New module.
65327         * modules/utimecmp (Depends-on): Add stdint.
65328         * modules/uptime: New module.
65329         * modules/winsz-ioctl: New module.
65330         * modules/winsz-termios: New module.
65331         * modules/xnanosleep (Depends-on): Add nanosleep.
65332         * modules/ullong_max: Remove.
65333         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65334         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65335         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65336         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65337         (Depends-on): Add inttypes.
65338         (lib_SOURCES): Add xstrtol.h.
65339         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65340         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65341         * MODULES.html.sh: Move 'assert' into the assert section.
65342         Move 'dummy' into the linking section.
65343         Remove ullong_max.
65344         Add section for compatibility checks for POSIX:2001 functions,
65345         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65346         winsz-ioctl, and winsz-termios into it.
65347         Add lchmod.
65348         Add top-level Misc section and put host-os, perl, and uptime
65349         into it.
65350
65351 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65352
65353         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65354         now assume the stdint module.  Do not include inttypes.h.
65355         * lib/fsusage.h: Likewise.
65356         * lib/getndelim2.c: Likewise.
65357         * lib/human.h: Likewise.
65358         * lib/inttostr.h: Likewise.
65359         * lib/obstack.c: Likewise.
65360         * lib/regex_internal.h: Likewise.
65361         * lib/tempname.c: Likewise.
65362         * lib/utimecmp.c: Likewise.
65363         * lib/xstrtol.h: Likewise.
65364
65365         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65366
65367         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65368         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65369         * lib/xtime.h: Likewise.
65370
65371 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65372
65373         * modules/openat (Files): Add lib/fchmodat.c.
65374         Fixes problem reported by Jay Youngman.
65375
65376 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65377
65378         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65379         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65380
65381 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65382             Bruno Haible  <bruno@clisp.org>
65383
65384         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65385         and is a script that invokes bison. Tighten the code. Add comments.
65386
65387 2006-08-18  Jim Meyering  <jim@meyering.net>
65388
65389         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65390         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65391         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65392         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65393
65394 2006-08-18  Bruno Haible  <bruno@clisp.org>
65395
65396         * modules/bison-i18n: New file.
65397         * MODULES.html.sh (Internationalization functions): Add it.
65398
65399 2006-08-18  Bruno Haible  <bruno@clisp.org>
65400
65401         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65402         sys/statvfs.h. When getmntinfo was found, check its declaration and
65403         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65404
65405 2006-08-18  Bruno Haible  <bruno@clisp.org>
65406
65407         * m4/bison-i18n.m4: New file, from bison.
65408
65409 2006-08-18  Bruno Haible  <bruno@clisp.org>
65410
65411         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65412         (ME_DUMMY): Treat "kernfs" as a dummy.
65413         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65414
65415 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65416
65417         Update from coreutils.
65418
65419         2006-08-15  Jim Meyering  <jim@meyering.net>
65420
65421         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65422
65423         2006-01-17  Jim Meyering  <jim@meyering.net>
65424
65425         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65426
65427         2006-01-11  Jim Meyering  <jim@meyering.net>
65428
65429         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65430         Check for the lchmod function.
65431
65432 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65433
65434         Update from coreutils.
65435
65436         * lib/__fpending.h: Add copyright notice.
65437         * lib/fprintftime.h: Likewise.
65438         * lib/savedir.c: Use (C) in copyright notice.
65439         * lib/savedir.h: Likewise.
65440
65441         2006-08-15  Jim Meyering  <jim@meyering.net>
65442
65443         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65444         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65445         in support of the EXPECTED_ERRNO macro.
65446         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65447         definitions.  Instead, define the appropriate symbols and include
65448         "at-func.c".
65449         * lib/mkdirat.c (mkdirat): Likewise.
65450         * lib/fchmodat.c (fchmodat): Likewise.
65451         (ENOSYS): Remove definition.
65452         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65453         it.  Don't include "unistd--.h" -- it wasn't ever used.
65454
65455         2006-01-17  Jim Meyering  <jim@meyering.net>
65456
65457         Rewrite fts.c not to change the current working directory,
65458         by using openat, fstatat, fdopendir, etc..
65459
65460         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65461         (HAVE_OPENAT_SUPPORT): Define.
65462         [_LIBC] (fchdir): Don't undef or define; no longer used.
65463         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65464         Now, this `function' always succeeds, and consumes its file descriptor
65465         parameter -- so callers must not close such FDs.  Update callers.
65466         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65467         (diropen): Add parameter, SP.  Adjust all callers.
65468         Implement using diropen_fd, rather than open.
65469         (fts_open): Initialize new member, fts_cwd_fd.
65470         Remove fts_rft-setting code.
65471         (fts_close): Close fts_cwd_fd, if necessary.
65472         (__opendir2): Define in terms of opendir or opendirat,
65473         depending on whether the FST_NOCHDIR flag is set.
65474         (fts_build): Since fts_safe_changedir consumes its FD, and since
65475         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65476         and close the dup'd file descriptor upon failure.
65477         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65478         (fts_safe_changedir): Tweak semantics to reflect that this function
65479         now calls cwd_advance_fd and hence consumes its FD argument.
65480         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65481         [struct FTS] (fts_rft): Remove now-unused member.
65482         [struct FTS] (fts_cycle.state): Improve comment.
65483
65484         * lib/openat.c (openat_needs_fchdir): New function.
65485         * lib/openat.h (openat_needs_fchdir): Declare it.
65486
65487 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65488
65489         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65490         Problem and fix reported by Pádraig Brady in
65491         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65492
65493 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65494
65495         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65496
65497 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65498
65499         * lib/memcoll.c (memcoll): Optimize for the common case where the
65500         arguments are bytewise equal.
65501
65502 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65503
65504         * doc/regexprops-generic.texi: Add a copyright notice.
65505
65506 2006-08-15  Bruno Haible  <bruno@clisp.org>
65507
65508         * modules/tmpdir (License): Change to LGPL.
65509
65510 2006-08-15  Bruno Haible  <bruno@clisp.org>
65511
65512         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65513         module.
65514
65515 2006-08-14  Simon Josefsson  <jas@extundo.com>
65516
65517         * config/srclist.txt: Add gnupload.
65518
65519 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65520
65521         Change copyright notice from LGPL 2 to GPL 2, since that's the
65522         standard form used in the gnulib repository.
65523         * tests/test-lock.c: Likewise.
65524         * tests/test-stdint.c: Likewise.
65525         * tests/test-tls.c: Likewise.
65526
65527         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65528         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65529         Add copyright notice.
65530
65531         * check-module: Add copyright notice.  Output a copyright
65532         notice if "--version" is specified.
65533         * modules/COPYING: New file.
65534         * tests/test-getaddrinfo.c: Add copyright notice.
65535         * tests/test-verify.c: Likewise.
65536
65537 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65538
65539         Change copyright notice from LGPL 2 to GPL 2, since that's the
65540         standard form used in the gnulib repository.
65541         * lib/lock.c: LGPL -> GPL.
65542         * lib/lock.h: Likewise.
65543         * lib/strnlen1.c: Likewise.
65544         * lib/strnlen1.h: Likewise.
65545         * lib/tls.c: Likewise.
65546         * lib/tls.h: Likewise.
65547         * lib/tmpdir.c: Likewise.
65548
65549         * lib/TODO: Remove; this belongs only in coreutils.
65550
65551 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65552
65553         Add copyright notices to long-enough files that lack them, since
65554         otherwise the files aren't clearly free.  Use the same notice that
65555         getdate.texi already uses.
65556         * doc/alloca-opt.texi: Add copyright notice.
65557         * doc/alloca.texi: Likewise.
65558         * doc/ctime.texi: Likewise.
65559         * doc/functions.texi: Likewise.
65560         * doc/gcd.texi: Likewise.
65561         * doc/gnulib-tool.texi: Likewise.
65562         * doc/inet_ntoa.texi: Likewise.
65563         * doc/visibility.texi: Likewise.
65564
65565         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65566         * doc/quote.texi: Add copyright notice.
65567
65568         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65569         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65570         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65571         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65572         is now obsolete, and give a pointer to the Sun list.
65573         Add copyright notice.
65574
65575 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65576
65577         * config/srclistvars.sh: Add copyright notice.
65578
65579 2006-08-14  Eric Blake  <ebb9@byu.net>
65580
65581         Import the following change from libc:
65582
65583         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65584
65585         Upstream bug 2997.
65586         * lib/misc/error.c: Add space between program name and message if file
65587         name is missing.
65588
65589 2006-08-12  Karl Berry  <karl@gnu.org>
65590
65591         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65592         remove, these originate in gnulib now.
65593
65594 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65595
65596         * doc/Makefile (standards.info standards.html standards.dvi):
65597         Also depend on make-stds.texi.
65598
65599 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65600
65601         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65602         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65603
65604         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65605         in wchar_t.  Problem reported by Eric Blake.
65606
65607         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65608         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65609         Also, help the compiler to keep LEN in a register.
65610
65611 2006-08-11  Eric Blake  <ebb9@byu.net>
65612
65613         * users.txt: Sort.  Add tar.
65614
65615 2006-08-11  Bruno Haible  <bruno@clisp.org>
65616
65617         * users.txt: New file.
65618
65619 2006-08-11  Bruno Haible  <bruno@clisp.org>
65620
65621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65622         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65623
65624 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65625
65626         * modules/snprintf (Depends-on): Remove minmax.
65627         (Maintainer): Add self and Bruno.
65628
65629 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65630
65631         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65632         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65633         (EOVERFLOW): Define if the system does not.
65634         Do not include "minmax.h"; it wasn't used.
65635         (snprintf): Don't assume size_t promotes to an unsigned type.
65636         Fix bug when generated string was too long for the buffer: the
65637         buffer's contents are supposed to be the initial prefix of the
65638         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65639         exceeds INT_MAX; do the check ourselves.
65640
65641         Import the following changes from libc:
65642
65643         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65644
65645         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65646         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65647         set wc to the byte which couldn't be converted.
65648         (re_string_reconstruct): Don't clear valid_raw_len before calling
65649         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65650         tip_context using re_string_context_at.
65651
65652         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65653
65654         * lib/posix/regex.h: g++ still cannot handled [restrict].
65655
65656         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65657
65658         * lib/posix/regex.h: Remove special handling for VMS.
65659
65660 2006-08-10  Jim Meyering  <jim@meyering.net>
65661
65662         * modules/same-inode: New module.
65663         * modules/dev-ino: New module.
65664         * modules/cycle-check: Depend on these modules, rather than simply
65665         including their .h files.
65666         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65667         required via m4/cycle-check.m4.
65668         * modules/same: Depend on new same-inode module, rather than
65669         including same-inode.h.
65670         * modules/chdir-safer: New file.
65671
65672         * modules/chown (Depends-on): Add stat-macros.
65673
65674 2006-08-10  Jim Meyering  <jim@meyering.net>
65675
65676         * m4/cycle-check.m4: New file.
65677         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65678         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65679
65680 2006-08-10  Eric Blake  <ebb9@byu.net>
65681
65682         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65683         in from original proposal.
65684
65685 2006-08-10  Eric Blake  <ebb9@byu.net>
65686         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65687
65688         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65689         namespace.
65690
65691 2006-08-10  Bruno Haible  <bruno@clisp.org>
65692
65693         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65694         as well.
65695
65696 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65697
65698         Sync from coreutils.
65699
65700         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65701
65702         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65703         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65704
65705 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65706
65707         * modules/restrict: Remove; no longer needed now that we assume
65708         Autoconf 2.59 or later.
65709         * MODULES.html.sh: Remove 'restrict'.
65710         * modules/argp (Depends-on): Remove 'restrict'.
65711         * modules/base64 (Depends-on): Likewise.
65712         * modules/gc (Depends-on): Likewise.
65713         * modules/getaddrinfo (Depends-on): Likewise.
65714         * modules/glob (Depends-on): Likewise.
65715         * modules/inet_ntop (Depends-on): Likewise.
65716         * modules/inet_pton (Depends-on): Likewise.
65717         * modules/memxor (Depends-on): Likewise.
65718         * modules/regex (Depends-on): Likewise.
65719         * modules/strtok_r (Depends-on): Likewise.
65720         * modules/time_r (Depends-on): Likewise.
65721
65722 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65723
65724         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65725         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65726         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65727         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65728         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65729         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65730         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65731         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65732
65733         Merge from coreutils.
65734         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65735         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65736         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65737         * m4/time_r.m4 (gl_TIME_R): Likewise.
65738
65739 2006-08-09  Karl Berry  <karl@gnu.org>
65740
65741         * config/srclist.txt: no more gettext-tools, per Bruno.
65742
65743 2006-08-08  Eric Blake  <ebb9@byu.net>
65744
65745         * modules/verror: New module.
65746         * MODULES.html.sh: Document it.
65747
65748 2006-08-08  Eric Blake  <ebb9@byu.net>
65749
65750         * lib/verror.h, lib/verror.c: New files.
65751
65752 2006-08-08  Eric Blake  <ebb9@byu.net>
65753
65754         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65755         verror_at_line output complies with GNU Coding Standards even when
65756         file is NULL.
65757
65758 2006-08-07  Bruno Haible  <bruno@clisp.org>
65759
65760         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65761         versions of AIX.
65762         Reported by Ralf Wildenhues.
65763
65764 2006-08-07  Bruno Haible  <bruno@clisp.org>
65765
65766         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65767         in an AC_DEFUN. Needed so that the autoconf snippets can use
65768         AC_REQUIRE.
65769
65770 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65771
65772         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65773         Initialize pkgdata_DATA.
65774         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65775         overriding it.
65776
65777 2006-08-06  Eric Blake  <ebb9@byu.net>
65778
65779         * lib/error.h: Fold in some upstream changes from glibc.
65780         * lib/error.c: Likewise.
65781
65782 2006-08-04  Bruno Haible  <bruno@clisp.org>
65783
65784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65785         Make the mostlyclean-local rule depend on mostlyclean-generic.
65786         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65787
65788 2006-07-31  Bruno Haible  <bruno@clisp.org>
65789
65790         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65791         <stdlib.h>, <string.h>.
65792
65793 2006-07-30  Bruno Haible  <bruno@clisp.org>
65794
65795         * modules/readlink (License): Change to LGPL.
65796
65797 2006-07-30  Bruno Haible  <bruno@clisp.org>
65798
65799         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65800         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65801         set PKGDATADIR to point to it.
65802
65803 2006-07-30  Bruno Haible  <bruno@clisp.org>
65804
65805         * modules/csharpexec (configure.ac): Comment out macro invocation.
65806         * modules/javaexec (configure.ac): Likewise.
65807         * modules/javacomp-script (configure.ac): Likewise.
65808
65809         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65810
65811 2006-07-30  Bruno Haible  <bruno@clisp.org>
65812
65813         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65814         linked-list.
65815
65816 2006-07-30  Bruno Haible  <bruno@clisp.org>
65817
65818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65819
65820 2006-07-30  Bruno Haible  <bruno@clisp.org>
65821
65822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65823         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65824         get removed.
65825
65826 2006-07-29  Bruno Haible  <bruno@clisp.org>
65827
65828         Make it possible for gnulib-tool to work with locally modified or
65829         augmented gnulib repositories.
65830         * gnulib-tool (func_usage): Document --local-dir option.
65831         (local_gnulib_dir): New variable.
65832         Handle --local-dir option.
65833         (func_lookup_file): New function.
65834         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65835         (func_get_description, func_get_filelist, func_get_description,
65836         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65837         func_get_automake_snippet, func_get_include_directive,
65838         func_get_license, func_get_maintainer): Use func_lookup_file.
65839         (func_import, func_create_testdir): Use func_lookup_file.
65840
65841 2006-07-29  Bruno Haible  <bruno@clisp.org>
65842
65843         * modules/setenv (Depends-on): Add unistd.
65844
65845 2006-07-29  Bruno Haible  <bruno@clisp.org>
65846
65847         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65848
65849 2006-07-29  Bruno Haible  <bruno@clisp.org>
65850
65851         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65852
65853 2006-07-29  Bruno Haible  <bruno@clisp.org>
65854
65855         * gnulib-tool (import, update): If there is no Makefile.am, look at
65856         aclocal.m4, instead of bailing out.
65857
65858 2006-07-29  Bruno Haible  <bruno@clisp.org>
65859
65860         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65861         Categorize the options by when they are useful.
65862
65863 2006-07-29  Bruno Haible  <bruno@clisp.org>
65864
65865         * gnulib-tool (func_usage): Document option --no-libtool.
65866         Handle option --no-libtool.
65867         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65868         for changed semantics of $libtool variable.
65869         (func_import): Likewise. If libtool is not used, show this through
65870         an option --no-libtool.
65871         (func_create_testdir): Update.
65872
65873 2006-07-29  Bruno Haible  <bruno@clisp.org>
65874
65875         * gnulib-tool (func_import): Extend error message about missing
65876         --doc-base.
65877
65878 2006-07-29  Bruno Haible  <bruno@clisp.org>
65879
65880         * gnulib-tool (func_import): Don't create the $docbase directory if
65881         there is no file to store there.
65882
65883 2006-07-29  Bruno Haible  <bruno@clisp.org>
65884
65885         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65886         relevant, look for configure.ac there, not in the current directory.
65887         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65888
65889 2006-07-29  Bruno Haible  <bruno@clisp.org>
65890
65891         * gnulib-tool (SORT): New variable.
65892         (func_usage): Undocument --assume-autoconf option.
65893         Remove --assume-autoconf option handling.
65894         (autoconf_minversion): Determine from the contents of configure.ac.
65895         (func_import): Remove autoconf_minversion handling.
65896         Suggested by Eric Blake.
65897
65898 2006-07-29  Bruno Haible  <bruno@clisp.org>
65899
65900         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65901
65902 2006-07-29  Bruno Haible  <bruno@clisp.org>
65903
65904         * config/srclist.txt (*setenv.[ch]): Remove rules.
65905
65906 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65907
65908         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65909
65910 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65911
65912         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65913         arpa/inet.h.
65914
65915 2006-07-28  Simon Josefsson  <jas@extundo.com>
65916
65917         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65918         * modules/inet_pton (Depends-on): Likewise.
65919
65920 2006-07-28  Simon Josefsson  <jas@extundo.com>
65921
65922         * m4/netinet_in_h.m4: New file.
65923
65924 2006-07-28  Simon Josefsson  <jas@extundo.com>
65925
65926         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65927         #include's.
65928
65929 2006-07-28  Simon Josefsson  <jas@extundo.com>
65930
65931         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65932         #include's.
65933
65934 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65935
65936         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65937         setgid on directories only if they set these bits.
65938         * lib/modechange.h: Remove obsolete comment about masks.
65939
65940 2006-07-28  Eric Blake  <ebb9@byu.net>
65941
65942         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65943         macro expansion.
65944
65945 2006-07-28  Bruno Haible  <bruno@clisp.org>
65946
65947         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
65948
65949 2006-07-28  Bruno Haible  <bruno@clisp.org>
65950
65951         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
65952
65953 2006-07-28  Bruno Haible  <bruno@clisp.org>
65954
65955         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
65956         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
65957         Define fallbacks.
65958         Avoids link error on FreeBSD 4.x.
65959         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
65960
65961         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
65962         encoding.
65963         * lib/mbswidth.c (iswcntrl): Likewise.
65964
65965 2006-07-27  Bruno Haible  <bruno@clisp.org>
65966
65967         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
65968         test.
65969
65970 2006-07-27  Bruno Haible  <bruno@clisp.org>
65971
65972         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
65973         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
65974         defined.
65975
65976 2006-07-26  Eric Blake  <ebb9@byu.net>
65977
65978         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
65979
65980 2006-07-26  Eric Blake  <ebb9@byu.net>
65981
65982         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
65983         like mingw that lack mkstemp.
65984         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
65985         avoid compilation warning on mingw.
65986
65987 2006-07-26  Bruno Haible  <bruno@clisp.org>
65988
65989         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
65990         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
65991         INT_FAST*_MIN, INTPTR_MIN.
65992
65993 2006-07-25  Bruno Haible  <bruno@clisp.org>
65994
65995         * modules/version-etc (Depends-on): Add stdarg.
65996
65997 2006-07-25  Bruno Haible  <bruno@clisp.org>
65998
65999         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66000         complex commands.
66001
66002 2006-07-25  Bruno Haible  <bruno@clisp.org>
66003
66004         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66005         defined in <stdarg.h> or config.h.
66006
66007 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66008
66009         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66010         (gl_STDIO_SAFER): Remove.
66011
66012 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66013
66014         * MODULES.html.sh (File stream based Input/Output):
66015         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66016         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66017         * modules/fopen-safer, modules/tmpfile-safer: New files.
66018         * modules/stdio-safer: Remove.
66019
66020 2006-07-24  Bruno Haible  <bruno@clisp.org>
66021
66022         * modules/tmpdir: New file.
66023         * MODULES.html.sh (File system functions): Add it.
66024
66025 2006-07-24  Bruno Haible  <bruno@clisp.org>
66026
66027         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66028         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66029
66030 2006-07-24  Bruno Haible  <bruno@clisp.org>
66031
66032         * modules/clean-temp: New file.
66033
66034 2006-07-24  Bruno Haible  <bruno@clisp.org>
66035
66036         * m4/tmpdir.m4: New file, from GNU gettext.
66037
66038 2006-07-24  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/tmpdir.h: New file, from GNU gettext.
66041         * lib/tmpdir.c: New file, from GNU gettext.
66042
66043 2006-07-24  Bruno Haible  <bruno@clisp.org>
66044
66045         * lib/clean-temp.h: New file, from GNU gettext.
66046         * lib/clean-temp.c: New file, from GNU gettext.
66047
66048 2006-07-23  Eric Blake  <ebb9@byu.net>
66049
66050         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66051         (Depends-on): Add binary-io.
66052
66053 2006-07-23  Eric Blake  <ebb9@byu.net>
66054
66055         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66056
66057 2006-07-23  Eric Blake  <ebb9@byu.net>
66058
66059         * lib/tmpfile-safer.c: New file.
66060         * lib/stdio-safer.h (fopen_safer): Add prototype.
66061         * lib/stdio--.h (tmpfile): Make safer.
66062
66063 2006-07-23  Bruno Haible  <bruno@clisp.org>
66064
66065         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66066         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66067         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66068         gl_linked_remove_at): Use it.
66069
66070 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66071         and Simon Josefsson <jas@extundo.com>
66072
66073         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66074
66075         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66076
66077 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66078
66079         * modules/close-stream: New file.
66080         * modules/closeout (Description): Make it clear that it exits
66081         with a diagnostic on error.
66082         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66083         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66084
66085 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66086
66087         * m4/close-stream.m4: New file.
66088
66089 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66090
66091         * lib/close-stream.c, lib/close-stream.h: New files.
66092
66093 2006-07-22  Bruno Haible  <bruno@clisp.org>
66094
66095         Merge from GNU gettext 0.15.
66096
66097         2006-05-01  Bruno Haible  <bruno@clisp.org>
66098
66099                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66100
66101         2006-07-22  Bruno Haible  <bruno@clisp.org>
66102
66103                 * modules/javaversion: New file.
66104                 * MODULES.html.sh (Java): Add javaversion.
66105
66106         2006-03-12  Bruno Haible  <bruno@clisp.org>
66107
66108                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66109
66110         2005-12-04  Bruno Haible  <bruno@clisp.org>
66111
66112                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66113                 (untested).
66114
66115         2006-06-21  Bruno Haible  <bruno@clisp.org>
66116
66117                 Avoid warnings from recent versions of mcs.
66118                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66119                 -o, -L, -r any more. Use options documented since mcs-1.0
66120                 instead. Similarly for -g.
66121
66122         2005-12-04  Bruno Haible  <bruno@clisp.org>
66123
66124                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66125                 .resources, not .resource.
66126
66127         2005-07-09  Bruno Haible  <bruno@clisp.org>
66128
66129                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66130                 add a .dll suffix.
66131                 Reported by Mark Junker <mjscod@gmx.de>.
66132
66133         2006-07-22  Bruno Haible  <bruno@clisp.org>
66134
66135                 * modules/gettext: Upgrade to gettext-0.15.
66136                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66137                 m4/visibility.m4.
66138                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66139
66140 2006-07-22  Bruno Haible  <bruno@clisp.org>
66141
66142         Merge from GNU gettext 0.15.
66143
66144         2006-03-25  Bruno Haible  <bruno@clisp.org>
66145
66146                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66147
66148         2006-07-21  Bruno Haible  <bruno@clisp.org>
66149
66150                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66151                 "1.1".
66152
66153         2006-05-09  Bruno Haible  <bruno@clisp.org>
66154
66155                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66156                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66157                 for the conftestver execution.
66158
66159         2006-05-01  Bruno Haible  <bruno@clisp.org>
66160
66161                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66162                 optional target-version argument. Verify that the compiler
66163                 groks source of the specified source-version, or add -source
66164                 option as necessary. Verify that the compiler produces
66165                 bytecode in the specified target-version, or add -target and
66166                 -source options as necessary. Make the result of the test
66167                 available as variable CONF_JAVAC. Also log error output in
66168                 config.log.
66169
66170         2006-03-11  Bruno Haible  <bruno@clisp.org>
66171
66172                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66173
66174         2006-05-09  Bruno Haible  <bruno@clisp.org>
66175
66176                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66177                 CLASSPATH_SEPARATOR to a semicolon.
66178
66179         2006-03-12  Bruno Haible  <bruno@clisp.org>
66180
66181                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66182                 available as variable CONF_JAVA, for subsequent autoconf
66183                 tests. Also log error output in config.log.
66184
66185         2006-07-19  Bruno Haible  <bruno@clisp.org>
66186
66187                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66188                 that getline works on glibc2 systems. Needed to avoid trouble
66189                 in relocatable.c.
66190                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66191
66192         2005-12-04  Bruno Haible  <bruno@clisp.org>
66193
66194                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66195                 launcher (untested).
66196
66197         2005-12-04  Bruno Haible  <bruno@clisp.org>
66198
66199                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66200
66201         2006-07-22  Bruno Haible  <bruno@clisp.org>
66202
66203                 * gettext.m4: Update from GNU gettext-0.15.
66204                 * nls.m4: Likewise.
66205                 * po.m4: Likewise.
66206                 * inttypes-pri.m4: Likewise.
66207                 * inttypes-h.m4: Renamed from inttypes.m4.
66208                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66209
66210 2006-07-22  Bruno Haible  <bruno@clisp.org>
66211
66212         Merge from GNU gettext 0.15.
66213
66214         2005-07-05  Bruno Haible  <bruno@clisp.org>
66215
66216                 * printf-args.c (printf_fetchargs): Work around broken
66217                 definition of wint_t on mingw.
66218
66219         2005-02-12  Bruno Haible  <bruno@clisp.org>
66220
66221                 * xallocsa.h: Add extern "C" for C++.
66222
66223         2006-05-17  Bruno Haible  <bruno@clisp.org>
66224
66225                 Cygwin portability.
66226                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66227
66228         2006-04-30  Bruno Haible  <bruno@clisp.org>
66229
66230                 * progreloc.c: Include <mach-o/dyld.h> if available.
66231                 (find_executable): Use _NSGetExecutablePath when possible.
66232
66233         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66234
66235                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66236                 function.
66237
66238         2005-12-29  Bruno Haible  <bruno@clisp.org>
66239
66240                 * progreloc.c (set_program_name_and_installdir): Fix
66241                 compilation error.
66242
66243         2005-12-04  Bruno Haible  <bruno@clisp.org>
66244
66245                 Cygwin portability.
66246                 * progreloc.c: Include <windows.h> also on Cygwin.
66247                 (find_executable): Add support for Cygwin.
66248                 (set_program_name_and_installdir): Handle also platforms with
66249                 nonempty EXEEXT.
66250
66251         2006-07-11  Bruno Haible  <bruno@clisp.org>
66252
66253                 * javacomp.c: Fix a comment.
66254                 Reported by Jim Meyering.
66255
66256         2006-04-30  Bruno Haible  <bruno@clisp.org>
66257
66258                 * javacomp.h (compile_java_class): Add source_version,
66259                 target_version arguments.
66260                 * javacomp.c: Rewritten to choose only a compiler that
66261                 respects the specified source_version and target_version.
66262
66263         2006-06-27  Bruno Haible  <bruno@clisp.org>
66264
66265                 Assume correct S_ISDIR macro.
66266                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66267
66268         2006-07-22  Bruno Haible  <bruno@clisp.org>
66269
66270                 * javaversion.h: New file, from GNU gettext.
66271                 * javaversion.c: New file, from GNU gettext.
66272                 * javaversion.java: New file, from GNU gettext.
66273                 * javaversion.class: New file, from GNU gettext.
66274
66275         2006-05-17  Bruno Haible  <bruno@clisp.org>
66276
66277                 Cygwin portability.
66278                 * javaexec.c (execute_java_class): Test for jview program
66279                 also on Cygwin.
66280
66281         2006-04-09  Bruno Haible  <bruno@clisp.org>
66282
66283                 * fatal-signal.c: Don't include string.h.
66284                 (at_fatal_signal): Use a copying loop instead of memcpy.
66285
66286         2005-12-04  Bruno Haible  <bruno@clisp.org>
66287
66288                 * csharpexec.c: Add support for 'clix' launcher (untested).
66289                 (execute_csharp_using_sscli): New function.
66290                 (execute_csharp_program): Call it.
66291
66292         2006-06-21  Bruno Haible  <bruno@clisp.org>
66293
66294                 Avoid warnings from recent versions of mcs.
66295                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66296                 -o, -L, -r any more. Use options documented since mcs-1.0
66297                 instead. Similarly for -g.
66298
66299         2005-07-09  Bruno Haible  <bruno@clisp.org>
66300
66301                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66302                 add a .dll suffix.
66303                 Reported by Mark Junker <mjscod@gmx.de>.
66304
66305         2006-06-17  Bruno Haible  <bruno@clisp.org>
66306
66307                 * config.charset: Update for NetBSD 3.0.
66308
66309         2006-05-17  Bruno Haible  <bruno@clisp.org>
66310
66311                 Cygwin portability.
66312                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66313
66314         2006-05-16  Bruno Haible  <bruno@clisp.org>
66315
66316                 * localcharset.c [CYGWIN]: Include <windows.h>.
66317                 (get_charset_aliases): For Cygwin, return the same CPxxx
66318                 aliases list as under WIN32.
66319                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66320                 the environment variables. Fall back to GetACP().
66321
66322         2006-04-05  Bruno Haible  <bruno@clisp.org>
66323
66324                 * config.charset: Update Juan Manuel Guerrero's address.
66325
66326         2005-02-12  Bruno Haible  <bruno@clisp.org>
66327
66328                 * allocsa.h: Add extern "C" for C++.
66329
66330         2005-02-10  Bruno Haible  <bruno@clisp.org>
66331
66332                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66333                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66334
66335         2006-07-22  Bruno Haible  <bruno@clisp.org>
66336
66337                 * gettext.h: Update to GNU gettext-0.15.
66338
66339 2006-07-22  Bruno Haible  <bruno@clisp.org>
66340
66341         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66342         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66343         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66344
66345 2006-07-21  Eric Blake  <ebb9@byu.net>
66346
66347         * modules/stdlib-safer: New file.
66348         * MODULES.html.sh (File stream based Input/Output): Add
66349         stdlib-safer.
66350
66351 2006-07-21  Eric Blake  <ebb9@byu.net>
66352
66353         * lib/stdlib-safer.h: New file from coreutils, required by
66354         stdlib--.h.
66355
66356 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66357
66358         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66359
66360 2006-07-20  Bruno Haible  <bruno@clisp.org>
66361
66362         * gnulib-tool: Recognize new option --assume-autoconf.
66363         (autoconf_minversion): New variable.
66364         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66365
66366 2006-07-20  Bruno Haible  <bruno@clisp.org>
66367
66368         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66369
66370 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66371
66372         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66373         Reindent and repaginate.
66374
66375 2006-07-19  Derek Price  <derek@ximbiot.com>
66376
66377         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66378         Correct grammar.
66379
66380 2006-07-17  Bruno Haible  <bruno@clisp.org>
66381
66382         * modules/list: New file.
66383         * modules/array-list: New file.
66384         * modules/carray-list, modules/carray-list-tests: New files.
66385         * modules/linked-list, modules/linked-list-tests: New files.
66386         * modules/avltree-list, modules/avltree-list-tests: New files.
66387         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66388         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66389         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66390         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66391         * modules/oset: New file.
66392         * modules/array-oset: New file.
66393         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66394         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66395         * tests/test-carray_list.c: New file.
66396         * tests/test-linked_list.c: New file.
66397         * tests/test-avltree_list.c: New file.
66398         * tests/test-rbtree_list.c: New file.
66399         * tests/test-linkedhash_list.c: New file.
66400         * tests/test-avltreehash_list.c: New file.
66401         * tests/test-rbtreehash_list.c: New file.
66402         * tests/test-avltree_oset.c: New file.
66403         * tests/test-rbtree_oset.c: New file.
66404         * MODULES.html.sh (Container data structures): New section.
66405
66406 2006-07-17  Bruno Haible  <bruno@clisp.org>
66407
66408         * m4/gl_list.m4: New file.
66409
66410 2006-07-17  Bruno Haible  <bruno@clisp.org>
66411
66412         * lib/gl_list.h: New file.
66413         * lib/gl_list.c: New file.
66414         * lib/gl_array_list.h: New file.
66415         * lib/gl_array_list.c: New file.
66416         * lib/gl_carray_list.h: New file.
66417         * lib/gl_carray_list.c: New file.
66418         * lib/gl_linked_list.h: New file.
66419         * lib/gl_linked_list.c: New file.
66420         * lib/gl_anylinked_list1.h: New file.
66421         * lib/gl_anylinked_list2.h: New file.
66422         * lib/gl_avltree_list.h: New file.
66423         * lib/gl_avltree_list.c: New file.
66424         * lib/gl_anyavltree_list1.h: New file.
66425         * lib/gl_anyavltree_list2.h: New file.
66426         * lib/gl_rbtree_list.h: New file.
66427         * lib/gl_rbtree_list.c: New file.
66428         * lib/gl_anyrbtree_list1.h: New file.
66429         * lib/gl_anyrbtree_list2.h: New file.
66430         * lib/gl_anytree_list1.h: New file.
66431         * lib/gl_anytree_list2.h: New file.
66432         * lib/gl_linkedhash_list.h: New file.
66433         * lib/gl_linkedhash_list.c: New file.
66434         * lib/gl_anyhash_list1.h: New file.
66435         * lib/gl_anyhash_list2.h: New file.
66436         * lib/gl_avltreehash_list.h: New file.
66437         * lib/gl_avltreehash_list.c: New file.
66438         * lib/gl_rbtreehash_list.h: New file.
66439         * lib/gl_rbtreehash_list.c: New file.
66440         * lib/gl_anytreehash_list1.h: New file.
66441         * lib/gl_anytreehash_list2.h: New file.
66442
66443         * lib/gl_oset.h: New file.
66444         * lib/gl_oset.c: New file.
66445         * lib/gl_array_oset.h: New file.
66446         * lib/gl_array_oset.c: New file.
66447         * lib/gl_avltree_oset.h: New file.
66448         * lib/gl_avltree_oset.c: New file.
66449         * lib/gl_rbtree_oset.h: New file.
66450         * lib/gl_rbtree_oset.c: New file.
66451         * lib/gl_anytree_oset.h: New file.
66452
66453 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66454
66455         * m4/mkancesdirs.m4: New file.
66456         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66457         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66458         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66459         it.
66460
66461 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66462
66463         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66464         * lib/mkancesdirs.h: New files.
66465         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66466         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66467         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66468         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66469         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66470         callers changed.  Revamp internals significantly, by not
66471         attempting to create directories that are temporarily more
66472         permissive than the final results.  Do not attempt to use
66473         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66474         This removes some race conditions, fixes some bugs, and simplifies
66475         things.  Use new dirchownmod function to do owner and mode changes.
66476         * lib/mkdir-p.h: Likewise.
66477         * lib/modechange.c (octal_to_mode): New function.
66478         (struct mode_change): New member mentioned.
66479         (make_node_op_equals): New arg mentioned.  All callers changed.
66480         (mode_compile): Keep track of which mode bits the user has explicitly
66481         mentioned.
66482         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66483         New arg PMODE_BITS, to keep track of which mode bits the user
66484         mentioned; it treats S_ISUID and S_ISGID speciall.
66485         All callers changed.
66486         * lib/modechange.h: Likewise.
66487
66488 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66489
66490         * MODULES.html.sh: Add mkancestors.
66491         * modules/mkancesdirs: New module.
66492         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66493         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66494         The chdir-safer and afs files are now orphans; I'll remove them
66495         unless someone speaks up.
66496         Add lib/dirchownmod.c, lib/dirchownmod.h.
66497         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66498         Add lchown, mkancesdirs.
66499         (Maintainer): Add self.
66500
66501 2006-07-15  Karl Berry  <karl@gnu.org>
66502
66503         * gnulib-tool: help message wording/arrangement.
66504
66505 2006-07-14  Simon Josefsson  <jas@extundo.com>
66506
66507         * doc/gnulib.texi (Libtool and Windows): New section.
66508
66509 2006-07-12  Simon Josefsson  <jas@extundo.com>
66510
66511         * modules/gendocs (License): Fix license, approved by Karl.
66512
66513 2006-07-12  Eric Blake  <ebb9@byu.net>
66514
66515         * MODULES.html.sh: Add gendocs.
66516
66517 2006-07-11  Eric Blake  <ebb9@byu.net>
66518
66519         * modules/fdl: New module, to install doc/fdl.texi.
66520         * MODULES.html.sh: Add new section for documentation modules.
66521         * gnulib-tool: Avoid space-tab.
66522         (--doc-base): New option, to manage files from doc.
66523
66524 2006-07-11  Eric Blake  <ebb9@byu.net>
66525
66526         * m4/absolute-header.m4: Fix comments to match recent change.
66527
66528 2006-07-11  Eric Blake  <ebb9@byu.net>
66529
66530         * gnulib-tool: List --doc-base before --tests-base.
66531
66532 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66533
66534         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66535
66536 2006-07-11  Bruno Haible  <bruno@clisp.org>
66537
66538         * README: Mention where to put documentation.
66539
66540 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66541
66542         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66543
66544 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66545
66546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66547         to stdint.m4.
66548
66549 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66550
66551         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66552         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66553         "no/such/file/stdint.h" when there is no such file, so that
66554         the resulting C code can be parsed by dodgy compilers.
66555         Problems reported by Bob Proulx.
66556
66557 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66558
66559         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66560         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66561         macros into the GNU _D_EXACT_NAMLEN.
66562         * lib/savedir.c:  Likewise.
66563         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66564
66565 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66566         and Paul Eggert  <eggert@cs.ucla.edu>
66567
66568         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66569         * m4/savedir.m4:
66570         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66571         macros into the GNU _D_EXACT_NAMLEN.
66572
66573 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66574
66575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66576         around the absolute name, to work around a problem with the HP-UX
66577         11.23 native C compiler, reported by Bob Proulx.
66578
66579 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66580
66581         * doc/maintain.texi, make-stds.texi: Sync from
66582         <http://savannah.gnu.org/projects/gnustandards>.
66583
66584 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66585
66586         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66587
66588 2006-07-09  Jim Meyering  <jim@meyering.net>
66589
66590         * m4/glob.m4: Remove a doubled word in a comment.
66591
66592 2006-07-09  Jim Meyering  <jim@meyering.net>
66593
66594         * lib/argp-pv.c: Remove a doubled word in a comment.
66595         * lib/check-version.c (check_version): Likewise.
66596         * lib/javacomp.c (compile_java_class): Likewise.
66597
66598 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66599
66600         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66601         for the benefit of people using Autoconf 2.60.  If you want to
66602         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66603         (or m4/onceonly.m4, if pre-2.57) manually.
66604
66605 2006-07-08  Jim Meyering  <jim@meyering.net>
66606
66607         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66608         comment.
66609         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66610         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66611         comment.
66612
66613 2006-07-08  Jim Meyering  <jim@meyering.net>
66614
66615         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66616
66617 2006-07-07  Simon Josefsson  <jas@extundo.com>
66618
66619         * tests/test-crc.c: Change expected crc value, the test vector
66620         were probably computed using the old broken crc.c?
66621
66622 2006-07-06  Simon Josefsson  <jas@extundo.com>
66623
66624         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66625         now the canonical place for the M4 file).
66626
66627         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66628         from the sys_socket dependency now.
66629
66630         * modules/inet_pton (Files): Ditto.
66631
66632         * modules/inet_ntop (Files): Ditto.
66633
66634 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66635
66636         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66637         not gl_PREREQ_GETUSERSHELL.
66638
66639 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66640
66641         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66642         with only one argument, for Autoconf 2.60.
66643         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66644         expand to nothing, so add a shell command to avoid syntax error.
66645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66646
66647 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66648
66649         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66650
66651 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66654         no longer needed.  Check for isblank decl.
66655         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66656         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66657         of existence.
66658
66659 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66660
66661         * lib/getloadavg.c: Use __VMS, not VMS.
66662         * lib/getopt.c: Likewise.
66663         * lib/getpagesize.h: Likewise.
66664         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66665         and probably does not work.
66666
66667 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66668
66669         * lib/.cppi-disable: Add wcwidth.
66670         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66671         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66672         (ISGRAPH): Remove.  All uses changed to isgraph.
66673         (FOLD) [!defined _LIBC]: Remove special case.
66674         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66675         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66676         HAVE_ISBLANK.
66677         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66678         case.
66679
66680 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66681
66682         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66683         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66684         brackets.  Other minor changes to suppress some compiler
66685         warnings.
66686
66687 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66688         and Paul Eggert  <eggert@cs.ucla.edu>
66689
66690         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66691         of invoking obsolescent AC_HEADER_DIRENT macro.
66692         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66693         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66694         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66695         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66696         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66697         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66698         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66699         * m4/readdir.m4: Remove; no longer needed.
66700
66701 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66702         and Paul Eggert  <eggert@cs.ucla.edu>
66703
66704         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66705         Don't worry about this obsolete case any more.
66706         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66707         directories.
66708         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66709         worry about this obsolete case any more.
66710         * lib/fts.c: Likewise.
66711         * lib/getcwd.c: Likewise.
66712         * lib/glob.h: Likewise.
66713         * lib/savedir.c: Likewise.
66714
66715 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66716
66717         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66718         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66719         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66720         needed.
66721         All uses removed.
66722         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66723         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66724         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66725         needed.
66726         * m4/getdate.m4 (gl_GETDATE): Likewise.
66727         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66728         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66729         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66730         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66731         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66732         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66733         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66734         needed.
66735
66736 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66737
66738         * lib/memcasecmp.c: Include <limits.h>.
66739         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66740         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66741         Don't assume isdigit succeeds only on '0' through '9'.
66742
66743 2006-07-05  Eric Blake  <ebb9@byu.net>
66744
66745         * modules/getaddrinfo (Depends-on): Add snprintf.
66746
66747 2006-07-05  Eric Blake  <ebb9@byu.net>
66748
66749         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66750         to avoid 'header present but could not be compiled' on cygwin.
66751
66752 2006-07-05  Eric Blake  <ebb9@byu.net>
66753
66754         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66755         missing from netdb.h.
66756         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66757
66758 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66759
66760         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66761         no longer needed.
66762         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66763         * m4/getdate.m4 (gl_GETDATE): Likewise.
66764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66765         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66766         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66768         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66769
66770 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66771
66772         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66773         All uses of is_space replaced by isspace.
66774         * lib/exit.h: Don't talk about STDC_HEADERS.
66775         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66776         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66777         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66778         replaced by isprint etc.
66779         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66780         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66781         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66782         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66783         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66784         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66785
66786 2006-07-05  Bruno Haible  <bruno@clisp.org>
66787
66788         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66789         the function exists, before testing against AIX.
66790         Reported by Martin Lambers <marlam@marlam.de>.
66791
66792 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66793
66794         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66795         From Mark D. Baushke.
66796
66797 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66798
66799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66800         to the absolute name, not just one, to bypass Sun C 5.8's
66801         "warning: #include of /usr/include/... may be non-portable".
66802
66803 2006-07-04  Eric Blake  <ebb9@byu.net>
66804
66805         * modules/dirname-tests: New test module.
66806         * tests/test-dirname.c: New file, replacing dirname.c
66807         TEST_DIRNAME section that was recently deleted.
66808
66809 2006-07-04  Bruno Haible  <bruno@clisp.org>
66810
66811         Assume ANSI C header files and <ctype.h> functions.
66812         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66813         (mbsnwidth): Use isprint, iscntrl instead.
66814
66815 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66816
66817         Merge from coreutils.
66818         * MODULES.html.sh: Add xstrtold.
66819         * modules/xstrtold: New file.
66820         * modules/cycle-check (Files): Add lib/same-inode.h.
66821         * modules/dirname (Files): Add m4/double-slash-root.m4.
66822         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66823         * modules/mkdir-p (Files): Add lib/same-inode.h.
66824         * modules/same (Files): Add lib/same-inode.h.
66825
66826 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66827
66828         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66829         This is to keep the terminology clean; POSIX talks about
66830         "absolute pathnames", not "full pathnames", but the GNU
66831         Coding Standards say to use "path" for something else;
66832         so use "absolute" to keep both sides happy.
66833         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66834         Set gl_absolute_header, not gl_full_header_path.
66835         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66836         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66837         All uses changed.
66838
66839         Merge from coreutils.
66840
66841         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66842
66843         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66844         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66845         want to require the building of c-strtod.o.
66846         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66847         needs -lm directly.
66848         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66849
66850         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66851
66852         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66853         --as-needed option if available.  Problem reported by Albert Chin in
66854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66855         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66856         cc merely issues a bunch of annoying warnings for --as-needed
66857         (this problem was reported by Bob Proulx).  Also, try linking with
66858         -lm to detect a bug in binutils 2.16 (this problem was reported
66859         by Ralf Wildenhues).
66860
66861         2006-06-18  Jim Meyering  <jim@meyering.net>
66862
66863         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66864         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66865         macro.
66866         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66867         also check for glibc-2.4's abort-inducing bug.
66868
66869         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66870         Low-probability clean-up should be to use rmdir to get rid of
66871         the just-created directory, not unlink.
66872
66873         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66874         configure fail, and request a bug report to inform us about it.
66875         Add a comment that, barring reports to the contrary, in 2007 we'll
66876         assume ftruncate is universally available.
66877
66878         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66879
66880         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66881
66882         2006-03-12  Jim Meyering  <jim@meyering.net>
66883
66884         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66885         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66886         * m4/same.m4 (gl_SAME): Likewise.
66887         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66888
66889         2006-03-11  Eric Blake  <ebb9@byu.net>
66890
66891         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66892         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66893         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66894         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66895
66896 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66897
66898         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66899         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66900         reported by Mark D. Baushke, one in
66901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66902
66903         Merge from coreutils.
66904
66905         * lib/.cppi-disable: Add stdint_.h.
66906         * lib/.cvsignore: Add stdint.h.
66907
66908         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66909
66910         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66911         both double and long double versions.
66912         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66913         * lib/xstrtold.c: New file.
66914         * lib/xstrtod.h (xstrtold): New decl.
66915
66916         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66917
66918         * lib/filemode.c (setst): Remove.
66919         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66920         (arguably) clearer, and the generated code is a bit smaller on my
66921         Debian GNU/Linux stable x86 host.
66922
66923         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66924
66925         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66926         Assume that filemode.h includes sys/types.h and sys/stat.h.
66927         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66928         (ftypelet): Reorder to put common cases first, for efficiency.
66929         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66930         to do 'M'.
66931         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66932         of 10, for compatibility with FreeBSD.  All callers changed.
66933         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66934         types that can't be deduced solely from st_mode.  First arg is now a
66935         const pointer.
66936         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66937         (strmode): Renamed from mode_string.
66938         (filemodestring): New decl.
66939         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66940         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66941         needed.
66942         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66943
66944         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66945
66946         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
66947         fsusage.h now does that.  Include fsusage.h first, to test interface.
66948         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
66949         at most one method (the old code could have generated decls that
66950         didn't conform to C89, not that this was ever exercised).
66951         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
66952
66953         2006-03-19  Jim Meyering  <jim@meyering.net>
66954
66955         Work even in a chroot where d_ino values for entries in "/"
66956         don't match the stat.st_ino values for the same names.
66957         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
66958         number, iterate through all entries again, using lstat instead.
66959         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
66960         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
66961
66962         * lib/getcwd.c (__getcwd): Clarify a comment.
66963         Use memcpy in place of a call to strcpy.
66964
66965         2006-03-12  Jim Meyering  <jim@meyering.net>
66966
66967         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
66968         matches that of the current directory (which we're about to chdir ".."
66969         out of), then save the dev-ino of the parent, instead.
66970
66971         * lib/same-inode.h (SAME_INODE): New file/macro.
66972         * lib/chdir-safer.c (SAME_INODE): Remove definition.
66973         Include "same-inode.h", instead.
66974         * lib/same.c: Likewise.
66975         * lib/cycle-check.h: Include "same-inode.h".
66976         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
66977         * lib/cycle-check.c (SAME_INODE): Remove definition.
66978         * lib/root-dev-ino.h: Include "same-inode.h".
66979
66980         2006-03-11  Eric Blake  <ebb9@byu.net>
66981
66982         * lib/same.c (same_name): s/base_name/last_component/
66983         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
66984         * lib/filenamecat.c (file_name_concat): Likewise.
66985
66986         2006-03-11  Eric Blake  <ebb9@byu.net>,
66987                     Paul Eggert  <eggert@cs.ucla.edu>
66988
66989         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
66990         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
66991         drive prefix.
66992         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
66993         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
66994         (last_component): New method.
66995         * lib/dirname.c (dir_len): Determine when drive letters need a
66996         subsequent slash.  Preserve // when it is special.
66997         (dir_name): Don't append dot when drive letter is absolute.
66998         [TEST_DIRNAME]: Move into a full-blown gnulib test.
66999         * lib/basename.c (base_name): New semantics - malloc the result.
67000         Preserve // when it is special.  Preserve relative files that look
67001         like drive letters.
67002         (base_len): Preserve // when it is special.
67003         (last_component): New method, similar to old base_name semantics.
67004         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67005         base_name.  Strip redundant slashes from ///.
67006
67007 2006-07-03  Jim Meyering  <jim@meyering.net>
67008
67009         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67010         macro is used before the first cycle_check call.
67011
67012 2006-07-03  Eric Blake  <ebb9@byu.net>
67013
67014         * modules/dirname (Depends-on): Add xstrndup.
67015
67016 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67017
67018         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67019         test cases, so that config.log is a bit easier to follow.
67020
67021 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67022
67023         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67024         both are 64 bits, since this seems to be the tradition, and this
67025         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67026         we ever run into a host that prefers long long to long in this
67027         case, we'll need another configure-time test.  Problem reported by
67028         Jim Meyering.
67029
67030 2006-07-02  Eric Blake  <ebb9@byu.net>
67031
67032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67033
67034 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67035
67036         * modules/inttypes (Depends-on): No longer depends on stdint.
67037         * modules/stdint (Description): Say more about assumptions.
67038         Say that the fast types might differ.  Say macros are used.
67039         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67040         (Makefile.am): Revise list of substituted symbols to match
67041         new stdint.m4.
67042         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67043         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67044         * tests/test-stdint.c (verify_same_types)
67045         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67046         the code conforms to C99/C89.
67047         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67048         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67049
67050 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67051
67052         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67053         but fix a bug, by requiring at least 64 bits.
67054         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67055         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67056         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67057         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67058
67059         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67060         changes.  Make 2.59 a prerequisite.  Check and substitute for
67061         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67062         inttypes.h.  Do not use special include files; just use the
67063         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67064         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67065         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67066         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67067         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67068         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67069         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67070         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67071         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67072         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67073         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67074         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67075         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67076         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67077         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67078         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67079         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67080         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67081         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67082         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67083         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67084         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67085         not check for things that C99 does not require, e.g., int8_t.  If
67086         a test isn't needed unless <stdint.h> isn't working, and is
67087         unlikely to be needed for any other reason, then don't do it
67088         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67089         size_t, since we assume C89 freestanding at least.  Do not check
67090         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67091         the right thing even if the types are not defined.  Instead use:
67092         (gl_STDINT_TYPE_PROPERTIES): New macro.
67093         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67094         testing whether <sys/types.h> clashes, as Autoconf does this for
67095         us now.  All uses removed.
67096         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67097         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67098         (gl_CHECK_TYPE_SAME):
67099         Remove; no longer needed.
67100         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67101         exists, since we'll return 0 anyway in that case.
67102         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67103
67104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67105
67106         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67107         possible collision with system files.
67108         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67109         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67110         WCHAR_MIN and WCHAR_MAX in this case.
67111         (<stddef.h>): Do not include; no longer needed.
67112         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67113         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67114         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67115         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67116         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67117         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67118         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67119         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67120         !defined(__c99))]: Include in this case too, since it's harmless
67121         now.
67122         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67123         dangerous to do so.
67124         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67125         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67126         (_STDINT_MIN, _STDINT_MAX): New macros.
67127         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67128         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67129         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67130         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67131         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67132         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67133         macros, not typedefs; this simplifies things quite a bit.
67134         Use long int for all types narrower than int64_t.
67135         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67136         Define in terms of long long int or int64_t or long int,
67137         not int64_t or int32_t.  This saves some compile-time testing.
67138         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67139         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67140         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67141         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67142         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67143         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67144         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67145         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67146         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67147         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67148         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67149         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67150         undef any previous version and define our own version, for
67151         simplicity and consistency with the new macros for types.
67152         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67153         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67154         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67155         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67156         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67157         @WINT_T_SUFFIX@ to keep things simple here.
67158         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67159         Simplify by assuming typical 8/16/32/64 host, since we're
67160         already doing that elsewhere anyway.
67161         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67162         and assume long long int is 64 bits if available.  This
67163         speeds up 'configure'.
67164
67165 2006-07-01  Eric Blake  <ebb9@byu.net>
67166
67167         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67168         Reported by Andreas Buening.
67169
67170 2006-07-01  Eric Blake  <ebb9@byu.net>
67171
67172         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67173
67174 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67175
67176         * lib/getaddrinfo.c: fixed typo
67177
67178 2006-06-29  Jim Meyering  <jim@meyering.net>
67179
67180         * modules/strftime (Maintainer): Add my name, since with the
67181         FPRINTFTIME changes strftime.c has forked from glibc.
67182
67183 2006-06-29  Eric Blake  <ebb9@byu.net>
67184
67185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67186
67187 2006-06-29  Eric Blake  <ebb9@byu.net>
67188
67189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67190
67191 2006-06-29  Eric Blake  <ebb9@byu.net>
67192
67193         * lib/stat_.h: New file.
67194
67195 2006-06-29  Eric Blake  <ebb9@byu.net>
67196
67197         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67198         unused static function.
67199
67200 2006-06-29  Eric Blake  <ebb9@byu.net>
67201
67202         * doc/functions.texi (Function Portability): Document missing lstat
67203         on mingw.
67204
67205 2006-06-29  Eric Blake  <ebb9@byu.net>
67206
67207         * MODULES.html.sh: Add sys_stat.
67208         * modules/sys_stat: New module.
67209         * modules/mkstemp (Depends-on): Add sys_stat.
67210
67211 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67212
67213         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67214
67215 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67216
67217         * m4/c-bs-a.m4: Removed.
67218
67219 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67220
67221         * lib/strftime.c: Assume strftime() exists.
67222
67223 2006-06-29  Derek Price  <derek@ximbiot.com>
67224
67225         * modules/c-bs-a: Removed - \a is C89.
67226         * MODULES.html.sh: Remove c-bs-a.
67227
67228 2006-06-29  Bruno Haible  <bruno@clisp.org>
67229
67230         * modules/wcwidth (License): Change to LGPL.
67231
67232 2006-06-28  Simon Josefsson  <jas@extundo.com>
67233
67234         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67235         on _WIN32.
67236
67237         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67238         getnameinfo.
67239
67240 2006-06-28  Simon Josefsson  <jas@extundo.com>
67241
67242         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67243
67244 2006-06-28  Simon Josefsson  <jas@extundo.com>
67245
67246         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67247         functions there.  It will succeed on Windows XP, but on Windows
67248         2000 and (presumably) earlier, it will fail, and use the internal
67249         re-implementation.
67250         (use_win32_p): New function.
67251         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67252         Support AI_NUMERICSERV to disable getservbyname.
67253         (getnameinfo): New function, only supports
67254         NI_NUMERICHOST|NI_NUMERICSERV for now.
67255
67256         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67257         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67258         getnameinfo.
67259
67260 2006-06-28  Eric Blake  <ebb9@byu.net>
67261
67262         * modules/wcwidth: New file.
67263         * modules/mbchar (Depends-on): Add wcwidth.
67264         * modules/mbswidth (Depends-on): Add wcwidth.
67265         * MODULES.html.sh: Add wcwidth.
67266
67267 2006-06-28  Eric Blake  <ebb9@byu.net>
67268
67269         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67271
67272 2006-06-28  Eric Blake  <ebb9@byu.net>
67273
67274         * lib/xvasprintf.h: Fix comments.
67275
67276 2006-06-28  Eric Blake  <ebb9@byu.net>
67277
67278         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67279         * lib/mbswidth.c (wcwidth): Move from here...
67280         * lib/wcwidth.h: ...to this new file.
67281
67282 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67283
67284         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67285
67286         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67287         it's obsolete.
67288         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67289
67290 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67291
67292         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67293         Autoconf 2.60 says this stuff was obsolete.
67294
67295 2006-06-28  Bruno Haible  <bruno@clisp.org>
67296
67297         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67298
67299 2006-06-28  Bruno Haible  <bruno@clisp.org>
67300
67301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67302         gt_TYPE_WCHAR_T.
67303
67304 2006-06-28  Bruno Haible  <bruno@clisp.org>
67305
67306         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67307         declaration for wcwidth.
67308         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67309
67310 2006-06-28  Bruno Haible  <bruno@clisp.org>
67311
67312         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67313         (mkdir): Define using _mkdir.
67314
67315 2006-06-28  Bruno Haible  <bruno@clisp.org>
67316
67317         * lib/getaddrinfo.h: Fix POSIX URL.
67318         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67319         _WIN32.
67320         (use_win32_p): Make static.
67321         (getaddrinfo): Reject service name if it is empty or does not consist
67322         solely of decimal digits, or if its value is > 65535.
67323         (getnameinfo): Remove useless casts.
67324
67325 2006-06-27  Simon Josefsson  <jas@extundo.com>
67326
67327         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67328         Eggert and Martin Lambers.
67329
67330 2006-06-27  Simon Josefsson  <jas@extundo.com>
67331
67332         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67333         Eggert and Martin Lambers.
67334
67335 2006-06-27  Bruno Haible  <bruno@clisp.org>
67336
67337         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67338         result to 0, not to empty.
67339         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67340
67341 2006-06-27  Bruno Haible  <bruno@clisp.org>
67342
67343         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67344
67345 2006-06-26  Simon Josefsson  <jas@extundo.com>
67346
67347         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67348         present.
67349
67350 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67351
67352         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67353         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67355
67356 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67357
67358         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67359
67360 2006-06-26  Bruno Haible  <bruno@clisp.org>
67361
67362         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67363
67364 2006-06-26  Bruno Haible  <bruno@clisp.org>
67365
67366         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67367
67368 2006-06-26  Bruno Haible  <bruno@clisp.org>
67369
67370         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67371         SGI C compiler in pre-C99 mode.
67372         Suggested by Mark D. Baushke and Larry Jones.
67373
67374 2006-06-26  Bruno Haible  <bruno@clisp.org>
67375
67376         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67377         WCHAR_MAX.
67378         Reported by Mark D. Baushke and Larry Jones.
67379
67380 2006-06-26  Bruno Haible  <bruno@clisp.org>
67381
67382         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67383         in pre-C99 mode.
67384         Suggested by Mark D. Baushke and Larry Jones.
67385
67386 2006-06-23  Simon Josefsson  <jas@extundo.com>
67387             Bruno Haible  <bruno@clisp.org>
67388
67389         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67390         Emit mostlyclean-local rule.
67391         (func_emit_tests_Makefile_am): Likewise.
67392         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67393
67394 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67395
67396         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67397
67398 2006-06-23  Bruno Haible  <bruno@clisp.org>
67399
67400         * tests/test-stdint.c: Update to match ISO C 99 Technical
67401         Corrigendum 1.
67402
67403 2006-06-23  Bruno Haible  <bruno@clisp.org>
67404
67405         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67406
67407 2006-06-23  Bruno Haible  <bruno@clisp.org>
67408
67409         * lib/stdint_.h: Treat IRIX like OpenBSD.
67410
67411 2006-06-23  Bruno Haible  <bruno@clisp.org>
67412
67413         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67414         ISO C 99 Technical Corrigendum 1.
67415
67416 2006-06-22  Simon Josefsson  <jas@extundo.com>
67417
67418         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67419         MinGW.
67420
67421 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67422
67423         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67424         needed.  Some compiler complained about some of them.  Problem reported
67425         by Larry Jones in
67426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67427
67428 2006-06-21  Simon Josefsson  <jas@extundo.com>
67429
67430         * tests/test-getaddrinfo.c: New file.
67431
67432         * modules/getaddrinfo-tests: New file.
67433
67434         * MODULES.html.sh: Add inet_pton.
67435
67436         * modules/inet_pton: New file.
67437
67438 2006-06-21  Simon Josefsson  <jas@extundo.com>
67439
67440         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67441         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67442         of using the (limited) gnulib implementation on Windows XP.
67443
67444         * m4/inet_pton.m4: New file.
67445
67446 2006-06-21  Simon Josefsson  <jas@extundo.com>
67447
67448         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67449         variable.
67450
67451         * lib/socket_.h: Don't define WINVER.
67452
67453         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67454         slightly modified to work in gnulib.
67455
67456 2006-06-21  Simon Josefsson  <jas@extundo.com>
67457
67458         * doc/gnulib.texi (Windows sockets): Add.
67459
67460 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67461
67462         * lib/read-file.c (fread_file): Start with buffer allocation of
67463         0 bytes rather than 1 byte; this simplifies the code.
67464         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67465         code to free buffer and save/restore errno.
67466         (internal_read_file): Remove unused local.
67467
67468 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67469
67470         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67471         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67472         Problem reported by Denis Excoffier in
67473         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67474
67475 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67476
67477         * modules/sys_socket, modules/socklen: Include sys/types since
67478         FreeBSD 4.x's sys/socket.h needs it.
67479
67480 2006-06-19  Simon Josefsson  <jas@extundo.com>
67481
67482         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67483
67484 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67485
67486         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67487
67488 2006-06-19  Bruno Haible  <bruno@clisp.org>
67489
67490         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67491         and FULL_PATH_INTTYPES_H in angle brackets.
67492         Reported by Mark D. Baushke <mdb@gnu.org>.
67493
67494 2006-06-17  Eric Blake  <ebb9@byu.net>
67495
67496         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67497         errno.
67498
67499 2006-06-17  Bruno Haible  <bruno@clisp.org>
67500
67501         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67502         <sys/inttypes.h>.
67503
67504 2006-06-17  Bruno Haible  <bruno@clisp.org>
67505
67506         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67507         whether errno is declared. Assume <errno.h> declares errno.
67508
67509 2006-06-17  Bruno Haible  <bruno@clisp.org>
67510
67511         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67512
67513 2006-06-17  Bruno Haible  <bruno@clisp.org>
67514
67515         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67516         problem on Solaris 2.5.1.
67517
67518 2006-06-16  Eric Blake  <ebb9@byu.net>
67519
67520         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67521         * lib/unicodeio.c [!defined errno]: Likewise.
67522         * lib/strtol.c [!defined errno]: Likewise.
67523         * lib/strtod.c [!defined errno]: Likewise.
67524
67525 2006-06-15  Eric Blake  <ebb9@byu.net>
67526
67527         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67528
67529 2006-06-15  Eric Blake  <ebb9@byu.net>
67530
67531         * config/srclist.txt (ssize_t.m4): Lose sync.
67532
67533 2006-06-15  Bruno Haible  <bruno@clisp.org>
67534
67535         * modules/stdint (Files): Include m4/full-header-path.m4,
67536         m4/size_max.m4, m4/wchar_t.m4.
67537         (Makefile.am): Many more substitutions.
67538         * modules/stdint-tests: New file.
67539         * tests/test-stdint.c: New file.
67540
67541 2006-06-15  Bruno Haible  <bruno@clisp.org>
67542
67543         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67544         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67545         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67546         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67547         gl_CHECK_TYPE_SAME): New macros.
67548
67549 2006-06-15  Bruno Haible  <bruno@clisp.org>
67550
67551         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67552
67553 2006-06-15  Bruno Haible  <bruno@clisp.org>
67554
67555         * lib/stdint_.h: Rewritten to be fully auto-configured.
67556         Fixes bug on HP-UX/IA64.
67557
67558 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67559
67560         * lib/getdate.y (__attribute__): Don't define if already defined.
67561         Problem reported by Larry Jones.
67562         * lib/utimens.c (__attribute__): Likewise.
67563
67564 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67565
67566         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67567         reported by Andreas Schwab.
67568
67569 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67570             Bruno Haible  <bruno@clisp.org>
67571
67572         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67573         check for the declaration of strnlen and a run test that exposes the
67574         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67575         rpl_strndup.
67576
67577 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67578             Bruno Haible  <bruno@clisp.org>
67579
67580         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67581
67582 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67583
67584         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67585         compile test, for Tru64 4.0D.
67586
67587 2006-05-28  Karl Berry  <karl@gnu.org>
67588
67589         * config/srclist.txt (printf-args.c): lose sync.
67590
67591 2006-05-26  Martin Lambers  <marlam@marlam.de>
67592
67593         * lib/getpass.c: Updates the test for the native W32 API, and adds
67594         missing includes, thus fixing compilation warnings.
67595
67596 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67597
67598         * lib/exclude.c (exclude_fnmatch): New function.
67599         (excluded_file_name): Call exclude_fnmatch.
67600         * lib/exclude.h (excluded_file_name): New prototype
67601
67602 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67603
67604         * lib/tempname.c (small_open, large_open): New macros.
67605         (__open, __open64) [!_LIBC]: Remove.
67606         (__gen_tempname): Use small_open and large_open instead of __open
67607         and __open64.  This fixes a portability bug on HP-UX 11.11i
67608         reported by Simon Wing-Tang in
67609         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67610
67611 2006-05-24  Bruno Haible  <bruno@clisp.org>
67612
67613         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67614         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67615         Reported by Thorsten Maerz <torte@netztorte.de> via
67616         Aaron Stone <aaron@serendipity.cx>.
67617
67618 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67619
67620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67621         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67622         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67623         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67624         not really conditional on the cache.
67625         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67626
67627 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67628
67629         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67630         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67631         (my_usleep): Don't mishandle maximum value.
67632
67633 2006-05-19  Jim Meyering  <jim@meyering.net>
67634
67635         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67636
67637 2006-05-17  Bruno Haible  <bruno@clisp.org>
67638
67639         Cygwin portability.
67640         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67641
67642 2006-05-17  Bruno Haible  <bruno@clisp.org>
67643
67644         * lib/stdint_.h: Fix recognition of Cygwin.
67645
67646 2006-05-15  Bruno Haible  <bruno@clisp.org>
67647
67648         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67649         on libtool patch by Ralf Wildenhues.
67650
67651 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67652
67653         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67654         test for C99 conformance; (bool) 0.5 is an integer constant
67655         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67656         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67657
67658 2006-05-11  Simon Josefsson  <jas@extundo.com>
67659
67660         * m4/xvasprintf.m4: Fix obvious typo.
67661
67662 2006-05-11  Jim Meyering  <jim@meyering.net>
67663
67664         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67665         James Lemley.
67666
67667 2006-05-10  Simon Josefsson  <jas@extundo.com>
67668
67669         * lib/md4.c: Typo fix, update copyright years.
67670         (K1, K2): Don't use L because it turn computations into 64-bit on
67671         64-bit platforms.
67672
67673 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67674
67675         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67676         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67677         unwanted sign propagation, e.g., on hosts with 64-bit int.
67678         There still are some problems with reeelly weird theoretical hosts
67679         (e.g., 33-bit int) but it's not worth worrying about now.
67680         * lib/sha1.c (rol): Likewise.
67681         (K1, K2, K3, K4): Remove unnecessary L suffix.
67682
67683 2006-05-10  Bruno Haible  <bruno@clisp.org>
67684
67685         * lib/des.c: Cast to avoid warnings.
67686
67687 2006-05-09  Bruno Haible  <bruno@clisp.org>
67688
67689         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67690         (Depends-on): Depend also on xsize, stdarg.
67691         (configure.ac): Add gl_XVASPRINTF.
67692
67693 2006-05-09  Bruno Haible  <bruno@clisp.org>
67694
67695         * m4/xvasprintf.m4: New file.
67696
67697 2006-05-09  Bruno Haible  <bruno@clisp.org>
67698
67699         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67700         (EOVERFLOW): Define fallback value.
67701         (xstrcat): New function.
67702         (xvasprintf): Recognize the special case of a string concatenation.
67703
67704 2006-05-08  Eric Blake  <ebb9@byu.net>
67705
67706         * gnulib-tool (func_version): Base copyright year on CVS date.
67707         (func_emit_copyright_notice): New function.
67708         (func_emit_lib_Makefile_am): Use it.
67709         (func_emit_tests_Makefile_am): Likewise.
67710         (func_import): Likewise.
67711
67712 2006-05-08  Bruno Haible  <bruno@clisp.org>
67713
67714         * modules/stdarg: New file.
67715         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67716
67717 2006-05-08  Bruno Haible  <bruno@clisp.org>
67718
67719         * m4/stdarg.m4: New file, from GNU gettext.
67720
67721 2006-05-08  Bruno Haible  <bruno@clisp.org>
67722
67723         * config/srclist.txt (build-aux/config.rpath): different from latest
67724         release.
67725
67726 2006-05-08  Bruno Haible  <bruno@clisp.org>
67727
67728         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67729
67730 2006-05-05  Jim Meyering  <jim@meyering.net>
67731
67732         * m4/warning.m4: New file, derived from bison's file by the same name.
67733
67734 2006-05-03  Bruno Haible  <bruno@clisp.org>
67735
67736         * lib/stdint_.h: Shorter URL.
67737         * lib/inttypes.h: Likewise.
67738
67739 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67740
67741         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67742
67743 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67744
67745         * lib/verify.h: Document the internals better.  Most of this change
67746         was written by Bruno Haible.
67747
67748 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67749
67750         * doc/verify.texi: New file, partly based on a proposal by
67751         Bruno Haible.
67752
67753 2006-05-02  Bruno Haible  <bruno@clisp.org>
67754
67755         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67756         test from here...
67757         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67758
67759 2006-04-29  Bruno Haible  <bruno@clisp.org>
67760
67761         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67762         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67763
67764 2006-04-29  Bruno Haible  <bruno@clisp.org>
67765
67766         * gnulib-tool: Make --update option actually work.
67767
67768 2006-04-29  Bruno Haible  <bruno@clisp.org>
67769
67770         * doc/gcd.texi: New file.
67771         * doc/gnulib.texi: Include it.
67772
67773 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67774
67775         * lib/getdate.y (get_date): When adding relative date, start with the
67776         initial time, not with the result of the first mktime call.
67777
67778 2006-04-25  Bruno Haible  <bruno@clisp.org>
67779
67780         * gnulib-tool (func_import): Output the include directives in three
67781         blocks, sorted separately.
67782         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67783
67784 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67785
67786         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67787         to define main with arguments, for C++.  Reported by Eric Blake.
67788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67789         Prefer 'int main ()' to 'int main (void)', for C++.
67790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67791         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67792         for 'main', for C99 and C++.
67793
67794 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67795
67796         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67797         Don't assume that exit status -1 is valid.
67798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67799         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67800         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67801         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67802         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67803         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67804         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67805         functions can be used without declaring them, or that you can
67806         exit with status -1.
67807         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67808
67809 2006-04-24  Karl Berry  <karl@gnu.org>
67810
67811         * config/srclist.txt (longdouble.m4): sync lost.
67812
67813 2006-04-24  Eric Blake  <ebb9@byu.net>
67814
67815         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67816
67817 2006-04-24  Bruno Haible  <bruno@clisp.org>
67818
67819         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67820         poll() implementation in AIX.
67821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67822
67823 2006-04-24  Bruno Haible  <bruno@clisp.org>
67824
67825         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67826         assigned exactly once.
67827
67828 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67829             Bruno Haible  <bruno@clisp.org>
67830
67831         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67832         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67833         for AM_CPPFLAGS.
67834
67835 2006-04-23  Bruno Haible  <bruno@clisp.org>
67836
67837         * modules/copy-file: Depend on unistd.
67838         * modules/execute: Likewise.
67839         * modules/fatal-signal: Likewise.
67840         * modules/findprog: Likewise.
67841         * modules/mkdtemp : Likewise.
67842         * modules/pipe: Likewise.
67843         * modules/wait-process: Likewise.
67844
67845 2006-04-23  Bruno Haible  <bruno@clisp.org>
67846
67847         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67848         condition was already detected.
67849         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67850
67851 2006-04-23  Bruno Haible  <bruno@clisp.org>
67852
67853         * lib/copy-file.c: Include <unistd.h> unconditionally.
67854         * lib/execute.c: Likewise.
67855         * lib/fatal-signal.c: Likewise.
67856         * lib/findprog.c: Likewise.
67857         * lib/mkdtemp.c: Likewise.
67858         * lib/pipe.h: Likewise.
67859         * lib/pipe.c: Likewise.
67860         * lib/wait-process.h: Likewise.
67861
67862 2006-04-23  Bruno Haible  <bruno@clisp.org>
67863
67864         * gnulib-tool (func_usage): Fix --import description. Document
67865         --update.
67866         (func_import): Create temporary file in a temporary directory, if
67867         --dry-run is specified. Silence errors from 'grep' when there are no
67868         m4 files in $m4dir.
67869         (func_create_testdir): Silence errors from 'grep' when there are no
67870         m4 files in $m4dir.
67871         Reported by Karl Berry <karl@freefriends.org>.
67872
67873 2006-04-20  Bruno Haible  <bruno@clisp.org>
67874
67875         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67876         one argument, so that the code will be portable to Autoconf 2.60.
67877         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67878         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67879         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67880
67881 2006-04-19  Derek Price  <derek@ximbiot.com>
67882             Eric Blake  <ebb9@byu.net>
67883
67884         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67885         rather than "/full/path.h".  Update comment to match.  Shorten &
67886         generalize m4_translit call via AS_TR_CPP.
67887
67888 2006-04-19  Derek Price  <derek@ximbiot.com>
67889             Eric Blake  <ebb9@byu.net>
67890
67891         * lib/inttypes.h: Correct grammar in comment.
67892
67893 2006-04-18  Derek Price  <derek@ximbiot.com>
67894             Paul Eggert  <eggert@cs.ucla.edu>
67895
67896         * modules/inttypes: New file.
67897         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67898
67899 2006-04-18  Derek Price  <derek@ximbiot.com>
67900             Paul Eggert  <eggert@cs.ucla.edu>
67901
67902         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67903         New files.
67904
67905 2006-04-18  Derek Price  <derek@ximbiot.com>
67906             Paul Eggert  <eggert@cs.ucla.edu>
67907
67908         * lib/inttypes.h: New file.
67909         * lib/strtoimax.c: Assume <inttypes.h>.
67910
67911 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67912
67913         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67914         isn't mounted.  Problem reported by Kir Kolyshkin.
67915
67916 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67917
67918         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67919         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67920         Derek R. Price.
67921         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67922         implementation.
67923
67924 2006-04-12  Eric Blake  <ebb9@byu.net>
67925
67926         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67927         is now done automatically by the corresponding Autoconf macro.
67928
67929 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67930
67931         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67932         time_r.h.
67933
67934 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67935
67936         Merge regex changes from libc, removing some of our
67937         POSIX-conformance changes that were rejected and redoing them in a
67938         less-intrusive way.
67939
67940         * lib/regcomp.c (re_compile_internal, init_dfa):
67941         Length arg is now size_t, not Idx.  All uses changed.
67942         (peek_token): Forward decl now says internal_function.
67943         (__re_error_msgid, __re_error_msgid_idx):
67944         Now static rather than extern with attribute_hidden.
67945         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67946         For some reason libc prefers K&R style defns for external functions.
67947         (regerror) [!defined _LIBC]: Likewise.
67948         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
67949         (seek_collating_symbol_entry, lookup_collation_sequence_value):
67950         (build_range_exp, build_collating_symbol):
67951         Use K&R-style defn.
67952         (re_compile_fastmap): Use '\0' to memset, not 0.
67953         (utf8_sb_map): Make the calculations more obvious.
67954         (init_dfa, parse_bracket_exp, build_charclass_op):
67955         Call calloc and cast result, as glibc does.
67956         (init_word_char, fetch_token, peek_token, peek_token_bracket):
67957         (build_range_exp, build_collating_symbol):
67958         Now internal functions.
67959
67960         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
67961
67962         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
67963         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
67964         Don't depend on VMS; depend on __VMS instead, for POSIX
67965         namespace cleanness.
67966         (regoff_t): Define to ssize_t, not long int.
67967
67968         Remove the REG_ macros named below.  Instead, make the old names
67969         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
67970         __USE_GNU_REGEX.
67971         (REG_BACKSLASH_ESCAPE_IN_LISTS):
67972         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
67973         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
67974         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
67975         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
67976         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
67977         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
67978         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
67979         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
67980         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
67981         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
67982         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
67983         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
67984         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
67985         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
67986         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
67987         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
67988         (REG_NREGS):
67989         Remove.  All uses replaced by the old RE_* names.
67990         (RE_BACKSLASH_ESCAPE_IN_LISTS):
67991         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
67992         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
67993         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
67994         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
67995         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
67996         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
67997         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
67998         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
67999         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68000         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68001         Don't bother having these macros be independent of each others'
68002         values, since they no longer exist in the POSIX name space.
68003
68004         Rename the following member names back to their old names,
68005         unless !__USE_GNU_REGEX.  All uses changed back.
68006         (buffer): Renamed from re_buffer.
68007         (allocated): Renamed from re_allocated.
68008         (used): Renamed from re_used.
68009         (syntax): Renamed from re_syntax.
68010         (fastmap): Renamed from re_fastmap.
68011         (translate): Renamed from re_translate.
68012         (can_be_null): Renamed from re_can_be_null.
68013         (regs_allocated): Renamed from re_regs_allocated.
68014         (fastmap_accurate): Renamed from re_fastmap_accurate.
68015         (no_sub): Renamed from re_no_sub.
68016         (not_bol): Renamed from re_not_bol.
68017         (not_eol): Renamed from re_not_eol.
68018         (newline_anchor): Renamed from re_newline_anchor.
68019         (num_regs): Renamed from rm_num_regs.
68020         (start): Renamed from rm_start.
68021         (end): Renamed from rm_end.
68022
68023         (free_state): Move up a bit.
68024
68025         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68026         #define to be empty.
68027         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68028         when that is what is intended.
68029         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68030         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68031         (MAX): New macro.
68032         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68033         All uses changed back to re_malloc, etc.  It's now the caller's
68034         responsibility to check for overflow; all callers changed.
68035         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68036         (re_x2nrealloc): Remove.
68037         (free_state): Remove decl.
68038
68039         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68040         (re_set_registers, re_exec):
68041         Use K&R-style defn.
68042
68043         2006-01-31  Roland McGrath  <roland@redhat.com>
68044
68045         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68046         Reported by Mike Frysinger <vapier@gentoo.org>.
68047
68048         2006-01-15  Andreas Jaeger  <aj@suse.de>
68049
68050         [BZ #1950]
68051         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68052         build_wcs_upper_buffer change.
68053         (build_wcs_upper_buffer): Change return type.
68054
68055         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68056
68057         * lib/regex_internal.h: Include <stdint.h> if available.
68058
68059         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68060
68061         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68062
68063         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68064
68065         * lib/regcomp.c: Adjust for changed secondary hash function.
68066
68067         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68068
68069         * lib/regex.h: Pretty printing.
68070         Clean up namespace a bit.
68071
68072         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68073
68074         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68075         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68076
68077         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68078                     Ulrich Drepper  <drepper@redhat.com>
68079
68080         [BZ #1302]
68081         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68082         changed.
68083         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68084
68085         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68086
68087         [BZ #281]
68088         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68089         * lib/regcomp.c: Remove unnecessary uses of
68090         unsigned RE_TRANSLATE_TYPE.
68091         * lib/regex_internal.h: Likewise.
68092         * lib/regex_internal.c: Likewise.
68093         * lib/regexec.c: Likewise.
68094         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68095
68096         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68097
68098         * lib/regexec.c (find_recover_state): Remove unnecessary
68099         initialization.
68100         (transit_state_bkref): Make DFA a const pointer.
68101         (get_subexp): Likewise.
68102         (check_arrival): Likewise.
68103         (update_cur_sifted_state): Likewise.
68104         (re_search_internal): Likewise.
68105         (prune_impossible_nodes): Likewise.
68106         (acquire_init_state_context): Likewise.
68107         (proceed_next_node): Likewise.
68108         (set_regs): Likewise.
68109         (free_fail_stack_return): Likewise.
68110         (check_arrival_expand_ecl): Mark DFA parameter as const.
68111         (check_arrival_expand_ecl_sub): Likewise.
68112         (check_subexp_limits): Likewise.
68113         (sub_epsilon_src_nodes):  Likewise.
68114         (add_epsilon_src_nodes):  Likewise.
68115         (merge_state_array): Likewise.
68116         (update_regs): Likewise.
68117         (build_trtable): Likewise.
68118         (sift_states_backward): Mark MCTX parameter as const.
68119         (build_sifted_states): Likewise.
68120         (update_cur_sifted_state): Likewise.
68121         (sift_states_mkref): Likewise.
68122         (check_arrival_expand_ecl): Mark eclosure as const.
68123         (check_dst_limits_calc_pos_1): Likewise.
68124         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68125         pointer.
68126
68127         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68128
68129         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68130         (transit_state_sb): Likewise.
68131         (transit_state_mb): Likewise.
68132         (sift_states_iter_mb): Likewise.
68133         (check_arrival_add_next_nodes): Likewise.
68134         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68135         [_LIBC] (re_search_2_stub): Use mempcpy.
68136
68137         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68138         mbrtowc for very simple UTF-8 case.
68139
68140         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68141         a pointer-to-const.
68142         (re_acquire_state_context): Likewise.
68143         * lib/regex_internal.h: Adjust prototypes.
68144
68145         * lib/regex.c: Prevent using C++ compilers.
68146
68147         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68148         (re_acquire_state_context): Likewise.
68149
68150 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68151
68152         * modules/regex (Depends-on): Add ssize_t.
68153
68154 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68155
68156         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68157         translation table.
68158
68159 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68160
68161         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68162
68163 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68164             Bruno Haible  <bruno@clisp.org>
68165
68166         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68167         <sys/types.h> and <inttypes.h>.
68168
68169 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68170
68171         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68172         `__error_t_defined', so argp.h will not typedef the former.
68173
68174 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68175
68176         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68177         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68178         glibc names.  Even if glibc is changed to conform to POSIX, the
68179         traditional names will be available anyway, since regex depends on
68180         the extensions module.  Also, fix a longstanding typo in the
68181         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68182         reported by Emanuele Giaquinta.  Also, change sense of cached
68183         variable, so that the message makes sense.
68184
68185 2006-03-24  Simon Josefsson  <jas@extundo.com>
68186
68187         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68188         including some doc fixes.
68189         (base64_encode_alloc): Fix +1 bug on allocation failures.
68190
68191 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68192
68193         * lib/base64.c (base64_encode): Do not read past end of array with
68194         unsanitized input on systems with CHAR_BIT > 8.
68195
68196 2006-03-24  Eric Blake  <ebb9@byu.net>
68197
68198         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68199
68200 2006-03-22  Karl Berry  <karl@gnu.org>
68201
68202         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68203         * config/srclistvars.sh (COREUTILS): new var.
68204
68205 2006-03-17  Jim Meyering  <jim@meyering.net>
68206
68207         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68208         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68209
68210 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68211
68212         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68213         no longer needs it.  Instead, check that regoff_t is as least
68214         as wide as ptrdiff_t.
68215
68216         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68217         so that our regex.h stays compatible with the installed regex.
68218         This is helpful for installers who configure --without-included-regex.
68219         Problem reported by Emanuele Giaquinta.
68220
68221 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68222
68223         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68224         Typedef to long int, not to off_, as POSIX will likely change
68225         in that direction.
68226
68227 2006-03-15  Eric Blake  <ebb9@byu.net>
68228
68229         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68230
68231 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68232
68233         * lib/argp-help.c (validate_uparams): Fix typo
68234         * lib/argp-parse.c (argp_default_options): Consistently begin help
68235         messages with a lowercase letter.
68236
68237 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68238
68239         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68240         overrun buffers and shouldn't be used (much as gets shouldn't be
68241         used).
68242         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68243
68244 2006-03-08  Simon Josefsson  <jas@extundo.com>
68245
68246         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68247         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68248
68249 2006-03-08  Simon Josefsson  <jas@extundo.com>
68250
68251         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68252         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68253
68254 2006-03-08  Simon Josefsson  <jas@extundo.com>
68255
68256         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68257         signal that configure disabled the device.
68258
68259 2006-03-08  Simon Josefsson  <jas@extundo.com>
68260
68261         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68262         languages.
68263
68264 2006-03-07  Simon Josefsson  <jas@extundo.com>
68265
68266         * modules/getopt (Depends-on): Add unistd.
68267
68268         * modules/unistd: New file.
68269
68270 2006-03-07  Simon Josefsson  <jas@extundo.com>
68271
68272         * modules/gc-random: New file.
68273
68274 2006-03-07  Simon Josefsson  <jas@extundo.com>
68275
68276         * m4/unistd_h.m4: New file.
68277
68278 2006-03-07  Simon Josefsson  <jas@extundo.com>
68279
68280         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68281         test to be side-effect free by storing the result in the cache
68282         variable gl_cv_lib_readline, and moving the assignment of
68283         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68284         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68285
68286 2006-03-07  Simon Josefsson  <jas@extundo.com>
68287
68288         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68289         error on missing devices (the functions will return an error).
68290
68291         * m4/gc.m4: Move random stuff to gc-random.m4
68292
68293 2006-03-07  Simon Josefsson  <jas@extundo.com>
68294
68295         * lib/unistd_.h: New file.
68296
68297 2006-03-07  Simon Josefsson  <jas@extundo.com>
68298
68299         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68300
68301 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68302
68303         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68304         Problem reported by Juan Manuel Guerrero.
68305
68306 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68307
68308         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68309         the unistd module.
68310         * lib/getlogin_r.c: Likewise.
68311         * lib/getlogin_r.h: Likewise.
68312         * lib/glob.c: Likewise.
68313         * lib/pagealign_alloc.c: Likewise.
68314         * lib/unistd_.h: Remove; no longer needed.
68315
68316 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68317
68318         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68319         Add unistd.
68320         * modules/c-stack (Depends-on): Add unistd.
68321         * modules/getlogin_r: Likewise.
68322         * modules/glob: Likewise.
68323         * modules/pagealign_alloc: Likewise.
68324         * modules/unistd (Files): Remove lib/unistd_.h.
68325         (EXTRA_DIST): Remove.
68326         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68327         need unistd_.h.
68328         (MOSTLYCLEANFILES): Remove unistd.h-t.
68329
68330 2006-03-03  Simon Josefsson  <jas@extundo.com>
68331
68332         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68333
68334 2006-03-03  Simon Josefsson  <jas@extundo.com>
68335
68336         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68337         libidn and bison.
68338
68339 2006-03-03  Simon Josefsson  <jas@extundo.com>
68340
68341         * build-aux/maint.mk: Add indent target.
68342
68343 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68344
68345         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68346         our replacement poll.h in any case, to avoid a differing
68347         declaration from a system header.  Seen on AIX.
68348
68349 2006-03-01  Simon Josefsson  <jas@extundo.com>
68350
68351         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68352         <kasal@ucw.cz>.
68353
68354 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * modules/gettime (Depends-on): Add extensions module.
68357         * modules/nanosleep (Depends-on): Likewise.
68358         * modules/settime (Depends-on): Likewise.
68359
68360 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68361
68362         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68363         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68364         pedantically.
68365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68366         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68367
68368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68369         not "==".  Reported by Ralf Wildenhues.
68370
68371 2006-03-01  Karl Berry  <karl@gnu.org>
68372
68373         * doc/Copyright/request-*: new files, synced from gnuorg.
68374
68375 2006-03-01  Karl Berry  <karl@gnu.org>
68376
68377         * config/srclist.txt (Copyright/*): new entries.
68378
68379 2006-02-28  Simon Josefsson  <jas@extundo.com>
68380
68381         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68382
68383 2006-02-27  Simon Josefsson  <jas@extundo.com>
68384
68385         * lib/base64.h: Indent #define's.  From Jim Meyering
68386         <jim@meyering.net>.
68387
68388 2006-02-27  Jim Meyering  <jim@meyering.net>
68389
68390         Revert the change of 2006-02-24, so these files can continue
68391         to be sync'd from gettext.
68392         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68393         of `config.h'.
68394
68395 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68396
68397         * modules/intprops: New file.
68398         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68399         Add intprops.
68400         * modules/getloadavg (Files): Remove lib/intprops.h.
68401         (Depends-on): Add intprops.
68402         * modules/human: Likewise.
68403         * modules/inttostr: Likewise.
68404         * modules/openat: Likewise.
68405         * modules/sig2str: Likewise.
68406         * modules/userspec: Likewise.
68407         * modules/utimecmp: Likewise.
68408         * modules/xnanosleep: Likewise.
68409         * modules/xstrtol: Likewise.
68410
68411 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68412
68413         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68414         * modules/lock-tests (TESTS): Use $(EXEEXT).
68415         * modules/tls-tests: Likewise.
68416         * modules/argp-tests: Likewise.
68417         (check_PROGRAMS): New var, replacing...
68418         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68419
68420 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68421
68422         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68423         `config.h'.
68424
68425 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68426
68427         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68428
68429 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68430
68431         Sync from coreutils.
68432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68433         gl_CHDIR_SAFER.
68434
68435 2006-02-22  Jim Meyering  <jim@meyering.net>
68436
68437         Sync from coreutils.
68438         * m4/chdir-safer.m4: New file.
68439
68440 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68441
68442         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68443         AT_FDCWD exceeds INT_MAX.
68444         * lib/openat.h (AT_FDCWD): Likewise.
68445
68446 2006-02-17  Eric Blake  <address@hidden>
68447
68448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68449
68450 2006-02-16  Simon Josefsson  <jas@extundo.com>
68451
68452         * modules/getaddrinfo (Depends-on): Add sys_socket.
68453
68454 2006-02-15  Simon Josefsson  <jas@extundo.com>
68455
68456         * build-aux/maint.mk: Add dsyntax-check rule.
68457
68458 2006-02-15  Eric Blake  <ebb9@byu.net>
68459
68460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68461         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68462         'present but cannot compile' warnings on cygwin.
68463         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68464         use ws2tcpip.h if sys/socket.h works.
68465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68466         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68467
68468 2006-02-14  Simon Josefsson  <jas@extundo.com>
68469
68470         * modules/maintainer-makefile (Files): Rename.
68471
68472         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68473         and (the local) Makefile.cfg to maint-cfg.mk.
68474
68475         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68476         to the latter.
68477
68478         * modules/maintainer-makefile: New module.
68479
68480         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68481         severaly stripped to make it possible to build it up from scratch
68482         with reliable tests.
68483
68484         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68485         fixes to permit overriding the default actions when configure and
68486         makefile are not available.
68487
68488 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68489
68490         Sync from coreutils.
68491         * modules/lstat (Depends-on): Don't depend on xalloc.
68492         (License): Change from GPL to LGPL, since this is now simply a
68493         replacement for a libc function.
68494
68495 2006-02-14  Jim Meyering  <jim@meyering.net>
68496
68497         Sync from coreutils.
68498
68499         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68500         failure on deficient systems, and simplify gnulib lgpl dependencies.
68501         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68502         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68503
68504         * lib/xalloc-die.c: Remove unused definition of N_.
68505
68506 2006-02-14  Jim Meyering  <jim@meyering.net>
68507
68508         Sync from coreutils.
68509         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68510         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68511         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68512         double-quote uses of that variable, to accommodate the rare case in
68513         which getmntent is available in none of the libraries checked.  This
68514         happens at least on FreeBSD 5.0.
68515
68516 2006-02-13  Simon Josefsson  <jas@extundo.com>
68517
68518         * gnulib-tool (Usage): Fix --import, from
68519         karl@freefriends.org (Karl Berry).
68520
68521 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68522
68523         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68524
68525 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68526
68527         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68528         "autoupdate" on 2005-12-12.
68529
68530 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68531
68532         * modules/closeout (Depends-on): Remove atexit.
68533
68534 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68535
68536         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68537         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68538
68539 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68540
68541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68542         __EXTENSIONS__ if this causes compilation to fail.  Problem
68543         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68544         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68545
68546 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68547
68548         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68549         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68550         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68551         All uses changed.
68552
68553 2006-01-26  Simon Josefsson  <jas@extundo.com>
68554
68555         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68556         prototype is visible on mingw32.
68557
68558         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68559         for mingw32.
68560
68561         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68562         mingw32).
68563
68564 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68565
68566         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68567         attempt to open for write; this always fails, at least on POSIX
68568         hosts.  This reinstates the 2006-01-09 change, which was
68569         inadvertently removed.
68570
68571 2006-01-26  Bruno Haible  <bruno@clisp.org>
68572
68573         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68574         Reported by Paul Eggert.
68575
68576 2006-01-26  Bruno Haible  <bruno@clisp.org>
68577             Paul Eggert  <eggert@cs.ucla.edu>
68578
68579         * lib/stdbool_.h (_Bool)
68580         [(! (defined __cplusplus || defined __BEOS__)
68581           && !defined __GNUC__
68582           && !(defined __HP_cc || defined __xlc__
68583                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68584                || defined __sgi))]:
68585         #define to signed char in these cases too; this simplifies
68586         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68587         etc., separately) and makes it more conservative.
68588
68589 2006-01-25  Simon Josefsson  <jas@extundo.com>
68590
68591         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68592         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68593         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68594
68595 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68596
68597         * lib/argp-namefrob.h: Bugfix. Remove stray #
68598
68599 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68600
68601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68602         so that we test the test.
68603         Check for yet another HP-UX cc bug involving *bool |= bool.
68604
68605 2006-01-25  Karl Berry  <karl@gnu.org>
68606
68607         * config/srclist.txt (vasnprintf.c): sync lost.
68608
68609 2006-01-25  Jim Meyering  <jim@meyering.net>
68610
68611         Sync from the stable (b5) branch of coreutils:
68612
68613         * lib/fts.c (fts_children): Don't let close() clobber errno from
68614         failed fchdir().
68615
68616         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68617         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68618         a dangling symlink.  That can also happen at least for ELOOP.
68619         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68620         FYI, this bug predates the inclusion of fts.c in coreutils.
68621
68622         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68623         in their own block, so pre-c99 compilers don't object.
68624
68625         Avoid the double-free (first in fts_read, second in fts_close) that
68626         would occur when an `active' directory is made inaccessible (e.g.,
68627         via chmod a-x) during a traversal.
68628         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68629         before returning.  Reproduce this failure by
68630         mkdir -p a/b; cd a; chmod a-x . b
68631         Reported by Stavros Passas.
68632
68633 2006-01-25  Jim Meyering  <jim@meyering.net>
68634
68635         * lib/fileblocks.c: Remove more useless parentheses.
68636         * lib/readutmp.h: Likewise.
68637
68638 2006-01-25  Bruno Haible  <bruno@clisp.org>
68639
68640         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68641         warnings.
68642         Reported by Paul Eggert.
68643
68644 2006-01-25  Bruno Haible  <bruno@clisp.org>
68645
68646         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68647         rid of a trap command. For Solaris sh.
68648         Reported by Mark D. Baushke <mdb@gnu.org>.
68649
68650 2006-01-24  Simon Josefsson  <jas@extundo.com>
68651
68652         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68653         Bruno.
68654
68655 2006-01-24  Karl Berry  <karl@gnu.org>
68656
68657         * config/srclist.txt (argp-namefrob.h): sync lost.
68658
68659 2006-01-24  Jim Meyering  <jim@meyering.net>
68660
68661         * modules/openat (Files): Add lib/intprops.h.
68662         From Mark D. Baushke.
68663
68664 2006-01-24  Jim Meyering  <jim@meyering.net>
68665
68666         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68667         Reported by Mark D. Baushke.
68668
68669 2006-01-24  Jim Meyering  <jim@meyering.net>
68670
68671         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68672
68673 2006-01-24  Bruno Haible  <bruno@clisp.org>
68674
68675         * modules/strnlen (Maintainer): Change from glibc to all.
68676
68677 2006-01-24  Bruno Haible  <bruno@clisp.org>
68678
68679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68680         Patch by Paul Eggert.
68681
68682 2006-01-24  Bruno Haible  <bruno@clisp.org>
68683
68684         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68685         already has it.
68686         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68687         2005-11-26.
68688
68689         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68690         'signed char' to avoid problems with the built-in _Bool type.
68691         Reported by Paul Eggert on 2005-11-26.
68692
68693 2006-01-24  Bruno Haible  <bruno@clisp.org>
68694
68695         * gnulib-tool (func_import): Avoid constructing complicated sed
68696         expressions inside backquote.
68697         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68698
68699 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68700
68701         These changes imported from libc.
68702         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68703         test and two separate function calls.
68704         * lib/strndup.c (__strndup): Add libc_hidden_def.
68705
68706 2006-01-23  Simon Josefsson  <jas@extundo.com>
68707
68708         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68709         Remove the test_*_SOURCES variable: automake infers it by default.
68710         * modules/tls-tests: Likewise.
68711
68712 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68713
68714         Work around porting bugs reported by Dieter in
68715         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68716         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68717         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68718         Include "getopt.h" first, to check interface.
68719         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68720         !HAVE_DECL_GETENV.
68721         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68722         (__strndup): Revert to K&R-style function dfns, the glibc style.
68723         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68724         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68725         Include strnlen.h first, to get prototype properly.
68726         (strnlen): Renamed from __strnlen.
68727         Remove weak alias.
68728
68729 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68730
68731         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68732
68733 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68734
68735         * config/srclist.txt: Adjust to reflect glibc reorganization.
68736         This affects only comments.
68737
68738 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68739
68740          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68741          Reported by Bruce Korb <bkorb@gnu.org>.
68742
68743 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68744
68745         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68746         to pacify gcc -Wswitch-default.
68747
68748 2006-01-22  Bruno Haible  <bruno@clisp.org>
68749
68750         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68751         temporary buffer for sprintf, take into account the precision also
68752         for 'd', 'i', 'u', 'o', 'x', 'X'.
68753
68754 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68755
68756         * modules/argp-tests: New module
68757         * tests/test-argp.c: New file
68758         * tests/test-argp-2.sh: New file
68759
68760 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68761
68762         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68763         (__argp_base_name): Removed
68764         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68765         typo.
68766         (__argp_base_name): Provide macro definition or extern declaration
68767         depending on the configuration
68768
68769 2006-01-20  Simon Josefsson  <jas@extundo.com>
68770
68771         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68772
68773 2006-01-20  Simon Josefsson  <jas@extundo.com>
68774
68775         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68776
68777 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68778
68779         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68780         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68781         Suggested by Bruno Haible.
68782
68783 2006-01-20  Karl Berry  <karl@gnu.org>
68784
68785         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68786         until changes propagate, I guess.
68787
68788 2006-01-19  Simon Josefsson  <jas@extundo.com>
68789
68790         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68791
68792 2006-01-19  Simon Josefsson  <jas@extundo.com>
68793
68794         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68795
68796 2006-01-19  Simon Josefsson  <jas@extundo.com>
68797
68798         * gnulib-tool: Set check_PROGRAMS.
68799
68800         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68801         modules/des-tests, modules/gc-arcfour-tests,
68802         modules/gc-arctwo-tests, modules/gc-des-tests,
68803         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68804         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68805         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68806         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68807         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68808         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68809         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68810         test_*_SOURCES.
68811
68812 2006-01-18  Simon Josefsson  <jas@extundo.com>
68813
68814         * modules/socklen (Depends-on): Depend on sys_socket.
68815
68816 2006-01-18  Simon Josefsson  <jas@extundo.com>
68817
68818         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68819         modules/des-tests, modules/gc-arcfour-tests,
68820         modules/gc-arctwo-tests, modules/gc-des-tests,
68821         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68822         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68823         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68824         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68825         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68826         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68827         $(EXEEXT) to automake TESTS variable, for mingw32.
68828
68829 2006-01-17  Simon Josefsson  <jas@extundo.com>
68830
68831         * modules/socklen (Include): Need sys/socket.h.
68832
68833 2006-01-17  Bruno Haible  <bruno@clisp.org>
68834
68835         * modules/ssize_t (Include): Add <sys/types.h>.
68836
68837 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68838
68839         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68840         it's not portable and it doesn't work with cross-compiles.
68841         Problem reported by Bruno Haible.  Fix missing-$ typo in
68842         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68843         -zignore from being used with Sun's C compiler.
68844
68845 2006-01-12  Simon Josefsson  <jas@extundo.com>
68846
68847         * lib/base64.c: Fix warning, reported by Bruno Haible
68848         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68849
68850 2006-01-12  Bruno Haible  <bruno@clisp.org>
68851
68852         * modules/ldd: New file.
68853         * build-aux/ldd.sh.in: New file.
68854         * MODULES.html.sh (Support for building libraries and executables): Add
68855         ldd.
68856
68857 2006-01-12  Bruno Haible  <bruno@clisp.org>
68858
68859         * m4/ldd.m4: New file.
68860
68861 2006-01-12  Bruno Haible  <bruno@clisp.org>
68862
68863         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68864         endless loop while replacing $auxdir with build-aux.
68865
68866 2006-01-11  Simon Josefsson  <jas@extundo.com>
68867
68868         * lib/stdint_.h (SIZE_MAX): Add missing (.
68869
68870 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68871
68872         Sync from coreutils.
68873         * lib/md5.c: Fix commentary typos.
68874         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68875         * lib/md5.h (__attribute__): Remove; unused.
68876         * lib/sha1.c: Fix commentary to match md5 better.
68877         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68878         so that we don't need to worry about alignment.  All uses changed.
68879         This merges the 2005-10-28 md5 change into sha1.
68880
68881 2006-01-11  Jim Meyering  <jim@meyering.net>
68882
68883         Sync from coreutils.
68884         * lib/md5.c (OP): Fix spacing.
68885
68886 2006-01-11  Bruno Haible  <bruno@clisp.org>
68887
68888         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68889         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68890         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68891
68892 2006-01-11  Bruno Haible  <bruno@clisp.org>
68893
68894         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68895         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68896         the "early" section as well.
68897
68898 2006-01-11  Bruno Haible  <bruno@clisp.org>
68899
68900         Avoid "ar: no archive members specified" error on MacOS X.
68901         * gnulib-tool (func_modules_add_dummy): New function.
68902         (func_import, func_create_testdir): Invoke it.
68903
68904 2006-01-11  Bruno Haible  <bruno@clisp.org>
68905
68906         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68907         with $auxdir in AC_CONFIG_FILES statements.
68908
68909 2006-01-11  Bruno Haible  <bruno@clisp.org>
68910
68911         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68912         Initialize also noinst_HEADERS to empty.
68913
68914 2006-01-11  Bruno Haible  <bruno@clisp.org>
68915
68916         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68917         variables.
68918         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68919         autoreconf.
68920
68921 2006-01-11  Bruno Haible  <bruno@clisp.org>
68922
68923         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68924         overridable by the user.
68925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68926
68927 2006-01-10  Simon Josefsson  <jas@extundo.com>
68928
68929         * modules/sys_socket: New file.
68930
68931 2006-01-10  Simon Josefsson  <jas@extundo.com>
68932
68933         * m4/sys_socket_h.m4: New file.
68934
68935 2006-01-10  Simon Josefsson  <jas@extundo.com>
68936
68937         * lib/socket_.h: New file.
68938
68939 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68940
68941         * modules/readutmp (Maintainer): Add myself.
68942
68943 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68944
68945         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68946         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
68947         People who are still concerned with buggy memcmp implementations
68948         can invoke gl_FUNC_MEMCMP themselves.
68949
68950 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68951
68952         * lib/regex_internal.h (BITSET_WORD_BITS):
68953         Work around a bug in 64-bit PGC (before version 6.1-2), where the
68954         preprocessor mishandles large unsigned values as if they were signed.
68955         Problem reported by Claudio Fontana in
68956         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
68957
68958 2006-01-10  Jim Meyering  <jim@meyering.net>
68959
68960         Avoid the double-free (first in fts_read, second in fts_close) that
68961         would occur when an `active' directory is made inaccessible (e.g.,
68962         via chmod a-x) during a traversal.
68963         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68964         before returning.  Reproduce this failure by
68965         mkdir -p a/b; cd a; chmod a-x . b
68966         Reported by Stavros Passas.
68967
68968         Sync from coreutils.
68969         * lib/sha1.c: Tweak grammar in a comment.
68970
68971 2006-01-10  Jim Meyering  <jim@meyering.net>
68972
68973         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
68974         Patch by Joerg Sonnenberger.
68975
68976 2006-01-10  Bruno Haible  <bruno@clisp.org>
68977
68978         * modules/readutmp: Depend on module free.
68979         * modules/strtok_r: Depend on module restrict.
68980
68981 2006-01-10  Bruno Haible  <bruno@clisp.org>
68982
68983         * modules/gettext (configure.ac): Add an invocation of
68984         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
68985
68986 2006-01-10  Bruno Haible  <bruno@clisp.org>
68987
68988         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
68989         Reported by Werner Lemberg <wl@gnu.org>.
68990
68991 2006-01-10  Bruno Haible  <bruno@clisp.org>
68992
68993         * lib/localcharset.c: Update from GNU gettext.
68994
68995 2006-01-10  Bruno Haible  <bruno@clisp.org>
68996
68997         * lib/argp.h (__const): Remove macro. Use const instead.
68998         * lib/argp-fmtstream.h (__const): Likewise.
68999         * lib/glob_.h (__const): Remove macro.
69000         * lib/glob-libc.h: Use const instead of __const.
69001
69002 2006-01-10  Bruno Haible  <bruno@clisp.org>
69003
69004         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69005         variable.
69006         Needed to avoid an automake error regarding the 'gettext' module.
69007
69008 2006-01-09  Simon Josefsson  <jas@extundo.com>
69009
69010         * modules/inet_ntop (Depends-on): Add restrict.
69011
69012 2006-01-09  Simon Josefsson  <jas@extundo.com>
69013
69014         * modules/gc-rijndael-tests (License): Put under LGPL.
69015
69016         * modules/gc-des-tests (License): Likewise.
69017
69018         * modules/gc-arcfour-tests (License): Likewise.
69019
69020         * modules/gc-arctwo-tests (License): Likewise.
69021
69022         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69023
69024         * modules/gc-hmac-sha1-tests (Files): Likewise.
69025
69026         * modules/gc-hmac-md5-tests (License): Likewise.
69027
69028         * modules/gc-sha1-tests (License): Likewise.
69029
69030         * modules/gc-md5-tests (License): Likewise.
69031
69032         * modules/gc-md4-tests (License): Likewise.
69033
69034         * modules/gc-md2-tests (License): Likewise.
69035
69036         * modules/gc-tests (License): Likewise.
69037
69038         * modules/des-tests (License): Likewise.
69039
69040         * modules/md4-tests (License): Likewise.
69041
69042         * modules/md2-tests (License): Likewise.
69043
69044 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69045
69046         Sync from coreutils:
69047
69048         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69049         * modules/lib-ignore: New file.
69050         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69051         chdir-safer.m4, lchmod.m4.
69052         * modules/openat: Add mkdirat.c, openat-priv.h.
69053
69054 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69055
69056         Sync from coreutils.
69057         * m4/lib-ignore.m4: New file.
69058         * m4/lchmod.m4: New file.
69059
69060 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69061
69062         Sync from coreutils.
69063         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69064         for write access: POSIX says that must fail.
69065         * lib/fts.c (diropen): Likewise.
69066         * lib/save-cwd.c (save_cwd): Likewise.
69067         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69068         well, for minor improvements on hosts that lack O_DIRECTORY.
69069         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69070         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69071         Fall back on chown if open failed with EACCES.
69072
69073         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69074         Report an error at compile-time if only a 1-second nominal clock
69075         resolution is found.
69076
69077         * lib/lchmod.h: New file.
69078         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69079         (make_dir_parents): Use lchown rather than chown, and
69080         lchmod rather than chmod.
69081
69082         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69083         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69084         "proc" reported by n0dalus.
69085
69086         * lib/mountlist.c: Include <limits.h>.
69087         (dev_from_mount_options)
69088         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69089         New function.  It no longer assumes "dev=" has the System V meaning
69090         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69091         (read_file_system_list)
69092         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69093         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69094         dev= in that case.
69095
69096         * lib/posixtm.h (PDS_PRE_2000): New macro.
69097         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69098         allow_century.  All usages changed.  Reject dates outside the range
69099         1969-1999 if PDS_PRE_2000 is used.
69100
69101 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69102
69103         Sync from coreutils.
69104         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69105         (Time of day items): Mention the possibility of leap seconds.
69106         Problem reported by Dr. David Alan Gilbert.
69107
69108 2006-01-09  Jim Meyering  <jim@meyering.net>
69109
69110         Sync from coreutils.
69111
69112         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69113
69114         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69115
69116         * lib/modechange.c (mode_compile): Reject an invalid mode string
69117         that starts with an octal digit.  From Andreas Gruenbacher.
69118
69119         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69120         and dup to open_safer and dup_safer, respectively.
69121         (openat_permissive): Fix typo in comment.
69122
69123         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69124         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69125         (_): Remove; no longer needed.
69126         (openat): Renamed from rpl_openat; no need for rpl_openat
69127         since openat.h renames openat for us.
69128         Replace most of the body with a call to openat_permissive,
69129         to avoid duplicate code.
69130         Port to (probably hypothetical) environments were mode_t is
69131         wider than int.
69132         (openat_permissive): Require mode arg, so that we can check
69133         types better.  Put it just after flags.  Change cwd failure
69134         indicator from pointer-to-bool to pointer-to-errno-value.
69135         All callers changed.
69136         Invoke openat_save_fail and/or openat_restore_fail if
69137         cwd_errno is null, so that openat can call us.
69138         (openat_permissive, fdopendir, fstatat, unlinkat):
69139         Simplify errno handling to avoid some duplicate code,
69140         as it's OK to set errno on success.
69141         * lib/openat.h: Revamp code so that function macros depend on
69142         __OPENAT_PREFIX only, not also on AT_FDCWD.
69143         (openat_ro): Remove.  Caller changed to use openat_permissive.
69144         (openat_permissive): Now a macro, if not a function.
69145         (openat_restore_fail, openat_save_fail): Now always functions,
69146         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69147
69148         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69149         and openat.c.
69150         * lib/mkdirat.c: Include openat-priv.h.
69151         Remove definitions of macros defined therein.
69152         * lib/openat.c: Likewise.
69153
69154         * lib/mkdirat.c (mkdirat): New file and function.
69155         * lib/openat.h (mkdirat): Declare.
69156
69157         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69158
69159         * lib/openat.h (openat_permissive): Declare.
69160         (openat_ro): Define.
69161
69162         * lib/openat.c (EXPECTED_ERRNO): New macro.
69163         (openat_permissive): New function -- used in remove.c rewrite.
69164         (all functions): Set errno just before returning, only if there
69165         was an actual failure.
69166         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69167
69168         Emulate openat-family functions using Linux's procfs, if possible.
69169         Idea and some code based on Ulrich Drepper's glibc changes.
69170
69171         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69172         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69173         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69174         before falling back on save_cwd and restore_cwd.
69175         (fdopendir, fstatat, unlinkat): Likewise.
69176
69177         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69178         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69179
69180         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69181         as second argument to va_arg.  Otherwise, some versions of gcc
69182         warn that `if this code is reached, the program will abort'.
69183
69184 2006-01-09  Jim Meyering  <jim@meyering.net>
69185
69186         Sync from coreutils.
69187         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69188         Require openat-priv.h.
69189
69190 2006-01-09  Bruno Haible  <bruno@clisp.org>
69191
69192         * modules/strnlen (Include): Use strnlen.h.
69193
69194 2006-01-09  Bruno Haible  <bruno@clisp.org>
69195
69196         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69197
69198 2006-01-09  Bruno Haible  <bruno@clisp.org>
69199
69200         * lib/sysexit_.h (EX_OK): New macro.
69201         Suggested by Martin Lambers <marlam@marlam.de>.
69202
69203 2006-01-09  Bruno Haible  <bruno@clisp.org>
69204
69205         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69206         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69207
69208 2006-01-09  Bruno Haible  <bruno@clisp.org>
69209
69210         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69211         numbers.
69212
69213 2006-01-09  Bruno Haible  <bruno@clisp.org>
69214
69215         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69216         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69217         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69218         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69219
69220 2006-01-09  Bruno Haible  <bruno@clisp.org>
69221
69222         * build-aux/javacomp.sh.in: New file, moved from lib/.
69223         * modules/javacomp-script (Files): Update.
69224         (configure.ac): Add AC_CONFIG_FILES invocation.
69225         (EXTRA_DIST): Remove variable.
69226
69227         * build-aux/javaexec.sh.in: New file, moved from lib/.
69228         * modules/javaexec (Files): Update.
69229         (configure.ac): Add AC_CONFIG_FILES invocation.
69230         (EXTRA_DIST): Remove javaexec.sh.in.
69231
69232         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69233         * modules/csharpcomp-script (Files): Update.
69234         (configure.ac): Add AC_CONFIG_FILES invocation.
69235         (EXTRA_DIST): Remove variable.
69236
69237         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69238         * modules/csharpexec (Files): Update.
69239         (configure.ac): Add AC_CONFIG_FILES invocation.
69240         (EXTRA_DIST): Remove csharpexec.sh.in.
69241
69242 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69243
69244         Sync from coreutils.
69245
69246         Add POSIX ACL support
69247         * lib/acl.h (copy_acl, set_acl): Add declarations.
69248         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69249         systems other than Linux.
69250         (chmod_or_fchmod): New function: use fchmod when possible,
69251         and chmod otherwise.
69252         (file_has_acl): Add a POSIX ACL implementation, with a
69253         Linux-specific subcase.
69254         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69255         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69256         acls are unsupported.
69257         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69258         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69259         are unsupported.
69260
69261 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69262
69263         Sync from coreutils.
69264         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69265
69266 2006-01-07  Bruno Haible  <bruno@clisp.org>
69267
69268         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69269         gl_EARLY.
69270
69271 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69272
69273         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69274         Problem reported for Mingw by Mark Junker.
69275
69276 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69277
69278         * README: Gnulib normally doesn't generate a tarball.
69279
69280 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69281
69282         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69283         long int, not int, for nanosecond counts, so that people who are
69284         used to POSIX struct timespec won't be surprised.  Reported by Jim
69285         Meyering.
69286
69287 2005-12-28  Bruno Haible  <bruno@clisp.org>
69288
69289         * build-aux/config.rpath: Update from GNU gettext.
69290
69291 2005-12-16  Jim Meyering  <jim@meyering.net>
69292
69293         * modules/fprintftime: New module.
69294         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69295
69296 2005-12-16  Jim Meyering  <jim@meyering.net>
69297
69298         * m4/fprintftime.m4: New file.
69299
69300 2005-12-16  Jim Meyering  <jim@meyering.net>
69301
69302         * lib/fprintftime.c, lib/fprintftime.h: New files.
69303
69304 2005-12-15  Simon Josefsson  <jas@extundo.com>
69305
69306         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69307         new m4/socklen.m4.
69308
69309 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69310
69311         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69312         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69313
69314 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69315
69316         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69317         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69318         struct uparams is valid. Fall back to the default values if it is
69319         not.
69320
69321 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69322
69323         * modules/argp (Files): Add argp-pin.c
69324         (Depends-on): dirname
69325         (lib_SOURCES): Add argp-pin.c
69326
69327 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69328
69329         * m4/argp.m4:  Check if program_invocation_name and
69330         program_invocation_short_name are declared and define appropriate
69331         macros if they are not.
69332
69333 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69334
69335         * lib/argp-help.c (__argp_base_name): New function
69336         (__argp_short_program_name): Rewrite using __argp_base_name
69337         * lib/argp-namefrob.h: Define program_invocation_name and
69338         program_invocation_short_name if requested
69339         (__argp_base_name): Add prototype
69340         * lib/argp-parse.c (argp_def): Use gettext wrappers
69341         (argp_default_parser): Use __argp_base_name
69342         * lib/argp-pin.c: New file. Defines program_invocation_name and
69343         program_invocation_short_name on systems that lack them.
69344
69345 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69346
69347         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69348         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69349         porting problem reported by Georg Schwarz in
69350         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69351
69352 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69353
69354         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69355         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69356         porting problem reported by Georg Schwarz in
69357         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69358
69359 2005-12-05  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69362         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69363         Reported by Mark Junker <mjscod@gmx.de>.
69364
69365 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69366
69367         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69368         Use implementation from Albert Chin, with some
69369         comments/corrections by Stepan Kasal and myself.
69370
69371 2005-12-02  Bruno Haible  <bruno@clisp.org>
69372
69373         * gnulib-tool (func_import): Accept GPLed build tool modules when
69374         --lgpl is given.
69375         * modules/csharpcomp-script: New file.
69376         * modules/csharpcomp: Depend on it.
69377         * modules/javacomp-script: New file.
69378         * modules/javacomp: Depend on it.
69379         Suggested by Simon Josefsson.
69380
69381 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69382
69383         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69384         statement, to work around an HP-UX 10.20 compiler bug reported by
69385         Peter O'Gorman.
69386
69387 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69388
69389         * modules/savedir (Depends-on): Add openat.
69390
69391 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69392
69393         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69394         (uintmax_t) [defined uintmax_t]: Do not declare.
69395         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69396         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69397         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69398         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69399         sake of portability to weird hosts that C allows (though we don't
69400         know of any practical examples).
69401
69402         * lib/savedir.h (fdsavedir): New decl.
69403         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69404         contains most of the former guts of savedir.
69405         (savedir): Use savedirstream.
69406         Include "openat.h".
69407
69408 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69409
69410         * modules/obstack (Files): Add m4/ulonglong.m4.
69411         Problem reported by Davide Angelocola.
69412
69413 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69414
69415         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69416         coreutils no longer futzes with rounding modes.
69417
69418 2005-11-14  Jim Meyering  <jim@meyering.net>
69419
69420         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69421         replacement of mkstemp.
69422
69423 2005-11-10  Simon Josefsson  <jas@extundo.com>
69424
69425         * lib/readline.c: Remove EOL.
69426
69427 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69428
69429         * modules/gethrxtime (Depends-on): Add gettime.
69430
69431 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69432
69433         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69434         or gettimeofday; no longer needed.
69435
69436 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69437
69438         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69439         time business.
69440         (gethrxtime) [! (HAVE_NANOUPTIME
69441         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69442         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69443         our own approximation.
69444
69445 2005-11-08  Eric Blake  <ebb9@byu.net>
69446
69447         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69448
69449 2005-11-08  Eric Blake  <ebb9@byu.net>
69450
69451         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69452
69453 2005-11-04  Bruno Haible  <bruno@clisp.org>
69454
69455         * gnulib-tool: Implement --update mode.
69456
69457 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69458
69459         Fix porting problem reported by Theodoros V. Kalamatianos.
69460         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69461         Don't assume that futimes failing means we must fail.
69462
69463 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69464
69465         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69466         variables to suggest the intended function of the PATH_MAX check.
69467
69468 2005-10-30  Kean Johnston  <jkj@sco.com>
69469
69470         Trivial changes to support SCO systems.
69471         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69472         as PATH_MAX.
69473         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69474         where __ptr is null when no I/O is pending.
69475
69476 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69477
69478         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69479         leave errno alone.  Problem reported by Dmitry V. Levin.
69480
69481 2005-10-28  Simon Josefsson  <jas@extundo.com>
69482
69483         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69484         Test more.
69485
69486         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69487
69488         * modules/md2, modules/md2-tests: New files.
69489
69490 2005-10-28  Simon Josefsson  <jas@extundo.com>
69491
69492         * m4/inet_ntop.m4: More tests.
69493
69494         * m4/gc-md2.m4, md2.m4: New file.
69495
69496 2005-10-28  Simon Josefsson  <jas@extundo.com>
69497
69498         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69499         "restrict" keywords, as per POSIX.  Protect the function
69500         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69501         Don't use K&R prototypes.  Check the sprintf return values.
69502         Re-define EAFNOSUPPORT if not present.  Indent.
69503
69504         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69505         suggested by Bruno Haible <bruno@clisp.org>.
69506
69507         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69508
69509         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69510
69511         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69512         libgcrypt).
69513
69514         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69515
69516         * lib/md2.h, lib/md2.c: New files.
69517
69518 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69519
69520         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69521         errno alone.  Problem reported by Frederic Jolliton.
69522
69523 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69524
69525         * modules/verify (License): Change from GPL to LGPL.  This is a
69526         tiny module and there are apparently near-equivalents that are
69527         under the BSD license.
69528
69529 2005-10-24  Simon Josefsson  <jas@extundo.com>
69530
69531         * modules/sha1: Relicense to LGPL.
69532
69533 2005-10-24  Simon Josefsson  <jas@extundo.com>
69534
69535         * lib/md4.h: Shrink buffer size, now that we changed the type.
69536
69537 2005-10-23  Simon Josefsson  <jas@extundo.com>
69538
69539         * gnulib-tool (func_import): Fix --tests-base.
69540
69541 2005-10-22  Simon Josefsson  <jas@extundo.com>
69542
69543         * modules/arcfour (Depends-on): Need stdint.
69544
69545 2005-10-22  Simon Josefsson  <jas@extundo.com>
69546
69547         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69548         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69549
69550 2005-10-22  Simon Josefsson  <jas@extundo.com>
69551
69552         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69553         suggested by Bruno Haible <bruno@clisp.org>.
69554
69555 2005-10-22  Simon Josefsson  <jas@extundo.com>
69556
69557         * lib/crc.h: Include stddef.h, for size_t.
69558
69559 2005-10-22  Simon Josefsson  <jas@extundo.com>
69560
69561         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69562         arcfour_context struct (simplify test vector testing in GNU
69563         Shishi).
69564
69565 2005-10-21  Simon Josefsson  <jas@extundo.com>
69566
69567         * modules/des, modules/des-tests: New files.
69568
69569         * modules/gc-des, modules/gc-des-tests: New files.
69570
69571         * tests/test-des.c, tests/test-gc-des.c: New file.
69572
69573 2005-10-21  Simon Josefsson  <jas@extundo.com>
69574
69575         * modules/arctwo, modules/arctwo-tests: New files.
69576
69577         * tests/test-arctwo.c: New file.
69578
69579         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69580
69581         * tests/test-gc-arctwo.c: New file.
69582
69583 2005-10-21  Simon Josefsson  <jas@extundo.com>
69584
69585         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69586         Bruno Haible <bruno@clisp.org>.
69587
69588         * m4/gc-des.m4: New file.
69589
69590 2005-10-21  Simon Josefsson  <jas@extundo.com>
69591
69592         * m4/arctwo.m4: New file.
69593
69594         * m4/gc-arctwo.m4: New file.
69595
69596 2005-10-21  Simon Josefsson  <jas@extundo.com>
69597
69598         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69599         block.
69600
69601 2005-10-21  Simon Josefsson  <jas@extundo.com>
69602
69603         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69604         <bruno@clisp.org>.
69605
69606         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69607
69608         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69609         Bruno Haible <bruno@clisp.org>.
69610
69611         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69612         <bruno@clisp.org>.
69613
69614 2005-10-21  Simon Josefsson  <jas@extundo.com>
69615
69616         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69617
69618 2005-10-21  Simon Josefsson  <jas@extundo.com>
69619
69620         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69621
69622 2005-10-21  Simon Josefsson  <jas@extundo.com>
69623
69624         * lib/des.h, lib/des.c: New files.
69625
69626         * lib/gc-gnulib.c: Support DES.c
69627
69628 2005-10-21  Simon Josefsson  <jas@extundo.com>
69629
69630         * lib/arctwo.h, lib/arctwo.c: New files.
69631
69632         * lib/gc-gnulib.c: Support ARCTWO.
69633
69634 2005-10-21  Simon Josefsson  <jas@extundo.com>
69635
69636         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69637         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69638
69639 2005-10-21  Simon Josefsson  <jas@extundo.com>
69640
69641         * gnulib-tool (func_import, func_create_testdir): Define automake
69642         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69643         Makefile.am snippet),
69644         suggested by Bruno Haible <bruno@clisp.org>.
69645
69646         * modules/gc (Makefile.am): Use it.
69647
69648 2005-10-21  Bruno Haible  <bruno@clisp.org>
69649
69650         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69651         patch.
69652
69653 2005-10-19  Simon Josefsson  <jas@extundo.com>
69654
69655         * tests/test-gc-rijndael.c: New file.
69656
69657         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69658
69659 2005-10-19  Simon Josefsson  <jas@extundo.com>
69660
69661         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69662         interface too.
69663
69664 2005-10-19  Simon Josefsson  <jas@extundo.com>
69665
69666         * tests/test-gc-arcfour.c: New file.
69667
69668         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69669
69670 2005-10-19  Simon Josefsson  <jas@extundo.com>
69671
69672         * modules/gc-md4, modules/gc-md4-tests: New file.
69673
69674         * tests/test-gc-md4.c: New file.
69675
69676 2005-10-19  Simon Josefsson  <jas@extundo.com>
69677
69678         * m4/gc-md4.m4: New file.
69679
69680 2005-10-19  Simon Josefsson  <jas@extundo.com>
69681
69682         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69683         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69684         <kasal@ucw.cz>.
69685
69686 2005-10-19  Simon Josefsson  <jas@extundo.com>
69687
69688         * m4/gc-arcfour.m4: New file.
69689
69690         * m4/gc-rijndael.m4: New file.
69691
69692 2005-10-19  Simon Josefsson  <jas@extundo.com>
69693
69694         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69695
69696 2005-10-19  Simon Josefsson  <jas@extundo.com>
69697
69698         * lib/gc-gnulib.c: Support ARCFOUR.
69699
69700 2005-10-19  Simon Josefsson  <jas@extundo.com>
69701
69702         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69703         support.
69704
69705         * lib/gc.h: Add ECB enum type.
69706
69707         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69708
69709 2005-10-18  Simon Josefsson  <jas@extundo.com>
69710
69711         * tests/test-md5.c: New file.
69712
69713         * modules/md5-tests: New file.
69714
69715 2005-10-18  Simon Josefsson  <jas@extundo.com>
69716
69717         * tests/test-md4.c: New file.
69718
69719         * modules/md4, modules/md4-tests: New files.
69720
69721 2005-10-18  Simon Josefsson  <jas@extundo.com>
69722
69723         * m4/md4.m4: New file.
69724
69725 2005-10-18  Simon Josefsson  <jas@extundo.com>
69726
69727         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69728
69729 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69730
69731         * gnulib-tool (func_create_testdir): Omit the second check whether
69732         BUILT_SOURCES in nonempty.
69733
69734 2005-10-17  Simon Josefsson  <jas@extundo.com>
69735
69736         * tests/test-rijndael.c: New file.
69737
69738 2005-10-17  Simon Josefsson  <jas@extundo.com>
69739
69740         * modules/sha1: Depend on stdint instead of md5.
69741
69742         * modules/md5: Depend on stdint, remove uint32_t.
69743
69744 2005-10-17  Simon Josefsson  <jas@extundo.com>
69745
69746         * modules/gc-sha1-tests: New file.
69747
69748         * tests/test-gc-sha1.c: New file.
69749
69750 2005-10-17  Simon Josefsson  <jas@extundo.com>
69751
69752         * m4/md5.m4: Remove call to uint32_t.m4.
69753
69754 2005-10-17  Simon Josefsson  <jas@extundo.com>
69755
69756         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69757
69758         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69759         md5.h.
69760
69761         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69762
69763         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69764
69765 2005-10-17  Simon Josefsson  <jas@extundo.com>
69766
69767         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69768
69769 2005-10-17  Simon Josefsson  <jas@extundo.com>
69770
69771         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69772
69773 2005-10-17  Simon Josefsson  <jas@extundo.com>
69774
69775         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69776
69777         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69778
69779 2005-10-17  Bruno Haible  <bruno@clisp.org>
69780
69781         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69782         that it can also be used in a test.
69783
69784 2005-10-16  Bruno Haible  <bruno@clisp.org>
69785
69786         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69787         TESTS_ENVIRONMENT, so that individual tests can augment it.
69788
69789         * gnulib-tool (func_create_testdir): Use an intermediate target for
69790         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69791         macros, like $(ALLOCA_H), which cannot be passed through the command
69792         line.
69793
69794 2005-10-15  Simon Josefsson  <jas@extundo.com>
69795
69796         * modules/rijndael-tests: New file.
69797
69798         * modules/rijndael: New file.
69799
69800 2005-10-15  Simon Josefsson  <jas@extundo.com>
69801
69802         * m4/rijndael.m4: New file.
69803
69804 2005-10-15  Simon Josefsson  <jas@extundo.com>
69805
69806         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69807
69808         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69809
69810 2005-10-14  Simon Josefsson  <jas@extundo.com>
69811
69812         * tests/test-arcfour.c: New file.
69813
69814         * modules/arcfour, modules/arcfour-tests: New files.
69815
69816 2005-10-14  Simon Josefsson  <jas@extundo.com>
69817
69818         * m4/arcfour.m4: New file.
69819
69820 2005-10-14  Simon Josefsson  <jas@extundo.com>
69821
69822         * lib/arcfour.h, lib/arcfour.c: New files.
69823
69824 2005-10-14  Roland McGrath  <roland@redhat.com>
69825
69826         Import from libc.  [BZ #1331]
69827         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69828         macro argument.
69829         Reported by Matej Vela <vela@debian.org>.
69830
69831 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69832
69833         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69834         include <wchar.h>; no longer needed.
69835
69836 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69837
69838         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69839
69840 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69841         and  Ulrich Drepper  <drepper@redhat.com>
69842
69843         Import from libc.
69844         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69845         instead of inline stream orientation test and two separate
69846         function calls.  Pay no attention to USE_IN_LIBIO.
69847
69848 2005-10-13  Simon Josefsson  <jas@extundo.com>
69849
69850         * modules/gc-hmac-md5-tests: New file.
69851
69852         * tests/test-gc-hmac-sha1.c: New file.
69853
69854         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69855
69856         * modules/gc-hmac-md5-tests: New file.
69857
69858         * tests/test-gc-md5.c: New file.
69859
69860         * modules/gc-md5-tests: New file.
69861
69862 2005-10-13  Simon Josefsson  <jas@extundo.com>
69863
69864         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69865         Move memory allocation outside of loop.
69866
69867 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69868
69869         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69870         intermediate directory is in a read-only file system.  Problem
69871         reported by Eric Blake.
69872
69873 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69874
69875         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69876
69877 2005-10-12  Simon Josefsson  <jas@extundo.com>
69878
69879         * tests/test-hmac-sha1.c: New file.
69880
69881         * modules/hmac-sha1-tests: New file.
69882
69883         * modules/hmac-sha1: New file.
69884
69885 2005-10-12  Simon Josefsson  <jas@extundo.com>
69886
69887         * modules/gc-sha1: New file.
69888
69889 2005-10-12  Simon Josefsson  <jas@extundo.com>
69890
69891         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69892
69893         * tests/test-gc-pbkdf2-sha1.c: New file.
69894
69895 2005-10-12  Simon Josefsson  <jas@extundo.com>
69896
69897         * modules/gc-md5, modules/gc-hmac-md5: New files.
69898
69899         * modules/gc (Files): Remove md5, memxor and hmac files.
69900
69901 2005-10-12  Simon Josefsson  <jas@extundo.com>
69902
69903         * m4/gc-pbkdf2-sha1.m4: New file.
69904
69905         * m4/gc-hmac-sha1.m4: New file.
69906
69907         * m4/gc-sha1: New file.
69908
69909         * m4/hmac-sha1.m4: New file.
69910
69911 2005-10-12  Simon Josefsson  <jas@extundo.com>
69912
69913         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69914
69915         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69916
69917 2005-10-12  Simon Josefsson  <jas@extundo.com>
69918
69919         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69920         suggested by Bruno Haible <bruno@clisp.org>.
69921
69922 2005-10-12  Simon Josefsson  <jas@extundo.com>
69923
69924         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69925
69926 2005-10-12  Simon Josefsson  <jas@extundo.com>
69927
69928         * lib/gc-pbkdf2-sha1.c: New file.
69929
69930         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69931
69932 2005-10-12  Simon Josefsson  <jas@extundo.com>
69933
69934         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69935
69936         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69937
69938 2005-10-12  Simon Josefsson  <jas@extundo.com>
69939
69940         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69941         GC_USE_HMAC_MD5, respectively.
69942
69943         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69944         (gc_md5): Fix typo.
69945
69946         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
69947
69948         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
69949
69950         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
69951
69952 2005-10-12  Bruno Haible  <bruno@clisp.org>
69953
69954         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
69955         Reported by Stepan Kasal <kasal@ucw.cz>.
69956
69957 2005-10-11  Simon Josefsson  <jas@extundo.com>
69958
69959         * tests/test-crc.c: New file.
69960
69961         * modules/crc, modules/crc-tests: New files.
69962
69963 2005-10-11  Simon Josefsson  <jas@extundo.com>
69964
69965         * m4/crc.m4: New file.
69966
69967 2005-10-11  Simon Josefsson  <jas@extundo.com>
69968
69969         * lib/gc.h: Add gc_hash and gc_hash_buffer.
69970
69971         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
69972
69973         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
69974
69975 2005-10-11  Simon Josefsson  <jas@extundo.com>
69976
69977         * lib/crc.h, lib/crc.c: New files.
69978
69979         * lib/gc.h (gc_hash_buffer): Add doc.
69980
69981 2005-10-11  Bruno Haible  <bruno@clisp.org>
69982
69983         * modules/c-strcasestr: New file.
69984         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
69985
69986 2005-10-11  Bruno Haible  <bruno@clisp.org>
69987
69988         * modules/c-strcase: New file.
69989         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
69990
69991 2005-10-11  Bruno Haible  <bruno@clisp.org>
69992
69993         * lib/strcasecmp.c: Include limits.h.
69994         (strcasecmp): Avoid integer overflow on exotic platforms.
69995         * lib/strncasecmp.c: Include limits.h.
69996         (strncasecmp): Avoid integer overflow on exotic platforms.
69997         Reported by Paul Eggert.
69998
69999 2005-10-11  Bruno Haible  <bruno@clisp.org>
70000
70001         * lib/c-strcasestr.h: New file, from GNU gettext.
70002         * lib/c-strcasestr.c: New file, from GNU gettext.
70003
70004 2005-10-11  Bruno Haible  <bruno@clisp.org>
70005
70006         * lib/c-strcase.h: New file, from GNU gettext.
70007         * lib/c-strcasecmp.c: New file, from GNU gettext.
70008         * lib/c-strncasecmp.c: New file, from GNU gettext.
70009
70010 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70011
70012         * modules/mempcpy (License): GPL -> LGPL.
70013         * modules/strchrnul (License): Likewise.
70014         * modules/sysexits (License): Likewise.
70015
70016 2005-10-08  Simon Josefsson  <jas@extundo.com>
70017
70018         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70019
70020 2005-10-07  Simon Josefsson  <jas@extundo.com>
70021
70022         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70023
70024 2005-10-06  Simon Josefsson  <jas@extundo.com>
70025
70026         * tests/test-hmac-md5.c: New file.
70027
70028         * modules/hmac-md5-tests: New file.
70029
70030         * modules/hmac-md5: New file.
70031
70032 2005-10-06  Simon Josefsson  <jas@extundo.com>
70033
70034         * m4/hmac-md5.m4: New file.
70035
70036         * m4/memxor.m4: Require gl_C_RESTRICT.
70037
70038 2005-10-06  Simon Josefsson  <jas@extundo.com>
70039
70040         * lib/memxor.c (memxor): Avoid casts and warnings.
70041
70042 2005-10-06  Simon Josefsson  <jas@extundo.com>
70043
70044         * lib/hmac-md5.c: New file.
70045
70046         * lib/hmac.h: New file.
70047
70048 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70049
70050         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70051         promotes to int, not unsigned int, to catch the AIX 5.3
70052         compiler bug.
70053
70054 2005-10-05  Simon Josefsson  <jas@extundo.com>
70055
70056         * modules/memxor: New file.
70057
70058         * modules/iconv (Files): Move config.rpath to havelib, it is used
70059         there.
70060
70061         * modules/havelib (Files): Add config.rpath.
70062
70063 2005-10-05  Simon Josefsson  <jas@extundo.com>
70064
70065         * m4/memxor.m4: New file.
70066
70067 2005-10-05  Simon Josefsson  <jas@extundo.com>
70068
70069         * lib/memxor.c (memxor): Fix compiler error.
70070
70071         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70072         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70073
70074         * lib/memxor.h, lib/memxor.c: New files.
70075
70076         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70077         we assume all systems have it, suggested by Jim Meyering
70078         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70079         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70080         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70081         same reasons.
70082
70083 2005-10-05  Simon Josefsson  <jas@extundo.com>
70084
70085         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70086
70087 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70088
70089         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70090         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70091         needed, since the source code now assumes these .h files.
70092
70093 2005-10-05  Derek Price  <derek@ximbiot.com>
70094
70095         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70096
70097 2005-10-05  Bruno Haible  <bruno@clisp.org>
70098
70099         * modules/stdint (License): Change to LGPL.
70100
70101 2005-10-04  Simon Josefsson  <jas@extundo.com>
70102
70103         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70104         D. Baushke" <mdb@gnu.org>.
70105
70106 2005-10-04  Bruno Haible  <bruno@clisp.org>
70107
70108         * lib/verify.h (verify_true): Provide alternative definition for C++.
70109
70110 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70111
70112         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70113         (SSIZE_MAX): New macro, if not already defined.
70114         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70115         than 2 GiB.
70116
70117 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70118
70119         Sync from coreutils.
70120         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70121         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70122         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70123         ULLONG_MAX doesn't work with 2.7.2.1.
70124
70125 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70126
70127         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70128         From Ben Pfaff.
70129
70130         * modules/exclude (Depends-on): Depend on verify.
70131         * modules/strtoimax (Depends-on): Likewise.
70132         * modules/utimecmp (Depends-on): Likewise.
70133
70134 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70135
70136         * lib/exclude.c: Include verify.h.
70137         (verify): Remove.  All callers changed to use verify.h's version.
70138         * lib/strtoimax.c: Likewise.
70139         * lib/utimecmp.c: Likewis.e
70140
70141         Sync from coreutils.
70142         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70143         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70144         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70145         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70146         bother returning ENOSYS if settimeofday or stime fails; just let
70147         them return whatever errno they want to return.
70148         * lib/utimens.c: Include unistd.h, for dup2.
70149         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70150         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70151
70152 2005-10-02  Jim Meyering  <jim@meyering.net>
70153
70154         Sync from coreutils.
70155         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70156         from glibc-2.2.5 that fails for read-only files.
70157
70158 2005-10-02  Jim Meyering  <jim@meyering.net>
70159
70160         Sync from coreutils.
70161         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70162         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70163         `#if HAVE_CONFIG_H'.
70164         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70165         Remove AT_FDCWD test.
70166         Do not consume the fd unless successful.
70167         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70168         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70169         block, so that we don't even try to compile it if settimeofday is
70170         available.  This works around a compilation failure on OSF1 V5.1,
70171         due to stime requiring a `long int*' while tv_sec is `int'.
70172
70173 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70174
70175         Sync from coreutils.
70176         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70177         against `yes', rather than just testing for nonempty.
70178
70179 2005-10-01  Simon Josefsson  <jas@extundo.com>
70180
70181         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70182         and Darwin.
70183
70184         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70185         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70186         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70187         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70188         Check if struct addrinfo is declared.
70189
70190 2005-10-01  Simon Josefsson  <jas@extundo.com>
70191
70192         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70193         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70194         AI_* and EAI_* definitions.  Protect function declarations.
70195
70196 2005-10-01  Jim Meyering  <jim@meyering.net>
70197
70198         Sync from coreutils.
70199
70200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70201         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70202         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70204         in the inet and nsl libraries.  Required on Solaris 5.7.
70205
70206 2005-10-01  Jim Meyering  <jim@meyering.net>
70207
70208         Sync from coreutils.
70209         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70210         in the inet and nsl libraries.  Required on Solaris 5.7.
70211
70212 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70213
70214         * lib/getdelim.c (getdelim): Remove unused variables.
70215
70216 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70217
70218         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70219         so that the code works even with ancient cpp.  Portability problem
70220         with GCC 2.7.2.1 reported by Thomas M.Ott.
70221
70222 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70223
70224         * modules/regex (Depends-on): Add strcase.
70225
70226         * modules/gethostname (Licence): Change from GPL to LGPL, since
70227         gethostname.c is a trivial implementation of a standard library
70228         function.
70229         * modules/poll (License): Change from GPL to LGPL, since it's
70230         derived from LGPL code.
70231
70232 2005-09-27  Jim Meyering  <jim@meyering.net>
70233
70234         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70235         HAVE_CONFIG_H.
70236
70237         * lib/intprops.h (signed_type_or_expr__): Define.
70238         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70239         for unsigned types.
70240
70241 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70242
70243         * lib/verify.h (verify_expr): Remove, replacing with:
70244         (verify_true): New macro that returns true instead of void.
70245         (verify_type__): Remove.
70246         (verify): Use verify_true rather than verify_type__.
70247
70248 2005-09-26  Bruno Haible  <bruno@clisp.org>
70249
70250         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70251         is necessary.
70252         (lib_SOURCES): Remove mbchar.c.
70253         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70254         (Files): Add m4/mbrtowc.m4.
70255         * modules/mbiter: Likewise.
70256         * modules/mbuiter: Likewise.
70257
70258 2005-09-26  Bruno Haible  <bruno@clisp.org>
70259
70260         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70261         compile mbchar.c if they are not both present.
70262         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70263         * m4/mbiter.m4 (gl_MBITER): Likewise.
70264         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70265         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70266         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70267
70268 2005-09-25  Jim Meyering  <jim@meyering.net>
70269
70270         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70271         also uses socklen_t.
70272
70273 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70274
70275         * lib/utimens.c (ENOSYS): Define if not already defined.
70276         (futimens): Support having a null PATH if the file descriptor
70277         is nonnegative.
70278
70279         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70280         Remove.
70281         (__attribute): Define to empty unless GCC 3.1 or later.
70282         This works around a core dump on OpenBSD 3.4, which has GCC
70283         2.95.3, which dumps core when given __attribute__(()).  It also
70284         simplifies other tests, since we really don't want to bother with
70285         worrying about which ancient version of GCC supported what.
70286         Original problem reported by Yoann Vandoorselaere, with part of
70287         the fix suggested by Derek Price.
70288
70289 2005-09-24  Jim Meyering  <jim@meyering.net>
70290
70291         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70292         so we can once again use a positive bitfield width of 1 -- now we
70293         don't have to explain why we were using a bitfield width of 2.
70294
70295 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70296
70297         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70298         and similarly for the other external symbols.  Problem reported
70299         by James Gallager.
70300
70301         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70302         bug reported by Jim Meyering.
70303
70304         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70305         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70306         not needed, since socklen is a prerequisite module.
70307
70308 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70309
70310         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70311         Problem reported by Eric Blake.
70312         (getaddrinfo): Initialize se so that it's not garbage.
70313         Redo internal storage allocation so that it doesn't make unportable
70314         assumptions about alignment.
70315         Fix a memory leak.
70316
70317         * lib/utimens.c (futimens): Use futimesat if available.
70318         Prefer it to futimes since it doesn't have the futimes bug.
70319
70320         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70321         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70322         Instead, declare a function that returns a pointer to an array,
70323         and use verify_type__ to declare the size of the array.
70324         Problem and germ of a solution reported by Bruno Haible.
70325         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70326         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70327
70328 2005-09-23  Jim Meyering  <jim@meyering.net>
70329
70330         Sync from coreutils.
70331         Correct build failure (socklen_t not defined) on at least
70332         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70333         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70334
70335 2005-09-23  Jim Meyering  <jim@meyering.net>
70336
70337         * modules/getaddrinfo (Depends-on): Add socklen.
70338
70339 2005-09-23  Bruno Haible  <bruno@clisp.org>
70340
70341         * tests/test-verify.c: New file.
70342
70343 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70344
70345         Sync from coreutils.
70346
70347         * modules/argmatch (Depends-on): Add verify.
70348         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70349         unistd-safer.
70350         * modules/save-cwd (Depends-on): Likewise.
70351
70352         * modules/openat (Files): Add lib/openat-die.c.
70353         (Depends-on): Remove error, exitfail.
70354         Add dirname.
70355
70356         * modules/verify: New file.
70357         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70358         with "verify" module.
70359
70360 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70361
70362         Sync from coreutils.
70363
70364         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70365         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70366         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70367         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70368         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70369         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70370         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70371         Don't bother checking for string.h, stdlib.h, unistd.h.
70372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70373         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70374         module's job.
70375         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70376         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70377
70378         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70379         (gl_GETDATE): Use it.
70380
70381         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70382
70383 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70384
70385         Sync from coreutils.
70386
70387         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70388         stat-time.h.
70389         * lib/argmatch.h: Include verify.h
70390         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70391         (ARGMATCH_ASSERT): Remove; unused.
70392         * lib/canonicalize.c: Assume STDC_HEADERS.
70393         * lib/exclude.c: Include "strcase.h".
70394         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70395         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70396         and stdio-safer.h.
70397         (getusershell): Call fopen, not fopen_safer.
70398         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70399         Do not include unistd-safer.h.
70400         (save_cwd): Don't call fd_safer; no longer needed
70401         now that we include fcntl--.h.
70402
70403         * lib/getdate.y (relative_time): New type.
70404         (RELATIVE_TIME_0): New constant.
70405         (parser_control): Use relative_time instead of doing it ourselves.
70406         (%union): Add new relative_time rel member.
70407         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70408         Now typeless.
70409         (relunit, relunit_snumber): Now of type rel.
70410         (zone, rel, relunit, get_date): Adjust to above changes.
70411
70412         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70413         Do not include unistd-safer.h.
70414         (getloadavg): Don't call fd_safer; no longer needed
70415         now that we include fcntl--.h.
70416
70417         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70418         (make_dir_parents): Treat ENOSYS like EEXIST.
70419
70420         Improve quality of diagnostics on restore_cwd failure.
70421         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70422         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70423         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70424         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70425         each time through the loop.  Do not diagnose restore_cwd failure;
70426         that is the caller's job (and perhaps the caller does not care).
70427
70428         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70429         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70430         If the file already exists but is not a directory, don't bother
70431         to try to make its parents.
70432         Close potential file descriptor leak if we can't chdir("/") (!).
70433         Don't always return true if chdir($PWD) fails; return true only
70434         if the requested action was done successfully (except for the
70435         chdir($PWD)).
70436         Don't log final directory unless we actually made it.
70437         Refactor to avoid duplicate code to fix up permissions.
70438         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70439
70440         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70441         to make it a bit faster and (I hope) clearer.
70442         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70443         Fix bug in formats like %2N.
70444
70445         * lib/verify.h: New file.
70446
70447 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70448
70449         Sync from coreutils.
70450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70451
70452 2005-09-22  Jim Meyering  <jim@meyering.net>
70453
70454         Sync from coreutils.
70455
70456         * m4/lstat.m4 (gl_FUNC_LSTAT):
70457         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70458         Remove obsolete comment.
70459         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70460         * m4/xstrtod.m4: Likewise.
70461
70462         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70463
70464 2005-09-22  Jim Meyering  <jim@meyering.net>
70465
70466         Sync from coreutils.
70467
70468         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70469
70470         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70471         the .tm_year member, since otherwise gcc-4.0 would now warn about
70472         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70473
70474         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70475         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70476
70477         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70478         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70479         when run in a time zone for which daylight savings time is in effect
70480         for the starting date.
70481
70482         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70483         stop us from restricting permissions of just-created absolute-named
70484         directories.
70485         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70486         to restore initial working directory.
70487         * lib/mkdir-p.c (make_dir_parents): New parameter:
70488         different_working_dir, to tell caller if/when we change the working
70489         directory and are unable to return to the initial one.
70490         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70491         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70492         `return false'.  This fixes a bug introduced on 2004-07-30.
70493
70494         * lib/openat.c (fdopendir): Be sure to close the supplied
70495         file descriptor before returning.  This makes our replacement
70496         implementation a little closer to Solaris's, where fdopendir
70497         ties the file descriptor to the returned DIR* pointer.
70498         * lib/openat.c (unlinkat): New function.
70499         * lib/openat.h (unlinkat): Add prototype.
70500         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70501         (openat_restore_fail): Rename from openat_restore_die.
70502         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70503
70504         Provide an alternative to exiting immediately upon save_cwd or
70505         restore_cwd failure.  Now, an application can arrange e.g.,
70506         to perform a longjump in that case.
70507         * lib/openat.c: Include dirname.h.
70508         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70509         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70510         and openat_restore_die rather than calling error directly.
70511         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70512
70513         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70514         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70515         define.
70516
70517         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70518         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70519                             int utc, int nanoseconds);
70520         Background:
70521         date should not have to allocate a megabyte of virtual memory to
70522         handle a format argument like +%1048575T.  When implemented with
70523         strftime, it must allocate such a buffer, use strftime to fill it
70524         in, print it, then free it.
70525         With fprintftime, it simply prints everything and exits.
70526         With no need for memory allocation, that's one fewer way to fail.
70527         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70528         optional field width, not before, so we accept %9:z, not %:9z.
70529         (my_strftime): Be sure to use L_('x') for literals.
70530
70531         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70532         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70533         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70534         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70535         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70536         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70537         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70538         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70539         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70540         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70541         * lib/xgethostname.c, lib/xreadlink.c:
70542         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70543
70544         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70545         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70546         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70547         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70548         and don't include <sys/file.h>).
70549
70550 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70551
70552         Sync from coreutils.
70553
70554         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70555         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70556         [!LDAV_DONE]: Avoid unused variable warning.
70557
70558 2005-09-21  Bruno Haible  <bruno@clisp.org>
70559
70560         * lib/unicodeio.h (unicode_to_mb): New declaration.
70561
70562 2005-09-20  Derek Price  <derek@ximbiot.com>
70563
70564         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70565         getaddrinfo.h.
70566
70567 2005-09-20  Bruno Haible  <bruno@clisp.org>
70568
70569         * gnulib-tool: Remove trailing slashes from the values specified for
70570         --source-base, --m4-base, --tests-base, --aux-dir.
70571         Suggested by Simon Josefsson <jas@extundo.com>.
70572
70573 2005-09-20  Bruno Haible  <bruno@clisp.org>
70574
70575         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70576         func_modules_to_filelist, func_import, func_create_testdir): Make all
70577         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70578         change when gnulib-tool is invoked in a different locale.
70579
70580 2005-09-19  Simon Josefsson  <jas@extundo.com>
70581
70582         * m4/socklen.m4: Fix typo.
70583
70584 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70585
70586         Use a consistent style for including <config.h>.
70587         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70588         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70589         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70590         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70591         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70592         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70593         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70594         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70595         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70596         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70597         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70598         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70599         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70600         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70601         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70602         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70603         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70604         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70605         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70606         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70607         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70608         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70609         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70610         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70611         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70612         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70613         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70614         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70615         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70616         lib/xstrtoumax.c, lib/yesno.c:
70617         Standardize inclusion of config.h.
70618         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70619         lib/inttostr.h:  Removed inclusion of config.h from header files.
70620         * lib/inttostr.c:  Adjusted in-tree users.
70621         * lib/timespec.h: Remove superfluous warning to include config.h.
70622         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70623         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70624         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70625         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70626         config.h with HAVE_CONFIG_H.
70627
70628 2005-09-19  Jim Meyering  <jim@meyering.net>
70629
70630         * modules/pathmax (License): Change to LGPL.
70631
70632 2005-09-19  Derek Price  <derek@ximbiot.com>
70633
70634         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70635
70636 2005-09-19  Bruno Haible  <bruno@clisp.org>
70637
70638         * gnulib-tool (import): Provide default for --tests-base.
70639
70640 2005-09-19  Bruno Haible  <bruno@clisp.org>
70641
70642         * doc/quote.texi: New file, extracted from gnulib.texi.
70643         * doc/ctime.texi: New file, extracted from gnulib.texi.
70644         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70645         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70646         * doc/gnulib.texi: Include them.
70647
70648 2005-09-18  Bruno Haible  <bruno@clisp.org>
70649
70650         Portability fix.
70651         * gnulib-tool (func_readlink): New function.
70652         (func_ln_if_changed): Use it.
70653
70654 2005-09-18  Bruno Haible  <bruno@clisp.org>
70655
70656         * gnulib-tool: Support --with-tests also with --import.
70657         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70658         (func_import): Use variables $testsbase and $inctests. Emit a
70659         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70660         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70661         SUBDIRS += $testsdir.
70662         (func_create_testdir): Update.
70663
70664 2005-09-18  Bruno Haible  <bruno@clisp.org>
70665
70666         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70667         instead of $dry_run.
70668         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70669         (func_ln_if_changed): Don't handle dry-run here.
70670         (func_import): In dry-run mode, detect more precisely which actions
70671         would be performed, and don't use "...ing" verbs.
70672
70673 2005-09-18  Bruno Haible  <bruno@clisp.org>
70674
70675         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70676         (func_import): Use join on two temporary files instead of three nested
70677         loops, in order to determine which files are new or old.
70678
70679 2005-09-18  Bruno Haible  <bruno@clisp.org>
70680
70681         * gnulib-tool (func_import): Comment out code that spits out the
70682         new files with --dry-run.
70683
70684 2005-09-18  Bruno Haible  <bruno@clisp.org>
70685
70686         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70687
70688 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70689
70690         * lib/stat-time.h: New file.
70691         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70692         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70693         in a different way.
70694         (timespec_cmp): New function.
70695         * lib/utimecmp.c: Include stat-time.h.
70696         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70697         members exist, not on the obsolescent ST_MTIM_NSEC.
70698         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70699
70700 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70701
70702         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70703
70704 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70705
70706         * MODULES.html.sh (File system functions): Add stat-time.
70707         * modules/stat-time: New file.
70708         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70709         is now done in a different way, by the stat-time module.
70710         * modules/utimecmp (Depends-on): Add stat-time.
70711
70712 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70713
70714         * m4/st_mtim.m4: Remove.  Superseded by...
70715         * m4/stat-time.m4: New file.
70716         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70717         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70718
70719 2005-09-15  Derek Price  <derek@ximbiot.com>
70720
70721         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70722
70723 2005-09-15  Derek Price  <derek@ximbiot.com>
70724
70725         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70726         * lib/regex_internal.c: Ditto, using this...
70727         (__GNUC_PREREQ): ...new macro.
70728         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70729         using...
70730         (__GNUC_PREREQ): ...this new macro.
70731
70732         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70733
70734 2005-09-15  Derek Price  <derek@ximbiot.com>
70735             Paul Eggert  <eggert@cs.ucla.edu>
70736
70737         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70738         changes, consolidating in...
70739         * lib/regex_internal.h: ...this file.
70740
70741 2005-09-13  Jim Meyering  <jim@meyering.net>
70742
70743         * lib/canon-host.c: Filter through gnu indent and reword comments
70744         slightly.
70745         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70746
70747 2005-09-13  Derek Price  <derek@ximbiot.com>
70748
70749         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70750         failure.
70751         Reported by Jim Meyering  <jim@meyering.net>.
70752
70753 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70754
70755         * lib/base64.c: Typo.
70756         (base64_encode): Put b64str in initialized data section.
70757
70758 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70759
70760         Merge glibc and coreutils changes into gnulib, plus a few
70761         extra fixes.
70762         * lib/md5.c: Use #error rather than a string.
70763         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70764         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70765         (__attribute__): Define to empty for non recent-GCC.
70766         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70767         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70768         Renamed from their non-__ counterparts, with new macros replacing
70769         them if not _LIBC.  Add __THROW attribute.
70770         (rol): Remove.
70771         (struct md5_ctx): Align buffer if using GCC.
70772         * lib/sha1.h (struct sha1_ctx): Likewise.
70773         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70774         The old name was backwards.
70775         (NOTSWAP): Remove; not used.
70776         (rol): New macro, moved here from md5.h.
70777         (sha1_process_block): Remove a FIXME that doesn't make sense.
70778
70779 2005-09-12  Derek Price  <derek@ximbiot.com>
70780
70781         Return usable errors from canon-host.
70782         * lib/canon-host.h: New file.
70783         * lib/canon-host.c (canon_host): Wrap...
70784         (canon_host_r): ...this new function, which now relies exclusively on
70785         getaddrinfo.
70786         (ch_strerror): New function.
70787         (last_cherror): New global.
70788         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70789         interface.
70790         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70791         void *.
70792         (freeaddrinfo): Free ai->ai_canonname when set.
70793
70794 2005-09-12  Derek Price  <derek@ximbiot.com>
70795
70796         Make canon-host require getaddrinfo.
70797         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70798         AC_LIBSOURCE canon-host.h.  Call...
70799         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70800         gl_GETADDRINFO.
70801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70802
70803 2005-09-12  Derek Price  <derek@ximbiot.com>
70804
70805         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70806         LGPL.
70807         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70808
70809 2005-09-12  Derek Price  <derek@ximbiot.com>
70810
70811         * lib/gai_strerror.c: Include config.h when available.  Include
70812         getaddrinfo.h before other headers to test interface.
70813         Reported by Larry Jones <lawrence.jones@ugs.com>.
70814
70815 2005-09-12  Derek Price  <derek@ximbiot.com>
70816             Paul Eggert  <eggert@cs.ucla.edu>
70817
70818         * modules/glob (Files): Add glob-libc.h.
70819
70820 2005-09-12  Derek Price  <derek@ximbiot.com>
70821             Paul Eggert  <eggert@cs.ucla.edu>
70822
70823         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70824         glob_.h, glob-libc.h.
70825         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70826
70827 2005-09-12  Derek Price  <derek@ximbiot.com>
70828             Paul Eggert  <eggert@cs.ucla.edu>
70829
70830         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70831         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70832         protecting things that should be done only in gnulib contexts.
70833         * lib/glob_.h: New file, containing only the glob things needed for
70834         gnulib.
70835         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70836         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70837         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70838         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70839         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70840         and to respect the namespace rules better.
70841
70842 2005-09-08  Simon Josefsson  <jas@extundo.com>
70843
70844         * modules/socklen: New file.
70845
70846 2005-09-08  Simon Josefsson  <jas@extundo.com>
70847
70848         * m4/socklen.m4: New file.
70849
70850 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70851
70852         * modules/utimens (Files): Add m4/utimbuf.m4, since
70853         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70854         Reported by Sergey Poznyakoff.
70855
70856 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70857
70858         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70859         definitions, since that's the preferred style in glibc.
70860         Fix a minor spacing issue, and update copyright notice to match
70861         glibc's.
70862
70863 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70864
70865         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70866
70867 2005-09-06  Simon Josefsson  <jas@extundo.com>
70868
70869         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70870         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70871
70872 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70873
70874         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70875         warning.
70876
70877 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70878
70879         * config/srclist.txt: Add glibc bug 1302.
70880
70881 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         Change bitset word type from unsigned int to unsigned long int,
70884         as this has better performance on typical 64-bit hosts.
70885         Port bitset code to hosts with unusual word sizes.
70886         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70887         (build_collating_symbol):
70888         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70889         argument is a bitset.  This is merely a style issue, but it makes
70890         it clearer that an entire array is expected.
70891         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70892         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70893         Port to the case where bitset_word is not the same as unsigned int.
70894         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70895         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70896         Likewise.
70897         * lib/regexec.c (check_dst_limits_calc_pos_1,
70898         check_subexp_matching_top):
70899         (build_trtable, group_nodes_into_DFAstates):
70900         Likewise.
70901         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70902         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70903         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70904         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70905         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70906         * lib/regcomp.c (optimize_subexps, lower_subexp):
70907         Work even if bitset_word has holes in its bitwise representation.
70908         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70909         * lib/regexec.c (check_dst_limits_calc_pos_1,
70910         check_subexp_matching_top):
70911         Likewise.
70912         * lib/regex_internal.c (re_string_reconstruct):
70913         Don't assume UCHAR_MAX == 255.
70914         * lib/regex_internal.h (bitset_set_all): Likewise.
70915         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70916         All uses changed.
70917         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70918         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70919         All uses changed.
70920         (BITSET_WORD_MAX): New macro.
70921         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70922         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70923         (bitset_empty, bitset_copy):
70924         Prefer sizeof (bitset) to multiplying it out ourselves.
70925         (bitset_not_merge): Remove; unused.
70926         (bitset_contain): Return bool, not unsigned int with one bit on.
70927         All callers changed.
70928         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70929         alignment than re_node_set; do this by defining a new internal
70930         type struct dests_alloc and using it to allocate memory.
70931
70932 2005-09-05  Bruno Haible  <bruno@clisp.org>
70933
70934         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70935         links.
70936
70937 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70938
70939         * modules/size_max (Makefile.am): Add size_max.h
70940
70941 2005-09-04  Derek Price  <derek@ximbiot.com>
70942
70943         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70944
70945 2005-09-03  Simon Josefsson  <jas@extundo.com>
70946
70947         * gnulib-tool: Fix typo.
70948
70949 2005-09-03  Simon Josefsson  <jas@extundo.com>
70950
70951         * config/srclist.txt: Add glibc bug 1293.
70952
70953 2005-09-03  Derek Price  <derek@ximbiot.com>
70954
70955         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
70956         From Larry Jones <lawrence.jones@ugs.com>.
70957
70958 2005-09-02  Simon Josefsson  <jas@extundo.com>
70959
70960         * modules/socklen: New file.
70961
70962 2005-09-02  Simon Josefsson  <jas@extundo.com>
70963
70964         * modules/havelib: New module.
70965
70966         * modules/gettext, modules/iconv, modules/lock, modules/readline:
70967         Use havelib.
70968
70969 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70970
70971         Check for arithmetic overflow when calculating sizes, to prevent
70972         some buffer-overflow issues.  These patches are conservative, in the
70973         sense that when I couldn't determine whether an overflow was possible,
70974         I inserted a run-time check.
70975         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
70976         macros.
70977         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
70978         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
70979         (re_xnrealloc, re_x2nrealloc): New inline functions.
70980         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
70981         parse_bracket_exp):
70982         (build_equiv_class, build_charclass): Check for arithmetic overflow
70983         in size expression calculations.
70984         * lib/regex_internal.c (re_string_realloc_buffers):
70985         (build_wcs_upper_buffer, re_node_set_add_intersect):
70986         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
70987         (re_dfa_add_node, register_state): Likewise.
70988         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
70989         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
70990         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
70991         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
70992
70993 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
70994
70995         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
70996         m4/ulonglong.m4.  Problem reported by Martin Lambers.
70997
70998 2005-09-02  Bruno Haible  <bruno@clisp.org>
70999
71000         Support for lib vs. lib64 distinction on biarch platforms.
71001         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71002         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71003         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71004
71005 2005-09-02  Bruno Haible  <bruno@clisp.org>
71006
71007         * gnulib-tool (import): In the other first-use case, provide defaults
71008         as well.
71009
71010 2005-09-02  Bruno Haible  <bruno@clisp.org>
71011
71012         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71013         patches not yet found in the latest gettext release.
71014
71015 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71016
71017         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71018         to avoid a collision with bits/local_lim.h in glibc.
71019         All uses changed.  Problem reported by Dmitry V. Levin in
71020         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71021
71022         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71023         bugs in int versus size_t comparisons.
71024         (re_string_context_at): Fix bug where the code assumed that
71025         Idx is signed.
71026
71027         Use bool where appropriate.
71028         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71029         All callers changed.
71030         (calc_eclosure_iter): Likewise, for ROOT arg.
71031         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71032         (build_charclass_op): Likewise, for NON_MATCH arg.
71033         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71034         (re_string_construct_common): Likewise, for ICASE arg.
71035         * lib/regexec.c (re_search_2_stub, re_search_stub):
71036         Likewise, for RET_LEN arg.
71037         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71038         (set_regs): Likewise, for FL_BACKTRACK arg.
71039         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71040         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71041         (calc_eclosure_iter, parse_bracket_exp):
71042         Use bool for internal variables that are booleans.
71043         * lib/regexec.c (re_search_internal, check_matching,
71044         proceed_next_node):
71045         (set_regs, build_sifted_states, sift_states_bkref):
71046         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71047         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71048         (find_collation_sequence_value):
71049         Likewise.
71050         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71051         (re_node_set_compare):
71052         Return bool, not int. All callers changed.
71053         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71054         (build_trtable, check_node_accept): Likewise.
71055         * lib/regex_internal.h: Include stdbool.h.
71056
71057         Fix bugs uncovered when converting to bool.
71058         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71059         failure instead of charging ahead blindly.
71060         * lib/regex_internal.c (register_state): Likewise.
71061         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71062         for freeing internal storage.
71063         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71064         bitset pieces used as boolean, to avoid undefined behavior
71065         on hosts that do int overflow checking.
71066
71067 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71068
71069         * config/srclist.txt: Add glibc bugs 1285-1287.
71070
71071 2005-09-01  Jim Meyering  <jim@meyering.net>
71072
71073         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71074         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71075         Require gl_STAT_MACROS, too.
71076
71077 2005-09-01  Bruno Haible  <bruno@clisp.org>
71078
71079         * gnulib-tool (import): In the first-use case, provide defaults.
71080
71081 2005-09-01  Bruno Haible  <bruno@clisp.org>
71082
71083         * gnulib-tool (func_import): Remove the .tmp files.
71084
71085 2005-09-01  Bruno Haible  <bruno@clisp.org>
71086
71087         * gnulib-tool (func_import): Fix handling of symbolic links.
71088
71089 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71092         old glibc regex code mishandles strings longer than 2**31 bytes.
71093         This patch fixes this when the regex code is used in gnulib
71094         (i.e., outside glibc).
71095
71096         This patch should not affect the use of the regex code inside
71097         glibc.  No doubt this problem also needs to be handled for glibc
71098         as well, but the result will be an incompatible change to the
71099         glibc ABI, and the old ABI will have to be supported too.  That
71100         can be the the subject for another patch.
71101
71102         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71103         governing whether the rest of this patch is active.  By default,
71104         the macro is disabled and the patch has no effect.
71105         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71106         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71107         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71108         (re_match_2, re_set_registers): Use the new types.
71109         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71110         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71111         New macros.
71112         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71113         (re_string_context_at, bin_tree_t, re_dfastate_t):
71114         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71115         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71116         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71117         (re_string_char_size_at, re_string_wchar_at):
71118         (re_string_elem_size_at):
71119         Use the new types and macros to port to 64-bit hosts.
71120         Use unsigned types for internal values, so that the code
71121         mostly works even for arrays larger than SSIZE_MAX.
71122         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71123         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71124         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71125         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71126         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71127         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71128         (calc_inveclosure, parse_dup_op, build_range_exp):
71129         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71130         (fetch_number, create_token_tree, mark_opt_subexp):
71131         Likewise.
71132         * lib/regex_internal.c (re_string_construct_common,
71133         create_ci_newstate):
71134         (create_cd_newstate, re_string_allocate, re_string_construct):
71135         (re_string_realloc_buffers, build_wcs_upper_buffer):
71136         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71137         (re_string_reconstruct, re_string_peek_byte_case):
71138         (re_string_fetch_byte_case, re_string_context_at):
71139         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71140         (re_node_set_init_copy, re_node_set_add_intersect):
71141         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71142         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71143         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71144         (re_acquire_state, re_acquire_state_context, register_state):
71145         Likewise.
71146         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71147         search_cur_bkref_entry):
71148         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71149         (re_search_internal, re_search_2_stub, re_search_stub)
71150         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71151         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71152         (update_cur_sifted_state, check_dst_limits):
71153         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71154         (check_subexp_limits, sift_states_bkref, merge_state_array):
71155         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71156         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71157         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71158         (expand_bkref_cache, check_node_accept_bytes):
71159         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71160         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71161         (acquire_init_state_context, check_halt_node_context):
71162         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71163         (sift_states_backward, clean_state_log_if_needed):
71164         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71165         (find_recover_state, transit_state_sb, transit_state_mb):
71166         (transit_state_bkref, build_trtable, match_ctx_clean):
71167         Likewise.
71168         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71169         to work around an assumption that REG_MISSING is negative.
71170
71171         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71172         (seek_collating_symbol_entry) [defined _LIBC]:
71173         (lookup_collation_sequence_value) [defined _LIBC]:
71174         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71175         Use prototypes rather than old-style function definitions.
71176         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71177         (transit_state_sb) [0]:
71178         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71179
71180         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71181         rm_eo.
71182
71183         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71184         (optimize_subexps, lower_subexp):
71185         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71186         since the signed shift might overflow.  Use 1u<<31 instead.
71187         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71188         Likewise.
71189         * lib/regexec.c (check_dst_limits_calc_pos_1,
71190         check_subexp_matching_top): Likewise.
71191
71192         * lib/regcomp.c (optimize_subexps, lower_subexp):
71193         Use CHAR_BIT rather than 8, for clarity.
71194         * lib/regexec.c (check_dst_limits_calc_pos_1):
71195         (check_subexp_matching_top): Likewise.
71196         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71197         have to worry about portability issues when shifting it left.
71198         Remove no-longer-needed test for table_size > 0.
71199         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71200         in a word, as the resulting behavior is undefined.
71201         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71202         in one case, a <= should have been an <, and in another case the
71203         whole test was missing.
71204         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71205         the standard name CHAR_BIT.
71206         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71207         this is not true on one's complement and signed-magnitude hosts.
71208
71209         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71210         next_last_offset.
71211         (struct re_dfa_t): Remove unused member states_alloc.
71212         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71213
71214 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71215
71216         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71217         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71218         and large-file glibc and in 32-bit large-file Solaris.
71219
71220 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71223         lengths fit in regoff_t; this isn't true if regoff_t is the same
71224         width as size_t.
71225         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71226         (= START + RANGE) instead of RANGE.  This avoids overflow
71227         problems when regoff_t is the same width as size_t.
71228         All callers changed.
71229         (re_search_2_stub): Check for overflow when adding the
71230         sizes of the two strings.
71231         (re_search_stub): Check for overflow when adding START
71232         to RANGE; if it occurs, substitute the extreme value.
71233
71234 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71235
71236         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71237
71238 2005-08-31  Jim Meyering  <jim@meyering.net>
71239
71240         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71241         a pointer-to-const.
71242         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71243         (register_state): Likewise.
71244         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71245         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71246         (group_nodes_into_DFAstates): Likewise.
71247
71248 2005-08-31  Jim Meyering  <jim@meyering.net>
71249
71250         * check-module: Add a FIXME comment.
71251
71252 2005-08-31  Eric Blake  <ebb9@byu.net>
71253
71254         * modules/unistd-safer (Files): Add unistd--.h.
71255         * modules/stdio-safer (Files): Add stdio--.h.
71256
71257 2005-08-31  Derek Price  <derek@ximbiot.com>
71258
71259         * lib/getdelim.c (getdelim): Return EOF on EOF.
71260         Reported by Larry Jones <lawrence.jones@ugs.com>.
71261
71262 2005-08-31  Bruno Haible  <bruno@clisp.org>
71263
71264         Avoid unnecessary diffs in the generated lib/Makefile.am.
71265         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71266         the generated files.
71267         (func_import): Don't set cmd.
71268
71269 2005-08-31  Bruno Haible  <bruno@clisp.org>
71270
71271         * lib/strstr.c: Include <stddef.h>, for NULL.
71272         * lib/strcasestr.c: Likewise.
71273         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71274
71275 2005-08-31  Bruno Haible  <bruno@clisp.org>
71276
71277         * gnulib-tool: New option --macro-prefix.
71278         (func_import): Use macro_prefix.
71279         (import): Handle option --macro-prefix.
71280
71281 2005-08-31  Bruno Haible  <bruno@clisp.org>
71282
71283         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71284         Also use new variables cached_lgpl, cached_libtool.
71285
71286 2005-08-31  Bruno Haible  <bruno@clisp.org>
71287
71288         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71289         always instantiating them.
71290
71291 2005-08-31  Bruno Haible  <bruno@clisp.org>
71292
71293         * gnulib-tool (func_import): Read the previous cached settings
71294         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71295         earlier added by gnulib but are now dropped. Warn when a gnulib file
71296         overwrites a non-gnulib file.
71297
71298 2005-08-31  Bruno Haible  <bruno@clisp.org>
71299
71300         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71301         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71302         projects that don't keep autogenerated files in CVS. Put into
71303         actioncmd only the specified modules, not the transitive closure.
71304
71305 2005-08-31  Bruno Haible  <bruno@clisp.org>
71306
71307         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71308         Create directories that shall be filled.
71309         (import): Don't look for gl_* macros in configure.ac. Recurse across
71310         all directories containing a gnulib-cache.m4 files, if meaningful.
71311
71312 2005-08-31  Bruno Haible  <bruno@clisp.org>
71313
71314         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71315         (import): Set seen_libtool when we see gl_LIBTOOL.
71316
71317 2005-08-31  Bruno Haible  <bruno@clisp.org>
71318
71319         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71320         declaration macro definitions from generated gnulib.m4.
71321
71322 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71323
71324         * lib/iconvme.h: Add prototype for iconv_alloc.
71325
71326 2005-08-29  Simon Josefsson  <jas@extundo.com>
71327
71328         * lib/iconvme.c: Fix errno.
71329
71330 2005-08-29  Bruno Haible  <bruno@clisp.org>
71331
71332         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71333         that it works when the directory contains spaces.
71334
71335 2005-08-29  Bruno Haible  <bruno@clisp.org>
71336
71337         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71338
71339 2005-08-29  Bruno Haible  <bruno@clisp.org>
71340
71341         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71342         Emit more advice.
71343
71344 2005-08-29  Bruno Haible  <bruno@clisp.org>
71345         and Stepan Kasal  <kasal@ucw.cz>
71346
71347         * check-module: If more parameters are given, check each of them
71348         separately; add more exceptions, as noted by Jim Meyering.
71349         (check_module): New procedure.
71350         (%exempt_header): Now contains all exceptions.
71351
71352 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71353
71354         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71355
71356 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71357
71358         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71359
71360 2005-08-28  Bruno Haible  <bruno@clisp.org>
71361
71362         * m4/gnulib-tool.m4: New file.
71363
71364 2005-08-27  Jim Meyering  <jim@meyering.net>
71365
71366         * modules/unistd-safer (Files): Add pipe-safer.c.
71367         * modules/fcntl-safer (Files): Add creat-safer.c.
71368
71369 2005-08-27  Jim Meyering  <jim@meyering.net>
71370
71371         * m4/stdlib-safer.m4: New file.  From coreutils.
71372         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71373         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71374         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71375         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71376         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71377
71378 2005-08-27  Jim Meyering  <jim@meyering.net>
71379
71380         * lib/fopen-safer.c: Merge minor changes from coreutils.
71381         * lib/dup-safer.c: Likewise.
71382         * lib/fd-safer.c: Likewise.
71383
71384         Merge from coreutils.
71385         * lib/stdio--.h: New file.
71386         * lib/stdlib--.h: New file.
71387         * lib/mkstemp-safer.c: New file.
71388
71389         GNU tar needs these.
71390         * lib/pipe-safer.c: New file.
71391         * lib/creat-safer.c: New file.
71392         * lib/fcntl--.h (creat): Define to creat_safer.
71393         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71394         * lib/unistd--.h (pipe): Define to pipe_safer.
71395         * lib/unistd-safer.h: Declare pipe_safer.
71396
71397 2005-08-26  Simon Josefsson  <jas@extundo.com>
71398
71399         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71400         Haible <bruno@clisp.org>.
71401
71402 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71403
71404         * lib/regex_internal.h: Remove all references to
71405         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71406         or better.
71407         (bitset_not, bitset_merge, bitset_not_merge):
71408         (bitset_mask, re_string_allocate, re_string_construct):
71409         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71410         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71411         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71412         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71413         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71414         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71415         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71416         (re_acquire_state_context):
71417         Remove unnecessary forward decls.
71418         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71419         Put __attribute at function definition,
71420         now that the function decl has been removed.
71421         * lib/regex_internal.c (re_string_peek_byte_case):
71422         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71423         Likewise.
71424
71425 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71426
71427         * m4/regex.m4: Add AC_PREREQ(2.50).
71428         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71429
71430 2005-08-25  Simon Josefsson  <jas@extundo.com>
71431
71432         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71433         __fsetlocking.
71434
71435 2005-08-25  Simon Josefsson  <jas@extundo.com>
71436
71437         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71438         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71439         GLIBC specific code.
71440
71441 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71442
71443         Make regex safe for g++.  This fixes one real bug (an "err"
71444         that should have been "*err").  g++ problem reported by
71445         Sam Steingold.
71446         * lib/regex_internal.h (re_calloc): New macro, consistent with
71447         re_malloc etc.  All callers of calloc changed to use re_calloc.
71448         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71449         not int.  All callers changed.
71450         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71451         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71452         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71453         (find_recover_state): Change "err" to "*err"; this fixes what
71454         appears to be a real bug.
71455         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71456         versus int.
71457
71458 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71459
71460         * modules/regex (Depends-on): Add malloc, since the code
71461         assumes that !malloc(0) means failure.
71462
71463 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71464
71465         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71466
71467         alloca modernization/simplification for regex.
71468         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71469         needs to be at the start of the file, and can be moved into
71470         regex_internal.h and simplified.
71471         * lib/regex_internal.h: Include <alloca.h>.
71472         (__libc_use_alloca) [!defined _LIBC]: New macro.
71473         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71474         now works outside glibc.
71475
71476 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71477
71478         * config/srclist.txt: Add glibc bugs 1241, 1245.
71479
71480 2005-08-25  Jim Meyering  <jim@meyering.net>
71481
71482         * lib/open-safer.c: Include <config.h>.
71483         Otherwise, we'd lose LARGEFILE support in any file using
71484         e.g. "fcntl--.h"
71485
71486 2005-08-25  Bruno Haible  <bruno@clisp.org>
71487
71488         * m4/minmax.m4: Require autoconf 2.52.
71489         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71490         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71491         alternatives of translit over the alphabet.
71492         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71493
71494 2005-08-24  Simon Josefsson  <jas@extundo.com>
71495
71496         * tests/test-getpass.c: New file.
71497
71498 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71499
71500         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71501         for GNU regex features.
71502
71503 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71504
71505         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71506         * lib/regex.h (regerror): Likewise.
71507
71508         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71509         requires this.  (The code never needed it.)
71510
71511         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71512         All uses of recently-renamed identifiers changed to use the new,
71513         POSIX-compliant names.  The code will build and run just fine
71514         without these changes, but it's better to eat our own dog food
71515         and use the standard-conforming names.
71516
71517         * lib/regex.h: Fix a multitude of POSIX name space violations.
71518         These changes have an effect only for programs that define
71519         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71520         do not change anything for programs compiled in the normal way.
71521         Also, there is no effect on the ABI.
71522
71523         (_REGEX_SOURCE): New macro.
71524         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71525         defined and _GNU_SOURCE is not; this fixes a name space violation.
71526
71527         Rename the following macros to obey POSIX requirements.
71528         The old names are still visible as macros if _REGEX_SOURCE is defined.
71529         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71530         RE_BACKSLASH_ESCAPE_IN_LISTS.
71531         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71532         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71533         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71534         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71535         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71536         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71537         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71538         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71539         (REG_INTERVALS): renamed from RE_INTERVALS.
71540         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71541         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71542         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71543         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71544         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71545         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71546         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71547         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71548         RE_UNMATCHED_RIGHT_PAREN_ORD.
71549         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71550         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71551         (REG_DEBUG): renamed from RE_DEBUG.
71552         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71553         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71554         unusual, since we can't clash with the POSIX REG_ICASE.
71555         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71556         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71557         (REG_NO_SUB): renamed from RE_NO_SUB.
71558         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71559         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71560         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71561         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71562         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71563         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71564         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71565         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71566         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71567         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71568         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71569         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71570         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71571         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71572         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71573         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71574         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71575         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71576         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71577         (REG_FIXED): Renamed from REGS_FIXED.
71578         (REG_NREGS): Renamed from RE_NREGS.
71579
71580         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71581         of other REG_* macros, since POSIX says the user is allowed to
71582         #undef these macros selectively.
71583
71584         (reg_errcode_t): Update comment stating what other tables need
71585         to be consistent.
71586
71587         Rename the following enum values to obey POSIX requirements.
71588         The old names are still visible as macros.
71589         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71590         is not defined, since GNU is supposed to be a superset of POSIX as
71591         much as possible, and since we want reg_errcode_t to be a signed
71592         type for implementation consistency.
71593         (_REG_NOERROR): Renamed from REG_NOERROR.
71594         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71595         (_REG_BADPAT): Renamed from REG_BADPAT.
71596         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71597         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71598         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71599         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71600         (_REG_EBRACK): Renamed from REG_EBRACK.
71601         (_REG_EPAREN): Renamed from REG_EPAREN.
71602         (_REG_EBRACE): Renamed from REG_EBRACE.
71603         (_REG_BADBR): Renamed from REG_BADBR.
71604         (_REG_ERANGE): Renamed from REG_ERANGE.
71605         (_REG_ESPACE): Renamed from REG_ESPACE.
71606         (_REG_BADRPT): Renamed from REG_BADRPT.
71607         (_REG_EEND): Renamed from REG_EEND.
71608         (_REG_ESIZE): Renamed from REG_ESIZE.
71609         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71610         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71611         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71612         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71613         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71614
71615         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71616         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71617         changed.  But support the old name if the new one is not defined
71618         and if _REGEX_SOURCE.
71619
71620         Change the following member names in struct re_pattern_buffer.
71621         The old names are still supported if !_REGEX_SOURCE.
71622         The new names are always supported, regardless of _REGEX_SOURCE.
71623         (re_buffer): Renamed from buffer.
71624         (re_allocated): Renamed from allocated.
71625         (re_used): Renamed from used.
71626         (re_syntax): Renamed from syntax.
71627         (re_fastmap): Renamed from fastmap.
71628         (re_translate): Renamed from translate.
71629         (re_can_be_null): Renamed from can_be_null.
71630         (re_regs_allocated): Renamed from regs_allocated.
71631         (re_fastmap_accurate): Renamed from fastmap_accurate.
71632         (re_no_sub): Renamed from no_sub.
71633         (re_not_bol): Renamed from not_bol.
71634         (re_not_eol): Renamed from not_eol.
71635         (re_newline_anchor): Renamed from newline_anchor.
71636
71637         Change the following member names in struct re_registers.
71638         The old names are still supported if !_REGEX_SOURCE.
71639         The new names are always supported, regardless of _REGEX_SOURCE.
71640         (rm_num_regs): Renamed from num_regs.
71641         (rm_start): Renamed from start.
71642         (rm_end): Renamed from end.
71643
71644         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71645         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71646         Prepend __ to parameter names.
71647
71648         Undo yesterday's changes.
71649
71650 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71651
71652         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71653         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71654         lib/regex.c.
71655
71656 2005-08-24  Jim Meyering  <jim@meyering.net>
71657
71658         Sync from coreutils.
71659         * m4/fcntl-safer.m4: New file.
71660
71661         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71662         and object files for this module.
71663
71664 2005-08-24  Jim Meyering  <jim@meyering.net>
71665
71666         Sync from coreutils.
71667         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71668
71669 2005-08-24  Jim Meyering  <jim@meyering.net>
71670
71671         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71672         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71673
71674 2005-08-24  Jim Meyering  <jim@meyering.net>
71675
71676         * modules/fcntl-safer: New module.
71677         * modules/fts (Depends-on): Add fcntl-safer.
71678         * MODULES.html.sh (File descriptor based Input/Output):
71679         Add fcntl-safer.
71680
71681 2005-08-24  Bruno Haible  <bruno@clisp.org>
71682
71683         Support for unit test modules.
71684         * modules/README: Mention tests modules.
71685         * modules/TEMPLATE-TESTS: New file.
71686         * gnulib-tool: New options --extract-tests-module, --with-tests and
71687         --tests-base (unused for the moment).
71688         (testsbase, inctests): New variables.
71689         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71690         (func_verify_module): Exclude TEMPLATE-TESTS.
71691         (func_verify_nontests_module, func_verify_tests_module): New functions.
71692         (func_get_dependencies): Add implicit dependency for tests modules.
71693         (func_get_tests_module): New function.
71694         (func_modules_transitive_closure): When --with-tests was specified,
71695         include the unit tests as well, unless explicitly avoided.
71696         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71697         (func_emit_tests_Makefile_am): New function.
71698         (func_create_testdir): When --with-tests was specified, emit a
71699         tests/ directory.
71700         * MODULES.html.sh (Future developments): Update.
71701
71702 2005-08-24  Bruno Haible  <bruno@clisp.org>
71703
71704         * modules/tls-tests: New file.
71705         * tests/test-tls.c: New file, from GNU gettext.
71706
71707 2005-08-24  Bruno Haible  <bruno@clisp.org>
71708
71709         * modules/lock-tests: New file.
71710         * tests/test-lock.c: New file, from GNU gettext.
71711
71712 2005-08-24  Bruno Haible  <bruno@clisp.org>
71713
71714         * lib/lock.h: Add multiple inclusion guard.
71715         * lib/tls.h: Add multiple inclusion guard.
71716
71717 2005-08-24  Bruno Haible  <bruno@clisp.org>
71718
71719         * gnulib-tool: Add support for the --aux-dir option to
71720         --create-testdir, --create-megatestdir, --test, --megatest.
71721         (func_create_testdir, func_create_megatestdir): Optionally emit a
71722         AC_CONFIG_AUX_DIR directive.
71723         (create-testdir, create-megatestdir, test, megatest): Provide a
71724         default value for $auxdir.
71725
71726 2005-08-24  Bruno Haible  <bruno@clisp.org>
71727
71728         * gnulib-tool (import): Use compound statement instead of subshell
71729         where possible.
71730
71731 2005-08-24  Bruno Haible  <bruno@clisp.org>
71732
71733         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71734
71735 2005-08-24  Bruno Haible  <bruno@clisp.org>
71736
71737         * gnulib-tool (func_version): Update.
71738
71739 2005-08-24  Bruno Haible  <bruno@clisp.org>
71740
71741         * gnulib-tool (func_import, func_create_testdir,
71742         func_create_megatestdir): Quote all autoconf macro arguments.
71743
71744 2005-08-24  Bruno Haible  <bruno@clisp.org>
71745
71746         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71747         option --force, because --force causes the aclocal.m4 of each
71748         subdirectory to be newer than the corresponding config.h.in.
71749
71750 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71751
71752         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71753         All contents moved to gl_REGEX.
71754         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71755         assume that it does.
71756
71757 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71758
71759         * lib/regex.h (REG_NOSYS)
71760         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71761         Define, since POSIX requires it as of 2001.
71762         (_REG_ENOSYS)
71763         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71764         New private symbol, used to keep the enum signed in all cases.
71765         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71766         Youngman in
71767         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71768
71769         * lib/regex_internal.c (re_string_skip_chars, register_state):
71770         (calc_state_hash):
71771         Remove forward decls; no longer needed now that we use prototypes.
71772         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71773         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71774         (clean_state_log_if_needed): Likewise.
71775
71776 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71777
71778         * config/srclist.txt: Add glibc bugs 1231-1233.
71779
71780 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71781
71782         Fix problems reported by Sam Steingold in
71783         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71784         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71785         assumed that reg_errcode_t is a signed type, which is not
71786         necessarily true if _XOPEN_SOURCE is not defined.
71787         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71788         since some compilers warn about it otherwise.
71789
71790 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71791
71792         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71793         (init_word_char, create_initial_state, duplicate_node_closure):
71794         (fetch_token, peek_token_bracket, build_range_exp):
71795         (build_collating_symbol): Remove forward decls; no longer needed
71796         now that we use prototypes.
71797
71798         * lib/regcomp.c:
71799         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71800         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71801         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71802         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71803         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71804         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71805         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71806         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71807         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71808         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71809         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71810         (build_charclass, build_charclass_op, fetch_number, create_tree):
71811         (create_token_tree, mark_opt_subexp, duplicate_tree):
71812         Use prototypes rather than old-style definitions.
71813
71814         * lib/regex_internal.c:
71815         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71816         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71817         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71818         (re_string_reconstruct, re_string_peek_byte_case):
71819         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71820         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71821         (re_node_set_init_copy, re_node_set_add_intersect):
71822         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71823         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71824         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71825         (re_acquire_state, re_acquire_state_context, register_state):
71826         (create_ci_newstate, create_cd_newstate, free_state):
71827         Likewise.
71828         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71829         re_search_2):
71830         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71831         (re_search_internal, prune_impossible_nodes):
71832         (acquire_init_state_context, check_matching, static):
71833         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71834         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71835         (update_regs, sift_states_backward, build_sifted_states):
71836         (clean_state_log_if_needed, merge_state_array):
71837         (update_cur_sifted_state, add_epsilon_src_nodes):
71838         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71839         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71840         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71841         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71842         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71843         (check_arrival, check_arrival_add_next_nodes):
71844         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71845         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71846         (check_node_accept_bytes, check_node_accept, extend_buffers):
71847         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71848         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71849         (sift_ctx_init):
71850         Likewise.
71851
71852         * lib/regex_internal.h:
71853         (re_string_allocate, re_string_construct, re_string_reconstruct):
71854         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71855         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71856         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71857         (re_string_context_at, re_string_peek_byte_case):
71858         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71859         is defined, since we now use prototypes always.
71860
71861         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71862         C89 or better.  All uses removed.
71863
71864 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71865
71866         * config/srclist.txt: Add glibc bugs 1220-1227.
71867
71868 2005-08-20  Jim Meyering  <jim@meyering.net>
71869
71870         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71871         of unused local, dfa.
71872
71873 2005-08-20  Bruno Haible  <bruno@clisp.org>
71874
71875         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71876
71877 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71878
71879         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71880         (re_node_set_insert_last, re_dfa_add_node):
71881         Rename local variables to avoid GCC shadowing warnings.
71882
71883 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71884
71885         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71886         [defined lint]: Suppress bogus uninitialized-variable warnings.
71887
71888         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71889         and let the caller return REG_ESPACE if out of space.  This
71890         removes an uninitialied-variable warning with GCC 4.0.1, and also
71891         avoids taking the address of a local variable.  All callers
71892         changed.
71893
71894 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71895
71896         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71897         $LIBCSRC/posix/regexec.c.
71898         Add glibc bug 1217 for regcomp.c.
71899
71900 2005-08-19  Jim Meyering  <jim@meyering.net>
71901
71902         * lib/regexec.c (proceed_next_node): Redo local variables to
71903         avoid GCC shadowing warnings.
71904
71905 2005-08-18  Bruno Haible  <bruno@clisp.org>
71906
71907         * lib/strstr.c (strstr): Fix return value in multibyte case.
71908         * lib/strcasestr.c (strcasestr): Likewise.
71909
71910 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71911
71912         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71913
71914 2005-08-17  Jim Meyering  <jim@meyering.net>
71915
71916         Make the %s format (seconds since the epoch) work for a negative
71917         number and when used with a zero-padded field width, e.g. %015s.
71918
71919         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71920         label so that it precedes the code to set `digits'.  Otherwise,
71921         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71922         print `00-22'.  Now, it prints `-0022', as it should.
71923
71924 2005-08-17  Bruno Haible  <bruno@clisp.org>
71925
71926         * modules/strstr (Files): Add m4/mbrtowc.m4.
71927         (Depends-on): Add mbuiter.
71928
71929 2005-08-17  Bruno Haible  <bruno@clisp.org>
71930
71931         * modules/strcasestr: New file.
71932         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71933         strcasestr.
71934
71935 2005-08-17  Bruno Haible  <bruno@clisp.org>
71936
71937         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71938
71939 2005-08-17  Bruno Haible  <bruno@clisp.org>
71940
71941         * modules/mbuiter: New file.
71942         * MODULES.html.sh (Extended multibyte and wide character utilities):
71943         Add mbuiter.
71944
71945 2005-08-17  Bruno Haible  <bruno@clisp.org>
71946
71947         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
71948         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
71949
71950 2005-08-17  Bruno Haible  <bruno@clisp.org>
71951
71952         * m4/strcasestr.m4: New file.
71953
71954 2005-08-17  Bruno Haible  <bruno@clisp.org>
71955
71956         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
71957         * lib/strstr.c: Completely rewritten, with multibyte locale support.
71958
71959 2005-08-17  Bruno Haible  <bruno@clisp.org>
71960
71961         * lib/strcasestr.h: New file.
71962         * lib/strcasestr.c: New file.
71963
71964 2005-08-17  Bruno Haible  <bruno@clisp.org>
71965
71966         * lib/strcasecmp.c: Use mbuiter.h.
71967
71968 2005-08-17  Bruno Haible  <bruno@clisp.org>
71969
71970         * lib/mbuiter.h: New file.
71971
71972 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71973
71974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
71975         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
71976         and gl_GETOPT are both invoked via different paths (as happens
71977         with GNU tar CVS because it uses both argp and getopt), the former
71978         wins.
71979
71980 2005-08-16  Bruno Haible  <bruno@clisp.org>
71981
71982         * modules/tls: New file.
71983         * MODULES.html.sh (Multithreading): Add tls.
71984
71985 2005-08-16  Bruno Haible  <bruno@clisp.org>
71986
71987         * modules/strnlen1: New file.
71988         * MODULES.html.sh (String handling): Add strnlen1.
71989
71990 2005-08-16  Bruno Haible  <bruno@clisp.org>
71991
71992         * modules/strcase (Files): Add m4/mbrtowc.m4.
71993         (Depends-on): Add strnlen1, mbchar.
71994
71995 2005-08-16  Bruno Haible  <bruno@clisp.org>
71996
71997         * modules/mbiter: New file.
71998         * MODULES.html.sh (Extended multibyte and wide character utilities):
71999         Add mbiter.
72000
72001 2005-08-16  Bruno Haible  <bruno@clisp.org>
72002
72003         * modules/mbfile: New file.
72004         * MODULES.html.sh (Extended multibyte and wide character utilities):
72005         Add mbfile.
72006
72007 2005-08-16  Bruno Haible  <bruno@clisp.org>
72008
72009         * modules/mbchar: New file.
72010         * MODULES.html.sh (Extended multibyte and wide character utilities):
72011         New section.
72012
72013 2005-08-16  Bruno Haible  <bruno@clisp.org>
72014
72015         * m4/tls.m4: New file, from GNU gettext.
72016
72017 2005-08-16  Bruno Haible  <bruno@clisp.org>
72018
72019         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72020         always.
72021         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72022
72023 2005-08-16  Bruno Haible  <bruno@clisp.org>
72024
72025         * m4/mbiter.m4: New file.
72026
72027 2005-08-16  Bruno Haible  <bruno@clisp.org>
72028
72029         * m4/mbfile.m4: New file.
72030
72031 2005-08-16  Bruno Haible  <bruno@clisp.org>
72032
72033         * m4/mbchar.m4: New file.
72034
72035 2005-08-16  Bruno Haible  <bruno@clisp.org>
72036
72037         * lib/tls.h: New file, from GNU gettext.
72038         * lib/tls.c: New file, from GNU gettext.
72039
72040 2005-08-16  Bruno Haible  <bruno@clisp.org>
72041
72042         * lib/strnlen1.h: New file.
72043         * lib/strnlen1.c: New file.
72044
72045 2005-08-16  Bruno Haible  <bruno@clisp.org>
72046
72047         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72048         (mbi_init): Update.
72049         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72050         NUL byte, not after it.
72051
72052 2005-08-16  Bruno Haible  <bruno@clisp.org>
72053
72054         * lib/strcase.h (strcasecmp): Add note in comments.
72055         * lib/strncasecmp.c: Use code from strcasecmp.c.
72056         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72057         (strcasecmp): Work correctly in multibyte locales.
72058
72059 2005-08-16  Bruno Haible  <bruno@clisp.org>
72060
72061         * lib/mbiter.h: New file.
72062
72063 2005-08-16  Bruno Haible  <bruno@clisp.org>
72064
72065         * lib/mbfile.h: New file.
72066
72067 2005-08-16  Bruno Haible  <bruno@clisp.org>
72068
72069         * lib/mbchar.h: New file.
72070         * lib/mbchar.c: New file.
72071
72072 2005-08-16  Bruno Haible  <bruno@clisp.org>
72073
72074         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72075         the valid ones. Makes the comparison operations transitive:
72076         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72077         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72078
72079 2005-08-15  Simon Josefsson  <jas@extundo.com>
72080
72081         * modules/ssize_t (License): Change to 'unlimited'.
72082
72083         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72084
72085 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72086
72087         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72088         Add comments for each pending glibc patch.
72089
72090 2005-08-15  Bruno Haible  <bruno@clisp.org>
72091
72092         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72093         __cplusplus is defined.
72094
72095 2005-08-14  Jim Meyering  <jim@meyering.net>
72096
72097         Sync from coreutils.
72098
72099         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72100         Use the hash-table-based cycle-detection code not just when
72101         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72102         Reported by James Youngman in
72103         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72104         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72105         FTS_TIGHT_CYCLE_CHECK.
72106         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72107         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72108         once again.
72109         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72110         * lib/fts.c (fd_safer): Remove decl.
72111         Include fcntl--.h rather than unistd-safer.h
72112         (fts_safe_changedir): Don't call fd_safer; no longer needed
72113         now that we include fcntl--.h.
72114
72115 2005-08-12  Simon Josefsson  <jas@extundo.com>
72116
72117         * modules/getndelim2: Use ssize_t module.
72118         * modules/getnline: Likewise.
72119         * modules/safe-read: Likewise.
72120         * modules/xreadlink: Likewise.
72121
72122         * modules/ssize_t: New file.
72123
72124 2005-08-12  Simon Josefsson  <jas@extundo.com>
72125
72126         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72127
72128 2005-08-12  Simon Josefsson  <jas@extundo.com>
72129
72130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72131         ssize_t.
72132
72133 2005-08-12  Simon Josefsson  <jas@extundo.com>
72134
72135         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72136         readline, getdelim and check_version.
72137         (Support for systems lacking ISO C 99: Sizes of integer types):
72138         Add size_max.
72139
72140 2005-08-12  Bruno Haible  <bruno@clisp.org>
72141
72142         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72143
72144 2005-08-11  Simon Josefsson  <jas@extundo.com>
72145
72146         * modules/readline: New file.
72147
72148         * modules/strnlen (Files): Add strnlen.h.
72149
72150 2005-08-11  Simon Josefsson  <jas@extundo.com>
72151
72152         * m4/readline.m4: New file.
72153
72154 2005-08-11  Simon Josefsson  <jas@extundo.com>
72155
72156         * lib/readline.h, readline.c: New file.
72157
72158 2005-08-11  Simon Josefsson  <jas@extundo.com>
72159
72160         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72161         gl_AVOID.
72162
72163 2005-08-11  Bruno Haible  <bruno@clisp.org>
72164
72165         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72166
72167 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72168
72169         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72170
72171 2005-08-10  Simon Josefsson  <jas@extundo.com>
72172
72173         * tests/test-iconvme.c: New file.
72174
72175 2005-08-10  Simon Josefsson  <jas@extundo.com>
72176
72177         * m4/strnlen.m4: New file.
72178
72179         * m4/strndup.m4: Don't check for strnlen declaration, done in
72180         strnlen.m4.
72181
72182 2005-08-10  Simon Josefsson  <jas@extundo.com>
72183
72184         * lib/strndup.c: Use strnlen.h.
72185
72186         * lib/strnlen.h: New file.
72187
72188 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72189
72190         * README: Typos.
72191
72192 2005-08-02  Simon Josefsson  <jas@extundo.com>
72193
72194         * modules/readline: New file.
72195
72196 2005-08-02  Simon Josefsson  <jas@extundo.com>
72197
72198         * modules/getdelim: New file.
72199
72200         * modules/getline: Rewrite, don't use getndelim2.
72201
72202 2005-08-02  Simon Josefsson  <jas@extundo.com>
72203
72204         * m4/getline.m4: Separate out getdelim stuff into separate module.
72205
72206         * m4/getdelim.m4: New file.
72207
72208 2005-08-02  Simon Josefsson  <jas@extundo.com>
72209
72210         * lib/getline.h, getline.c: Rewrite.
72211
72212         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72213
72214 2005-07-31  Bruno Haible  <bruno@clisp.org>
72215
72216         * lib/lock.h (gl_lock_initializer): New macro.
72217         (gl_lock_define_initialized): Use it.
72218         (gl_rwlock_initializer): New macro.
72219         (gl_rwlock_define_initialized): Use it.
72220         (gl_recursive_lock_initializer): New macro.
72221         (gl_recursive_lock_define_initialized): Use it.
72222
72223 2005-07-30  Karl Berry  <karl@gnu.org>
72224
72225         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72226         Report from Ben Pfaff, regarding getopt.
72227
72228 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72229
72230         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72231         normal way.
72232         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72233         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72234         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72235         (gl_GETOPT): Use the new macros.  Most of the implementation
72236         is moved to the new macros.  This is for programs like Emacs
72237         that don't want all the functionality of gl_GETOPT.
72238
72239 2005-07-26  Bruno Haible  <bruno@clisp.org>
72240
72241         * m4/lock.m4: Update from GNU gettext.
72242
72243 2005-07-26  Bruno Haible  <bruno@clisp.org>
72244
72245         * lib/lock.h: Update from GNU gettext.
72246         * lib/lock.c: Update from GNU gettext.
72247
72248 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72249
72250         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72251         obsolescent AC_TRY_RUN.  Include the default includes files, for
72252         'exit'.
72253
72254 2005-07-24  Bruno Haible  <bruno@clisp.org>
72255
72256         * modules/visibility: New file.
72257         * MODULES.html.sh (Misc): Add visibility.
72258
72259 2005-07-24  Bruno Haible  <bruno@clisp.org>
72260
72261         * m4/visibility.m4: New file.
72262
72263 2005-07-24  Bruno Haible  <bruno@clisp.org>
72264
72265         * doc/visibility.texi: New file.
72266
72267 2005-07-22  Bruno Haible  <bruno@clisp.org>
72268
72269         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72270         $(ALLOCA_H), redundant through BUILT_SOURCES.
72271         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72272         redundant through BUILT_SOURCES.
72273         * modules/byteswap (Makefile.am): Remove explicit dependency on
72274         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72275         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72276         $(FNMATCH_H), redundant through BUILT_SOURCES.
72277         * modules/getopt (Makefile.am): Remove explicit dependency on
72278         $(GETOPT_H), redundant through BUILT_SOURCES.
72279         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72280         redundant through BUILT_SOURCES.
72281         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72282         redundant through BUILT_SOURCES.
72283         * modules/stdbool (Makefile.am): Remove explicit dependency on
72284         $(STDBOOL_H), redundant through BUILT_SOURCES.
72285         * modules/stdint (Makefile.am): Remove explicit dependency on
72286         $(STDINT_H), redundant through BUILT_SOURCES.
72287         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72288         Remove explicit dependency on $(SYSEXITS_H).
72289         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72290
72291 2005-07-18  Simon Josefsson  <jas@extundo.com>
72292
72293         * lib/check-version.c (check_version): Accept identical versions too.
72294
72295 2005-07-18  Bruno Haible  <bruno@clisp.org>
72296
72297         * modules/lock: New file.
72298         * MODULES.html.sh (Multithreading): New section.
72299
72300 2005-07-18  Bruno Haible  <bruno@clisp.org>
72301
72302         * m4/lock.m4: New file, from GNU gettext.
72303
72304 2005-07-18  Bruno Haible  <bruno@clisp.org>
72305
72306         * lib/lock.h: New file, from GNU gettext.
72307         * lib/lock.c: New file, from GNU gettext.
72308
72309 2005-07-18  Bruno Haible  <bruno@clisp.org>
72310
72311         * lib/lock.h (gl_once_t): New type.
72312         (gl_once_define, gl_once): New macros.
72313         * lib/lock.c (fresh_once): New variable.
72314         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72315         functions.
72316
72317 2005-07-16  Simon Josefsson  <jas@extundo.com>
72318
72319         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72320         workaround, suggested by Bruno.
72321
72322 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         * modules/xalloc (Depends-on): Add xalloc-die.
72325         * modules/xvasprintf (Depends-on): Add xalloc-die.
72326
72327 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72328
72329         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72330         with a minor change.
72331
72332 2005-07-15  Bruno Haible  <bruno@clisp.org>
72333
72334         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72335         When using lib/poll.c, define poll as rpl_poll.
72336
72337 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72338
72339         * modules/argp (Depends-on): Remove unlocked-io.
72340
72341 2005-07-14  Derek Price  <derek@ximbiot.com>
72342
72343         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72344         for glob symlink bug.
72345
72346 2005-07-14  Bruno Haible  <bruno@clisp.org>
72347
72348         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72349         Instead, test for *_unlocked function declarations directly.
72350
72351 2005-07-11  Simon Josefsson  <jas@extundo.com>
72352
72353         * modules/size_max: New file.
72354
72355         * modules/xsize: Depend on size_max module for size_max.m4.
72356
72357 2005-07-11  Simon Josefsson  <jas@extundo.com>
72358
72359         * lib/size_max.h: New file.
72360
72361 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72362
72363         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72364         copyright symbol and the year.
72365         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72366         (version_etc_va): Use parameterized copyright notice.
72367         Reword to conform to the current GNU coding standards.
72368
72369 2005-07-11  Karl Berry  <karl@gnu.org>
72370
72371         * doc/gnulib.texi (Quoting): new node.
72372         (Initial import): more info, from Patrice.
72373
72374 2005-07-11  Bruno Haible  <bruno@clisp.org>
72375
72376         * gnulib-tool (func_usage): Document option --avoid.
72377         (Command line options): Handle --avoid.
72378         (func_acceptable): New function.
72379         (func_modules_transitive_closure): Use it.
72380
72381 2005-07-11  Bruno Haible  <bruno@clisp.org>
72382
72383         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72384         Reported by Jim Meyering.
72385
72386 2005-07-10  Bruno Haible  <bruno@clisp.org>
72387
72388         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72389         Needed when size_t is smaller than 'unsigned int'.
72390         Reported by Paul Eggert.
72391
72392 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72393
72394         * modules/argp (Depends-on): Add unlocked-io
72395
72396 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72397
72398         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72399         block of defines.
72400
72401 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72402
72403         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72404         fix now.
72405
72406 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72407         and Paul Eggert  <eggert@cs.ucla.edu>
72408
72409         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72410         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72411
72412 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72413
72414         * modules/regex (Files): Add lib/regex_internal.c,
72415         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72416         (Depends-on): Add extensions.
72417         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72418
72419 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72420
72421         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72422         pathconf.
72423         * m4/same.m4 (gl_SAME): Likewise.
72424         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72425
72426         * m4/regex.m4: Adjust to new libc regex implementation.
72427         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72428         all the .c and .h parts of (the new) regex.
72429         Quote the m4 stuff better.
72430         Check for RE_ICASE bug of old gnulib.
72431         Check for REG_STARTEND of recent libc.
72432         Rename local variables from jm_* to gl_*.
72433         Quote operand of "test -f".
72434         Say "recent enough" version of libc, not "version 2".
72435         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72436         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72437         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72438         Remove check for btowc, isascii.
72439         Require AM_LANGINFO_CODESET.
72440
72441 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72442
72443         * lib/regex.c, regex.h: Sync from libc.
72444         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72445         * lib/regexec.c:
72446         New files, synced from libc, except that regex_internal.h
72447         currently has a small porting fix.
72448
72449 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72450
72451         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72452         regex_internal.c, regexec.c.
72453         Add regex_internal.h too, but as a comment, since the libc version
72454         is currently broken in gnulib mode.
72455
72456 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72457
72458         Support programs like Emacs that use gnulib but not gettext.
72459         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72460         * modules/gettext-h: New file.
72461         * modules/gettext (Files): Remove lib/gettext.h.
72462         (Depends-on): Add gettext-h.
72463         (Makefile.am): Remove lib_SOURCES.
72464         * modules/argmatch, modules/c-stack, modules/closeout:
72465         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72466         * modules/execute, modules/file-type, modules/getaddrinfo:
72467         * modules/getopt, modules/human, modules/javacomp:
72468         * modules/javaexec, modules/mkdir-p, modules/obstack:
72469         * modules/openat, modules/pagealign_alloc, modules/pipe:
72470         * modules/quotearg, modules/regex, modules/rpmatch:
72471         * modules/unicodeio, modules/userspec, modules/version-etc:
72472         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72473         * modules/xsetenv:
72474         Depend on gettext-h, not gettext.
72475
72476 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72477
72478         * gnulib-tool (func_import): Add support for 'public domain' license.
72479         * modules/alloca, modules/atexit, modules/memmove:
72480         Now public domain, not GPL.
72481         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72482         * modules/realloc, modules/strerror, modules/strtod:
72483         Now LGPL, not GPL.
72484
72485 2005-07-05  Bruno Haible  <bruno@clisp.org>
72486
72487         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72488         autoconf CVS. Needed for mingw.
72489
72490 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72491
72492         Remove the dependency of the strftime module on the tzset module.
72493         * modules/strftime (Depends-on): Remove dependency on tzset.
72494
72495 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72496
72497         Remove the dependency of the strftime module on the tzset module.
72498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72499         gl_FUNC_TZSET_CLOBBER.
72500
72501 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72502
72503         Remove the dependency of the strftime module on the tzset module.
72504         * lib/strftime.c (my_strftime)
72505         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72506         Copy the input structure, to work around some of the bug with
72507         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72508         Solaris releases, you should also use the tzset module, but we won't
72509         require it as a dependency any more since we don't want LGPLed code
72510         to depend on GPLed code.
72511
72512 2005-07-02  Jim Meyering  <jim@meyering.net>
72513
72514         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72515         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72516         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72517         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72518
72519 2005-07-02  Jim Meyering  <jim@meyering.net>
72520
72521         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72522
72523 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72524
72525         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72526         declares only 'struct timespec;' (!).
72527
72528 2005-07-01  Jim Meyering  <jim@meyering.net>
72529
72530         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72531         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72532         * lib/save-cwd.c, tempname.c:
72533         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72534         and don't include <sys/file.h>).
72535
72536 2005-06-29  Jim Meyering  <jim@meyering.net>
72537
72538         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72539         type name.  Use the variable name instead.
72540         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72541         Likewise.
72542
72543 2005-06-28  Simon Josefsson  <jas@extundo.com>
72544
72545         * modules/check-version (Files): Add check-version.m4.
72546
72547 2005-06-28  Simon Josefsson  <jas@extundo.com>
72548
72549         * m4/check-version.m4: New file, suggested by Jim Meyering
72550         <jim@meyering.net>.
72551
72552 2005-06-28  Simon Josefsson  <jas@extundo.com>
72553
72554         * lib/check-version.h, lib/check-version.c: New files.
72555
72556 2005-06-28  Simon Josefsson  <jas@extundo.com>
72557
72558         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72559         collision with global variable.  Better indentation.  Don't
72560         increment buffer pointer beyond buffer end.  Based on comments
72561         from Paul Eggert <eggert@cs.ucla.edu>.
72562
72563         * lib/base64.h: Indent.
72564
72565 2005-06-28  Simon Josefsson  <jas@extundo.com>
72566
72567         * doc/gnulib.texi (Library version handling): New section.
72568
72569 2005-06-28  Jim Meyering  <jim@meyering.net>
72570
72571         * check-module (find_included_lib_files): Hard-code another
72572         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72573         but modules/fts-lgpl (correctly) does not list those files.
72574
72575         * modules/canonicalize (Files): Add lib/pathmax.h.
72576
72577 2005-06-25  Simon Josefsson  <jas@extundo.com>
72578
72579         * modules/check-version: New file.
72580
72581 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72582
72583         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72584         initializer of struct addrinfo, as an indication that we don't
72585         care how many members the structure has.
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         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72592         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72593         * m4/stat.m4: Remove this file.
72594
72595 2005-06-24  Derek Price  <derek@ximbiot.com>
72596         and Bruno Haible  <bruno@clisp.org>
72597
72598         Remove stat module & update lstat.
72599         * lib/stat.c: Remove this file...
72600         (slash_aware_lstat): ...moving this content and its support...
72601         * lib/lstat.c (rpl_lstat): ...into here.
72602         * lib/lstat.h: New file.
72603
72604 2005-06-24  Derek Price  <derek@ximbiot.com>
72605         and Bruno Haible  <bruno@clisp.org>
72606
72607         Remove stat module & update lstat.
72608         * config/srclist.txt (libc sources): Remove stat.
72609
72610 2005-06-24  Derek Price  <derek@ximbiot.com>
72611         and Bruno Haible  <bruno@clisp.org>
72612
72613         Remove stat module & update lstat.
72614         * MODULES.html.sh (stat): Remove.
72615         * MODULES.html: Regenerated.
72616         * modules/lstat (Description): Correct function name.
72617         (Files): Add "lstat.h".
72618         (Depends-on): Remove stat, add xalloc, stat-macros.
72619         * modules/stat: Remove this file.
72620         (Include): Add "lstat.h", remove <sys/stat.h>.
72621
72622 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72623
72624         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72625         (ranged_convert): Don't save conversion in a temporary struct.
72626         This causes a warning with GCC 4.0.0, and anyway in the typical
72627         case it's not worth the extra 100 bytes or so of code.
72628         (ranged_convert, __mktime_internal): When calling a function via a
72629         pointer P, use P () rather than (*P) (), as we now assume C89 or
72630         better.
72631
72632 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72633
72634         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72635         "who -r" failed to give output.  Problem reported by Tim Waugh.
72636
72637         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72638         (xcalloc): Use it to avoid needless tests.
72639         Problem reported by Jim Meyering.
72640
72641 2005-06-20  Derek Price  <derek@ximbiot.com>
72642
72643         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72644         unnecessary for Autoconfs > 2.59c.
72645
72646 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72647
72648         * lib/argp.h (__option_is_short): Check upper limit of
72649         __key. Isprint() requires its argument to have the value
72650         of an unsigned char or EOF.
72651
72652 2005-06-16  Jim Meyering  <jim@meyering.net>
72653
72654         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72655         when either N or S is zero.
72656
72657 2005-06-16  Derek Price  <derek@ximbiot.com>
72658
72659         * m4/bison.m4: Declare YACC & YFLAGS precious.
72660
72661 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72662
72663         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72664         multibyte string or pattern, fall back on unibyte matching.
72665         Problem reported by James Youngman.
72666
72667 2005-06-08  Bruno Haible  <bruno@clisp.org>
72668
72669         * modules/csharpcomp: New file.
72670         * MODULES.html.sh (C#): Add csharpcomp.
72671
72672 2005-06-08  Bruno Haible  <bruno@clisp.org>
72673
72674         * m4/csharpcomp.m4: New file, from GNU gettext.
72675
72676 2005-06-08  Bruno Haible  <bruno@clisp.org>
72677
72678         * lib/csharpcomp.h: New file, from GNU gettext.
72679         * lib/csharpcomp.c: New file, from GNU gettext.
72680         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72681
72682 2005-06-08  Bruno Haible  <bruno@clisp.org>
72683
72684         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72685         warning on mingw.
72686
72687 2005-06-07  Derek Price  <derek@ximbiot.com>
72688
72689         Sync from CVS.
72690         * lib/glob_.h: Indent nested #ifdef.
72691
72692 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72693
72694         Sync from coreutils.
72695         Use "file name" when talking about file names, instead of "filename"
72696         or "path", as per the GNU coding standards.
72697         * lib/mkdir-p.c: Renamed from makepath.c.
72698         (make_dir_parents): Renamed from make_path.  All callers changed.
72699         * lib/mkdir-p.h: Likewise.  All includers changed.
72700         * lib/filenamecat.c: Renamed from path-concat.c.
72701         (file_name_concat): Renamed from path_concat.  All callers changed.
72702         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72703         * lib/filenamecat.h: Likewise.  All includers changed.
72704         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72705         in comments or local variable names.
72706         * lib/basename.c: Likewise.
72707         * lib/canonicalize.c, canonicalize.h: Likewise.
72708         * lib/dirname.c, dirname.h: Likewise.
72709         * lib/euidaccess.c: Likewise.
72710         * lib/exclude.c: Likewise
72711         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72712         * lib/fsusage.c, fsuage.h: Likewise.
72713         * lib/fts.c, fts_.h: Likewise.
72714         * lib/getcwd.c: Likewise.
72715         * lib/getloadavg.c: Likewise.
72716         * lib/mkstemp.c: Likewise.
72717         * lib/mountlist.c, mountlist.h: Likewise.
72718         * lib/openat.c, openat.h: Likewise.
72719         * lib/readlink-stub.c: Likewise.
72720         * lib/readutmp.c, readutmp.h: Likewise.
72721         * lib/rename.c: Likewise.
72722         * lib/rmdir.c: Likewise.
72723         * lib/same.c: Likewise.
72724         * lib/savedir.c: Likewise.
72725         * lib/stripslash.c: Likewise.
72726         * lib/tempname.c: Likewise.
72727         * lib/xreadlink.c: Likewise.
72728         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72729         All uses changed.
72730         * lib/exclude.h: Likewise.
72731
72732         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72733         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72734         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72735         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72736         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72737         files have been getting away with it for years (MORE/BSD 4.3
72738         is extinct now).
72739         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72740         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72741
72742         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72743         Define to 256, not 255, as per modern POSIX.
72744
72745 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72746
72747         Sync from coreutils.
72748         Use "file name" when talking about file names, instead of "filename"
72749         or "path", as per the GNU coding standards.
72750         * MODULES.html.sh: mkdir-p renamed from makepath.
72751         filenamecat renamed from path-concat.
72752         * modules/filenamecat: Renamed from modules/path-concat.
72753         (Files): filenamecat.h and filenamecat.c renamed from
72754         path-concat.h and path-concat.c.
72755         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72756         (Include): filenamecat.h, not path-concat.h.
72757         * modules/mkdir-p: Renamed from modules/makepath.
72758         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72759         makepath.c.
72760         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72761         (Include): mkdir-p.h, not makepath.h.
72762
72763 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72764
72765         Sync from coreutils.
72766         * m4/mkdir-p.m4: Renamed from makepath.m4.
72767         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72768         Rename files from makepath.c to mkdir-p.c, and from
72769         makepath.h to mkdir-p.h.
72770         * m4/filenamecat.m4: Renamed from path-concat.m4.
72771         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72772         Rename files from path-concat.c to filenamecat.c,
72773         and from path-concat.h to filenamecat.h.
72774         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72775         "file name" in local variables or comments.
72776         * m4/rename.m4: Likewise.
72777
72778 2005-06-01  Bruno Haible  <bruno@clisp.org>
72779
72780         * modules/csharpexec: New file.
72781         * MODULES.html.sh (C#): New section.
72782
72783 2005-06-01  Bruno Haible  <bruno@clisp.org>
72784
72785         * m4/csharp.m4: New file, from GNU gettext.
72786         * m4/csharpexec.m4: New file, from GNU gettext.
72787
72788 2005-06-01  Bruno Haible  <bruno@clisp.org>
72789
72790         * lib/csharpexec.h: New file, from GNU gettext.
72791         * lib/csharpexec.c: New file, from GNU gettext.
72792         * lib/csharpexec.sh.in: New file, from GNU gettext.
72793
72794 2005-05-31  Derek Price  <derek@ximbiot.com>
72795             Paul Eggert  <eggert@cs.ucla.edu>
72796
72797         Sync from cvs.
72798         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72799
72800 2005-05-31  Derek Price  <derek@ximbiot.com>
72801             Paul Eggert  <eggert@cs.ucla.edu>
72802
72803         Sync from cvs.
72804         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72805
72806 2005-05-29  Derek Price  <derek@ximbiot.com>
72807
72808         * config/srclist.txt (glob_.h, glob.c): Add these files.
72809
72810 2005-05-29  Derek Price  <derek@ximbiot.com>
72811
72812         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72813         * modules/glob: New file.
72814         * modules/getlogin_r: Add link to POSIX spec in description.
72815
72816 2005-05-29  Derek Price  <derek@ximbiot.com>
72817             Paul Eggert  <eggert@cs.ucla.edu>
72818
72819         * m4/glob.m4: New file.
72820
72821 2005-05-29  Derek Price  <derek@ximbiot.com>
72822             Paul Eggert  <eggert@cs.ucla.edu>
72823
72824         * lib/glob_.h, lib/glob.c: New files.
72825
72826 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72827
72828         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72829         * modules/fts-lgpl (Depends-on): Remove gettext.
72830
72831 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72832
72833         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72834         and don't require gt_INTTYPES_PRI.
72835
72836 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72837
72838         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72839
72840         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72841         the configuration hassle isn't worth it.
72842         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72843         (LONGEST_MODIFIER, PRIuMAX): Remove.
72844
72845 2005-05-27  Bruno Haible  <bruno@clisp.org>
72846
72847         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72848
72849 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72850
72851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72852         _POSIX_PTHREAD_SEMANTICS for Solaris.
72853
72854 2005-05-25  Derek Price  <derek@ximbiot.com>
72855
72856         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72857
72858 2005-05-25  Derek Price  <derek@ximbiot.com>
72859             Paul Eggert  <eggert@cs.ucla.edu>
72860
72861         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72862         * lib/getlogin_r.c, getlogin_r.h: New files.
72863
72864 2005-05-25  Bruno Haible  <bruno@clisp.org>
72865             Derek Price  <derek@ximbiot.com>
72866
72867         * lib/getlogin_r.h: Simplify API documentation.
72868
72869 2005-05-23  Derek Price  <derek@ximbiot.com>
72870
72871         * modules/minmax (Files): Add m4/minmax.m4.
72872         (configure.ac): Add gl_MINMAX.
72873
72874 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72875
72876         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72877         so that unistd-safer.h (GPL'ed code) need not be included.
72878
72879 2005-05-22  Bruno Haible  <bruno@clisp.org>
72880
72881         * m4/minmax.m4: New file.
72882         Based on a patch by Derek Price <derek@ximbiot.com>.
72883
72884 2005-05-22  Bruno Haible  <bruno@clisp.org>
72885
72886         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72887         (INT64_MIN): Fix definition.
72888         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72889
72890         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72891         NEED_SIGNED_INT_TYPES.
72892
72893         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72894         HAVE_SYSTEM_INTTYPES.
72895
72896 2005-05-22  Bruno Haible  <bruno@clisp.org>
72897
72898         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72899         Also include <sys/param.h> if it defines MIN, MAX.
72900         Based on a patch by Derek Price <derek@ximbiot.com>.
72901
72902 2005-05-21  Jim Meyering  <jim@meyering.net>
72903
72904         * modules/fts (Files): Add m4/inttypes-pri.m4.
72905         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72906
72907 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72908
72909         New fts module.
72910         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72911         (setup_dir, free_dir): New functions.
72912         (enter_dir, leave_dir): Define trivial
72913         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72914         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72915         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72916         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72917         Move to fts-cycle.c.
72918         (fts_open): Use setup_dir.
72919         (fts_close): Use free_dir.
72920         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72921         This adds a label and some gotos, but the alternatives were messier.
72922         Check for memory allocation failure when entering a dir.
72923         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72924         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72925         (FTS): New member fts_cycle, that is a union that contains the
72926         old active_dir_ht and cycle_state.  All uses changed to mention
72927         fts_cycle.ht and fts_cycle.state.
72928         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72929         fts.c, with the following changes:
72930         (setup_dir, free_dir): New functions.
72931         (enter_dir): Now returns bool.  Return true if successful, false
72932         if memory exhausted.  All callers changed.
72933         Do not bother partly cleaning up on
72934         memory allocation failure; that is free_dir's job.
72935         However, free ad if hash_insert fails, to avoid memory leak.
72936         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72937         fts->fts_options to see which union member to use.
72938
72939 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72940
72941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72942         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72943
72944 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72945
72946         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
72947
72948 2005-05-20  Jim Meyering  <jim@meyering.net>
72949
72950         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
72951         Now a macro, to pacify GCC.
72952
72953 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72954
72955         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
72956         of -1.
72957
72958 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
72959
72960         * lib/chown.c (rpl_chown): Return -1 on failure.
72961
72962 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72963
72964         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
72965         Don't check for stddef.h.
72966         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
72967         don't use its results.
72968         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
72969         since we include them unconditionally.  Don't require
72970         AM_STDBOOL_H, since stdbool is a prerequisite.
72971         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
72972         since we assume C89 or better.
72973         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
72974         as we don't use their results.
72975         Don't check for fchdir, memmove, memset, strrchr, as we use
72976         them unconditionally.
72977         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
72978         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
72979
72980 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
72981
72982         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
72983         Include <stddef.h> unconditionally, since we assume C89 now.
72984         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
72985         * lib/fts.c: Include fts_.h first, to check interface.
72986         Do not include intprops.h; no longer needed.
72987         Include cycle-check.h and hash.h, since fts_.h no longer does.
72988         Remove unnecessary casts of closedir to void.
72989         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
72990         decide whether to decrement nlinks.
72991         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
72992         (FTS): Use struct hash_table * instead of Hash_table, so that
72993         we no longer need to include hash.h here.
72994
72995 2005-05-18  Jim Meyering  <jim@meyering.net>
72996
72997         * modules/dirfd (License): Change to LGPL.  Most of the code
72998         is already in the public domain.
72999
73000 2005-05-18  Jim Meyering  <jim@meyering.net>
73001
73002         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73003         Reported by Yoann Vandoorselaere.
73004
73005 2005-05-17  Jim Meyering  <jim@meyering.net>
73006
73007         * m4/fts.m4: New file, from coreutils.
73008
73009 2005-05-17  Jim Meyering  <jim@meyering.net>
73010
73011         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73012
73013 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73014
73015         Sync from coreutils.
73016         * m4/unlinkdir.m4: New file.
73017
73018 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73019
73020         Sync from coreutils.
73021         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73022         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73023         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73024         White space changes only.
73025         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73026         special.
73027         * lib/yesno.c: Include getline.h, not ctype.h.
73028         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73029         Use getline to remove arbitrary restriction on response length.
73030
73031 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73032
73033         * config/srclist-update: Spell out "Street" in FSF postal
73034         mail address; this is the style the FSF seems to prefer.
73035
73036         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73037         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73038         this updates FSF postal mail address.
73039
73040         Sync from coreutils.
73041         * modules/unlinkdir: New file.
73042         * modules/yesno (Depends-on): Add getline.
73043         * MODULES.html.sh (File system functions): Add unlinkdir.
73044
73045 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73048         lib/strsep.h:
73049         Change the initial comment to refer to GPL, not LGPL.
73050         gnulib-tool will change it to LGPL as needed.
73051
73052         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73053         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73054         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73055         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73056         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73057         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73058         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73059         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73060         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73061         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73062         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73063         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73064         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73065         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73066         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73067         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73068         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73069         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73070         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73071         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73072         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73073         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73074         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73075         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73076         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73077         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73078         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73079         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73080         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73081         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73082         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73083         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73084         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73085         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73086         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73087         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73088         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73089         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73090         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73091         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73092         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73093         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73094         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73095         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73096         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73097         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73098         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73099         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73100         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73101         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73102         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73103         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73104         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73105         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73106         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73107         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73108         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73109         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73110         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73111         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73112         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73113         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73114         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73115         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73116         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73117         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73118         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73119         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73120         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73121         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73122         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73123         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73124         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73125         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73126         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73127         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73128         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73129         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73130         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73131         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73132         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73133         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73134         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73135         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73136         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73137         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73138         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73139         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73140         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73141         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73142         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73143         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73144         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73145         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73146         lib/yesno.c, lib/yesno.h:
73147         Update FSF postal mail address.
73148
73149 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73150
73151         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73152         tests/test-memmem.c, tests/test-stpncpy.c:
73153         Update FSF postal mail address.
73154
73155 2005-05-13  Bruno Haible  <bruno@clisp.org>
73156
73157         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73158         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73159         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73160         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73161         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73162         Add support for 64-bit integers in the MSVC compiler.
73163
73164 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73165
73166         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73167
73168 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73169
73170         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73171
73172 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73173
73174         * doc/getdate.texi (General date syntax): Don't say that date
73175         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73176         Problem reported by Nic Ferrier.
73177
73178 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73179
73180         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73181         specified in ai_socktype. Fix invalid ai_protocol
73182         check. ai_protocol is usually set to 0 or depending on
73183         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73184         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73185         ai_socktype / ai_protocol in the returned addrinfo structure.
73186
73187 2005-05-10  Simon Josefsson  <jas@extundo.com>
73188
73189         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73190         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73191
73192 2005-05-10  Karl Berry  <karl@gnu.org>
73193
73194         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73195         (from http://www.gnu.org/licenses).
73196         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73197         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73198         fdl.texi suffices.
73199
73200 2005-05-10  Karl Berry  <karl@gnu.org>
73201
73202         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73203         (COPYING.DOC): remove.
73204
73205         * config/srclist-update: new FSF address.
73206
73207 2005-05-10  Derek Price  <derek@ximbiot.com>
73208
73209         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73210         possible.
73211
73212 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73213             Bruno Haible  <bruno@clisp.org>
73214
73215         * modules/inet_ntop: New file.
73216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73217         inet_ntop.
73218
73219 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73220             Bruno Haible  <bruno@clisp.org>
73221
73222         * m4/inet_ntop.m4: New file.
73223
73224 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73225             Bruno Haible  <bruno@clisp.org>
73226
73227         * lib/inet_ntop.h: New file.
73228         * lib/inet_ntop.c: New file, from glibc with modifications.
73229
73230 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73231
73232         * modules/time_r (License): Change to LGPL.
73233         * modules/extensions (License): Change to LGPL.  Actually,
73234         the license is more permissive than that, but currently gnulib-tool
73235         doesn't know how to handle more-permissive licenses.
73236
73237         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73238         Problem reported by Dave Love.
73239
73240 2005-05-08  Jim Meyering  <jim@meyering.net>
73241
73242         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73243         blank.
73244
73245 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * modules/argmatch (Depends-on): Add stdbool.
73248         * modules/backupfile (Depends-on): Likewise.
73249         * modules/chdir-long (Depends-on): Likewise.
73250         * modules/closeout (Depends-on): Likewise.
73251         * modules/cycle-check (Depends-on): Likewise.
73252         * modules/dirname (Depends-on): Likewise.
73253         * modules/fnmatch (Depends-on): Likewise.
73254         * modules/fsusage (Depends-on): Likewise.
73255         * modules/fwriteerror (Depends-on): Likewise.
73256         * modules/getcwd (Depends-on): Likewise.
73257         * modules/getloadavg (Depends-on): Likewise.
73258         * modules/hard-locale (Depends-on): Likewise.
73259         * modules/makepath (Depends-on): Likewise.
73260         * modules/mountlist (Depends-on): Likewise.
73261         * modules/nanosleep (Depends-on): Likewise.
73262         * modules/posixtm (Depends-on): Likewise.
73263         * modules/quotearg (Depends-on): Likewise.
73264         * modules/readtokens (Depends-on): Likewise.
73265         * modules/readtokens0 (Depends-on): Likewise.
73266         * modules/readutmp (Depends-on): Likewise.
73267         * modules/save-cwd (Depends-on): Likewise.
73268         * modules/strftime (Depends-on): Likewise.
73269         * modules/userspec (Depends-on): Likewise.
73270         * modules/utimecmp (Depends-on): Likewise.
73271         * modules/xgetcwd (Depends-on): Likewise.
73272         * modules/xnanosleep (Depends-on): Likewise.
73273         * modules/xstrtod (Depends-on): Likewise.
73274         * modules/yesno (Depends-on): Likewise.
73275
73276 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73277
73278         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73279         needless checks.
73280
73281 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73282
73283         Merge from coreutils.  Among other things,
73284         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73285         * lib/fd-safer.c: New file.
73286         * lib/fcntl-safer.h, open-safer.c: Remove.
73287         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73288         * lib/dup-safer.c: Include unistd-safer.h first.
73289         Don't include errno.h.
73290         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73291         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73292         * lib/file-type.c: Rely on file-type.h change.
73293         * lib/getloadavg.c: Include unistd-safer.h.
73294         (getloadavg): Use safer open.
73295         * lib/getusershell.c: Include "stdio-safer.h".
73296         (getusershell): Use safer fopen.
73297         * lib/long-options.c (long_options): Use NULL rather than 0.
73298         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73299         'free'.
73300         * lib/modechange.c: Likewise.
73301         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73302         (MODE_DONE): New constant.
73303         (struct mode_change): Remove 'next' member.
73304         (make_node_op_equals): New function; like the old one of the
73305         same name, except it allocates an array.
73306         (mode_compile, mode_create_from_ref): Use it.
73307         (mode_compile): Allocate result as an array, not a linked list.
73308         Parse octal string ourself, so that we catch mistakes like "+0".
73309         (mode_adjust): Arg is an array, not a linked list.
73310         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73311         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73312         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73313         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73314         Remove.  This is now stat-macros.h's job.
73315         (talloc): Remove.  All callers replaced by xalloc, so that
73316         our invokers don't have to worry about reporting memory failures.
73317         (make_node_op_equals): Remove.
73318         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73319         New constants.
73320         (struct mode_change): Moved here from modechange.h.
73321         (mode_append_entry): Remove.
73322         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73323         apps to have incorrect behavior.  Use simpler algorithm for head
73324         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73325         Detect more invalid usages rather than having somewhat-random behavior.
73326         Don't insert an "a=" action, as that leads to incorrect behavior.
73327         (mode_compile, mode_create_from_ref): Return NULL on error instead
73328         of an enum, since now there's only one way to have an error.  All
73329         callers changed.
73330         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73331         at the correct time.  Simplify calculation of "+u" and its ilk.
73332         Don't mishandle "+X".
73333         (mode_free): Remove "register" and localize decls.
73334         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73335         (struct mode_change): Move to modechange.c; callers don't
73336         need to see this stuff.
73337         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73338         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73339         (mode_change, mode_adjust): Reflect the new signatures noted above.
73340         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73341         that might redefine system include files.
73342         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73343         (my_usleep): Use NULL rather than (void *) 0.
73344         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73345         Use siginterrupt to specify that system calls should be interrupted.
73346         (rpl_nanosleep): Move initialization of suspended closer to call of
73347         my_usleep.
73348         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73349         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73350         (desirable_utmp_entry): New function.
73351         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73352         using x2nrealloc, to simplify logic.
73353         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73354         size calculation.  Do not assume utmp file is a regular file.
73355         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73356         (READ_UTMP_CHECK_PIDS): New constant.
73357         * lib/save-cwd.c: Include unistd-safer.h.
73358         (save_cwd): Use fd_safer.
73359         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73360         [!_LIBC] Include "stat-macros.h" instead.
73361         * lib/unistd-safer.h (fd_safer): New decl.
73362
73363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73364
73365         * modules/getloadavg (Depends-on): Add unistd-safer.
73366         * modules/getusershell (Depends-on): Add stdio-safer.
73367         * modules/lstat (Depends-on): Remove xalloc.
73368         * modules/mkstemp (Depends-on): Add stat-macros.
73369         * modules/modechange (Depends-on): Remove xstrtol.
73370         Add stat-macros, xalloc.
73371         * modules/save-cwd (Depends-on): Add unistd-safer.
73372         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73373         * modules/unistd-safer (Files): Add lib/fd-safer.c
73374         (Makefile.am): Remove lib_SOURCES.
73375
73376         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73377         Remove fcntl-safer; unistd-safer supersedes it.
73378
73379 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73380
73381         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73382         AC_HEADER_STAT.
73383         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73384         (gl_PREREQ_CHOWN): Remove.
73385         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73386         it.  Don't require AC_HEADER_STAT.
73387         (gl_PREREQ_LSTAT): Remove.
73388         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73389         Don't require AC_HEADER_STAT.
73390         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73391         (gl_PREREQ_RMDIR): Remove.
73392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73393         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73394         the stat-macros module a prerequisite.
73395         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73396         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73397         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73398         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73399         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73400         variable names.
73401         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73402         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73403         variable prefixes.
73404         * m4/fcntl-safer.m4: Remove.
73405         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73406         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73407         Invoke gl_PREREQ_FD_SAFER.
73408         (gl_PREREQ_FD_SAFER): New macro.
73409         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73410         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73411         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73412         Remove duplicate call to AC_LIBOBJ(readutmp).
73413         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73414
73415         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73416         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73417
73418 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73419
73420         * MODULES.html.sh (Misc): Add byteswap.
73421
73422 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73423
73424         * modules/getcwd (Depends-on): Add extensions.
73425         * modules/openat (Depends-on): Likewise.
73426
73427 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73428
73429         * modules/byteswap: New file.
73430
73431 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73432
73433         * m4/byteswap.m4: New file.
73434
73435 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73436
73437         * lib/byteswap_.h: New file.
73438
73439 2005-04-25  Karl Berry  <karl@gnu.org>
73440
73441         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73442
73443 2005-04-25  Albert Chin  <china@thewrittenword.com>
73444
73445         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73446         Toolkit C bug.
73447
73448 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73449
73450         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73451         (func_ln_if_changed): Remove forcibly for no error message
73452         in case file does not exist.
73453
73454 2005-04-19  Simon Josefsson  <jas@extundo.com>
73455
73456         * gnulib-tool (Options): Make --symlink mean --symbolic.
73457
73458 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73459
73460         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73461
73462 2005-04-16  Simon Josefsson  <jas@extundo.com>
73463
73464         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73465
73466 2005-04-15  Simon Josefsson  <jas@extundo.com>
73467
73468         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73469
73470 2005-04-15  Simon Josefsson  <jas@extundo.com>
73471
73472         * gnulib-tool: Rename --symlink to --symbolic.
73473
73474 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73475
73476         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73477         symbolic links to files instead of copying/moving.  Add --aux-dir,
73478         specifying directory relative --dir where auxiliary build tools
73479         are placed.
73480
73481 2005-04-14  Bruno Haible  <bruno@clisp.org>
73482
73483         * modules/allocsa (License): Change to LGPL.
73484         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73485
73486 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73487
73488         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73489         that "UTC +1 second" continues to work.  Problem reported
73490         by Dmitry V. Levin.
73491         (relunit_snumber): New rule.
73492         (relunit): Use it.
73493
73494 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73495
73496         * lib/getdate.y (universal_time_zone_table): New constant.
73497         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73498         universal_time_zone_table.
73499         (lookup_zone): Prefer universal_time_zone_table to
73500         local_time_zone_table, so that "GMT" time stamps are allowed in
73501         London during the summer.  Problem reported by Ian Abbott.
73502
73503 2005-04-12  Jim Meyering  <jim@meyering.net>
73504
73505         * lib/human.c (humblock): Set *options even when returning due to
73506         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73507         warning from gcc-4.
73508
73509 2005-04-09  Jim Meyering  <jim@meyering.net>
73510
73511         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73512         -Wuninitialized: initialize tm0.tm_year.
73513
73514 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73515
73516         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73517         count, since there's no maximum.  All uses changed.
73518         Add member dsts_seen.
73519         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73520         not being INT_MAX.
73521         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73522         Use pc_rels_seen to decide whther a date is absolute.
73523
73524         * lib/getdate.y (number): Don't overwrite year.
73525         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73526         check.
73527
73528 2005-04-02  Simon Josefsson  <jas@extundo.com>
73529
73530         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73531         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73532
73533 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73534
73535         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73536         where no absolute path name can be longer than PATH_MAX.
73537
73538 2005-03-27  Jim Meyering  <jim@meyering.net>
73539
73540         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73541
73542 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73543
73544         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73545         "one's complement" -> "ones' complement" in comment, as per Knuth.
73546         "value of type" -> "type or expression" in comment.
73547         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73548
73549 2005-03-26  Jim Meyering  <jim@meyering.net>
73550
73551         Comment nits.
73552         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73553         Correct typos: s/or/of/.
73554
73555 2005-03-26  Jim Meyering  <jim@meyering.net>
73556
73557         * modules/check-include-files: Move to ../ and rename to...
73558         * check-module: ...this.
73559
73560 2005-03-25  Jim Meyering  <jim@meyering.net>
73561
73562         * modules/xvasprintf (Files): Add xalloc.h.
73563
73564 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73565
73566         * modules/gettext (Files): config/config.rpath ->
73567         build-aux/config.rpath
73568         * modules/iconv (Files): Likewise.
73569         Problem reported by Oskar Liljeblad.
73570
73571 2005-03-23  Jim Meyering  <jim@meyering.net>
73572
73573         * modules/check-include-files: New script to check for
73574         missing dependencies, multiple includes, etc.
73575
73576         * modules/c-strtold (Depends-on): Add xalloc.
73577         * modules/c-strtod (Depends-on): Add xalloc.
73578         * modules/hash (Depends-on): Add xalloc.
73579         (Files): Remove lib/xalloc.h.
73580
73581         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73582         * modules/userspec (Files): Add lib/inttostr.h.
73583
73584 2005-03-23  Jim Meyering  <jim@meyering.net>
73585
73586         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73587
73588 2005-03-22  Jim Meyering  <jim@meyering.net>
73589
73590         * modules/stat-macros: New module.
73591         * modules/canonicalize, modules/euidaccess, modules/file-type,
73592         * modules/filemode, modules/lchown, modules/makepath,
73593         * modules/rmdir, modules/stat: Depend on new stat-macros module
73594         rather than listing lib/stat-macros.h manually.
73595         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73596
73597 2005-03-22  Jim Meyering  <jim@meyering.net>
73598
73599         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73600
73601 2005-03-22  Bruno Haible  <bruno@clisp.org>
73602
73603         * config/srclist.txt: Replace target directory 'config' with
73604         'build-aux'.
73605         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73606         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73607         ../build-aux/.
73608
73609 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73610
73611         * modules/chdir-long (Depends-on): Add mempcpy.
73612
73613         * modules/acl, modules/backupfile, modules/c-strtod,
73614         modules/c-strtold, modules/canon-host, modules/canonicalize,
73615         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73616         modules/exclude, modules/exitfail, modules/file-type,
73617         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73618         modules/getdate, modules/getline, modules/getpagesize,
73619         modules/getpass, modules/getugroups, modules/group-member,
73620         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73621         modules/inttostr, modules/long-options, modules/makepath,
73622         modules/md5, modules/memcasecmp, modules/memcoll,
73623         modules/modechange, modules/mountlist, modules/path-concat,
73624         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73625         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73626         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73627         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73628         modules/strftime, modules/strndup, modules/strverscmp,
73629         modules/timespec, modules/unlocked-io, modules/userspec,
73630         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73631         modules/yesno:
73632         Remove lib_SOURCES line from Makefile.am section, as this is now
73633         done automatically by the corresponding Autoconf macro.
73634
73635 2005-03-21  Jim Meyering  <jim@meyering.net>
73636
73637         Changes imported from coreutils.
73638
73639         * lib/cycle-check.c: Don't include xalloc.h.
73640
73641         * lib/path-concat.c: Don't include assert.h.
73642         (path_concat): Remove assertion that would have triggered
73643         for ABASE starting with more than one slash.
73644         Reported by Andreas Schwab.
73645
73646         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73647         properly when ABASE is an absolute file name.
73648         Correct the description of this function.
73649         Include <assert.h>.
73650         Add an assertion and a test driver.
73651         This fixes a bug introduced on 2004-07-02.
73652         Andreas Schwab reported the resulting failure of cp --parents:
73653         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73654
73655 2005-03-21  Jim Meyering  <jim@meyering.net>
73656
73657         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73658         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73659
73660 2005-03-21  Jim Meyering  <jim@meyering.net>
73661         and  Paul Eggert  <eggert@cs.ucla.edu>
73662
73663         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73664         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73665         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73666         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73667         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73668         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73669         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73670         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73671         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73672         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73673         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73674         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73675         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73676         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73677         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73678         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73679         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73680         for these modules.
73681
73682 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73683
73684         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73685         (which shouldn't happen), generate nothing instead of returning 0
73686         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73687
73688 2005-03-16  Bruno Haible  <bruno@clisp.org>
73689
73690         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73691         HAVE_LONGLONG_64BIT.
73692
73693 2005-03-16  Bruno Haible  <bruno@clisp.org>
73694
73695         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73696         HAVE_LONGLONG_64BIT.
73697
73698 2005-03-16  Bruno Haible  <bruno@clisp.org>
73699
73700         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73701         HAVE_LONGLONG_64BIT.
73702
73703 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73704
73705         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73706         reliably distinguish strftime failure from empty output on POSIX
73707         hosts.
73708
73709 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73710
73711         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73712         (iconv_string): Don't guess a size-zero buffer, as that might cause
73713         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73714         result would be 'too large', where 'too large' is (heuristically)
73715         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73716         overflow concerns.  This will prevent some unwanted malloc failures
73717         when the inputs are very large.
73718
73719 2005-03-15  Karl Berry  <karl@gnu.org>
73720
73721         * config/srclist.txt (config.rpath): from gettext.
73722         * config/config.rpath: update.
73723
73724 2005-03-15  Bruno Haible  <bruno@clisp.org>
73725
73726         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73727         to 'negate'.
73728
73729         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73730         variable.
73731
73732         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73733         results.
73734
73735 2005-03-14  Simon Josefsson  <jas@extundo.com>
73736
73737         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73738         <fx@gnu.org>.
73739
73740 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73741
73742         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73743         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73744         intprops.h.
73745         * lib/strtol.c: Likewise.
73746
73747 2005-03-14  Jim Meyering  <jim@meyering.net>
73748
73749         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73750         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73751         to be nonzero so that we (and caller) can detect the difference
73752         between a valid zero-length expansion and an error return, even
73753         when the underlying strftime fails before writing anything into
73754         that location.
73755
73756 2005-03-14  Bruno Haible  <bruno@clisp.org>
73757
73758         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73759         Update from GNU gettext 0.14.3.
73760
73761 2005-03-10  Jim Meyering  <jim@meyering.net>
73762
73763         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73764
73765 2005-03-10  Jim Meyering  <jim@meyering.net>
73766
73767         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73768         so that this module works on systems without fchdir.
73769
73770 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73771
73772         Factor int-properties macros into a single file, except for
73773         glibc-related files.
73774         * lib/intprops.h: New file.
73775         * lib/getloadavg.c: Include it instead of limits.h.
73776         (INT_STRLEN_BOUND): Remove.
73777         * lib/human.c: Include intprops.h.
73778         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73779         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73780         302/1000.
73781         * lib/inttostr.h: Include intprops.h instead of limits.h.
73782         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73783         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73784         for consistency with intprops.h.
73785         (time_t_is_integer, twos_complement_arithmetic): Use them.
73786         * lib/sig2str.h: Include <signal.h>, intprops.h.
73787         (INT_STRLEN_BOUND): Remove.
73788         * lib/strftime.c (TYPE_SIGNED): Remove.
73789         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73790         * lib/strtol.c: Adjust comments to match intprops.h.
73791         * lib/userspec.c: Include intprops.h.
73792         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73793         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73794         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73795         instead of rolling our own expressions.
73796         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73797
73798         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73799         instead of int.
73800         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73801         the right thing even if adding 1900 would overflow.  Similarly
73802         for tm_mon + 1 and tm_yday + 1.
73803         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73804         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73805         (DO_SIGNED_NUMBER): New macro.
73806         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73807
73808 2005-03-07  Bruno Haible  <bruno@clisp.org>
73809
73810         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73811
73812 2005-03-07  Bruno Haible  <bruno@clisp.org>
73813
73814         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73815
73816 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73817
73818         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73819         (func_import): Only replace files via --import when they have actually
73820         changed.
73821
73822 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73823
73824         * m4/mmap-anon.m4: New file.
73825         * m4/pagealign_alloc.m4: New file.
73826
73827 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73828             Bruno Haible  <bruno@clisp.org>
73829
73830         * modules/pagealign_alloc: New file.
73831         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73832
73833 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73834             Bruno Haible  <bruno@clisp.org>
73835
73836         * lib/pagealign_alloc.h: New file.
73837         * lib/pagealign_alloc.c: New file.
73838
73839 2005-03-03  Bruno Haible  <bruno@clisp.org>
73840
73841         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73842         Use an all-permissive copyright notice, recommended by RMS.
73843
73844 2005-03-02  Bruno Haible  <bruno@clisp.org>
73845
73846         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73847         of AIX, the replacement has to be done only after <string.h> is
73848         included, therefore not in config.h. stpncpy.h does the replacement,
73849         and stpncpy.c uses it.
73850
73851 2005-03-02  Bruno Haible  <bruno@clisp.org>
73852
73853         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73854         stpncpy.c uses it.
73855
73856 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73859         The workaround isn't strictly needed for POSIX conformance, and
73860         it's too much of a pain to configure and maintain.  We'll ask
73861         people to fix their kernels instead.
73862         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73863         (NANOSLEEP_BUG_WORKAROUND): Remove.
73864         (xnanosleep): Remove the workaround.
73865
73866 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73867
73868         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73869         Reported by Derek Price.
73870         (Include): Add "timespec.h".
73871
73872         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73873
73874 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73875
73876         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73877         to detect nanosleep bug.
73878
73879 2005-03-01  Bruno Haible  <bruno@clisp.org>
73880
73881         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73882
73883 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73884
73885         * modules/gethrxtime: New file.
73886         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73887         (Depends-on): Add gethrxtime.
73888         (configure.ac): Add gl_XNANOSLEEP.
73889         (Makefile.am): Remove lib_SOURCES line.
73890
73891 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73892
73893         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73894         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73895
73896 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73899         * lib/timespec.h (gettime): Return void, since it always
73900         succeeds now.  All uses changed.
73901         * lib/gettime.c (gettime): Likewise.
73902         [HAVE_NANOTIME]: Prefer nanotime.
73903         Assume gettimeofday succeeds, as POSIX requires.
73904         Assime time () succeeds, since other code already does.
73905         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73906         (timespec_subtract): Remove.
73907         (NANOSLEEP_BUG_WORKAROUND): New constant.
73908         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73909         things considerably.  Use it only on GNU/Linux hosts, since the
73910         workaround shouldn't be needed elsewhere.
73911
73912 2005-02-24  Bruno Haible  <bruno@clisp.org>
73913
73914         * modules/gettext (Files): Add m4/glibc2.m4.
73915
73916 2005-02-24  Bruno Haible  <bruno@clisp.org>
73917
73918         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73919         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73920         * m4/progtest.m4:
73921         Update from GNU gettext 0.14.2.
73922         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73923
73924 2005-02-24  Bruno Haible  <bruno@clisp.org>
73925
73926         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73927         * lib/config.charset: Update from GNU gettext 0.14.2.
73928
73929 2005-02-24  Bruno Haible  <bruno@clisp.org>
73930
73931         * lib/gettext.h: Update from GNU gettext 0.14.2.
73932
73933 2005-02-23  Simon Josefsson  <jas@extundo.com>
73934
73935         * m4/iconvme.m4: New file.
73936
73937 2005-02-23  Jim Meyering  <jim@meyering.net>
73938
73939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73940         change.
73941         Thanks to Bruno Haible for catching it.
73942
73943 2005-02-22  Simon Josefsson  <jas@extundo.com>
73944
73945         * modules/iconvme: New file.
73946
73947         * MODULES.html.sh: Add iconvme.
73948
73949 2005-02-22  Simon Josefsson  <jas@extundo.com>
73950
73951         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
73952
73953 2005-02-22  Simon Josefsson  <jas@extundo.com>
73954
73955         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
73956
73957 2005-02-22  Jim Meyering  <jim@meyering.net>
73958
73959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
73960         s/ifndef/ifdef/.
73961
73962 2005-02-20  Neil Conway  <neilc@samurai.com>
73963
73964         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
73965         returned by OSX/Darwin if the specified buffer is not large
73966         enough for the hostname.
73967
73968 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73969
73970         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
73971         pass it to _help, otherwise the latter coredumps trying to
73972         dereference state.root_argp.
73973
73974 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73975
73976         * modules/chdir-long (Depends-on): Add memrchr.
73977         * modules/memrchr (Files): Add lib/memrchr.h.
73978         (Include): "memrchr.h".
73979
73980 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73981
73982         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
73983
73984 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * lib/memrchr.h: New file.
73987         * lib/chdir-long.c: Include it.
73988         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
73989         Don't bother including stddef.h.
73990
73991 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
73992
73993         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
73994         inclusion.
73995         Include <sys/types.h>, for dev_t.
73996         (ME_DUMMY, ME_REMOTE): Move from here....
73997         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
73998         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
73999         Dmitry V. Levin.
74000         Include mountlist.h first, to test the interface.
74001
74002 2005-01-29  Bruno Haible  <bruno@clisp.org>
74003
74004         * lib/progname.c (program_name): Initialize.
74005         Needed when linking statically on MacOS X.
74006
74007 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74008
74009         Sync from coreutils.
74010         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74011         (Depends-on): Add c-strtod.
74012         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74013
74014 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74015
74016         Sync from coreutils.
74017         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74018
74019         Remove files that are specific to coreutils.
74020         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74021
74022 2005-01-28  Bruno Haible  <bruno@clisp.org>
74023
74024         * modules/javacomp: New file.
74025         * MODULES.html.sh (Java): Add javacomp.
74026
74027 2005-01-28  Bruno Haible  <bruno@clisp.org>
74028
74029         * m4/javacomp.m4: New file, from GNU gettext.
74030
74031 2005-01-28  Bruno Haible  <bruno@clisp.org>
74032
74033         * lib/javacomp.sh.in: New file, from GNU gettext.
74034         * lib/javacomp.h: New file, from GNU gettext.
74035         * lib/javacomp.c: New file, from GNU gettext.
74036
74037 2005-01-26  Simon Josefsson  <jas@extundo.com>
74038
74039         * lib/gai_strerror.c: Use GPL in header.
74040
74041 2005-01-26  Bruno Haible  <bruno@clisp.org>
74042
74043         * modules/javaexec: New file.
74044         * MODULES.html.sh (Java): Add javaexec.
74045
74046 2005-01-26  Bruno Haible  <bruno@clisp.org>
74047
74048         * m4/javaexec.m4: New file, from GNU gettext.
74049
74050 2005-01-26  Bruno Haible  <bruno@clisp.org>
74051
74052         * lib/javaexec.sh.in: New file, from GNU gettext.
74053         * lib/javaexec.h: New file, from GNU gettext.
74054         * lib/javaexec.c: New file, from GNU gettext.
74055
74056 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74057
74058         * modules/lchown (Depends-on): Remove lchown.h
74059
74060 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74061
74062         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74063         must be defined if the header file was not found, in order
74064         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74065
74066 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74067
74068         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74069         initializers for struct pentry_state.
74070         (__argp_error): Check return value of __asprintf
74071         (__argp_failure): Translate error message
74072
74073         * lib/argp-parse.c: Removed braces around the expansion of N_()
74074
74075 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74076
74077         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74078         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74079         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74080         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74081         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74082         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74083         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74084         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74085         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74086         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74087         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74088         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74089         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74090         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74091         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74092         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74093         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74094         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74095         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74096         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74097         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74098         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74099         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74100         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74101         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74102         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74103         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74104         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74105         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74106         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74107         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74108         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74109         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74110         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74111         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74112         Use an all-permissive copyright notice, recommended by RMS.
74113
74114 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74115
74116         * modules/chdir-long (Depends-on): Remove mempcpy.
74117
74118 2005-01-21  Jim Meyering  <jim@meyering.net>
74119
74120         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74121         same value as for Solaris 9.
74122
74123         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74124         component length.  This included changing the parameter to be
74125         of type `char *' rather than `char const *'.
74126         * lib/chdir-long.h (chdir_long): Update prototype.
74127
74128         * lib/openat.c (fdopendir, fstatat): New functions.
74129         * lib/openat.h: Include headers required for use of DIR and struct
74130         stat.
74131         [AT_SYMLINK_NOFOLLOW]: Define.
74132         (fdopendir, fstatat): Add prototypes.
74133
74134 2005-01-21  Bruno Haible  <bruno@clisp.org>
74135
74136         * modules/classpath: New file.
74137         * MODULES.html.sh (Java): Add classpath.
74138
74139 2005-01-21  Bruno Haible  <bruno@clisp.org>
74140
74141         * lib/classpath.h: New file, from GNU gettext.
74142         * lib/classpath.c: New file, from GNU gettext.
74143
74144 2005-01-20  Simon Josefsson  <jas@extundo.com>
74145
74146         * modules/version-etc-fsf: New file.
74147
74148 2005-01-20  Simon Josefsson  <jas@extundo.com>
74149
74150         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74151         * lib/version-etc.c: Remove version_etc_copyright.
74152         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74153         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74154
74155 2005-01-20  Simon Josefsson  <jas@extundo.com>
74156
74157         * lib/base64.h (isbase64): Add.
74158
74159         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74160         using a unsigned prototype, don't inline.
74161         (base64_decode): Use it.
74162
74163 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74164
74165         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74166         it.
74167
74168 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74169
74170         * lib/save-cwd.c (save_cwd): Remove code to support the case
74171         where fchdir is missing or flaky.
74172
74173 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74174
74175         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74176
74177 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74178
74179         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74180         AC_LIBSOURCES now does this.
74181         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74182         with new ullong_max module.
74183
74184 2005-01-19  Bruno Haible  <bruno@clisp.org>
74185
74186         * modules/sh-quote: New file.
74187         * MODULES.html.sh (Executing programs): Add sh-quote.
74188
74189 2005-01-19  Bruno Haible  <bruno@clisp.org>
74190
74191         * lib/sh-quote.h: New file, from GNU gettext.
74192         * lib/sh-quote.c: New file, from GNU gettext.
74193
74194 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74195
74196         Merge from coreutils.
74197         * m4/ullong_max.m4: New file.
74198         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74199         (gl_MACROS): Assume localeconv exists.
74200
74201 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74202
74203         Merge changes from coreutils, as described below in several
74204         changelogs dated today.
74205
74206         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74207         (O_DIRECTORY): Remove; not needed here, since "." must be
74208         a directory.  All uses removed.
74209         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74210         universal on Suns, and we also need to test for IRIX.
74211         Revamp code to use 'if' rather than '#if'.
74212         Avoid unnecessary comparison of cwd->desc to 0.
74213
74214         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74215         for known valid error numbers rather than observed invalid ones.
74216
74217 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74218
74219         * modules/ullong_max: New file.
74220
74221         * modules/chdir-long, modules/openat: New files.
74222         * modules/save-cwd (Depends-on): Depend on chdir-long.
74223         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74224
74225 2005-01-18  Jim Meyering  <jim@meyering.net>
74226
74227         Merge from coreutils.
74228         * m4/chdir-long.m4, m4/openat.m4: New files.
74229         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74230         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74231         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74232         is sane and DOES follow symlinks.  Besides, testing 20 different
74233         systems found no broken chown implementations.
74234         Prompted by a change in rsync's copy of this macro.
74235         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74236
74237         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74238
74239         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74240         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74241         NULL-means-set-to-current-time semantics.
74242         Remove temporary file immediately, rather than waiting
74243         for configure's at-exit trap code to do it.
74244
74245 2005-01-18  Jim Meyering  <jim@meyering.net>
74246
74247         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74248
74249         * lib/utimens.c (futimens): Account for the fact that futimes
74250         can also fail with errno == ENOSYS or errno == ENOENT.
74251         Patch from Dmitry V. Levin.
74252
74253         Change the name of the robust chdir function from chdir to chdir_long.
74254         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74255         (restore_cwd): Use chdir_long, not chdir.
74256         * lib/chdir-long.c: Renamed from chdir.c.
74257         * lib/chdir-long.h: Renamed from chdir.h.
74258         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74259         Hurd.
74260
74261 2005-01-18  Bruno Haible  <bruno@clisp.org>
74262
74263         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74264         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74265         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74266         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74267         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74268         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74269         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74270         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74271         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74272         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74273         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74274         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74275         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74276         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74277         Use an all-permissive copyright notice, recommended by RMS.
74278
74279 2005-01-18  Bob Proulx  <bob@proulx.com>
74280
74281         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74282         simplify offsetof() macro construct to avoid compile failure with
74283         native HP-UX 11.0 ANSI C compiler.
74284
74285 2005-01-17  Bruno Haible  <bruno@clisp.org>
74286
74287         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74288         redundant because stpncpy.m4 takes care of it.
74289
74290 2005-01-17  Bruno Haible  <bruno@clisp.org>
74291
74292         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74293
74294 2005-01-17  Bruno Haible  <bruno@clisp.org>
74295
74296         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74297         used.
74298
74299 2005-01-17  Bruno Haible  <bruno@clisp.org>
74300
74301         * lib/fwriteerror.h (fwriteerror): Change specification to include
74302         fclose.
74303         * lib/fwriteerror.c: Include <stdbool.h>.
74304         (fwriteerror): At the end, close the file stream. Record whether
74305         stdout was already closed.
74306
74307 2005-01-17  Bruno Haible  <bruno@clisp.org>
74308
74309         * lib/execute.c (environ): Declare if needed.
74310         * lib/pipe.c (environ): Likewise.
74311         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74312
74313 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74314
74315         * modules/argp: Depend on vsnprintf
74316
74317 2005-01-10  Jim Meyering  <jim@meyering.net>
74318
74319         * modules/closeout (Depends-on): Add atexit.
74320
74321 2005-01-06  Bruno Haible  <bruno@clisp.org>
74322
74323         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74324
74325 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74326
74327         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74328         definitions to be after all include files, to avoid collisions.
74329         Problem reported by Bob Proulx.
74330
74331 2005-01-04  Jim Meyering  <jim@meyering.net>
74332
74333         Changes imported from coreutils.
74334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74335         as the mkstemp template, use a temporary directory and an
74336         8.3-friendly template to avoid trouble on systems like DJGPP.
74337         Reported by Juan M. Guerrero via Stepan Kasal.
74338         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74339         close. Remove the temporary directory right away, rather than waiting
74340         for configure's at-exit trap code to do it.
74341         Suggestion from Stepan Kasal.
74342
74343 2005-01-01  Simon Josefsson  <jas@extundo.com>
74344
74345         * gnulib-tool: Print #include directives when --import'ing.
74346
74347 2004-12-28  Simon Josefsson  <jas@extundo.com>
74348
74349         * tests/test-base64.c: Include required header files.  Remove
74350         unused variables.
74351
74352 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74353
74354         * modules/error (Depends-on): Remove gettext.
74355
74356 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74359         not needed.  This removes a dependency on the gettext module.
74360         [defined _LIBC]: Do not include <libintl.h>; not needed.
74361
74362 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74363
74364         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74365         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74366
74367 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74368
74369         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74370         HAVE_DECL_STRTOLD.
74371
74372 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74373
74374         * modules/getdate (Depends-on): Remove alloca-opt.
74375
74376 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74377
74378         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74379
74380 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74381
74382         * lib/argp-parse.c: Include <stddef.h>.
74383         (alignof, alignto): New macros.
74384         (parser_init): Don't assume that void * is aligned sufficiently
74385         for struct option.
74386
74387         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74388         need to extend the stack.
74389         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74390         large.
74391
74392 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74393
74394         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74395
74396 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74397
74398         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74399         (2004-10-24) change.  Apparently this was a false alarm.
74400
74401         * modules/getdate: Depend on alloca-opt, not alloca.
74402
74403 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74404
74405         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74406         Remove now-obsolete comment about AIX.
74407         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74408         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74409         (YYMAXDEPTH): New macro.
74410
74411 2004-12-18  Simon Josefsson  <jas@extundo.com>
74412
74413         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74414
74415 2004-12-18  Bruno Haible  <bruno@clisp.org>
74416
74417         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74418
74419 2004-12-18  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/fatal-signal.c (fatal_signals): Make non-const.
74422         (init_fatal_signals): New function.
74423         (uninstall_handlers, install_handlers): Ignore signals that were set to
74424         SIG_IGN.
74425         (at_fatal_signal): Call init_fatal_signals.
74426         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74427         SIG_IGN.
74428         Reported by Paul Eggert.
74429
74430 2004-12-18  Bruno Haible  <bruno@clisp.org>
74431
74432         * doc/alloca.texi: New file.
74433         * doc/alloca-opt.texi: New file.
74434
74435 2004-12-17  Jim Meyering  <jim@meyering.net>
74436
74437         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74438         Otherwise, install-sh could exit with improper exit status when
74439         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74440
74441 2004-12-16  Simon Josefsson  <jas@extundo.com>
74442
74443         * tests/test-base64.c: Add license.
74444
74445 2004-12-15  Stepan Kasal  <address@hidden>
74446
74447         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74448
74449 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         * modules/getcwd (Files): Add m4/d-ino.m4.
74452         Suggested by Mark D. Baushke.
74453
74454 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74455
74456         * lib/getdate.y (textint): New member "negative".
74457         (time_zone_hhmm): New function.
74458         Expect 14 shift-reduce conflicts, not 13.
74459         (o_colon_minutes): New rule.
74460         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74461         (yylex): Set the "negative" member of signed numbers.
74462
74463 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74464
74465         * doc/getdate.texi (Time of day items, Time zone items):
74466         Describe new formats +00:00, UTC+00:00.
74467
74468 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74469
74470         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74471         spurious "-l"s.  Problem reported by Stepan Kasal.
74472
74473 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74474
74475         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74476         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74477
74478 2004-12-04  Simon Josefsson  <jas@extundo.com>
74479
74480         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74481         Vandoorselaere <yoann@prelude-ids.org>.
74482
74483 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74484
74485         Changes imported from coreutils.
74486         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74487         exist.
74488         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74489
74490 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74491
74492         Changes imported from coreutils.
74493         * lib/hard-locale.c: Assume <locale.h> exists.
74494         Include "strdup.h".
74495         (GLIBC_VERSION): New macro.
74496         (hard_locale): Assume setlocale exists.
74497         Rewrite to avoid #ifdef.
74498         Use strdup rather than malloc + strcpy.
74499         * lib/human.c: Assume <locale.h> exists.
74500         (human_readable): Assume localeconv exists.
74501
74502 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * modules/hard-locale (Depends-on): Add strdup.
74505
74506 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74507
74508         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74509         convert T2, not T.  (Imported from libc.)
74510
74511 2004-11-30  Simon Josefsson  <jas@extundo.com>
74512
74513         * modules/restrict (License): Change to LGPL.
74514
74515 2004-11-30  Simon Josefsson  <jas@extundo.com>
74516
74517         * m4/restrict.m4: Add copyright and copying conditions.
74518
74519 2004-11-30  Simon Josefsson  <jas@extundo.com>
74520
74521         * m4/base64.m4: New file.
74522
74523 2004-11-30  Simon Josefsson  <jas@extundo.com>
74524
74525         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74526         base64.
74527
74528         * tests/test-base64.c: New file.
74529
74530         * modules/base64: New file.
74531
74532 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74533
74534         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74535         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74536
74537         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74538
74539 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74540
74541         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74542         (__getcwd.c): Don't restore errno; glibc doesn't.
74543         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74544         first, falling back to our code only if its results look suspicious.
74545         Ensure that the resulting buffer is only as large as necessary.
74546
74547         * lib/readutmp.c: Include readutmp.h first.
74548         Include <errno.h>, since readutmp.h no longer does that.
74549         * lib/readutmp.h: Don't include <errno.h>,
74550         <sys/param.h>, <time.h>; not needed to establish interface.
74551         (errno): Remove decl.
74552         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74553         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74554         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74555
74556 2004-11-28  Simon Josefsson  <jas@extundo.com>
74557
74558         * lib/base64.h, base64.c: New file.
74559
74560 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74561
74562         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74563
74564 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74565
74566         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74567         (Depends-on): Remove pathmax, same.  Add mempcpy.
74568         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74569         (Makefile.am): Append getcwd.h to lib_SOURCES.
74570         (Include): Add getcwd.h.
74571         (Maintainer): Change from Jim Meyering to "all, glibc",
74572         since getdate now uses intended-for-glibc code.
74573         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74574         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74575
74576 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74577
74578         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74579         HP's ANSI C compiler.
74580         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74581         Declaring int functions causes warnings on some modern systems and
74582         shouldn't be needed to compile on ancient ones.
74583         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74584         defined.
74585
74586         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74587         with the following changes.
74588         (__set_errno): Parenthesize properly.
74589         Include <stdbool.h>.
74590         (MIN, MAX, MATCHING_INO): New macros.
74591         (__getcwd): Define with prototype, not K&R form.
74592         Use heuristics to allocate default buffer on stack if possible.
74593         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74594         behavior, and to avoid the PATH_MAX limit when computing
74595         ../../../../...
74596         Use MATCHING_INO to compare inode number to file.
74597         Check for arithmetic overflow in size calculations.
74598         Fix bug in reallocation of dot array that caused getcwd to fail
74599         on directories nested deeper than 75.
74600         Be more careful about saving errno on error.
74601         Do not use realloc; use only free+malloc, as this is a bit
74602         more flexible and avoids a needless copy operation.
74603         Do not inspect st_dev and st_ino for symbolic links; POSIX
74604         doesn't specify the latter.
74605         Check for closedir errors.
74606         Avoid needless casts.
74607         Use "#ifdef weak_alias" around weak_alias, to be like other
74608         glibc code.
74609         The following changes to getcwd.c have effect only when used in
74610         gnulib; they have no effect inside glibc proper.
74611         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74612         as alloca isn't used.
74613         (alloca, __alloca): Likewise.
74614         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74615         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74616         unconditionally, as gnulib assumes C89 or better.
74617         Do not include <sys/param.h>.
74618         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74619         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74620         better.
74621         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74622         Include <dirent.h> in a way that is compatible with modern Autoconf.
74623         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74624         New macros, if not already defined.
74625         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74626         Use "_LIBC", not "defined _LIBC", for consistency.
74627         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74628         a mempcpy module.
74629         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74630         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74631         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74632         credit only to Jim Meyering and adjust the copyright dates.
74633         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74634         <stdlib.h>, <unistd.h>, "pathmax.h".
74635         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74636         (INITIAL_BUFFER_SIZE): Remove.
74637         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74638
74639 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74640
74641         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74642         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74643         Use the _ONCE methods, for efficiency.
74644         Check for fcntl.h.  In test program, include <errno.h>
74645         and <fcntl.h> if available.  Remove old K&R cruft from
74646         test program.  Check for common errors in GNU/Linux,
74647         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74648         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74649         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74650         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74651         name accordingly.
74652         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74653         accommodate new getcwd.c.
74654         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74655         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74656         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74657         that's all we need now.
74658
74659 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74660
74661         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74662         argp-parse.c depends on getopt internals, that means we should
74663         always use our getopt, to be on the safe side.
74664         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74665         order not to spoil the result of an eventual previous invocation
74666         of gl_GETOPT_SUBSTITUTE.
74667
74668 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74669
74670         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74671         redefinition warnings. To avoid them, include the defines
74672         in `#if !defined __need_getopt ... #endif'. The only place
74673         where __getopt_argv_const is used is in definitions
74674         of getopt_long and getopt_long_only below, which are as well
74675         protected by `#ifndef __need_getopt'.
74676         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74677         __need_getopt after including <stdio.h> and <unistd.h> These
74678         headers might have defined it.
74679
74680 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74683
74684 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74685
74686         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74687         (futimens): New function, which uses futimes if available.
74688         (futimens, utimens): Support timespec==NULL, with same semantics
74689         as utime and utimens.
74690         * lib/utimens.h (futimens): New decl.
74691
74692 2004-11-23  Jim Meyering  <jim@meyering.net>
74693
74694         * lib/getopt_.h: Remove trailing blanks.
74695
74696 2004-11-23  Jim Meyering  <jim@meyering.net>
74697
74698         * lib/__fpending.c: Add comment.
74699
74700 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74701
74702         * modules/canonicalize (Depends-on): Add xreadlink.
74703         Problem reported by James Youngman.
74704
74705 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74706
74707         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74708         New macros.
74709         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74710         optopt): Use them instead of invoking ## directly; otherwise, the
74711         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74712
74713 2004-11-19  Bruno Haible  <bruno@clisp.org>
74714
74715         * lib/strtok_r.c: Move comments from here...
74716         * lib/strtok_r.h: ... to here.
74717
74718 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74719
74720         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74721         implementations that mishandle size_t overflow.
74722
74723 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74724
74725         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74726         might fail.  Problem reported by Yoann Vandoorselaere.
74727         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74728         implementations that mishandle size_t overflow.
74729
74730 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74731
74732         * modules/canon-host (Depends-on): Add strdup.
74733
74734 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74737
74738 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74739
74740         * lib/canon-host.c: Include "strdup.h".
74741         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74742         Use strdup instead of malloc/strcpy to duplicate strings.
74743
74744         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74745         (human_space_before_unit): New constant.
74746         * lib/human.c (human_readable): Support it.
74747
74748         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74749         (xgetcwd): Set errno correctly when failing.
74750         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74751         the failure is actually due to a PATH_MAX problem.
74752
74753         Further getopt changes to make it more likely that glibc will
74754         buy the changes back.
74755         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74756         (getopt): Use it, so to preserve glibc semantic
74757         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74758         when compiling for libc.
74759         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74760         (getopt_long, getopt_long_only): Use it.
74761
74762         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74763         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74764         (getopt): Argv is now char * const *, as per standard.
74765         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74766         not char *__getopt_argv_const *.
74767         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74768         _getopt_long_only_r): Likewise.
74769         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74770         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74771         _getopt_long_r, _getopt_long_only_r): Likewise.
74772         * lib/getopt_.h (__getopt_argv_const): Remove.
74773         (getopt): Argv is now char * const *, as per standard.
74774
74775         * lib/getdate.y (tORDINAL): New token.
74776         (day, relunit): Allow it for relative times.
74777         (relative_time_table): Use tORDINAL for ordinals.
74778
74779 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74782         Document that "second" isn't allowed as an ordinal number.
74783
74784 2004-11-16  Jim Meyering  <jim@meyering.net>
74785
74786         * modules/closeout (Depends-on): Add fpending.
74787
74788 2004-11-15  Jim Meyering  <jim@meyering.net>
74789
74790         * lib/closeout.c: Include "__fpending.h" once again.
74791         Include <stdbool.h>.
74792         (close_stdout): Don't fail just because stdout was closed initially,
74793         since some programs don't write to stdout in the normal course of
74794         operation (other than --version and --help), and we don't want this
74795         function to make e.g. `touch file >&-' fail.
74796         But do fail if it was closed and someone has tried to write to it.
74797         E.g., `printf foo >&-' must fail.
74798
74799 2004-11-13  Jim Meyering  <jim@meyering.net>
74800
74801         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74802
74803 2004-11-12  Simon Josefsson  <jas@extundo.com>
74804
74805         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74806         small doc fix is still pending.
74807
74808 2004-11-11  Simon Josefsson  <jas@extundo.com>
74809
74810         * modules/strtok_r: New file.
74811
74812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74813         strtok_r.
74814
74815 2004-11-11  Simon Josefsson  <jas@extundo.com>
74816
74817         * m4/strtok_r.m4: New file.
74818
74819         * m4/getopt.m4: Replace opterr.
74820
74821 2004-11-11  Simon Josefsson  <jas@extundo.com>
74822
74823         * lib/strtok_r.h, strtok_r.c: New file.
74824
74825 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74826
74827         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74828         of replacing opterr, getopt, etc.  This should handle the
74829         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74830
74831 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74832
74833         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74834         we can stop lying to compilers about the constness of argv when we
74835         are compiled outside glibc.
74836         (getopt, getopt_long, getopt_long_only): Use it.
74837         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74838         _getopt_internal, getopt): Likewise.
74839         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74840         _getopt_long_only_r): Likewise.
74841         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74842         _getopt_long_r, _getopt_long_only_r): Likewise.
74843
74844         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74845         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74846         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74847         the other external symbols.
74848         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74849         declaration, since the above renaming now works around collisions.
74850
74851 2004-11-11  Jim Meyering  <jim@meyering.net>
74852
74853         * lib/linebreak.c: Remove trailing blanks.
74854         * lib/alloca_.h: Likewise.
74855         * lib/acosl.c: Likewise.
74856         * lib/euidaccess.c: Likewise.
74857         * lib/allocsa.h: Likewise.
74858
74859 2004-11-10  Simon Josefsson  <jas@extundo.com>
74860
74861         * m4/getaddrinfo.m4: New file.
74862
74863 2004-11-10  Simon Josefsson  <jas@extundo.com>
74864
74865         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74866
74867 2004-11-10  Simon Josefsson  <jas@extundo.com>
74868
74869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74870         getaddrinfo.
74871
74872         * modules/getaddrinfo: New file.
74873
74874 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74875
74876         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74877
74878 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * lib/mktime.c (SHR): New macro, which is a portable
74881         substitute for >> that should work even on Crays.
74882         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74883         Problem reported by Mark D. Baushke in
74884         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74885         * lib/getdate.y (SHR): Likewise.
74886         (tm_diff): Use it.
74887         * lib/strftime.c (SHR): Likewise.
74888         (tm_diff): Use it.
74889         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74890         quote_these_too, so that right shifts are well defined.  All uses
74891         changed.
74892
74893 2004-11-10  Jim Meyering  <jim@meyering.net>
74894
74895         Ensure that no close failure goes unreported.
74896         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74897         return early when it seems there's nothing to flush.
74898         Don't include __fpending.h.
74899
74900 2004-11-10  Jim Meyering  <jim@meyering.net>
74901
74902         * modules/closeout (Depends-on): Remove fpending.
74903
74904 2004-11-10  Jim Meyering  <jim@meyering.net>
74905
74906         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74907
74908 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74909
74910         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74911         gl_FUNC_STRFTIME.
74912         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74913         and AC_REQUIRE when possible, to avoid duplicate checks.
74914         Check for <wchar.h>.
74915
74916 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74917
74918         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74919
74920 2004-11-09  Bruno Haible  <bruno@clisp.org>
74921
74922         * m4/sockpfaf.m4: New file.
74923
74924 2004-11-05  Bruno Haible  <bruno@clisp.org>
74925
74926         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74927         Reported by Mark D. Baushke <mdb@cvshome.org>.
74928
74929 2004-11-04  Bruno Haible  <bruno@clisp.org>
74930
74931         2004-09-11  Bruno Haible  <bruno@clisp.org>
74932                 * allocsa.valgrind: New file.
74933         2004-02-06  Bruno Haible  <bruno@clisp.org>
74934                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74935                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74936                 Reported by Christopher Seip <chris.seip@hp.com>.
74937
74938 2004-11-04  Bruno Haible  <bruno@clisp.org>
74939
74940         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74941         (Makefile.am): Distribute it.
74942
74943 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74944
74945         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74946         with errno == ERANGE if the buffer is too small.
74947         Problem reported by Mark D. Baushke.
74948
74949 2004-11-03  Albert Chin  <china@thewrittenword.com>
74950             Paul Eggert  <eggert@cs.ucla.edu>
74951
74952         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
74953         equivalent, substitute $ac_type for equivalent type rather than
74954         blindly using uint32_t *always* which won't work if uint32_t is not
74955         available.  Define _UINT32_T to work around typedef of uint32_t if
74956         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
74957         2.5.1.
74958
74959 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74960
74961         * m4/jm-macros.m4: Sync from coreutils.
74962         (gl_MACROS): Check for mbrlen, for pathchk.
74963         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
74964
74965 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         * lib/xreadlink.c (MAXSIZE): New macro.
74968         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
74969         size does not exceed MAXSIZE.  Avoid cast.
74970         As suggested by Mark D. Baushke in
74971         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
74972         if readlink fails with buffer size just under MAXSIZE, try again
74973         with MAXSIZE.
74974
74975 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
74976
74977         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
74978
74979 2004-11-02  Derek R. Price  <derek@ximbiot.com>
74980         and  Paul Eggert  <eggert@cs.ucla.edu>
74981
74982         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
74983         (get_date): Overparenthesize to avoid GCC warning.
74984
74985 2004-11-02  Bruno Haible  <bruno@clisp.org>
74986
74987         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
74988         returns void.
74989
74990 2004-11-02  Bruno Haible  <bruno@clisp.org>
74991
74992         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
74993         function returns void.
74994
74995 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
74996
74997         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
74998         fflush_unlocked, flockfile, funlockfile, funlockfile,
74999         fputs_unlocked, putc_unlocked.
75000
75001 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75002
75003         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75004         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75005         already declared.
75006
75007 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75008
75009         * modules/getdate (Files): Add doc/getdate.texi.
75010         (Depends-on): Add setenv, xalloc.
75011
75012 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         * lib/getdate.y: Add support for TZ="foo" within a date string.
75015         Fix some bugs near time_t boundaries.  Reject dates with
75016         out-of-range components, e.g., "Sept 31".
75017         Include <stdlib.h>, "setenv.h", "xalloc.h".
75018         (ISDIGIT_LOCALE): Remove; unused.
75019         Note that the TZ and time functions used here are not reentrant.
75020         (mktime_ok, get_tz): New functions.
75021         (TZBUFSIZE): New constant.
75022         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75023         This requires that we sometimes generate our own TZ="XXX..." setting.
75024
75025 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75026
75027         * doc/getdate.texi: New file, from coreutils with modifications for
75028         the new TZ parsing.
75029
75030 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75031
75032         * lib/mktime.c (not_equal_tm): Remove redundant check.
75033
75034 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75035
75036         * modules/regex (lib_SOURCES): Add regex.c.
75037         Reported by James Youngman in
75038         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75039
75040 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75041
75042         * lib/getdate.y: Use Bison 1.875 features, and some minor
75043         code cleanups.  This change does not affect semantics.
75044         Don't include <stdlib.h>; no longer needed.
75045         Don't include unlocked-io.h; only the "#if TEST" code uses
75046         stdio, and performance isn't crucial there.
75047         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75048         Bison 1.875 features as described below.
75049         All uses of "PC." replaced by "pc->".
75050         (YYSTYPE): Add a forward declaration.
75051         (yylex, yyerror): Use full prototypes in forward decls.
75052         Use "%pure-parser" rather than obsolescent "%pure_parser".
75053         Use %parse-param and %lex-param instead of obsolescent
75054         YYPARSE_PARAM and YYLEX_PARAM.
75055         (meridian_table, month_and_day_table, time_units_table,
75056         relative_time_table, time_zone_table, military_table,
75057         lookup_zone, lookup_word, get_date):
75058         Use NULL instead of 0 where appropriate.
75059         (to_hour): Avoid abort (), to avoid a dependency on
75060         stdlib.h.
75061         (yyerror, yylex): Now accepts parser_control * arg.
75062         (main) [TEST]: Use '\0' rather than 0 for char.
75063
75064 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75065
75066         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75067
75068 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75069
75070         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75071         It's now the caller's responsibility to handle the case where
75072         !HAVE_GETPAGESIZE && !defined getpagesize.
75073
75074         * lib/mktime.c (leapyear): Arg is long int, not int.
75075
75076 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75077
75078         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75079
75080 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75081
75082         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75083         missing.  Problem reported by James Youngman.
75084
75085 2004-10-16  Simon Josefsson  <jas@extundo.com>
75086
75087         * gnulib-tool: Fix comments.  Fix parse problem.
75088         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75089
75090 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75091
75092         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75093         implementation of getopt_long.  Problem reported by Alexander Taler in:
75094         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75095
75096 2004-10-15  Bruno Haible  <bruno@clisp.org>
75097
75098         * gnulib-tool: Untabify. Initialize supplied_libname.
75099         (func_usage): More homogenous output.
75100         (func_modules_transitive_closure, func_modules_to_filelist,
75101         func_emit_lib_Makefile_am): New functions.
75102         (func_import): New function, extracted from big case statement. Use
75103         func_get_license, func_modules_transitive_closure,
75104         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75105         opt_lgpl. Don't use test -a, as it's not portable.
75106         (func_create_testdir): Use func_modules_transitive_closure,
75107         func_modules_to_filelist, func_emit_lib_Makefile_am.
75108
75109 2004-10-15  Bruno Haible  <bruno@clisp.org>
75110
75111         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75112
75113 2004-10-15  Bruno Haible  <bruno@clisp.org>
75114
75115         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75116         the portions belonging to each module.
75117         Suggested by Derek Robert Price <derek@ximbiot.com>.
75118
75119 2004-10-12  Simon Josefsson  <jas@extundo.com>
75120
75121         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75122         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75123         to real functions.
75124
75125 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75126
75127         * modules/vsnprintf: New file.
75128
75129 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75130
75131         * m4/vsnprintf.m4: New file.
75132
75133 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75134
75135         * lib/vsnprintf.h: New file.
75136         * lib/vsnprintf.c: New file.
75137
75138 2004-10-11  Bruno Haible  <bruno@clisp.org>
75139
75140         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75141         vsnprintf.
75142
75143 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75146
75147 2004-10-07  Bruno Haible  <bruno@clisp.org>
75148
75149         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75150         fits into the provided buffer.
75151
75152 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75153
75154         * lib/diacrit.c, diacrit.h: Add GPL notice.
75155
75156         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75157         notice.
75158         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75159         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75160         This avoids a potential constant-folding bug.
75161
75162 2004-10-05  Bruno Haible  <bruno@clisp.org>
75163
75164         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75165         for the declaration of strsep.
75166
75167 2004-10-05  Bruno Haible  <bruno@clisp.org>
75168
75169         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75170
75171 2004-10-04  Simon Josefsson  <jas@extundo.com>
75172
75173         * modules/memmem: New file.
75174         * tests/test-memmem.c: New file.
75175         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75176
75177 2004-10-04  Simon Josefsson  <jas@extundo.com>
75178
75179         * m4/memmem.m4: New file.
75180
75181 2004-10-04  Simon Josefsson  <jas@extundo.com>
75182
75183         * lib/memmem.h: New file.
75184         * lib/memmem.c: New file, taken from glibc.
75185
75186 2004-10-04  Simon Josefsson  <jas@extundo.com>
75187
75188         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75189         '#ifdef USE_UNLOCKED_IO'.
75190
75191 2004-10-04  Simon Josefsson  <jas@extundo.com>
75192
75193         * config/srclist.txt: Add memmem from glibc.
75194
75195 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75196
75197         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75198
75199         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75200         modules/exclude, modules/getdate, modules/getline,
75201         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75202         modules/getusershell, modules/linebuffer, modules/md5,
75203         modules/mountlist, modules/posixtm, modules/readtokens,
75204         modules/readutmp, modules/regex, modules/sha1,
75205         modules/version-etc, modules/yesno:
75206         Remove dependency on unlocked-io.
75207
75208 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75211
75212         * m4/unlocked-io.m4: Add copyright notice.
75213         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75214
75215 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75218         * lib/xmalloc.c (xmemdup): Likewise.
75219         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75220         XFREE): Remove these long-obsolescent macros.
75221         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75222         * lib/xstrdup.c: Remove.
75223
75224         * lib/regex.c (re_comp): Cast gettext return value to char *,
75225         Problem reported by Martin Neitzel via Mark D. Baushke.
75226
75227 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75230         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75231         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75232         regex.c, sha1.c, version-etc.c, yesno.c:
75233         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75234         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75235         the includer's responsibility.
75236
75237         Sync from coreutils.
75238
75239         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75240         points to the start of a string, as the C Standard says the
75241         resulting behavior is undefined.
75242
75243         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75244         simple -> simple_backups, numbered_existing ->
75245         numbered_existing_backups, numbered -> numbered_backups
75246         to avoid shadowing problems.  All uses changed.
75247         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75248         * lib/backupfile.c (check_extension, numbered_backup):
75249         Rename locals to avoid shadowing 'basename'.
75250         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75251         once.
75252
75253         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75254         * lib/.cvsignore: Add getopt.h.
75255
75256 2004-10-04  Bruno Haible  <bruno@clisp.org>
75257
75258         * modules/README: New file.
75259         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75260         not a module.
75261
75262 2004-10-02  Jim Meyering  <jim@meyering.net>
75263
75264         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75265
75266 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75267
75268         * modules/strsep: New file.
75269
75270 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75271
75272         * m4/strsep.m4: New file.
75273
75274 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75275
75276         * lib/strsep.h: New file.
75277         * lib/strsep.c: New file.
75278
75279 2004-10-01  Simon Josefsson  <jas@extundo.com>
75280
75281         * lib/snprintf.c (snprintf): Handle size==0.
75282
75283 2004-10-01  Simon Josefsson  <jas@extundo.com>
75284             Bruno Haible  <bruno@clisp.org>
75285
75286         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75287         (snprintf): Declare 'args'.
75288
75289 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75290
75291         * lib/snprintf.c: Remove comments as to why each header is needed.
75292
75293 2004-10-01  Bruno Haible  <bruno@clisp.org>
75294
75295         * MODULES.html.sh: Add strsep.
75296
75297 2004-09-30  Simon Josefsson  <jas@extundo.com>
75298
75299         * modules/snprintf: New file.
75300
75301 2004-09-30  Simon Josefsson  <jas@extundo.com>
75302
75303         * m4/snprintf.m4: New file.
75304
75305 2004-09-30  Simon Josefsson  <jas@extundo.com>
75306
75307         * lib/snprintf.h, lib/snprintf.c: New files.
75308
75309 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75310
75311         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75312         (hol_entry_help): Never translate an empty string.
75313         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75314         * lib/argp.h (OPTION_NO_TRANS): New option.
75315
75316 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75317
75318         * modules/argp (Maintainer): Replace Simon Josefsson
75319         by Sergey Poznyakoff.
75320
75321 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75322
75323         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75324         changes merged back into glibc.
75325
75326 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75327
75328         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75329
75330 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75331
75332         * lib/xvasprintf.c: Include xalloc.h.
75333         (xvasprintf): Use xalloc_die, not xmalloc_die.
75334
75335 2004-09-29  Bruno Haible  <bruno@clisp.org>
75336
75337         * modules/alloca-opt: New file, derived from modules/alloca.
75338         * modules/allocsa: Depend on alloca-opt instead of alloca.
75339         * modules/setenv: Likewise.
75340         * modules/vasnprintf: Likewise.
75341         * MODULES.html.sh: Add alloca-opt.
75342
75343 2004-09-28  Simon Josefsson  <jas@extundo.com>
75344
75345         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75346         LGPL, and to replace license template from GPL to LGPL.
75347
75348 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75349
75350         * modules/dummy: Change license to LGPL.
75351
75352 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75353
75354         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75355
75356 2004-09-24  Simon Josefsson  <jas@extundo.com>
75357
75358         * modules/minmax (License): Change from GPL to LGPL.
75359
75360 2004-09-23  Simon Josefsson  <jas@extundo.com>
75361
75362         * gnulib-tool (--import): Typo.
75363
75364 2004-09-23  Simon Josefsson  <jas@extundo.com>
75365
75366         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75367
75368 2004-09-22  Bruno Haible  <bruno@clisp.org>
75369
75370         * modules/*: Add 'License' field.
75371         * gnulib-tool: Accept --extract-license option.
75372         (func_get_license): New function.
75373
75374 2004-09-21  Bruno Haible  <bruno@clisp.org>
75375
75376         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75377         Reported by Simon Josefsson.
75378
75379 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75382         gl_AC_TYPE_LONG_LONG.
75383
75384 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75385
75386         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75387
75388 2004-09-18  Simon Josefsson  <jas@extundo.com>
75389         and  Paul Eggert  <eggert@cs.ucla.edu>
75390
75391         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75392         calls with autoreconf.  Define GL_LIB.
75393
75394 2004-09-14  Karl Berry  <karl@gnu.org>
75395
75396         * config/srclist.txt: unsync setenv.c, sigh.
75397
75398 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75399
75400         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75401         Problem reported by Bruno Haible in:
75402         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75403
75404 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75405
75406         * config/srclist.txt: Comment out argp-pvh.c.
75407
75408 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75409
75410         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75411         in case some system header has #define'd it.  Problem reported by
75412         Soeren D. Schulze in
75413         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75414
75415 2004-09-09  Karl Berry  <karl@gnu.org>
75416
75417         * regex.[ch]: delete from the root.  These were supposed to be
75418                 synced with emacs cvs, but this has not happened for about
75419                 a year, and anyway nothing else uses emacs regex.[ch].
75420                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75421                 lib/regex[.ch] is untouched.
75422
75423 2004-09-09  Bruno Haible  <bruno@clisp.org>
75424
75425         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75426
75427 2004-09-09  Bruno Haible  <bruno@clisp.org>
75428
75429         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75430         modifications.
75431         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75432
75433 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75434
75435         * modules/xvasprintf: New file.
75436         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75437
75438 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75439
75440         * lib/xvasprintf.h: New file.
75441         * lib/xvasprintf.c: New file.
75442         * lib/xasprintf.c: New file.
75443
75444 2004-09-08  Bruno Haible  <bruno@clisp.org>
75445
75446         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75447
75448 2004-09-08  Bruno Haible  <bruno@clisp.org>
75449
75450         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75451         length is > INT_MAX.
75452         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75453         more.
75454
75455 2004-09-08  Bruno Haible  <bruno@clisp.org>
75456
75457         * lib/stdint_.h: New file, taken from GNU clisp.
75458
75459 2004-09-08  Bruno Haible  <bruno@clisp.org>
75460             Oskar Liljeblad  <oskar@osk.mine.nu>
75461
75462         * modules/stdint: New file.
75463         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75464
75465 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75466
75467         Import from coreutils.
75468         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75469         strings on unbounded length.  alloca's performance benefits aren't
75470         that important here.
75471         (V_STRDUP): Remove.
75472         (parse_with_separator): New function, with most of the internals
75473         of the old parse_user_spec.  Allow user to omit both user and group,
75474         for compatibility with FreeBSD.
75475         Clone only the user name, not the entire spec.
75476         Do not set *uid, *gid unless entirely successful.
75477         Avoid memory leak in some failing cases.
75478         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75479         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75480         (parse_user_spec): Rewrite to use parse_with_separator.
75481
75482 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75483
75484         * modules/userspec: Don't depend on alloca.
75485
75486 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75487
75488         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75489
75490 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75491
75492         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75493         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75494         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75495
75496 2004-08-16  Simon Josefsson  <jas@extundo.com>
75497
75498         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75499         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75500         Add --dry-run for --import.
75501         Let user provided command line parameters override configure.ac
75502         settings.
75503
75504 2004-08-12  Simon Josefsson  <jas@extundo.com>
75505
75506         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75507         as discussed with Paul Eggert in threads rooted at
75508         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75509         and
75510         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75511         Before, the test was empty, and relied on ELIDE_CODE in source
75512         code.)
75513         (gl_PREREQ_GETOPT): New macro.
75514         (gl_GETOPT): Use them.
75515
75516 2004-08-12  Simon Josefsson  <jas@extundo.com>
75517
75518         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75519         * lib/getopt_.h: Renamed from getopt.h.
75520
75521 2004-08-12  Simon Josefsson  <jas@extundo.com>
75522
75523         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75524         Change default library name from libfoo to libgnu.
75525         Now, if you have a configure.ac that says:
75526                 gl_SOURCE_BASE(gl)
75527                 gl_M4_BASE(gl/m4)
75528                 gl_MODULES(error getopt etcetera)
75529                 gl_INIT
75530         you can import all you need by running:
75531                 ../gnulib/gnulib-tool --import
75532
75533         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75534         (Makefile.am): Rewrite, use logic from argz.
75535         (Include): Use <getopt.h> instead of "getopt.h".
75536
75537 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75538
75539         * modules/argp (Files): Add m4/unlocked-io.m4.
75540         (Depends-on): Add extensions.
75541
75542 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75545         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75546         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75547         Check for program_invocation_name, program_invocation_short_name,
75548         flockfile, funlockfile, features.h, _getopt_long_only_r.
75549
75550 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75551
75552         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75553         its complicated substitute.
75554         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75555         and program_invocation_name.
75556         (__argp_basename) [!_LIBC]: Remove; the only use was
75557         replaced by its body.
75558         (__argp_short_program_name): Change condition from
75559         !defined __argp_short_program_name to
75560         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75561         to match argp-namefrob.h.
75562         (__argp_failure): Don't assume strerror_r returns char *.
75563         * lib/argp-parse.c (N_): Define unconditionally.
75564         (argp_default_options): Fill out initializers with 0 to avoid
75565         gcc warnings.
75566
75567 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75568
75569         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75570         getopt1.c.
75571
75572 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75573
75574         Merge from coreutils.
75575
75576         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75577
75578         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75579         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75580
75581 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75582
75583         Merge from coreutils.
75584
75585         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75586         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75587         for Reliant Unix 5.43.
75588
75589         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75590         (union fooround): Use uintmax_t, not long int.
75591         The rest is a merge from libc:
75592         [defined _LIBC]: Include <shlib-compat.h>.
75593         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75594
75595         * lib/settime.c (settime): Recode to avoid warning with
75596         Sun Forte C 6U2.
75597
75598         * lib/strverscmp.c: Convert to UTF-8.
75599
75600 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75601
75602         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75603         m4/uintmax_t.m4.
75604
75605 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75606
75607         * modules/xalloc-die: New file.
75608         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75609
75610         * modules/md5 (Files): Add m4/uint32_t.m4.
75611         * modules/sha1: Renamed from modules/sha.
75612         (Files):
75613         Rename lib/sha.h to lib/sha1.h.
75614         Rename lib/sha.c to lib/sha1.c.
75615         Rename m4/sha.m4 to m4/sha1.m4.
75616         (lib_SOURCES): Likewise.
75617         (configure.ac): Rename gl_SHA to gl_SHA1.
75618         (Include): sha.h -> sha1.h.
75619
75620 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75623         * m4/sha1.m4: Renamed from sha.m4.
75624         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75625
75626 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * lib/obstack.h (obstack_empty_p):
75629         Don't assume that chunk->contents is suitably aligned.
75630         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75631         Likewise. Problem reported by Benno in
75632         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75633
75634         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75635         readable.  This could be improved further but it'd take some work.
75636
75637 2004-08-08  Simon Josefsson  <jas@extundo.com>
75638
75639         * modules/xgethostname (Depends-on): Remove exit and error (not
75640         used).
75641
75642         * modules/getpass-gnu: Add getpass.h.
75643         (Depends-on): Add stdbool.
75644         * modules/getpass: Add getpass.h.
75645
75646 2004-08-08  Simon Josefsson  <jas@extundo.com>
75647
75648         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75649         Check getpass declaration.
75650
75651 2004-08-08  Simon Josefsson  <jas@extundo.com>
75652
75653         * lib/xgethostname.c: Don't include error.h (not used).
75654
75655         * lib/getpass.h: Add.
75656         * lib/getpass.c: Include getpass.h first.
75657
75658 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75659
75660         * lib/xalloc-die.c: New file.
75661         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75662         All uses removed.
75663         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75664         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75665         xalloc-die.c.
75666         (_, N_, xalloc_die): Move to xalloc-die.c.
75667         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75668         so that we needn't mess with xalloc_msg_memory_exhausted.
75669
75670         * lib/sha1.h: Renamed from sha.h.
75671         (SHA1_H): Renamed from _SHA_H.
75672         (sha1_ctx): Renamed from sha_ctx.
75673         (sha1_init_ctx): Renamed from sha_init_ctx.
75674         (sha1_process_block): Renamed from sha_process_block.
75675         (sha1_process_bytes): Renamed from sha_process_bytes.
75676         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75677         (sha1_read_ctx): Renamed from sha_read_ctx.
75678         (sha1_stream): Renamed from sha_stream.
75679         (sha1_buffer): Renamed from sha_buffer.
75680         * lib/sha1.c: Likewise; renamed from sha.c.
75681         Do not include <sys/types.h>.
75682         Include <stddef.h> rather than <stdlib.h>.
75683
75684 2004-08-08  Bruno Haible  <bruno@clisp.org>
75685
75686         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75687         FILESYSTEM_PREFIX_LEN.
75688         * lib/progreloc.c: Likewise.
75689         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75690
75691 2004-08-06  Simon Josefsson  <jas@extundo.com>
75692
75693         * modules/progname (Depends-on): Don't depend on stdbool.
75694
75695 2004-08-06  Simon Josefsson  <jas@extundo.com>
75696
75697         * modules/getsubopt: New file.
75698         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75699         getsubopt.
75700
75701 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75702
75703         More merge from coreutils.
75704
75705         * m4/utimens.m4, m4/utimecmp.m4: New files.
75706         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75707         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75708         prereq.m4, sha.m4: Import changes from coreutils.
75709
75710 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75711
75712         More merge from coreutils.
75713         * modules/raise, modules/readtokens0, modules/utimens:
75714         * modules/utimecmp, module/xnanosleep: New files.
75715         * modules/strftime: Add lib/strftime.h.
75716         Change include from <time.h> to "strftime.h".
75717         * modules/yesno: Add lib/yesno.h.
75718         * modules/backupfile: Remove lib/addext.c.
75719         * modules/euidaccess: Add stat-macros.h.
75720         * modules/canonicalize, modules/euidaccess,
75721         modules/filemode, modules/lchown, modules/makepath,
75722         modules/rmdir, modules/stat: Likewise.
75723
75724 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75725
75726         Merge from tar.
75727         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75728         SIZE_MAX is a valid preprocessor constant.
75729         (__argp_basename): Change from "#ifndef _LIBC"
75730         to "#ifndef __argp_short_program_name", so that
75731         we don't compile these functions for tar.
75732
75733         More merges from coreutils.
75734         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75735         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75736         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75737         * lib/addext.c: Remove; no longer needed.
75738         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75739         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75740         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75741         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75742         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75743         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75744         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75745         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75746         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75747         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75748         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75749         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75750         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75751         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75752         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75753         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75754         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75755         Import changes from coreutils.
75756
75757 2004-08-05  Simon Josefsson  <jas@extundo.com>
75758
75759         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75760
75761 2004-08-05  Simon Josefsson  <jas@extundo.com>
75762
75763         * m4/getsubopt.m4: New file.
75764
75765 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75766
75767         Merge from coreutils.
75768
75769         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75770         * m4/getcwd-path-max.m4: New files.
75771
75772         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75773         FILESYSTEM_PREFIX_LEN ->
75774         FILE_SYSTEM_PREFIX_LEN.
75775         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75776         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75777         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75778         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75779
75780         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75781         prerequisite modules now handle the DOS stuff.
75782         Don't check for unistd.h.
75783
75784 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75785
75786         Merge from coreutils.
75787
75788         * lib/.gdb-history: Remove; this doesn't belong here.
75789
75790         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75791         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75792         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75793         * lib/getcwd.c: New files.
75794
75795         * lib/dirname.h: Include <stdbool.h>.
75796         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75797         for consistency with POSIX terminology.  All uses changed.
75798         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75799         (strip_trailing_slashes): Use bool for booleans.
75800         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75801
75802         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75803         sometimes returns a positive errno value even when it succeeds.
75804         (print_errno_message) [!LIBC]: Fall back on strerror if
75805         __strerror_r fails.
75806
75807         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75808         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75809         (longest_relative_suffix): New function.
75810         (path_concat): Use it.  Assume first argument is not NULL.
75811         Port to DOS.  Omit redundant separators.
75812         Report an error instead of returning NULL.
75813         Use mempcpy instead of memcpy.
75814         (xpath_concat): Remove: not declared or used.
75815
75816         * lib/same.h: Include <stdbool.h>
75817         (same_name): Return bool, not int.
75818         * lib/same.c (same_name): Likewise.
75819         (errno): Don't declare; we assume C89 or better now.
75820
75821         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75822         if not already defined.
75823
75824         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75825         * lib/dup-safer.c (errno): Likewise.
75826
75827 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75828
75829         Merge from coreutils.
75830         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75831         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75832         * modules/path-concat: Don't depend on strdup.
75833
75834 2004-08-03  Simon Josefsson  <jas@extundo.com>
75835
75836         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75837         * lib/progname.h: Don't include stdbool.h.
75838
75839 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75840
75841         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75842         * MODULES.html.sh (func_all_modules): Remove fatal.
75843
75844 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75845
75846         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75847
75848 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75849
75850         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75851         working.
75852
75853 2004-08-02  Simon Josefsson  <jas@extundo.com>
75854
75855         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75856         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75857         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75858
75859 2004-08-01  Simon Josefsson  <jas@extundo.com>
75860
75861         * lib/xgetdomainname.c: Include stdlib.h, for free().
75862
75863 2004-07-19  Bruno Haible  <bruno@clisp.org>
75864
75865         * MODULES.html.sh (func_all_modules): Add dummy.
75866
75867 2004-07-16  Simon Josefsson  <jas@extundo.com>
75868
75869         * modules/dummy: New file.
75870
75871 2004-07-16  Simon Josefsson  <jas@extundo.com>
75872
75873         * lib/dummy.c: New file.
75874
75875 2004-07-16  Bruno Haible  <bruno@clisp.org>
75876
75877         * lib/backupfile.h: Add extern "C" for C++.
75878         * lib/closeout.h: Likewise.
75879         * lib/copy-file.h: Likewise.
75880         * lib/findprog.h: Likewise.
75881         * lib/full-write.h: Likewise.
75882         * lib/pathname.h: Likewise.
75883         * lib/progname.h: Likewise.
75884         * lib/stpcpy.h: Likewise.
75885         * lib/stpncpy.h: Likewise.
75886         * lib/strcase.h: Likewise.
75887         * lib/strstr.h: Likewise.
75888         * lib/xalloc.h: Likewise.
75889
75890         * lib/mbswidth.h: Add extern "C" for C++.
75891         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75892
75893 2004-07-13  Robert Millan  <robertmh@gnu.org>
75894
75895         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75896
75897 2004-07-09  Simon Josefsson  <jas@extundo.com>
75898
75899         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75900         failed without this.)
75901
75902 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75903
75904         * modules/chown (Files): Add lib/fchown-stub.c, since
75905         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75906
75907 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75908
75909         * lib/fchown-stub.c: New file.
75910
75911 2004-06-24  Jim Meyering  <jim@meyering.net>
75912
75913         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75914
75915 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75916
75917         * modules/argz: Omit "#include".
75918
75919         * MODULES.html.sh (func_all_modules): Add calloc, to match
75920         2004-06-01 addition of calloc module.
75921
75922 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75923
75924         * m4/argz.m4: New file, which is autoupdated from libtool.
75925
75926 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75927
75928         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75929         libtool.
75930
75931 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75932
75933         * config/srclist-update: Don't insist on "USA." before the
75934         close-comment, as libtool omits the period and puts the */ on a
75935         separate line.
75936         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75937         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75938
75939 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75940
75941         * modules/argz: New file.
75942         * MODULES.html.sh (func_all_modules): Add argz.
75943
75944 2004-06-12  Jim Meyering  <jim@meyering.net>
75945         and  Paul Eggert  <eggert@cs.ucla.edu>
75946
75947         * modules/hash (Files): Add lib/xalloc.h.
75948         * modules/pipe (Depends-on): Add wait-process.
75949         * modules/stat (Depends-on): Add xalloc.
75950         * modules/userspec (Files): Add lib/userspec.h.
75951         * modules/xstrto
75952
75953         Upgrade from gettext-0.13.
75954         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
75955         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
75956         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
75957
75958 2004-06-10  Jim Meyering  <jim@meyering.net>
75959
75960         * lib/calloc.c: New file.
75961
75962 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
75963
75964         * lib/getdate.y (yylex): Allow space between sign and number.
75965         Problem reported by Dan Jacobson.
75966
75967 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75968
75969         Merge from coreutils CVS.
75970
75971         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
75972         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
75973         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
75974         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
75975         xstrtol.m4: Fix copyright date and/or serial number.
75976
75977         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
75978         See if we need an fchown replacement.
75979         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
75980         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
75981         and use the replacement function if we detect either defect.
75982
75983         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
75984         gl_UTIMECMP.
75985
75986 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
75987         and  Jim Meyering  <jim@meyering.net>
75988
75989         Merge from coreutils CVS.
75990
75991         * lib/stat-macros.h: New file, with contents from file-type.h
75992         and coreutils' system.h.
75993         * lib/file-type.c: Include "stat-macros.h".
75994         * lib/file-type.h (file_type): Move all macro definitions to new file,
75995         stat-macros.h.
75996
75997         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
75998         Wrap old code with this conditional.
75999         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76000         function that does not dereference symlinks.
76001         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76002
76003         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76004         dependency problems.
76005         (xreadlink): Accept new arg SIZE, for efficiency.
76006         All decls and uses changed.
76007         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76008
76009         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76010         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76011
76012         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76013         sysexits.h.
76014
76015 2004-06-01  Jim Meyering  <jim@meyering.net>
76016
76017         * m4/calloc.m4: New file.
76018
76019 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76020
76021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76022         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76023         Also, fix a typo in a diagnostic.
76024
76025 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76026
76027         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76028         or AC_FUNC_REALLOC.
76029
76030 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76031
76032         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76033         macros to be defined.
76034         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76035         the allocator returns NULL because the requested size is zero.
76036
76037 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76038
76039         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76040         var.  Add comment explaining why libc still defines it.  This
76041         merges the following patch from glibc:
76042         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76043
76044 2004-05-20  Andreas Schwab  <schwab@suse.de>
76045
76046         * m4/free.m4: Replace free if it not known to work, not the other
76047         way round.
76048
76049 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76050
76051         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76052         present in glibc since revision 1.1 of this file.
76053         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76054         obstack_alignment_mask, obstack_alloc, obstack_base,
76055         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76056         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76057         obstack_grow0, obstack_init, obstack_int_grow,
76058         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76059         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76060         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76061         nonexistent functions.
76062
76063 2004-05-18  Karl Berry  <karl@gnu.org>
76064
76065         * config/srclist.txt: break link for vasnprintf.c.
76066
76067 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76068
76069         Port obstack to the AS/400, where pointers are 16 bytes wide and
76070         you cannot cast an integer to a valid pointer.  This patch is
76071         currently waiting to be integrated into glibc; see
76072         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76073
76074         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76075         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76076         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76077         (struct obstack): temp member is now a union of a pointer and
76078         an integer, instead of an integer.  All integer uses changed.
76079         This does not affect the physical layout of struct obstack,
76080         except on hosts (like the AS/400) where the size or alignment of
76081         void * is greater than that of ptrdiff_t.
76082         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76083         __STDC__)]: Store temporary in pointer member of union, not
76084         integer member.
76085         * lib/obstack.c: Include <stddef.h>, for offsetof.
76086         (struct fooalign): Remove; it doesn't need a name.
76087         (union fooround): Change double to long double, and add void *.
76088         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76089         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76090         not a macro.  Hence the values are always int; so remove all
76091         casts-to-int in uses.
76092
76093 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76094
76095         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76096         we can get this patch merged into glibc.
76097
76098 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76099             Paul Eggert  <eggert@cs.ucla.edu>
76100
76101         * m4/argp: Depend on alloca.
76102
76103 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76104             Paul Eggert  <eggert@cs.ucla.edu>
76105
76106         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76107         freecoding.
76108
76109 2004-05-17  Bruno Haible  <bruno@clisp.org>
76110
76111         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76112         precision that consists of a '.' followed by an empty digit string.
76113         Patch by Tor Lillqvist <tml@iki.fi>.
76114
76115 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76116
76117         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76118         for backward compatibility with older code.  We need our own
76119         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76120         it under some other name, and our alloca.h will define it.
76121
76122 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76123             Derek Price  <derek@ximbiot.com>
76124
76125         * lib/alloca.c: Include <alloca.h>, to get our interface.
76126         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76127         include <alloca.h> first.  Use C89 prototype for alloca; this
76128         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76129         Use #elif for simplicity, since we can assume C89 now.
76130         Don't try to source the system alloca.h since it will not be found
76131         and to prevent recursively including its replacement.
76132         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76133         * lib/regex.c: Likewise.
76134
76135 2004-05-16  Derek Price  <derek@ximbiot.com>
76136             Paul Eggert  <eggert@cs.ucla.edu>
76137
76138         getline cleanup.  This changes the getndelim2 API: both order of
76139         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76140         no delimiter).
76141
76142         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76143         interface does that.
76144         (getline): Always use getdelim, so that we don't have two
76145         copies of this code.
76146         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76147         if available.
76148         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76149         (GETNDELIM2_MAXIMUM): New macro.
76150         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76151         instead of the old practice of delim2==0.  All callers changed.
76152         Return -1 on overflow, instead of returning junk.
76153         Do not set *linesize unless allocation succeeds.
76154         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76155         that we include sys/types.h.
76156         * lib/getnline.h: Likewise.
76157         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76158         (getndelim2): Reorder arguments.
76159         * lib/getnline.c (getnline, getndelim):
76160         Don't discard the NMAX argument.
76161         (getnline): Invoke getndelim, to avoid code duplication.
76162         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76163         of (size_t) -1 by callers of the getnline family.
76164
76165 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76166
76167         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76168         Check for gettimeofday.
76169         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76170         Check for settimeofday, stime.
76171
76172 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76173
76174         * lib/nanosleep.c (suspended): Change its type from int to
76175         sig_atomic_t volatile.
76176         (first_call): Make it private to rpl_nanosleep, and have it
76177         be zero initially as that's a bit faster.
76178         (my_usleep): Round up fractional times instead of truncating them,
76179         as this is the usual meaning for 'sleep'.
76180
76181         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76182         doesn't work.
76183         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76184         (ENOSYS): Define if not defined.
76185         (settime): Fall back on stime if it exists and settimeofday fails.
76186         But don't bother with fallbacks if a method fails with errno == EPERM.
76187
76188 2004-05-11  Jim Meyering  <jim@meyering.net>
76189
76190         Prior to this change, the save_cwd caller required read access to the
76191         current directory on most systems (ones with the fchdir function).
76192
76193         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76194         fails, try write-only, and finally, resort to using xgetcwd.
76195
76196 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76197
76198         * lib/obstack.c, obstack.h: Import changes from libc.
76199
76200 2004-04-28  Bruno Haible  <bruno@clisp.org>
76201
76202         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76203         also implicitly appends .exe to executables.
76204         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76205         accepts Windows pathnames.
76206         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76207         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76208         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76209         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76210         Reported by Derek Robert Price <derek@ximbiot.com>.
76211
76212 2004-04-21  Karl Berry  <karl@gnu.org>
76213
76214         * config/srclist.txt (localcharset.c): break sync.
76215
76216 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76217
76218         * m4/host-os.m4: Add a copyright notice.
76219
76220 2004-04-20  Jim Meyering  <jim@meyering.net>
76221
76222         Change UTILS_ to gl_ in AC_DEFINE'd names.
76223         Change utils_- and jm_-prefixed variables, too.
76224         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76225         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76226         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76227
76228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76229         Don't emit trailing blanks.
76230         Also rename jm_-prefixed variables to have gl_ prefix.
76231
76232         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76233         Also rename jm_-prefixed variables to have gl_ prefix.
76234
76235         * m4/jm-macros.m4: Reflect the renamings.
76236         * m4/prereq.m4: Likewise.
76237
76238 2004-04-20  Jim Meyering  <jim@meyering.net>
76239
76240         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76241         memory.
76242
76243 2004-04-20  Jim Meyering  <jim@meyering.net>
76244             Bruno Haible  <bruno@clisp.org>
76245
76246         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76247         memory when realloc fails.
76248
76249 2004-04-19  Jim Meyering  <jim@meyering.net>
76250
76251         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76252         now that readutmp.c may call `free (0)'.
76253
76254 2004-04-19  Bruno Haible  <bruno@clisp.org>
76255
76256         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76257         * m4/inttypes_h.m4: Likewise.
76258         * m4/stdint_h.m4: Likewise.
76259         * m4/intmax_t.m4: Likewise.
76260         * m4/uintmax_t.m4: Likewise.
76261
76262 2004-04-18  Jim Meyering  <jim@meyering.net>
76263
76264         * m4/prereq.m4: Don't forbid jm_ prefix.
76265
76266         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76267         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76268         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76269         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76270         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76271         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76272         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76273         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76274         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76275         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76276         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76277         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76278         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76279         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76280         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76281         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76282         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76283         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76284         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76285
76286 2004-04-18  Jim Meyering  <jim@meyering.net>
76287
76288         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76289         failure, don't leak memory and do call END_UTMP_ENT.
76290
76291 2004-04-16  Jim Meyering  <jim@meyering.net>
76292
76293         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76294         coreutils' stat program.
76295         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76296
76297 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76298
76299         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76300         C89.
76301         (CHAR_BIT): Remove, since we assume C89.
76302         Include <stdint.h> if available, as per current Autoconf CVS advice.
76303
76304 2004-03-31  Jim Meyering  <jim@meyering.net>
76305
76306         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76307         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76308         * m4/xalloc.m4: Likewise.
76309
76310 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76311
76312         Merge from coreutils.
76313
76314         * m4/inttostr.m4: New file.
76315         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76316         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76317         Require gl_CLOCK_TIME.
76318         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76319
76320 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76321
76322         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76323         not bool, to be more consistent with Unix conventions.
76324         Suggested by Bruno Haible.
76325
76326         Merge from coreutils.
76327
76328         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76329         * lib/umaxtostr.c: New files.
76330
76331         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76332         the usual <time.h> dance.
76333         (get_date): Change signature to support fractional time stamps.
76334         All callers changed.
76335         * lib/getdate.y: Include "getdate.h" first, as we can now
76336         assume C89 and don't need to worry about 'const'.
76337         Similarly, include "unlocked-io.h" near start, not in middle.
76338         Include <limits.h>.
76339         (textint.value): Use long int rather than int.
76340         (textint.digits): Use size_t rather than int.
76341         (BILLION, LOG10_BILLION): New constants.
76342         (parser_control): New member rel_ns.  Members day_ordinal,
76343         time_zone, month, day, hour, minutes, rel_year, rel_month,
76344         rel_day, rel_hour, rel_minutes, rel_seconds
76345         are now long int, not int.  Member seconds is now struct timespec,
76346         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76347         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76348         not int.
76349         (%union.intval): Now long int, not int.
76350         New member timespec.
76351         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76352         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76353         (spec): Now is a timespec or an item list.
76354         (timespec, items): New nonterminals.
76355         (time, rel, relunit, number, get_date):
76356         Add support for fractional seconds.
76357         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76358         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76359         (to_hour): First arg is now long int, not int.
76360         (to_year): Returns long int, not int.
76361         Don't treat year -70 like 70.
76362         (tm_diff): Returns long int, not int.
76363         (lookup_word): Use bool instead of int when appropriate.
76364         (yylex): Use size_t for count, not int.
76365         Detect overflow when parsing large integer constants.
76366         Add support for fractions.
76367         (get_date): Make pointers 'const' if possible.
76368         Use more-portable code to detect integer overflow.
76369         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76370         Don't use ctime; it's not reliable if the year has >4 digits.
76371
76372         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76373         This is for compatibility with BSD.
76374
76375         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76376         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76377         From coreutils' system.h.
76378
76379         * lib/userspec.c: Don't include "posixver.h".
76380         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76381         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76382         compatible extension.  Simplify code by removing a boolean int
76383         that was always nonzero if a string was nonnull.
76384
76385 2004-03-30  Jim Meyering  <jim@meyering.net>
76386
76387         Merge from coreutils.
76388
76389         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76390         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76391         on some systems one must include <grp.h> before it.
76392         Reported by Christian Krackowizer.
76393
76394 2004-03-30  Jim Meyering  <jim@meyering.net>
76395
76396         Merge from coreutils.
76397
76398         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76399
76400         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76401         an empty input stream.
76402
76403         * lib/readtokens.c: Include <stdbool.h>.
76404         (readtoken): Use `size_t' rather than int/long.
76405         All callers adjusted.
76406         Use `bool' rather than `int' where appropriate.
76407         Use memset rather than an explicit loop.
76408         Use x2nrealloc rather than xrealloc.
76409         Allow the use of `\0' as a delimiter.
76410         (readtokens): Likewise.
76411         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76412
76413 2004-03-30  Jim Meyering  <jim@meyering.net>
76414
76415         * m4/realloc.m4: Remove file, since now it does no more than
76416         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76417         the `configure.ac' section of module/realloc.
76418         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76419
76420 2004-03-30  Bruno Haible  <bruno@clisp.org>
76421
76422         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76423         nonnull.
76424
76425 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76426
76427         Merge changes to getloadavg.c from coreutils and Emacs.
76428
76429         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76430         Define to an expression, not to the empty string.
76431         Include cloexec.h and xalloc.h.
76432         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76433         Use set_cloexec_flag rather than rolling our own.
76434         * lib/cloexec.c, lib/cloexec.h: New files.
76435
76436 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76437
76438         * m4/cloexec.m4: New file.
76439
76440 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76441
76442         * lib/getopt.h: Sync with libc CVS.
76443
76444 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76445             Bruno Haible  <bruno@clisp.org>
76446
76447         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76448         mbswidth.
76449
76450 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76451             Bruno Haible  <bruno@clisp.org>
76452
76453         * lib/mbswidth.h: Include <wchar.h> only if
76454         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76455         <wchar.h>.
76456         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76457
76458 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76459
76460         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76461         Sync with libc CVS.
76462         * lib/getopt_int.h: New file, also synced from libc.
76463
76464 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76465
76466         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76467         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76468         Bring back getopt.c, getopt.h, getopt1.c.
76469
76470 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76471
76472         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76473         All uses changed.  Check for sa_sigaction member; this fixes
76474         a bug first reported by Jason Andrade in
76475         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76476
76477 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76478
76479         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76480         '#if' expressions.  Unlike the code it replaces, it does not
76481         depend on (defined _SC_PAGESIZE).  However, it does depend on
76482         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76483         first reported by Jason Andrade in
76484         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76485
76486 2004-02-25  Simon Josefsson  <jas@extundo.com>
76487
76488         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76489
76490 2004-02-25  Simon Josefsson  <jas@extundo.com>
76491
76492         * lib/strdup.h: New file.
76493         * lib/strdup.c: Include it.
76494         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76495         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76496
76497 2004-02-23  Karl Berry  <karl@gnu.org>
76498
76499         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76500         (from fencepost.gnu.org:/gd/gnuorg).
76501
76502 2004-02-23  Karl Berry  <karl@gnu.org>
76503
76504         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76505         * config/srclist.txt: add maintain/standards documents.
76506
76507 2004-02-18  Bruno Haible  <bruno@clisp.org>
76508
76509         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76510         Reported by Derek Robert Price <derek@ximbiot.com>.
76511
76512 2004-02-16  Karl Berry  <karl@gnu.org>
76513
76514         * config/mkinstalldirs, install-sh: update from automake.
76515
76516 2004-02-06  Karl Berry  <karl@gnu.org>
76517
76518         * m4/po.m4: update from gettext 0.14.1.
76519
76520 2004-02-06  Karl Berry  <karl@gnu.org>
76521
76522         * lib/config.charset: update from gettext 0.14.1.
76523
76524 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76525
76526         Add comments and code, prompted by suggestions from Bruno Haible
76527         for sh-quote.
76528         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76529         describing the enum quoting_style values.
76530         * lib/quotearg.c (quotearg_alloc): New function.
76531         (quotearg_buffer_restyled): Treat lone { and } as special.
76532         Treat = as special.  Work around bug with older shells
76533         that "see" a '\' that is really the 2nd byte of a multibyte char.
76534         Quote empty string with shell_quoting_style.
76535
76536 2004-02-03  Bruno Haible  <bruno@clisp.org>
76537
76538         * m4/pipe.m4: New file, from GNU gettext.
76539
76540 2004-02-03  Bruno Haible  <bruno@clisp.org>
76541
76542         * lib/pipe.h: New file, from GNU gettext.
76543         * lib/pipe.c: New file, from GNU gettext.
76544
76545 2004-01-27  Bruno Haible  <bruno@clisp.org>
76546
76547         * m4/execute.m4: New file, from GNU gettext.
76548
76549 2004-01-27  Bruno Haible  <bruno@clisp.org>
76550
76551         * lib/execute.h: New file, from GNU gettext.
76552         * lib/execute.c: New file, from GNU gettext.
76553         * lib/w32spawn.h: New file, from GNU gettext.
76554
76555 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76556
76557         Merge from diffutils.
76558
76559         * lib/file-type.c (file_type): Add typed memory objects.
76560         * lib/file-type.h (S_TYPEISTMO): New macro.
76561
76562         * lib/c-stack.h (c_stack_action): Remove argv argument.
76563         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76564         (die): Don't calculate message unless segv_action returns.
76565         (get_stack_location, min_address_from_argv, max_address_from_argv,
76566         volatile stack_base, volatile_stack_size): Remove.
76567         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76568         that every segmentation violation is a stack overflow.  (Ouch!)
76569         See Debian bug 136249 (still outstanding) for more info about why
76570         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76571
76572 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76573
76574         Exit-status fix from coreutils.
76575
76576         Use exit_failure consistently in place of EXIT_FAILURE,
76577         so that program exit statuses are consistent on failure.
76578
76579         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76580         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76581         * lib/argmatch.h: Comment fix to match the above.
76582         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76583         Now a macro referring to exit_failure, instead of a separate
76584         variable.  Include "exitfail.h" to get it.
76585         * lib/xstrtol.h: Include "exitfail.h".
76586         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76587
76588         * lib/long-options.c (parse_long_options): Use prototype
76589         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76590         for clarity.
76591
76592 2004-01-21  Jim Meyering  <jim@meyering.net>
76593
76594         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76595         so as not to conflict with a different-sized __mktime_internal
76596         function in GNU libc.
76597         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76598         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76599
76600 2004-01-20  Karl Berry  <karl@gnu.org>
76601
76602         * config/config.guess: update from config.
76603
76604         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76605
76606 2004-01-20  Bruno Haible  <bruno@clisp.org>
76607
76608         Safer stack allocation.
76609         * lib/setenv.c: Include allocsa.h.
76610         (alloca): Remove fallback definition.
76611         (freea): Remove macro.
76612         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76613         instead of freea.
76614
76615 2004-01-20  Bruno Haible  <bruno@clisp.org>
76616
76617         * m4/eealloc.m4: New file, from GNU gettext.
76618
76619 2004-01-20  Bruno Haible  <bruno@clisp.org>
76620
76621         * m4/allocsa.m4: New file, from GNU gettext.
76622
76623 2004-01-20  Bruno Haible  <bruno@clisp.org>
76624
76625         * lib/xallocsa.h: New file, from GNU gettext.
76626         * lib/xallocsa.c: New file, from GNU gettext.
76627
76628 2004-01-20  Bruno Haible  <bruno@clisp.org>
76629
76630         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76631
76632 2004-01-20  Bruno Haible  <bruno@clisp.org>
76633
76634         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76635         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76636         specially.
76637
76638 2004-01-20  Bruno Haible  <bruno@clisp.org>
76639
76640         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76641         patch.
76642
76643 2004-01-20  Bruno Haible  <bruno@clisp.org>
76644
76645         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76646
76647 2004-01-20  Bruno Haible  <bruno@clisp.org>
76648
76649         * lib/eealloc.h: New file.
76650
76651 2004-01-20  Bruno Haible  <bruno@clisp.org>
76652
76653         * lib/binary-io.h: Avoid warnings on Cygwin.
76654
76655 2004-01-20  Bruno Haible  <bruno@clisp.org>
76656
76657         * lib/allocsa.h: New file, from GNU gettext.
76658         * lib/allocsa.c: New file, from GNU gettext.
76659
76660 2004-01-18  Karl Berry  <karl@gnu.org>
76661
76662         * doc/gpl.texi, doc/lgpl.texi: new files.
76663
76664 2004-01-18  Karl Berry  <karl@gnu.org>
76665
76666         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76667         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76668
76669 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76670
76671         Merge from coreutils.
76672
76673         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76674         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76675         (gl_DEFAULT_POSIX2_VERSION): Move
76676         the documentation from 'configure' into 'config.hin',
76677         so that 'configure --help' isn't burdened by it and
76678         we don't have to worry about its formatting there.
76679         Reword the documentation so that it's more succinct
76680         and can be run together into a single paragraph.
76681         * m4/same.m4 (gl_SAME): Check for pathconf.
76682
76683 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76684
76685         Merge from coreutils.
76686
76687         * lib/posixver.c: Include posixver.h.
76688
76689         * lib/same.c: Include <stdbool.h>, <limits.h>.
76690         (_POSIX_NAME_MAX): Define if not defined.
76691         (MIN): New macro.
76692         (same_name): If file names are silently truncated, report
76693         that the file names are the same if they are the same after
76694         the silent truncation.
76695
76696         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76697         conversion function.
76698         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76699         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76700         longer needed.
76701
76702 2004-01-15  Jim Meyering  <jim@meyering.net>
76703
76704         Merge from coreutils.
76705
76706         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76707         if no library is required.
76708         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76709         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76710         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76711         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76712         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76713         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76714         value, $ac_cv_search_crypt, if it's "none required".
76715         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76716         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76717         not gl_FUNC_GETLOADAVG.
76718         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76719         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76720
76721 2004-01-15  Jim Meyering  <jim@meyering.net>
76722
76723         Merge from coreutils.
76724
76725         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76726         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76727         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76728
76729         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76730         optional configure-time default.
76731
76732         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76733
76734         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76735
76736 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76737
76738         Merge from coreutils.
76739
76740         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76741         value, $ac_cv_search_nanosleep, if it's "none required".
76742
76743 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76744
76745         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76746         with like-named macro in fnmatch.c.
76747         (EXT): Use an internal constant instead.
76748
76749         Merge fnmatch patches from glibc.
76750         * lib/fnmatch.c (mbsinit): Remove define.
76751         Add libc_hidden_ver (__fnmatch, fnmatch).
76752         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76753         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76754
76755 2004-01-14  Karl Berry  <karl@gnu.org>
76756
76757         * config/install-sh: update from automake.
76758
76759 2004-01-13  Karl Berry  <karl@gnu.org>
76760
76761         * config/install-sh: update from automake.
76762
76763 2004-01-09  Karl Berry  <karl@gnu.org>
76764
76765         * config/install-sh: update from automake.
76766
76767 2004-01-05  Karl Berry  <karl@gnu.org>
76768
76769         * config/config.{sub,guess}: update from config.
76770
76771 2003-12-31  Karl Berry  <karl@gnu.org>
76772
76773         * config/depcomp: update from automake.
76774
76775 2003-12-14  Karl Berry  <karl@gnu.org>
76776
76777         * lib/config.charset: update from gettext-runtime.
76778
76779 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76780
76781         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76782         Bug reported by Alfred M. Szmidt.
76783
76784 2003-12-03  Bruno Haible  <bruno@clisp.org>
76785
76786         * m4/gettext.m4: Upgrade from gettext-0.13.
76787         * m4/po.m4: Upgrade from gettext-0.13.
76788         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76789         * m4/intmax.m4: New file, from gettext-0.13.
76790         * m4/printf-posix.m4: New file, from gettext-0.13.
76791
76792 2003-11-29  Karl Berry  <karl@gnu.org>
76793
76794         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76795
76796 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76797             Bruno Haible  <bruno@clisp.org>
76798
76799         * lib/printf-parse.h: Don't include sys/types.h.
76800         (ARG_NONE): New macro.
76801         (char_directive): Change type of *arg_index fields to size_t.
76802         * lib/printf-parse.c: Don't include sys/types.h.
76803         (SSIZE_MAX): Remove macro.
76804         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76805         Remove unnecessary overflow check.
76806         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76807         fields.
76808
76809 2003-11-25  Bruno Haible  <bruno@clisp.org>
76810
76811         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76812
76813 2003-11-25  Bruno Haible  <bruno@clisp.org>
76814
76815         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76816         gt_TYPE_SSIZE_T.
76817
76818 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76819
76820         * modules/alloca: Remove dependency on xalloc.
76821
76822 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76823
76824         * lib/alloca.c: Remove dependency on xalloc module.
76825         (xalloc_die): Remove.
76826         (memory_full) [!defined emacs]: New macro.
76827         [!defined emacs]: Don't include xalloc.h.
76828         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76829         address arithmetic overflows.  Change datatypes a bit to avoid
76830         unnecessary casts.
76831
76832 2003-11-22  Jim Meyering  <jim@meyering.net>
76833
76834         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76835         s/size/size_t/.
76836
76837 2003-11-21  Karl Berry  <karl@gnu.org>
76838
76839         * config/config.{sub,guess}: update from config.
76840
76841 2003-11-18  Karl Berry  <karl@gnu.org>
76842
76843         * config/config.{sub,guess}: update from config.
76844
76845         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76846
76847 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76848
76849         * README: Mention that S+T cannot overflow if S is the size of
76850         an existing object and T is sufficiently small.
76851
76852 2003-11-17  Jim Meyering  <jim@meyering.net>
76853
76854         On systems without utime and without a utimes function capable of
76855         dealing with a NULL struct utimbuf* argument, this utime replacement
76856         could -- in unusual circumstances -- leak a file descriptor.
76857         * lib/utime.c: Include <unistd.h> and <errno.h>.
76858         (utime_null): Be sure to close `fd' and to preserve errno.
76859         Reported by Geoff Collyer via Arnold Robbins.
76860
76861 2003-11-17  Bruno Haible  <bruno@clisp.org>
76862
76863         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76864         (Depends-on): Add xsize.
76865
76866 2003-11-17  Bruno Haible  <bruno@clisp.org>
76867
76868         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76869
76870 2003-11-17  Bruno Haible  <bruno@clisp.org>
76871
76872         * lib/vasnprintf.c (alloca): Remove fallback definition.
76873         (freea): Remove definition.
76874         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76875         Reported by Paul Eggert.
76876
76877 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76878             Bruno Haible  <bruno@clisp.org>
76879
76880         Protect against address arithmetic overflow.
76881         * lib/printf-args.h: Include stddef.h.
76882         (arguments): Change type of field 'count' to size_t.
76883         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76884         'unsigned int' where appropriate.
76885         * lib/printf-parse.h: Include sys/types.h.
76886         (char_directive): Change type of *arg_index fields to ssize_t.
76887         (char_directives): Change type of fields 'count', max_*_length to
76888         size_t.
76889         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76890         (SSIZE_MAX): Define fallback value.
76891         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76892         instead of 'int' where appropriate. Check a_allocated, d_allocated
76893         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76894         * lib/vasnprintf.c: Include xsize.h.
76895         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76896         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76897         overflow. Avoid wraparound when converting a width or precision from
76898         decimal to binary.
76899
76900 2003-11-16  Bruno Haible  <bruno@clisp.org>
76901
76902         Update from GNU gettext.
76903         * lib/printf-parse.c: Generalize to it can be compiled for wide
76904         strings.
76905         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76906         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76907         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76908         SNPRINTF): New macros.
76909         Don't include <alloca.h> if the file is used inside libintl.
76910         (local_wcslen): New function, for Solaris 2.5.1.
76911         (VASNPRINTF): Use it instead of wcslen.
76912
76913 2003-11-16  Bruno Haible  <bruno@clisp.org>
76914
76915         * lib/xsize.h (xmax): New function.
76916         (xsum, xsum3, xsum4): Declare as "pure" functions.
76917
76918 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76919
76920         * modules/xalloc (Files): Undo latest change, since xalloc.h
76921         no longer needs SIZE_MAX or PTRDIFF_MAX.
76922
76923 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76924
76925         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76926         gl_PTRDIFF_MAX.
76927
76928 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76929
76930         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76931         "return", to pacify some unknown compiler.  Problem reported
76932         by Joerg Schilling.
76933
76934 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76935
76936         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76937         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76938         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76939         heuristic is just as accurate as far as we know, and it removes a
76940         dependency on size_max.m4 and ptrdiff_max.m4.
76941
76942 2003-11-11  Bruno Haible  <bruno@clisp.org>
76943
76944         * modules/xsize (Files): Add m4/size_max.m4.
76945         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76946
76947 2003-11-11  Bruno Haible  <bruno@clisp.org>
76948
76949         * m4/size_max.m4: New file.
76950         * m4/ptrdiff_max.m4: New file.
76951         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
76952         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
76953         (gl_XALLOC): Invoke it.
76954
76955 2003-11-11  Bruno Haible  <bruno@clisp.org>
76956
76957         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
76958         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
76959         defined.
76960
76961 2003-11-10  Paul Eggert  <eggert@twinsun.com>
76962
76963         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
76964         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
76965         rejected some allocations of exactly SIZE_MAX - 2 bytes.
76966         From Bruno Haible.
76967         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
76968         not (size_t) -1, since it's defined here.
76969
76970 2003-11-09  Karl Berry  <karl@gnu.org>
76971
76972         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
76973
76974 2003-11-06  Paul Eggert  <eggert@twinsun.com>
76975
76976         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
76977         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
76978         Reject sizes of exactly SIZE_MAX bytes.
76979         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
76980         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
76981
76982 2003-11-05  Bruno Haible  <bruno@clisp.org>
76983
76984         * lib/xsize.h: Include limits.h, to avoid a possible collision with
76985         SIZE_MAX defined in <limits.h> on Solaris.
76986
76987 2003-11-04  Jim Meyering  <jim@meyering.net>
76988
76989         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
76990         variable names, rather than @VAR@.
76991         * modules/poll: Likewise.
76992
76993 2003-11-04  Bruno Haible  <bruno@clisp.org>
76994
76995         * modules/xsize: New file.
76996         * modules/linebreak: Depend on xsize.
76997         * MODULES.html.sh (func_all_modules): Add xsize.
76998
76999 2003-11-04  Bruno Haible  <bruno@clisp.org>
77000
77001         * m4/xsize.m4: New file.
77002
77003 2003-11-04  Bruno Haible  <bruno@clisp.org>
77004
77005         * lib/xsize.h: New file.
77006         * lib/linebreak.c: Include xsize.h.
77007         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77008         argument for overflow.
77009         Suggested by Paul Eggert.
77010
77011 2003-11-03  Karl Berry  <karl@gnu.org>
77012
77013         * config/config.{guess,sub}: update from config.
77014
77015 2003-11-03  Jim Meyering  <jim@meyering.net>
77016
77017         * modules/userspec (lib_SOURCES): Add userspec.h.
77018         (Include): Add "userspec.h".
77019         Improve description.
77020
77021 2003-11-03  Jim Meyering  <jim@meyering.net>
77022
77023         * lib/userspec.c: Include "userspec.h".
77024         * lib/userspec.h: New file.
77025
77026 2003-11-03  Bruno Haible  <bruno@clisp.org>
77027
77028         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77029
77030 2003-11-03  Bruno Haible  <bruno@clisp.org>
77031
77032         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77033         available, to avoid (extremely rare) race condition.
77034         Suggested by Paul Eggert.
77035
77036 2003-11-02  Karl Berry  <karl@gnu.org>
77037
77038         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77039
77040 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77041
77042         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77043         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77044         (read_filesystem_list): Set and use me_type_malloced.
77045         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77046         whatever the type happens to be), for brevity and consistency.
77047         Check for size calculation overflow on Alphas running OSF/1.
77048
77049 2003-10-31  Jim Meyering  <jim@meyering.net>
77050
77051         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77052
77053         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77054
77055 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77056             Bruno Haible  <bruno@clisp.org>
77057
77058         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77059         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77060
77061 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77064         netbsd*-gnu*.  Suggested by Robert Millan.
77065
77066 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77067
77068         * modules/group-member: Depend on stdbool.
77069
77070 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77071
77072         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77073
77074 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77075
77076         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77077         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77078         after the 'gnu' in these cases.  This fixes some bugs in the
77079         previous change, and is based on suggestions by Robert Millan.
77080
77081 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77082
77083         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77084         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77085         no longer needed.
77086         * lib/quotearg.c (quotearg_n_options): Use it.
77087         * lib/group-member.c: Include <stdbool.h>.
77088         (free_group_info): Arg is now const *; don't free arg.
77089         (get_group_info): Now returns bool and accepts struct group_info *,
77090         rather than returning a malloc'ed struct group_info *.
77091         All uses changed.  Check for overflow in internal size calculation.
77092
77093         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77094         rather than xmalloc/xrealloc.
77095         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77096         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77097         conformance bug: the old code used a pointer after freeing the
77098         storage that it addressed.
77099         * lib/hash.c (hash_initialize): Simplify the code by using
77100         xalloc_oversized rather than doing it by hand.
77101         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77102         the buffer preserved.  Use free and xmalloc instead.
77103         * lib/quotearg.c (quotearg_n_options): Likewise.
77104         Use a simpler test for size overflow.  Don't use xalloc_oversized
77105         because unsigned int might be wider than size_t (!); this suggests
77106         that we should switch from unsigned int to size_t for slot numbers.
77107
77108 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77109
77110         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77111         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77112         NetBSD kernels.  Requested by Richard Stallman.
77113
77114 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77115
77116         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77117         to allocate the returned structure.  Do not allocate a subarray,
77118         as x2nrealloc will do that.
77119         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77120         instead of xnrealloc.
77121         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77122
77123 2003-10-27  Bruno Haible  <bruno@clisp.org>
77124
77125         * lib/stdbool_.h: Better support for BeOS.
77126
77127 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77128
77129         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77130         now uses inline.
77131
77132 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77133
77134         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77135         callers that want to do their own size-overflow checking.  Include
77136         <stdbool.h>, since xalloc_oversized returns bool.
77137         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77138         to use xalloc_oversized.
77139
77140         Add two functions x2realloc, x2nrealloc, for programs that grow
77141         arrays dynamically by doubling their sizes.
77142         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77143         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77144         New functions.
77145
77146         Port to C99 semantics for 'inline' of external functions.
77147         Bug reported by Bruno Haible.
77148         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77149         with the old contents of xnmalloc.
77150         (xnmalloc, xmalloc): Use it.
77151         (xnrealloc_inline): New static inline function,
77152         with the old contents of xnrealloc.
77153         (xnrealloc, xrealloc): Use it.
77154
77155         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77156         that.
77157
77158 2003-10-26  Karl Berry  <karl@gnu.org>
77159
77160         * config/srclist.txt (COPYING.DOC): no longer available from
77161         /gd/gnuorg; don't know where the ultimate source is.
77162
77163 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77164
77165         Fix several address-calculation bugs in the hash modules,
77166         plus some minor code cleanup.
77167
77168         * lib/hash.h: Include <stdbool.h>, for bool.
77169         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77170         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77171         hash_get_n_entries, hash_get_max_bucket_length,
77172         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77173         hash_rehash): Use size_t rather than unsigned.
77174         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77175         hash_get_n_buckets_used, hash_get_n_entries,
77176         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77177         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77178         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77179         Likewise.
77180         (SIZE_MAX): Define if not defined.
77181         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77182         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77183         hash_print):
77184         Use const * when possible.
77185         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77186         (check_tuning): Fix bug: if tuning parameters were very close to
77187         0 or 1, rounding errors could have caused subscript violations.
77188         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77189         (hash_initialize): Add 'fail:' label
77190         to free table and return NULL, and use it to simplify code.
77191         Use calloc rather than clearing the storage ourself.
77192         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77193         buffer size calculations.
77194         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77195         Include <stddef.h>, for size_t.
77196         * lib/hash-pjw.c (hash_pjw): Likewise.
77197         Switch to method described by Bruno Haible.
77198         Include <limits.h>, for CHAR_BIT.
77199         (SIZE_BITS): New macro.
77200
77201 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77202
77203         * m4/getline.m4 (AM_FUNC_GETLINE):
77204         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77205         hosts.  Problem reported by Derek Robert Price in
77206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77207         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77208         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77209
77210 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77211
77212         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77213         ceiling the allocation at NMAX bytes rather than silently
77214         discarding input bytes before NMAX is reached.  This makes
77215         a difference only if NMAX exceeds SIZE_MAX / 2.
77216
77217         * lib/obstack.c: Merge from glibc.
77218         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77219         Add libc_hidden_def (_obstack_newchunk).
77220         (_obstack_free) [! defined _LIBC]: Remove.
77221         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77222         a clone of the function body.
77223         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77224         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77225
77226         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77227         glibc.
77228         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77229         arg to memcpy.
77230
77231         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77232         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77233         Don't use lvalue casts, as GCC plans to remove support for them
77234         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77235         was also present in the non-GCC version, indicating that this
77236         code had always been buggy and had never been widely used.
77237         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77238         Use the fast variant of each macro, rather than copying the
77239         definiens of the fast variant; that way, we'll be more likely to
77240         catch future bugs in the fast variants.
77241
77242 2003-10-20  Bruno Haible  <bruno@clisp.org>
77243
77244         * modules/wait-process: New file.
77245         * MODULES.html.sh (func_all_modules): Add wait-process.
77246
77247 2003-10-20  Bruno Haible  <bruno@clisp.org>
77248
77249         * m4/wait-process.m4: New file.
77250
77251 2003-10-20  Bruno Haible  <bruno@clisp.org>
77252
77253         * lib/wait-process.h: New file, from GNU gettext.
77254         * lib/wait-process.c: New file, from GNU gettext.
77255
77256 2003-10-19  Jim Meyering  <jim@meyering.net>
77257
77258         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77259         HPUX 10.20.
77260
77261 2003-10-18  Karl Berry  <karl@gnu.org>
77262
77263         * config/config.guess: update from config.
77264
77265 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77266
77267         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77268         (getgroups): First arg is int, not size_t.
77269         Don't let 'free' mangle errno.
77270
77271 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77272
77273         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77274
77275 2003-10-16  Karl Berry  <karl@gnu.org>
77276
77277         * config/config.{guess,sub}: update from config.
77278
77279 2003-10-16  Jim Meyering  <jim@meyering.net>
77280
77281         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77282         memcpy.
77283
77284 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77285
77286         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77287         (SIZE_MAX): Remove.
77288         (new_exclude, add_exclude_file): Initial size no longer needs to
77289         be a power of 2.
77290         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77291         our own address arithmetic overflow checking.
77292
77293         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77294         (fnmatch): Do not alloca more than 2000 wide characters;
77295         instead, use malloc for large buffers.
77296         Check for address arithmetic overflow, and return -1
77297         with errno set to ENOMEM in that case.
77298         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77299         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77300         instead, return -1.  Check for address arithmetic overflow.
77301
77302 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77303
77304         Handle invalid suffixes and overflow independently, so that
77305         callers can treat them independently as needed.  Fix some bugs in
77306         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77307         suffix for a human-readable blocksize.  The major caller-visible
77308         change is the addition of a new
77309         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77310         that both overflow and suffix chars were found.
77311
77312         * lib/human.c (humblock): Don't check separately for invalid suffix
77313         char; that is xstrtoumax's job (now that its bug is fixed).
77314         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77315         INTMAX_MAX]: New macros.
77316         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77317         TYPE_MAXIMUM): New macros.
77318         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77319         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77320         if overflow occurs, as it's what __strtol does and it's more useful
77321         in practice.
77322         (__xstrtol): If __strtol reports some error other than ERANGE,
77323         reflect it to the caller as LONGINT_INVALID.  If it reports
77324         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77325         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77326         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77327         value.
77328         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77329         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77330         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77331         [defined UINTMAX_MAX]: New macros.
77332
77333 2003-10-14  Bruno Haible  <bruno@clisp.org>
77334
77335         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77336
77337 2003-10-14  Bruno Haible  <bruno@clisp.org>
77338
77339         * m4/sig_atomic_t: New file, from GNU gettext.
77340         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77341
77342 2003-10-14  Bruno Haible  <bruno@clisp.org>
77343
77344         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77345         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77346         Also use volatile where needed.
77347
77348 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77349
77350         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77351         Change maintainer from Bruno Haible to 'all'.
77352
77353 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77354
77355         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77356
77357 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77358
77359         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77360         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77361         and define in terms of the other primitives.
77362         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77363         (SIZE_MAX): Define if not already defined.
77364         (array_size_overflow): New function.
77365         (xalloc_die): Abort instead of exiting if 'error' returns.
77366         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77367         (xmalloc, xrealloc): Use them.
77368         (xcalloc): Check for address arithmetic overflow.
77369         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77370         a bit faster than strcpy.
77371
77372 2003-10-10  Simon Josefsson  <jas@extundo.com>
77373
77374         * modules/argp (Depends-on): Add restrict and strcase.
77375
77376 2003-10-10  Simon Josefsson  <jas@extundo.com>
77377
77378         * m4/argp.m4: Add AC_C_INLINE.
77379
77380 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77381
77382         Merge getpass from libc, plus a few fixes.
77383
77384         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77385         Include <stdbool.h>.
77386         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77387         __fsetlocking to empty.
77388         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77389         do include <bits/libc-lock.h>.
77390         Do not include <fcntl.h>; not needed.
77391         [_LIBC]: Include <wchar.h>.
77392         (NOTCANCEL_MODE): New macro.
77393         (flockfile, funlockfile) [_LIBC]: New macros.
77394         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77395         [!_LIBC]: New macros.
77396         (call_fclose): New function.
77397         (getpass): Use it.  Save tty stream separately; this simplifies the
77398         code and makes it more reliable if stdin happens to equal stdout.
77399         Invoke __fsetlocking on tty.
77400         Handle thread cancellation if needed.
77401         Namespace cleanup (use __tcgetattr, __getline).
77402         Use bool for Booleans.
77403         [USE_IN_LIBIO]: Handle wide streams.
77404         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77405         stream might go where.
77406
77407         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77408         doesn't have to include <stdio.h> before us.
77409         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77410         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77411         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77412         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77413         if not declared, so that we can use getpass.c code from libc without
77414         rewriting it.
77415         (flockfile, ftrylockfile, funlockfile): New macros.
77416
77417 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77418
77419         * modules/getpass: Depend on stdbool.
77420
77421 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77422
77423         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77424
77425 2003-10-07  Karl Berry  <karl@gnu.org>
77426
77427         * config/config.{guess,sub}: update from config.
77428
77429 2003-10-06  Jim Meyering  <jim@meyering.net>
77430             Bruno Haible  <bruno@clisp.org>
77431
77432         This lets translators provide better translations for the
77433         "Written by ..." part of --version output.
77434         * lib/version-etc.h: Include stdarg.h.
77435         (version_etc_copyright): Declare as readonly.
77436         (version_etc): Make this function variadic with a NULL-terminated list
77437         of author name strings.
77438         (version_etc_va): New declaration.
77439         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77440         (version_etc_copyright): Declare as readonly.
77441         (version_etc_va): New function. Provide a different translatable string
77442         for each possible number of authors < 10. Abbreviate when there are 10
77443         authors or more.
77444         (version_etc): Make this function variadic. Call version_etc_va.
77445         Suggestion from Gary V. Vaughan.
77446
77447         * lib/long-options.h (parse_long_options): Change prototype: the
77448         authors string is moved to the end and becomes variadic.
77449         * lib/long-options.c: Include stdarg.h.
77450         (parse_long_options): Make this function variadic, too.
77451         Call version_etc_va, not version_etc.
77452
77453 2003-10-06  Bruno Haible  <bruno@clisp.org>
77454
77455         * modules/version-etc-2: Remove file.
77456         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77457
77458 2003-10-06  Bruno Haible  <bruno@clisp.org>
77459
77460         * modules/fatal-signal: New file.
77461         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77462
77463 2003-10-06  Bruno Haible  <bruno@clisp.org>
77464
77465         * m4/fatal-signal.m4: New file.
77466         * m4/signalblocking.m4: New file, from GNU gettext.
77467
77468 2003-10-06  Bruno Haible  <bruno@clisp.org>
77469
77470         * lib/version-etc-2.h: Remove file.
77471         * lib/version-etc-2.c: Remove file.
77472
77473 2003-10-06  Bruno Haible  <bruno@clisp.org>
77474
77475         * lib/fatal-signal.h: New file, from GNU gettext.
77476         * lib/fatal-signal.c: New file, from GNU gettext.
77477
77478 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77479
77480         * README: Rework advice for preventing empty .o files.
77481         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77482         not <sys/types.h>.
77483
77484 2003-10-04  Karl Berry  <karl@gnu.org>
77485
77486         * lib/argp*: update from libc.
77487
77488 2003-10-04  Karl Berry  <karl@gnu.org>
77489
77490         * config/config.{guess,sub}: update from config.
77491
77492 2003-10-02  Bruno Haible  <bruno@clisp.org>
77493
77494         * modules/lchown (Include): Add lchown.h.
77495         * modules/time_r (Include): Use "..." syntax.
77496         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77497
77498 2003-10-01  Simon Josefsson  <jas@extundo.com>
77499
77500         * MODULES.html.sh (func_all_modules): Move gethostname from section
77501         'based on' to section 'lacking' POSIX:2001.
77502
77503 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77504
77505         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77506         to output mode on the same stream.
77507
77508 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77509
77510         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77511         Fix arg typo in previous patch.
77512
77513 2003-09-28  Jim Meyering  <jim@meyering.net>
77514
77515         * lib/error.c: Correct cpp indentation.
77516
77517 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77518
77519         * modules/free: New file.
77520
77521 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77522
77523         * m4/free.m4: New file.
77524
77525 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77526
77527         * lib/minmax.h (MIN, MAX)
77528         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77529         Omit the special code that used __typeof__, since we worry that
77530         it could be more trouble than it's worth.  See:
77531         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77532         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77533
77534         * lib/free.c: New file.
77535
77536 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77537
77538         Trivial fixes to Makefile.am parts of module listings.
77539         * modules/strstr: Append strstr.h to lib_SOURCES.
77540         * modules/strcase: Likewise, for strcase.h.
77541
77542 2003-09-27  Karl Berry  <karl@gnu.org>
77543
77544         * config/mkinstalldirs: update from automake.
77545
77546 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77547
77548         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77549         (error_tail): Do not loop, reallocating temporary buffer, since
77550         the output cannot contain more wide characters than the input
77551         contains bytes, the size must be big enough already.  This avoids
77552         one potential size overflow calculation.  Check for size overflow
77553         when calculating temporary buffer size.  Free temporary buffer
77554         when done, if it was allocated with malloc; this plugs a memory
77555         leak.  Remove casts from void * to pointers, that are no longer
77556         needed now that we're assuming C89 or better.
77557
77558         Merge error changes from glibc.
77559
77560         * lib/error.c, error.h: Update copyright notice header to match glibc.
77561         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77562         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77563         Disable cancellation while printing error.
77564         * lib/error.h: Prepend __ to parameter names.
77565
77566 2003-09-26  Jim Meyering  <jim@meyering.net>
77567
77568         * lib/error.c (error_tail): Move some declarations
77569         into inner scope where the local variables are used.
77570
77571 2003-09-26  Bruno Haible  <bruno@clisp.org>
77572
77573         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77574         stpncpy().
77575         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77576
77577 2003-09-26  Bruno Haible  <bruno@clisp.org>
77578
77579         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77580         (stpncpy): Define as alias for gnu_stpncpy.
77581         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77582
77583 2003-09-25  Simon Josefsson  <jas@extundo.com>
77584
77585         * lib/xgetdomainname.h: New file.
77586         * lib/xgetdomainname.c: New file.
77587
77588 2003-09-25  Simon Josefsson  <jas@extundo.com>
77589             Bruno Haible  <bruno@clisp.org>
77590
77591         * modules/getdomainname: New file.
77592         * modules/xgetdomainname: New file.
77593         * MODULES.html.sh (func_all_modules): Add getdomainname,
77594         xgetdomainname.
77595
77596 2003-09-25  Simon Josefsson  <jas@extundo.com>
77597             Bruno Haible  <bruno@clisp.org>
77598
77599         * m4/getdomainname.m4: New file.
77600
77601 2003-09-25  Simon Josefsson  <jas@extundo.com>
77602             Bruno Haible  <bruno@clisp.org>
77603
77604         * lib/getdomainname.h: New file.
77605         * lib/getdomainname.c: New file.
77606
77607 2003-09-25  Karl Berry  <karl@gnu.org>
77608
77609         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77610
77611 2003-09-25  Karl Berry  <karl@gnu.org>
77612
77613         * config/install-sh: update from automake.
77614
77615 2003-09-25  Bruno Haible  <bruno@clisp.org>
77616
77617         * modules/version-etc-2: New file, from modules/version-etc with
77618         modifications.
77619         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77620
77621 2003-09-25  Bruno Haible  <bruno@clisp.org>
77622
77623         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77624         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77625
77626 2003-09-24  Simon Josefsson  <jas@extundo.com>
77627
77628         * modules/xgethostname: Add xgethostname.h.
77629
77630 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77631
77632         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77633         the buffer associated with the argument.  Bug reported by
77634         Simon Josefsson.
77635
77636 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77637
77638         * README: Document assumptions that 'int' is at least 32 bits
77639         wide, that integer arithmetic is 2's complement without overflow,
77640         that there are no holes in integer values, that adding sizes of
77641         two nonoverlapping objects can't overflow, and that all-bits-zero
77642         yields scalar zero.  Fix spelling and capitalization typos.
77643
77644 2003-09-19  Karl Berry  <karl@gnu.org>
77645
77646         * lib/argp.h: update from libc.
77647
77648 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77649
77650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77651         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77652         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77653
77654 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77655
77656         * gnulib-tool: Use "test -h", not "test -L", for portability
77657         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77658         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77659         (sed_extract_prog): Issue s commands one-by-one, rather than
77660         using \| in one s command.
77661
77662 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77663
77664         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77665         input error, instead of returning NULL the next time we are called
77666         (and therefore losing track of errno).
77667
77668 2003-09-16  Bruno Haible  <bruno@clisp.org>
77669
77670         * gnulib-tool (func_create_testdir): Warn about duplicated
77671         dependencies.
77672
77673 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77674
77675         * modules/argmatch, modules/fatal, modules/obstack,
77676         modules/xalloc, modules/xgethostname: Sort dependencies by
77677         importance, not alphabetically.
77678
77679 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77680
77681         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77682         fails, so that the caller gets the proper errno.
77683
77684         * lib/readutmp.c (read_utmp): Likewise.
77685         Check for fstat error.  Close stream and free storage
77686         when failing.
77687
77688 2003-09-14  Karl Berry  <karl@gnu.org>
77689
77690         * config/srclist.txt (strdup.c): disable for c89 changes.
77691
77692 2003-09-14  Jim Meyering  <jim@meyering.net>
77693
77694         * lib/getloadavg.c: Correct cpp indentation.
77695         * lib/strdup.c: Likewise.
77696         * lib/vasnprintf.c: Likewise.
77697
77698 2003-09-14  Bruno Haible  <bruno@clisp.org>
77699
77700         * modules/fwriteerror: New file.
77701         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77702
77703 2003-09-14  Bruno Haible  <bruno@clisp.org>
77704
77705         * lib/fwriteerror.h: New file.
77706         * lib/fwriteerror.c: New file.
77707
77708 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77709
77710         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77711         modules/xgethostname, modules/xalloc: Depend on exit.
77712
77713 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77714
77715         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77716
77717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77718         and AC_MINIX, too, so that their extensions are available.
77719
77720         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77721         This macro has been superseded by gl_BACKUPFILE.
77722
77723         More patches to assume C89 or better.
77724
77725         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77726
77727         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77728         unconditionally.
77729         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77730         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77731         Include <string.h>, <stdlib.h> unconditionally.
77732         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77733         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77734         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77735         headers or for string.h.
77736         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77737         or strtoul.
77738
77739         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77740         headers.
77741         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77742         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77743         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77744         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77745         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77747         memcpy, memset.
77748         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77749         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77750         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77751         strtol.
77752         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77753         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77754         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77755         strtoul.
77756
77757 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77758
77759         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77760         * lib/obstack.c [!defined _LIBC]: Likewise.
77761         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77762         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77763         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77764
77765         More changes to assume C89 or better.
77766
77767         * lib/error.c (error_tail): Assume vprintf.
77768
77769         * lib/argmatch.c (getenv): Remove decl.
77770         * lib/progreloc.c (get_full_program_name): Define via prototype.
77771         * lib/setenv.c (clearenv): Likewise.
77772         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77773         needed.
77774         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77775         (malloc, memcpy): Remove decls.
77776         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77777         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77778         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77779         (memcpy): Remove macro.
77780         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77781         (__P): Remove.  All uses removed.
77782         (PTR): Remove.  All uses changed to void *.
77783         (CHAR_BIT, NULL): Remove.
77784         (spaces, zeros, memset_space, memset_zero)
77785         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77786         Remove.
77787         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77788         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77789         Define with prototype.
77790         Remove now-unnecessary prototype decl.
77791         (extra_args_spec): Assume ANSI C.  All uses changed.
77792         (extra_args_spec_iso): Remove.
77793         (my_strftime, emacs_strftimeu): Define via prototype.
77794         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77795         unconditionally.
77796         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77797         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77798         (strtoul, strtol): Remove decls.
77799         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77800         LONG_MAX): Remove.
77801         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77802         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77803         (LOCALE_PARAM_PROTO): New macro.
77804         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77805         (INTERNAL (strtol), strtol): Define with a prototype.
77806         (PARAMS): Remove.  All uses removed.
77807         * lib/tempname.c: Include <string.h> unconditionally.
77808         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77809         * lib/xgethostname.c (main): Define with a prototype.
77810         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77811         Include <stdlib.h> unconditionally.
77812         (calloc, malloc, realloc, free): Remove decls.
77813         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77814         Include <stdlib.h> unconditionally.  Sort include file names.
77815         (strtod): Remove.
77816         (xstrtod): Define with a prototype.
77817         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77818         (strtol, strtoul): Remove decls.
77819
77820 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77821
77822         More patches to assume C89 or better.
77823         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77824         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77825         string.h, memchr, STDC_HEADERS.
77826
77827 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77828
77829         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77830         Include <stdlib.h>, <string.h> unconditionally.
77831         Remove now-unnecessary cast to char *.
77832         * lib/strnlen.c: Include <string.h> unconditionally.
77833         * lib/yesno.c (yesno): Define with a prototype.
77834
77835 2003-09-11  Bruno Haible  <bruno@clisp.org>
77836
77837         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77838
77839 2003-09-10  Jim Meyering  <jim@meyering.net>
77840
77841         * lib/error.c: Correct indentation of cpp directives.
77842
77843 2003-09-10  Bruno Haible  <bruno@clisp.org>
77844
77845         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77846         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77847         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77848         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77849         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77850         <stdlib.h> and <string.h> checks.
77851         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77852         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77853
77854 2003-09-10  Bruno Haible  <bruno@clisp.org>
77855
77856         * lib/strcspn.c: Include <string.h> unconditionally.
77857         * lib/strpbrk.c: Include <string.h> unconditionally.
77858         * lib/strstr.c: Include <string.h> unconditionally.
77859         * lib/unicodeio.c: Include <string.h> unconditionally.
77860         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77861         * lib/unsetenv.c: Likewise.
77862         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77863         * lib/yesno.c: Include <stdlib.h> unconditionally.
77864         (rpmatch): Add prototype.
77865
77866 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77867
77868         More patches to assume C89 or better.
77869         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77870         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77871         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77872         or for string.h.
77873         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77874         stdlib.h.
77875         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77876         C headers.
77877         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77878         string.h.
77879         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77880         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77881         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77882         or for string.h.
77883         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77884         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77885         C headers.
77886         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77887         memcpy.
77888         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77889         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77890         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77891         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77892         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77893         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77894         string.h, free.
77895         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77896         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77897         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77898         C headers, or for string.h.
77899         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77900         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77901         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77902         headers, memory.h, stdlib.h, string.h, strings.h.
77903         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77904         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77905         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77906         strchr.
77907         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77908         headers, memory.h, string.h.
77909         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77910         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77911         free.
77912         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77913         headers.
77914         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77915         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77916         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77917         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77918         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77919
77920 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77921
77922         More K&R removal.
77923
77924         * lib/acosl.c (main): Use a prototype.
77925         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77926         tanl.c: Likewise.
77927
77928         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77929
77930         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77931         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77932         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77933         with a prototype.
77934         * lib/getopt.c (const): Remove macro.
77935         Include <string.h> unconditionally.
77936         (my_index): Remove; all uses changed to strchr.
77937         (strlen): Remove decl.
77938         (exchange): Remove forward decl; no longer needed.
77939         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77940         Define with prototype.
77941         * lib/getopt1.c (const): Remove macro.
77942         (getopt_long, getopt_long_only, main): Define with prototype.
77943
77944         * lib/getugroups.c: Include <string.h> unconditionally.
77945
77946         * lib/getusershell.c: Include <stdlib.h> unconditionally.
77947         (getusershell, setusershell, endusershell, readname, main):
77948         Define with prototypes.
77949
77950         * lib/group-member.c: Include group-member.h first.
77951         Include <stdlib.h> unconditionally.
77952
77953         * lib/hard-locale.c: Include hard-locale.h first.
77954         Include <stdlib.h>, <string.h> unconditionally.
77955
77956         * lib/hash.c (free, malloc): Remove decls.
77957         Include <stdlib.h> unconditionally.
77958
77959         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
77960         (getenv): Do not declare.
77961
77962         * lib/idcache.c: Include <string.h> unconditionally.
77963
77964         * lib/long-options.c: Include long-options.h first, to test interface.
77965         Include <stdlib.h> unconditionally.
77966
77967         * lib/makepath.c: Include makepath.h first, to test interface.
77968         Include <stdlib.h> and <string.h> unconditionally.
77969
77970         * lib/linebuffer.c: Include <stdlib.h>.
77971         (free): Remove decl.
77972
77973         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
77974         stddef.h. rpl_malloc returns void *, not char *.
77975         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
77976         prototype.
77977
77978         * lib/md5.h: Include <limits.h> unconditionally.
77979         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
77980         (__P): Remove; all uses removed.
77981         * lib/md5.c: Include "md5.h" first.
77982         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
77983         md5_buffer, md5_process_bytes, md5_process_block):
77984         Define with prototypes.
77985         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
77986         * lib/sha.c: Include "sha.h" first.
77987         Include <stdlib.h>, <string.h> unconditionally.
77988
77989         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
77990         * lib/memcmp.c (__ptr_t): Likewise.
77991         * lib/memrchr.c (__ptr_t): Likewise.
77992         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
77993         Include <string.h> unconditionally.
77994         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
77995         * lib/memchr.c: Include <stdlib.h> unconditionally.
77996         * lib/memchr.c (LONG_MAX): Remove.
77997         * lib/memrchr.c (LONG_MAX): Likewise.
77998         * lib/memchr.c (__memchr): Define via a prototype.
77999         * lib/memrchr.c (__memrchr): Likewise.
78000         * lib/memcmp.c (__P): Remove, and remove all uses.
78001         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78002         Remove forward decls; no longer needed.
78003         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78004         Use types required by C89 in prototype.
78005
78006         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78007         * lib/savedir.c: Likewise.
78008         * lib/mkdir.c (free): Remove decl.
78009         * lib/rmdir.c (rmdir): Define with a prototype.
78010         * lib/savedir.c: Include savedir.h first, to test interface.
78011
78012         * lib/mktime.c (STDC_HEADERS): Remove.
78013         Include <stdlib.h>, <string.h> unconditionally.
78014
78015         * lib/modechange.c: Include <stdlib.h> unconditionally.
78016         (malloc): Remove decl.
78017
78018         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78019         (free): Remove decl.
78020
78021         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78022         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78023         (This type really should be intptr_t, but that's a C99ism.)
78024         (_obstack_memcpy): Remove: all uses changed to memcpy.
78025         Include <string.h> unconditionally.
78026         (struct obstack): Assume __STDC__ for types of members
78027         chunkfun, freefun, extra_arg.
78028         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78029         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78030         obstack_begin, obstack_specify_allocation,
78031         obstack_specify_allocation_with_arg, obstack_chunkfun,
78032         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78033         Remove unprototyped decls and the macros that use them.
78034         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78035         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78036         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78037         (defined __STDC__ && __STDC__)]:
78038         Remove nonprototyped code.
78039         Include <stdlib.h> unconditionally.
78040         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78041         _obstack_allocated_p, _obstack_free, obstack_free,
78042         _obstack_memory_used, print_and_abort):
78043         Define using prototypes.
78044         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78045         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78046         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78047         obstack_next_free, obstack_object_size, obstack_room) [0]:
78048         Remove unused, unprototyped code.
78049
78050         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78051
78052         * lib/physmem.c (physmem_total, physmem_available, main): Define
78053         with prototypes.
78054
78055         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78056         (main): Define with a prototype.
78057
78058         * lib/posixver.c (getenv): Remove decl.
78059
78060         * lib/putenv.c (malloc): Returns void *, not char *.
78061         Include <string.h> unconditionally.
78062         (strchr, memcpy, NULL): Do not define.
78063
78064         * lib/readtokens.c: Include readtokens.h first, to test interface.
78065         Include <stdlib.h>, <string.h> unconditionally.
78066         (init_tokenbuffer): Define with a prototype.
78067
78068         * lib/regex.c (PARAMS): Remove.  All uses removed.
78069         All uses of _RE_ARGS removed, too.
78070         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78071         unconditionally.
78072         (bzero): Assume memset exists.
78073         (memcmp, memcpy, NULL): Remove.
78074         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78075         char, or assignments to local vars of type signed char.
78076         (init_syntax_once, PREFIX(extract_number_and_incr),
78077         PREFIX(print_partial_compiled_pattern),
78078         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78079         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78080         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78081         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78082         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78083         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78084         wcs_compile_range, byte_compile_range, truncate_wchar,
78085         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78086         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78087         count_mbs_length, wcs_re_match_2_internal,
78088         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78089         PREFIX(alt_match_null_string_p),
78090         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78091         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78092         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78093         now-unnecessary declaration, if any.
78094         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78095         regcomp, regexec):
78096         Remove now-unnecessary casts among pointer types.
78097         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78098
78099         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78100         (free): Remove decl.
78101
78102         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78103
78104         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78105         (free): Remove decl.
78106
78107         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78108         * lib/xgetcwd.c: Likewise.
78109
78110         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78111         (free): Remove decl.
78112
78113         * lib/strchrnul.c (strchrnul): Define with a prototype.
78114         Fix bug: c_in was not converted to char before searching.
78115
78116         The following changes are not K&R related:
78117
78118         * lib/group-member.h: Include <sys/types.h>, so that this file is
78119         self-contained.
78120         * lib/makepath.h: Likewise.
78121
78122         * lib/getusershell.c (readname, default_index, line_size, readname):
78123         Use size_t, not int, for sizes.
78124         (readname): If the size overflows, report an error instead of
78125         looping forever.
78126
78127 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78128
78129         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78130         libc.
78131
78132 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78133
78134         * README: New section: portability guidelines.
78135
78136 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78137
78138         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78139         C89 spec.
78140
78141 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78142
78143         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78144
78145 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78146
78147         Assume C89 or better; remove K&R cruft.
78148         A few of these changes were first proposed by Derek Robert Price
78149         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78150
78151         * lib/addext.c: Include <string.h> unconditionally.
78152         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78153         Don't declare getenv or malloc.
78154
78155         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78156         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78157         (NULL): Remove.
78158         (find_stack_direction, alloca): Use prototypes.
78159
78160         * lib/atexit.c (atexit): Define using a prototype.
78161
78162         * lib/basename.c, dirname.c, stripslash.c:
78163         Include <string.h> unconditionally.
78164
78165         * lib/bcopy.c: Include <stddef.h>.
78166         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78167
78168         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78169
78170         * lib/error.h (error, error_at_line, error_print_progname)
78171         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78172         * lib/error.c: Include error.h first, to check interface.
78173         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78174         (VA_START): Remove; all uses changeed to va_start.
78175         (exit, strerror): Remove decls.
78176         (error_print_progname): Prototype uncondionally.
78177         Don't include <errno.h>; no longer needed.
78178         (private_strerror): Remove.
78179         (error_tail): Always define.
78180         (error, error_at_line): Assume C89 or better; always use prototypes.
78181         * lib/fatal.c: Include "fatal.h" first, to test interface.
78182         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78183         (VA_START): Remove; all uses changed to va_start.
78184         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78185         this case.
78186         (exit): Remove decl.
78187         (fatal): Prototype unconditionally.  Assume va_start works.
78188         Abort at end, to pacify gcc.
78189
78190         * lib/euidaccess.c (main): Define with a prototype.
78191
78192         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78193
78194         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78195
78196         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78197         prototypes.
78198         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78199         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78200         (getenv): Remove decl.
78201         (fnmatch): Define using a prototype.
78202         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78203         (FCT): Define using a prototype.
78204
78205         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78206
78207         * lib/gethostname.c: Include <stddef.h>.
78208         (gethostname): Define with prototype.  Length is size_t, not int.
78209
78210 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78211
78212         Assume C89 or better; remove K&R cruft.
78213         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78214         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78215         string.h, getenv, malloc.
78216         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78217         headers.
78218         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78219         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78220         do not check for strerror.
78221         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78222         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78223         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78224         do not check for doprnt or vprintf.
78225         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78226         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78227
78228 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78229
78230         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78231         getversion.c should have been removed then, but was accidentally
78232         preserved.
78233
78234         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78235         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78236
78237 2003-09-08  Karl Berry  <karl@gnu.org>
78238
78239         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78240                 config, forget about prep.
78241
78242         * config/depcomp, missing: update from automake.
78243
78244 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78245
78246         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78247         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78248
78249 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78250
78251         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78252         copy_tm_result.  Bug reported by Simon Josefsson in
78253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78254
78255 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78256
78257         * m4/time_r.m4: New file.
78258         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78259         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78260         is. Check for timegm declaration.
78261         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78262         Do not check for gmtime_r.
78263         Replace mktime if __mktime_internal does not exist and if mktime
78264         hasn't been replaced already.
78265
78266 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78267
78268         * lib/time_r.c, lib/time_r.h: New files.
78269
78270         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78271         __localtime_r.
78272         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78273         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78274
78275         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78276         __gmtime_r.
78277         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78278         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78279         Include <time_r.h>.
78280
78281         * lib/timegm.c: Switch to glibc implementation, with the following
78282         changes:
78283         [defined HAVE_CONFIG_H]: Include <config.h>.
78284         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78285         (__mktime_internal) [!defined _LIBC]: New decl.
78286         (__gmtime_r) [!defined _LIBC]: New macro and function.
78287         (timegm): Use a prototype, since gnulib assumes C89.
78288         Do not bother declaring tmp to be const, as it's not really usefu.
78289         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78290         (timegm): Declare only if HAVE_DECL_TIMEGM.
78291
78292 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78293
78294         * MODULES.html.sh (func_all_modules): Add time_r.
78295         * modules/time_r: New file.
78296         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78297         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78298
78299 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78300
78301         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78302         Bug reported by Lute Kamstra in
78303         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78304
78305         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78306         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78307         course with correspondingly smaller numbers for tomorrow and
78308         yesterday.  From Tadayoshi Funaba.  Originally installed into
78309         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78310         coreutils merge?).
78311
78312 2003-08-31  Simon Josefsson  <jas@extundo.com>
78313
78314         * modules/timegm: New file.
78315         * MODULES.html.sh (func_all_modules): Add timegm.
78316
78317 2003-08-31  Simon Josefsson  <jas@extundo.com>
78318
78319         * m4/timegm.m4: New file.
78320
78321 2003-08-31  Simon Josefsson  <jas@extundo.com>
78322
78323         * lib/timegm.h: New file.
78324         * lib/timegm.c: New file.  Based on
78325         wget-1.8.2/src/http.c:mktime_from_utc.
78326
78327 2003-08-31  Karl Berry  <karl@gnu.org>
78328
78329         * lib/argp.h: update from libc.
78330
78331 2003-08-28  Bruno Haible  <bruno@clisp.org>
78332
78333         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78334         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78335         followed by '#define fnmatch fnmatch_posix' gives an error.
78336
78337 2003-08-28  Bruno Haible  <bruno@clisp.org>
78338
78339         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78340         warning on QNX, which defines O_BINARY to 000000.
78341
78342 2003-08-27  Jim Meyering  <jim@meyering.net>
78343
78344         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78345         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78346         would fail after 32.  Reported by Danny Levinson.  Details here:
78347         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78348
78349 2003-08-24  Bruno Haible  <bruno@clisp.org>
78350
78351         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78352         MSVC7 <stdio.h> is included later.
78353
78354 2003-08-22  Simon Josefsson  <jas@extundo.com>
78355
78356         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78357
78358 2003-08-20  Karl Berry  <karl@gnu.org>
78359
78360         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78361
78362 2003-08-20  Bruno Haible  <bruno@clisp.org>
78363
78364         * modules/progname: New file.
78365         * MODULES.html.sh (func_all_modules): Add progname.
78366
78367 2003-08-20  Bruno Haible  <bruno@clisp.org>
78368
78369         * lib/progname.h: New file, from GNU gettext.
78370         * lib/progname.c: New file, from GNU gettext.
78371         * lib/progreloc.c: New file, from GNU gettext.
78372
78373 2003-08-19  Jim Meyering  <jim@meyering.net>
78374
78375         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78376         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78377
78378 2003-08-19  Bruno Haible  <bruno@clisp.org>
78379
78380         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78381         more.
78382
78383 2003-08-19  Bruno Haible  <bruno@clisp.org>
78384
78385         * lib/xstrdup.c: Assume <string.h> exists.
78386
78387 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78388
78389         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78390         in makefile rules.
78391
78392 2003-08-18  Jim Meyering  <jim@meyering.net>
78393
78394         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78395         * m4/lib-ld.m4: Likewise.
78396
78397 2003-08-18  Jim Meyering  <jim@meyering.net>
78398
78399         * lib/setenv.h: Indent nested cpp directive.
78400         * lib/vasnprintf.c: Remove trailing blanks.
78401
78402 2003-08-17  Simon Josefsson  <jas@extundo.com>
78403
78404         * modules/xstrndup: New file.
78405         * MODULES.html.sh (func_all_modules): Add xstrndup.
78406
78407 2003-08-17  Simon Josefsson  <jas@extundo.com>
78408
78409         * modules/argp: Fix autoconf macro name. Add more dependencies.
78410
78411 2003-08-17  Simon Josefsson  <jas@extundo.com>
78412
78413         * m4/xstrndup.m4: New file.
78414
78415 2003-08-17  Simon Josefsson  <jas@extundo.com>
78416
78417         * m4/argp.m4: New file.
78418
78419 2003-08-17  Simon Josefsson  <jas@extundo.com>
78420             Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/xstrndup.h: New file.
78423         * lib/xstrndup.c: New file.
78424
78425 2003-08-17  Bruno Haible  <bruno@clisp.org>
78426
78427         * modules/strndup (Files, Include): Add lib/strndup.h.
78428
78429 2003-08-17  Bruno Haible  <bruno@clisp.org>
78430
78431         * modules/euidaccess (Files): Add lib/euidaccess.h.
78432
78433 2003-08-17  Bruno Haible  <bruno@clisp.org>
78434
78435         * lib/strndup.h: New file.
78436
78437 2003-08-17  Bruno Haible  <bruno@clisp.org>
78438
78439         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78440         like AC_GNU_SOURCE.
78441         * modules/extensions (configure.ac): Comment out the invocation of
78442         gl_USE_SYSTEM_EXTENSIONS.
78443
78444 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78445
78446         Merges from coreutils, etc.
78447         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78448         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78449         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78450         fixing a typo.
78451         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78452         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78453
78454 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78455
78456         Document merge from coreutils.
78457         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78458         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78459         * modules/utime: Add m4/utimes-null.m4.
78460
78461 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78462
78463         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78464         space, undoing this 2003-08-12 change:
78465         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78466
78467 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78468
78469         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78470         strtoul.c from libc, undoing this 2003-08-12 change:
78471         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78472
78473 2003-08-16  Jim Meyering  <jim@meyering.net>
78474
78475         Merges from coreutils.
78476         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78477         prefix.  Adjust cache variables similarly.  Create 500 rather than
78478         just 300 files, to exercise bug on Darwin6.5, too.
78479         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78480         $missing_dir.
78481         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78482         AM_SYS_POSIX_TERMIOS.
78483         Reported by mkc@mathdogs.com.
78484         Also change use of $am_cv_sys_posix_termios
78485         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78486         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78487         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78488         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78489         in /proc/mounts until it finds one with matching device number.  This
78490         is unnecessary when the FILE argument *is* a mount point.  No stat call
78491         is necessary in that case.  So, disable the statvfs-testing code on
78492         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78493         as RedHat bug# 84846.
78494         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78495         to 1MB, so as not to render systems with no stack size limit (e.g.,
78496         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78497         Include <unistd.h>.  On some systems,
78498         it is required for the definition of _SC_PAGESIZE.
78499
78500 2003-08-16  Jim Meyering  <jim@meyering.net>
78501
78502         Merge from coreutils.
78503         * lib/xstrtoimax.c: #else #if -> #elif.
78504         * lib/xstrtoumax.c: Likewise.
78505
78506 2003-08-16  Jim Meyering  <jim@meyering.net>
78507
78508         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78509         * m4/utimes.m4: Removed.
78510         * m4/utimes-null.m4: Renamed from utimes.m4.
78511
78512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78513         to 1MB, so as not to render systems with no stack size limit (e.g.,
78514         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78515         Include <unistd.h>.  On some systems,
78516         it is required for the definition of _SC_PAGESIZE.
78517
78518 2003-08-16  Jim Meyering  <jim@meyering.net>
78519         and Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         Merges from coreutils, etc.
78522
78523         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78524         using the latest version from cvs.  This avoids problems with #line
78525         directives using a vendor (Sun) compiler.
78526         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78527         Don't set GETGROUPS_LIB here; now it's
78528         done via getgroups.m4's wrapper function.
78529         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78530         rather than just in sh-util/configure.in, so that the
78531         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78532         same.
78533         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78534         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78535         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78536         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78537         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78538         Remove code that is now done by the newly-required macros.
78539         Append $(EXEEXT) to DF_PROG.
78540         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78541         Do not invoke or require the following here,
78542         since prereq.m4 or some gnulib .m4 now does this for us:
78543         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78544         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78545         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78546         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78547         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78548         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78549         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78550         AC_FUNC_OBSTACK.
78551         Do not replace the following functions, as this is now the job
78552         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78553         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78554         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78555         atexit getpass, strdup, getpagesize.
78556         Replace 'raise'.
78557         Do not check for the following functions, as this is now the job
78558         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78559         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78560         setregid.
78561         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78562         Check for sys/sysctl.h.
78563         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78564         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78565         of checking for ssize_t ourselves.
78566
78567         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78568         Require every macro that gnulib/modules/* suggests for us.
78569         (jm_PREREQ_ADDEXT): New macro.
78570         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78571         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78572
78573         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78574         (gl_PHYSMEM): Use it.
78575         Also check for `table' function.
78576         Check for new headers and functions.
78577         Add check for sys/sysmp.h.
78578         With suggestions from Kaveh Ghazi.
78579         Ignore headers that are present but cannot be compiled.  This
78580         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78581         C 5.4.
78582
78583 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78584
78585         Document merge from coreutils.
78586         * modules/userspec: Depend on posixver.
78587         * modules/strftime: Depend on tzset.
78588
78589 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78590
78591         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78592         rather than tab, after '#' in shell-script copyright notices.
78593         Suggested by Bruno Haible.
78594
78595 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78596
78597         * config/srclist-update: Use three spaces, rather than tab, after '#'
78598         in shell-script copyright notices.  Suggested by Bruno Haible.
78599         Remove unnecessary parenthesization in regular expression.
78600
78601 2003-08-15  Jim Meyering  <jim@meyering.net>
78602
78603         Merge from coreutils.
78604         * lib/xgethostname.c: Include <stdlib.h>.
78605         (xghostname): Don't exit for anything other than memory-related
78606         failure; just return NULL.
78607         * lib/userspec.c: Include "posixver.h".
78608         (parse_user_spec): Accept `.' as a separator only
78609         in pre-POSIX-200112 mode.
78610         * lib/strtoimax.c: Use #elif rather than #else #if.
78611         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78612         Remove function, now that we can rely on a working tzset function.
78613         [!_LIBC]: Ensure that the required autoconf test has been run.
78614         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78615         Use underlying_strftime for %r.
78616         * lib/sha.c: Merge in some clean-up and optimization changes from
78617         glibc.
78618         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78619         Ensure that it is a multiple of 64.
78620         Rearrange loop exit tests so as to avoid performing an
78621         additional fread after encountering an error or EOF.
78622         * lib/realloc.c: Update copyright date.
78623
78624 2003-08-15  Jim Meyering  <jim@meyering.net>
78625         and Paul Eggert  <eggert@twinsun.com>
78626
78627         Merge from coreutils.
78628         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78629         member but strut utmpx does not.  Needed for AIX 4.3.3.
78630         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78631
78632 2003-08-15  Jim Meyering  <jim@meyering.net>
78633         and Paul Eggert  <eggert@cs.ucla.edu>
78634
78635         Merges from coreutils, etc.
78636         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78637         Require gl_FUNC_TZSET_CLOBBER.
78638         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78639         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78640         members.
78641
78642 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78643
78644         Help the merge from coreutils.
78645         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78646         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78647         * m4/tzset.m4: Use it too.
78648
78649 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78650
78651         * modules/tzset: New file.
78652
78653 2003-08-14  Jim Meyering  <jim@meyering.net>
78654
78655         Merges from coreutils.
78656         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78657         variable names, rather than @FNMATCH_H@.
78658         * modules/alloca: Likewise for $(ALLOCA_H).
78659
78660         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78661         the three copies of the literal target, `fnmatch.h'.
78662         * modules/alloca (alloca.h): Likewise.
78663
78664 2003-08-14  Jim Meyering  <jim@meyering.net>
78665
78666         Merge from coreutils.
78667         * m4/tzset.m4: New file.
78668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78669         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78670         otherwise, AIX 5.1 systems would end up using the latter.
78671         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78672         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78673         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78674         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78675
78676 2003-08-14  Jim Meyering  <jim@meyering.net>
78677
78678         Merge from coreutils.
78679         * lib/obstack.h: Whitespace changes.
78680         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78681         and xcalloc return values.
78682         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78683         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78684         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78685         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78686         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78687         error from mntctl.
78688         Use mntctl's return value to drive the entry-processing loop, since
78689         we can't rely on the value of the vmt_length member in the last
78690         entry.  On some systems doing so could result in exhausting
78691         virtual memory.  Based in part on a patch from Mike Jetzer.
78692
78693 2003-08-14  Jim Meyering  <jim@meyering.net>
78694         and Paul Eggert  <eggert@twinsun.com>
78695
78696         Merges from coreutils, plus other fixes.
78697         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78698         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78699         for credits and details.  Thanks to Kaveh Ghazi for helping
78700         to keep these files in sync.
78701         (ARRAY_SIZE): Define it.
78702         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78703         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78704         (memcasecmp): Don't assume size_t fits in unsigned int.
78705         Remove casts and duplicate code.
78706         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78707         (memcpy): Remove definition.
78708         Merge in some clean-up and optimization changes from glibc.
78709         [BLOCKSIZE]: Move definition to top of file.
78710         Ensure that it is a multiple of 64.
78711         Rearrange loop exit tests so as to avoid performing an
78712         additional fread after encountering an error or EOF.
78713         * lib/md5.h (md5_uintptr): Define.
78714         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78715         return to the initial working directory.  Preserve errno
78716         for caller.
78717         * lib/idcache.c: Include "xalloc.h".
78718         (xmalloc, xrealloc): Remove decls.
78719         (getuser): Remove casts no longer required in C89.
78720         * lib/human.c: Include stdio.h, for sprintf.
78721         * lib/group-member.c: Include "xalloc.h".
78722         (xmalloc, xrealloc): Remove decls.
78723         (get_group_info): Remove casts no longer required in C89.
78724         * lib/getusershell.c (readname): Remove casts no longer required in
78725         C89.
78726         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78727         * lib/getline.c: Whitespace fix, from coreutils.
78728
78729 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78730
78731         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78732         Check for isascii.
78733
78734         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78735         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78736         Undo previous (whitespace-only) change.
78737
78738 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78739
78740         * lib/exclude.c: Include <ctype.h>
78741         (IN_CTYPE_DOMAIN): New macro.
78742         (is_space): New fn.
78743         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78744         and empty lines.
78745
78746         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78747         Undo previous (whitespace-only) change.
78748
78749 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78750
78751         * config/srclist-update: Change update back to the old behavior,
78752         leaving whitespace alone.  Use one 'sed' command rather than a
78753         pipeline.
78754         (fixlicense): Now a variable, not a function.
78755         (remove_trailing_blanks): Remove.
78756         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78757         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78758         Undo previous (whitespace-only) change.
78759
78760 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78761
78762         Merge from coreutils.
78763         * modules/euidaccess: Add lib_SOURCES, include for new
78764         file euidaccess.h
78765
78766 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78767
78768         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78769         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78770         Normalize leading white space and remove trailing white space.
78771
78772         Merge from coreutils
78773         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78774
78775         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78776         0.12.1.  These files are now being upgraded automatically by
78777         ../config/srclist-update.
78778
78779 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78780
78781         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78782         Normalize leading white space and remove trailing white space.
78783         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78784         notice, as per ../config/srclist-update.
78785
78786         Merge from coreutils.
78787         * lib/euidaccess.h: New file.
78788         * lib/euidaccess.c: Include it.
78789         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78790         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78791         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78792
78793 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78794
78795         * config/srclist-update: Add copyright notice.
78796         (remove_id_lines, remove_trailing_blanks): New constants.
78797         (fixfile): Use them to normalize spacing a bit in copied files.
78798         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78799         Normalize leading white space and remove trailing white space.
78800
78801         * config/texinfo.tex: Sync with texinfo.
78802
78803         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78804         strtoul.c from libc, to merge coreutils whitespace changes.
78805
78806         * config/srclist.txt: Get the following m4 files from gettext:
78807         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78808         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78809         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78810         wint_t.m4.
78811
78812 2003-08-12  Karl Berry  <karl@gnu.org>
78813
78814         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78815         been made.
78816
78817 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78818
78819         * modules/gnu-source, m4/gnu-source.m4:
78820         Remove; we're assuming Autoconf 2.54 or later now.
78821         Suggested by Bruno Haible.
78822         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78823
78824 2003-08-11  Bruno Haible  <bruno@clisp.org>
78825
78826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78827
78828 2003-08-11  Bruno Haible  <bruno@clisp.org>
78829
78830         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78831         (vasnprintf): Use it instead of wcslen.
78832
78833 2003-08-11  Bruno Haible  <bruno@clisp.org>
78834
78835         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78836         value to ensure that _Bool promotes to int. Use #define for _Bool when
78837         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78838
78839 2003-08-10  Karl Berry  <karl@gnu.org>
78840
78841         * lib/regex.h: update from libc (whitespace fix).
78842
78843 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78844
78845         Merge some files from coreutils.  These changes were
78846         originally made by Jim Meyering.
78847         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78848         many older Unixes require this.
78849         * lib/alloca.c (alloca): Remove cast to argument of free;
78850         no longer needed in C89.
78851         * lib/alloca_.h, regex.h: Fix white space to match
78852         what GNU indent does.
78853
78854 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78855
78856         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78857         apparently Emacs's Unicode mode got confused before my 2003-08-05
78858         checkin.
78859
78860 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78861
78862         * m4/extensions.m4: New file.
78863         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78864         Require gl_USE_SYSTEM_EXTENSIONS.
78865         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78866         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78867
78868 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78869
78870         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78871         * modules/extensions, modules/gnu-source: New files.
78872         * modules/timespec, modules/unlocked-io: Depend on extensions.
78873
78874 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78875
78876         * modules/restrict: New file.
78877         * MODULES.html.sh (func_all_modules): Add restrict.
78878         * modules/regex: Depend on restrict.
78879
78880 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78881
78882         * m4/restrict.m4: New file.
78883         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78884
78885 2003-08-07  Bruno Haible  <bruno@clisp.org>
78886
78887         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78888         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78889
78890 2003-08-07  Bruno Haible  <bruno@clisp.org>
78891
78892         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78893         makes the module 'getndelim2' compatible with the module 'getline'.
78894
78895 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78896
78897         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78898         byte with "\201" to avoid glitches when editing that source file
78899         with multi-gnome-terminal.
78900
78901 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78902
78903         * lib/bumpalloc.h: Remove.
78904
78905 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78906
78907         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78908         * modules/bumpalloc: Remove.
78909
78910 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78911
78912         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78913         GNU coding style.
78914
78915         Merge from coreutils.
78916         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78917         1. From glibc.
78918         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78919         from Karl Berry, implemented by Jim Meyering.
78920         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78921         from Dmitry V. Levin.
78922         Remove anachronistic cast of xrealloc.
78923         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78924         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78925         type. Otherwise, it wouldn't compile with at least /bin/cc on
78926         ymp-cray-unicos9.0.2.X.
78927         Combine two mostly-identical uses of alloca into one.
78928         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78929
78930 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78931
78932         [From Emacs.]
78933
78934         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78935         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78936         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78937         obsolete NLIST_NAME_UNION.
78938         [__GNU__]: Undef BSD and FSCALE.
78939         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78940
78941 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78942
78943         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78944         an enum type, so that it's guaranteed to promote to int.  See:
78945         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78946
78947 2003-08-03  Karl Berry  <karl@gnu.org>
78948
78949         * config/depcomp: update from automake.
78950
78951 2003-07-31  Paul Eggert  <eggert@twinsun.com>
78952
78953         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
78954         (strerror): Don't assume that a printable int fits in 14 bytes.
78955
78956 2003-07-31  Bruno Haible  <bruno@clisp.org>
78957
78958         * modules/getpass-gnu: New file.
78959         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
78960
78961 2003-07-31  Bruno Haible  <bruno@clisp.org>
78962
78963         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
78964
78965 2003-07-24  Karl Berry  <karl@gnu.org>
78966
78967         * config/missing: update from automake.
78968
78969 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
78970             Bruno Haible  <bruno@clisp.org>
78971
78972         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
78973         * lib/getline.c (getline, getdelim): Likewise.
78974         Remove _GNU_SOURCE define; now it's defined in config.h through
78975         m4/getline.m4.
78976
78977 2003-07-23  Karl Berry  <karl@gnu.org>
78978
78979         * config/config.sub: update from prep.
78980
78981 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78982
78983         * modules/xalloc (Depends-on): Add exitfail.
78984         * modules/xmemcoll: Likewise.
78985
78986 2003-07-22  Paul Eggert  <eggert@twinsun.com>
78987
78988         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
78989         over-parenthesization in macros.
78990
78991         Sync with coreutils.
78992
78993         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
78994         required by C99.
78995
78996         Use `exit_failure' for xalloc and xmemcoll instead of their own
78997         private exit-failure variables.
78998         * lib/xalloc.h (xalloc_exit_failure): Remove.
78999         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79000         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79001         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79002         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79003         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79004
79005 2003-07-20  Jim Meyering  <jim@meyering.net>
79006
79007         * modules/closeout (Depends-on): Add exitfail.
79008         Suggestion from Bruno Haible.
79009
79010 2003-07-19  Karl Berry  <karl@gnu.org>
79011
79012         * config/config.sub: update from prep.
79013
79014 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79015
79016         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79017         Remove.
79018         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79019         to test that it can stand by itself.  Include "exitfail.h".
79020         Clients should set exit_failure instead.
79021         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79022
79023 2003-07-18  Bruno Haible  <bruno@clisp.org>
79024
79025         * modules/getndelim2: New file.
79026         * modules/getline: Share files with module getndelim2.
79027         * modules/getnline: Depend on getndelim2 instead of sharing files with
79028         it. Add getnline.c to lib_SOURCES.
79029         * MODULES.html.sh (func_all_modules): Add getndelim2.
79030
79031 2003-07-18  Bruno Haible  <bruno@clisp.org>
79032
79033         * m4/getndelim2.m4: New file.
79034         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79035         invoke gl_PREREQ_GETNDELIM2.
79036         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79037         gl_PREREQ_GETNDELIM2.
79038         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79039         gl_GETNDELIM2.
79040
79041 2003-07-18  Bruno Haible  <bruno@clisp.org>
79042
79043         * lib/getndelim2.h: New file.
79044         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79045         getndelim2.h.
79046         (getndelim2): Make non-static. Change return type to ssize_t.
79047         * lib/getline.h: Change argument names.
79048         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79049         * lib/getnline.c: Include getndelim2.h.
79050
79051 2003-07-18  Andreas Schwab  <schwab@suse.de>
79052
79053         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79054
79055 2003-07-17  Karl Berry  <karl@gnu.org>
79056
79057         * config/config.sub: update from prep.
79058
79059 2003-07-17  Bruno Haible  <bruno@clisp.org>
79060
79061         * modules/getnline: New file.
79062         * modules/getline: Add lib/getndelim2.c to source file list.
79063         * MODULES.html.sh (func_all_modules): Add getnline.
79064
79065 2003-07-17  Bruno Haible  <bruno@clisp.org>
79066
79067         * m4/getnline.m4: New file.
79068
79069 2003-07-17  Bruno Haible  <bruno@clisp.org>
79070
79071         * m4/Makefile.am.in: Remove file.
79072         * m4/Makefile.am: Remove file.
79073         * m4/Makefile.in: Remove file.
79074
79075 2003-07-17  Bruno Haible  <bruno@clisp.org>
79076
79077         * lib/getnline.h: New file.
79078         * lib/getnline.c: New file.
79079         * lib/getndelim2.c: New file, extracted from getline.c.
79080         (getndelim2): Renamed from getdelim2, with added nmax argument.
79081         * lib/getline.c: Include getndelim2.c.
79082         (getdelim2): Moved out to getndelim2.c.
79083         (getline, getdelim): Update.
79084
79085 2003-07-17  Bruno Haible  <bruno@clisp.org>
79086
79087         * lib/Makefile.am: Remove file.
79088         * lib/Makefile.in: Remove file.
79089
79090 2003-07-17  Bruno Haible  <bruno@clisp.org>
79091
79092         * configure.in: Remove file.
79093         * Makefile.in: Remove file.
79094
79095 2003-07-17  Bruno Haible  <bruno@clisp.org>
79096
79097         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79098
79099 2003-07-16  Karl Berry  <karl@gnu.org>
79100
79101         * config/srclist-update: was running fixlicense twice, which caused
79102                 texinfo.tex to be nullified for some reason.  Simplify,
79103                 $gplsrc is no longer needed as far as I can see?
79104
79105 2003-07-16  Jim Meyering  <jim@meyering.net>
79106
79107         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79108
79109 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79110
79111         * config/srclist.txt: Get the following files from gettext-runtime/intl
79112         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79113         ref-del.sin.  From Bruno Haible.
79114         * config/srclist-update (fixfile): Change grep pattern again, since the
79115         previous fix didn't work (there was another trailing $).  Use
79116         '[$]' to escape the $s.
79117
79118 2003-07-15  Karl Berry  <karl@gnu.org>
79119
79120         * lib/vasnprintf.c: update from gettext.
79121
79122 2003-07-15  Karl Berry  <karl@gnu.org>
79123
79124         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79125         gets expanded when surrounded by '$'.
79126
79127 2003-07-15  Jim Meyering  <jim@meyering.net>
79128
79129         * modules/save-cwd: Don't depend on error.  From Derek Price.
79130
79131 2003-07-15  Jim Meyering  <jim@meyering.net>
79132
79133         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79134
79135 2003-07-14  Simon Josefsson  <jas@extundo.com>
79136
79137         * modules/mempcpy: New file.
79138         * MODULES.html.sh (func_all_modules): Add mempcpy.
79139
79140 2003-07-14  Simon Josefsson  <jas@extundo.com>
79141
79142         * m4/mempcpy.m4: New file.
79143
79144 2003-07-14  Simon Josefsson  <jas@extundo.com>
79145
79146         * lib/mempcpy.h: New file.
79147         * lib/mempcpy.c: New file.
79148
79149 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79150
79151         * modules/getdate, modules/posixtm: Depend on mktime.
79152
79153 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79154
79155         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79156         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79157         unicodeio.c, unicodeio.h, unlocked-io.h:
79158         Switch from LGPL to GPL.
79159
79160 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79161
79162         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79163         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79164         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79165         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79166         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79167         updated automatically by ../config/srclist-update.  This changes
79168         their license from LPGL to GPL.
79169
79170 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79171
79172         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79173         assumed to refer to the root of the most recent stable gettext version.
79174         * config/srclistvars.sh: Add defaults for eggert.
79175         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79176         Match "This program" as well as "The program".  This is needed
79177         for gettext.
79178
79179 2003-07-14  Jim Meyering  <jim@meyering.net>
79180
79181         Don't emit diagnostics.  Let callers do that.
79182         * lib/save-cwd.c: Don't include "error.h".
79183         (save_cwd): Don't call error.  Ensure that errno is valid
79184         when returning nonzero.
79185
79186         * lib/save-cwd.h (restore_cwd): Update prototype.
79187         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79188         Simplify.  Don't call error upon failure.  Let callers do that.
79189         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79190         when auditing is enabled.  But don't bother updating the #if.
79191
79192 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79193
79194         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79195         it breaks C++ compilation.
79196         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79197
79198 2003-07-10  Simon Josefsson  <jas@extundo.com>
79199
79200         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79201
79202 2003-07-10  Jim Meyering  <jim@meyering.net>
79203
79204         * m4/clock_time.m4: Remove trailing blank.
79205         * m4/intmax_t.m4: Likewise.
79206
79207 2003-07-10  Jim Meyering  <jim@meyering.net>
79208
79209         * lib/vasnprintf.c: Remove trailing blanks.
79210         Make cpp indentation consistent.
79211
79212 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79213
79214         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79215         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79216         Switch from LGPL to GPL.
79217
79218 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79219
79220         * config/srclist.txt: Sort sublists.  Add
79221         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79222         that differ from gnulib for one reason or another; we'd like this list
79223         to be smaller but for now let's document what we have.
79224
79225 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79226
79227         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79228         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79229         and sweeter "eval x=$x".
79230         * config/srclist.txt: Get lib/argp* from glibc.
79231
79232 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79233
79234         * lib/mktime.c: Fix some boundary cases and remove need for floating
79235         point.
79236
79237         Issue a compile-time diagnostic if time_t is floating point, or if
79238         two's complement arithmetic is not in effect, or if arithmetic
79239         right shift does not propagate the sign.  These assumptions were
79240         all in the original code but they weren't checked.
79241
79242         (TIME_T_MIDPOINT, verify): New macros.
79243         (__isleap): Remove; it has integer overflow problems.
79244         (leapyear): New function, without those problems.
79245         (ydhms_tm_diff): Remove; splitting into two parts.
79246         (ydhms_diff): New function, containing the arithmetic part of
79247         the old ydhms_tm_diff function.  Issue a compile-time
79248         diagnostic if we are not using C99 integer division.
79249         Avoid casts when possible.
79250         (guess_time_tm): New function, containing the checking part of
79251         the old ydhms_tm_diff function.  Return the new value, rather than
79252         the difference between it and the old.  Accept a new argument T
79253         so that *T specifies the old value.  Check for overflow in the result.
79254
79255         (__mktime_internal): Use a time_t offset, not a long int offset.
79256         This undoes the 2003-06-04 change, which is no longer needed now
79257         that we have better overflow checking.
79258         (localtime_offset): Likewise.
79259
79260         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79261         and long are 64-bit but int is only 32-bit.
79262         (ydhms_diff): Use long int to store year1 and yday1.
79263         Issue a compile-time diagnostic if long int is not wide enough.
79264
79265         (__mktime_internal): Use long int to store adjusted year and yday.
79266         Use plain C rather than preprocessor commands, if that doesn't
79267         affect efficiency.
79268         Check for overflow (and try to repair) after each probe
79269         rather than checking only at the very end.  This avoids some bugs
79270         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79271         does not equal GMT offset at maximum time).
79272         Use integer to check for overflow rather than floating point; this
79273         is more portable to non-IEEE hosts, and is a tad faster.
79274         When we detect that we are oscillating between two values,
79275         don't check whether tm_isdst has the requested value, since
79276         we already know the answer.  When tm_isdst has the wrong value,
79277         use a different heuristic to find the right one, based on the
79278         extreme values actually observed in practice in tz2003a,
79279         rather than the (overly optimistic) "previous 3 calendar quarters".
79280
79281         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79282         "T const" to accommodate glibc style.
79283         (check_result): Use less-confusing report format.  "long" -> "long int.
79284         (main): Likewise.
79285         Don't loop if the iteration overflows time_t.
79286         Allow a negative step in the iteration.
79287
79288 2003-07-06  Karl Berry  <karl@gnu.org>
79289
79290         * config/depcomp: update from automake.
79291         * config/config.sub: update from prep.
79292
79293 2003-07-03  Karl Berry  <karl@gnu.org>
79294
79295         * config/config.guess: update from prep.
79296
79297 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79298
79299         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79300         xreadlink.c now includes it unconditionally.
79301
79302 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79303
79304         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79305         having it depend on HAVE_SYS_TYPES_H.
79306
79307 2003-07-01  Bruno Haible  <bruno@clisp.org>
79308
79309         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79310         <sys/types.h> should be sufficient.
79311         Reported by Paul Eggert.
79312
79313 2003-06-26  Karl Berry  <karl@gnu.org>
79314
79315         * config/depcomp: update from automake.
79316
79317 2003-06-26  Bruno Haible  <bruno@clisp.org>
79318
79319         * modules/human: Depend on module stdbool.
79320
79321 2003-06-25  Bruno Haible  <bruno@clisp.org>
79322
79323         * modules/readlink: New file.
79324         * modules/xreadlink: Depend on it.
79325         * MODULES.html.sh (func_all_modules): Add readlink.
79326
79327 2003-06-25  Bruno Haible  <bruno@clisp.org>
79328
79329         * m4/readlink.m4: New file.
79330
79331 2003-06-25  Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/readlink.c: New file.
79334
79335 2003-06-22  Karl Berry  <karl@gnu.org>
79336
79337         * config/srclist.txt: update mkinstalldirs from automake.
79338         * config/mkinstalldirs: update.
79339
79340 2003-06-22  Bruno Haible  <bruno@clisp.org>
79341
79342         Portability to mingw32.
79343         * m4/ssize_t.m4: New file, from GNU gettext.
79344         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79345         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79346
79347 2003-06-22  Bruno Haible  <bruno@clisp.org>
79348
79349         * modules/safe-read: Add m4/ssize_t.m4.
79350         * modules/xreadlink: Add m4/ssize_t.m4.
79351
79352 2003-06-20  Bruno Haible  <bruno@clisp.org>
79353
79354         Assume C89, so PARAMS isn't needed.
79355         * lib/unicodeio.h (PARAMS): Remove.
79356         * lib/unicodeio.c: Don't use PARAMS.
79357
79358 2003-06-18  Karl Berry  <karl@gnu.org>
79359
79360         * config/config.{guess,sub}: update from prep.
79361
79362 2003-06-18  Jim Meyering  <jim@meyering.net>
79363
79364         Merge changes from coreutils.
79365         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79366         Remove explicit declarations of xmalloc and realloc.
79367         Include xalloc.h.
79368         (read_utmp): Remove anachronistic cast of xmalloc.
79369
79370 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79371
79372         Assume C89, so PARAMS isn't needed.
79373         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79374         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79375         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79376         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79377         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79378         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79379         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79380         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79381         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79382         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79383         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79384         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79385         no longer needed. Anyway, config.h should always be included before any
79386         other file.
79387
79388 2003-06-11  Simon Josefsson  <jas@extundo.com>
79389
79390         * modules/sysexits: New file.
79391         * MODULES.html.sh (func_all_modules): Add sysexits.
79392
79393 2003-06-11  Simon Josefsson  <jas@extundo.com>
79394
79395         * lib/sysexit_.h: New file.
79396
79397 2003-06-11  Derek Price  <derek@ximbiot.com>
79398
79399         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79400         necessary.
79401
79402 2003-06-11  Bruno Haible  <bruno@clisp.org>
79403
79404         * m4/sysexits.m4: New file.
79405
79406 2003-06-10  Simon Josefsson  <jas@extundo.com>
79407
79408         * lib/argp.h: New file, from glibc.
79409         * lib/argp-ba.c: New file, from glibc.
79410         * lib/argp-eexst.c: New file, from glibc.
79411         * lib/argp-fmtstream.c: New file, from glibc.
79412         * lib/argp-fmtstream.h: New file, from glibc.
79413         * lib/argp-fs-xinl.c: New file, from glibc.
79414         * lib/argp-help.c: New file, from glibc.
79415         * lib/argp-namefrob.h: New file, from glibc.
79416         * lib/argp-parse.c: New file, from glibc.
79417         * lib/argp-pv.c: New file, from glibc.
79418         * lib/argp-pvh.c: New file, from glibc.
79419         * lib/argp-xinl.c: New file, from glibc.
79420
79421 2003-06-10  Simon Josefsson  <jas@extundo.com>
79422
79423         * modules/strchrnul: New file.
79424
79425 2003-06-10  Simon Josefsson  <jas@extundo.com>
79426
79427         * modules/argp: New file.
79428
79429 2003-06-10  Simon Josefsson  <jas@extundo.com>
79430
79431         * m4/strchrnul.m4: New file.
79432
79433 2003-06-10  Simon Josefsson  <jas@extundo.com>
79434
79435         * lib/strchrnul.h: New file.
79436         * lib/strchrnul.c: New file.
79437
79438 2003-06-10  Bruno Haible  <bruno@clisp.org>
79439
79440         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79441
79442 2003-06-07  Karl Berry  <karl@gnu.org>
79443
79444         * config/config.{guess,sub}: update from prep.
79445
79446 2003-06-07  Jim Meyering  <jim@meyering.net>
79447
79448         * modules/strtod: Use $(...) notation, not @...@ for
79449         AC_REPLACE'd variables.
79450         * modules/localcharset: Likewise.
79451
79452 2003-06-07  Jim Meyering  <jim@meyering.net>
79453
79454         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79455         in place of my name in the copyright comment.
79456         Remove definition and uses of __P.
79457
79458         From coreutils.
79459         * lib/stat.c: Don't declare xmalloc explicitly.
79460         Instead, include "xalloc.h".
79461         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79462         xrealloc, and xcalloc return values.
79463         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79464         Improve comment.
79465         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79466
79467 2003-06-07  Bruno Haible  <bruno@clisp.org>
79468
79469         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79470         avoid AC_CONFIG_LINKS.
79471         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79472         fnmatch.h, to avoid AC_CONFIG_LINKS.
79473         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79474
79475 2003-06-07  Bruno Haible  <bruno@clisp.org>
79476
79477         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79478         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79479         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79480         directory.
79481         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79482         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79483         directory.
79484
79485 2003-06-06  Jim Meyering  <jim@meyering.net>
79486
79487         Merge from coreutils.
79488         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79489         Consolidate declarations and initializations of *_base* locals.
79490
79491         Merge from coreutils.
79492         This avoids a core dump on systems without GNU putenv,
79493         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79494         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79495         (unsetenv): New static function, from GNU libc.
79496         (rpl_putenv): Use it.
79497
79498         * lib/modechange.c: Remove trailing blanks.
79499
79500         Merge from coreutils.
79501         * lib/fsusage.c: Remove declaration of statfs.
79502         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79503
79504         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79505
79506 2003-06-06  Jim Meyering  <jim@meyering.net>
79507
79508         * lib/stdbool_.h: Renamed from stdbool.h.in.
79509
79510 2003-06-06  Jim Meyering  <jim@meyering.net>
79511             Bruno Haible  <bruno@clisp.org>
79512
79513         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79514         Adjust Makefile.am snippet not to redirect directly to target.
79515         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79516
79517 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79518
79519         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79520         mismatch, look in future quarters as well as past.  This fixes a
79521         bug when processing fall-backwards gaps immediately after a long
79522         period of daylight-saving time.
79523
79524         * lib/mktime.c: Assume freestanding C89 or better.
79525         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79526         (__P): Remove; not used.
79527         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79528         (mktime, not_equal_tm, print_tm, check_result,
79529         main): Use prototypes.  Use const * where appropriate.
79530         (main): Fix typo in testing code that uncovered by above changes.
79531         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79532
79533 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79534
79535         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79536         locale.h, localeconv.  This merges changes from coreutils.
79537
79538         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79539         It can be removed after the next Autoconf is released.
79540         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79541         needed.
79542
79543 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79544
79545         * lib/mktime.c: Fix Debian bug 177940
79546         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79547         (localtime_offset): Now long int, not time_t, because we want it
79548         to be guaranteed to be signed.  All uses changed.
79549         (__mktime_internal): If overflow would occur when adding offset,
79550         don't add it.
79551
79552         Merge 'human' changes from coreutils.  Rewrite to support
79553         locale-specific notations like thousands separators.
79554         * lib/human.c: Simplify authorship notice.
79555         Include human.h immediately after config.h.
79556         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79557         <limits.h>: Do not include, since human.h does.
79558         (SIZE_MAX, UINTMAX_MAX): New macros.
79559         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79560         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79561         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79562         (power_letter): Renamed from suffixes.
79563         (generate_suffix_backwards): Remove.
79564         (adjust_value): Now takes int style (because of human.h changes)
79565         and long double value (for greater precision on some platforms).
79566         (group_number): New function.
79567         (human_readable): Use it.  Use integer options, not enum.
79568         Put the options before the sizes in the arg list.
79569         Support all the new options.
79570         The old human_readable function has been removed;
79571         use inttostr.h instead.
79572         (human_readable, default_block_size, humblock):
79573         Use uintmax_t, not int, for block sizes.
79574         (human_readable_inexact, block_size_types): Remove.
79575         (block_size_opts): New constant.
79576         (human_options): Renamed from human_block_size, with new signature
79577         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79578         * lib/human.h: Add copyright and authorship notice.
79579         Include <limits.h> and <stdbool.h> unconditionally.
79580         (PARAMS): Remove.  All uses removed.
79581         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79582         (enum human_inexact_style): Remove tag; now a nameless enum.
79583         (human_floor, human_ceiling, human_round_to_even): Now have
79584         values 2, 0, 1 rather than -1, 1, 0.
79585         (human_group_digits, human_suppress_point_zero, human_autoscale,
79586         human_base_1024, human_SI, human_B): New constants.
79587         (human_readable_inexact, human_block_size): Remove.
79588         (human_readable): Size args are now uintmax_t, not int.
79589         (human_options): New decl.
79590
79591         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79592         unnecessary now that we assume C89 or better.  This change
79593         imported from coreutils.
79594
79595         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79596         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79597         in the 2003-05-30 sync from glibc.
79598
79599         .h files should stand alone, but we shouldn't include <sys/types.h>
79600         if we can get away with just <stddef.h>.
79601
79602         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79603         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79604         rather than <sys/types.h>, as we merely need size_t.
79605         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79606         to get size_t.
79607         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79608         Include <stdio.h>, to get FILE.
79609         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79610         memcasecmp.h has included <stddef.h> and all we need is size_t.
79611         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79612         our interface, instead of including <sys/types.h>
79613
79614 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79615
79616         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79617         now, as glibc mktime is buggy on non-glibc systems.
79618
79619 2003-06-03  Karl Berry  <karl@gnu.org>
79620
79621         * config/config.sub: update from prep.
79622
79623 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79624
79625         [from coreutils]
79626         Fix some minor time-related bugs with POSIX time arguments.
79627         Some valid time stamps were being rejected (notably -1, and
79628         time stamps before 1900 on 64-bit hosts).  And some invalid
79629         time stamps were being accepted, e.g. September 31.
79630
79631         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79632         that we can return (time_t) -1 successfully.
79633         * lib/posixtm.c: Likewise.
79634         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79635         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79636         (t): Remove static var.
79637         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79638         of static var.  All uses changed.
79639         (year): Do not reject years before 1900; they can occur with
79640         64-bit time_t.
79641         (posix_time_parse): Do not check for out-of-range components;
79642         that is now the caller's responsibility, since our checks were
79643         only approximations.
79644         (posixtime): Use mktime to check for out-of-range components,
79645         since it knows them exactly.
79646         If mktime returns (time_t) -1, check whether an error actually occurred
79647         by invoking localtime on -1.
79648         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79649         posixtime failures better.
79650         Improve the test data (in comments only).
79651
79652 2003-06-02  Karl Berry  <karl@gnu.org>
79653
79654         * config/mkinstalldirs (version): new variable.
79655         (--version): new option.
79656         (usage): improve message.
79657
79658 2003-05-30  Karl Berry  <karl@gnu.org>
79659
79660         * lib/mktime.c: update from libc.
79661
79662 2003-05-30  Bruno Haible  <bruno@clisp.org>
79663
79664         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79665         * config/config.rpath: Upgrade to gettext-0.12.1.
79666
79667 2003-05-30  Bruno Haible  <bruno@clisp.org>
79668
79669         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79670         * m4/nls.m4: New file, from gettext-0.12.1.
79671         * m4/po.m4: New file, from gettext-0.12.1.
79672         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79673
79674 2003-05-30  Bruno Haible  <bruno@clisp.org>
79675
79676         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79677         * lib/localcharset.h: Likewise.
79678         * lib/localcharset.c: Likewise.
79679
79680 2003-05-29  Karl Berry  <karl@gnu.org>
79681
79682         * config/config.rpath: update from gettext.
79683
79684 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79685
79686         Assume the headers required for C89 freestanding compilers.
79687         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79688         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79689         * m4/human.m4 (gl_HUMAN): Likewise.
79690         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79691         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79692         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79693         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79694         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79695         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79696
79697 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79698
79699         Assume the headers required for C89 freestanding compilers.
79700         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79701         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79702         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79703         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79704         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79705         define, since <limits.h> is guaranteed to do that.
79706         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79707         * lib/exclude.c: Include <stdbool.h> unconditionally.
79708         * lib/tempname.c: Include <stddef.h> unconditionally.
79709         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79710         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79711         <stddef.h> does that.
79712         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79713         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79714         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79715         needed.
79716         * lib/xstrtol.c: Likewise.
79717         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79718         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79719
79720         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79721         warnings on some platforms.
79722
79723         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79724         arbitrarily.
79725
79726 2003-05-26  Jim Meyering  <jim@meyering.net>
79727
79728         Merge in a change from coreutils:
79729         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79730         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79731         that condition, rather than `-1' which is slightly misleading.
79732         Change the name of the cache variable to have the gl_ prefix.
79733         Prompted by a patch from Richard Dawe for DJGPP.
79734
79735 2003-05-24  Karl Berry  <karl@gnu.org>
79736
79737         * config/config.guess: update from prep.
79738
79739 2003-05-22  Karl Berry  <karl@gnu.org>
79740
79741         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79742
79743 2003-05-20  Karl Berry  <karl@gnu.org>
79744
79745         * config/config.guess: update from prep.
79746
79747 2003-05-18  Karl Berry  <karl@gnu.org>
79748
79749         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79750         might actually be set by the user.
79751
79752         * config/depcomp, install-sh, mdate-sh: update from automake.
79753
79754 2003-05-17  Bruno Haible  <bruno@clisp.org>
79755
79756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79757         invalid expansion for AC_EGREP_CPP.
79758         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79759         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79760         Suggested by Akim Demaille <akim@epita.fr> in
79761         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79762
79763 2003-05-12  Jim Meyering  <jim@meyering.net>
79764
79765         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79766         the space-padded-by-default conversion specifiers, %e, %k, %l.
79767
79768 2003-05-12  Bruno Haible  <bruno@clisp.org>
79769
79770         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79771         the string is longer than 4 KB.
79772
79773 2003-05-11  Karl Berry  <karl@gnu.org>
79774
79775         * config/config.{guess,sub}: update from prep.
79776
79777 2003-05-09  Bruno Haible  <bruno@clisp.org>
79778
79779         * modules/error: Add m4/strerror_r.m4 to file list.
79780
79781 2003-05-03  Bruno Haible  <bruno@clisp.org>
79782
79783         Upgrade to Unicode-4.0.
79784         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79785         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79786         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79787         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79788         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79789         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79790         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79791         Change width of U+E0100..U+E01EF from 1 to 0.
79792
79793 2003-04-25  Jim Meyering  <jim@meyering.net>
79794
79795         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79796         of type size_t, not int.
79797
79798 2003-04-25  Bruno Haible  <bruno@clisp.org>
79799
79800         * lib/copy-file.c: Include <stddef.h>, for size_t.
79801
79802 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79803
79804         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79805         code which expansion is under static control.  Patch imported from
79806         Akim Demaille's patch to Bison; see
79807         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79808
79809 2003-04-14  Bruno Haible  <bruno@clisp.org>
79810
79811         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79812
79813 2003-04-11  Jim Meyering  <jim@meyering.net>
79814
79815         Merge changes from Coreutils.
79816
79817         2003-03-22  Jim Meyering  <jim@meyering.net>
79818
79819         * lib/strftime.c (widen): Cast alloca return value to proper type.
79820
79821         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79822
79823         From GNU libc.
79824         * lib/strftime.c (my_strftime): Handle very large width
79825         specifications for numeric values correctly.  Improve checks for
79826         overflow.
79827
79828         2003-01-19  Jim Meyering  <jim@meyering.net>
79829
79830         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79831         definitions.
79832         (nl_get_alt_digit) [! defined my_strftime]: Define.
79833         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79834         _nl_get_alt_digit and _nl_get_walt_digit.
79835
79836         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79837         libc. These changes have no effect outside of _LIBC.
79838
79839 2003-04-10  Bruno Haible  <bruno@clisp.org>
79840
79841         * modules/findprog: New file.
79842         * MODULES.html.sh (func_all_modules): Add it.
79843
79844 2003-04-10  Bruno Haible  <bruno@clisp.org>
79845
79846         * m4/findprog.m4: New file.
79847         * m4/eaccess.m4: New file.
79848
79849 2003-04-10  Bruno Haible  <bruno@clisp.org>
79850
79851         * lib/findprog.h: New file, from GNU gettext.
79852         * lib/findprog.c: New file, from GNU gettext.
79853
79854 2003-04-05  Jim Meyering  <jim@meyering.net>
79855
79856         Merge changes from Coreutils.
79857
79858         * lib/exclude.h (PARAMS): Remove definition and uses.
79859         * lib/exclude.c: Remove uses of `PARAMS'.
79860
79861         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79862         Add test-cases for DOS filenames. Declare program_name.
79863         (main): Set up program_name.  Patch by Rich Dawe.
79864
79865         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79866         error from mntctl.
79867         Use mntctl's return value to drive the entry-processing loop, since
79868         we can't rely on the value of the vmt_length member in the last
79869         entry.  On some systems doing so could result in exhausting
79870         virtual memory.  Based in part on a patch from Mike Jetzer.
79871
79872 2003-04-04  Bruno Haible  <bruno@clisp.org>
79873
79874         * modules/linebreak: New file.
79875         * MODULES.html.sh (func_all_modules): Add it.
79876
79877 2003-04-04  Bruno Haible  <bruno@clisp.org>
79878
79879         * m4/linebreak.m4: New file.
79880
79881 2003-04-04  Bruno Haible  <bruno@clisp.org>
79882
79883         * lib/linebreak.h: New file, from GNU gettext.
79884         * lib/linebreak.c: New file, from GNU gettext with slight
79885         modifications.
79886         * lib/lbrkprop.h: New file, from GNU gettext.
79887
79888 2003-04-03  Bruno Haible  <bruno@clisp.org>
79889
79890         * modules/utf8-ucs4: New file.
79891         * modules/utf16-ucs4: New file.
79892         * modules/ucs4-utf8: New file.
79893         * modules/ucs4-utf16: New file.
79894         * MODULES.html.sh (func_all_modules): Add them.
79895
79896 2003-04-03  Bruno Haible  <bruno@clisp.org>
79897
79898         * m4/utf-ucs4.m4: New file.
79899         * m4/ucs4-utf.m4: New file.
79900
79901 2003-04-03  Bruno Haible  <bruno@clisp.org>
79902
79903         * lib/utf8-ucs4.h: New file, from GNU gettext.
79904         * lib/utf16-ucs4.h: New file, from GNU gettext.
79905         * lib/ucs4-utf8.h: New file, from GNU gettext.
79906         * lib/ucs4-utf16.h: New file, from GNU gettext.
79907
79908 2003-04-02  Bruno Haible  <bruno@clisp.org>
79909
79910         * modules/binary-io: New file.
79911         * MODULES.html.sh (func_all_modules): Add it.
79912
79913 2003-04-02  Bruno Haible  <bruno@clisp.org>
79914
79915         * lib/binary-io.h: New file, from GNU gettext.
79916
79917 2003-04-01  Bruno Haible  <bruno@clisp.org>
79918
79919         * modules/pathname: New file.
79920         * MODULES.html.sh (func_all_modules): Add it.
79921
79922 2003-04-01  Bruno Haible  <bruno@clisp.org>
79923
79924         * lib/pathname.h: New file, from GNU gettext.
79925         * lib/concatpath.c: New file, from GNU gettext.
79926
79927 2003-03-30  Bruno Haible  <bruno@clisp.org>
79928
79929         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79930
79931 2003-03-30  Bruno Haible  <bruno@clisp.org>
79932
79933         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79934         function chown() doesn't exist.
79935
79936 2003-03-28  Bruno Haible  <bruno@clisp.org>
79937
79938         * modules/copy-file: New file.
79939         * MODULES.html.sh (func_all_modules): Add it.
79940
79941 2003-03-28  Bruno Haible  <bruno@clisp.org>
79942
79943         * m4/copy-file.m4: New file.
79944
79945 2003-03-28  Bruno Haible  <bruno@clisp.org>
79946
79947         * lib/copy-file.h: New file, from GNU gettext.
79948         * lib/copy-file.c: New file, from GNU gettext.
79949
79950 2003-03-18  Jim Meyering  <jim@meyering.net>
79951
79952         * lib/quote.c (quote_n): Fix typo in comment.
79953
79954 2003-03-18  Bruno Haible  <bruno@clisp.org>
79955
79956         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
79957         checking.
79958         * m4/onceonly_2_57.m4: Likewise.
79959
79960 2003-03-17  Bruno Haible  <bruno@clisp.org>
79961
79962         * m4/onceonly.m4: Require autoconf 2.54 or newer.
79963         (m4_quote): Remove macro.
79964         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
79965
79966 2003-03-14  Jim Meyering  <jim@meyering.net>
79967
79968         Merge changes from Coreutils.
79969         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
79970         to be const, in order to avoid warnings.
79971         (obstack_room): Likewise.
79972         (obstack_empty_p): Likewise.
79973
79974 2003-03-14  Bruno Haible  <bruno@clisp.org>
79975
79976         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
79977         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
79978
79979 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79980
79981         Merge changes from Bison.
79982         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
79983         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
79984         when compiling Bison 1.875's `bitset bset = obstack_alloc
79985         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
79986         * lib/hash.c: Include <stdbool.h> unconditionally.
79987
79988 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79989
79990         * m4/onceonly.m4 (m4_quote): New macro.
79991         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
79992         Quote AC_FOREACH variable-expansions properly.
79993
79994 2003-03-13  Paul Eggert  <eggert@twinsun.com>
79995
79996         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
79997
79998 2003-03-09  Paul Eggert  <eggert@twinsun.com>
79999
80000         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80001         Reported by Bruce Becker; see:
80002         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80003
80004 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80005             Bruno Haible  <bruno@clisp.org>
80006
80007         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80008         Reported by John Hughes, see
80009         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80010
80011 2003-02-20  Bruno Haible  <bruno@clisp.org>
80012
80013         * MODULES.html.sh (func_all_modules): Add poll.
80014
80015 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80016
80017         * modules/poll: New file.
80018
80019 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80020
80021         * lib/poll_.h: New file.
80022         * lib/poll.c: New file.
80023
80024 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80025
80026         * m4/poll.m4: New file.
80027
80028 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80029
80030         * modules/mathl: New file.
80031
80032 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80033
80034         * lib/mathl.h: New file.
80035         * lib/acosl.c: New file.
80036         * lib/asinl.c: New file.
80037         * lib/atanl.c: New file.
80038         * lib/ceill.c: New file.
80039         * lib/cosl.c: New file.
80040         * lib/expl.c: New file.
80041         * lib/floorl.c: New file.
80042         * lib/frexpl.c: New file.
80043         * lib/ldexpl.c: New file.
80044         * lib/logl.c: New file.
80045         * lib/sincosl.c: New file.
80046         * lib/sinl.c: New file.
80047         * lib/sqrtl.c: New file.
80048         * lib/tanl.c: New file.
80049         * lib/trigl.c: New file.
80050         * lib/trigl.h: New file.
80051
80052 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80053
80054         * m4/mathl.m4: New file.
80055
80056 2003-02-18  Bruno Haible  <bruno@clisp.org>
80057
80058         * MODULES.html.sh (func_all_modules): Add mathl.
80059
80060 2003-02-17  Bruno Haible  <bruno@clisp.org>
80061
80062         * modules/mkdtemp: New module.
80063         * MODULES.html.sh (func_all_modules): Add it.
80064
80065 2003-02-17  Bruno Haible  <bruno@clisp.org>
80066
80067         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80068
80069 2003-02-17  Bruno Haible  <bruno@clisp.org>
80070
80071         * lib/mkdtemp.h: New file, from GNU gettext.
80072         * lib/mkdtemp.c: New file, from GNU gettext.
80073
80074 2003-02-02  Jim Meyering  <jim@meyering.net>
80075
80076         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80077         e.g. glibc-2.2.93.
80078
80079 2003-01-31  Bruno Haible  <bruno@clisp.org>
80080
80081         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80082         'rpl_rename'.
80083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80084         'rpl_strnlen'.
80085         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80086         'rpl_strtod'.
80087         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80088         'rpl_utime'.
80089
80090 2003-01-31  Bruno Haible  <bruno@clisp.org>
80091
80092         * lib/rename.c: #undef rename before defining rpl_rename.
80093         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80094
80095 2003-01-30  Bruno Haible  <bruno@clisp.org>
80096
80097         * modules/vasnprintf, modules/vasprintf: New modules.
80098         * MODULES.html.sh (func_all_modules): Add them.
80099
80100 2003-01-30  Bruno Haible  <bruno@clisp.org>
80101
80102         * m4/signed.m4: New file, from GNU gettext.
80103         * m4/longdouble.m4: New file, from GNU gettext.
80104         * m4/wchar_t.m4: New file, from GNU gettext.
80105         * m4/wint_t.m4: New file, from GNU gettext.
80106         * m4/vasnprintf.m4: New file.
80107         * m4/vasprintf.m4: New file.
80108
80109 2003-01-30  Bruno Haible  <bruno@clisp.org>
80110
80111         * lib/printf-args.h: New file, from GNU gettext.
80112         * lib/printf-args.c: New file, from GNU gettext.
80113         * lib/printf-parse.h: New file, from GNU gettext.
80114         * lib/printf-parse.c: New file, from GNU gettext.
80115         * lib/vasnprintf.h: New file, from GNU gettext.
80116         * lib/vasnprintf.c: New file, from GNU gettext.
80117         * lib/asnprintf.c: New file, from GNU gettext.
80118         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80119         * lib/vasprintf.c: New file, from GNU gettext.
80120         * lib/asprintf.c: New file, from GNU gettext.
80121
80122 2003-01-29  Bruno Haible  <bruno@clisp.org>
80123
80124         * modules/stpncpy: New module.
80125         * MODULES.html.sh (func_all_modules): Add it.
80126
80127 2003-01-29  Bruno Haible  <bruno@clisp.org>
80128
80129         * m4/stpncpy.m4: New file.
80130
80131 2003-01-29  Bruno Haible  <bruno@clisp.org>
80132
80133         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80134         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80135
80136 2003-01-28  Bruno Haible  <bruno@clisp.org>
80137
80138         * modules/c-ctype: New module.
80139         * MODULES.html.sh (func_all_modules): Add it.
80140
80141 2003-01-28  Bruno Haible  <bruno@clisp.org>
80142
80143         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80144         Paul Eggert.
80145         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80146         Paul Eggert.
80147
80148 2003-01-27  Bruno Haible  <bruno@clisp.org>
80149
80150         * modules/xsetenv: New module.
80151         * MODULES.html.sh (func_all_modules): Add it.
80152
80153 2003-01-27  Bruno Haible  <bruno@clisp.org>
80154
80155         * lib/xsetenv.h: New file, from GNU gettext.
80156         * lib/xsetenv.c: New file, from GNU gettext.
80157
80158 2003-01-23  Jim Meyering  <jim@meyering.net>
80159
80160         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80161         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80162
80163 2003-01-23  Bruno Haible  <bruno@clisp.org>
80164
80165         * modules/minmax: New module.
80166         * MODULES.html.sh (func_all_modules): Add it.
80167
80168 2003-01-23  Bruno Haible  <bruno@clisp.org>
80169
80170         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80171         Eggert.
80172
80173 2003-01-22  Bruno Haible  <bruno@clisp.org>
80174
80175         * modules/exit: New module.
80176         * MODULES.html.sh (func_all_modules): Add it.
80177
80178 2003-01-22  Bruno Haible  <bruno@clisp.org>
80179
80180         * lib/exit.h: New file, from GNU gettext.
80181
80182 2003-01-19  Bruno Haible  <bruno@clisp.org>
80183
80184         * gnulib-tool: Recognize option --extract-maintainer.
80185         (func_get_maintainer): New function.
80186         * modules/*: Add Maintainer entry.
80187
80188 2003-01-16  Jim Meyering  <jim@meyering.net>
80189
80190         * m4/regex.m4: The `regex' struct is both input and output.
80191         Initialize it before each use.  Patch by Tim Waugh.
80192
80193 2003-01-16  Bruno Haible  <bruno@clisp.org>
80194
80195         * MODULES.html.sh: Add a table of contents. Add the module name as
80196         leftmost column. Add hyperlinks.
80197
80198 2003-01-15  Bruno Haible  <bruno@clisp.org>
80199
80200         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80201
80202 2003-01-15  Bruno Haible  <bruno@clisp.org>
80203
80204         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80205         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80206         suffix.
80207
80208 2003-01-15  Bruno Haible  <bruno@clisp.org>
80209
80210         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80211
80212 2003-01-15  Bruno Haible  <bruno@clisp.org>
80213
80214         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80215         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80216
80217 2003-01-14  Jim Meyering  <jim@meyering.net>
80218
80219         * lib/same.c (same_name): Tweak a comment.
80220
80221 2003-01-14  Bruno Haible  <bruno@clisp.org>
80222
80223         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80224         when a string comparison is sufficient.
80225
80226 2003-01-14  Bruno Haible  <bruno@clisp.org>
80227
80228         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80229         'unsigned int'.
80230
80231 2003-01-14  Bruno Haible  <bruno@clisp.org>
80232
80233         * lib/hash-pjw.c: Add comment about low quality of this function.
80234
80235 2003-01-13  Bruno Haible  <bruno@clisp.org>
80236
80237         * modules/stpcpy: Distribute lib/stpcpy.h.
80238         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80239
80240 2003-01-13  Bruno Haible  <bruno@clisp.org>
80241
80242         * modules/*: Add a description.
80243         * modules/strpbrk: Fix Makefile.am snippet.
80244         * modules/strtoimax: Fix dependencies.
80245         * modules/strtoumax: Likewise.
80246
80247 2003-01-13  Bruno Haible  <bruno@clisp.org>
80248
80249         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80250         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80251         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80252
80253 2003-01-13  Bruno Haible  <bruno@clisp.org>
80254
80255         * gnulib-tool (func_create_testdir): Store config/* files in the main
80256         directory.
80257         * config.rpath: Move to ...
80258         * config/config.rpath: ... here.
80259         * modules/gettext: Contains config/config.rpath, not config.rpath.
80260         * modules/iconv: Likewise.
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         * m4/getstr.m4: Remove.
80268         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80269
80270 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80271
80272         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80273         to avoid collisions with libcurses and libreadline.
80274
80275         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80276         * lib/getstr.h, getstr.c: Remove.
80277         * lib/getline.c: Include "getline.h", to check interface.
80278         Move body of old getstr.c here: this defines MIN_CHUNK and
80279         declares getdelim2, which is renamed from getstr.
80280         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80281
80282         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80283         All uses changed.
80284         * lib/linebuffer.h: Likewise.
80285         (readline): Remove backward-compatibility macro.
80286
80287 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80288
80289         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80290         to avoid collisions with libcurses and libreadline.
80291         * getstr: Remove.
80292         * MODULES.html.sh: Remove getstr.
80293         * modules/getline: Depend on unlocked-io, not getstr.
80294
80295 2003-01-12  Jim Meyering  <jim@meyering.net>
80296
80297         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80298
80299 2003-01-10  Bruno Haible  <bruno@clisp.org>
80300
80301         * modules/alloca: Change Makefile.am requirements. Simplify Include
80302         requirements. Add lib/alloca_.h to file list.
80303
80304 2003-01-10  Bruno Haible  <bruno@clisp.org>
80305
80306         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80307
80308 2003-01-10  Bruno Haible  <bruno@clisp.org>
80309
80310         * lib/alloca_.h: New file.
80311         * lib/getdate.y: Unconditionally include alloca.h.
80312         * lib/makepath.c: Likewise.
80313         * lib/setenv.c: Likewise.
80314         * lib/userspec.c: Likewise.
80315
80316 2003-01-09  Karl Berry  <karl@gnu.org>
80317
80318         * MODULES.html.sh: include `dirname $0` in PATH, to find
80319         gnulib-tool.
80320
80321 2003-01-09  Bruno Haible  <bruno@clisp.org>
80322
80323         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80324         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80325
80326 2003-01-09  Bruno Haible  <bruno@clisp.org>
80327
80328         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80329
80330 2003-01-09  Bruno Haible  <bruno@clisp.org>
80331
80332         * lib/stdbool.h.in: New file.
80333
80334 2003-01-09  Bruno Haible  <bruno@clisp.org>
80335
80336         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80337         * MODULES.html.sh: Likewise.
80338
80339 2003-01-08  Jim Meyering  <jim@meyering.net>
80340
80341         * lib/full-write.c: Undefine and define-away `const' after inclusion
80342         of errno.h, not before.  Suggestion from Bruno Haible.
80343
80344 2003-01-08  Bruno Haible  <bruno@clisp.org>
80345
80346         * modules/full-read: Depend on full-write.
80347
80348 2003-01-08  Bruno Haible  <bruno@clisp.org>
80349
80350         * lib/safe-read.c: Include specification header first, to ensure its
80351         selfcontainedness.
80352         * lib/full-write.c: Likewise.
80353
80354 2003-01-07  Jim Meyering  <jim@meyering.net>
80355
80356         * lib/full-write.c: Rework so that it may serve to define full_read,
80357         too.
80358         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80359
80360 2003-01-07  Bruno Haible  <bruno@clisp.org>
80361
80362         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80363         <inttypes.h>.
80364         * lib/xstrtol.h: Likewise.
80365         * lib/xstrtoimax.c: Likewise.
80366         * lib/xstrtoumax.c: Likewise.
80367         * lib/human.h: Likewise.
80368
80369         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80370         on systems that have <inttypes.h> but not <stdint.h>.
80371
80372 2003-01-07  Bruno Haible  <bruno@clisp.org>
80373
80374         * MODULES.html.sh: Add copyright notice.
80375         (missed_files): Omit CVS directory entries.
80376         (func_module): Make it work with sed-3.02.
80377         * MODULES.txt: Remove file.
80378
80379 2003-01-06  Jim Meyering  <jim@meyering.net>
80380
80381         * lib/version-etc.c: Update year in translatable copyright string.
80382
80383 2003-01-03  Karl Berry  <karl@gnu.org>
80384
80385         * config/config.{guess,sub}: update from prep.
80386
80387 2003-01-02  Karl Berry  <karl@gnu.org>
80388
80389         * doc/COPYING.DOC: belatedly updated to 1.2.
80390
80391 2003-01-01  Karl Berry  <karl@gnu.org>
80392
80393         * gnulib-tool (func_verify_module): report module name $module in
80394         error message, not $1.
80395         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80396         be created, only if it doesn't exist.
80397         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80398
80399 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80400
80401         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80402
80403 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80404
80405         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80406         memcmp if strcoll doesn't work.
80407
80408 2002-12-31  Bruno Haible  <bruno@clisp.org>
80409
80410         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80411         nonempty.
80412
80413 2002-12-31  Bruno Haible  <bruno@clisp.org>
80414
80415         * lib/memcoll.c (STRCOLL): New macro.
80416         (memcoll): Use it.
80417
80418 2002-12-31  Bruno Haible  <bruno@clisp.org>
80419
80420         * lib/localcharset.h: New file.
80421         * lib/localcharset.c: Include it.
80422         * lib/unicodeio.c: Likewise.
80423
80424 2002-12-31  Bruno Haible  <bruno@clisp.org>
80425
80426         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80427         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80428
80429 2002-12-31  Bruno Haible  <bruno@clisp.org>
80430
80431         * lib/getline.h: Include <stddef.h>, for size_t.
80432
80433         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80434         * lib/unicodeio.c: Don't include <stddef.h>.
80435
80436 2002-12-31  Bruno Haible  <bruno@clisp.org>
80437
80438         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80439         HAVE_TM_ZONE.
80440
80441 2002-12-24  Karl Berry  <karl@gnu.org>
80442
80443         * config/config.guess: update from prep.
80444
80445 2002-12-24  Bruno Haible  <bruno@clisp.org>
80446
80447         General infrasructure.
80448         * m4/README: Rewritten.
80449         * m4/onceonly.m4: New file.
80450         * m4/onceonly_2_57.m4: New file.
80451
80452         Module atexit.
80453         * m4/atexit.m4: New file.
80454
80455         Module strtod.
80456         * m4/strtod.m4: New file.
80457
80458         Module strtol.
80459         * m4/strtol.m4: New file.
80460
80461         Module strtoul.
80462         * m4/strtoul.m4: New file.
80463
80464         Module memchr.
80465         * m4/memchr.m4: New file.
80466
80467         Module memcmp.
80468         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80469         (jm_FUNC_MEMCMP): Invoke it.
80470
80471         Module memcpy.
80472         * m4/memcpy.m4: New file.
80473
80474         Module memmove.
80475         * m4/memmove.m4: New file.
80476
80477         Module memset.
80478         * m4/memset.m4: New file.
80479
80480         Module strcspn.
80481         * m4/strcspn.m4: New file.
80482
80483         Module strpbrk.
80484         * m4/strpbrk.m4: New file.
80485
80486         Module strstr.
80487         * m4/strstr.m4: New file.
80488
80489         Module strerror.
80490         * m4/strerror.m4: New file.
80491
80492         Module mktime.
80493         * m4/mktime.m4: Renamed from jm-mktime.m4.
80494         (gl_PREREQ_MKTIME): New macro.
80495         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80496
80497         Module malloc.
80498         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80499         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80500         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80501
80502         Module realloc.
80503         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80504         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80505         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80506
80507         Module strftime.
80508         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80509         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80510         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80511         gl_TM_GMTOFF.
80512         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80513
80514         Module xalloc.
80515         * m4/xalloc.m4: New file.
80516
80517         Module alloca.
80518         * m4/alloca.m4: New file.
80519
80520         Module putenv.
80521         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80522         (jm_FUNC_PUTENV): Invoke it.
80523
80524         Module setenv.
80525         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80526         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80527         when invoked twice.
80528         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80529         gt_FUNC_SETENV.
80530
80531         Module memrchr.
80532         * m4/memrchr.m4: New file.
80533
80534         Module stpcpy.
80535         * m4/stpcpy.m4: New file.
80536
80537         Module strcase.
80538         * m4/strcase.m4: New file.
80539
80540         Module strdup.
80541         * m4/strdup.m4: New file.
80542
80543         Module strnlen.
80544         * m4/strnlen.m4: New file.
80545
80546         Module strndup.
80547         * m4/strndup.m4: New file.
80548
80549         Module xstrtod.
80550         * m4/xstrtod.m4: New file.
80551
80552         Module xstrtol.
80553         * m4/xstrtol.m4: New file.
80554
80555         Module getdate.
80556         * m4/getdate.m4: New file.
80557
80558         Module unlocked-io.
80559         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80560         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80561         * m4/jm-glibc-io.m4n: Remove file.
80562
80563         Module long-options.
80564         * m4/long-options.m4: New file.
80565
80566         Module md5.
80567         * m4/md5.m4: New file.
80568
80569         Module sha.
80570         * m4/sha.m4: New file.
80571
80572         Module getstr.
80573         * m4/getstr.m4: New file.
80574
80575         Module getline.
80576         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80577         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80578         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80579         simply getline. Infoke gl_PREREQ_GETLINE.
80580
80581         Module obstack.
80582         * m4/obstack.m4: New file.
80583
80584         Module hash.
80585         * m4/hash.m4: New file.
80586
80587         Module readtokens.
80588         * m4/readtokens.m4: New file.
80589
80590         Module strverscmp.
80591         * m4/strverscmp.m4: New file.
80592
80593         Module stdbool.
80594         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80595         OSF/1.
80596
80597         Module strtoll.
80598         * m4/strtoll.m4: New file.
80599
80600         Module strtoull.
80601         * m4/strtoull.m4: New file.
80602
80603         Module strtoimax.
80604         * m4/strtoimax.m4: New file.
80605
80606         Module strtoumax.
80607         * m4/strtoumax.m4: New file.
80608
80609         Module xstrtoimax.
80610         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80611         jm_AC_PREREQ_XSTRTOIMAX.
80612         Moved the strtol prerequisites to strtol.m4.
80613         Moved the strtoll prerequisites to strtoll.m4.
80614         Moved the strtoimax prerequisites to strtoimax.m4.
80615
80616         Module xstrtoumax.
80617         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80618         jm_AC_PREREQ_XSTRTOUMAX.
80619         Moved the strtoul prerequisites to strtoul.m4.
80620         Moved the strtoull prerequisites to strtoull.m4.
80621         Moved the strtoumax prerequisites to strtoumax.m4.
80622
80623         Module chown.
80624         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80625         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80626
80627         Module dup2.
80628         * m4/dup2.m4: New file.
80629
80630         Module ftruncate.
80631         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80632         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80633
80634         Module getgroups.
80635         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80636         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80637
80638         Module gettimeofday.
80639         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80640         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80641         gl_PREREQ_GETTIMEOFDAY.
80642
80643         Module mkdir.
80644         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80645         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80646
80647         Module mkstemp.
80648         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80649         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80650         jm_AC_TYPE_UINTMAX_T.
80651         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80652
80653         Module stat.
80654         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80655         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80656
80657         Module lstat.
80658         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80659         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80660
80661         Module timespec.
80662         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80663         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80664         * m4/st_mtim.m4: Indentation.
80665
80666         Module nanosleep.
80667         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80668         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80669         gl_PREREQ_NANOSLEEP.
80670
80671         Module regex.
80672         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80673         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80674         (gl_REGEX): New macro.
80675
80676         Module rename.
80677         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80678         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80679
80680         Module rmdir.
80681         * m4/rmdir.m4: New file.
80682
80683         Module utime.
80684         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80685         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80686         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80687
80688         Module dirname.
80689         * m4/dirname.m4: New file.
80690
80691         Module getopt.
80692         * m4/getopt.m4: New file.
80693
80694         Module unistd-safer.
80695         * m4/unistd-safer.m4: New file.
80696
80697         Module fnmatch.
80698         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80699         declaration.
80700         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80701         (gl_FUNC_FNMATCH_POSIX): New macro.
80702         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80703         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80704         simply fnmatch.
80705
80706         Module exclude.
80707         * m4/exclude.m4: New file.
80708
80709         Module human.
80710         * m4/human.m4: New file.
80711
80712         Module acl.
80713         * m4/acl.m4: Nop.
80714
80715         Module backupfile.
80716         * m4/backupfile.m4: New file.
80717         * m4/d-ino.m4: Indentation.
80718
80719         Module fsusage.
80720         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80721         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80722         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80723
80724         Module dirfd.
80725         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80726         requirements.
80727
80728         Module euidaccess.
80729         * m4/euidaccess.m4: New file.
80730
80731         Module file-type.
80732         * m4/file-type.m4: New file.
80733
80734         Module fileblocks.
80735         * m4/fileblocks.m4: New file.
80736
80737         Module filemode.
80738         * m4/filemode.m4: New file.
80739
80740         Module isdir.
80741         * m4/isdir.m4: New file.
80742
80743         Module lchown.
80744         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80745         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80746
80747         Module makepath.
80748         * m4/makepath.m4: New file.
80749
80750         Module modechange.
80751         * m4/modechange.m4: New file.
80752
80753         Module mountlist.
80754         * m4/mountlist.m4: New file.
80755         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80756         Indentation.
80757
80758         Module path-concat.
80759         * m4/path-concat.m4: New file.
80760
80761         Module pathmax.
80762         * m4/pathmax.m4: New file.
80763
80764         Module same.
80765         * m4/same.m4: New file.
80766
80767         Module save-cwd.
80768         * m4/save-cwd.m4: New file.
80769
80770         Module savedir.
80771         * m4/savedir.m4: New file.
80772
80773         Module xgetcwd.
80774         * m4/xgetcwd.m4: New file.
80775         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80776
80777         Module xreadlink.
80778         * m4/xreadlink.m4: New file.
80779
80780         Module safe-read.
80781         * m4/safe-read.m4: New file.
80782
80783         Module safe-write.
80784         * m4/safe-write.m4: New file.
80785
80786         Module closeout.
80787         * m4/closeout.m4: New file.
80788
80789         Module stdio-safer.
80790         * m4/stdio-safer.m4: New file.
80791
80792         Module getpass.
80793         * m4/getpass.m4: New file.
80794
80795         Module getugroups.
80796         * m4/getugroups.m4: New file.
80797
80798         Module group-member.
80799         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80800         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80801
80802         Module idcache.
80803         * m4/idcache.m4: New file.
80804
80805         Module userspec.
80806         * m4/userspec.m4: New file.
80807
80808         Module gettime.
80809         * m4/clock_time.m4: New file.
80810         * m4/gettime.m4: New file.
80811
80812         Module settime.
80813         * m4/settime.m4: New file.
80814
80815         Module posixtm.
80816         * m4/posixtm.m4: New file.
80817
80818         Module gethostname.
80819         * m4/gethostname.m4: New file.
80820
80821         Module canon-host.
80822         * m4/canon-host.m4: New file.
80823
80824         Module gettext.
80825         * m4/codeset.m4: New file, from gettext-0.11.5.
80826         * m4/gettext.m4: New file, from gettext-0.11.5.
80827         * m4/glibc21.m4: New file, from gettext-0.11.5.
80828         * m4/iconv.m4: New file, from gettext-0.11.5.
80829         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80830         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80831         * m4/inttypes.m4: New file, from gettext-0.11.5.
80832         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80833         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80834         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80835         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80836         * m4/lib-link.m4: New file, from gettext-0.11.5.
80837         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80838         * m4/progtest.m4: New file, from gettext-0.11.5.
80839         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80840         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80841         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80842
80843         Module localcharset.
80844         * m4/localcharset.m4: New file.
80845
80846         Module hard-locale.
80847         * m4/hard-locale.m4: New file.
80848
80849         Module mbswidth.
80850         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80851         onceonly macros.
80852         * m4/mbrtowc.m4: Add comment.
80853
80854         Module memcasecmp.
80855         * m4/memcasecmp.m4: New file.
80856
80857         Module memcoll.
80858         * m4/memcoll.m4: New file.
80859
80860         Module unicodeio.
80861         * m4/unicodeio.m4: New file.
80862
80863         Module rpmatch.
80864         * m4/rpmatch.m4: New file.
80865
80866         Module yesno.
80867         * m4/yesno.m4: New file.
80868
80869         Module exitfail.
80870         * m4/exitfail.m4: New file.
80871
80872         Module c-stack.
80873         * m4/c-stack.m4 (gl_C_STACK): New macro.
80874         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80875
80876         Module error.
80877         * m4/error.m4 (gl_ERROR): New macro.
80878         (jm_PREREQ_ERROR): Use onceonly macros.
80879
80880         Module fatal.
80881         * m4/fatal.m4: New file.
80882
80883         Module getloadavg.
80884         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80885         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80886
80887         Module getpagesize.
80888         * m4/getpagesize.m4: New file.
80889
80890         Module getusershell.
80891         * m4/getusershell.m4: New file.
80892
80893         Module physmem.
80894         * m4/physmem.m4: New file.
80895
80896         Module posixver.
80897         * m4/posixver.m4: New file.
80898
80899         Module quotearg.
80900         * m4/quotearg.m4: New file.
80901
80902         Module quote.
80903         * m4/quote.m4: New file.
80904
80905         Module readutmp.
80906         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80907
80908         Module sig2str.
80909         * m4/sig2str.m4: New file.
80910
80911         Other.
80912         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80913         ulonglong.m4.
80914         * m4/intmax_t.m4: New file.
80915         * m4/d-type.m4: Indentation.
80916         * m4/jm-macros.m4: Update.
80917         * m4/prereq.m4 (jm_PREREQ): Update.
80918         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80919         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80920         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80921         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80922         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80923         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80924         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80925         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80926         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80927         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80928         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80929         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80930         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80931         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80932         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80933         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80934         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80935         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80936         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80937
80938 2002-12-24  Bruno Haible  <bruno@clisp.org>
80939
80940         * MODULES.txt: Update according to m4/ changes.
80941
80942         Module gettext.
80943         * config.rpath: New file, from gettext-0.11.5.
80944
80945         * modules/*: New module descriptions.
80946         * gnulib-tool: New file.
80947         * MODULES.html.sh: New file.
80948
80949 2002-12-21  Karl Berry  <karl@gnu.org>
80950
80951         * doc/fdl.texi: update to version 1.2.
80952
80953 2002-12-19  Karl Berry  <karl@gnu.org>
80954
80955         * config/config.guess: update from prep.
80956
80957 2002-12-18  Bruno Haible  <bruno@clisp.org>
80958
80959         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
80960         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
80961
80962 2002-12-17  Bruno Haible  <bruno@clisp.org>
80963
80964         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
80965         stdlib.h, string.h.
80966
80967 2002-12-17  Bruno Haible  <bruno@clisp.org>
80968
80969         * lib/canon-host.c (strdup): Remove unused declaration.
80970
80971         * lib/fsusage.c: Include full_read.h.
80972         (get_fs_usage): Use full_read instead of safe_read.
80973
80974         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
80975
80976 2002-12-12  Karl Berry  <karl@gnu.org>
80977
80978         * config/config.guess: update from prep.
80979
80980 2002-12-11  Bruno Haible  <bruno@clisp.org>
80981
80982         * m4/setenv.m4: New file, from gettext-0.11.5.
80983
80984 2002-12-11  Bruno Haible  <bruno@clisp.org>
80985
80986         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
80987         not unsetenv().
80988         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
80989         modifications:
80990
80991         2002-12-11  Bruno Haible  <bruno@clisp.org>
80992
80993                 * setenv.c (alloca): Fall back to malloc.
80994                 (freea): New macro.
80995                 (setenv): Use freea() to free memory allocated with alloca().
80996
80997         2002-11-13  Bruno Haible  <bruno@clisp.org>
80998
80999                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81000                 function declarations.
81001                 * unsetenv.c (unsetenv): Likewise.
81002
81003         2002-03-04  Bruno Haible  <bruno@clisp.org>
81004
81005                 Portability to AIX 4.3.3.
81006                 * unsetenv.c: New file, extracted from setenv.c.
81007                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81008
81009         2001-12-20  Bruno Haible  <bruno@clisp.org>
81010
81011                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81012                 use malloc instead. For SunOS 4.
81013
81014         2001-12-11  Bruno Haible  <bruno@clisp.org>
81015
81016                 * setenv.c: Declare alloca.
81017                 (compar_fn_t): New typedef.
81018                 (KNOWN_VALUE, STORE_VALUE): Use it.
81019
81020         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81021         setenv.h.
81022
81023 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81024
81025         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81026         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81027         Choose values that are less likely to collide with system fnmatch
81028         options.
81029         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81030         defined (e.g., a pure POSIX system).
81031         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81032         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81033
81034 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81035
81036         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81037         a pain in practice to deal with generated m4 files.  This change
81038         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81039
81040         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81041         and jm-glibc-io.m4, as they are no longer a special case.
81042         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81043         kludge and the auto-generation stuff.  Check only whether the
81044         functions are declared, not whether they exist, since older hosts
81045         that don't declare the functions can't use the optimization anyway.
81046
81047 2002-12-06  Jim Meyering  <jim@meyering.net>
81048
81049         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81050
81051         Merge in changes from libc's misc/error.c, in preparation
81052         for the merge of gnulib's changes back into libc.
81053
81054         * lib/error.c (_): Define only if not already defined.
81055         Move definition to follow all #include directives.
81056         Include unlocked-io.h only if !_LIBC.
81057         [_LIBC]: Include <libio/libioP.h>.
81058         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81059         (fflush): Tweak definition to use INTUSE.
81060         (putc): Define.
81061
81062 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81063
81064         * lib/alloca.c [defined emacs]: Include "lisp.h".
81065         (xalloc_die) [defined emacs]: New macro.
81066         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81067         [! defined emacs]: Include <xalloc.h>.
81068         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81069         (pointer): Typedef to POINTER_TYPE *.
81070         (malloc): Remove decl; we now always use xmalloc.
81071         (alloca): Use old-style definition, since Emacs needs this.
81072         Check for arithmetic overflow when computing combined size.
81073
81074 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81075
81076         Do not generate unlocked-io.h automatically, since it's easier to
81077         maintain it by hand.
81078
81079         * lib/unlocked-io.h: New file, from GNU diffutils,
81080         but with proper copyright notice and attribution.
81081         * lib/gen-uio: Remove.
81082         * lib/Makefile.am: Add copyright notice.
81083         (libfetish_a_SOURCES): Add unlocked-io.h.
81084         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81085         (DISTCLEANFILES, io_functions): Remove macros.
81086         (EXTRA_DIST): Remove gen_uio.
81087         (unlocked-io.h): Remove rule.
81088
81089 2002-12-04  Jim Meyering  <jim@meyering.net>
81090
81091         Reflect the fact that stat.c and lstat.c are no longer generated.
81092         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81093         (DISTCLEANFILES): Likewise.
81094         (EXTRA_DIST): Likewise.
81095         (all_local): Don't depend on stat.c or lstat.c.
81096         (stat.c, lstat.c): Remove rules.
81097         (EXTRA_DIST): Remove xstat.in.
81098
81099         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81100         * lib/stat.c: New file.  Contents mostly from xstat.in.
81101         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81102         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81103
81104         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81105         too.
81106         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81107
81108 2002-12-03  Jim Meyering  <jim@meyering.net>
81109
81110         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81111         but not semantics, to minimize the differences between these two files.
81112         (safe_read): Change comment to mention SAFE_READ_ERROR.
81113
81114         * lib/safe-read.c (IS_EINTR): Define.
81115         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81116
81117 2002-12-02  Jim Meyering  <jim@meyering.net>
81118
81119         * lib/safe-read.c (EINTR): Define.
81120         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81121         (INT_MAX): Provide fallback.
81122         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81123
81124         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81125
81126 2002-12-02  Bruno Haible  <bruno@clisp.org>
81127
81128         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81129         Define, taken from safe-read.c.
81130         (INT_MAX): Provide fallback.
81131         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81132         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81133
81134         * lib/safe-read.c (EINTR): Remove definition.
81135         (safe_read): Don't use EINTR if it is absent.
81136
81137 2002-12-01  Jim Meyering  <jim@meyering.net>
81138
81139         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81140         zero.
81141         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81142
81143 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81144
81145         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81146         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81147         with `if (! (value < limit)) abort ();', for readability.
81148
81149 2002-11-26  Karl Berry  <karl@gnu.org>
81150
81151         * lib/strdup.c: copy from libc again, with jim's ok.
81152         * lib/.cppi-disable: re-add strdup.c
81153
81154 2002-11-25  Karl Berry  <karl@gnu.org>
81155
81156         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81157         instead of "strtol.c".
81158
81159 2002-11-25  Karl Berry  <karl@gnu.org>
81160
81161         * config/install-sh: update from automake for variable quoting, $0 in
81162         error msgs, etc.
81163
81164         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81165         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81166         entry.
81167
81168 2002-11-25  Jim Meyering  <jim@meyering.net>
81169
81170         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81171
81172 2002-11-24  Karl Berry  <karl@gnu.org>
81173
81174         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81175         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81176
81177 2002-11-24  Jim Meyering  <jim@meyering.net>
81178
81179         Update from coreutils:
81180
81181         * lib/mktime.c: Merge in changes from libc.
81182
81183         Avoid a link-time failure on some Linux systems.
81184         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81185         (otherwise).
81186         (__mon_yday): Declare with the STATIC attribute.
81187         (__mktime_internal): Likewise.
81188         Based on a report from Greg Schafer.
81189
81190 2002-11-23  Jim Meyering  <jim@meyering.net>
81191
81192         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81193         Use `unsigned', not `int', as type of index.
81194
81195         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81196
81197         * lib/fsusage.c: Remove unneeded parentheses around operands of
81198         `defined'.
81199
81200 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81201
81202         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81203         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81204         so that we can be included first.
81205         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81206         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81207         No need to include stddef.h or sys/types.h any more.
81208         Surround local include files with "", not "<>".
81209         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81210         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81211         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81212         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81213         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81214         (ISPRINT): Remove; no longer needed now that we assume C89.
81215
81216         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81217         Preserve errno.
81218
81219         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81220         quotearg_char): Use SIZE_MAX rather than
81221         (size_t) -1 when we are talking about "infinity".
81222
81223         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81224
81225 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81226
81227         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81228         hint that one should use `if (! x) abort ();' rather than `assert
81229         (x);', and anyway it's one less thing to worry about configuring.
81230         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81231         hash_rehash, hash_insert): Use abort rather than assert.
81232
81233 2002-11-22  Bruno Haible  <bruno@clisp.org>
81234
81235         * lib/safe-read.h: Assume C89. Add comments.
81236         (safe_read): Change return type to size_t.
81237         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81238         byte counts > SSIZE_MAX correctly.
81239         * lib/safe-write.h: New file.
81240         * lib/safe-write.c: New file.
81241         * lib/full-read.h: New file.
81242         * lib/full-read.c: New file.
81243         * lib/full-write.h: Assume C89. Add comments.
81244         * lib/full-write.c: Include safe-write.h.
81245         (full_write): Rewritten to use safe_write.
81246         Suggested by Jim Meyering and Paul Eggert.
81247
81248 2002-11-21  Jim Meyering  <jim@meyering.net>
81249
81250         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81251
81252         Merge in changes from the coreutils.
81253
81254         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81255         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81256         <stdint.h>.
81257         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81258         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81259         int.  Work more efficiently if X is the same width as uintmax_t.
81260         Do not compare X to -1, to avoid bogus compiler warning.
81261         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81262         Don't assume that f_frsize and f_bsize are the same type.
81263
81264         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81265         warning on FreeBSD.
81266
81267         * lib/makepath.c (make_path): Restore umask *before* creating the final
81268         component.
81269         (make_path): Minor reformatting.
81270
81271         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81272         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81273         HAVE_MALLOC/HAVE_REALLOC.
81274
81275         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81276         dummy ones.  At least on GNU/Linux systems, `auto' means something
81277         else.
81278         From Michael Stone.
81279
81280 2002-11-21  Bruno Haible  <bruno@clisp.org>
81281
81282         Remove case insensitive option matching.
81283         * lib/argmatch.h (argcasematch): Remove declaration.
81284         (ARGCASEMATCH): Remove macro.
81285         (__xargmatch_internal): Remove case_sensitive argument.
81286         (XARGMATCH): Update.
81287         (XARGCASEMATCH): Remove macro.
81288         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81289         case_sensitive argument.
81290         (argcasematch): Remove function.
81291         (__xargmatch_internal): Remove case_sensitive argument.
81292         (main): Use XARGMATCH instead of XARGCASEMATCH.
81293
81294         * lib/xmalloc.c: Change compile-time error message. Add comment about
81295         required autoconf version.
81296
81297 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81298
81299         Merge argmatch cleanups from Bison.  Assume C89.
81300
81301         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81302         Include stdlib.h, for EXIT_FAILURE.
81303         Always include <string.h>, since we assume C89.
81304         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81305         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81306         Include <stddef.h> instead, since it's all we need for size_t.
81307         (PARAMS): Remove.  All uses removed.
81308         (ARRAY_CARDINALITY): Do not bother to #undef.
81309         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81310         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81311         Remove unnecessary parentheses.
81312         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81313         Insert necessary parentheses.
81314         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81315         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81316
81317 2002-11-19  Bruno Haible  <bruno@clisp.org>
81318
81319         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81320         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81321
81322         * lib/mbswidth.h (PARAMS): Remove macro.
81323         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81324         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81325
81326         * lib/gcd.h (PARAMS): Remove macro.
81327         (gcd): Use ANSI C function declarations.
81328         * lib/gcd.c (gcd): Likewise.
81329
81330 2002-11-15  Bruno Haible  <bruno@clisp.org>
81331
81332         * lib/strcspn.c: Include <stddef.h>.
81333         (strcspn): Use ANSI C function declaration. Change return type to
81334         size_t. Use NULL.
81335         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81336         (strpbrk): Use NULL.
81337         * lib/strpbrk.h (PARAMS): Remove macro.
81338         (strpbrk): Use ANSI C function declaration.
81339         * lib/strstr.c: Don't include <sys/types.h>.
81340         * lib/strstr.h (PARAMS): Remove macro.
81341         (strstr): Use ANSI C function declarations.
81342
81343 2002-11-14  Karl Berry  <karl@gnu.org>
81344
81345         * config/mkinstalldirs: `do' on separate line, instead of
81346         `for var; do'.
81347
81348 2002-11-06  Bruno Haible  <bruno@clisp.org>
81349
81350         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81351         * lib/gcd.c (gcd): Likewise.
81352
81353 2002-11-05  Bruno Haible  <bruno@clisp.org>
81354
81355         * lib/gcd.h: New file, from gettext-0.11.5.
81356         * lib/gcd.c: New file, from gettext-0.11.5.
81357
81358 2002-11-05  Bruno Haible  <bruno@clisp.org>
81359
81360         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81361         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81362         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81363         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81364
81365         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81366         <libintl.h>.
81367         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81368         <libintl.h>.
81369
81370         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81371         * lib/human.c: Include gettext.h instead of <libintl.h>.
81372         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81373         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81374         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81375         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81376         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81377         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81378         (textdomain): Remove definition.
81379         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81380
81381         * lib/long-options.c: Remove include of <libintl.h> and definition of
81382         _.
81383         * lib/same.c: Remove include of <libintl.h> and definition of _.
81384
81385 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81386
81387         * lib/config.charset: A few additions for Solaris.
81388
81389 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81390
81391         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81392         * lib/localcharset.c (locale_charset): Declare as extern "C".
81393
81394 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81395
81396         * lib/config.charset: msdos in uk_UA uses CP1125.
81397
81398 2002-11-04  Bruno Haible  <bruno@clisp.org>
81399
81400         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81401         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81402         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81403         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81404         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81405
81406 2002-11-04  Bruno Haible  <bruno@clisp.org>
81407
81408         * lib/localcharset.c (locale_charset): Don't return an empty string.
81409
81410 2002-11-04  Bruno Haible  <bruno@clisp.org>
81411
81412         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81413         aliases.
81414
81415 2002-11-04  Bruno Haible  <bruno@clisp.org>
81416
81417         * lib/config.charset: Update for newest glibc. Add canonical names
81418         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81419
81420 2002-11-04  Bruno Haible  <bruno@clisp.org>
81421
81422         * lib/config.charset: Add support for NetBSD.
81423
81424 2002-11-04  Bruno Haible  <bruno@clisp.org>
81425
81426         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81427
81428 2002-11-01  Bruno Haible  <bruno@clisp.org>
81429
81430         * configure.in: Add AC_CONFIG_AUX_DIR call.
81431         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81432         test/Makefile.
81433         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81434
81435 2002-09-28  Karl Berry  <karl@gnu.org>
81436
81437         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81438         installed automake until the next release, since changes have been
81439         made.
81440
81441 2002-09-25  Karl Berry  <karl@gnu.org>
81442
81443         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81444         * lib/getopt*: copy from libc/posix.
81445         * lib/gettext.h: copy from gettext.
81446         * lib/.cppi-disable: add strdup.c, gettext.h.
81447
81448 2002-09-25  Karl Berry  <karl@gnu.org>
81449
81450         * config/srclist.txt: enable gettext.h check.
81451         * config/config.{guess,sub}: update from prep.
81452         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81453                 from automake 1.6.3.
81454         See srclist*.
81455
81456 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81457
81458         * regex.c (PATFETCH): Remove the translating fetch.
81459         (PATFETCH_RAW): Rename to PATFETCH.
81460         (set_image_of_range): New fun.
81461         (SET_RANGE_TABLE_WORK_AREA): Use it.
81462         (regex_compile): Don't translate the pattern chars so eagerly.
81463         Only do it when inserting an `exactn' bytecode or when handling
81464         a char-range.
81465         (mutually_exclusive_p): Avoid empty statement.
81466
81467 2002-07-06  Jim Meyering  <meyering@lucent.com>
81468
81469         * m4/README: Don't mention Makefile.am.in.
81470         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81471
81472 2002-07-01  Jim Meyering  <meyering@lucent.com>
81473
81474         * lib/c-stack.c: Include sys/time.h.
81475         From Volker Borchert.
81476
81477 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81478
81479         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81480
81481 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81482
81483         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81484         New macro.  Use it uniformly instead of
81485         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81486         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81487         reported by Vin Shelton.
81488
81489 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81490
81491         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81492         Do not assume SA_SIGINFO behavior.
81493         Bug reported by Jim Meyering on NetBSD 1.5.2.
81494
81495 2002-06-22  Jim Meyering  <meyering@lucent.com>
81496
81497         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81499
81500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81501         now that configure.ac uses AC_GNU_SOURCE.
81502         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81503         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81504
81505         Update to latest tools.  Suggestions from Paul Eggert.
81506         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81507         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81508         * m4/fnmatch.m4: Likewise.
81509         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81510         to AC_HEADER_STDBOOL
81511
81512 2002-06-22  Jim Meyering  <meyering@lucent.com>
81513
81514         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81515         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81516
81517 2002-06-22  Jim Meyering  <meyering@lucent.com>
81518
81519         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81520
81521         * lib/exitfail.c, exitfail.h: Likewise.
81522         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81523
81524         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81525         of fnmatch.h.
81526         (EXTRA_DIST): Add fnmatch_loop.c.
81527         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81528
81529         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81530         * lib/fnmatch.c: Update from diffutils-2.8.2.
81531         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81532         * lib/fnmatch.h: Remove file.
81533
81534 2002-06-21  Jim Meyering  <meyering@lucent.com>
81535
81536         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81537         * m4/mbrtowc.m4: Likewise.
81538
81539         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81540         * m4/mbswidth.m4: Reflect name change:
81541         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81542         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81543
81544         * m4/lib-link.m4: Update from gettext-0.11.2.
81545         * m4/gettext.m4: Likewise.
81546
81547         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81548         From Alfred M. Szmidt.
81549
81550 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81551
81552         * lib/file-type.h: Report an error if neither S_ISREG nor
81553         S_IFREG is defined, instead of using a test specific to glibc
81554         2.2.  This should be safe, since POSIX requires S_ISREG and
81555         Unix Version 7 had S_IFREG.  We don't need to check for
81556         <sys/types.h> since we don't use any symbols that it defines.
81557
81558 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81559
81560         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81561         $@-t, so that each temporary file name is unique and valid in the first
81562         8 characters, for operation under DOS.
81563
81564 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81565
81566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81567
81568 2002-06-15  Jim Meyering  <meyering@lucent.com>
81569
81570         Work even with DJGPP 2.03, which lacks support for symlinks.
81571         From Richard Dawe.
81572         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81573         is defined.
81574         * lib/lchown.c (S_ISLNK): Likewise.
81575
81576 2002-06-15  Jim Meyering  <meyering@lucent.com>
81577
81578         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81579         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81580         have been included before this file.
81581
81582 2002-06-14  Jim Meyering  <meyering@lucent.com>
81583
81584         * lib/file-type.h: Use the version from diffutils-2.8.2.
81585         * lib/file-type.c: Likewise.
81586
81587 2002-06-07  Jim Meyering  <meyering@lucent.com>
81588
81589         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81590         They're needed at least for NetBSD 1.5.2.
81591         ($statxfs_includes): Include those same headers.
81592         ($statxfs_includes): Include sys/vfs.h if available.
81593         ($statxfs_includes): Likewise for sys/statvfs.h.
81594         Check for the following members in both structs statfs and statvfs:
81595         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81596
81597 2002-06-01  Jim Meyering  <meyering@lucent.com>
81598
81599         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81600         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81601
81602 2002-05-28  Jim Meyering  <meyering@lucent.com>
81603
81604         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81605         Reported by Volker Borchert.
81606
81607 2002-05-27  Jim Meyering  <meyering@lucent.com>
81608
81609         Fix a problem seen only on nonconforming systems whereby ls.c's
81610         use of localtime, and then of gettimeofday would cause trouble:
81611         the localtime call used to initialize rpl_gettimeofday's save
81612         mechanism would clobber ls's current local time information so
81613         that in any long listing the first file would always be listed
81614         with date 1970-01-01.  Analysis by Volker Borchert.
81615
81616         * lib/gettimeofday.c (localtime): Undefine.
81617         (rpl_localtime): New function.
81618
81619 2002-05-27  Jim Meyering  <meyering@lucent.com>
81620
81621         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81622         localtime.
81623
81624         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81625         use the replacement function; it wouldn't resolve at link time.
81626         Reported by Volker Borchert.
81627
81628 2002-05-22  Jim Meyering  <meyering@lucent.com>
81629
81630         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81631         file-type.h.
81632         * lib/file-type.h: New file.
81633         * lib/file-type.c (file_type): New file/function.  Extracted from
81634         diffutils.
81635
81636 2002-04-30  Jim Meyering  <meyering@lucent.com>
81637
81638         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81639
81640 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81641
81642         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81643
81644 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81645
81646         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81647         Do not check for alloca.h (no longer used) or stdbool.h (was never
81648         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81649
81650 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81651
81652         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81653
81654 2002-04-29  Jim Meyering  <meyering@lucent.com>
81655
81656         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81657         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81658         Use AC_FUNC_STRNLEN here instead.
81659
81660         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81661         With autoconf-2.53a, it's part of AC_PROG_CC.
81662
81663 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81664
81665         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81667
81668 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81669
81670         * lib/sig2str.h, lib/sig2str.c: New files.
81671         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81672
81673 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81674
81675         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81676         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81677         of 127, since 64 is the largest conceivable number for ancient
81678         nonstandard hosts.
81679         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81680
81681 2002-04-28  Jim Meyering  <meyering@lucent.com>
81682
81683         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81684
81685 2002-04-24  Jim Meyering  <meyering@lucent.com>
81686
81687         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81688         (jm_PREREQ): Use it.
81689
81690         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81691         mach/mach.h fcntl.h.
81692         Check for this function: setlocale.
81693
81694 2002-04-24  Jim Meyering  <meyering@lucent.com>
81695
81696         * lib/gettext.h: New file, from Gettext.
81697         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81698         (libfetish_a_SOURCES): Add gettext.h.
81699
81700 2002-04-16  Jim Meyering  <meyering@lucent.com>
81701
81702         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81703         ut_pid, ut_id, ut_exit.
81704
81705 2002-04-16  Jim Meyering  <meyering@lucent.com>
81706
81707         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81708         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81709         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81710
81711 2002-04-12  Jim Meyering  <meyering@lucent.com>
81712
81713         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81714         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81715         existence of the getmntinfo function.  Needed for Darwin 5.3.
81716
81717         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81718         This is necessary at least on Darwin 5.3.
81719
81720         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81721         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81722         strnlen.o in the library, and that makes some versions of ranlib
81723         object.
81724
81725 2002-04-12  Jim Meyering  <meyering@lucent.com>
81726
81727         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81728
81729 2002-04-09  Jim Meyering  <meyering@lucent.com>
81730
81731         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81732         to be more precise.  Rather than saying we're checking whether the
81733         function `works', say what we're testing.
81734         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81735         Reported by Bruno Haible.
81736
81737 2002-03-10  Jim Meyering  <meyering@lucent.com>
81738
81739         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81740         Suggestion from Santiago Vila.
81741
81742 2002-03-08  Jim Meyering  <meyering@lucent.com>
81743
81744         * lib/rename.c: Mention that this wrapper is needed also on
81745         mips-dec-ultrix4.4 systems.
81746
81747 2002-03-02  Jim Meyering  <meyering@lucent.com>
81748
81749         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81750         not HAVE_CLOCK_SETTIME.
81751
81752 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81753
81754         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81755         Check for clock_settime.
81756
81757 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81758
81759         * lib/nanosleep.h: Rename to....
81760         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81761
81762         * lib/gettime.c: New file.
81763         * lib/settime.c: New file.
81764         * lib/stime.c: Remove.
81765
81766         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81767         timespec.h.  Remove nanosleep.h.
81768
81769 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81770
81771         * m4/acl.m4: New file.
81772         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81773         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81774
81775 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81776
81777         * lib/acl.c, lib/acl.h: New files.
81778         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81779
81780 2002-02-24  Jim Meyering  <meyering@lucent.com>
81781
81782         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81783         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81784         cause trouble.  Reported by Nelson Beebe.
81785
81786 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81787
81788         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81789         compilers that don't know that xalloc_die never returns.
81790
81791 2002-02-20  Jim Meyering  <meyering@lucent.com>
81792
81793         * lib/getdate.c: Regenerate using bison-1.33.
81794
81795 2002-02-17  Jim Meyering  <meyering@lucent.com>
81796
81797         * config/config.guess (main): Don't use `head -1'; it's no longer
81798         portable. Use `sed 1q' instead.
81799
81800 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81801
81802         * m4/codeset.m4: Upgrade to gettext-0.11.
81803         * m4/gettext.m4: Upgrade to gettext-0.11.
81804         * m4/glibc21.m4: Upgrade to gettext-0.11.
81805         * m4/iconv.m4: Upgrade to gettext-0.11.
81806         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81807         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81808         * m4/lib-ld.m4: New file, from gettext-0.11.
81809         * m4/lib-link.m4: New file, from gettext-0.11.
81810         * m4/lib-prefix.m4: New file, from gettext-0.11.
81811         * m4/progtest.m4: Upgrade to gettext-0.11.
81812
81813 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81814
81815         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81816         (jm_PREREQ): Use it.
81817
81818 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81819
81820         * lib/posixver.c, lib/posixver.h: New files.
81821         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81822
81823 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81824             Bruno Haible  <bruno@clisp.org>
81825
81826         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81827         (fwrite_success_callback): New declaration.
81828         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81829         print_unicode_char. Call failure callback instead of error.
81830         (fwrite_success_callback): New function.
81831         (exit_failure_callback): New function.
81832         (fallback_failure_callback): New function.
81833         (print_unicode_char): Call unicode_to_mb.
81834
81835 2002-01-26  Jim Meyering  <meyering@lucent.com>
81836
81837         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81838         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81839
81840 2002-01-26  Jim Meyering  <meyering@lucent.com>
81841
81842         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81843
81844 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81845
81846         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81847
81848 2002-01-22  Jim Meyering  <meyering@lucent.com>
81849
81850         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81851         Otherwise, some versions of automake would omit the rule that makes
81852         Makefile from Makefile.in.
81853
81854 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81855
81856         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81857         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81858         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81859         (memcoll): Set errno to zero if there is no error.
81860
81861         * lib/quotearg.c (quotearg_buffer_restyled):
81862         Fix bug with quoting buffers containing NUL when backslashing escapes.
81863         This bug was exposed by the other changes in this patch.
81864         (quotearg_n_options): New arg ARGSIZE.
81865         All callers changed.
81866         (quoting_options_from_style): New function.
81867         (quotearg_n_style): Use it.
81868         (quotearg_n_style_mem): New function.
81869
81870         * lib/quotearg.h (quotearg_n_style_mem): New function.
81871
81872 2002-01-19  Jim Meyering  <meyering@lucent.com>
81873
81874         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81875         Remove useless quotes: DF_PROG="df".
81876         * m4/strnlen.m4: New file.
81877
81878 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81879
81880         * lib/backupfile.c (ISDIGIT): Comment fix.
81881         * lib/getdate.y (ISDIGIT): Likewise.
81882         * lib/posixtm.c (ISDIGIT, year): Likewise.
81883         * lib/strverscmp.c (ISDIGIT): Likewise.
81884         * lib/userspec.c (ISDIGIT): Likewise.
81885
81886 2002-01-16  Jim Meyering  <meyering@lucent.com>
81887
81888         * lib/getdate.y: Add three semicolons, each just before a closing
81889         brace. Bison (as of version 1.31) no longer papers over that mistake.
81890
81891 2002-01-05  Jim Meyering  <meyering@lucent.com>
81892
81893         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81894
81895 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81896
81897         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81898         not silently exit merely because the output buffer happens to
81899         have nothing pending.
81900
81901 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81902
81903         See the big note in ../ChangeLog.
81904         * lib/human.c (suffixes): Prefer K to k for 1024.
81905         (generate_suffix_backwards): New function.
81906         (human_readable_inexact): Use it.
81907         * lib/xstrtol.c (__xstrtol): If there is no number but there
81908         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81909         Accept 'K' as well as 'k'.
81910
81911 2001-12-15  Jim Meyering  <meyering@lucent.com>
81912
81913         * lib/regex.h (__restrict_arr): Update from libc.
81914
81915         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81916         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81917         (STREQ): Define.
81918
81919 2001-12-14  Jim Meyering  <meyering@lucent.com>
81920
81921         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81922         Suggestion from Bruno Haible.
81923
81924 2001-12-10  Jim Meyering  <meyering@lucent.com>
81925
81926         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81927         xrealloc, Instead, include "xalloc.h".
81928         (initbuffer): Don't cast xmalloc return value to char*.
81929         (readline): Reword comment.
81930         Don't cast xrealloc return value to char*
81931         Return NULL, not 0.
81932
81933 2001-12-09  Jim Meyering  <meyering@lucent.com>
81934
81935         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81936         about `signed and unsigned type in conditional expression'.
81937         * lib/posixtm.c (posix_time_parse): Likewise.
81938
81939         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81940
81941         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81942         to avoid a pedantic warning.
81943
81944         * lib/getstr.c: Don't include assert.h.
81945         (getstr): Remove warning-evoking assertions.
81946         Return -1 if offset parameter is out of bounds.
81947         Change the type of a local from int to size_t.
81948
81949         * lib/strftime.c (my_strftime_localtime_r): Include this function
81950         definition in the `#if ! HAVE_TM_GMTOFF' block.
81951
81952         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
81953         Include xalloc.h instead.
81954
81955 2001-12-02  Jim Meyering  <meyering@lucent.com>
81956
81957         * lib/tempname.c: Don't declare getenv, thus reverting the change of
81958         2001-11-18.  It's no longer necessary, now that stdlib.h is always
81959         included.
81960
81961         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
81962         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
81963
81964 2001-11-30  Akim Demaille  <akim@epita.fr>
81965
81966         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
81967         before being defined.
81968
81969 2001-11-27  Paul Eggert  <eggert@twinsun.com>
81970
81971         * lib/quotearg.h (quotearg_n, quotearg_n_style):
81972         First arg is int, not unsigned.
81973         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
81974         (SIZE_MAX, UINT_MAX): New macros.
81975         (quotearg_n_options): Abort if N is negative.
81976         Avoid overflow check on hosts where size_t is 64 bits and int
81977         is 32 bits, as overflow is impossible there.
81978         Fix off-by-one typo that caused unnecessary reallocation.
81979
81980 2001-11-27  Jim Meyering  <meyering@lucent.com>
81981
81982         * lib/tempname.c: Merge with version from libc.
81983         * lib/regex.c: Likewise.
81984
81985         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
81986         systems for which STDC_HEADERS is 0, it was not included, resulting in
81987         a warning about an integer-to-pointer conversion problem with getenv.
81988         Reported by Volker Borchert.
81989
81990 2001-11-26  Jim Meyering  <meyering@lucent.com>
81991
81992         * lib/gtod.h: Remove file.
81993         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
81994         * lib/gettimeofday.c: Don't include gtod.h.
81995         (GTOD_init): Remove function.
81996         (rpl_gettimeofday): Do its job here instead, rather than aborting.
81997         Suggestion from Volker Borchert.
81998
81999 2001-11-23  Jim Meyering  <meyering@lucent.com>
82000
82001         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82002         it.
82003         * lib/hash.c (struct hash_table): Define it here instead.
82004
82005 2001-11-22  Jim Meyering  <meyering@lucent.com>
82006
82007         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82008
82009 2001-11-20  Jim Meyering  <meyering@lucent.com>
82010
82011         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82012         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82013
82014 2001-11-19  Jim Meyering  <meyering@lucent.com>
82015
82016         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82017         directory.  Use "conftestXXXXXX" as the template.
82018         Suggestion from Paul Eggert.
82019
82020         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82021         immediately, so the test doesn't mistakenly hit the max-open-files
82022         limit.
82023
82024 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82025
82026         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82027         (TEMPORARIES): New macro.
82028         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82029         removes an artificial limitation (e.g. HP-UX 10.20, where
82030         TMP_MAX is 17576).
82031
82032 2001-11-18  Jim Meyering  <meyering@lucent.com>
82033
82034         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82035
82036 2001-11-18  Jim Meyering  <meyering@lucent.com>
82037
82038         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82039         on SunOS 4.
82040
82041         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82042         files will be created before anything else.
82043
82044 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82045
82046         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82047         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82048
82049 2001-11-17  Jim Meyering  <meyering@lucent.com>
82050
82051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82052         Prompted by a report from Bob Proulx.
82053
82054         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82055         Instead, require UTILS_FUNC_MKSTEMP.
82056
82057 2001-11-17  Jim Meyering  <meyering@lucent.com>
82058
82059         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82060         Now, that's done as part of AC_FUNC_STRTOD.
82061
82062 2001-11-17  Jim Meyering  <meyering@lucent.com>
82063
82064         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82065         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82066         rather than group writable.  Patch by Juan F. Codagnone.
82067
82068         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82069         xrealloc, Instead, include "xalloc.h".
82070
82071         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82072         Remove explicit declarations of xmalloc, xrealloc,
82073         and xstrdup.  Instead, include "xalloc.h".
82074
82075         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82076         unlocked-io.h.
82077         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82078         Likewise.
82079         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82080
82081         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82082         Reported by Padraig Brady.
82083
82084         * lib/mkstemp.c: #undef mkstemp.
82085         Include config.h.
82086         (rpl_mkstemp): Rename from mkstemp.
82087         Protoize.
82088
82089 2001-11-16  Jim Meyering  <meyering@lucent.com>
82090
82091         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82092         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82093         determine the amount of total physical memory, use pstat_getstatic.
82094         HPUX-11 doesn't define _SC_PHYS_PAGES.
82095         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82096         If sysconf couldn't be used to determine the amount of available
82097         physical memory, use both pstat_getstatic and pstat_getdynamic.
82098         Based on a patch from Bob Proulx.
82099
82100 2001-11-10  Jim Meyering  <meyering@lucent.com>
82101
82102         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82103         (jm_PREREQ): Use it.
82104
82105 2001-11-09  Jim Meyering  <meyering@lucent.com>
82106
82107         * m4/jm-macros.m4: Require autoconf-2.52f.
82108         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82109         Use these AC_-prefixed names, not the AM_-prefixed ones.
82110
82111         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82112
82113 2001-11-05  Jim Meyering  <meyering@lucent.com>
82114
82115         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82116
82117 2001-11-04  Jim Meyering  <meyering@lucent.com>
82118
82119         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82120         $DEFS.
82121
82122 2001-11-03  Jim Meyering  <meyering@lucent.com>
82123
82124         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82125         of AC_DEFUN.
82126
82127         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82128         know the name of the variable in the macro definition.
82129
82130 2001-11-03  Jim Meyering  <meyering@lucent.com>
82131
82132         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82133         in argmatch_to_argument call.
82134
82135         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82136         argument.
82137
82138         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82139         e.g., a fault due to an attempt to free a NULL pointer.
82140
82141 2001-11-01  Jim Meyering  <meyering@lucent.com>
82142
82143         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82144         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82145
82146 2001-11-01  Jim Meyering  <meyering@lucent.com>
82147
82148         * lib/dirfd.c, lib/dirfd.h: New files.
82149         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82150
82151         * lib/hash.c (hash_print) [TESTING]: Clean up.
82152
82153 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82154
82155         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82156         to avoid a warning if -Wall.
82157
82158 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82159
82160         * README: New file
82161         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82162         (per RMS's instructions, this is now the canonical source)
82163         * lgpl/, gpl/: New directories.
82164
82165 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82166
82167         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82168
82169 2001-10-21  Jim Meyering  <meyering@lucent.com>
82170
82171         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82172         this code would end up calling gettext even in packages built
82173         with --disable-nls.
82174         * lib/getopt.c (_): Likewise.
82175         * lib/regex.c (_): Likewise.
82176
82177 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82178
82179         * m4/error.m4 (jm_PREREQ_ERROR):
82180         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82181         AC_FUNC_STRERROR_R does that.
82182         Check for strerror declaration.
82183
82184         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82185         are supposed to have them these days.
82186         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82187         Merge changes from latest Autoconf CVS.
82188         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82189         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82190         POSIX decided to standardize on the int flavor of strerror_r.
82191
82192 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82193
82194         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82195         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82196         Use strerror_r that is only a macro, even if it is not a function.
82197         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82198         (private_strerror): Use prototypes, not old-style function definition.
82199         (print_errno_message): New function.
82200         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82201         char*-flavored one.
82202         (error_tail, error, error_at_line): Use it.
82203
82204 2001-10-11  Jim Meyering  <meyering@lucent.com>
82205
82206         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82207         and quote_n (1, ... to avoid clobbering a buffer.
82208
82209 2001-10-05  Jim Meyering  <meyering@lucent.com>
82210
82211         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82212         hash-pjw.h.
82213         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82214         * lib/hash-pjw.h: New file.
82215
82216 2001-09-30  Jim Meyering  <meyering@lucent.com>
82217
82218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82219         `struct fsstat' has the `f_fstypename' member.
82220         Use that to define FS_TYPE, which is now used to make
82221         the getfsstat link test tighter.
82222
82223 2001-09-30  Jim Meyering  <meyering@lucent.com>
82224
82225         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82226         Include <sys/ucred.h>, for Apple Darwin.
82227         Include sys/mount.h and sys/fs_types.h only if available.
82228         (FS_TYPE): Define.
82229         (read_filesystem_list): Use FS_TYPE.
82230
82231 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82232
82233         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82234         a boolean context.
82235
82236 2001-09-29  Jim Meyering  <meyering@lucent.com>
82237
82238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82239         [one-argument getmntent function]): Include stdio.h before mntent.h.
82240         SunOS 4.1.x needs it for the declaration of `FILE'.
82241         Patch by Volker Borchert.
82242
82243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82244         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82245         sys/fs_types.h, and make the link-test for getfsstat guard #include
82246         directives with appropriate #if HAVE_*_H tests so that we can
82247         detect getfsstat on Apple Darwin1.3.7 systems.
82248         Reported by Nelson Beebe.
82249         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82250
82251 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82252
82253         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82254         #defines strtoimax.  Also treat the other strto* functions
82255         like strtoimax.
82256
82257         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82258         Check for strtoul and strtoumax,
82259         as those declarations are made even in the signed case.
82260         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82261         Likewise, for strtol and strtoimax.
82262
82263 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82264
82265         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82266         #defines strtoimax.  Also treat the other strto* functions
82267         like strtoimax.
82268
82269         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82270         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82271         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82272
82273 2001-09-26  Jim Meyering  <meyering@lucent.com>
82274
82275         Most macros in unlocked-io.h had the wrong number of arguments.
82276         * lib/gen-uio: New script.
82277         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82278         * lib/unlocked-io.hin: Remove file.
82279         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82280         rather than trying to embed it here.
82281         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82282         Reported by Padraig Brady.
82283
82284 2001-09-25  Volker Borchert  <bt@teknon.de>
82285
82286         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82287         `result'.
82288
82289 2001-09-24  Jim Meyering  <meyering@lucent.com>
82290
82291         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82292
82293 2001-09-23  Jim Meyering  <meyering@lucent.com>
82294
82295         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82296         instead of the mere test for existence of mntent.h.  The latter
82297         would get a false-positive on AIX 3.4 systems.
82298         In the outer getmntent if-block, don't die if neither of the getmntent
82299         tests succeeds.  Instead, just fall through and continue with the
82300         remaining tests.
82301
82302 2001-09-23  Jim Meyering  <meyering@lucent.com>
82303
82304         * lib/mountlist.c: Remove useless parentheses in #if directives.
82305         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82306         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82307
82308 2001-09-22  Jim Meyering  <meyering@lucent.com>
82309
82310         * m4/gettext.m4: New file.  From gettext.
82311         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82312         * m4/progtest.m4: Likewise
82313         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82314         * m4/glibc21.m4: Likewise.
82315
82316         * m4/libintl.m4: Remove.  No longer used.
82317
82318 2001-09-22  Jim Meyering  <meyering@lucent.com>
82319
82320         * lib/localcharset.c: Update from latest gettext.
82321         * lib/config.charset: Likewise.
82322
82323 2001-09-20  Jim Meyering  <meyering@lucent.com>
82324
82325         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82326         strtoimax.
82327         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82328         strtoumax.
82329
82330 2001-09-20  Jim Meyering  <meyering@lucent.com>
82331
82332         * lib/xstrtol.c (strtoimax): Guard declaration with
82333         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82334         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82335         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82336         (strtoumax): Likewise, for completeness (it wasn't necessary).
82337
82338 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82339
82340         * lib/strtoimax.c (HAVE_LONG_LONG):
82341         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82342         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82343         to work around bug in IBM C compiler.
82344
82345 2001-09-17  Jim Meyering  <meyering@lucent.com>
82346
82347         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82348         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82349         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82350         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82351         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82352         whenever the right hand side need not be expanded by the shell.
82353
82354 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82355
82356         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82357         library.  It's not correct, as some older glibcs are buggy.
82358         fnmatch wasn't fixed until glibc 2.2.
82359
82360         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82361         special shell magic here.
82362
82363 2001-09-16  Jim Meyering  <meyering@lucent.com>
82364
82365         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82366         * m4/jm-macros.m4: Require it.
82367
82368 2001-09-16  Jim Meyering  <meyering@lucent.com>
82369
82370         * lib/mkdir.c: New file.
82371
82372 2001-09-15  Jim Meyering  <meyering@lucent.com>
82373
82374         * m4/jm-macros.m4: Check for help2man.
82375
82376 2001-09-11  Jim Meyering  <meyering@lucent.com>
82377
82378         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82379         The body, by Paul Eggert, was moved here from configure.in.
82380         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82381
82382 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82383
82384         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82385         (jm_PREREQ): Use it.
82386
82387 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82388
82389         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82390         Use ssize_t, not int, to store result of readlink.
82391         Check for ssize_t overflow as well as size_t overflow,
82392         as POSIX says the result of readlink is implementation-defined
82393         when ssize_t overflows.
82394         Remove unnecessary cast to char*.
82395         Use free+malloc instead of realloc, as the storage doesn't need
82396         to be preserved and it's clearer and can be more efficient that way.
82397         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82398         * lib/xreadlink.h (xreadlink): Update prototype.
82399
82400 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82401
82402         * lib/xgetcwd.c: Revert some of the previous change; intead,
82403         fix the HAVE_GETCWD_NULL code to behave more like the
82404         !HAVE_GETCWD_NULL code used to.
82405
82406         Include "xalloc.h".
82407         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82408         invoke xalloc_die.
82409
82410 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82411
82412         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82413         sys/param.h, as pathmax.h includes them.
82414
82415 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82416
82417         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82418         (jm_PREREQ_XGETCWD): New macro.
82419
82420         * m4/getcwd.m4: New file.
82421
82422 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82423
82424         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82425         like the HAVE_GETCWD_NULL code.
82426         Include pathmax.h if not HAVE_GETCWD.
82427         Do not include xalloc.h.
82428         (INITIAL_BUFFER_SIZE): New symbol.
82429         Do not use xmalloc / xrealloc, since the caller is responsible for
82430         handling errors.  Preserve errno around `free' during failure.
82431         Do not overrun buffer when using getwd.
82432
82433 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82434
82435         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82436         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82437         getcwd (NULL, 0).
82438
82439 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82440
82441         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82442         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82443         spotted by Jim Meyering.
82444
82445 2001-09-03  Jim Meyering  <meyering@lucent.com>
82446
82447         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82448         failure.
82449
82450 2001-09-02  Jim Meyering  <meyering@lucent.com>
82451
82452         * lib/error.c: Update from GNU libc.
82453
82454 2001-09-01  Jim Meyering  <meyering@lucent.com>
82455
82456         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82457         Used by df.
82458
82459 2001-09-01  Jim Meyering  <meyering@lucent.com>
82460
82461         * lib/xreadlink.c: New file.
82462         * lib/xreadlink.h: New file.
82463         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82464         xreadlink.h.
82465
82466         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82467         doesn't conflict with sparc Solaris 7's definition in
82468         /usr/include/sys/int_types.h.
82469
82470         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82471         files.
82472         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82473         and strncasecmp as r-values.  Unixware didn't have declarations.
82474
82475 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82476
82477         * lib/xstrtol.h: Add copyright notice.
82478         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82479         LONGINT_INVALID_SUFFIX_CHAR.
82480
82481 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82482
82483         * lib/xstrtol.c (strtoimax): New decl.
82484
82485 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82486
82487         * lib/xgetcwd.c: Don't include pathmax.h.
82488         Include stdlib.h and unistd.h if available.
82489         Include xalloc.h.
82490         (xmalloc, xstrdup, free): Remove decls.
82491         (xgetcwd): Don't assume sizes fit in unsigned.
82492         Check for overflow when computing sizes.
82493         Simplify reallocation code.
82494
82495 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82496
82497         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82498         a directory's st_size can have an arbitrary value, so the old
82499         usage could waste an arbitrary amount of memory.  All uses
82500         changed.
82501         * lib/savedir.h: Update prototype.
82502
82503 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82504
82505         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82506
82507         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82508         old strtoimax.c.
82509
82510         Also, make the following further changes to make this file's
82511         configuration more similar to that of strtol.c:
82512         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82513         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82514         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82515         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82516         changed to signed values.
82517
82518         And make the following changes as well:
82519         Fix copyright notice, as 1999 was missing.
82520         (verify): New macro.
82521         (strtoimax): Check sizes at compile-time, not run-time.
82522         Prefer strtol to strtoll if both work.
82523         (main): Remove; it was not that useful and was a pain to maintain.
82524
82525         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82526
82527 2001-08-31  Jim Meyering  <meyering@lucent.com>
82528
82529         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82530         Use an initial, malloc'd, buffer of length 128 rather than
82531         a statically allocated one of length 1024.
82532
82533 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82534
82535         Simplify code, partly by assuming autoconf 2.52 semantics.
82536
82537         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82538
82539         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82540         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82541         All uses removed.
82542         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82543         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82544         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82545         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82546         jm_AC_HEADER_INTTYPES_H.
82547         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82548
82549         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82550
82551         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82552         Quote first arg of AC_DEFUN.
82553         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82554         since they are needed to parse the include file even if we need
82555         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82556         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82557         but with opposite signedness.
82558
82559 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82560
82561         Merge 'exclude' changes from tar 1.13.22.
82562         This fixes one or two unlikely storage allocation overflow bugs,
82563         but doesn't change user-visible behavior otherwise.
82564
82565 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82566
82567         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82568         (jm_PREREQ_EXCLUDE): New macro.
82569
82570 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82571
82572         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82573         tm to be declared.
82574
82575 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82576
82577         * lib/hash.c: Remove '2001' from copyright notice.
82578
82579 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82580
82581         * lib/full-write.h: New file.
82582         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82583         * lib/full-write.c: Correct credits, as cccp.c no longer
82584         exists and anyway it was so heavily changed from the old cccp
82585         code as to be unrecognizable.  Include full-write.h.
82586         (full_write): Return size_t, with short writes meaning failure.
82587         All callers changed.  This fixes a bug with large buffers
82588         on 64-bit hosts.
82589         * lib/utime.c: Include full-write.h.
82590
82591 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82592
82593         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82594         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82595         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82596         Include if available.
82597         (<xalloc.h>): Include
82598         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82599         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82600         collide with FNM macros.
82601         (struct patopts): New struct.
82602         (struct exclude): Use it, as exclude patterns now come with options.
82603         (new_exclude): Support above changes.
82604         (new_exclude, add_exclude_file):
82605         Initial size must now be a power of two to simplify overflow checking.
82606         (free_exclude, fnmatch_no_wildcards): New function.
82607         (excluded_filename): No longer requires options arg, as the options
82608         are determined by add_exclude.  Now returns bool, not int.
82609         (excluded_filename, add_exclude):
82610         Add support for the fancy new exclusion options.
82611         (add_exclude, add_exclude_file): Now takes int options arg.
82612         Check for arithmetic overflow when computing sizes.
82613         (add_exclude_file): xrealloc might modify errno, so don't
82614         realloc until after errno might be used.
82615
82616         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82617         New macros.
82618         (free_exclude): New decl.
82619         (add_exclude, add_exclude_file): Now takes int options arg.
82620         (excluded_filename): No longer requires options arg, as the options
82621         are determined by add_exclude.  Now returns bool, not int.
82622
82623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82624
82625         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82626
82627 2001-08-27  Jim Meyering  <meyering@lucent.com>
82628
82629         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82630
82631         * lib/version-etc.c (N_): Remove definition.
82632         Revert most of last change.
82633         Instead, simply don't mark the `Copyright...' string for translation.
82634         Based on advice from Paul Eggert.
82635
82636         * lib/strtoxmax.c: Tweak comment.
82637
82638 2001-08-26  Jim Meyering  <meyering@lucent.com>
82639
82640         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82641
82642         * m4/xstrtoimax.m4: New file.
82643         * m4/xstrtoumax.m4: Add comments explaining why we
82644         AC_REPLACE_FUNCS(strtol).
82645
82646 2001-08-26  Jim Meyering  <meyering@lucent.com>
82647
82648         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82649         of copyright with `%s' so translators don't get an untranslated
82650         message in 2002.
82651         (COPYRIGHT_YEAR): Define.
82652         (version_etc): Use fprintf rather than fputs.
82653         Suggestion from Ulrich Drepper.
82654
82655         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82656
82657         * lib/strtoll.c: New file, from GNU libc.
82658         * lib/xstrtoimax.c: New file.
82659
82660         * lib/xstrtol.h: Add xstrtoimax.
82661         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82662         * lib/strtoimax.c: New file.  Likewise, but first define
82663         STRTOUXMAX_SIGNED.
82664
82665         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82666         ...
82667         * lib/strtoxmax.c: ... then renamed to this.
82668
82669 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82670
82671         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82672         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82673         (jm_AC_TYPE_INTMAX_T): New macro.
82674         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82675
82676         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82677
82678         * m4/longlong.m4: Renamed from ulonglong.m4.
82679         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82680         * m4/uintmax_t.m4: Removed.
82681
82682 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82683
82684         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82685         Port to Solaris 8, where 'sed' requires a space after the 'r'
82686         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82687         Redirect output to $tmp just once.
82688
82689 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82690
82691         * lib/addext.c (<errno.h>): Include.
82692         (errno): Declare if not defined.
82693         (addext): Work correctly when pathconf returns -1 and leaves
82694         errno alone because there is no limit.  Also, work even if
82695         pathconf returns a value greater than SIZE_MAX.
82696
82697 2001-08-12  Jim Meyering  <meyering@lucent.com>
82698
82699         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82700         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82701         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82702         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82703         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82704         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82705         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82706         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82707         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82708         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82709         utime.m4, utimes.m4, xstrtoumax.m4:
82710         Quote the first argument in each use of AC_DEFUN.
82711
82712 2001-08-12  Jim Meyering  <meyering@lucent.com>
82713
82714         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82715         Simply `return getcwd (NULL, 0);'.
82716         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82717         Use 1300 as initial value for length, not PATH_MAX.
82718
82719         * lib/pathmax.h: Clean up cpp syntax.
82720
82721 2001-08-12  Jim Meyering  <meyering@lucent.com>
82722
82723         * lib/gettimeofday.c: New file.
82724         * lib/gtod.h: New file.
82725         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82726
82727 2001-08-05  Jim Meyering  <meyering@lucent.com>
82728
82729         * m4/jm-macros.m4: Require autoconf-2.52.
82730
82731 2001-08-04  Jim Meyering  <meyering@lucent.com>
82732
82733         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82734         stmt, to get in sync with glibc.
82735
82736 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82737
82738         The following changes are from gettext 0.10.39 as maintained by
82739         Bruno Haible.
82740
82741         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82742         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82743         with inverted sense.  All uses changed.
82744
82745         * lib/mbswidth.c: Don't include <limits.h>.
82746         Include <stdlib.h> and <string.h> unconditionally.
82747         (iswcntrl, mbsinit, ISCNTRL): New macros.
82748         (mbsnwidth): Use K&R style function declarations.
82749         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82750         can optimize it when MB_CUR_MAX == 1.
82751         The width of control characters is zero, not 1.
82752
82753 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82754
82755         The following changes are from gettext 0.10.39 as maintained by
82756         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82757
82758         * m4/codeset.m4: Upgrade to serial AM1.
82759         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82760         all uses changed.  Quote first arg of AC_DEFUN.
82761         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82762
82763         * m4/iconv.m4: Upgrade to serial AM2.
82764         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82765         Add --with-libconv-prefix.
82766         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82767         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82768         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82769         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82770         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82771
82772         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82773         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82774         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82775         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82776         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82777         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82778         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82779         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82780         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82781
82782         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82783         string.h any more.
82784
82785         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82786         not the default value.
82787
82788         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82789         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82790         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82791         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82792         Also check for iswcntrl, used for wcwidth fallback.
82793         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82794         to Autoconf 2.13.
82795
82796 2001-08-03  Jim Meyering  <meyering@lucent.com>
82797
82798         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82799         as it was in the original.  Reported by Paul Eggert.
82800
82801 2001-07-16  Jim Meyering  <meyering@lucent.com>
82802
82803         * m4/gettimeofday.m4: New file.
82804         Prompted by a report from Bernhard Baehr.
82805
82806 2001-07-15  Jim Meyering  <meyering@lucent.com>
82807
82808         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82809         stuff. Now it's in ../Makefile.cfg.
82810
82811 2001-07-15  Jim Meyering  <meyering@lucent.com>
82812
82813         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82814         (BUILT_SOURCES): Add unlocked-io.h.
82815         (io_functions): Define.
82816         (unlocked-io.h): New rule.
82817         (DISTCLEANFILES): Add unlocked-io.h.
82818         (all-local): Depend on unlocked-io.h, to ensure it is created.
82819
82820         * lib/unlocked-io.hin: New file
82821
82822         * lib/regex.c: Update from glibc.
82823
82824 2001-07-05  Jim Meyering  <meyering@lucent.com>
82825
82826         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82827         recommendation.
82828         (libfetish_a_SOURCES): Put all .h files here instead.
82829         Remove a thus-exposed (better checks in automake) duplicate and
82830         two unnecessary .h files.
82831
82832 2001-07-04  Jim Meyering  <meyering@lucent.com>
82833
82834         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82835         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82836         distcheck failure.
82837
82838 2001-07-02  Jim Meyering  <meyering@lucent.com>
82839
82840         The following changes were prompted by suggestions from Bruno Haible.
82841
82842         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82843         is now generated.
82844         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82845         definition of EXTRA_DIST.
82846         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82847         ensure that the generated file is created/updated whenever the list
82848         of $(unlocked_functions) is changed.
82849         (jm-glibc-io.m4): New rule.
82850         (unlocked-io.h): New rule -- currently unused.
82851
82852 2001-06-24  Jim Meyering  <meyering@lucent.com>
82853
82854         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82855         unmatched right bracket, rather than kludging it with an extra,
82856         falsely-matching quote in a comment.  Patch by Akim Demaille.
82857
82858 2001-06-11  Jim Meyering  <meyering@lucent.com>
82859
82860         * lib/regex.c: Update from GNU libc.
82861
82862 2001-05-27  Jim Meyering  <meyering@lucent.com>
82863
82864         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82865         Check for ut_type in struct utmp.
82866
82867 2001-05-27  Jim Meyering  <meyering@lucent.com>
82868
82869         * lib/readutmp.h (UT_TYPE): Define.
82870
82871 2001-05-24  Jim Meyering  <meyering@lucent.com>
82872
82873         * lib/argmatch.c: Include "quote.h".
82874         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82875         quote function.  Reported by Göran Uddeborg.
82876
82877 2001-05-22  Jim Meyering  <meyering@lucent.com>
82878
82879         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82880         now that we use the package-supplied version unconditionally.
82881         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82882
82883 2001-05-21  Jim Meyering  <meyering@lucent.com>
82884
82885         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82886         shell syntax errors.
82887
82888 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82889
82890         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82891
82892 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82893
82894         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82895         Don't bother to check library strftime, since
82896         we'll be using our own my_strftime function anyway.
82897         Define my_strftime instead of strftime.
82898
82899 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82900
82901         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82902         which is not yet declared.
82903
82904 2001-05-15  Jim Meyering  <meyering@lucent.com>
82905
82906         * m4/regex.m4: Use proper quoting so brackets appear in the test
82907         program.
82908         Reported by, and with help from, Bruno Haible.
82909
82910 2001-05-13  Jim Meyering  <meyering@lucent.com>
82911
82912         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82913         undefined.
82914
82915 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82916
82917         dirname code cleanup.  base_name now behaves more compatibly
82918         with POSIX basename when given file names that have trailing
82919         slashes, and similarly for dir_name.  Add new primitives
82920         base_len and dir_len.  Put the directory-name-related decls
82921         into dirname.h.
82922
82923         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82924         * lib/backupfile.c (base_name): Likewise.
82925         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82926         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82927         * lib/makepath.c (strip_trailing_slashes): Likewise.
82928         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82929         ISSLASH): Likewise.
82930         * lib/rename.c (strip_trailing_slashes): Likewise.
82931         * lib/same.c (base_name): Likewise.
82932         * lib/stripslash.c (ISSLASH): Likewise.
82933
82934         * lib/addext.c: Include <dirname.h> after size_t is defined.
82935         * lib/backupfile.c: Likewise.
82936
82937         * lib/addext.c (addext): Use base_len to trim redundant
82938         trailing slashes instead of doing it ourselves.
82939         But do not trim the last slash if it is not redundant.
82940
82941         * lib/backupfile.c (find_backup_file_name,
82942         max_backup_version): Use base_len instead of rolling it ourselves.
82943         Handle the case of "" and (on DOS) "C:" correctly.
82944
82945         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82946         needed. Include <string.h>, <dirname.h>.
82947         (base_name): Allow file names ending in slashes, other than names
82948         that are all slashes.  In this case, return the basename followed
82949         by the slashes.  This is more general, and can be used in places
82950         where the original base_name purposely had an assertion failure.
82951         (base_len): New function.
82952
82953         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
82954         Do not include <assert.h>; no longer needed.
82955         Include xalloc.h.
82956         (memrchr): Remove decl.
82957         (dir_name_r): Remove.
82958         (dir_len): Renamed from dirlen.  All callers changed.
82959         Rewrite in terms of base_name, for simplicity and consistency.
82960         (dir_name): Never return NULL.  All callers changed.
82961         Do not include <stdlib.h> in test program; no longer needed.
82962         return 0; is fine for test program.
82963
82964         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
82965         New macros.
82966         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
82967
82968         * lib/path-concat.c (path_concat): Use base_len to compute
82969         base length, not strlen; this means we cannot rely on memcpy
82970         to null-terminate.
82971
82972         * lib/same.c (STREQ): Remove.
82973         (same_name): Handle the case where the basename ends in trailing '/'.
82974
82975         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
82976         a slash was stripped.  Do not strip the last slash after a
82977         file system prefix.
82978
82979 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82980
82981         * lib/Makefile.am (libfetish_a_SOURCES):
82982         Add strftime.c, since we now compile it on all hosts.
82983
82984         * lib/strftime.c (my_strftime):
82985         Define to nstrftime if emacs, but only if my_strftime is not defined.
82986         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
82987         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
82988         Add one more extra argument: a nanoseconds value.
82989         All uses changed.
82990         (ns): New macro.
82991         (my_strftime function): Add %N format.
82992         (emacs_strftimeu): Renamed from emacs_strftime,
82993         with extra ut argument.
82994
82995 2001-05-09  Paul Eggert  <eggert@twinsun.com>
82996
82997         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
82998
82999 2001-04-21  Jim Meyering  <meyering@lucent.com>
83000
83001         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83002         doesn't interfere.
83003
83004 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83005
83006         * m4/ftruncate.m4: Check for chsize.
83007         Link with ftruncate.o unconditionally if ftruncate is missing.
83008         This was required when cross-compiling to i586-mingw32msvc.
83009
83010 2001-04-08  Jim Meyering  <meyering@lucent.com>
83011
83012         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83013         recomputed; that's necessary when the offset spans a DST transition.
83014         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83015
83016 2001-04-02  Jim Meyering  <meyering@lucent.com>
83017
83018         * lib/regex.h, regex.c: Update from GNU libc.
83019
83020 2001-03-24  Jim Meyering  <meyering@lucent.com>
83021
83022         * m4/jm-macros.m4: Require autoconf-2.49d.
83023
83024 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83025
83026         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83027
83028 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83029
83030         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83031
83032 2001-03-17  Jim Meyering  <meyering@lucent.com>
83033
83034         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83035         now that the version in autoconf is equivalent.
83036         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83037
83038         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83039         Suggestion from Akim Demaille.
83040
83041         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83042         (jm_PREREQ_TEMPNAME): New function.
83043
83044 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83045
83046         * lib/tempname.c (uint64_t): Define to uintmax_t if
83047         not defined, and if UINT64_MAX is not defined.
83048         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83049         Reported by John David Anglin.
83050
83051 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83052
83053         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83054         resolve alias if codeset is empty.
83055         * lib/config.charset (BeOS): Use wildcard syntax.
83056
83057 2001-03-13  Jim Meyering  <meyering@lucent.com>
83058
83059         * lib/path-concat.c (path_concat)
83060         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83061         concatenating e.g., `C:' and `foo'.
83062         From Bruno Haible.
83063
83064 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83065
83066         * lib/localcharset.c (locale_charset): Don't use
83067         setlocale(LC_CTYPE,NULL). Don't return NULL.
83068         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83069
83070 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83071
83072         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83073         support for DOS/DJGPP.
83074
83075 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83076
83077         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83078         lacks mkstemp.  Compile our own tempname.c if we compile our own
83079         mkstemp.c, as mkstemp relies on tempname.
83080
83081 2001-03-01  Jim Meyering  <meyering@lucent.com>
83082
83083         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83084         AH_VERBATIM really does output its argument verbatim.
83085
83086 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83087
83088         * lib/Makefile.am (libfetish_a_SOURCES):
83089         Add dup-safer.c, fopen-safer.c.
83090         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83091
83092         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83093         * lib/unistd-safer.h: New files.
83094
83095 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83096
83097         The mkstemp replacement is taken from glibc 2.2.2, with some
83098         portability fixes for use outside glibc, as follows:
83099
83100         * lib/tempname.c (struct_stat64): New macro.
83101         (direxists, __gen_tempname): Use it.
83102         This avoids a portability problem with Solaris 8.
83103
83104         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83105         (<stddef.h>, <stdint.h>, <string.h>):
83106         Include only if STDC_HEADERS || _LIBC.
83107         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83108         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83109         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83110         (__set_errno): Define this macro if <errno.h> doesn't.
83111         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83112         Define these macros if <stdio.h> doesn't.
83113         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83114         Define these macros if <sys/stat.h>
83115         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83116         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83117         __xstat64): Define if not _LIBC.
83118         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83119         (__gen_tempname): Invoke gettimeofday only if
83120         HAVE_GETTIMEOFDAY || _LIBC;
83121         otherwise, fall back on plain "time".
83122         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83123
83124         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83125
83126         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83127
83128 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83129
83130         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83131
83132 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83133
83134         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83135         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83136         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83137         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83138
83139 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83140
83141         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83142         Remove workaround macros for hosts that have mbrtowc but not
83143         mbstate_t, as we now insist on proper declarations for both
83144         before using mbrtowc.
83145
83146 2001-02-17  Jim Meyering  <meyering@lucent.com>
83147
83148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83149         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83150         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83151         UnixWare 7.1.1.
83152
83153         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83154         rather than AC_CACHE_VAL.
83155
83156 2001-02-17  Jim Meyering  <meyering@lucent.com>
83157
83158         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83159         around included file name.
83160
83161         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83162
83163         * lib/strftime.c: Update from GNU libc (the only changes were to
83164         comments).
83165
83166 2001-02-17  Jim Meyering  <meyering@lucent.com>
83167
83168         * lib/regex.c: Update from libc.
83169
83170 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83171
83172         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83173         clash.
83174
83175 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83176
83177         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83178         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83179         Reported by Mark Hounschell via Paul Eggert.
83180
83181 2001-02-07  Jim Meyering  <meyering@lucent.com>
83182
83183         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83184
83185 2001-02-05  Jim Meyering  <meyering@lucent.com>
83186
83187         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83188         it includes the patch required for `large file' support with at least
83189         HP-UX's 10.20 /bin/cc.
83190
83191 2001-02-03  Jim Meyering  <meyering@lucent.com>
83192
83193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83194         AS_IF, now that it works once again (mysteriously).
83195         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83196
83197 2001-01-30  Jim Meyering  <meyering@lucent.com>
83198
83199         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83200         * m4/chown.m4: Rename conftestchown to conftest.chown.
83201         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83202         s/conftestdir2/conftest.d2/.
83203         * m4/utimes.m4: s/conftestdata/conftest.data/
83204         Inspired by Pavel Roskin's change in autoconf.
83205
83206 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83207
83208         * lib/config.charset: Update for FreeBSD 4.2.
83209
83210 2001-01-27  Jim Meyering  <meyering@lucent.com>
83211
83212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83213         a use of AS_IF.
83214         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83215
83216 2001-01-26  Jim Meyering  <meyering@lucent.com>
83217
83218         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83219         quotearg.c includes it.
83220
83221 2001-01-26  Jim Meyering  <meyering@lucent.com>
83222
83223         * lib/quotearg.c: Include stddef.h.
83224         * lib/quote.c: Include stddef.h.
83225         Reported by Axel Kittenberger.
83226
83227         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83228         line in double quotes so that it evokes a better diagnostic.
83229         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83230         Reported by Axel Kittenberger.
83231
83232 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83233
83234         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83235         as if it was a `charset'.
83236
83237 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83238
83239         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83240         has const.
83241
83242 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83243
83244         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83245         to avoid a warning.  Add back 'const' to inptr.
83246
83247 2001-01-20  Jim Meyering  <meyering@lucent.com>
83248
83249         Be sure that headers are checked before used in code compiled
83250         for the type checks.
83251         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83252         In place of that, invoke jm_CHECK_ALL_TYPES.
83253         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83254         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83255         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83256         The check for ssize_t was mistakenly run before the test for unistd.h.
83257
83258         The configure-time check for stdbool.h was missing.
83259         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83260         (jm_PREREQ_HASH): New function.
83261
83262 2001-01-17  Jim Meyering  <meyering@lucent.com>
83263
83264         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83265         for autoconf-2.49c.
83266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83267
83268 2001-01-16  Jim Meyering  <meyering@lucent.com>
83269
83270         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83271         From Bruno Haible.
83272
83273 2001-01-14  Jim Meyering  <meyering@lucent.com>
83274
83275         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83276         foo and bar.  Create conftestdir/ in the script, not in the C code.
83277         Remove directories in the script, not in the C code.
83278         Remove conftestdir{,2} before trying to create the directory.
83279         Make the entire configure script fail if the mkdir fails.
83280
83281 2001-01-14  Jim Meyering  <meyering@lucent.com>
83282
83283         * lib/rename.c: New file.  From Volker Borchert.
83284         Include stdlib.h, string.h or strings.h, and xalloc.h.
83285         Use strip_trailing_slashes rather than open-coding it.
83286
83287 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83288
83289         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83290
83291 2001-01-03  Jim Meyering  <meyering@lucent.com>
83292
83293         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83294         of local `inptr' to avoid warning with some system declarations of
83295         iconv.
83296
83297 2001-01-02  Volker Borchert  <bt@teknon.de>
83298
83299         * m4/rename.m4: New file.
83300         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83301
83302 2001-01-01  Jim Meyering  <meyering@lucent.com>
83303
83304         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83305         even on systems with utmpx.h.  It's necessary for the declaration of
83306         utmp's ut_user member.  Reported by Andreas Jaeger.
83307
83308         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83309         available. They are required for the declarations of getgrgid and
83310         getpwuid resp.
83311         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83312         Reported by Andreas Jaeger.
83313
83314 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83315
83316         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83317         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83318         so `make install' also works in VPATH builds.
83319
83320 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83321
83322         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83323         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83324         can be used in subdirectories.
83325
83326 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83327
83328         * lib/modechange.c: Do not assume that mode_t uses the
83329         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83330         the other-execute bit of FOO even if S_IXOTH != 1.
83331
83332         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83333         WOTH, XOTH, ALLM): New macros.
83334         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83335          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83336         Use them.
83337         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83338         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83339         (mode_compile):
83340         No need to use uintmax_t; unsigned long is long enough.
83341         Don't bother to get suffix since we don't use it.
83342
83343 2000-12-26  Jim Meyering  <meyering@lucent.com>
83344
83345         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83346         better with autoheader.
83347
83348 2000-12-24  Jim Meyering  <meyering@lucent.com>
83349
83350         * lib/hash.c (is_prime): Return explicit boolean values.
83351         (hash_get_first): Return NULL to appease Irix5.6's 89.
83352         Reported by Nelson Beebe.
83353
83354 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83355
83356         * lib/localcharset.c (locale_charset): Add support for Win32.
83357
83358 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83359
83360         * lib/physmem.h, lib/physmem.c: New files.
83361
83362         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83363         (noinst_HEADERS): Add physmem.h.
83364
83365         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83366         't' for compatibility with Solaris 8 sort.
83367
83368 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83369
83370         * lib/config.charset: Add support for BeOS.
83371
83372 2000-12-17  Jim Meyering  <meyering@lucent.com>
83373
83374         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83375         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83376
83377 2000-12-16  Jim Meyering  <meyering@lucent.com>
83378
83379         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83380         N and M) would have treated it like `chown N:N FILE'.
83381
83382         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83383
83384 2000-12-16  Jim Meyering  <meyering@lucent.com>
83385
83386         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83387         SHELLS_FILE to a file name that's useful on djgpp systems.
83388         Include stdlib.h.
83389         (ADDITIONAL_DEFAULT_SHELLS): Define.
83390         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83391         Based mostly on a patch from Prashant TR.
83392
83393 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83394
83395         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83396         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83397         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83398
83399 2000-12-08  Andreas Schwab  <schwab@suse.de>
83400
83401         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83402         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83403
83404 2000-12-07  Jim Meyering  <meyering@lucent.com>
83405
83406         * lib/stripslash.c (ISSLASH): Define.
83407         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83408         `/'.
83409         From Prashant TR.
83410
83411         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83412         (dir_name_r): Declare this function as static.
83413         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83414         manifest itself on a name containing a mix of slashes and
83415         backslashes.
83416         Make this function work with names starting with a DOS-style
83417         drive letter and colon prefix.
83418         (dir_name): Append `.' if necessary.
83419         Based mostly on patches from Prashant TR and Eli Zaretskii.
83420
83421         * lib/dirname.h (dir_name_r): Remove prototype.
83422
83423 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83424
83425         * m4/off_t-format.m4: Remove this file.
83426         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83427
83428 2000-12-06  Jim Meyering  <meyering@lucent.com>
83429
83430         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83431         replacement strtoull, we may well need the replacement strtoul, too.
83432         Check for declarations of strtoul and strtoull.
83433         Check for strtol.  Mainly as a cue to cause automake to include
83434         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83435         Check for limits.h -- strtol.c needs it.
83436
83437 2000-12-05  Jim Meyering  <meyering@lucent.com>
83438
83439         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83440
83441 2000-12-04  Jim Meyering  <meyering@lucent.com>
83442
83443         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83444         Also include memory.h, stdlib.h, unistd.h if appropriate.
83445         Reported by Andreas Jaeger (conflicting declaration of malloc).
83446
83447 2000-12-02  Jim Meyering  <meyering@lucent.com>
83448
83449         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83450         * m4/jm-macros.m4 (jm_MACROS): require it.
83451
83452 2000-12-02  Jim Meyering  <meyering@lucent.com>
83453
83454         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83455
83456 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83457
83458         * lib/memrchr.c: Include <config.h> before any system include file.
83459
83460 2000-11-30  Jim Meyering  <meyering@lucent.com>
83461
83462         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83463
83464 2000-11-30  Jim Meyering  <meyering@lucent.com>
83465
83466         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83467
83468 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83469
83470         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83471
83472 2000-11-26  Jim Meyering  <meyering@lucent.com>
83473
83474         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83475
83476 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83477
83478         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83479         size of (size_t) -1; it's not portable.
83480
83481 2000-11-17  Jim Meyering  <meyering@lucent.com>
83482
83483         * lib/strstr.c: Update from GNU libc.
83484
83485 2000-11-17  Akim Demaille  <akim@epita.fr>
83486
83487         * lib/obstack.h: Formatting changes.
83488         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83489         prevent type checking.
83490         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83491         cast the value to (void *): assigning a `foo *' to a `void *'
83492         variable is valid.
83493         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83494
83495 2000-11-16  Jim Meyering  <meyering@lucent.com>
83496
83497         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83498
83499 2000-11-11  Jim Meyering  <meyering@lucent.com>
83500
83501         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83502
83503 2000-11-10  Jim Meyering  <meyering@lucent.com>
83504
83505         * lib/obstack.h: Update from GNU libc.
83506         * lib/obstack.c: Likewise.
83507
83508 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83509
83510         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83511
83512 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83513
83514         * lib/getusershell.c (setusershell): Use rewind rather than
83515         fseek/fseeko, to avoid configuration hassles with fseeko.
83516         Don't bother opening SHELLS_FILE if shellstream is NULL;
83517         it's not necessary.
83518
83519 2000-11-05  Jim Meyering  <meyering@lucent.com>
83520
83521         * lib/makepath.h (make_dir): Declare.
83522         * lib/makepath.c (make_dir): Remove `static' attribute.
83523         Tweak a comment.
83524
83525 2000-11-04  Jim Meyering  <meyering@lucent.com>
83526
83527         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83528
83529 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83530
83531         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83532         last one in a bucket, advance to the next bucket.
83533
83534 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83535
83536         * lib/fnmatch.c: Do not comment out all the code if we are using
83537         the GNU C library, because in some cases we are replacing buggy
83538         code in the GNU C library itself.
83539
83540 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83541
83542         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83543         (regex_compile): Catch bogus \(\1\).
83544
83545 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83546
83547         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83548         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83549         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83550
83551 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83552
83553         * lib/error.h, getline.h, modechange.h:
83554         Remove "2000" from Copyright line, as the file hasn't been
83555         changed this year other than in the copyright notice.
83556
83557         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83558         was changed this year.
83559
83560 2000-10-29  Jim Meyering  <meyering@lucent.com>
83561
83562         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83563         renaming.
83564         * m4/ls-mntd-fs.m4: Likewise
83565
83566 2000-10-29  Jim Meyering  <meyering@lucent.com>
83567
83568         * lib/xstat.in: Fix grammar in comment.
83569
83570 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83571
83572         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83573         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83574         doesn't define __restrict_arr.
83575
83576 2000-10-28  Jim Meyering  <meyering@lucent.com>
83577
83578         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83579         (jm_PREREQ_MEMCHR): New function.
83580
83581 2000-10-28  Jim Meyering  <meyering@lucent.com>
83582
83583         * lib/memchr.c: Update from libc.
83584         Adjust for portability:
83585         [HAVE_STDLIB_H]: Include stdlib.h.
83586         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83587         Undef __memchr, too.
83588         [!weak_alias]: Define __memchr to memchr.
83589
83590         * lib/regex.c: Update from libc.
83591         * lib/regex.h: Likewise.
83592         * lib/getopt1.c: Likewise.
83593         * lib/memcmp.c: Likewise.
83594
83595         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83596         Avoid using fseek, when possible -- it's broken by design.
83597         Patch by Ulrich Drepper.
83598
83599 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83600
83601         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83602         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83603         Giving in to popular pressure to shut up the compiler with casts.
83604
83605 2000-10-26  Jim Meyering  <meyering@lucent.com>
83606
83607         * lib/strftime.c: Update from libc.
83608
83609 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83610
83611         * regex.c: More `unsigned char' -> `re_char' changes.
83612         Also change several `int' into `re_wchar_t'.
83613         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83614         (PUSH_FAILURE_POINTER): Don't cast any more.
83615         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83616         We want GCC to complain, since this piece of code makes
83617         re_match non-reentrant, which *should* be fixed.
83618         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83619         (EXTEND_BUFFER): Use RETALLOC.
83620         (SET_LIST_BIT): Don't cast.
83621         (re_wchar_t): New type.
83622         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83623         that those two functions will always properly return.
83624         (IMMEDIATE_QUIT_CHECK): Cast to void.
83625         (analyse_first): Use recursion rather than an explicit stack.
83626         (re_compile_fastmap): Can't fail anymore.
83627         (re_search_2): Don't check re_compile_fastmap for failure.
83628         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83629         Now also sets the new value (passed in a new argument).
83630         (re_match_2_internal): Use it.
83631         Also, use a new var `reg' of type size_t when looping through regs
83632         rather than reuse the inappropriate `mcnt'.
83633
83634 2000-10-25  Jim Meyering  <meyering@lucent.com>
83635
83636         * lib/obstack.c: Update from libc.
83637
83638 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83639
83640         * regex.c (regex_compile): Change the way of handling a range from
83641         a char less than 256 to a char not less than 256.
83642
83643 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83644
83645         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83646         NT-Emacs only.
83647         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83648         so that re_search functions only quit when callers expect them to.
83649
83650 2000-10-23  Jim Meyering  <meyering@lucent.com>
83651
83652         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83653         wrong.  That set_locale call must not have any side effects.
83654         From Paul Eggert.
83655
83656 2000-10-22  Jim Meyering  <meyering@lucent.com>
83657
83658         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83659         [CYCLIC]: Remove now-unused definition.
83660
83661         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83662         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83663         Suggestion from Ulrich Drepper.
83664
83665 2000-10-21  Jim Meyering  <meyering@lucent.com>
83666
83667         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83668         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83670
83671 2000-10-21  Jim Meyering  <meyering@lucent.com>
83672
83673         * lib/dirname.c (memrchr): Declare if necessary.
83674         (dir_name): Remove the restriction that there be no
83675         trailing slashes.  Now, this code skips past them, effectively
83676         ignoring them.
83677         [TEST_DIRNAME] (main): New unit tests.
83678
83679         * lib/memrchr.c: New file from GNU libc.
83680         Undef __memrchr, too.
83681         [!weak_alias]: Define __memrchr to memrchr.
83682         Guard weak_alias use with `#ifdef weak_alias'.
83683
83684 2000-10-21  Jim Meyering  <meyering@lucent.com>
83685
83686         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83687         (dir_name): Use dir_name_r.
83688         * lib/dirname.h (dir_name_r): Declare it.
83689
83690 2000-10-17  Jim Meyering  <meyering@lucent.com>
83691
83692         * lib/quote.h (PARAMS): Define and use.
83693         Reported by Akim Demaille.
83694
83695         * lib/getopt.c: Update from libc.
83696
83697 2000-10-16  Jim Meyering  <meyering@lucent.com>
83698
83699         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83700         setlocale.
83701         From Jan Fedak.
83702
83703 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83704
83705         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83706
83707 2000-09-25  Jim Meyering  <meyering@lucent.com>
83708
83709         * lib/md5.h (rol): Define (from GnuPG).
83710
83711         * lib/sha.c: Give credit (GnuPG) where due.
83712         (M): Use rol rather than open-coding it.
83713         Add a FIXME comment.
83714
83715 2000-09-21  Jim Meyering  <meyering@lucent.com>
83716
83717         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83718         Reported by Michael Stone.
83719
83720 2000-09-20  Jim Meyering  <meyering@lucent.com>
83721
83722         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83723         (noinst_HEADERS): Add sha.h.
83724         Based on code from Scott G. Miller and from GnuPG.
83725
83726 2000-09-18  Jim Meyering  <meyering@lucent.com>
83727
83728         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83729         LIBS. Otherwise, everyone ends up linking with -lelf for some
83730         configurations.
83731         Reported by Mike Stone.
83732
83733 2000-09-15  Jim Meyering  <meyering@lucent.com>
83734
83735         * lib/regex.c: Update from libc.
83736
83737 2000-09-10  Jim Meyering  <meyering@lucent.com>
83738
83739         * lib/getopt.c (_getopt_internal): Update from glibc.
83740
83741 2000-09-09  Jim Meyering  <meyering@lucent.com>
83742
83743         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83744         think it should be used as a general replacement for isascii.
83745         * lib/fnmatch.c: Likewise.
83746         * lib/mbswidth.c: Likewise
83747         * lib/regex.c: Likewise.
83748
83749         Don't use atoi.
83750         * lib/userspec.c: Include sys/param.h and limits.h.
83751         Include xstrtol.h.
83752         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83753         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83754         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83755         UID, GID.  Check range.
83756
83757 2000-09-06  Jim Meyering  <meyering@lucent.com>
83758
83759         * lib/getopt.c (_getopt_internal): Update from glibc.
83760
83761 2000-08-30  Jim Meyering  <meyering@lucent.com>
83762
83763         * lib/strftime.c: Merge in changes from GNU libc.
83764
83765 2000-08-26  Jim Meyering  <meyering@lucent.com>
83766
83767         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83768         * m4/fpending.m4: New file.
83769
83770 2000-08-26  Jim Meyering  <meyering@lucent.com>
83771
83772         * lib/closeout.c: Include "__fpending.h".
83773         (close_stdout_status): Return right away if there's nothing to flush.
83774
83775         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83776         * lib/__fpending.c: New file.
83777         * lib/__fpending.h: New file.
83778
83779 2000-08-20  Jim Meyering  <meyering@lucent.com>
83780
83781         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83782         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83783         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83784
83785 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83786
83787         Improve fileutils installation on systems where running
83788         programs (like install) can't be unlinked.
83789         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83790         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83791
83792 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83793
83794         Standardize on "memory exhausted" instead of "Memory exhausted"
83795         or "virtual memory exhausted".
83796         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83797         "virtual memory exhausted".
83798         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83799         our own message.
83800         * lib/userspec.c (parse_user_spec): Likewise.
83801         * lib/bumpalloc.h: comment fix
83802         * lib/same.c, userspec.c: Include xalloc.h.
83803
83804         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83805         not char *const and pointing to a constant array.
83806         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83807         (xrealloc): Comment fix.
83808
83809         * lib/userspec.c (parse_user_spec):
83810         Don't translate a message until just before returning,
83811         to avoid unnecessary translation.
83812
83813 2000-08-07  Jim Meyering  <meyering@lucent.com>
83814
83815         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83816         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83817         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83818         getgroups.c, gethostname.c, getopt.h, group-member.c,
83819         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83820         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83821         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83822         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83823         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83824         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83825         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83826         yesno.c: Back out Copyright date changes for each file with no change
83827         this year.  This eases coordination with other programs using the same
83828         source code modules.  From Paul Eggert.
83829
83830 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83831
83832         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83833         not char, for compatibility with glibc 2.1.3 strftime.c.
83834
83835 2000-08-03  Greg McGary  <greg@mcgary.org>
83836
83837         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83838         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83839         (EXTEND_BUFFER): Use them.
83840
83841 2000-08-01  Jim Meyering  <meyering@lucent.com>
83842
83843         * lib/dirname.c (ISSLASH): Define.
83844         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83845         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83846         both `\' and `/' may be use as path separators.
83847         Based on a patch from Prashant TR.
83848
83849 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83850
83851         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83852         slot vector a constant, since it might get modified.
83853
83854 2000-07-31  Jim Meyering  <meyering@lucent.com>
83855
83856         * lib/xmalloc.c: Use `virtual memory exhausted', not
83857         `Memory exhausted'.
83858         * lib/obstack.c (print_and_abort): Likewise.
83859
83860 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83861
83862         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83863         buffer, so that the caller can always quote one small
83864         component of a "memory exhausted" message in slot 0.
83865         From a suggestion by Jim Meyering.
83866
83867 2000-07-30  Jim Meyering  <meyering@lucent.com>
83868
83869         * lib/makepath.c (make_path): Quote the other instance, too.
83870
83871         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83872         (STATIC_BUF_SIZE): Define.
83873         (quotearg_n_options): Use only statically allocated storage when
83874         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83875         than STATIC_BUF_SIZE.
83876
83877 2000-07-29  Jim Meyering  <meyering@lucent.com>
83878
83879         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83880         * lib/dirname.c (dir_name): Likewise.
83881
83882         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83883         `/'.
83884
83885         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83886         (dir_name): Assert that there are no trailing slashes.
83887
83888 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83889
83890         * lib/mbswidth.h (mbswidth): Add a flags argument.
83891         (mbswidth): New declaration.
83892         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83893         * lib/mbswidth.c (mbswidth): Add a flags argument.
83894         (mbsnwidth): New function.
83895
83896 2000-07-24  Jim Meyering  <meyering@lucent.com>
83897
83898         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83899
83900 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83901
83902         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83903
83904 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83905
83906         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83907         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83908         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83909         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83910         invoke multibyte primitives.
83911
83912 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83913
83914         * lib/quotearg.c:
83915         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83916         so that mbstate_t is always defined.
83917
83918         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83919         be 1 in at least one GCC installation, and this configuration
83920         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83921         performance on hosts that have mbrtowc but have only unibyte
83922         locales, but I assume these hosts are rare.
83923
83924 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83925
83926         * lib/mbswidth.c (_XOPEN_SOURCE):
83927         Don't define; this causes problems on Solaris 7.
83928         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83929
83930 2000-07-23  Jim Meyering  <meyering@lucent.com>
83931
83932         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83933         too: getgrgid, getpwuid, getuid.
83934
83935 2000-07-23  Jim Meyering  <meyering@lucent.com>
83936
83937         * lib/basename.c (base_name): Add an assertion.
83938
83939 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83940
83941         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83942         shadow its mbsinit function.
83943
83944 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83945
83946         * lib/mbswidth.h: New file.
83947         * lib/mbswidth.c: New file.
83948         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
83949         (noinst_HEADERS): Add mbswidth.h.
83950
83951 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83952
83953         * lib/config.charset: Add support for FreeBSD. Improve support for
83954         HP-UX and IRIX 6.
83955
83956 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
83957
83958         * m4/mbswidth.m4: New file.
83959         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
83960
83961 2000-07-15  Jim Meyering  <meyering@lucent.com>
83962
83963         * lib/makepath.c: Include quote.h.
83964         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
83965         corresponding argument in a `quote (...)' call.
83966         Give better diagnostics.
83967
83968         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
83969         (noinst_HEADERS): Add quote.h.
83970
83971         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
83972         from tar's src/misc.c.
83973         * lib/quote.h: New file.  Prototypes for same.
83974
83975 2000-07-14  Paul Eggert  <eggert@twinsun.com>
83976
83977         From a suggestion by Bruno Haible.
83978         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
83979         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
83980         to decide whether to define the BeOS workaround macro;
83981         this adjusts to the change to AC_MBSTATE_T.
83982
83983 2000-07-14  Jim Meyering  <meyering@lucent.com>
83984
83985         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
83986         jm_AC_TYPE_UINTMAX_T.
83987
83988 2000-07-13  Paul Eggert  <eggert@twinsun.com>
83989
83990         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
83991
83992         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
83993         quotearg_buffer_restyled): Add support for
83994         clocale_quoting_style.  Undo previous change to
83995         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
83996         and "{RIGHT QUOTATION MARK}" msgids.
83997
83998 2000-07-10  Paul Eggert  <eggert@twinsun.com>
83999
84000         From a suggestion by Bruno Haible.
84001         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84002         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84003         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84004         and mbstate_t, to a single-part test that simply defines mbstate_t.
84005         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84006         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84007
84008 2000-07-10  Jim Meyering  <meyering@lucent.com>
84009
84010         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84011
84012         * m4/gnu-source.m4: Output to confdefs.h directly.
84013         Suggestion from Akim Demaille.
84014
84015 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84016
84017         The old behavior of quoting `like this' doesn't look good with
84018         newer, ISO-style fonts.  See:
84019         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84020
84021         Instead, quote "like this" by default.  Let the translator
84022         tailor the locale-specific quoting behavior by providing
84023         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84024
84025         * lib/quotearg.c (N_): New macro.
84026         (gettext_default): New function.
84027         (quotearg_buffer_restyled): Use
84028         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84029         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84030
84031 2000-07-09  Jim Meyering  <meyering@lucent.com>
84032
84033         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84034         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84035
84036         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84038
84039 2000-07-09  Jim Meyering  <meyering@lucent.com>
84040
84041         * lib/Most files: Update copyright dates to include 2000.
84042
84043 2000-07-08  Jim Meyering  <meyering@lucent.com>
84044
84045         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84046         if not defined.
84047         (xgethostname): Remove now-unnecessary #ifdef.
84048         Move declaration of `err' into loop where it's used.
84049
84050 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84051         and Bruno Haible  <haible@clisp.cons.org>
84052
84053         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84054         only if the test for an object-type mbstate_t fails.  This
84055         prevents us from mistakenly reporting that mbstate_t is a
84056         system object type after we "#define mbstate_t int" to work
84057         around its lack.
84058
84059 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84060         and Bruno Haible  <haible@clisp.cons.org>
84061
84062         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84063
84064 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84065
84066         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84067         to strerror_r.
84068         Include <ctype.h> for use of isalpha.
84069
84070 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84071
84072         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84073         by allocating a larger buffer. Test the gethostname return value for
84074         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84075         returns an error and ENAMETOOLONG isn't defined.
84076
84077 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84078
84079         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84080         dimension.
84081
84082 2000-07-04  Jim Meyering  <meyering@lucent.com>
84083
84084         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84085         of the deprecated AC_CHECKING.
84086
84087 2000-07-04  Jim Meyering  <meyering@lucent.com>
84088
84089         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84090         Reported by Bruno Haible.
84091
84092 2000-07-04  Jim Meyering  <meyering@lucent.com>
84093
84094         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84095         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84096         lacks mbrtowc.
84097
84098 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84099
84100         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84101         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84102
84103 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84104         and Bruno Haible  <haible@clisp.cons.org>
84105
84106         * lib/quotearg.c (mbrtowc):
84107         Assign to *pwc, and return 1 only if result is nonzero.
84108         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84109
84110 2000-07-03  Jim Meyering  <meyering@lucent.com>
84111
84112         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84113
84114 2000-07-03  Jim Meyering  <meyering@lucent.com>
84115
84116         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84117         This is necessary to get a definition of e.g., UTMP_FILE on
84118         HP-UX 10.20.
84119         From Bob Proulx.
84120
84121 2000-07-02  Jim Meyering  <meyering@lucent.com>
84122
84123         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84124
84125         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84126         AC_LIBOBJ(function_name).
84127         * m4/chown.m4: Likewise.
84128         * m4/fnmatch.m4: Likewise.
84129         * m4/ftruncate.m4: Likewise.
84130         * m4/getgroups.m4: Likewise.
84131         * m4/getline.m4: Likewise.
84132         * m4/group-member.m4: Likewise.
84133         * m4/jm-macros.m4: Likewise.
84134         * m4/lstat.m4: Likewise.
84135         * m4/malloc.m4: Likewise.
84136         * m4/memcmp.m4: Likewise.
84137         * m4/nanosleep.m4: Likewise.
84138         * m4/putenv.m4: Likewise.
84139         * m4/realloc.m4: Likewise.
84140         * m4/regex.m4: Likewise.
84141         * m4/stat.m4: Likewise.
84142         * m4/strftime.m4: Likewise.
84143
84144 2000-07-02  Jim Meyering  <meyering@lucent.com>
84145
84146         * lib/quotearg.c (mbstate_t): Don't define here.
84147
84148 2000-07-02  Jim Meyering  <meyering@lucent.com>
84149
84150         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84151
84152 2000-07-01  Jim Meyering  <meyering@lucent.com>
84153
84154         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84155
84156 2000-07-01  Jim Meyering  <meyering@lucent.com>
84157
84158         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84159         problem.
84160
84161 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84162
84163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84164         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84165
84166 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84167
84168         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84169         per change in ../m4/ls-mntd-fs.m4.
84170         (read_filesystem_list): Ignore symbolic links.
84171
84172 2000-06-29  Jim Meyering  <meyering@lucent.com>
84173
84174         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84175         for declaration of strcmp.
84176
84177         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84178
84179         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84180         Avoid warning by casting result to `char *' to remove `const'.
84181
84182 2000-06-28  Jim Meyering  <meyering@lucent.com>
84183
84184         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84185         included by quotearg.c, for which we perform this test.  From
84186         Bruno Haible.
84187
84188 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84189
84190         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84191         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84192         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84193
84194 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84195
84196         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84197
84198 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84199
84200         savedir now sets errno on failure and invokes xmalloc to get memory.
84201         Fix a couple of other minor bugs while we're at it.
84202
84203         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84204         (NAMLEN): Remove macro.
84205         (malloc, realloc): Remove decls.
84206         (stpcpy): Likewise.
84207         ("xalloc.h"): Include.
84208         (NAME_SIZE_DEFAULT): New macro.
84209         (savedir): Use xmalloc / xrealloc to allocate memory.
84210         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84211         Skip "" directory entries.
84212         Use strlen to calculate directory entry length, since the old method
84213         is rarely used these days and isn't worth supporting.
84214         Don't use a pointer after freeing it.
84215         Check for integer overflow when calculating allocation size.
84216         Use memcpy to copy entries, instead of stpcpy.
84217         Set errno properly when returning NULL.
84218         Check for readdir error.
84219
84220 2000-06-26  Jim Meyering  <meyering@lucent.com>
84221
84222         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84223
84224 2000-06-25  Jim Meyering  <meyering@lucent.com>
84225
84226         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84227         Linux header bug when _XOPEN_SOURCE is defined to 500.
84228
84229 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84230
84231         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84232         deficiency.
84233
84234 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84235
84236         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84237         Include xalloc.h.
84238         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84239
84240 2000-06-24  Jim Meyering  <meyering@lucent.com>
84241
84242         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84243         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84244         for which strerror does return char*, but which lacks a conveniently
84245         accessible declaration of the function.  If the compile-test says
84246         strerror_r doesn't work, then resort to a `run'-test that works on
84247         BeOS and segfaults on DEC Unix.
84248
84249 2000-06-24  Jim Meyering  <meyering@lucent.com>
84250
84251         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84252
84253 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84254
84255         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84256         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84257
84258 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84259
84260         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84261         (mbrtowc, mbstate_t): Define substitutes if
84262         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84263         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84264         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84265
84266 2000-06-23  Jim Meyering  <meyering@lucent.com>
84267
84268         * m4/afs.m4: Add missing AC_MSG_RESULT.
84269         Reported by Bruno Haible.
84270
84271         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84272         Suggestion from Bruno Haible.
84273
84274 2000-06-23  Jim Meyering  <meyering@lucent.com>
84275
84276         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84277
84278 2000-06-21  Jim Meyering  <meyering@lucent.com>
84279
84280         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84281
84282 2000-06-21  Jim Meyering  <meyering@lucent.com>
84283
84284         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84285         (noinst_HEADERS): Add getstr.h.
84286
84287         * lib/getline.c (getstr): Move into a separate file.
84288         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84289         the following changes: new parameter, delim2; both delim[12]
84290         parameters have type `int', not `char'.  The latter would lose
84291         with 8-bit delimiters.
84292         * lib/getstr.h: New file.
84293
84294 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84295
84296         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84297         than 1024, return a memory chunk of least possible size, instead
84298         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84299         Use free/xmalloc instead of xrealloc to avoid copying for very long
84300         paths.
84301
84302 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84303
84304         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84305         the empty string.
84306
84307 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84308
84309         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84310         address, not strdup.  Include <stdlib.h> and don't declare free().
84311
84312 2000-06-19  Jim Meyering  <meyering@lucent.com>
84313
84314         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84315
84316 2000-06-18  Jim Meyering  <meyering@lucent.com>
84317
84318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84319
84320         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84321         `checking whether...' message to be consistent with that of the
84322         lstat test.
84323
84324 2000-06-18  Jim Meyering  <meyering@lucent.com>
84325
84326         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84327         Besides, these days every porting target provides a mkdir function.
84328
84329         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84330         needed. (this snippet comes from src/system.h).
84331
84332 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84333
84334         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84335
84336 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84337
84338         * lib/human.c (adjust_value): New function.
84339         (human_readable_inexact): Apply rounding style even when
84340         printing approximate values.
84341
84342 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84343
84344         * lib/human.c (human_readable_inexact): Allow an input block
84345         size that is not a multiple of the output block size, and vice versa.
84346         Reported by Piergiorgio Sartor.
84347
84348 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84349
84350         * lib/getdate.y (get_date): Apply relative times after time
84351         zone indicator, not before.  Reported by Todd A. Jacobs.
84352
84353 2000-06-13  Jim Meyering  <meyering@lucent.com>
84354
84355         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84356
84357         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84358
84359 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84360
84361         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84362
84363 2000-06-12  Jim Meyering  <meyering@lucent.com>
84364
84365         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84366         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84367         optional argument.
84368         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84369         the optional argument, `lib'.
84370
84371 2000-06-08  Jim Meyering  <meyering@lucent.com>
84372
84373         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84374
84375 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84376
84377         Rewrite largefile configuration so that we don't need to run
84378         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84379         AC_CANONICAL_HOST in configure.in -- jmm]
84380
84381         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84382         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84383         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84384         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84385         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84386         All uses changed.
84387         Instead of inspecting the output of getconf, try to compile the
84388         test program without and with the macro definition.
84389         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84390         for getconf.  Instead, check for the needed flags by compiling
84391         test programs.
84392
84393 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84394
84395         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84396
84397 2000-06-04  Jim Meyering  <meyering@lucent.com>
84398
84399         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84400         SunOS 4.1.4 for which gid_t is an unsigned type.
84401
84402 2000-06-03  Jim Meyering  <meyering@lucent.com>
84403
84404         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84405         now that autoconf requires that.
84406
84407         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84408         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84409         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84410
84411 2000-06-03  Jim Meyering  <meyering@lucent.com>
84412
84413         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84414
84415 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84416
84417         * m4/glibc21.m4: New file.
84418         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84419
84420 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84421
84422         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84423         newer, don't install charset.alias.
84424         * lib/config.charset: Change the Linux/glibc rules so they become empty
84425         on glibc-2.1 or newer.
84426
84427 2000-06-02  Jim Meyering  <meyering@lucent.com>
84428
84429         * lib/mountlist.c: Back out last change.  Instead, do this...
84430         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84431         me_dummy member using the same `ignore'-testing code.
84432         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84433         fs_type strings.
84434         From Mark D. Roth.
84435
84436 2000-05-29  Jim Meyering  <meyering@lucent.com>
84437
84438         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84439         mounts with the `ignore' attribute.  Based on a patch from
84440         Mark D. Roth.
84441
84442 2000-05-28  Jim Meyering  <meyering@lucent.com>
84443
84444         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84445         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84446         * m4/stat.m4: Likewise.
84447         * m4/lstat.m4: Likewise.
84448         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84449
84450         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84451         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84452
84453 2000-05-26  Jim Meyering  <meyering@lucent.com>
84454
84455         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84456
84457 2000-05-24  Jim Meyering  <meyering@lucent.com>
84458
84459         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84460         autoconf requires that.
84461         * m4/lib-check.m4: Likewise.
84462         * m4/jm-macros.m4: Likewise.
84463         * m4/strftime.m4: Likewise.
84464
84465         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84466         AC_CHECK_DECLS, now that autoconf requires that.
84467
84468 2000-05-22  Jim Meyering  <meyering@lucent.com>
84469
84470         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84471         * m4/lstat.m4: Likewise.
84472
84473 2000-05-22  Jim Meyering  <meyering@lucent.com>
84474
84475         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84476
84477 2000-05-20  Jim Meyering  <meyering@lucent.com>
84478
84479         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84480         (jm_PREREQ): Use it.
84481
84482 2000-05-18  Jim Meyering  <meyering@lucent.com>
84483
84484         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84485         back, too, since it may have been modified by allocate_entry.
84486         (hash_delete): Rewrite to use neither the assignment operator
84487         nor the comma operator in an if-expression.
84488
84489 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84490
84491         * lib/closeout.c:
84492         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84493         Remove; no longer needed.
84494         "quotearg.h": Add include.
84495         (file_name): Do not bother to explicitly initialize to NULL; it's less
84496         efficient on some hosts.
84497         (close_stdout_status): Remove test as to whether stdout was already
84498         closed; it breaks for the case "echo x | sort >&-".
84499         Quote file name colons.
84500         Do not assume that _("write error") lacks format strings.
84501
84502 2000-05-15  Jim Meyering  <meyering@lucent.com>
84503
84504         * lib/version-etc.c (version_etc_copyright): Update the copyright
84505         string used in all --version output.
84506
84507 2000-05-14  Jim Meyering  <meyering@lucent.com>
84508
84509         * lib/closeout.c (close_stdout_set_file_name): New function.
84510         (close_stdout_status): Use new file-scoped global.
84511         Return right away if fstat says the stdout file descriptor is invalid.
84512         * lib/closeout.h (close_stdout_set_file_name): Declare.
84513
84514 2000-05-10  Jim Meyering  <meyering@lucent.com>
84515
84516         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84517         (close_stdout_set_status): New function.
84518         * lib/closeout.h (close_stdout_set_status): Declare.
84519
84520 2000-05-09  Jim Meyering  <meyering@lucent.com>
84521
84522         * m4/gettext.m4: Rename this...
84523         * m4/libintl.m4: ...to this.
84524
84525 2000-05-08  Jim Meyering  <meyering@lucent.com>
84526
84527         * lib/long-options.c: Don't include closeout.h.
84528         (parse_long_options): Don't call close_stdout for --version.
84529
84530 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84531
84532         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84533         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84534         2.1.3 bug.  This avoids a clash when files like regex.c define
84535         _GNU_SOURCE.
84536
84537 2000-05-06  Jim Meyering  <meyering@lucent.com>
84538
84539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84540         (AC_REPLACE_FUNCS): Add strnlen.
84541
84542         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84543         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84544
84545         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84546         AC_SEARCH_LIBS call for nanosleep.
84547         (LIB_NANOSLEEP): Set and AC_SUBST.
84548
84549 2000-05-06  Jim Meyering  <meyering@lucent.com>
84550
84551         * lib/strnlen.c: Undefine __strnlen and strnlen.
84552         [!weak_alias]: Define __strnlen to strnlen.
84553
84554         * lib/atexit.c: New file, from libiberty.
84555
84556 2000-05-06  Jim Meyering  <meyering@lucent.com>
84557
84558         * lib/closeout.c (close_stdout_status): Also check for errors on the
84559         stderr stream.
84560
84561 2000-05-05  Jim Meyering  <meyering@lucent.com>
84562
84563         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84564         AC_SEARCH_LIBS call for clock_gettime.
84565         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84566
84567         * m4/search-libs.m4: Update from autoconf.
84568
84569         su doesn't work on Solaris 2.6.
84570         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84571         <shadow.h>.  Reported by Dragos Harabor.
84572
84573 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84574
84575         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84576         memcpy instead of xmalloc, xrealloc, path_concat.
84577         (locale_charset): Treat empty environment variables as absent.
84578         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84579
84580 2000-05-04  Jim Meyering  <meyering@lucent.com>
84581
84582         * lib/getopt.c: Update from glibc.
84583         * lib/obstack.c: Likewise.
84584         * lib/obstack.h: Likewise.
84585         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84586         file
84587
84588         * lib/regex.h: Likewise.
84589         * lib/strndup.c: Likewise.
84590         * lib/strnlen.c: New file, from glibc.
84591
84592 2000-05-03  Jim Meyering  <meyering@lucent.com>
84593
84594         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84595
84596 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84597
84598         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84599         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84600         compile-time test, rather than inspecting host and OS, to
84601         decide whether to define _LARGEFILE_SOURCE.
84602
84603 2000-05-01  Jim Meyering  <meyering@lucent.com>
84604
84605         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84606
84607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84608         Based on a patch from Bruno Haible.
84609
84610 2000-05-01  Jim Meyering  <meyering@lucent.com>
84611
84612         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84613
84614 2000-04-29  Jim Meyering  <meyering@lucent.com>
84615
84616         * lib/path-concat.c: Declare strdup only if it's not defined.
84617         * lib/canon-host.c: Likewise.
84618
84619 2000-04-28  Jim Meyering  <meyering@lucent.com>
84620
84621         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84622         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84623         is included first, then limits.h is included by locale.h by libintl.h.
84624         From John David Anglin.
84625
84626 2000-04-25  Jim Meyering  <meyering@lucent.com>
84627
84628         * lib/makepath.c (S_IRWXUGO): Define.
84629         (make_path): Always perform explicit chmod if MODE specifies any
84630         of the `special' permission bits.  Prompted by a bug report against
84631         install from Mate Wierdl and Joost van Baal.
84632
84633 2000-04-18  Jim Meyering  <meyering@lucent.com>
84634
84635         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84636         (jm_PREREQ): Use it.
84637
84638 2000-04-18  Jim Meyering  <meyering@lucent.com>
84639
84640         * lib/README: New file.
84641
84642         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84643         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84644
84645 2000-04-17  Jim Meyering  <meyering@lucent.com>
84646
84647         Get it right :-)
84648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84649         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84650         Suggestion from Akim Demaille.
84651
84652 2000-04-17  Jim Meyering  <meyering@lucent.com>
84653
84654         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84655         the definition of it to rpl_strftime also defined-away the system's
84656         declaration.
84657
84658 2000-04-15  Jim Meyering  <meyering@lucent.com>
84659
84660         Use `C' to denote so-called `contiguous' files, the same way
84661         that tar does.
84662         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84663         (ftypelet): Use S_ISCTG.
84664         From Michael Deutschmann.
84665
84666 2000-04-14  Jim Meyering  <meyering@lucent.com>
84667
84668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84669         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84670         clobbered.
84671
84672 2000-04-14  Jim Meyering  <meyering@lucent.com>
84673
84674         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84675
84676 2000-04-13  Jim Meyering  <meyering@lucent.com>
84677
84678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84679         AH_VERBATIM to insert required #ifndef into config.h.in.
84680         Suggestion from Akim Demaille.
84681
84682 2000-04-12  Jim Meyering  <meyering@lucent.com>
84683
84684         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84685         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84686         Christian Krackowizer.
84687
84688         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84689         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84690         (AC_SYS_LARGEFILE): Require.
84691         (AM_C_PROTOTYPES): Require.
84692
84693 2000-04-08  Jim Meyering  <meyering@lucent.com>
84694
84695         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84696         names don't conflict.  Reported by Eli Zaretskii.
84697
84698 2000-04-07  Jim Meyering  <meyering@lucent.com>
84699
84700         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84701         sys/types.h, to work around system header problems on AIX 3.2.5.
84702         From Bruno Haible.
84703
84704 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84705
84706         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84707         bug.  Deal with the different error behavior of Irix iconv.
84708
84709 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84710
84711         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84712         IRIX if the installer said otherwise.
84713
84714 2000-04-05  Jim Meyering  <meyering@lucent.com>
84715
84716         Portability tweaks required for ultrix4.3.
84717         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84718         (jm_CHECK_DECLS): Add getutent to the list of functions.
84719         (_jm_DECL_HEADERS): Add utmpx.h.
84720         From John David Anglin.
84721
84722         * m4/strftime.m4: Back out the 2000-04-02 change.
84723         Instead of that change, simply undefine putenv in the test program.
84724
84725 2000-04-05  Jim Meyering  <meyering@lucent.com>
84726
84727         Portability tweaks required for ultrix4.3.
84728         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84729         getutent.
84730         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84731         * lib/canon-host.c: Declare strdup.
84732         * lib/path-concat.c: Likewise.
84733         From John David Anglin.
84734
84735 2000-04-04  Jim Meyering  <meyering@lucent.com>
84736
84737         Be more DOS 8.3-friendly.
84738         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84739         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84740         * lib/Makefile.am: Reflect renaming.
84741         Reported by Eli Zaretskii.
84742
84743         Use a temporary file name that won't clash with `charset.alias'
84744         in the DOS 8.3 name space.
84745         * lib/Makefile.am (charset_tmp): Define.
84746         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84747         (uninstall-local): Likewise.
84748         Reported by Eli Zaretskii.
84749
84750 2000-04-03  Jim Meyering  <meyering@lucent.com>
84751
84752         * m4/gettext.m4: Fix typo in comment.
84753
84754         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84755         textutils/configure.in).  Suggestion from Paul Eggert.
84756         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84757
84758 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84759
84760         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84761         variable in the shell rather than using putenv, which isn't
84762         portable.  This avoids the configure-time inter-test dependency
84763         on the potentially-renamed putenv function.
84764
84765 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84766
84767         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84768         before checking struct stat.st_blksize, so that
84769         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84770
84771 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84772
84773         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84774         since strftime.c uses HAVE_STRFTIME to decide whether to use
84775         the underlying strftime.
84776
84777 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84778
84779         * lib/time/strftime.c (my_strftime): Make sure we call the system
84780         strftime, not ourselves, when invoking the underlying strftime.
84781
84782 2000-03-24  Jim Meyering  <meyering@lucent.com>
84783
84784         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84785         (charset_alias): Define.
84786         (install-exec-local): Factor out common code.
84787         (uninstall-local): Split lines longer than 80.
84788         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84789         (SUFFIXES): Define.
84790         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84791         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84792
84793 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84794
84795         * lib/config.charset: Output a line containing "Packages using this
84796         file".
84797         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84798         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84799         ref-del.sed): New rules.
84800
84801 2000-03-17  Jim Meyering  <meyering@lucent.com>
84802
84803         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84804         Otherwise, include <strings.h>
84805
84806 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84807
84808         * lib/unicodeio.c (utf8_wctomb): New function.
84809         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84810         format instead of in UCS-4 with platform dependent endianness.
84811
84812 2000-03-10  Jim Meyering  <meyering@lucent.com>
84813
84814         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84815         From Marco Franzen.
84816
84817 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84818
84819         * lib/savedir.c (savedir): Work even if directory size is
84820         negative; this can happen with some screwy NFS configurations.
84821
84822 2000-03-06  Jim Meyering  <meyering@lucent.com>
84823
84824         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84825         if it's NULL (because we ran out of memory).  From Bruno Haible.
84826
84827 2000-03-05  Jim Meyering  <meyering@lucent.com>
84828
84829         * lib/localcharset.c ("path-concat.h"): Include.
84830         (get_charset_aliases): Use path_concat instead of ANSI string
84831         concatenation.
84832
84833         * lib/unicodeio.h (PARAMS): Define.
84834         Use it to guard prototype.
84835
84836 2000-03-04  Jim Meyering  <meyering@lucent.com>
84837
84838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84839         for lib/localcharset.c.
84840
84841 2000-03-04  Jim Meyering  <meyering@lucent.com>
84842
84843         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84844         installing into it.
84845         (uninstall-local): Uncomment this rule so `make distcheck' works
84846         once again.
84847
84848         * lib/unicodeio.c (<errno.h>): Include it.
84849         (errno): Declare if not defined.
84850
84851         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84852
84853         * lib/config.charset: New version, incorporating remarks from a linux
84854         i18n mailing list.  From Bruno Haible.
84855
84856 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84857
84858         * m4/codeset.m4: New file.
84859         * m4/iconv.m4: New file.
84860         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84861
84862 2000-03-03  Jim Meyering  <meyering@lucent.com>
84863
84864         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84865
84866 2000-03-02  Jim Meyering  <meyering@lucent.com>
84867
84868         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84869         the messages come out on separate lines.
84870
84871         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84872         rather than jm_CHECK_DECLARATIONS.
84873         * m4/decl.m4: Remove now-unused file.
84874
84875         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84876         geteuid.
84877
84878 2000-03-02  Jim Meyering  <meyering@lucent.com>
84879
84880         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84881
84882 2000-03-01  Jim Meyering  <meyering@lucent.com>
84883
84884         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84885         * lib/unicodeio.c: Likewise.
84886
84887 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84888
84889         * lib/config.charset: New file.
84890         * lib/localcharset.c: New file.
84891         * lib/unicodeio.h, lib/unicodeio.c: New files.
84892         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84893         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84894         (noinst_HEADERS): Add unicodeio.h.
84895         (all-local, install-exec-local, charset.alias): New targets.
84896
84897 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84898
84899         * lib/quotearg.c (ALERT_CHAR): New macro.
84900         (quotearg_buffer_restyled): Use it.
84901
84902 2000-02-27  Jim Meyering  <meyering@lucent.com>
84903
84904         * m4/check-decl.m4: Add getenv to the list.
84905
84906 2000-02-27  Jim Meyering  <meyering@lucent.com>
84907
84908         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84909         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84910
84911         * lib/backupfile.c: Guard inclusion of stdlib.h with
84912         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84913         Declare malloc if needed.
84914
84915         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84916         `#ifndef HAVE_DECL..'
84917         now that autoconf always defines the HAVE_DECL_ symbols.
84918         * lib/human.c: Likewise.
84919         * lib/same.c: Likewise.
84920         * lib/strtoumax.c: Likewise.
84921
84922         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84923         declaration check was not run.
84924         * lib/hash.c: Likewise.
84925         * lib/human.c: Likewise.
84926         * lib/same.c: Likewise.
84927         * lib/strtoumax.c: Likewise.
84928
84929         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84930         `.', then first look up the entire `.'-containing string as a login
84931         name.
84932
84933 2000-02-23  Jim Meyering  <meyering@lucent.com>
84934
84935         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84936         in place of my hack.
84937
84938 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84939
84940         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84941         (textint): New typedef.
84942         (parser_control): Member year changed from int to textint.
84943         All uses changed.
84944         (YYSTYPE): Removed; replaced by %union with int and textint members.
84945         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84946         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
84947         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
84948         (tSNUMBER, tUNUMBER): Now of type <textintval>.
84949         (date, number, to_year): Use width of number in digits, not its value,
84950         to determine whether it's a 2-digit year, or a 2-digit time.
84951         (yylex): Store number of digits of numeric tokens.
84952         Reported by John Kendall.
84953
84954         (parser_control): Changed from struct parser_control to typedef (for
84955         consistency).  All uses changed.
84956
84957         (tID): Removed; not used.
84958         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
84959
84960 2000-02-14  Paul Eggert  <eggert@twinsun.com>
84961
84962         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
84963         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
84964
84965 2000-02-12  Jim Meyering  <meyering@lucent.com>
84966
84967         * lib/userspec.c (ISDIGIT): Define it.
84968         (isdigit): Remove definition.
84969         (is_number): Use ISDIGIT, not isdigit.
84970         <libintl.h>: Include.
84971         (_ and N_): Define.
84972         (parse_user_spec): Mark translatable strings.
84973
84974 2000-02-10  Jim Meyering  <meyering@lucent.com>
84975
84976         With these changes, nanosleep.[ch] are finally enough like the other
84977         lib/* replacement files to compile on a few more losing systems.
84978
84979         * lib/nanosleep.h: Don't include config.h.
84980         Remove prototype from declaration of nanosleep.
84981         (PARAMS): Remove now-unneeded definition.
84982         * lib/nanosleep.c: #undef nanosleep.
84983         (rpl_nanosleep): Rename from nanosleep.
84984
84985 2000-02-10  Jim Meyering  <meyering@lucent.com>
84986
84987         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
84988         gnu_nanosleep to rpl_nanosleep.
84989
84990 2000-02-09  Jim Meyering  <meyering@lucent.com>
84991
84992         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
84993         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
84994
84995 2000-02-08  Akim Demaille  <akim@epita.fr>
84996
84997         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
84998         `[' and `]' and remove uses of `changequote'.
84999         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85000         (AC_SYS_LARGEFILE): Likewise.
85001         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85002         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85003         of changequote.
85004         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85005         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85006         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85007         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85008
85009 2000-02-05  Jim Meyering  <meyering@lucent.com>
85010
85011         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85012         Remove explicit use of AC_HEADER_TIME.  It is required by
85013         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85014         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85015         in autoconf whereby the expansion of the latter ended up preceding
85016         the expansion of its prerequisite, AC_HEADER_TIME.
85017         Reported by Volker Borchert.
85018
85019 2000-02-03  Jim Meyering  <meyering@lucent.com>
85020
85021         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85022
85023 2000-02-03  Jim Meyering  <meyering@lucent.com>
85024
85025         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85026         rather than with `#if HAVE_UTMPNAME'.
85027
85028 2000-02-02  Jim Meyering  <meyering@lucent.com>
85029
85030         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85031         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85032         Reported by Eli Zaretskii.
85033
85034 2000-02-01  Jim Meyering  <meyering@lucent.com>
85035
85036         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85037
85038 2000-01-31  Jim Meyering  <meyering@lucent.com>
85039
85040         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85041         functions.  Add the time.h and sys/time.h headers along with the
85042         AC_REQUIRE'ment of AC_HEADER_TIME.
85043
85044 2000-01-31  Jim Meyering  <meyering@lucent.com>
85045
85046         * lib/nanosleep.h (nanosleep): Guard declaration with
85047         `#if ! HAVE_DECL_NANOSLEEP'.
85048         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85049         the declaration in that vendor's sys/timers.h.
85050         Reported by Christian Krackowizer.
85051
85052         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85053         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85054         (ISPRINT): Likewise.
85055         Reported by Tom Tromey.
85056
85057 2000-01-30  Jim Meyering  <meyering@lucent.com>
85058
85059         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85060
85061         * m4/prereq.m4 (utmp_includes): Define.
85062         Check for ut_user and ut_name members in both struct utmpx
85063         and struct utmp.
85064
85065 2000-01-30  Jim Meyering  <meyering@lucent.com>
85066
85067         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85068         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85069         header files where only utmpx.ut_user is declared.
85070
85071         * lib/readutmp.h (UT_USER): Define.
85072
85073 2000-01-29  Jim Meyering  <meyering@lucent.com>
85074
85075         * m4/lib-check.m4: New file containing library-related checks from
85076         fileutils and sh-utils (textutils had none).
85077
85078 2000-01-28  Jim Meyering  <meyering@lucent.com>
85079
85080         * m4/perl.m4: Change format of warning message to look more like that
85081         from the missing script.  Suggestion from François Pinard.
85082
85083 2000-01-25  Jim Meyering  <meyering@lucent.com>
85084
85085         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85086         well as time.h in the compile check.
85087         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85088         Fix typo in cross-compiling case: s/yes/no/.
85089
85090 2000-01-23  Jim Meyering  <meyering@lucent.com>
85091
85092         * m4/jm-macros.m4: Move df-related tests here from
85093         fileutils/configure.in
85094
85095         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85096         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85097
85098         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85099         s/space/ac_fsusage_space/.
85100         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85101
85102         * m4/ftruncate.m4: New file (derived from part of
85103         fileutils/configure.in).
85104         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85105         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85106
85107         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85108         AC_SUBST these here, rather than just in sh-util/configure.in, so
85109         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85110         all the same.
85111         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85112         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85113         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85114         (AC_SUBST(POW_LIBM)): Likewise.
85115         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85116
85117 2000-01-23  Jim Meyering  <meyering@lucent.com>
85118
85119         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85120         obstack.c.
85121
85122 2000-01-22  Jim Meyering  <meyering@lucent.com>
85123
85124         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85125
85126         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85127
85128         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85129         configure.in
85130         (AC_CHECK_HEADERS): Likewise for sh-utils.
85131         (AC_CHECK_HEADERS): Likewise for textutils.
85132         Merge the three lists of headers.
85133
85134         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85135         from fileutils' configure.in.
85136
85137         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85138         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85139         check-decl.m4.
85140
85141         * m4/check-decl.m4: Use #if rather than #ifdef.
85142         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85143         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85144         (_jm_DECL_HEADERS): Define new function.
85145         (jm_CHECK_DECLARATIONS): Require it.
85146
85147 2000-01-22  Jim Meyering  <meyering@lucent.com>
85148
85149         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85150         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85151         Required for some AIX systems.  Reported by Christian Krackowizer.
85152         [TESTING] (main): New function.
85153
85154         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85155         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85156         letters.
85157
85158         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85159         iswprint.
85160
85161         * lib/strverscmp.c (ISDIGIT): Define.
85162         (strverscmp): Use ISDIGIT, not isdigit.
85163
85164 2000-01-19  Jim Meyering  <meyering@lucent.com>
85165
85166         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85167         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85168         defines `struct timespec' in <sys/time.h>
85169
85170         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85171         Thanks to Akim for explaining.
85172
85173 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85174
85175         * lib/nanosleep.c (nanosleep):
85176         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85177         POSIX.1 doesn't require SA_INTERRUPT and some systems
85178         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85179         it's been part of POSIX.1 since day 1 (in 1988).
85180
85181 2000-01-17  Jim Meyering  <meyering@lucent.com>
85182
85183         * lib/interlock: Remove unused file.  Reported by François Pinard.
85184
85185 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85186
85187         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85188         alert, backslash, formfeed, and vertical tab unnecessarily in
85189         shell quoting style.
85190
85191 2000-01-16  Jim Meyering  <meyering@lucent.com>
85192
85193         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85194         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85195         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85196         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85197
85198 2000-01-16  Jim Meyering  <meyering@lucent.com>
85199
85200         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85201         because the latter didn't work.
85202
85203 2000-01-15  Jim Meyering  <meyering@lucent.com>
85204
85205         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85206         (AC_REPLACE_FUNCS): Add memcpy and memset.
85207         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85208         Add strpbrk.
85209         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85210
85211 2000-01-12  Jim Meyering  <meyering@lucent.com>
85212
85213         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85214         (jm_PREREQ): Use it.
85215         (jm_PREREQ_READUTMP): New macro.
85216         (jm_PREREQ): Use it.
85217
85218 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85219
85220         Quote multibyte characters correctly.
85221         * m4/c-bs-a.m4: New file.
85222         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85223         (jm_PREREQ): Use it.
85224
85225 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85226
85227         * m4/uintmax_t.m4: Port to autoconf 2.13.
85228
85229 2000-01-08  Jim Meyering  <meyering@ascend.com>
85230
85231         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85232         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85233
85234 2000-01-04  Jim Meyering  <meyering@ascend.com>
85235
85236         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85237         jm_STRUCT_DIRENT_D_TYPE.
85238         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85239         jm_STRUCT_DIRENT_D_INO.
85240         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85241         jm_STRUCT_UTIMBUF.
85242         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85243         renamings.
85244         * m4/utime.m4: Likewise.
85245
85246         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85247         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85248
85249 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85250
85251         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85252         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85253
85254 2000-01-02  Jim Meyering  <meyering@ascend.com>
85255
85256         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85257         remember if this is necessary.
85258
85259 1999-12-26  Jim Meyering  <meyering@ascend.com>
85260
85261         * m4/jm-macros.m4: Use it here.
85262         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85263
85264 1999-12-23  Jim Meyering  <meyering@ascend.com>
85265
85266         * m4/jm-macros.m4: Check for clock_gettime (moved from
85267         fileutils/configure.in)
85268         Check for gettimeofday.
85269
85270 1999-12-20  Jim Meyering  <meyering@ascend.com>
85271
85272         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85273         autoconf-2.14a-1999-12-20.
85274
85275 1999-12-19  Jim Meyering  <meyering@ascend.com>
85276
85277         * m4/lstat-slash.m4: New file.
85278         * m4/jm-macros.m4: Use the new macro:
85279         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85280
85281 1999-12-07  Jim Meyering  <meyering@ascend.com>
85282
85283         * m4/perl.m4: Require that File::Compare be available, too.
85284         Too many systems seem to lack it.
85285
85286         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85287         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85288
85289 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85290
85291         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85292         problem with the QNX 4.25 shell, which doesn't propagate exit
85293         status of failed commands inside shell assignments.
85294
85295 1999-11-17  Jim Meyering  <meyering@ascend.com>
85296
85297         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85298
85299 1999-11-07  Jim Meyering  <meyering@ascend.com>
85300
85301         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85302
85303 1999-11-06  Jim Meyering  <meyering@ascend.com>
85304
85305         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85306         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85307
85308 1999-11-05  Jim Meyering  <meyering@ascend.com>
85309
85310         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85311         configure.in of textutils, fileutils, and sh-utils into this one
85312         (shared between those packages) file.
85313         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85314         AC_STRUCT_ST_BLKSIZE.
85315
85316 1999-11-03  Jim Meyering  <meyering@ascend.com>
85317
85318         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85319         of AC_CHECK_TYPE checks includes unistd.h.
85320         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85321         Suggestion from Akim Demaille.
85322
85323 1999-10-30  Jim Meyering  <meyering@ascend.com>
85324
85325         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85326         m4-quoted string.
85327         * m4/ls-mntd-fs.m4: Likewise.
85328         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85329         * m4/jm-winsz1.m4: Likewise.
85330
85331         * m4/const.m4: Remove file, since the fix made it into the experimental
85332         version of autoconf.
85333         * m4/mktime.m4: Likewise.
85334
85335         * m4/check-type.m4: Remove file, now that the latest version of
85336         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85337
85338         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85339         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85340         AC_CHECK_TYPE.
85341
85342 1999-10-04  Jim Meyering  <meyering@ascend.com>
85343
85344         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85345
85346 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85347
85348         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85349         2.95.1 bug with HP-UX 10.20.
85350
85351 1999-09-17  Jim Meyering  <meyering@ascend.com>
85352
85353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85354         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85355         due to missing strdup (against sh-utils-2.0).
85356
85357 1999-08-29  Jim Meyering  <meyering@ascend.com>
85358
85359         * m4/jm-macros.m4: Require jm_BISON.
85360         * m4/bison.m4: New file.
85361
85362 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85363
85364         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85365         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85366
85367 1999-08-05  Jim Meyering  <meyering@ascend.com>
85368
85369         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85370         to avoid conflicts with `conftest' on 8+3 filesystems.
85371         Suggestion from Eli Zaretskii.
85372
85373 1999-08-04  Jim Meyering  <meyering@ascend.com>
85374
85375         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85376         fileutils and sh-utils (textutils's getline test was inadequate).
85377         (AM_FUNC_GETLINE): Run this test.
85378         (AC_CHECK_FUNCS): Check for getdelim.
85379         Reported by Bob Proulx.
85380
85381 1999-08-02  Jim Meyering  <meyering@ascend.com>
85382
85383         * m4/jm-macros.m4: Add a comment.
85384
85385 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85386
85387         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85388         <inttypes.h> defines strtoumax as a macro (and not as a
85389         function).
85390
85391 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85392
85393         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85394         that we can shift, multiply and divide unsigned long long
85395         values; Ultrix cc can't do it.
85396
85397 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85398
85399         * m4/mktime.m4: New file, which is a preview of what should appear
85400         in the next public autoconf release.
85401
85402 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85403
85404         * m4/lfs.m4: Remove this file.
85405         * m4/largefile.m4: New file.  It contains the old contents of
85406         lfs.m4, except that all names with prefix AC_LFS have been
85407         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85408         compatible with future autoconf versions.  Also, some minor m4
85409         quoting problems have been fixed.
85410
85411 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85412
85413         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85414         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85415         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85416         and simplify the shell code.
85417
85418 1999-08-01  Jim Meyering  <meyering@ascend.com>
85419
85420         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85421         m4.
85422
85423 1999-07-20  Jim Meyering  <meyering@ascend.com>
85424
85425         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85426
85427 1999-07-15  Jim Meyering  <meyering@ascend.com>
85428
85429         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85430
85431 1999-05-22  Jim Meyering  <meyering@ascend.com>
85432
85433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85434
85435 1999-05-20  Jim Meyering  <meyering@ascend.com>
85436
85437         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85438         Add a colon after each `then' in case $4 is empty.
85439
85440 1999-05-16  Jim Meyering  <meyering@ascend.com>
85441
85442         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85443
85444 1999-05-10  Jim Meyering  <meyering@ascend.com>
85445
85446         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85447
85448         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85449         AC_FUNC_MKTIME.
85450
85451 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85452
85453         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85454
85455 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85456
85457         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85458         not CPPFLAGS, so that linking works correctly in IRIX.
85459
85460 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85461
85462         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85463
85464 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85465
85466         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85467         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85469         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85470         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85471
85472         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85473
85474 1999-04-20  Jim Meyering  <meyering@ascend.com>
85475
85476         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85477         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85478         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85479
85480 1999-04-18  Jim Meyering  <meyering@ascend.com>
85481
85482         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85483         * m4/jm-macros.m4: Use it.
85484
85485 1999-04-06  Jim Meyering  <meyering@ascend.com>
85486
85487         * m4/strftime.m4: Remove test for %f.
85488
85489 1999-03-29  Jim Meyering  <meyering@ascend.com>
85490
85491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85492         superset of the AC_TYPE_* checks in the textutils, fileutils,
85493         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85494         AC_TYPE_PID_T.
85495
85496 1999-03-28  Jim Meyering  <meyering@ascend.com>
85497
85498         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85499         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85500         replaced e.g., in the *.sh files of the sh-utils.
85501
85502 1999-03-20  Jim Meyering  <meyering@ascend.com>
85503
85504         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85505         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85506         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85507
85508 1999-03-19  Jim Meyering  <meyering@ascend.com>
85509
85510         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85511
85512 1999-03-12  Jim Meyering  <meyering@ascend.com>
85513
85514         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85515
85516 1999-03-07  Jim Meyering  <meyering@ascend.com>
85517
85518         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85519         declared.
85520
85521 1999-02-17  Jim Meyering  <meyering@ascend.com>
85522
85523         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85524         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85525
85526 1999-02-07  Jim Meyering  <meyering@ascend.com>
85527
85528         * m4/group-member.m4: New file -- extracted from sh-utils'
85529         configure.in.
85530
85531         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85532         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85533
85534 1999-02-06  Jim Meyering  <meyering@ascend.com>
85535
85536         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85537         * m4/fnmatch.m4: Likewise.
85538         * m4/getgroups.m4: Likewise.
85539         * m4/lstat.m4: Likewise.
85540         * m4/malloc.m4: Likewise.
85541         * m4/putenv.m4: Likewise.
85542         * m4/realloc.m4: Likewise.
85543         * m4/regex.m4: Likewise.
85544         * m4/stat.m4: Likewise.
85545         * m4/strftime.m4: Likewise.
85546         Suggestion from Alain Magloire.
85547
85548         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85549         * m4/fnmatch.m4: Likewise.
85550         * m4/getgroups.m4: Likewise.
85551         * m4/getline.m4: Likewise.
85552         * m4/lstat.m4: Likewise.
85553         * m4/malloc.m4: Likewise.
85554         * m4/memcmp.m4: Likewise.
85555         * m4/putenv.m4: Likewise.
85556         * m4/realloc.m4: Likewise.
85557         * m4/regex.m4: Likewise.
85558         * m4/stat.m4: Likewise.
85559         * m4/strftime.m4: Likewise.
85560         Suggestion from Alain Magloire.
85561
85562         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85563         an argument.
85564
85565         * m4/regex.m4: Add a run-time Test for proper operation of
85566         re_compile_pattern.
85567
85568 1999-01-31  Jim Meyering  <meyering@ascend.com>
85569
85570         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85571
85572 1999-01-30  Jim Meyering  <meyering@ascend.com>
85573
85574         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85575
85576         * m4/jm-mktime.m4: Make this a wrapper around the official
85577         AM_FUNC_MKTIME rather than my private copy, now that the official one
85578         is up to date.
85579         * m4/mktime.m4: Remove file.
85580
85581         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85582         * m4/uptime.m4: Likewise.
85583         * m4/uintmax_t.m4: Likewise.
85584
85585 1999-01-28  Jim Meyering  <meyering@ascend.com>
85586
85587         * m4/jm-macros.m4: Use jm_AFS.
85588         * m4/afs.m4: New file (from fileutils' configure.in).
85589
85590         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85591         * m4/chown.m4: Likewise.
85592         * m4/d-ino.m4: Likewise.
85593         * m4/d-type.m4: Likewise.
85594         * m4/fnmatch.m4: Likewise.
85595         * m4/getgroups.m4: Likewise.
85596         * m4/gettext.m4: Likewise.
85597         * m4/jm-mktime.m4: Likewise.
85598         * m4/jm-winsz2.m4: Likewise.
85599         * m4/lcmessage.m4: Likewise.
85600         * m4/ls-mntd-fs.m4: Likewise.
85601         * m4/malloc.m4: Likewise.
85602         * m4/memcmp.m4: Likewise.
85603         * m4/putenv.m4: Likewise.
85604         * m4/realloc.m4: Likewise.
85605         * m4/st_mtim.m4: Likewise.
85606         * m4/strftime.m4: Likewise.
85607
85608 1999-01-16  Jim Meyering  <meyering@ascend.com>
85609
85610         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85611         (ARGMATCH_DIE_DECL): Define.
85612
85613 1999-01-12  Jim Meyering  <meyering@ascend.com>
85614
85615         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85616         Reported by Lars Hecking.
85617
85618 1999-01-10  Jim Meyering  <meyering@ascend.com>
85619
85620         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85621         gross kludge.
85622         * m4/inttypes_h.m4: Likewise.
85623         * m4/lstat.m4: Likewise.
85624         * m4/malloc.m4: Likewise.
85625         * m4/readdir.m4: Likewise.
85626         * m4/realloc.m4: Likewise.
85627         * m4/st_dm_mode.m4: Likewise.
85628         * m4/stat.m4: Likewise.
85629         * m4/utimbuf.m4: Likewise.
85630         * m4/utimes.m4: Likewise.
85631
85632         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85633         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85634         comments in config.h.in are meaningful.
85635
85636         * m4/jm-macros.m4: Require autoconf-2.13 here.
85637
85638         * m4/regex.m4: By default, don't use the included regex.c on systems
85639         with glibc 2.  Suggestion from Uli Drepper.
85640
85641 1999-01-02  Jim Meyering  <meyering@ascend.com>
85642
85643         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85644
85645 1998-12-18  Jim Meyering  <meyering@ascend.com>
85646
85647         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85648         Based on a suggestion from Lars Hecking.
85649
85650 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85651
85652         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85653
85654 1998-11-16  Jim Meyering  <meyering@ascend.com>
85655
85656         * m4/lfs.m4: Double-quote the `uname...` expression.
85657
85658 1998-11-14  Jim Meyering  <meyering@ascend.com>
85659
85660         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85661         * m4/stat.m4: Likewise.
85662
85663 1998-11-03  Jim Meyering  <meyering@ascend.com>
85664
85665         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85666         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85667
85668 1998-10-18  Jim Meyering  <meyering@ascend.com>
85669
85670         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85671
85672 1998-10-17  Jim Meyering  <meyering@ascend.com>
85673
85674         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85675         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85676         calls for those previously hard-coded headers.  Instead, take a new
85677         parameter.
85678         (jm_CHECK_DECLARATIONS): Reflect interface change.
85679         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85680         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85681
85682         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85683
85684 1998-10-14  Jim Meyering  <meyering@ascend.com>
85685
85686         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85687         instead of "TZ=America/Vancouver".  From Paul Eggert.
85688
85689 1998-10-11  Jim Meyering  <meyering@ascend.com>
85690
85691         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85692         This adds a test for a recently added compatibility fix for mktime.c.
85693         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85694
85695 1998-09-27  Jim Meyering  <meyering@ascend.com>
85696
85697         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85698
85699         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85700         ../configure.in, including a change from Gordon Matzigkeit to allow
85701         cross-compiling for the Hurd.
85702
85703         * m4/glibc.m4: New file/macro to test for the GNU C Library
85704         versions 1 and 2.  From Gordon Matzigkeit.
85705         Indent.
85706
85707 1998-09-21  Jim Meyering  <meyering@ascend.com>
85708
85709         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85710
85711 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85712
85713         Port nanosecond-resolution times to UnixWare 2.1.2 and
85714         pedantic Solaris 2.6.
85715
85716         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85717         AC_STRUCT_ST_MTIM.
85718         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85719         Generate name of ns member, instead of just 1 or undef.
85720         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85721
85722 1998-08-15  Jim Meyering  <meyering@ascend.com>
85723
85724         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85725         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85726         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85727         instead of jm_TYPE_SSIZE_T.
85728
85729 1998-08-12  Jim Meyering  <meyering@ascend.com>
85730
85731         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85732
85733 1998-08-02  Jim Meyering  <meyering@ascend.com>
85734
85735         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85736         in acconfig.h manually.
85737
85738 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85739
85740         * m4/st_mtim.m4: New file.
85741
85742 1998-07-28  Jim Meyering  <meyering@ascend.com>
85743
85744         * m4/utimes.m4: Undef stat.
85745
85746 1998-07-25  Jim Meyering  <meyering@ascend.com>
85747
85748         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85749         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85750
85751 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85752
85753         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85754         uid and gid actually remain unchanged.
85755
85756 1998-07-07  Jim Meyering  <meyering@ascend.com>
85757
85758         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85759
85760 1998-07-04  Jim Meyering  <meyering@ascend.com>
85761
85762         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85763         to prove that this macro can be used in packages without regex.c.
85764
85765 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85766
85767         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85768         is to be used.
85769
85770 1998-07-03  Jim Meyering  <meyering@ascend.com>
85771
85772         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85773
85774         * m4/gettext.m4: New file -- from gettext-0.10.35.
85775         * m4/lcmessage.m4: Likewise.
85776         * m4/progtest.m4: Likewise.
85777
85778         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85779         * m4/jm-macros.m4: Require the new macro.
85780
85781 1998-06-29  Jim Meyering  <meyering@ascend.com>
85782
85783         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85784         for the definition of NGROUPS (used in a system header included
85785         by sys/mount.h).
85786
85787 1998-06-28  Jim Meyering  <meyering@ascend.com>
85788
85789         * m4/ls-mntd-fs.m4: New file.
85790         * m4/fstypename.m4: New file.
85791
85792         * m4/jm-macros.m4: Require the new macro.
85793         * m4/jm-glibc-io.m4: New file.
85794
85795 1998-05-19  Jim Meyering  <meyering@ascend.com>
85796
85797         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85798         * m4/lchown.m4: New file.
85799
85800         * m4/Makefile.am.in: New file.
85801         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85802
85803 1998-05-14  Jim Meyering  <meyering@ascend.com>
85804
85805         * m4/Makefile.am (EXTRA_DIST): Add them.
85806         * m4/jm-macros.m4: New file.
85807         * m4/utimbuf.m4: New file.
85808
85809 1998-05-12  Jim Meyering  <meyering@ascend.com>
85810
85811         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85812
85813 1998-05-11  Jim Meyering  <meyering@ascend.com>
85814
85815         * m4/isc-posix.m4: New file.
85816
85817 1998-05-10  Jim Meyering  <meyering@ascend.com>
85818
85819         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85820
85821 1998-05-09  Jim Meyering  <meyering@ascend.com>
85822
85823         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85824         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85825         with automake.
85826
85827         * m4/ssize_t.m4: New file.
85828         * m4/mktime.m4: Remove file -- the new automake has this now.
85829
85830 1998-04-26  Jim Meyering  <meyering@ascend.com>
85831
85832         * m4/assert.m4: New file.
85833         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85834
85835 1998-04-05  Jim Meyering  <meyering@ascend.com>
85836
85837         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85838         (jm_PREREQ): Use it here.
85839
85840 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85841
85842         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85843         in acconfig.h.
85844
85845 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85846
85847         * m4/prereq.m4: New file.
85848         * m4/error.m4: New file.
85849         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85850
85851 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85852
85853         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85854         cache-check for the same variable -- that defeated the purpose of
85855         the test; the test program was never run.  This was a problem only
85856         on systems with losing getline functions -- HP-UX 10.20 is one.
85857         Reported by Bjorn Helgaas.
85858
85859 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85860
85861         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85862
85863 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85864
85865         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85866
85867         * m4/const.m4: New file.  Use an initializer in this declaration
85868         typedef int charset[2]; const charset x;
85869         Reported by Bob Glickstein.
85870
85871 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85872
85873         * m4/chown.m4: Fix reversed types on -1 args to chown.
85874         From Kaveh Ghazi.
85875
85876 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85877
85878         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85879         Add lseek and memchr.
85880
85881         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85882         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85883         have a 20-character limit on names.
85884
85885 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85886
85887         * m4/inttypes_h.m4: New file.
85888         * m4/uintmax_t.m4: New file.
85889         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85890
85891
85892         -----
85893
85894         Local Variables:
85895         coding: utf-8
85896         End:
85897
85898         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85899
85900         Copying and distribution of this file, with or without
85901         modification, are permitted provided the copyright notice
85902         and this notice are preserved.