Expand range of versions of glibc for which _GNU_SOURCE is needed to get crypt.
[gnulib.git] / ChangeLog
1 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
2
3         Doc about crypt functions.
4         * doc/posix-functions/crypt.texi: Expand range of glibc versions
5         needing for _GNU_SOURCE to get crypt.
6         * doc/posix-functions/encrypt.texi: Likewise.
7         * doc/posix-functions/setkey.texi: Likewise.
8
9 2011-09-11  Bruno Haible  <bruno@clisp.org>
10
11         doc: Update regarding MSVC 9.
12         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
13         tested".
14         * doc/posix-functions/*.texi: Update with info about MSVC 9.
15         * doc/posix-headers/*.texi: Likewise.
16         * doc/pastposix-functions/*.texi: Likewise.
17         * doc/glibc-functions/*.texi: Likewise.
18         * doc/glibc-headers/*.texi: Likewise.
19
20 2011-09-11  Bruno Haible  <bruno@clisp.org>
21
22         unistd et al.: Don't assume <unistd.h> exists.
23         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
24         does not exist.
25         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
26         exist. But include <stdlib.h>.
27         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
28         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
29         symlink() does not exist.
30         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
31         include <io.h> instead.
32         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
33         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
34         include <direct.h> instead.
35         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
36         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
38         <io.h> instead.
39         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
40         correctly if the system does not have hard links.
41         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
42         <direct.h> instead.
43         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
44         it when looking for function declarations.
45         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
46         <direct.h> and <io.h> instead.
47         * doc/posix-headers/unistd.texi: More details about MSVC problem.
48
49 2011-09-11  Bruno Haible  <bruno@clisp.org>
50
51         strcase: Support for MSVC.
52         * modules/strcase (Status, Notice): Remove obsoletion mark.
53         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
54         * doc/posix-functions/strncasecmp.texi: Likewise.
55
56         strings: Don't assume <strings.h> exists.
57         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
58         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
59         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
60         * doc/posix-headers/strings.texi: Mention the MSVC problem.
61
62 2011-09-11  Bruno Haible  <bruno@clisp.org>
63
64         dirent: Don't assume <dirent.h> exists.
65         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
66         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
67         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
68         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
69
70 2011-09-11  Bruno Haible  <bruno@clisp.org>
71
72         Fix wint_t on MSVC.
73         * lib/wchar.in.h (wint_t): On MSVC, override it.
74         * lib/wctype.in.h (wint_t): Likewise.
75         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
76         MSVC.
77         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
78         * doc/posix-headers/wctype.texi: Likewise.
79
80 2011-09-11  Bruno Haible  <bruno@clisp.org>
81
82         sys_types: Fix typo.
83         * lib/sys_types.in.h: Fix typo in comment.
84         Reported by Paul Eggert.
85
86         Support for MSVC compiler: Ensure size_t gets defined.
87         * modules/strings (Depends-on): Add 'sys_types'.
88         * modules/sys_uio (Depends-on): Likewise.
89         * lib/sys_uio.in.h: Update comment.
90
91         C++ tests for module 'sys_types'.
92         * modules/sys_types-c++-tests: New file.
93         * tests/test-sys_types-c++.cc: New file.
94
95         Tests for module 'sys_types'.
96         * modules/sys_types-tests: New file.
97         * tests/test-sys_types.c: New file.
98
99         New module 'sys_types'.
100         * lib/sys_types.in.h: New file.
101         * m4/sys_types_h.m4: New file.
102         * modules/sys_types: New file.
103         * doc/posix-headers/sys_types.texi: Mention the new module and the
104         size_t problem on MSVC 9.
105
106 2011-09-11  Bruno Haible  <bruno@clisp.org>
107
108         Support for MSVC compiler: Avoid division by a literal 0.
109         * lib/math.in.h (NAN): Define through a function call also on MSVC.
110         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
111         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
112         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
113         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
114         * tests/infinity.h: New file.
115         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
116         on MSVC.
117         * tests/test-ceilf1.c: Include infinity.h.
118         (main): Use Infinityf.
119         * tests/test-ceil1.c: Include infinity.h.
120         (main): Use Infinityd.
121         * tests/test-ceill.c: Include infinity.h.
122         (main): Use Infinityl.
123         * tests/test-dprintf-posix.c: Include infinity.h.
124         (test_function): Use Infinityd.
125         * tests/test-floorf1.c: Include infinity.h.
126         (main): Use Infinityf.
127         * tests/test-floor1.c: Include infinity.h.
128         (main): Use Infinityd.
129         * tests/test-floorl.c: Include infinity.h.
130         (main): Use Infinityl.
131         * tests/test-fprintf-posix.c: Include infinity.h.
132         (test_function): Use Infinityd.
133         * tests/test-frexp.c: Include infinity.h.
134         (main): Use Infinityd.
135         * tests/test-frexpl.c: Include infinity.h.
136         (main): Use Infinityl.
137         * tests/test-isfinite.c: Include infinity.h.
138         (test_isfinitef): Use Infinityf.
139         (test_isfinited): Use Infinityd.
140         (test_isfinitel): Use Infinityl.
141         * tests/test-isinf.c: Include infinity.h.
142         (test_isinff): Use Infinityf.
143         (test_isinfd): Use Infinityd.
144         (test_isinfl): Use Infinityl.
145         * tests/test-isnan.c: Include infinity.h.
146         (test_float): Use Infinityf.
147         (test_double): Use Infinityd.
148         (test_long_double): Use Infinityl.
149         * tests/test-isnanf.h: Include infinity.h.
150         (main): Use Infinityf.
151         * tests/test-isnand.h: Include infinity.h.
152         (main): Use Infinityd.
153         * tests/test-isnanl.h: Include infinity.h.
154         (main): Use Infinityl.
155         * tests/test-ldexpl.c: Include infinity.h.
156         (main): Use Infinityl.
157         * tests/test-printf-posix.h: Include infinity.h.
158         (test_function): Use Infinityd.
159         * tests/test-roundf1.c: Include infinity.h.
160         (main): Use Infinityf.
161         * tests/test-round1.c: Include infinity.h.
162         (main): Use Infinityd.
163         * tests/test-roundl.c: Include infinity.h.
164         (main): Use Infinityl.
165         * tests/test-signbit.c: Include infinity.h.
166         (test_signbitf): Use Infinityf.
167         (test_signbitd): Use Infinityd.
168         (test_signbitl): Use Infinityl.
169         * tests/test-snprintf-posix.h: Include infinity.h.
170         (test_function): Use Infinityd, Infinityl.
171         * tests/test-sprintf-posix.h: Include infinity.h.
172         (test_function): Use Infinityd, Infinityl.
173         * tests/test-truncf1.c: Include infinity.h.
174         (main): Use Infinityf.
175         * tests/test-trunc1.c: Include infinity.h.
176         (main): Use Infinityd.
177         * tests/test-truncl.c: Include infinity.h.
178         (main): Use Infinityl.
179         * tests/test-vasnprintf-posix.c: Include infinity.h.
180         (test_function): Use Infinityd, Infinityl.
181         * tests/test-vasprintf-posix.c: Include infinity.h.
182         (test_function): Use Infinityd, Infinityl.
183         * modules/ceilf-tests (Files): Add tests/infinity.h.
184         * modules/ceil-tests (Files): Likewise.
185         * modules/ceill-tests (Files): Likewise.
186         * modules/dprintf-posix-tests (Files): Likewise.
187         * modules/floorf-tests (Files): Likewise.
188         * modules/floor-tests (Files): Likewise.
189         * modules/floorl-tests (Files): Likewise.
190         * modules/fprintf-posix-tests (Files): Likewise.
191         * modules/frexp-tests (Files): Likewise.
192         * modules/frexp-nolibm-tests (Files): Likewise.
193         * modules/frexpl-tests (Files): Likewise.
194         * modules/frexpl-nolibm-tests (Files): Likewise.
195         * modules/isfinite-tests (Files): Likewise.
196         * modules/isinf-tests (Files): Likewise.
197         * modules/isnan-tests (Files): Likewise.
198         * modules/isnanf-tests (Files): Likewise.
199         * modules/isnanf-nolibm-tests (Files): Likewise.
200         * modules/isnand-tests (Files): Likewise.
201         * modules/isnand-nolibm-tests (Files): Likewise.
202         * modules/isnanl-tests (Files): Likewise.
203         * modules/isnanl-nolibm-tests (Files): Likewise.
204         * modules/ldexpl-tests (Files): Likewise.
205         * modules/printf-posix-tests (Files): Likewise.
206         * modules/roundf-tests (Files): Likewise.
207         * modules/round-tests (Files): Likewise.
208         * modules/roundl-tests (Files): Likewise.
209         * modules/signbit-tests (Files): Likewise.
210         * modules/snprintf-posix-tests (Files): Likewise.
211         * modules/sprintf-posix-tests (Files): Likewise.
212         * modules/truncf-tests (Files): Likewise.
213         * modules/trunc-tests (Files): Likewise.
214         * modules/truncl-tests (Files): Likewise.
215         * modules/vasnprintf-posix-tests (Files): Likewise.
216         * modules/vasprintf-posix-tests (Files): Likewise.
217         * modules/vdprintf-posix-tests (Files): Likewise.
218         * modules/vfprintf-posix-tests (Files): Likewise.
219         * modules/vprintf-posix-tests (Files): Likewise.
220         * modules/vsnprintf-posix-tests (Files): Likewise.
221         * modules/vsprintf-posix-tests (Files): Likewise.
222         * modules/xprintf-posix-tests (Files): Likewise.
223
224 2011-09-11  Bruno Haible  <bruno@clisp.org>
225
226         Ensure pid_t gets defined.
227         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
228         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
229         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
230         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
231         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
232         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
233         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
234         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
235         * tests/test-fcntl-h.c: Check that pid_t is defined.
236         * tests/test-sched.c: Likewise.
237         * tests/test-termios.c: Likewise.
238         * tests/test-time.c: Likewise.
239         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
240         * doc/posix-headers/signal.texi: Likewise.
241         * doc/posix-headers/sys_types.texi: Likewise.
242         * doc/posix-headers/time.texi: Likewise.
243
244 2011-09-11  Bruno Haible  <bruno@clisp.org>
245
246         acl: Fix compilation on Solaris 10 (older version).
247         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
248         of ACE_EVERYONE.
249         * lib/set-mode-acl.c (qset_acl): Likewise.
250         Reported by Christian Jullien <eligis@orange.fr>.
251
252 2011-09-10  Bruno Haible  <bruno@clisp.org>
253
254         iconv, unsetenv: Add support for MSVC compiler.
255         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
256         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
257
258 2011-09-10  Bruno Haible  <bruno@clisp.org>
259
260         *printf: Add support for MSVC compiler.
261         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
262         handles the exception caused by the %n directive. When cross-compiling,
263         guess no on native Windows.
264         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
265         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
266         emulate it through vsnprintf.
267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
268         * doc/posix-functions/dprintf.texi: Update documentation regarding
269         MSVC 9.
270         * doc/posix-functions/fprintf.texi: Likewise.
271         * doc/posix-functions/printf.texi: Likewise.
272         * doc/posix-functions/snprintf.texi: Likewise.
273         * doc/posix-functions/sprintf.texi: Likewise.
274         * doc/posix-functions/swprintf.texi: Likewise.
275         * doc/posix-functions/vdprintf.texi: Likewise.
276         * doc/posix-functions/vfprintf.texi: Likewise.
277         * doc/posix-functions/vprintf.texi: Likewise.
278         * doc/posix-functions/vsnprintf.texi: Likewise.
279         * doc/posix-functions/vsprintf.texi: Likewise.
280         * doc/glibc-functions/asprintf.texi: Likewise.
281         * doc/glibc-functions/obstack_printf.texi: Likewise.
282         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
283         * doc/glibc-functions/vasprintf.texi: Likewise.
284
285 2011-09-10  Bruno Haible  <bruno@clisp.org>
286
287         nocrash: Add support for native Windows.
288         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
289
290 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
291             Bruno Haible  <bruno@clisp.org>
292
293         absolute-header, include-next: Add support for MSVC compiler.
294         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
295         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
296         directory separator in #line directives.
297         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
298         recognize also backslash as directory separator in #line directives.
299
300 2011-09-08  Jim Meyering  <meyering@redhat.com>
301
302         maint.mk: mark the post-release commit log with "maint: " prefix
303         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
304         one-line commit-log summary.
305
306 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
307             Bruno Haible  <bruno@clisp.org>
308
309         Doc about crypt functions.
310         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
311         systems.
312         * doc/posix-functions/encrypt.texi: Likewise.
313         * doc/posix-functions/setkey.texi: Likewise.
314
315 2011-09-08  Simon Josefsson  <simon@josefsson.org>
316
317         * lib/gc.h: Fix copyright header.
318
319 2011-09-07  Bruno Haible  <bruno@clisp.org>
320
321         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
322         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
323         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
324
325 2011-09-07  Bruno Haible  <bruno@clisp.org>
326
327         openat: Work around compilation error with OSF/1 5.1 DTK cc.
328         * lib/fopen.c: Use different syntax for include of <stdio.h>.
329         * lib/freopen.c: Likewise.
330         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
331         * lib/lstat.c: Likewise.
332         * lib/stat.c: Likewise.
333         * lib/open.c: Use different syntax for include of <fcntl.h>.
334         * lib/openat.c: Include fcntl.h again, explicitly.
335
336 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
337
338         parse-datetime: document the newly accepted format
339         * doc/parse-datetime.texi (Combined date and time of day items):
340         New section.
341
342 2011-09-06  Bruno Haible  <bruno@clisp.org>
343
344         acl: Fix a test failure on newer Solaris 10 with ZFS.
345         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
346         ENOSYS as no ACL.
347         Reported by Jim Meyering.
348
349 2011-09-06  Bruno Haible  <bruno@clisp.org>
350
351         acl: Update for AIX >= 5.3 with NFS.
352         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
353         ENOSYS as no ACL.
354
355         acl: Fix a test failure on AIX >= 5.3 with NFS.
356         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
357         as no ACL.
358
359 2011-09-06  Bruno Haible  <bruno@clisp.org>
360
361         acl: Fix a test failure on IRIX 6.5 with NFS.
362         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
363         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
364         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
365         * lib/copy-acl.c (qcopy_acl): Likewise.
366
367 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
368
369         openat: port to AIX 7.1 with large files
370         AIX 7.1 does a "#define openat open64at" if large files are in use,
371         so we can't simply #undef openat.  Use the orig_openat trick (similar
372         to orig_open in lib/open.c) to work around the problem.  Problem
373         reported by Kevin Brott for GNU tar, in the thread containing
374         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
375         * lib/openat.c (__need_system_fcntl_h): Define first.
376         Include <fcntl.h> and <sys/types.h> before undefining.
377         (orig_openat) [HAVE_OPENAT]: New inline function.
378         (openat) [HAVE_OPENAT]: Do not undef.
379         (rpl_openat): Use orig_openat, not openat.
380
381 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
382             Bruno Haible  <bruno@clisp.org>
383
384         acl: Avoid errors on NonStop Kernel.
385         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
386         ENOTSUP errors.
387
388 2011-09-05  Bruno Haible  <bruno@clisp.org>
389
390         acl: Clean up Solaris code.
391         * lib/acl-internal.h: Remove no-op #if.
392         * lib/file-has-acl.c: Likewise.
393         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
394         * lib/copy-acl.c (qcopy_acl): Likewise.
395
396 2011-09-05  Bruno Haible  <bruno@clisp.org>
397
398         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
399         binaries built on the original Solaris 10.
400         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
401         trivial.
402
403 2011-09-05  Bruno Haible  <bruno@clisp.org>
404
405         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
406         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
407         10.
408         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
409         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
410         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
411         instead of acl_get, facl_get, acl_set, facl_set.
412
413 2011-09-05  Bruno Haible  <bruno@clisp.org>
414
415         copy-file: Try unit tests on more file systems.
416         * tests/test-copy-file-1.sh: New file.
417         * tests/test-copy-file-2.sh: New file.
418         * modules/copy-file-tests (Files): Add them.
419         (Makefile.am): Add them to TESTS.
420
421         acl: Try unit tests on more file systems.
422         * tests/test-file-has-acl-1.sh: New file.
423         * tests/test-file-has-acl-2.sh: New file.
424         * tests/test-set-mode-acl-1.sh: New file.
425         * tests/test-set-mode-acl-2.sh: New file.
426         * tests/test-copy-acl-1.sh: New file.
427         * tests/test-copy-acl-2.sh: New file.
428         * modules/acl-tests (Files): Add them.
429         (Makefile.am): Add them to TESTS.
430
431 2011-09-04  Bruno Haible  <bruno@clisp.org>
432
433         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
434         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
435         10.
436         (OLD_ALLOW, OLD_DENY): New macros.
437         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
438         ACE_ACCESS_ALLOWED_ACE_TYPE.
439         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
440         ACE_ACCESS_DENIED_ACE_TYPE.
441         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
442         (NEW_ACE_EXECUTE): Fix value.
443         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
444         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
445         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
446         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
447         NEW_ACE_SYNCHRONIZE): New macros.
448         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
449         instead of acl_fromtext, acl_set, facl_set.
450         Fixes a coreutils/tests/cp/perm failure.
451
452 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
453
454         openat: test for fstatat (..., 0) bug
455         Further testing with tar suggests that fstatat (..., 0)
456         does not work in general, on AIX 7.1; see
457         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
458         So, give up entirely on AIX 7.1's fstatat, and fall back on our
459         replacement fstatat (which is what older AIX releases were using
460         anyway).
461         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
462         use is now changed to orig_fstatat.  This was probably the right
463         thing to do anyway.
464         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
465         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
466         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
467         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
468         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
469         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
470         if the bug is found.
471
472         openat: test for fstatat (AT_FDCWD, ..., 0) bug
473         This tests for another fstatat bug on AIX 7.1:
474         fstatat (AT_FDCWD, ..., 0) does not work.  See
475         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
476         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
477         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
478         (rpl_fstatat): Adjust so that it works around either (or both)
479         bugs if present.
480         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
481
482 2011-09-03  Karl Berry  <karl@gnu.org>
483
484         * doc/regex.texi (Character Class Operators): Avoid literal ":"
485         in index entries.
486
487 2011-09-02  Bruno Haible  <bruno@clisp.org>
488
489         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
490         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
491         values of AR, ARFLAGS, RANLIB.
492         Reported by John W. Eaton <jwe@gnu.org> for Octave.
493
494 2011-09-02  Bruno Haible  <bruno@clisp.org>
495
496         Find 'ar' program that fits with --host argument.
497         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
498
499 2011-09-02  Bruno Haible  <bruno@clisp.org>
500
501         tests: init.sh: Support any non-GNU diff.
502         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
503         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
504         Solaris 8.
505
506 2011-09-02  Bruno Haible  <bruno@clisp.org>
507
508         tests: init.sh: work also with any non-GNU diff that supports -u
509         * tests/init.sh: Relax check for diff -u support.
510         Rather than checking for GNU diff via --version, simply check
511         for support for -u itself.  Useful at least on OpenBSD 4.9,
512         AIX 7.1, IRIX 6.5, and Solaris 10.
513
514 2011-09-01  Bruno Haible  <bruno@clisp.org>
515
516         strtoimax, strtoumax: Document problem on HP-UX 11.
517         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
518         * doc/posix-functions/strtoumax.texi: Likewise.
519
520 2011-09-01  Bruno Haible  <bruno@clisp.org>
521
522         strtoumax: Avoid link error on OSF/1 with DTK cc.
523         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
524         defined as a function.
525         * modules/strtoumax (Depends-on, configure.ac): Test only whether
526         strtoumax is defined, not whether it is declared.
527
528 2011-09-01  Bruno Haible  <bruno@clisp.org>
529
530         strtoimax: Avoid link error on OSF/1 with DTK cc.
531         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
532         defined as a function.
533         * modules/strtoimax (Depends-on, configure.ac): Test only whether
534         strtoimax is defined, not whether it is declared.
535
536 2011-09-01  Bruno Haible  <bruno@clisp.org>
537
538         imaxdiv: Avoid link error on OSF/1 with DTK cc.
539         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
540         as a function.
541         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
542         whether it is declared.
543
544 2011-09-01  Bruno Haible  <bruno@clisp.org>
545
546         imaxabs: Avoid link error on OSF/1 with DTK cc.
547         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
548         as a function.
549         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
550         whether it is declared.
551
552 2011-09-01  Bruno Haible  <bruno@clisp.org>
553
554         Tests for module 'strtoumax'.
555         * modules/strtoumax-tests: New file.
556         * tests/test-strtoumax.c: New file.
557
558         Tests for module 'strtoimax'.
559         * modules/strtoimax-tests: New file.
560         * tests/test-strtoimax.c: New file.
561
562         Tests for module 'imaxdiv'.
563         * modules/imaxdiv-tests: New file.
564         * tests/test-imaxdiv.c: New file.
565
566         Tests for module 'imaxabs'.
567         * modules/imaxabs-tests: New file.
568         * tests/test-imaxabs.c: New file.
569
570 2011-09-01  Bruno Haible  <bruno@clisp.org>
571
572         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
573         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
574         pthread_create.
575
576 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
577
578         openat: work around AIX 7.1 fstatat issue
579         This should fix the problem that was not properly fixed
580         in the previous change, dated 2011-08-30.
581         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
582         __need_system_stat_h defined.
583         (orig_fstatat) [HAVE_FSTATAT]: New function.
584         (rpl_fstatat): Go back to the old way of doing things,
585         except call orig_fstatat instead of fstatat.
586         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
587         Remove unnecessary check whether fstatat fills in st_size etc.
588
589 2011-09-01  Bruno Haible  <bruno@clisp.org>
590
591         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
592         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
593         just include the system's header.
594
595 2011-08-31  Jim Meyering  <meyering@redhat.com>
596
597         tests: avoid spurious assertion failure in test-float.c on ppc64
598         * tests/test-float.c (test_long_double): Comment out an assertion,
599         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
600         with gcc-4.4.4.
601
602         maint: indent with spaces, not TABs
603         I need to get in the habit of running gnulib's "make check".
604         Both of these would have been caught.
605         * m4/largefile.m4: Indent with spaces, not TABs.
606         * lib/parse-datetime.y (iso_8601_time): Likewise.
607         Spotted by Pádraig Brady.
608
609         test-parse-datetime.c: accommodate a relatively strict gcc warning
610         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
611         to avoid a warning from gcc's -Werror=missing-declarations.
612         Insert a few spaces-before-funcall-parenthesis.
613
614 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
615
616         parse-datetime: accept ISO 8601 date and time rep with "T" separator
617         The parser now accepts ISO 8601 date-time strings with "T" as the
618         separator.  It has long parsed dates like "2004-02-29 16:21:42"
619         with a space between the date and time strings.  Now it also parses
620         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
621         variants like "2004-02-29T16:21:42.333-07:00"
622         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
623         of day representation using the 'T' separator character.
624         * doc/parse-datetime.texi (General date syntax): replace use of
625         deprecated --iso-8601 option with --rfc-3339 in example of date
626         command output formats that can be parsed.
627         * tests/test-parse-datetime.c (tm_diff): New function, taken from
628         lib/parse-datetime.y.
629         (gmt_offset): New function.
630         (main): Add additional test cases to validate ISO8601 extended
631         date and time of day parsing.
632
633 2011-08-31  Bruno Haible  <bruno@clisp.org>
634
635         freopen: Documentation.
636         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
637         name.
638         Reported by Claudio Bley <claudio.bley@gmail.com>.
639
640 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
641
642         freopen: Don't crash if the filename argument is NULL.
643         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
644         NULL.
645
646 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
647
648         openat: work around AIX 7.1 fstatat bug
649         Problem reported by Kevin Brott for GNU tar, in the thread containing
650         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
651         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
652         FSTATAT_ST_SIZE_ETC_BROKEN.
653         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
654         rpl_fstatat.
655         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
656         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
657         AC_CHECK_FUNCS_ONCE for fstatat.
658         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
659         fchmodat, mkdirat, openat and unlinkat.
660
661 2011-08-30  Bruno Haible  <bruno@clisp.org>
662
663         Avoid endless recursions if config.h includes some header files.
664         * lib/fopen.c (__need_FILE): Define already before including config.h.
665         * lib/freopen.c (__need_FILE): Likewise.
666         * lib/open.c (__need_system_fcntl_h): Likewise.
667         * lib/stat.c (__need_system_sys_stat_h): Likewise.
668         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
669         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
670
671 2011-08-25  Karl Berry  <karl@gnu.org>
672
673         * config/srclist.txt (ylwrap): new try.
674         * build-aux/ylwrap: new file.
675
676 2011-08-23  Bruno Haible  <bruno@clisp.org>
677
678         tmpdir: Use a good default directory on native Windows.
679         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
680         (P_tmpdir): Default to _P_tmpdir on native Windows.
681         (path_search): On native Windows, try the value returned by GetTempPath
682         before trying P_tmpdir.
683         * modules/tmpdir (Depends-on): Add pathmax.
684         Suggested by John Darrington <john@darrington.wattle.id.au>.
685
686 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
687
688         doc: fix typo in README-release
689         * top/README-release: Capitalize first word of a sentence.
690
691 2011-08-19  Jim Meyering  <meyering@redhat.com>
692
693         fts: do not exhaust memory when processing million-entry directories
694         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
695         directory would require about 256*N bytes of memory.  Thus, it was
696         easy to construct a directory too large to be processed by any of
697         those tools.  With this change, fts' maximum memory utilization is
698         now limited to around 30MB.
699         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
700         (fts_read): When we've processed the final entry (i.e., when
701         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
702         using the parent entry to read any remaining entries.  Dispatch
703         depending on what fts_build returns:
704         - NULL+stop, aka failure: stop
705         - NULL otherwise: move up in the dir hierarchy
706         - non-NULL: handle this new entry
707         (fts_build): Declare and use new local, continue_readdir.
708         Prepare to be called from fts_read, when the entries
709         from a partially-read directory have just been exhausted.
710         In that case, we'll skip the opendir and instead use the parent's
711         fts_dirp and derive dir_fd from that.
712         Finally, in the readdir loop, if we read max_entries entries,
713         exit the loop ensuring *not* to call closedir.  This is required
714         so that fts_dirp can be reused on a subsequent call.
715         Prompted by Ben England's report of memory exhaustion in find
716         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
717
718         maint: fts: move decl of `dp' down into while loop; split a long line
719         * lib/fts.c (fts_build): No semantic change.
720
721         fts: add/use new struct member, fts_dirp
722         We are about to use this to manage any directory with
723         too many entries to read all of them into memory at once.
724         To do that, we'll need to save the DIR* pointer in each
725         affected FTSENT struct.
726         * lib/fts_.h: Include <dirent.h>.
727         (struct FTSENT) [fts_dirp]: New member.
728         * lib/fts.c (closedir_and_clear): Define.
729         Use it in place of closedir so that we are sure to
730         clear the new fts_dirp member when done with it.
731         (fts_alloc): Initialize the new member.
732         (fts_lfree): Free, if needed.
733
734         maint: fts: give __opendir2 a new parameter and rename
735         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
736         than surreptitiously using sole caller's "dir_fd".
737         (fts_opendir): Rename from __opendir2.
738
739         maint: fts.c: remove __opendir2's now-unused parameter, oflag
740         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
741
742         maint: fts.c: correct off-by-one indentation
743         * lib/fts.c (fts_build): Correct indentation, change style
744         of a couple of block comments, and bracing style.
745
746         maint: fts.c: move __opendir2 #define "up" out of function body
747         * lib/fts.c (__opendir2): Move "up".  No semantic change.
748
749         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
750         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
751         out for a long time and besides was useful only on BSD systems.
752
753 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
754
755         regex: port to Stratus OpenVOS
756         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
757         define to empty, rather than attempting nonportable optimizations.
758         Problem reported by Paul Green in:
759         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
760         and fix suggested by Eric Blake in:
761         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
762
763 2011-08-17  Eric Blake  <eblake@redhat.com>
764
765         getcwd: fix test failures on mingw
766         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
767         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
768         test if long directory cannot be created, and allow mingw errno.
769
770         getcwd-lgpl: fix m4 to match relaxed test for BSD
771         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
772         (gl_FUNC_GETCWD_SIGNATURE): New macro.
773         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
774         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
775         signature problem.
776
777         getcwd: fix compilation on mingw64
778         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
779         getcwd.
780         Reported by Marc-André Lureau.
781
782         pipe2: silence compiler warning
783         * lib/pipe2.c (pipe2): Hide label if it is not used.
784
785 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
786
787         relocatable-prog: fix link error
788         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
789         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
790         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
791         into modules/relocatable-lib without noticing that
792         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
793         also needs to build relocatable.c.
794
795 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
796
797         getaddrinfo: fix sh typo in gai_strerrorA decl checking
798         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
799         shell code: it contained a 'break' that was not in a loop.
800         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
801         via a shell-language loop; this may have been true in old Autoconf
802         versions, but it's not true in Autoconf 2.68.  I found this bug
803         when testing coreutils git on Solaris 8, whose shell complains
804         about the syntax error.
805
806 2011-08-12  Simon Josefsson  <simon@josefsson.org>
807
808         * lib/base64.c: Fix comment to reference RFC 4648.
809         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
810         <gvtulder@gmail.com>.
811
812 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
813
814         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
815
816         po/Makefile.in.in: fix make -q problem
817         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
818         rule, since there's no file named 'check-macro-version' and its
819         use as a file breaks make -q.
820         (all): Don't depend on check-macro-version.
821         (CHECK_MACRO_VERSION): New macro.
822         (stamp-po): Use it.
823
824         configmake: fix make -q problem
825         * modules/configmake (configmake.h): Update configmake.h's time stamp
826         even if the file does not change.  Otherwise, 'make -q' fails.
827         Problem reported by Simon Josefsson in
828         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
829
830 2011-08-11  Jim Meyering  <meyering@redhat.com>
831
832         git-version-gen: correct the advice in a comment
833         * build-aux/git-version-gen: Correct comment.
834         Don't recommend to list .tarball-version in .gitignore.
835
836 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
837
838         base64: fix off-by-one buffer size bug
839         Problem and (trivial) fix reported by Gijs van Tulder in
840         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
841         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
842         * tests/test-base64.c (main): Catch the bug.
843
844 2011-08-10  Eric Blake  <eblake@redhat.com>
845
846         closein: correct comments
847         * lib/closein.c (close_stdin): Improve comments.
848
849 2011-08-09  Bruno Haible  <bruno@clisp.org>
850
851         More tests for 'fseeko'.
852         * tests/test-fseeko3.c: New file, from Eric Blake.
853         * tests/test-fseeko3.sh: New file.
854         * modules/fseeko-tests (Files): Add them.
855         (TESTS): Add test-fseeko3.sh.
856         (check_PROGRAMS): Add test-fseeko3.
857
858 2011-08-09  Eric Blake  <eblake@redhat.com>
859
860         fseeko: remove unneeded hack
861         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
862
863         fseeko: fix bug on glibc
864         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
865         Reported by John W. Eaton.
866
867 2011-08-08  Bruno Haible  <bruno@clisp.org>
868
869         unictype/base: Fix interoperability with preinstalled libunistring.
870         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
871         Reported by Simon Josefsson.
872
873 2011-08-08  Bruno Haible  <bruno@clisp.org>
874
875         iswblank: Detect declaration correctly.
876         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
877         AC_CHECK_DECLS invocation.
878
879 2011-08-08  Bruno Haible  <bruno@clisp.org>
880
881         tcgetsid: Detect declaration correctly.
882         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
883         AC_CHECK_DECLS invocation.
884         Reported by Simon Josefsson.
885
886 2011-08-08  Eric Blake  <eblake@redhat.com>
887
888         largefile: fix typo that regressed large file support
889         * modules/largefile (configure.ac-early): Fix section name.
890
891 2011-08-06  Karl Berry  <karl@gnu.org>
892
893         * MODULES.html.sh (func_all_files): _Noreturn is no longer
894         a separate module.
895
896 2011-08-05  Simon Josefsson  <simon@josefsson.org>
897
898         openat: Fix warnings and commens when building unlinkat.c on Hurd.
899         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
900         get prototype for free.
901
902 2011-08-04  Bruno Haible  <bruno@clisp.org>
903
904         Tests for module 'pathmax'.
905         * modules/pathmax-tests: New file.
906         * tests/test-pathmax.c: New file.
907
908         canonicalize-lgpl: Support larger filenames on the Hurd.
909         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
910         Reported by Paul Eggert.
911
912         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
913         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
914         * lib/chdir-long.h: Include pathmax.h.
915         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
916         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
917         (PATH_MAX): Remove code that is done by pathmax.h.
918         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
919         * lib/tmpfile.c: Add a comment.
920         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
921         * modules/chdir-long (Depends-on): Add pathmax.
922         * modules/getcwd (Depends-on): Add pathmax.
923         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
924         is not defined.
925         * doc/posix-headers/limits.texi: Mention the pathmax module.
926         * NEWS: Mention the change.
927
928 2011-08-02  Bruno Haible  <bruno@clisp.org>
929
930         pthread_sigmask: Actually use results of gl_THREADLIB.
931         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
932         gl_THREADLIB, not gl_[]THREADLIB.
933         Reported by Eric Blake.
934
935 2011-08-02  Jim Meyering  <meyering@redhat.com>
936
937         maint.mk: relax the default _gl_TS_function_match regexp
938         * top/maint.mk (_gl_TS_function_match): Don't require at least one
939         space between function name and "(" in an "extern" declaration.
940         That would fail to match a decl with no space there: extern void foo();
941
942 2011-07-31  Iain Nicol  <iain@thenicols.net>
943
944         git-version-gen: document that EXTRA_DIST must include .version
945         * build-aux/git-version-gen: In the how-to-use comment, document
946         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
947         will fail when run from an unpacked distribution tarball.
948
949 2011-08-01  Bruno Haible  <bruno@clisp.org>
950
951         wctype-h: Fix last change.
952         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
953         REPLACE_TOWLOWER to 0.
954         Reported by Sam Steingold <sds@gnu.org>.
955
956 2011-07-31  Bruno Haible  <bruno@clisp.org>
957
958         frexpl: Update autoconf test.
959         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
960         according to changes of 2011-06-20.
961
962 2011-07-31  Bruno Haible  <bruno@clisp.org>
963
964         sys_utsname: Add support for Minix.
965         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
966         <sys/utsname.h>.
967         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
968         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
969
970 2011-07-31  Bruno Haible  <bruno@clisp.org>
971
972         strings: Add support for Minix.
973         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
974         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
975         * doc/posix-headers/strings.texi: Document the Minix problem.
976
977 2011-07-31  Bruno Haible  <bruno@clisp.org>
978
979         wctype-h: Add support for Minix.
980         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
981         REPLACE_TOWLOWER.
982         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
983         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
984         REPLACE_ISWCNTRL.
985
986 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
987
988         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
989         This is a performance improvement for 64-bit hosts: it causes the
990         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
991
992 2011-07-31  Bruno Haible  <bruno@clisp.org>
993
994         stdioext: Add support for Minix.
995         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
996         * lib/fpurge.c (fpurge): Likewise.
997         * lib/freadahead.c (freadahead): Likewise.
998         * lib/freadable.c (freadable): Likewise.
999         * lib/freading.c (freading): Likewise.
1000         * lib/freadptr.c (freadptr): Likewise.
1001         * lib/freadseek.c (freadptrinc): Likewise.
1002         * lib/fseeko.c (rpl_fseeko): Likewise.
1003         * lib/fseterr.c (fseterr): Likewise.
1004         * lib/fwritable.c (fwritable): Likewise.
1005         * lib/fwriting.c (fwriting): Likewise.
1006         * lib/fflush.c (clear_ungetc_buffer): Update comment.
1007         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
1008
1009 2011-07-31  Bruno Haible  <bruno@clisp.org>
1010
1011         errno: Port to Minix.
1012         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
1013         ECONNABORTED are defined.
1014         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
1015         GNULIB_defined_ECONNABORTED): New macros.
1016         * lib/strerror-override.h (strerror_override): Test also
1017         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
1018         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
1019         ECONNABORTED.
1020         * doc/posix-headers/errno.texi: Mention the Minix problem.
1021
1022 2011-07-31  Bruno Haible  <bruno@clisp.org>
1023
1024         Work around declaration collisions on Minix.
1025         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
1026         defined, set REPLACE_MBSINIT.
1027         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
1028         defined, set REPLACE_MBRTOWC.
1029         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
1030         set REPLACE_MBRLEN.
1031         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
1032         defined, set REPLACE_MBSRTOWCS.
1033         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
1034         defined, set REPLACE_WCRTOMB.
1035         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
1036         defined, set REPLACE_WCSRTOMBS.
1037
1038 2011-07-31  Bruno Haible  <bruno@clisp.org>
1039
1040         Add support for Minix with ACK compiler.
1041         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
1042         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
1043         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
1044
1045 2011-07-31  Bruno Haible  <bruno@clisp.org>
1046
1047         Documentation about Minix.
1048         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
1049         * doc/glibc-headers/*.texi: Likewise.
1050         * doc/posix-functions/*.texi: Likewise.
1051         * doc/glibc-functions/*.texi: Likewise.
1052
1053 2011-07-31  Bruno Haible  <bruno@clisp.org>
1054
1055         snippet/warn-on-use: Fix indentation.
1056         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
1057
1058 2011-07-25  Jim Meyering  <meyering@redhat.com>
1059
1060         tests: test-update-copyright.sh: remove unnecessary "rm" commands
1061         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
1062         commands.
1063
1064 2011-07-27  Jim Meyering  <meyering@redhat.com>
1065
1066         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
1067         * top/maint.mk (gl_extract_significant_defines_): Now that
1068         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
1069         gnulib/lib/signal.in.h, and now that we recommend to
1070         define-if-undefined those two symbols in application code,
1071         we must filter them out of the "significant" list.
1072         This avoids a "make syntax-check" failure in coreutils.
1073
1074 2011-07-26  Eric Blake  <eblake@redhat.com>
1075
1076         warnings: add comments about previous patch
1077         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
1078         * m4/include_next.m4: Likewise.
1079         * m4/warn-on-use.m4: Likewise.
1080         * m4/warnings.m4: Likewise, and simplify use.
1081         Suggested by Stefano Lattarini.
1082
1083         include-next, warnings: support older autoconf
1084         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
1085         AS_VAR_PUSHDEF in a way that works with older autoconf.
1086         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
1087         Reported by Daniel P. Berrange.
1088
1089 2011-07-25  Bruno Haible  <bruno@clisp.org>
1090
1091         fseek, ftell: Fix doc.
1092         * doc/posix-functions/fseek.texi: Reword statement about
1093         AC_SYS_LARGEFILE.
1094         * doc/posix-functions/ftell.texi: Likewise.
1095
1096 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1097             Bruno Haible  <bruno@clisp.org>
1098
1099         Add dependencies to the 'largefile' module.
1100         * modules/fopen (Depends-on): Add 'largefile'.
1101         * modules/freopen (Depends-on): Likewise.
1102         * modules/fseeko (Depends-on): Likewise.
1103         * modules/ftello (Depends-on): Likewise.
1104         * modules/glob (Depends-on): Likewise.
1105         * modules/lseek (Depends-on): Likewise.
1106         * modules/lstat (Depends-on): Likewise.
1107         * modules/mkostemp (Depends-on): Likewise.
1108         * modules/mkostemps (Depends-on): Likewise.
1109         * modules/mkstemp (Depends-on): Likewise.
1110         * modules/mkstemps (Depends-on): Likewise.
1111         * modules/open (Depends-on): Likewise.
1112         * modules/openat (Depends-on): Likewise.
1113         * modules/pread (Depends-on): Likewise.
1114         * modules/pwrite (Depends-on): Likewise.
1115         * modules/scandir (Depends-on): Likewise.
1116         * modules/stat (Depends-on): Likewise.
1117         * modules/tmpfile (Depends-on): Likewise.
1118         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
1119         since the containing module now depends on the largefile module.
1120         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
1121         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
1122         off_t is fixed by gnulib.
1123         * doc/posix-functions/freopen.texi: Likewise.
1124         * doc/posix-functions/fseeko.texi: Likewise.
1125         * doc/posix-functions/fstatat.texi: Likewise.
1126         * doc/posix-functions/ftello.texi: Likewise.
1127         * doc/posix-functions/glob.texi: Likewise.
1128         * doc/posix-functions/lseek.texi: Likewise.
1129         * doc/posix-functions/lstat.texi: Likewise.
1130         * doc/posix-functions/mkstemp.texi: Likewise.
1131         * doc/posix-functions/open.texi: Likewise.
1132         * doc/posix-functions/openat.texi: Likewise.
1133         * doc/posix-functions/pread.texi: Likewise.
1134         * doc/posix-functions/pwrite.texi: Likewise.
1135         * doc/posix-functions/scandir.texi: Likewise.
1136         * doc/posix-functions/stat.texi: Likewise.
1137         * doc/posix-functions/tmpfile.texi: Likewise.
1138         * doc/glibc-functions/mkostemp.texi: Likewise.
1139         * doc/glibc-functions/mkostemps.texi: Likewise.
1140         * doc/glibc-functions/mkstemps.texi: Likewise.
1141
1142 2011-07-25  Bruno Haible  <bruno@clisp.org>
1143
1144         fcntl: Move AC_LIBOBJ invocation to module description.
1145         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
1146         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
1147
1148         fcntl: Remove call-in from fchdir.m4.
1149         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
1150         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
1151
1152         dup3: Remove potential call-in from fchdir.m4.
1153         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
1154         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
1155
1156         dup2: Move AC_LIBOBJ invocation to module description.
1157         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
1158         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
1159         Don't invoke AC_LIBOBJ.
1160         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
1161
1162         dup2: Remove call-in from fchdir.m4.
1163         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
1164         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
1165
1166         fclose: Move AC_LIBOBJ invocation to module description.
1167         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
1168         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
1169         to 1.
1170         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
1171
1172         fclose: Remove call-in from close.m4.
1173         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
1174         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
1175
1176         close: Move AC_LIBOBJ invocation to module description.
1177         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
1178         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
1179         1.
1180         * modules/close (configure.ac): Invoke AC_LIBOBJ.
1181
1182         close: Remove call-in from fchdir.m4.
1183         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
1184         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
1185
1186         open: Move AC_LIBOBJ invocation to module description.
1187         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
1188         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
1189         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
1190
1191         open: Remove call-in from fchdir.m4.
1192         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
1193         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
1194
1195         fchdir: Start to remove gl_REPLACE_* idiom.
1196         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
1197         (gl_FUNC_FCHDIR): Invoke it.
1198
1199 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
1200
1201         * lib/ftell.c (ftell): Comment out cast.
1202
1203         close: use gl_REPLACE_FCLOSE only if defined
1204         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
1205         is defined.  The close module doesn't depend on the fclose module
1206         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
1207         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
1208         I reproduced the problem with "./gnulib-tool --test close sys_socket".
1209
1210 2011-07-24  Jim Meyering  <meyering@redhat.com>
1211
1212         test-select.h: avoid warning when using gcc's -Wmissing-declarations
1213         * tests/test-select.h (test_function): Declare as "static".
1214
1215 2011-07-24  Bruno Haible  <bruno@clisp.org>
1216
1217         doc: Mention the effects of AC_SYS_LARGEFILE.
1218         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
1219         on this function.
1220         * doc/posix-functions/aio_error.texi: Likewise.
1221         * doc/posix-functions/aio_fsync.texi: Likewise.
1222         * doc/posix-functions/aio_read.texi: Likewise.
1223         * doc/posix-functions/aio_return.texi: Likewise.
1224         * doc/posix-functions/aio_suspend.texi: Likewise.
1225         * doc/posix-functions/aio_write.texi: Likewise.
1226         * doc/posix-functions/fgetpos.texi: Likewise.
1227         * doc/posix-functions/fopen.texi: Likewise.
1228         * doc/posix-functions/freopen.texi: Likewise.
1229         * doc/posix-functions/fsetpos.texi: Likewise.
1230         * doc/posix-functions/fstatvfs.texi: Likewise.
1231         * doc/posix-functions/ftruncate.texi: Likewise.
1232         * doc/posix-functions/ftw.texi: Likewise.
1233         * doc/posix-functions/getrlimit.texi: Likewise.
1234         * doc/posix-functions/glob.texi: Likewise.
1235         * doc/posix-functions/lio_listio.texi: Likewise.
1236         * doc/posix-functions/lockf.texi: Likewise.
1237         * doc/posix-functions/mkstemp.texi: Likewise.
1238         * doc/posix-functions/mmap.texi: Likewise.
1239         * doc/posix-functions/nftw.texi: Likewise.
1240         * doc/posix-functions/openat.texi: Likewise.
1241         * doc/posix-functions/opendir.texi: Likewise.
1242         * doc/posix-functions/posix_fadvise.texi: Likewise.
1243         * doc/posix-functions/posix_fallocate.texi: Likewise.
1244         * doc/posix-functions/pread.texi: Likewise.
1245         * doc/posix-functions/pwrite.texi: Likewise.
1246         * doc/posix-functions/readdir.texi: Likewise.
1247         * doc/posix-functions/readdir_r.texi: Likewise.
1248         * doc/posix-functions/rewinddir.texi: Likewise.
1249         * doc/posix-functions/scandir.texi: Likewise.
1250         * doc/posix-functions/seekdir.texi: Likewise.
1251         * doc/posix-functions/setrlimit.texi: Likewise.
1252         * doc/posix-functions/statvfs.texi: Likewise.
1253         * doc/posix-functions/telldir.texi: Likewise.
1254         * doc/posix-functions/tmpfile.texi: Likewise.
1255         * doc/posix-functions/truncate.texi: Likewise.
1256         * doc/glibc-functions/fallocate.texi: Likewise.
1257         * doc/glibc-functions/fstatfs.texi: Likewise.
1258         * doc/glibc-functions/fts_children.texi: Likewise.
1259         * doc/glibc-functions/fts_read.texi: Likewise.
1260         * doc/glibc-functions/getdirentries.texi: Likewise.
1261         * doc/glibc-functions/mkostemp.texi: Likewise.
1262         * doc/glibc-functions/mkostemps.texi: Likewise.
1263         * doc/glibc-functions/mkstemps.texi: Likewise.
1264         * doc/glibc-functions/preadv.texi: Likewise.
1265         * doc/glibc-functions/pwritev.texi: Likewise.
1266         * doc/glibc-functions/sendfile.texi: Likewise.
1267         * doc/glibc-functions/statfs.texi: Likewise.
1268
1269 2011-07-24  Bruno Haible  <bruno@clisp.org>
1270
1271         doc: Fix typo.
1272         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
1273
1274 2011-07-24  Bruno Haible  <bruno@clisp.org>
1275
1276         doc: Mention fsusage.
1277         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
1278
1279 2011-07-24  Bruno Haible  <bruno@clisp.org>
1280
1281         doc: Mention new glibc headers and functions.
1282         * doc/glibc-headers/gshadow.texi: New file.
1283         * doc/glibc-functions/endsgent.texi: New file.
1284         * doc/glibc-functions/fgetsgent.texi: New file.
1285         * doc/glibc-functions/fgetsgent_r.texi: New file.
1286         * doc/glibc-functions/getsgent.texi: New file.
1287         * doc/glibc-functions/getsgent_r.texi: New file.
1288         * doc/glibc-functions/getsgnam.texi: New file.
1289         * doc/glibc-functions/getsgnam_r.texi: New file.
1290         * doc/glibc-functions/putsgent.texi: New file.
1291         * doc/glibc-functions/setsgent.texi: New file.
1292         * doc/glibc-functions/sgetsgent.texi: New file.
1293         * doc/glibc-functions/sgetsgent_r.texi: New file.
1294         * doc/glibc-functions/malloc_info.texi: New file.
1295         * doc/glibc-functions/preadv.texi: New file.
1296         * doc/glibc-functions/pwritev.texi: New file.
1297         * doc/glibc-functions/register_printf_modifier.texi: New file.
1298         * doc/glibc-functions/register_printf_specifier.texi: New file.
1299         * doc/glibc-functions/register_printf_type.texi: New file.
1300         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
1301         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
1302         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
1303         * doc/glibc-functions/pthread_getname_np.texi: New file.
1304         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
1305         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
1306         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
1307         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
1308         * doc/glibc-functions/pthread_setname_np.texi: New file.
1309         * doc/glibc-functions/pthread_sigqueue.texi: New file.
1310         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
1311         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
1312         * doc/glibc-functions/qsort_r.texi: New file.
1313         * doc/glibc-functions/quick_exit.texi: New file.
1314         * doc/glibc-functions/syncfs.texi: New file.
1315         * doc/gnulib.texi: Include them.
1316         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
1317         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
1318         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
1319         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
1320         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
1321         * doc/glibc-functions/execvpe.texi: Likewise.
1322
1323 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1324
1325         ftell: don't include <unistd.h>
1326         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
1327         guaranteed to define off_t, and the ftell module depends on the
1328         stdio module.
1329
1330         ftell: do not assume wraparound signed arithmetic
1331         * lib/ftell.c: Include <limits.h>.
1332         (ftell): Don't assume wraparound signed arithmetic.
1333
1334 2011-07-24  Bruno Haible  <bruno@clisp.org>
1335
1336         close: No longer depend on module 'fclose'.
1337         * modules/close (Depends-on): Remove fclose.
1338         * NEWS: Mention the change.
1339         Suggested by Sam Steingold <sds@gnu.org>.
1340
1341 2011-07-24  Bruno Haible  <bruno@clisp.org>
1342
1343         fsusage: Enable large volume support on AIX >= 5.2.
1344         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
1345         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
1346         instead of STAT_STATVFS.
1347         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
1348
1349         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
1350         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
1351         f_blocks field only on MacOS X.
1352
1353         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
1354         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
1355         * modules/fsusage (Depends-on): Add largefile.
1356
1357 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         * README: Modernize discussion of signed integers.
1360         Assuming overflow wraparound is no longer safe.
1361         Mention ones' complement and signed magnitude.
1362
1363 2011-07-22  Bruno Haible  <bruno@clisp.org>
1364
1365         select tests, pselect tests: Refactor.
1366         * tests/test-select.h: New file, extracted from tests/test-select.c.
1367         (select_fn): New type.
1368         (test, do_select, do_select_nowait, do_select_wait, test_tty,
1369         test_connect_first, test_accept_first, test_pair, test_socket_pair,
1370         test_pipe): Add my_select argument.
1371         (test_function): Renamed from main. Add my_select argument.
1372         * tests/test-select.c: Move most code to tests/test-select.h. Include
1373         test-select.h.
1374         * modules/select-tests (Files): Add tests/test-select.h.
1375         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
1376         (my_select, main): New functions.
1377         * modules/pselect-tests (Files): Add tests/test-select.h,
1378         tests/macros.h, tests/signature.h.
1379         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
1380         (configure.ac): Check for <sys/wait.h>.
1381
1382 2011-07-22  Bruno Haible  <bruno@clisp.org>
1383
1384         sys_select tests: Check the signature of FD_*.
1385         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
1386         signature tests from here...
1387         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
1388         here.
1389         * modules/sys_select-tests (Files): Add tests/signature.h.
1390
1391 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
1392
1393         largefile: new module, replacing large-inode
1394         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
1395         * MODULES.html.sh: Add largefile, remove large-inode.
1396         * modules/largefile, m4/largefile.m4: New files.
1397         * modules/large-inode, m4/large-inode.m4: Remove.
1398
1399         fsusage: port to MacOS X 10.7 with 4 TiB file systems
1400         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
1401         implementations that use only 32 bits to count blocks.
1402         On typical hosts with 1024-byte blocks, this fails with file
1403         systems as small as 4 TiB.  Problem reported by Herb Wartens
1404         <http://debbugs.gnu.org/9140> and this should also fix a similar
1405         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
1406
1407         large-inode: New module
1408         * MODULES.html.sh: Add it.
1409         * modules/large-inode, m4/large-inode.m4: New files.
1410
1411         extensions: Enable extensions on MacOS X 10.5 and later.
1412         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
1413
1414 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
1415
1416         file-has-acl: use acl_extended_file_nofollow if available
1417         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
1418         (acl_extended_file): New macro.
1419         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
1420         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
1421
1422 2011-07-21  Bruno Haible  <bruno@clisp.org>
1423
1424         Declare system functions in a way that works with C++.
1425         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
1426         declare fdopendir as extern "C".
1427         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
1428         declare frexpl as extern "C".
1429         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
1430         declare gai_strerror as extern "C".
1431         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
1432         programs, declare gai_strerror as extern "C".
1433         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
1434         declare getlogin_r as extern "C".
1435         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
1436         as extern "C".
1437         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
1438         declare ldexpl as extern "C".
1439         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
1440         as extern "C".
1441         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
1442         program, declare getmntinfo as extern "C".
1443         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
1444         stpncpy as extern "C".
1445         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
1446         program, declare __xpg_strerror_r as extern "C".
1447         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
1448         strndup as extern "C".
1449         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
1450         declare memset and bzero as extern "C".
1451         Reported by Sam Steingold <sds@gnu.org>.
1452
1453 2011-07-12  Jim Meyering  <meyering@redhat.com>
1454
1455         maint.mk: prohibit inclusion of "verify.h" without use
1456         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
1457
1458 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1459
1460         timer-time: A new module to check for timer_settime()
1461         * m4/timer_time.m4: Check for the posix function.
1462         * modules/timer-time: Add the new module.
1463         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
1464         Mention it.
1465
1466 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
1467             Bruno Haible  <bruno@clisp.org>
1468
1469         pthread_sigmask: assume POSIX threads if --avoid=threadlib
1470         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
1471         not defined, assume POSIX threads and look for pthread_sigmask in
1472         $LIBS, without changing $CPPFLAGS.
1473
1474 2011-07-19  Bruno Haible  <bruno@clisp.org>
1475
1476         strstr: Update cross-compilation guess.
1477         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
1478         CPUs, guess no, in view of glibc
1479         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
1480         Suggested by Eric Blake. Reported by Reuben Thomas.
1481
1482 2011-07-19  Pádraig Brady  <P@draigBrady.com>
1483
1484         getopt-gnu: suppress core dumps from detection code
1485         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
1486         to suppress core dumps that may well occur on glibc systems.
1487         * modules/getopt-gnu: Depend on nocrash.
1488
1489 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
1490
1491         pthread_sigmask: ensure usleep is declared
1492         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
1493         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
1494
1495 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1496
1497         doc: Document NonStop portability issues.
1498         * doc/posix-functions/sigaction.texi (sigaction):
1499         * doc/posix-headers/signal.texi (signal.h):
1500         Document NonStop.  See Joachim Schmitz in
1501         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
1502
1503 2011-07-15  Bruno Haible  <bruno@clisp.org>
1504
1505         ffsl, ffsll: Avoid unportable behaviour.
1506         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
1507
1508 2011-07-15  Bruno Haible  <bruno@clisp.org>
1509
1510         ffs: More tests.
1511         * tests/test-ffs.c (NBITS): New macro.
1512         (main): Add more tests.
1513         * tests/test-ffsl.c (NBITS): New macro.
1514         (main): Add more tests.
1515         * tests/test-ffsll.c (NBITS): New macro.
1516         (main): Add more tests.
1517
1518 2011-07-15  Eric Blake  <eblake@redhat.com>
1519
1520         ffsl, ffsll: new modules
1521         * modules/ffsl: New file.
1522         * modules/ffsll: Likewise.
1523         * m4/ffsl.m4: Likewise.
1524         * m4/ffsll.m4: Likewise.
1525         * lib/ffsl.c: Likewise.
1526         * lib/ffsl.h: Likewise.
1527         * lib/ffsll.c: Likewise.
1528         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
1529         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
1530         * modules/string (Makefile.am): Substitute witnesses.
1531         * lib/strings.in.h (ffsl, ffsll): Declare.
1532         * modules/ffsl-tests: New test file.
1533         * modules/ffsll-tests: Likewise.
1534         * tests/test-ffsl.c: Likewise.
1535         * tests/test-ffsll.c: Likewise.
1536         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1537         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
1538         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
1539
1540         ffs: fix m4 prerequisite
1541         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
1542
1543         ffs: avoid undefined behavior
1544         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
1545         * tests/test-ffs.c (naive, main): Avoid signed shifts.
1546         Reported by Bruno Haible.
1547
1548 2011-07-12  Bruno Haible  <bruno@clisp.org>
1549
1550         pthread_sigmask: Rely on module 'threadlib'.
1551         * modules/pthread_sigmask (Depends-on): Add threadlib.
1552         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
1553         is defined.
1554
1555 2011-07-12  Bruno Haible  <bruno@clisp.org>
1556
1557         regex: Depend on module 'strcase'.
1558         * modules/regex (Depends-on): Add strcase, for strcasecmp().
1559
1560 2011-07-12  Jim Meyering  <meyering@redhat.com>
1561
1562         warn-on-use: fix typo in file name
1563         * modules/snippet/warn-on-use (Files): Correct file name:
1564         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
1565
1566 2011-07-12  Bruno Haible  <bruno@clisp.org>
1567
1568         strings: Document module.
1569         * doc/posix-headers/strings.texi: Mention module 'strings'.
1570
1571 2011-07-12  Bruno Haible  <bruno@clisp.org>
1572
1573         Rename module '_Noreturn' to 'snippet/_Noreturn'.
1574         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
1575         (Files, Makefile.am): Update.
1576         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
1577         * modules/stdlib (Depends-on): Update.
1578
1579 2011-07-12  Bruno Haible  <bruno@clisp.org>
1580
1581         * NEWS: Mention the changes.
1582
1583         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
1584         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
1585         (Files, Makefile.am): Update.
1586         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
1587         * modules/arpa_inet (Depends-on): Update.
1588         * modules/ctype (Depends-on): Update.
1589         * modules/dirent (Depends-on): Update.
1590         * modules/fcntl-h (Depends-on): Update.
1591         * modules/glob (Depends-on): Update.
1592         * modules/iconv-h (Depends-on): Update.
1593         * modules/inttypes-incomplete (Depends-on): Update.
1594         * modules/langinfo (Depends-on): Update.
1595         * modules/locale (Depends-on): Update.
1596         * modules/math (Depends-on): Update.
1597         * modules/netdb (Depends-on): Update.
1598         * modules/poll-h (Depends-on): Update.
1599         * modules/pty (Depends-on): Update.
1600         * modules/search (Depends-on): Update.
1601         * modules/signal (Depends-on): Update.
1602         * modules/spawn (Depends-on): Update.
1603         * modules/stdio (Depends-on): Update.
1604         * modules/stdlib (Depends-on): Update.
1605         * modules/string (Depends-on): Update.
1606         * modules/strings (Depends-on): Update.
1607         * modules/sys_file (Depends-on): Update.
1608         * modules/sys_ioctl (Depends-on): Update.
1609         * modules/sys_select (Depends-on): Update.
1610         * modules/sys_socket (Depends-on): Update.
1611         * modules/sys_stat (Depends-on): Update.
1612         * modules/sys_time (Depends-on): Update.
1613         * modules/sys_times (Depends-on): Update.
1614         * modules/sys_utsname (Depends-on): Update.
1615         * modules/sys_wait (Depends-on): Update.
1616         * modules/termios (Depends-on): Update.
1617         * modules/time (Depends-on): Update.
1618         * modules/unistd (Depends-on): Update.
1619         * modules/wchar (Depends-on): Update.
1620         * modules/wctype-h (Depends-on): Update.
1621         * MODULES.html.sh (Support for building libraries and executables):
1622         Update.
1623
1624         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
1625         * modules/snippet/unused-parameter: Renamed from
1626         modules/unused-parameter.
1627         (Files, Makefile.am): Update.
1628         * build-aux/snippet/unused-parameter.h: Renamed from
1629         build-aux/unused-parameter.h.
1630         * modules/selinux-h (Depends-on): Update.
1631         * modules/unistr/base (Depends-on): Update.
1632         * MODULES.html.sh (Core language properties): Update.
1633
1634         Rename module 'link-warning' to 'snippet/link-warning'.
1635         * modules/snippet/link-warning: Renamed from modules/link-warning.
1636         (Files, Makefile.am): Update.
1637         * build-aux/snippet/link-warning.h: Renamed from
1638         build-aux/link-warning.h.
1639         * MODULES.html.sh (Support for building libraries and executables):
1640         Update.
1641
1642         Rename module 'c++defs' to 'snippet/c++defs'.
1643         * modules/snippet/c++defs: Renamed from modules/c++defs.
1644         (Files, Makefile.am): Update.
1645         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
1646         * modules/arpa_inet (Depends-on): Update.
1647         * modules/ctype (Depends-on): Update.
1648         * modules/dirent (Depends-on): Update.
1649         * modules/fcntl-h (Depends-on): Update.
1650         * modules/glob (Depends-on): Update.
1651         * modules/iconv-h (Depends-on): Update.
1652         * modules/langinfo (Depends-on): Update.
1653         * modules/locale (Depends-on): Update.
1654         * modules/math (Depends-on): Update.
1655         * modules/netdb (Depends-on): Update.
1656         * modules/poll-h (Depends-on): Update.
1657         * modules/pty (Depends-on): Update.
1658         * modules/search (Depends-on): Update.
1659         * modules/signal (Depends-on): Update.
1660         * modules/spawn (Depends-on): Update.
1661         * modules/stdio (Depends-on): Update.
1662         * modules/stdlib (Depends-on): Update.
1663         * modules/string (Depends-on): Update.
1664         * modules/strings (Depends-on): Update.
1665         * modules/sys_ioctl (Depends-on): Update.
1666         * modules/sys_select (Depends-on): Update.
1667         * modules/sys_socket (Depends-on): Update.
1668         * modules/sys_stat (Depends-on): Update.
1669         * modules/sys_time (Depends-on): Update.
1670         * modules/sys_wait (Depends-on): Update.
1671         * modules/termios (Depends-on): Update.
1672         * modules/time (Depends-on): Update.
1673         * modules/unistd (Depends-on): Update.
1674         * modules/wchar (Depends-on): Update.
1675         * modules/wctype-h (Depends-on): Update.
1676
1677         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
1678         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
1679         (Files, Makefile.am): Update.
1680         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
1681         * modules/argv-iter (Depends-on): Update.
1682         * modules/arpa_inet (Depends-on): Update.
1683         * modules/dirent (Depends-on): Update.
1684         * modules/fcntl-h (Depends-on): Update.
1685         * modules/fnmatch (Depends-on): Update.
1686         * modules/getopt-posix (Depends-on): Update.
1687         * modules/glob (Depends-on): Update.
1688         * modules/iconv-h (Depends-on): Update.
1689         * modules/inttypes-incomplete (Depends-on): Update.
1690         * modules/locale (Depends-on): Update.
1691         * modules/math (Depends-on): Update.
1692         * modules/netdb (Depends-on): Update.
1693         * modules/search (Depends-on): Update.
1694         * modules/signal (Depends-on): Update.
1695         * modules/spawn (Depends-on): Update.
1696         * modules/stdio (Depends-on): Update.
1697         * modules/stdlib (Depends-on): Update.
1698         * modules/string (Depends-on): Update.
1699         * modules/strings (Depends-on): Update.
1700         * modules/sys_socket (Depends-on): Update.
1701         * modules/sys_stat (Depends-on): Update.
1702         * modules/sys_time (Depends-on): Update.
1703         * modules/sys_times (Depends-on): Update.
1704         * modules/sys_utsname (Depends-on): Update.
1705         * modules/time (Depends-on): Update.
1706         * modules/unistd (Depends-on): Update.
1707         * modules/wchar (Depends-on): Update.
1708         * MODULES.html.sh (Support for building libraries and executables):
1709         Update.
1710
1711 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1712
1713         Improvements on _Noreturn and related modules.
1714
1715         modules/_Exit-tests: test _Noreturn too
1716         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
1717         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
1718         (main): Use them.
1719
1720         stdnoreturn, stdnoreturn-tests: remove modules
1721         They're not needed here and a bit premature for use elsewhere.  See
1722         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
1723         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
1724         * tests/test-stdnoreturn.c: Remove files.
1725         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
1726         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
1727         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
1728         and using noreturn.
1729         * modules/openat, modules/sigpipe-die, modules/xalloc:
1730         * modules/xmemdup0, modules/xstrtol:
1731         Remove dependency on stdnoreturn.
1732
1733         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
1734         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
1735         Reparenthesize to avoid GCC warning.
1736         Support Microsoft's syntax.
1737         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
1738
1739         _Noreturn-tests: remove module
1740         * modules/_Noreturn-tests: Remove.
1741         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
1742         * tests/test-_Noreturn.c: Remove.
1743         * tests/test-stdnoreturn.c: Merge from the old
1744         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
1745
1746 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
1747
1748         _Noreturn, stdnoreturn, and related modules.
1749
1750         * top/maint.mk: Adjust to new noreturn support.
1751         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
1752         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
1753
1754         xalloc: use stdnoreturn.h
1755         * lib/xalloc.h: Include <stdnoreturn.h>.
1756         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1757         * modules/xalloc (Depends-on): Add stdnoreturn.
1758
1759         xstrtol: use stdnoreturn.h
1760         * lib/xstrtol.h: Include <stdnoreturn.h>.
1761         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1762         * modules/xstrtol (Depends-on): Add stdnoreturn.
1763
1764         xmemdup0: use stdnoreturn.h
1765         * lib/xmemdup0.h: Include <stdnoreturn.h>.
1766         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1767         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
1768
1769         sigpipe-die: use stdnoreturn.h
1770         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
1771         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1772         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
1773
1774         openat: use stdnoreturn.h
1775         * lib/openat.h: Include <stdnoreturn.h>.
1776         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
1777         * modules/openat (Depends-on): Add stdnoreturn.
1778
1779         * lib/openat-die.c (openat_save_fail): Modernize comment.
1780
1781         * lib/xalloc-die.c (xalloc_die): Modernize comment.
1782
1783         * lib/glthread/thread.h: Modernize comment.
1784
1785         obstack: use _Noreturn
1786         * lib/obstack.c (__attribute__): Remove macro.
1787         (print_and_abort): Use _Noreturn.
1788
1789         c-stack: use _Noreturn
1790         * lib/c-stack.c (die, overflow_handler, segv_handler):
1791         Use _Noreturn rather than __attribute__((noreturn)).
1792
1793         argmatch-tests, exclude_tests: use _Noreturn
1794         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
1795         Remove.
1796         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
1797
1798         stdlib: use _Noreturn
1799         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
1800         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
1801         * modules/stdlib (Depends-on): Add _Noreturn.
1802         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
1803
1804         stdnoreturn-tests: new module
1805         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
1806
1807         stdnoreturn: new module
1808         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
1809         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
1810
1811         _Noreturn-tests: new module
1812         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
1813
1814         _Noreturn: new module
1815         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
1816         New section, mentioning it.
1817         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
1818
1819         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
1820
1821 2011-07-11  Eric Blake  <eblake@redhat.com>
1822
1823         ffs: new module
1824         * modules/ffs: New file.
1825         * m4/ffs.m4: Likewise.
1826         * lib/ffs.c: Likewise.
1827         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
1828         * modules/strings (Makefile.am): Substitute witness.
1829         (Depends-on): Add c++defs.
1830         * lib/strings.in.h (ffs): Declare.
1831         * modules/ffs-tests: New test file.
1832         * tests/test-ffs.c: Test new module.
1833         * MODULES.html.sh (Integer arithmetic functions): Mention it.
1834         * doc/posix-functions/ffs.texi (ffs): Likewise.
1835
1836         regex: avoid compiler warning
1837         * lib/regex.c (includes): Include <strings.h>, for use of
1838         strcasecmp in regcomp.c.
1839         Reported by Joachim Schmitz.
1840
1841 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1842
1843         stdint: respect system's intmax_t if INTMAX_MAX
1844         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
1845         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
1846         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
1847         long but int64_t is long long, and where we will clash with the
1848         system intmax_t if we override it.  See
1849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
1850         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
1851         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
1852         similarly for UINTMAX_C.
1853
1854 2011-07-08  Bruno Haible  <bruno@clisp.org>
1855
1856         pthread_sigmask tests: Avoid a compiler warning.
1857         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
1858         non-zero.
1859
1860         sigprocmask tests: A better way to avoid a compiler warning.
1861         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
1862         (main): Complain if system() returns non-zero.
1863         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
1864
1865 2011-07-08  Bruno Haible  <bruno@clisp.org>
1866
1867         pthread_sigmask: Work around IRIX bug.
1868         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
1869         bug.
1870         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
1871         there may be unblocked pending signals.
1872         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
1873
1874 2011-07-08  Bruno Haible  <bruno@clisp.org>
1875
1876         pthread_sigmask: Work around Cygwin bug.
1877         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
1878         bug.
1879         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
1880         the system's pthread_sigmask function.
1881         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
1882
1883 2011-07-08  Bruno Haible  <bruno@clisp.org>
1884
1885         pthread_sigmask: Work around bug in single-threaded implementation.
1886         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
1887         FreeBSD, HP-UX, Solaris bug.
1888         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
1889         * lib/pthread_sigmask.c: Include <stddef.h>.
1890         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
1891         the system's pthread_sigmask function.
1892         * modules/pthread_sigmask (configure.ac): Invoke
1893         gl_PREREQ_PTHREAD_SIGMASK.
1894         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
1895         HP-UX, Solaris.
1896
1897 2011-07-08  Eric Blake  <eblake@redhat.com>
1898
1899         test-sigprocmask: avoid compiler warning
1900         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
1901         * tests/test-sigprocmask.c (main): Use it to silence warning.
1902         Reported by Jim Meyering.
1903
1904         test-snprintf: avoid compiler warning
1905         * tests/test-snprintf.c (main): Avoid shadowed declaration.
1906         * tests/test-vsnprintf.c (main): Likewise.
1907         Reported by Jim Meyering.
1908
1909 2011-07-08  Bruno Haible  <bruno@clisp.org>
1910
1911         Tests for module 'pthread_sigmask'.
1912         * modules/pthread_sigmask-tests: New file.
1913         * tests/test-pthread_sigmask1.c: New file, based on
1914         tests/test-sigprocmask.c.
1915         * tests/test-pthread_sigmask2.c: New file.
1916
1917 2011-07-08  Jim Meyering  <meyering@redhat.com>
1918
1919         test-getopt.h: avoid warning about an unused variable
1920         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
1921
1922 2011-07-07  Jim Meyering  <meyering@redhat.com>
1923
1924         maint: reduce list of files exempt from sc_prohibit_leading_TABs
1925         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
1926         now that it no longer contains leading TABs.
1927         Remove unused "url=FIXME" statement.
1928
1929 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
1930
1931         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
1932         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1933         When gl_THREADLIB is not in use, assume that the POSIX sematics
1934         are desired.  This is better for Emacs, which uses POSIX semantics
1935         on GNUish and/or POSIXish platforms, and does not use threads at
1936         all otherwise.
1937
1938         pthread_sigmask: fix typo when testing for libraries
1939         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
1940         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
1941
1942 2011-07-08  Eric Blake  <eblake@redhat.com>
1943
1944         fts: introduce FTS_NOATIME
1945         * lib/fts_.h (FTS_NOATIME): New bit flag.
1946         (FTS_OPTIONMASK): Adjust.
1947         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
1948         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
1949
1950 2011-07-08  Bruno Haible  <bruno@clisp.org>
1951
1952         Tests for module 'thread'.
1953         * modules/thread-tests: New file.
1954         * tests/test-thread_self.c: New file.
1955         * tests/test-thread_create.cc: New file.
1956
1957 2011-07-08  Bruno Haible  <bruno@clisp.org>
1958
1959         thread: Avoid gcc warnings when using gl_thread_self().
1960         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
1961         'void *'.
1962         (gl_thread_self_pointer): Update.
1963
1964 2011-07-07  Bruno Haible  <bruno@clisp.org>
1965
1966         signal-c++-tests: Check declaration of pthread_sigmask.
1967         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
1968         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
1969         $(LIB_PTHREAD_SIGMASK).
1970
1971 2011-07-07  Bruno Haible  <bruno@clisp.org>
1972
1973         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
1974         * lib/signal.in.h (pthread_sigmask): Override if
1975         REPLACE_PTHREAD_SIGMASK is 1.
1976         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
1977         REPLACE_PTHREAD_SIGMASK.
1978         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
1979         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
1980         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
1981         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
1982         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
1983
1984 2011-07-07  Bruno Haible  <bruno@clisp.org>
1985
1986         pthread_sigmask: Ensure declaration in <signal.h>.
1987         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
1988         include <pthread.h>.
1989         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
1990         problem.
1991
1992 2011-07-07  Bruno Haible  <bruno@clisp.org>
1993
1994         pthread_sigmask: Document the module.
1995         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
1996
1997 2011-07-07  Bruno Haible  <bruno@clisp.org>
1998
1999         pthread_sigmask: Follow gnulib conventions.
2000         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
2001         gl_PTHREAD_SIGMASK.
2002         * modules/pthread_sigmask (configure.ac): Update.
2003
2004 2011-07-07  Bruno Haible  <bruno@clisp.org>
2005
2006         pthread_sigmask: Make declaration C++ safe.
2007         * lib/signal.in.h: In two special conditions, just do an #include_next.
2008         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2009         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
2010         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2011         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
2012         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
2013         not REPLACE_PTHREAD_MASK.
2014         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
2015         not REPLACE_PTHREAD_MASK.
2016         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
2017
2018 2011-07-07  Bruno Haible  <bruno@clisp.org>
2019
2020         pthread_sigmask: Fix return value.
2021         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
2022         * lib/pthread_sigmask.c: New file.
2023         * modules/pthread_sigmask (Files): Add it.
2024         (configure.ac): Invoke AC_LIBOBJ.
2025
2026 2011-07-07  Eric Blake  <eblake@redhat.com>
2027
2028         getopt: more portable argv creation
2029         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
2030         const, use char arrays rather than strings.
2031         Suggested by Paul Eggert.
2032
2033 2011-07-07  Bruno Haible  <bruno@clisp.org>
2034
2035         Tests for module 'sigprocmask'.
2036         * modules/sigprocmask-tests: New file.
2037         * tests/test-sigprocmask.c: New file.
2038
2039 2011-07-07  Bruno Haible  <bruno@clisp.org>
2040
2041         float tests: Tweak.
2042         * tests/test-float.c (main): Tweak skip message.
2043
2044 2011-07-07  Eric Blake  <eblake@redhat.com>
2045
2046         getopt: avoid compiler warning during configure
2047         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
2048         assigning string literals to non-const pointer.
2049
2050         getopt-gnu: avoid crash in glibc getopt
2051         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
2052         * tests/test-getopt.h (test_getopt): Enhance test.
2053         * tests/test-getopt_long.h (test_getopt_long): Likewise.
2054         * doc/posix-functions/getopt.texi (getopt): Document it.
2055         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
2056         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
2057         Likewise.
2058
2059 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
2060
2061         getopt: handle W; without long options in getopt [BZ #12922]
2062         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
2063         but no long options are defined, just return 'W'.
2064
2065 2011-07-07  Bruno Haible  <bruno@clisp.org>
2066
2067         Avoid literal tabs.
2068         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
2069         variable containing a tab instead of a literal tab.
2070         Reported by Jim Meyering.
2071
2072 2011-07-07  Bruno Haible  <bruno@clisp.org>
2073
2074         Comments.
2075         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
2076
2077 2011-07-06  Bruno Haible  <bruno@clisp.org>
2078
2079         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
2080         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
2081         <winsock2.h>.
2082         (rpl_fd_isset, FD_ISSET): New definitions, copied from
2083         lib/sys_socket.in.h.
2084         (close, gethostname): Hide declarations from <winsock2.h>.
2085         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
2086         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
2087         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
2088         (select): Don't override if gnulib's <sys/select.h> was already
2089         included.
2090         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
2091         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
2092         setsockopt, shutdown, select): Tweak indentation.
2093
2094 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2095
2096         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
2097         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
2098         in an application that does not use the sys_select module.
2099
2100 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
2101
2102         poll: do not return 0 on timeout=-1
2103         * lib/poll.c: Loop with yield if no events occured
2104
2105 2011-07-06  Eric Blake  <eblake@redhat.com>
2106
2107         pthread_sigmask: always replace when not using pthread
2108         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
2109         replacement when using some threading other than pthread.  Fix
2110         logic bug.
2111
2112 2011-07-06  Bruno Haible  <bruno@clisp.org>
2113
2114         Comments.
2115         * m4/printf.m4: Update comments about mingw.
2116
2117 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
2118
2119         sys_select: define sigset_t more portably
2120         * lib/sys_select.in.h: Always include <sys/types.h>, since
2121         we now need sigset_t and mingw defines it there.
2122         Include <signal.h> before split inclusion guard, to avoid
2123         mishaps on Solaris, whose <signal.h> eventually includes us.
2124         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
2125         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
2126         which come from ...
2127         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
2128         gl_CHECK_TYPE_SIGSET_T.
2129         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
2130         does the real work.
2131         * modules/sys_select (Depends-on): Add 'signal'.
2132
2133         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
2134         Suggested by Bruno Haible.
2135
2136         pselect: Use pthread_sigmask, not sigprocmask.
2137         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
2138         multithreaded apps better than sigprocmask does.
2139         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
2140         sigprocmask directly.
2141
2142 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
2143
2144         * lib/pselect.c (pselect): Use plain name, without "rpl_".
2145         Don't #undef,  since we don't need any underlying pselect.
2146         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
2147         (Depends-on): Add select.
2148         (Link): Add $(LIBSOCKET).
2149         These changes suggested by Bruno Haible.
2150
2151         pselect: document better
2152         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2153         * doc/posix-functions/pselect.texi (pselect): Document new module.
2154
2155         pthread_sigmask: new module
2156         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
2157         * doc/posix-functions/pthread_sigmask.texi: Document new module.
2158         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
2159         This is done only as a macro; I don't know how well that'll
2160         work for C++.  Move <sys/types.h> include before the include_next,
2161         to avoid mishap on Solaris.
2162         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
2163         * modules/signal (Makefile.am): Substitute the check's results.
2164         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
2165
2166         test-pselect: new module
2167         * modules/pselect-tests, tests/test-pselect.c: New files.
2168         * tests/test-select.c, tests/test-sys_select-c++.cc:
2169         If TEST_PSELECT is defined, test pselect instead of testing select.
2170
2171         * tests/test-sys_select.c (sigset_t): Test for it, too.
2172         Suggested by Bruno Haible.
2173
2174 2011-07-05  Eric Blake  <eblake@redhat.com>
2175
2176         snprintf: guarantee %1$d, for libintl
2177         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
2178         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
2179         * doc/posix-functions/snprintf.texi (snprintf): Update.
2180         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
2181         * tests/test-snprintf.c (main): Enhance test.
2182         * tests/test-vsnprintf.c (main): Likewise.
2183
2184 2011-07-05  Jim Meyering  <meyering@redhat.com>
2185
2186         maint: exempt stdio-read.c and stdio-write.c from the cppi check
2187         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
2188         per Bruno's request, to accommodate this idiom (no space after "#")
2189         even when the function is inside an #if block:
2190         char *
2191         gets (char *s)
2192         #undef gets
2193         {
2194           ...
2195         }
2196
2197 2011-07-04  Jim Meyering  <meyering@redhat.com>
2198
2199         maint: indent with spaces, not TABs, and add a rule to check this
2200         * tests/test-userspec.c: Indent with spaces, not TABs.
2201         * tests/test-argp.c: Likewise.
2202         * tests/test-c-stack2.sh: Likewise.
2203         * tests/test-parse-duration.sh: Likewise
2204         * m4/strtod.m4: Likewise.
2205         * m4/alloca.m4: Likewise.
2206         * m4/pselect.m4: Likewise.
2207         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
2208
2209 2011-07-03  Jim Meyering  <meyering@redhat.com>
2210
2211         maint.mk: correct omissions in prohibit_argmatch_without_use check
2212         This rule would mistakenly report that argmatch.h is included without
2213         use even when both the argmatch and invalid_arg macro were used.
2214         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
2215         of argmatch and invalid_arg.
2216
2217 2011-07-03  Bruno Haible  <bruno@clisp.org>
2218
2219         Comments about EINTR.
2220         * lib/safe-read.h: Explain the purpose of this module.
2221         * lib/safe-write.h: Likewise.
2222         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
2223         module.
2224         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
2225         module.
2226         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2227
2228 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
2229
2230         xnanosleep: Rewrite to use new dtotimespec module.
2231         It has the conversion code that used to be in xnanosleep.
2232         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
2233         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
2234         (TIME_T_MAX): Remove.
2235         (xnanosleep): Rewrite in terms of dtotimespec.
2236         * modules/xnanosleep (Depends-on): Add dtotimespec.
2237         Remove intprops, stdbool.
2238
2239         timespec-add, timespec-sub: new modules
2240         * lib/timespec.h (timespec_add, timespec_sub): New decls.
2241         * lib/timespec-add.c, lib/timespec-sub.c:
2242         * modules/timespec-add, modules/timespec-sub: New files.
2243
2244         dtotimespec: new module
2245         * lib/timespec.h (dtotimespec): New decl.
2246         * lib/dtotimespec.c, modules/dtotimespec: New files.
2247
2248         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
2249
2250         pselect: new module
2251         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
2252         (pselect): New decls.
2253         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
2254         since the standard pselect decl uses 'restrict'.
2255         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
2256         HAVE_PSELECT, REPLACE_PSELECT.
2257         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
2258         HAVE_PSELECT, REPLACE_PSELECT.
2259         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
2260
2261         sys_select: don't depend on sys_socket
2262         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
2263         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
2264         This fix works on GNU and GNU-like platforms, but has not been tested
2265         on native Windows.
2266         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
2267         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
2268         gl_HEADER_SYS_SOCKET.
2269         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
2270         gl_PREREQ_SYS_H_WINSOCK2.
2271
2272 2011-06-29  Eric Blake  <eblake@redhat.com>
2273
2274         pipe2: fix C89 compile problem
2275         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
2276         Reported by Bruno Haible.
2277
2278         pipe, pipe2: don't corrupt fd on error
2279         * lib/pipe.c (pipe): Leave fd unchanged on error.
2280         * lib/pipe2.c (pipe2): Likewise.
2281         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
2282         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
2283
2284 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
2285
2286         mmap-anon: do not use regular expressions inadvertently
2287         * m4/mmap-anon.m4: Remove trailing period from strings sought
2288         in the output.
2289
2290 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
2291
2292         nanosleep: fix integer overflow problem
2293         * lib/nanosleep.c (my_usleep): Don't assume signed integer
2294         arithmetic wraps around on overflow.
2295
2296         nanosleep: simplify carrying
2297         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
2298         first call to the underyling nanosleep, not for the last one.
2299         This doesn't fix any bugs, but it simplifies the computation of
2300         the remaining delay.  Found while auditing integer overflow issues.
2301
2302         dup2: remove test for existence of fcntl
2303         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
2304         "#if HAVE_FCNTL", in the configure-time test program.
2305         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
2306         and therefore speeds up "configure" a bit.  Found while
2307         adding the dup2 module to Emacs.
2308
2309 2011-06-24  Eric Blake  <eblake@redhat.com>
2310
2311         maint.mk: enhance useless header checks
2312         * top/maint.mk (_sc_header_without_use): Check both include
2313         styles.
2314         (sc_prohibit_assert_without_use)
2315         (sc_prohibit_close_stream_without_use)
2316         (sc_prohibit_getopt_without_use)
2317         (sc_prohibit_quotearg_without_use)
2318         (sc_prohibit_quote_without_use)
2319         (sc_prohibit_long_options_without_use)
2320         (sc_prohibit_inttostr_without_use)
2321         (sc_prohibit_ignore_value_without_use)
2322         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
2323         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
2324         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
2325         (sc_prohibit_hash_pjw_without_use)
2326         (sc_prohibit_safe_read_without_use)
2327         (sc_prohibit_argmatch_without_use)
2328         (sc_prohibit_canonicalize_without_use)
2329         (sc_prohibit_root_dev_ino_without_use)
2330         (sc_prohibit_openat_without_use)
2331         (sc_prohibit_c_ctype_without_use)
2332         (sc_prohibit_signal_without_use)
2333         (sc_prohibit_stdio--_without_use)
2334         (sc_prohibit_stdio-safer_without_use)
2335         (sc_prohibit_strings_without_use)
2336         (sc_prohibit_intprops_without_use)
2337         (sc_prohibit_stddef_without_use)
2338         (sc_prohibit_xfreopen_without_use): Update clients.
2339
2340 2011-06-24  Jim Meyering  <meyering@redhat.com>
2341
2342         syntax-check: keep one maint.mk rule in sync with its header
2343         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
2344         of the bug Eric has just fixed, with today's commit 25e4c2ec.
2345         I prefer to avoid temporary files here, so use <(...), but that
2346         is not supported by /bin/sh, so...
2347         (SHELL): Define to /bin/bash.
2348
2349 2011-06-24  Eric Blake  <eblake@redhat.com>
2350
2351         maint.mk: update sc_prohibit_intprops_without_use
2352         * top/maint.mk (_intprops_names): Match recent changes.
2353
2354 2011-06-24  Bruno Haible  <bruno@clisp.org>
2355
2356         strerror-override: No-op tweak.
2357         * lib/strerror-override.h (strerror_override): Reorder conditions,
2358         for consistency with lib/strerror-override.c.
2359
2360 2011-06-23  Eric Blake  <eblake@redhat.com>
2361
2362         maint.mk: test further PATH_MAX issues
2363         * top/maint.mk (sc_prohibit_path_max_array): Rename...
2364         (sc_prohibit_path_max_allocation): ...and also test alloca.
2365         Suggested by Jim Meyering.
2366
2367 2011-06-22  Eric Blake  <eblake@redhat.com>
2368
2369         maint.mk: add syntax-check to avoid char[PATH_MAX]
2370         * top/maint.mk (sc_prohibit_path_max_array): New rule.
2371
2372         stat: be robust to PATH_MAX definition
2373         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
2374         * modules/stat (Depends-on): Add verify.
2375
2376         link: work around IRIX bug
2377         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
2378         * lib/link.c (rpl_link): Work around it.
2379         * tests/test-link.h (test_link): Enhance test.
2380         * doc/posix-functions/link.texi (link): Document the bug.
2381
2382         getopt: silence clang warning
2383         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
2384         dereference.
2385         Reported by Gustavo Martin Domato.
2386
2387 2011-06-22  Jim Meyering  <meyering@redhat.com>
2388
2389         bootstrap: do not insert a blank line into each .gitignore file
2390         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
2391
2392 2011-06-21  Eric Blake  <eblake@redhat.com>
2393
2394         perror: test for output mismatch
2395         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
2396         perror on IRIX.
2397
2398         strerror_r: fix OpenBSD behavior on out-of-range
2399         * lib/strerror_r.c (strerror_r): Always use maximal string.
2400         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
2401
2402         strerror_r: fix OpenBSD behavior on 0
2403         * lib/strerror-override.c (strerror_override): Also override 0
2404         when needed.
2405         * lib/strerror-override.h (strerror_override): Likewise.
2406         * lib/strerror.c (strerror): Simplify, now that 0 override is done
2407         earlier.
2408         * lib/strerror_r.c (strerror_r): Likewise.
2409         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
2410         behavior...
2411         (gl_FUNC_STRERROR_0): ...into new macro.
2412         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
2413         is overridden.
2414         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
2415         * modules/strerror-override (Files): Add strerror.m4.
2416         (configure.ac): Also provide override for 0 when needed.
2417         * doc/posix-functions/strerror.texi (strerror): Document this.
2418         * doc/posix-functions/perror.texi (perror): Likewise.
2419
2420         perror: adjust array size
2421         * modules/perror (Depends-on): Add strerror-override.
2422         * lib/perror.c (perror): Use it to avoid magic number.
2423
2424         strerror-override: reduce size
2425         * lib/strerror-override.c (strerror_override): Use fewer lines.
2426
2427 2011-06-20  Bruno Haible  <bruno@clisp.org>
2428
2429         pathmax: Ensure correct value for PATH_MAX on HP-UX.
2430         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
2431
2432 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2433
2434         alloca: port to compilers that can optimize like GCC 4.6.0
2435         * lib/alloca.c (find_stack_direction): New signature, taken from
2436         Autoconf git.  This works with GCC 4.6.0.  This code should never
2437         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
2438         be used with other compilers that optimize as well as GCC 4.6.0 does.
2439         (alloca): Adjust to new signature.
2440         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
2441         New macro, which patches Autoconf in a similar way.
2442
2443         c-stack: stop worrying about stack direction
2444         * lib/c-stack.c (find_stack_direction): Remove.
2445         (segv_handler): Don't worry about stack direction growth, as it's
2446         too much of a pain to configure this correctly, given how compilers
2447         are optimizing-away our stack-growth detection code.  Instead, assume
2448         that any access to just before or just after the stack is OK.
2449         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
2450         Don't require AC_FUNC_ALLOCA; no longer needed.
2451
2452 2011-06-20  Eric Blake  <eblake@redhat.com>
2453
2454         test-stat: don't allocate PATH_MAX bytes
2455         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
2456         PATH_MAX-sized buffer.
2457         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
2458         * modules/stat-tests (Depends-on): Likewise.
2459         * tests/test-fstatat.c (includes): Drop pathmax.h.
2460         * tests/test-stat.c (includes): Likewise.
2461         Reported by Bruno Haible.
2462
2463 2011-06-20  Bruno Haible  <bruno@clisp.org>
2464
2465         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
2466         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
2467         * lib/float.c: New file.
2468         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
2469         REPLACE_FLOAT_LDBL.
2470         * modules/float (Files): Add lib/float.c.
2471         (configure.ac): Invoke AC_LIBOBJ.
2472         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
2473
2474 2011-06-20  Bruno Haible  <bruno@clisp.org>
2475
2476         Tests for module 'float'.
2477         * modules/float-tests: New file.
2478         * tests/test-float.c: New file.
2479
2480 2011-06-19  Bruno Haible  <bruno@clisp.org>
2481
2482         isinf: Coding style.
2483         * lib/isinf.c: Use GNU coding style.
2484
2485 2011-06-19  Bruno Haible  <bruno@clisp.org>
2486
2487         linkat test: Avoid test failure on AIX 7.1.
2488         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
2489         * tests/test-link.h (test_link): Likewise.
2490
2491 2011-06-19  Bruno Haible  <bruno@clisp.org>
2492
2493         pread test: Avoid test failure on OpenBSD 4.9.
2494         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
2495
2496 2011-06-19  Bruno Haible  <bruno@clisp.org>
2497
2498         sprintf-posix: Fix test failure on AIX 7.1.
2499         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
2500         * doc/posix-functions/dprintf.texi: Mention limited precision problem
2501         on AIX.
2502         * doc/posix-functions/fprintf.texi: Likewise.
2503         * doc/posix-functions/printf.texi: Likewise.
2504         * doc/posix-functions/snprintf.texi: Likewise.
2505         * doc/posix-functions/sprintf.texi: Likewise.
2506         * doc/posix-functions/vdprintf.texi: Likewise.
2507         * doc/posix-functions/vfprintf.texi: Likewise.
2508         * doc/posix-functions/vprintf.texi: Likewise.
2509         * doc/posix-functions/vsnprintf.texi: Likewise.
2510         * doc/posix-functions/vsprintf.texi: Likewise.
2511
2512 2011-06-19  Bruno Haible  <bruno@clisp.org>
2513
2514         roundl-ieee: Fix test failure on AIX 7.1.
2515         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
2516         * doc/posix-functions/roundl.texi: Mention problem with negative
2517         arguments.
2518
2519 2011-06-19  Bruno Haible  <bruno@clisp.org>
2520
2521         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2522         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
2523         * doc/posix-functions/round.texi: Mention problem with negative
2524         arguments.
2525         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
2526
2527 2011-06-19  Bruno Haible  <bruno@clisp.org>
2528
2529         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
2530         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
2531         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
2532         * doc/posix-functions/roundf.texi: Mention problem with negative
2533         arguments.
2534         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
2535
2536 2011-06-19  Bruno Haible  <bruno@clisp.org>
2537
2538         ceilf-ieee: Work around bug on MacOS X 10.5.
2539         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
2540
2541         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
2542         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
2543         IEEE compliant, avoid compiler optimizations.
2544         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
2545         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
2546         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
2547         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
2548         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
2549         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
2550         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
2551         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
2552         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
2553         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
2554
2555 2011-06-19  Bruno Haible  <bruno@clisp.org>
2556
2557         ceilf-ieee: Work around bug on AIX 7.1.
2558         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
2559         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
2560
2561 2011-06-19  Bruno Haible  <bruno@clisp.org>
2562
2563         ceil-ieee: Work around bug on AIX 7.1.
2564         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
2565         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
2566
2567 2011-06-18  Bruno Haible  <bruno@clisp.org>
2568
2569         fsync test: Avoid test failure on MacOS X and AIX.
2570         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
2571         EINVAL.
2572
2573 2011-06-18  Bruno Haible  <bruno@clisp.org>
2574
2575         openat, fdopendir tests: Fix link errors.
2576         * modules/openat-tests (Depends-on): Add progname.
2577         * modules/fdopendir-tests (Depends-on): Likewise.
2578         * tests/test-fchownat.c: Include progname.h.
2579         (main): Call set_program_name.
2580         * tests/test-fstatat.c: Include progname.h.
2581         (main): Call set_program_name.
2582         * tests/test-mkdirat.c: Include progname.h.
2583         (main): Call set_program_name.
2584         * tests/test-openat.c: Include progname.h.
2585         (main): Call set_program_name.
2586         * tests/test-unlinkat.c: Include progname.h.
2587         (main): Call set_program_name.
2588         * tests/test-fdopendir.c: Include progname.h.
2589         (main): Call set_program_name.
2590
2591 2011-06-18  Bruno Haible  <bruno@clisp.org>
2592
2593         Doc update.
2594         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
2595         HP-UX.
2596         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
2597
2598 2011-06-18  Bruno Haible  <bruno@clisp.org>
2599
2600         getcwd tests: Avoid compilation error on HP-UX 11.31.
2601         * modules/getcwd-tests (Depends-on): Add pathmax.
2602         * tests/test-getcwd.c: Include pathmax.h.
2603
2604 2011-06-18  Bruno Haible  <bruno@clisp.org>
2605
2606         isfinite, isinf: Fix link error on AIX 6 and 7.
2607         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
2608         needed, also test the macro with a 'float' argument.
2609         * m4/isinf.m4 (gl_ISINF): Likewise.
2610
2611 2011-06-18  Bruno Haible  <bruno@clisp.org>
2612
2613         getloadavg: Don't clobber LIBS. Regression from previous commit.
2614         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
2615         AC_CHECK_LIB from here...
2616         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
2617         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
2618         gl_func_getloadavg_done.
2619         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2620
2621 2011-06-18  Bruno Haible  <bruno@clisp.org>
2622
2623         clean-temp: Improve documentation.
2624         * lib/clean-temp.h: Explain better how to use this module.
2625         Reported by John Darrington <john@darrington.wattle.id.au>.
2626
2627 2011-06-17  Bruno Haible  <bruno@clisp.org>
2628
2629         pread, pwrite: Avoid cc warning on AIX.
2630         * lib/unistd.in.h (pread): Undefine before defining as a macro.
2631         (pwrite): Likewise.
2632
2633 2011-06-17  Bruno Haible  <bruno@clisp.org>
2634
2635         spawn-pipe tests: Fix link error.
2636         * tests/test-spawn-pipe-child.c: Undefine fprintf.
2637         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2638
2639 2011-06-17  Bruno Haible  <bruno@clisp.org>
2640
2641         Tests: Remove unnecessary dependency.
2642         * modules/canonicalize-tests (Depends-on): Remove progname.
2643         * modules/chown-tests (Depends-on): Likewise.
2644         * modules/dirname-tests (Depends-on): Likewise.
2645         * modules/fdopendir-tests (Depends-on): Likewise.
2646         * modules/fdutimensat-tests (Depends-on): Likewise.
2647         * modules/hash-tests (Depends-on): Likewise.
2648         * modules/lchown-tests (Depends-on): Likewise.
2649         * modules/linkat-tests (Depends-on): Likewise.
2650         * modules/renameat-tests (Depends-on): Likewise.
2651         * modules/spawn-pipe-tests (Depends-on): Likewise.
2652         * modules/utimensat-tests (Depends-on): Likewise.
2653
2654 2011-06-17  Bruno Haible  <bruno@clisp.org>
2655
2656         spawn-pipe tests: Fix link error.
2657         * tests/test-spawn-pipe-child.c: Undefine fflush.
2658
2659 2011-06-17  Bruno Haible  <bruno@clisp.org>
2660
2661         Fix tests link errors.
2662         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
2663         * modules/chown-tests (Makefile.am): Don't link test-chown with
2664         LIBINTL.
2665         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
2666         LIBINTL.
2667         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
2668         LIBINTL.
2669         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
2670         LIBINTL.
2671
2672 2011-06-16  Bruno Haible  <bruno@clisp.org>
2673
2674         crypto/gc-sha1: Fix recent regression.
2675         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
2676         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
2677
2678         crypto/gc-md5: Fix recent regression.
2679         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
2680
2681         crypto/gc-md4: Fix recent regression.
2682         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
2683         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
2684
2685         crypto/gc-arctwo: Fix recent regression.
2686         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
2687         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
2688
2689         crypto/gc-rijndael: Fix recent regression.
2690         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
2691         (configure.ac): Invoke AC_LIBOBJ here.
2692         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
2693         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2694
2695         crypto/gc-hmac-sha1: Fix recent regression.
2696         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
2697         (configure.ac): Invoke AC_LIBOBJ here.
2698         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
2699         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2700
2701         crypto/gc-hmac-md5: Fix recent regression.
2702         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
2703         (configure.ac): Invoke AC_LIBOBJ here.
2704         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
2705         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2706
2707         crypto/gc-des: Fix recent regression.
2708         * modules/crypto/gc-des (Files): Remove m4/des.m4.
2709         (configure.ac): Invoke AC_LIBOBJ here.
2710         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
2711         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2712
2713         crypto/gc-arcfour: Fix recent regression.
2714         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
2715         (configure.ac): Invoke AC_LIBOBJ here.
2716         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
2717         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2718
2719 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
2720
2721         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
2722         After the 2011-05-21 change, this macro requires
2723         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
2724         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
2725
2726 2011-06-16  Bruno Haible  <bruno@clisp.org>
2727
2728         fprintftime: Move AC_LIBOBJ invocations to module description.
2729         * m4/fprintftime.m4: Remove file.
2730         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
2731         (configure.ac): Remove gl_FPRINTFTIME call.
2732         (Makefile.am): Augment lib_SOURCES.
2733         Reported by Jim Meyering.
2734
2735 2011-06-16  Bruno Haible  <bruno@clisp.org>
2736
2737         tmpfile-safer: Finish 2011-05-23 commit.
2738         * m4/stdio-safer.m4: Really remove file.
2739         Reported by Jim Meyering.
2740
2741 2011-06-16  Bruno Haible  <bruno@clisp.org>
2742
2743         syntax-check: Fix typo.
2744         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
2745         printf-posix.m4.
2746         Reported by Jim Meyering.
2747
2748 2011-06-13  Jim Meyering  <meyering@redhat.com>
2749
2750         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
2751         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
2752
2753 2011-05-23  Bruno Haible  <bruno@clisp.org>
2754
2755         yesno: Move AC_LIBOBJ invocations to module description.
2756         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
2757         * modules/yesno (Makefile.am): Augment lib_SOURCES.
2758
2759 2011-05-23  Bruno Haible  <bruno@clisp.org>
2760
2761         xstrtol: Move AC_LIBOBJ invocations to module description.
2762         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
2763         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
2764
2765 2011-05-23  Bruno Haible  <bruno@clisp.org>
2766
2767         xstrtold: Move AC_LIBOBJ invocations to module description.
2768         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
2769         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
2770
2771 2011-05-23  Bruno Haible  <bruno@clisp.org>
2772
2773         xstrtod: Move AC_LIBOBJ invocations to module description.
2774         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
2775         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
2776
2777 2011-05-23  Bruno Haible  <bruno@clisp.org>
2778
2779         xnanosleep: Move AC_LIBOBJ invocations to module description.
2780         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
2781         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
2782
2783 2011-05-23  Bruno Haible  <bruno@clisp.org>
2784
2785         xgetcwd: Move AC_LIBOBJ invocations to module description.
2786         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
2787         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
2788
2789 2011-05-23  Bruno Haible  <bruno@clisp.org>
2790
2791         xalloc: Move AC_LIBOBJ invocations to module description.
2792         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
2793         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
2794
2795 2011-05-23  Bruno Haible  <bruno@clisp.org>
2796
2797         write-any-file: Move AC_LIBOBJ invocations to module description.
2798         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
2799         invocation.
2800         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
2801
2802 2011-05-23  Bruno Haible  <bruno@clisp.org>
2803
2804         utimens: Move AC_LIBOBJ invocations to module description.
2805         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
2806         * modules/utimens (Makefile.am): Augment lib_SOURCES.
2807
2808 2011-05-23  Bruno Haible  <bruno@clisp.org>
2809
2810         utimecmp: Move AC_LIBOBJ invocations to module description.
2811         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
2812         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
2813
2814 2011-05-23  Bruno Haible  <bruno@clisp.org>
2815
2816         userspec: Move AC_LIBOBJ invocations to module description.
2817         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
2818         * modules/userspec (Makefile.am): Augment lib_SOURCES.
2819
2820 2011-05-23  Bruno Haible  <bruno@clisp.org>
2821
2822         unlinkdir: Move AC_LIBOBJ invocations to module description.
2823         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
2824         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
2825
2826 2011-05-23  Bruno Haible  <bruno@clisp.org>
2827
2828         unistd-safer: Move AC_LIBOBJ invocations to module description.
2829         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
2830         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
2831
2832 2011-05-23  Bruno Haible  <bruno@clisp.org>
2833
2834         tempname: Move AC_LIBOBJ invocations to module description.
2835         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
2836         * modules/tempname (Makefile.am): Augment lib_SOURCES.
2837
2838 2011-05-23  Bruno Haible  <bruno@clisp.org>
2839
2840         strftime: Move AC_LIBOBJ invocations to module description.
2841         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
2842         * modules/strftime (Makefile.am): Augment lib_SOURCES.
2843
2844 2011-05-23  Bruno Haible  <bruno@clisp.org>
2845
2846         stdlib-safer: Move AC_LIBOBJ invocations to module description.
2847         * m4/stdlib-safer.m4: Remove file.
2848         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
2849         (configure.ac): Remove gl_STDLIB_SAFER call.
2850         (Makefile.am): Augment lib_SOURCES.
2851
2852 2011-05-23  Bruno Haible  <bruno@clisp.org>
2853
2854         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
2855         * m4/stdio-safer.m4: Remove file.
2856         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
2857         (configure.ac): Remove gl_TMPFILE_SAFER call.
2858         (Makefile.am): Augment lib_SOURCES.
2859
2860 2011-05-23  Bruno Haible  <bruno@clisp.org>
2861
2862         popen-safer: Move AC_LIBOBJ invocations to module description.
2863         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
2864         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
2865         (configure.ac): Remove gl_POPEN_SAFER call.
2866         (Makefile.am): Augment lib_SOURCES.
2867
2868 2011-05-23  Bruno Haible  <bruno@clisp.org>
2869
2870         freopen-safer: Move AC_LIBOBJ invocations to module description.
2871         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
2872         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
2873         (configure.ac): Remove gl_FREOPEN_SAFER call.
2874         (Makefile.am): Augment lib_SOURCES.
2875
2876 2011-05-23  Bruno Haible  <bruno@clisp.org>
2877
2878         fopen-safer: Move AC_LIBOBJ invocations to module description.
2879         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
2880         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
2881         (configure.ac): Remove gl_FOPEN_SAFER call.
2882         (Makefile.am): Augment lib_SOURCES.
2883
2884 2011-05-23  Bruno Haible  <bruno@clisp.org>
2885
2886         crypto/sha512: Move AC_LIBOBJ invocations to module description.
2887         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
2888         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
2889
2890 2011-05-23  Bruno Haible  <bruno@clisp.org>
2891
2892         crypto/sha256: Move AC_LIBOBJ invocations to module description.
2893         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
2894         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
2895
2896 2011-05-23  Bruno Haible  <bruno@clisp.org>
2897
2898         crypto/sha1: Move AC_LIBOBJ invocations to module description.
2899         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
2900         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
2901
2902 2011-05-23  Bruno Haible  <bruno@clisp.org>
2903
2904         settime: Move AC_LIBOBJ invocations to module description.
2905         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
2906         * modules/settime (Makefile.am): Augment lib_SOURCES.
2907
2908 2011-05-23  Bruno Haible  <bruno@clisp.org>
2909
2910         savedir: Move AC_LIBOBJ invocations to module description.
2911         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
2912         * modules/savedir (Makefile.am): Augment lib_SOURCES.
2913
2914 2011-05-23  Bruno Haible  <bruno@clisp.org>
2915
2916         save-cwd: Move AC_LIBOBJ invocations to module description.
2917         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
2918         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
2919
2920 2011-05-23  Bruno Haible  <bruno@clisp.org>
2921
2922         same: Move AC_LIBOBJ invocations to module description.
2923         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
2924         * modules/same (Makefile.am): Augment lib_SOURCES.
2925
2926 2011-05-23  Bruno Haible  <bruno@clisp.org>
2927
2928         safe-write: Move AC_LIBOBJ invocations to module description.
2929         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
2930         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
2931         instead of gl_SAFE_WRITE.
2932         (Makefile.am): Augment lib_SOURCES.
2933
2934 2011-05-23  Bruno Haible  <bruno@clisp.org>
2935
2936         safe-read: Move AC_LIBOBJ invocations to module description.
2937         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
2938         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
2939         of gl_SAFE_READ.
2940         (Makefile.am): Augment lib_SOURCES.
2941
2942 2011-05-23  Bruno Haible  <bruno@clisp.org>
2943
2944         safe-alloc: Move AC_LIBOBJ invocations to module description.
2945         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
2946         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
2947
2948 2011-05-23  Bruno Haible  <bruno@clisp.org>
2949
2950         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
2951         * m4/rijndael.m4: Remove file.
2952         * modules/crypto/rijndael (Files): Remove it.
2953         (configure.ac): Remove gl_RIJNDAEL call.
2954         (Makefile.am): Augment lib_SOURCES.
2955
2956 2011-05-23  Bruno Haible  <bruno@clisp.org>
2957
2958         readtokens: Move AC_LIBOBJ invocations to module description.
2959         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
2960         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
2961
2962 2011-05-23  Bruno Haible  <bruno@clisp.org>
2963
2964         read-file: Move AC_LIBOBJ invocations to module description.
2965         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
2966         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
2967         of gl_FUNC_READ_FILE.
2968         (Makefile.am): Augment lib_SOURCES.
2969
2970 2011-05-23  Bruno Haible  <bruno@clisp.org>
2971
2972         quotearg: Move AC_LIBOBJ invocations to module description.
2973         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
2974         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
2975
2976 2011-05-23  Bruno Haible  <bruno@clisp.org>
2977
2978         quote: Move AC_LIBOBJ invocations to module description.
2979         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
2980         * modules/quote (Makefile.am): Augment lib_SOURCES.
2981
2982 2011-05-23  Bruno Haible  <bruno@clisp.org>
2983
2984         posixver: Move AC_LIBOBJ invocations to module description.
2985         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
2986         * modules/posixver (Makefile.am): Augment lib_SOURCES.
2987
2988 2011-05-23  Bruno Haible  <bruno@clisp.org>
2989
2990         posixtm: Move AC_LIBOBJ invocations to module description.
2991         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
2992         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
2993
2994 2011-05-23  Bruno Haible  <bruno@clisp.org>
2995
2996         physmem: Move AC_LIBOBJ invocations to module description.
2997         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
2998         * modules/physmem (Makefile.am): Augment lib_SOURCES.
2999
3000 2011-05-23  Bruno Haible  <bruno@clisp.org>
3001
3002         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
3003         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
3004         invocation.
3005         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
3006
3007 2011-05-23  Bruno Haible  <bruno@clisp.org>
3008
3009         mpsort: Move AC_LIBOBJ invocations to module description.
3010         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
3011         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
3012
3013 2011-05-23  Bruno Haible  <bruno@clisp.org>
3014
3015         modechange: Move AC_LIBOBJ invocations to module description.
3016         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
3017         * modules/modechange (Makefile.am): Augment lib_SOURCES.
3018
3019 2011-05-23  Bruno Haible  <bruno@clisp.org>
3020
3021         mkdir-p: Move AC_LIBOBJ invocations to module description.
3022         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
3023         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
3024
3025 2011-05-23  Bruno Haible  <bruno@clisp.org>
3026
3027         mkancesdirs: Move AC_LIBOBJ invocations to module description.
3028         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
3029         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
3030
3031 2011-05-23  Bruno Haible  <bruno@clisp.org>
3032
3033         mgetgroups: Move AC_LIBOBJ invocations to module description.
3034         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
3035         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
3036
3037 2011-05-23  Bruno Haible  <bruno@clisp.org>
3038
3039         memxor: Move AC_LIBOBJ invocations to module description.
3040         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
3041         * modules/memxor (Makefile.am): Augment lib_SOURCES.
3042
3043 2011-05-23  Bruno Haible  <bruno@clisp.org>
3044
3045         memcoll: Move AC_LIBOBJ invocations to module description.
3046         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
3047         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
3048
3049 2011-05-23  Bruno Haible  <bruno@clisp.org>
3050
3051         memcasecmp: Move AC_LIBOBJ invocations to module description.
3052         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
3053         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
3054
3055 2011-05-23  Bruno Haible  <bruno@clisp.org>
3056
3057         crypto/md5: Move AC_LIBOBJ invocations to module description.
3058         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
3059         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
3060
3061 2011-05-23  Bruno Haible  <bruno@clisp.org>
3062
3063         crypto/md4: Move AC_LIBOBJ invocations to module description.
3064         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
3065         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
3066
3067 2011-05-23  Bruno Haible  <bruno@clisp.org>
3068
3069         crypto/md2: Move AC_LIBOBJ invocations to module description.
3070         * m4/md2.m4: Remove file.
3071         * modules/crypto/md2 (Files): Remove it.
3072         (configure.ac): Remove gl_MD2 call.
3073         (Makefile.am): Augment lib_SOURCES.
3074
3075 2011-05-23  Bruno Haible  <bruno@clisp.org>
3076
3077         long-options: Move AC_LIBOBJ invocations to module description.
3078         * m4/long-options.m4: Remove file.
3079         * modules/long-options (Files): Remove it.
3080         (configure.ac): Remove gl_LONG_OPTIONS call.
3081         (Makefile.am): Augment lib_SOURCES.
3082
3083 2011-05-23  Bruno Haible  <bruno@clisp.org>
3084
3085         i-ring: Move AC_LIBOBJ invocations to module description.
3086         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
3087         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
3088
3089 2011-05-23  Bruno Haible  <bruno@clisp.org>
3090
3091         idcache: Move AC_LIBOBJ invocations to module description.
3092         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
3093         * modules/idcache (Makefile.am): Augment lib_SOURCES.
3094
3095 2011-05-23  Bruno Haible  <bruno@clisp.org>
3096
3097         human: Move AC_LIBOBJ invocations to module description.
3098         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
3099         * modules/human (Makefile.am): Augment lib_SOURCES.
3100
3101 2011-05-23  Bruno Haible  <bruno@clisp.org>
3102
3103         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
3104         * m4/hmac-sha1.m4: Remove file.
3105         * modules/crypto/hmac-sha1 (Files): Remove it.
3106         (configure.ac): Remove gl_HMAC_SHA1 call.
3107         (Makefile.am): Augment lib_SOURCES.
3108
3109 2011-05-23  Bruno Haible  <bruno@clisp.org>
3110
3111         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
3112         * m4/hmac-md5.m4: Remove file.
3113         * modules/crypto/hmac-md5 (Files): Remove it.
3114         (configure.ac): Remove gl_HMAC_MD5 call.
3115         (Makefile.am): Augment lib_SOURCES.
3116
3117 2011-05-23  Bruno Haible  <bruno@clisp.org>
3118
3119         hash: Move AC_LIBOBJ invocations to module description.
3120         * m4/hash.m4: Remove file.
3121         * modules/hash (Files): Remove it.
3122         (configure.ac): Remove gl_HASH call.
3123         (Makefile.am): Augment lib_SOURCES.
3124
3125 2011-05-23  Bruno Haible  <bruno@clisp.org>
3126
3127         hard-locale: Move AC_LIBOBJ invocations to module description.
3128         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
3129         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
3130
3131 2011-05-23  Bruno Haible  <bruno@clisp.org>
3132
3133         getugroups: Move AC_LIBOBJ invocations to module description.
3134         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
3135         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
3136
3137 2011-05-23  Bruno Haible  <bruno@clisp.org>
3138
3139         gettime: Move AC_LIBOBJ invocations to module description.
3140         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
3141         * modules/gettime (Makefile.am): Augment lib_SOURCES.
3142
3143 2011-05-23  Bruno Haible  <bruno@clisp.org>
3144
3145         getndelim2: Move AC_LIBOBJ invocations to module description.
3146         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
3147         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
3148
3149 2011-05-23  Bruno Haible  <bruno@clisp.org>
3150
3151         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
3152         * m4/gc-pbkdf2-sha1.m4: Remove file.
3153         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
3154         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
3155         (Makefile.am): Augment lib_SOURCES.
3156
3157 2011-05-23  Bruno Haible  <bruno@clisp.org>
3158
3159         fts: Move AC_LIBOBJ invocations to module description.
3160         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
3161         * modules/fts (configure.ac): ... to here.
3162
3163 2011-05-23  Bruno Haible  <bruno@clisp.org>
3164
3165         file-type: Move AC_LIBOBJ invocations to module description.
3166         * m4/file-type.m4: Remove file.
3167         * modules/file-type (Files): Remove it.
3168         (configure.ac): Remove gl_FILE_TYPE call.
3169         (Makefile.am): Augment lib_SOURCES.
3170
3171 2011-05-23  Bruno Haible  <bruno@clisp.org>
3172
3173         filenamecat*: Respect rules for use of AC_LIBOBJ.
3174         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
3175         Remove AC_LIBOBJ invocation.
3176         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
3177         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
3178
3179 2011-05-23  Bruno Haible  <bruno@clisp.org>
3180
3181         filemode: Move AC_LIBOBJ invocations to module description.
3182         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
3183         * modules/filemode (Makefile.am): Augment lib_SOURCES.
3184
3185 2011-05-23  Bruno Haible  <bruno@clisp.org>
3186
3187         openat-safer: Move AC_LIBOBJ invocations to module description.
3188         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
3189         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
3190
3191 2011-05-23  Bruno Haible  <bruno@clisp.org>
3192
3193         fcntl-safer: Move AC_LIBOBJ invocations to module description.
3194         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
3195         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
3196
3197 2011-05-23  Bruno Haible  <bruno@clisp.org>
3198
3199         exclude: Move AC_LIBOBJ invocations to module description.
3200         * m4/exclude.m4: Remove file.
3201         * modules/exclude (Files): Remove it.
3202         (configure.ac): Remove gl_EXCLUDE call.
3203         (Makefile.am): Augment lib_SOURCES.
3204
3205 2011-05-23  Bruno Haible  <bruno@clisp.org>
3206
3207         dirname*: Respect rules for use of AC_LIBOBJ.
3208         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
3209         invocations.
3210         * modules/dirname (Makefile.am): Augment lib_SOURCES.
3211         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
3212
3213 2011-05-23  Bruno Haible  <bruno@clisp.org>
3214
3215         dirent-safer: Move AC_LIBOBJ invocations to module description.
3216         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
3217         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
3218
3219 2011-05-23  Bruno Haible  <bruno@clisp.org>
3220
3221         crypto/des: Move AC_LIBOBJ invocations to module description.
3222         * m4/des.m4: Remove file.
3223         * modules/crypto/des (Files): Remove it.
3224         (configure.ac): Remove gl_DES call.
3225         (Makefile.am): Augment lib_SOURCES.
3226
3227 2011-05-23  Bruno Haible  <bruno@clisp.org>
3228
3229         cycle-check: Move AC_LIBOBJ invocations to module description.
3230         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
3231         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
3232
3233 2011-05-23  Bruno Haible  <bruno@clisp.org>
3234
3235         c-strtold: Move AC_LIBOBJ invocations to module description.
3236         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
3237         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
3238
3239 2011-05-23  Bruno Haible  <bruno@clisp.org>
3240
3241         c-strtod: Move AC_LIBOBJ invocations to module description.
3242         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
3243         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
3244
3245 2011-05-23  Bruno Haible  <bruno@clisp.org>
3246
3247         crc: Move AC_LIBOBJ invocations to module description.
3248         * m4/crc.m4: Remove file.
3249         * modules/crc (Files): Remove it.
3250         (configure.ac): Remove gl_CRC call.
3251         (Makefile.am): Augment lib_SOURCES.
3252
3253 2011-05-23  Bruno Haible  <bruno@clisp.org>
3254
3255         close-stream: Move AC_LIBOBJ invocations to module description.
3256         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
3257         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
3258
3259 2011-05-23  Bruno Haible  <bruno@clisp.org>
3260
3261         closeout: Move AC_LIBOBJ invocations to module description.
3262         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
3263         * modules/closeout (Makefile.am): Augment lib_SOURCES.
3264
3265 2011-05-23  Bruno Haible  <bruno@clisp.org>
3266
3267         closein: Move AC_LIBOBJ invocations to module description.
3268         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
3269         * modules/closein (Makefile.am): Augment lib_SOURCES.
3270
3271 2011-05-23  Bruno Haible  <bruno@clisp.org>
3272
3273         cloexec: Move AC_LIBOBJ invocations to module description.
3274         * m4/cloexec.m4: Remove file.
3275         * modules/cloexec (Files): Remove it.
3276         (configure.ac): Remove gl_CLOEXEC call.
3277         (Makefile.am): Augment lib_SOURCES.
3278
3279 2011-05-23  Bruno Haible  <bruno@clisp.org>
3280
3281         check-version: Move AC_LIBOBJ invocations to module description.
3282         * m4/check-version.m4: Remove file.
3283         * modules/check-version (Files): Remove it.
3284         (configure.ac): Remove gl_CHECK_VERSION call.
3285         (Makefile.am): Augment lib_SOURCES.
3286
3287 2011-05-23  Bruno Haible  <bruno@clisp.org>
3288
3289         chdir-safer: Move AC_LIBOBJ invocations to module description.
3290         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
3291         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
3292
3293 2011-05-23  Bruno Haible  <bruno@clisp.org>
3294
3295         canonicalize: Move AC_LIBOBJ invocations to module description.
3296         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
3297         AC_LIBOBJ invocation.
3298         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
3299
3300 2011-05-23  Bruno Haible  <bruno@clisp.org>
3301
3302         canon-host: Move AC_LIBOBJ invocations to module description.
3303         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
3304         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
3305         instead of gl_CANON_HOST.
3306         (Makefile.am): Augment lib_SOURCES.
3307
3308 2011-05-23  Bruno Haible  <bruno@clisp.org>
3309
3310         backupfile: Move AC_LIBOBJ invocations to module description.
3311         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
3312         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
3313
3314 2011-05-23  Bruno Haible  <bruno@clisp.org>
3315
3316         argmatch: Move AC_LIBOBJ invocations to module description.
3317         * m4/argmatch.m4: Remove file.
3318         * modules/argmatch (Files): Remove it.
3319         (configure.ac): Remove gl_ARGMATCH call.
3320         (Makefile.am): Augment lib_SOURCES.
3321
3322 2011-05-23  Bruno Haible  <bruno@clisp.org>
3323
3324         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
3325         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
3326         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
3327
3328 2011-05-23  Bruno Haible  <bruno@clisp.org>
3329
3330         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
3331         * m4/arcfour.m4: Remove file.
3332         * modules/crypto/arcfour (Files): Remove it.
3333         (configure.ac): Remove gl_ARCFOUR call.
3334         (Makefile.am): Augment lib_SOURCES.
3335
3336 2011-05-22  Bruno Haible  <bruno@clisp.org>
3337
3338         write: Move AC_LIBOBJ invocations to module description.
3339         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
3340         * modules/write (configure.ac): ... to here.
3341
3342 2011-05-22  Bruno Haible  <bruno@clisp.org>
3343
3344         wmemset: Move AC_LIBOBJ invocations to module description.
3345         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
3346         here...
3347         * modules/wmemset (configure.ac): ... to here.
3348
3349 2011-05-22  Bruno Haible  <bruno@clisp.org>
3350
3351         wmemmove: Move AC_LIBOBJ invocations to module description.
3352         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
3353         here...
3354         * modules/wmemmove (configure.ac): ... to here.
3355
3356 2011-05-22  Bruno Haible  <bruno@clisp.org>
3357
3358         wmemcpy: Move AC_LIBOBJ invocations to module description.
3359         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
3360         here...
3361         * modules/wmemcpy (configure.ac): ... to here.
3362
3363 2011-05-22  Bruno Haible  <bruno@clisp.org>
3364
3365         wmemcmp: Move AC_LIBOBJ invocations to module description.
3366         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
3367         here...
3368         * modules/wmemcmp (configure.ac): ... to here.
3369
3370 2011-05-22  Bruno Haible  <bruno@clisp.org>
3371
3372         wmemchr: Move AC_LIBOBJ invocations to module description.
3373         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
3374         here...
3375         * modules/wmemchr (configure.ac): ... to here.
3376
3377 2011-05-22  Bruno Haible  <bruno@clisp.org>
3378
3379         wcswidth: Move AC_LIBOBJ invocations to module description.
3380         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
3381         here...
3382         * modules/wcswidth (configure.ac): ... to here.
3383
3384 2011-05-22  Bruno Haible  <bruno@clisp.org>
3385
3386         wcwidth: Respect rules for use of AC_LIBOBJ.
3387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
3388         invocation from here...
3389         * modules/wcwidth (configure.ac): ... to here.
3390         (Depends-on): Update conditions.
3391
3392 2011-05-22  Bruno Haible  <bruno@clisp.org>
3393
3394         wctype: Move AC_LIBOBJ invocations to module description.
3395         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
3396         invocation from here...
3397         * modules/wctype (configure.ac): ... to here.
3398         (Depends-on): Update conditions.
3399
3400 2011-05-22  Bruno Haible  <bruno@clisp.org>
3401
3402         wctrans: Move AC_LIBOBJ invocations to module description.
3403         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
3404         invocation from here...
3405         * modules/wctrans (configure.ac): ... to here.
3406
3407 2011-05-22  Bruno Haible  <bruno@clisp.org>
3408
3409         wctomb: Move AC_LIBOBJ invocations to module description.
3410         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
3411         invocations from here...
3412         * modules/wctomb (configure.ac): ... to here.
3413
3414 2011-05-22  Bruno Haible  <bruno@clisp.org>
3415
3416         wctob: Move AC_LIBOBJ invocations to module description.
3417         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
3418         gl_PREREQ_WCTOB invocations from here...
3419         * modules/wctob (configure.ac): ... to here.
3420         (Depends-on): Update conditions.
3421
3422 2011-05-22  Bruno Haible  <bruno@clisp.org>
3423
3424         wcsxfrm: Move AC_LIBOBJ invocations to module description.
3425         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
3426         here...
3427         * modules/wcsxfrm (configure.ac): ... to here.
3428
3429 2011-05-22  Bruno Haible  <bruno@clisp.org>
3430
3431         wcstok: Move AC_LIBOBJ invocations to module description.
3432         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
3433         * modules/wcstok (configure.ac): ... to here.
3434
3435 2011-05-22  Bruno Haible  <bruno@clisp.org>
3436
3437         wcsstr: Move AC_LIBOBJ invocations to module description.
3438         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
3439         * modules/wcsstr (configure.ac): ... to here.
3440
3441 2011-05-22  Bruno Haible  <bruno@clisp.org>
3442
3443         wcsspn: Move AC_LIBOBJ invocations to module description.
3444         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
3445         * modules/wcsspn (configure.ac): ... to here.
3446
3447 2011-05-22  Bruno Haible  <bruno@clisp.org>
3448
3449         wcsrtombs: Move AC_LIBOBJ invocations to module description.
3450         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
3451         gl_PREREQ_WCSRTOMBS invocations from here...
3452         * modules/wcsrtombs (configure.ac): ... to here.
3453
3454 2011-05-22  Bruno Haible  <bruno@clisp.org>
3455
3456         wcsrchr: Move AC_LIBOBJ invocations to module description.
3457         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
3458         here...
3459         * modules/wcsrchr (configure.ac): ... to here.
3460
3461 2011-05-22  Bruno Haible  <bruno@clisp.org>
3462
3463         wcspbrk: Move AC_LIBOBJ invocations to module description.
3464         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
3465         here...
3466         * modules/wcspbrk (configure.ac): ... to here.
3467
3468 2011-05-22  Bruno Haible  <bruno@clisp.org>
3469
3470         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
3471         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
3472         gl_PREREQ_WCSNRTOMBS invocations from here...
3473         * modules/wcsnrtombs (configure.ac): ... to here.
3474
3475 2011-05-22  Bruno Haible  <bruno@clisp.org>
3476
3477         wcsnlen: Move AC_LIBOBJ invocations to module description.
3478         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
3479         here...
3480         * modules/wcsnlen (configure.ac): ... to here.
3481
3482 2011-05-22  Bruno Haible  <bruno@clisp.org>
3483
3484         wcsncpy: Move AC_LIBOBJ invocations to module description.
3485         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
3486         here...
3487         * modules/wcsncpy (configure.ac): ... to here.
3488
3489 2011-05-22  Bruno Haible  <bruno@clisp.org>
3490
3491         wcsncmp: Move AC_LIBOBJ invocations to module description.
3492         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
3493         here...
3494         * modules/wcsncmp (configure.ac): ... to here.
3495
3496 2011-05-22  Bruno Haible  <bruno@clisp.org>
3497
3498         wcsncat: Move AC_LIBOBJ invocations to module description.
3499         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
3500         here...
3501         * modules/wcsncat (configure.ac): ... to here.
3502
3503 2011-05-22  Bruno Haible  <bruno@clisp.org>
3504
3505         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
3506         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
3507         from here...
3508         * modules/wcsncasecmp (configure.ac): ... to here.
3509
3510 2011-05-22  Bruno Haible  <bruno@clisp.org>
3511
3512         wcslen: Move AC_LIBOBJ invocations to module description.
3513         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
3514         * modules/wcslen (configure.ac): ... to here.
3515
3516 2011-05-22  Bruno Haible  <bruno@clisp.org>
3517
3518         wcsdup: Move AC_LIBOBJ invocations to module description.
3519         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
3520         * modules/wcsdup (configure.ac): ... to here.
3521
3522 2011-05-22  Bruno Haible  <bruno@clisp.org>
3523
3524         wcscspn: Move AC_LIBOBJ invocations to module description.
3525         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
3526         here...
3527         * modules/wcscspn (configure.ac): ... to here.
3528
3529 2011-05-22  Bruno Haible  <bruno@clisp.org>
3530
3531         wcscpy: Move AC_LIBOBJ invocations to module description.
3532         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
3533         * modules/wcscpy (configure.ac): ... to here.
3534
3535 2011-05-22  Bruno Haible  <bruno@clisp.org>
3536
3537         wcscoll: Move AC_LIBOBJ invocations to module description.
3538         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
3539         here...
3540         * modules/wcscoll (configure.ac): ... to here.
3541
3542 2011-05-22  Bruno Haible  <bruno@clisp.org>
3543
3544         wcscmp: Move AC_LIBOBJ invocations to module description.
3545         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
3546         * modules/wcscmp (configure.ac): ... to here.
3547
3548 2011-05-22  Bruno Haible  <bruno@clisp.org>
3549
3550         wcschr: Move AC_LIBOBJ invocations to module description.
3551         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
3552         * modules/wcschr (configure.ac): ... to here.
3553
3554 2011-05-22  Bruno Haible  <bruno@clisp.org>
3555
3556         wcscat: Move AC_LIBOBJ invocations to module description.
3557         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
3558         * modules/wcscat (configure.ac): ... to here.
3559
3560 2011-05-22  Bruno Haible  <bruno@clisp.org>
3561
3562         wcscasecmp: Move AC_LIBOBJ invocations to module description.
3563         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
3564         here...
3565         * modules/wcscasecmp (configure.ac): ... to here.
3566
3567 2011-05-22  Bruno Haible  <bruno@clisp.org>
3568
3569         wcrtomb: Move AC_LIBOBJ invocations to module description.
3570         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
3571         invocations from here...
3572         * modules/wcrtomb (configure.ac): ... to here.
3573
3574 2011-05-22  Bruno Haible  <bruno@clisp.org>
3575
3576         wcpncpy: Move AC_LIBOBJ invocations to module description.
3577         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
3578         here...
3579         * modules/wcpncpy (configure.ac): ... to here.
3580
3581 2011-05-22  Bruno Haible  <bruno@clisp.org>
3582
3583         wcpcpy: Move AC_LIBOBJ invocations to module description.
3584         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
3585         * modules/wcpcpy (configure.ac): ... to here.
3586
3587 2011-05-22  Bruno Haible  <bruno@clisp.org>
3588
3589         waitpid: Move AC_LIBOBJ invocations to module description.
3590         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
3591         invocation from here...
3592         * modules/waitpid (configure.ac): ... to here.
3593
3594 2011-05-22  Bruno Haible  <bruno@clisp.org>
3595
3596         utimensat: Move AC_LIBOBJ invocations to module description.
3597         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
3598         here...
3599         * modules/utimensat (configure.ac): ... to here.
3600
3601 2011-05-22  Bruno Haible  <bruno@clisp.org>
3602
3603         usleep: Move AC_LIBOBJ invocations to module description.
3604         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
3605         here...
3606         * modules/usleep (configure.ac): ... to here.
3607
3608 2011-05-22  Bruno Haible  <bruno@clisp.org>
3609
3610         unlockpt: Move AC_LIBOBJ invocations to module description.
3611         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
3612         gl_PREREQ_UNLOCKPT invocations from here...
3613         * modules/unlockpt (configure.ac): ... to here.
3614
3615 2011-05-22  Bruno Haible  <bruno@clisp.org>
3616
3617         unlink: Respect rules for use of AC_LIBOBJ.
3618         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
3619         * modules/unlink (configure.ac): ... to here.
3620
3621 2011-05-22  Bruno Haible  <bruno@clisp.org>
3622
3623         uname: Move AC_LIBOBJ invocations to module description.
3624         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
3625         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
3626         here...
3627         * modules/uname (configure.ac): ... to here.
3628
3629 2011-05-22  Bruno Haible  <bruno@clisp.org>
3630
3631         ttyname_r: Move AC_LIBOBJ invocations to module description.
3632         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
3633         gl_PREREQ_TTYNAME_R invocations from here...
3634         * modules/ttyname_r (configure.ac): ... to here.
3635
3636 2011-05-22  Bruno Haible  <bruno@clisp.org>
3637
3638         tsearch: Move AC_LIBOBJ invocations to module description.
3639         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
3640         invocations from here...
3641         * modules/tsearch (configure.ac): ... to here.
3642
3643 2011-05-22  Bruno Haible  <bruno@clisp.org>
3644
3645         towctrans: Move AC_LIBOBJ invocations to module description.
3646         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
3647         AC_LIBOBJ invocation from here...
3648         * modules/towctrans (configure.ac): ... to here.
3649
3650 2011-05-22  Bruno Haible  <bruno@clisp.org>
3651
3652         tmpfile: Move AC_LIBOBJ invocations to module description.
3653         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
3654         invocations from here...
3655         * modules/tmpfile (configure.ac): ... to here.
3656
3657 2011-05-22  Bruno Haible  <bruno@clisp.org>
3658
3659         times: Move AC_LIBOBJ invocations to module description.
3660         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
3661         * modules/times (configure.ac): ... to here.
3662
3663 2011-05-22  Bruno Haible  <bruno@clisp.org>
3664
3665         time_r: Move AC_LIBOBJ invocations to module description.
3666         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
3667         invocations from here...
3668         * modules/time_r (configure.ac): ... to here.
3669
3670 2011-05-22  Bruno Haible  <bruno@clisp.org>
3671
3672         timegm: Move AC_LIBOBJ invocations to module description.
3673         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
3674         invocations from here...
3675         * modules/timegm (configure.ac): ... to here.
3676
3677 2011-05-22  Bruno Haible  <bruno@clisp.org>
3678
3679         tcgetsid: Move AC_LIBOBJ invocations to module description.
3680         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
3681         and gl_PREREQ_TCGETSID invocations from here...
3682         * modules/tcgetsid (configure.ac): ... to here.
3683         (Depends-on): Update conditions.
3684
3685 2011-05-22  Bruno Haible  <bruno@clisp.org>
3686
3687         symlinkat: Move AC_LIBOBJ invocations to module description.
3688         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
3689         here...
3690         * modules/symlinkat (configure.ac): ... to here.
3691
3692 2011-05-22  Bruno Haible  <bruno@clisp.org>
3693
3694         symlink: Move AC_LIBOBJ invocations to module description.
3695         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
3696         here...
3697         * modules/symlink (configure.ac): ... to here.
3698
3699 2011-05-22  Bruno Haible  <bruno@clisp.org>
3700
3701         strverscmp: Move AC_LIBOBJ invocations to module description.
3702         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
3703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
3704         from here...
3705         * modules/strverscmp (configure.ac): ... to here.
3706
3707 2011-05-22  Bruno Haible  <bruno@clisp.org>
3708
3709         strtok_r: Move AC_LIBOBJ invocations to module description.
3710         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
3711         and gl_PREREQ_STRTOK_R invocations from here...
3712         * modules/strtok_r (configure.ac): ... to here.
3713         (Depends-on): Update conditions.
3714
3715 2011-05-22  Bruno Haible  <bruno@clisp.org>
3716
3717         strtoumax: Move AC_LIBOBJ invocations to module description.
3718         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
3719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
3720         from here...
3721         * modules/strtoumax (configure.ac): ... to here.
3722
3723 2011-05-22  Bruno Haible  <bruno@clisp.org>
3724
3725         strtoimax: Move AC_LIBOBJ invocations to module description.
3726         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
3727         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
3728         from here...
3729         * modules/strtoimax (configure.ac): ... to here.
3730
3731 2011-05-22  Bruno Haible  <bruno@clisp.org>
3732
3733         strtoull: Move AC_LIBOBJ invocations to module description.
3734         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
3735         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
3736         from here...
3737         * modules/strtoull (configure.ac): ... to here.
3738
3739 2011-05-22  Bruno Haible  <bruno@clisp.org>
3740
3741         strtoll: Move AC_LIBOBJ invocations to module description.
3742         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
3743         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
3744         here...
3745         * modules/strtoll (configure.ac): ... to here.
3746
3747 2011-05-22  Bruno Haible  <bruno@clisp.org>
3748
3749         strtoul: Move AC_LIBOBJ invocations to module description.
3750         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
3751         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3752         * modules/strtoul (configure.ac): ... to here.
3753
3754 2011-05-22  Bruno Haible  <bruno@clisp.org>
3755
3756         strtol: Move AC_LIBOBJ invocations to module description.
3757         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
3758         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
3759         * modules/strtol (configure.ac): ... to here.
3760
3761 2011-05-22  Bruno Haible  <bruno@clisp.org>
3762
3763         strtod: Move AC_LIBOBJ invocations to module description.
3764         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
3765         invocations from here...
3766         * modules/strtod (configure.ac): ... to here.
3767
3768 2011-05-22  Bruno Haible  <bruno@clisp.org>
3769
3770         strstr*: Move AC_LIBOBJ invocations to module description.
3771         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
3772         invocations from here...
3773         * modules/strstr-simple (configure.ac): ... to here.
3774         * modules/strstr (configure.ac): ... and here.
3775
3776 2011-05-22  Bruno Haible  <bruno@clisp.org>
3777
3778         strsignal: Move AC_LIBOBJ invocations to module description.
3779         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
3780         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
3781         * modules/strsignal (configure.ac): ... to here.
3782         (Depends-on): Update conditions.
3783
3784 2011-05-22  Bruno Haible  <bruno@clisp.org>
3785
3786         strsep: Move AC_LIBOBJ invocations to module description.
3787         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
3788         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
3789         here...
3790         * modules/strsep (configure.ac): ... to here.
3791
3792 2011-05-22  Bruno Haible  <bruno@clisp.org>
3793
3794         strptime: Move AC_LIBOBJ invocations to module description.
3795         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
3796         gl_PREREQ_STRPTIME invocations from here...
3797         * modules/strptime (configure.ac): ... to here.
3798
3799 2011-05-22  Bruno Haible  <bruno@clisp.org>
3800
3801         strpbrk: Move AC_LIBOBJ invocations to module description.
3802         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
3803         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
3804         here...
3805         * modules/strpbrk (configure.ac): ... to here.
3806
3807 2011-05-22  Bruno Haible  <bruno@clisp.org>
3808
3809         strnlen: Move AC_LIBOBJ invocations to module description.
3810         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
3811         invocations from here...
3812         * modules/strnlen (configure.ac): ... to here.
3813
3814 2011-05-22  Bruno Haible  <bruno@clisp.org>
3815
3816         strndup: Move AC_LIBOBJ invocations to module description.
3817         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
3818         invocations from here...
3819         * modules/strndup (configure.ac): ... to here.
3820         (Depends-on): Update conditions.
3821
3822 2011-05-22  Bruno Haible  <bruno@clisp.org>
3823
3824         strncat: Move AC_LIBOBJ invocations to module description.
3825         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
3826         invocations from here...
3827         * modules/strncat (configure.ac): ... to here.
3828
3829 2011-05-22  Bruno Haible  <bruno@clisp.org>
3830
3831         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
3832         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
3833         invocations from here...
3834         * modules/strdup (configure.ac): ... to here.
3835         * modules/strdup-posix (configure.ac): ... and here.
3836
3837 2011-05-22  Bruno Haible  <bruno@clisp.org>
3838
3839         strcspn: Move AC_LIBOBJ invocations to module description.
3840         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
3841         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
3842         here...
3843         * modules/strcspn (configure.ac): ... to here.
3844
3845 2011-05-22  Bruno Haible  <bruno@clisp.org>
3846
3847         strchrnul: Move AC_LIBOBJ invocations to module description.
3848         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
3849         gl_PREREQ_STRCHRNUL invocations from here...
3850         * modules/strchrnul (configure.ac): ... to here.
3851
3852 2011-05-22  Bruno Haible  <bruno@clisp.org>
3853
3854         strcasestr*: Move AC_LIBOBJ invocations to module description.
3855         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
3856         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
3857         * modules/strcasestr-simple (configure.ac): ... to here.
3858         * modules/strcasestr (configure.ac): ... and here.
3859
3860 2011-05-22  Bruno Haible  <bruno@clisp.org>
3861
3862         strcase: Move AC_LIBOBJ invocations to module description.
3863         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
3864         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
3865         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
3866         gl_PREREQ_STRNCASECMP invocations from here...
3867         * modules/strcase (configure.ac): ... to here.
3868
3869 2011-05-22  Bruno Haible  <bruno@clisp.org>
3870
3871         stpncpy: Move AC_LIBOBJ invocations to module description.
3872         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
3873         here...
3874         * modules/stpncpy (configure.ac): ... to here.
3875
3876 2011-05-22  Bruno Haible  <bruno@clisp.org>
3877
3878         stpcpy: Move AC_LIBOBJ invocations to module description.
3879         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
3880         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
3881         here...
3882         * modules/stpcpy (configure.ac): ... to here.
3883
3884 2011-05-21  Bruno Haible  <bruno@clisp.org>
3885
3886         stat: Move AC_LIBOBJ invocations to module description.
3887         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
3888         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
3889         here...
3890         * modules/stat (configure.ac): ... to here.
3891
3892 2011-05-21  Bruno Haible  <bruno@clisp.org>
3893
3894         sleep: Move AC_LIBOBJ invocations to module description.
3895         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
3896         * modules/sleep (configure.ac): ... to here.
3897
3898 2011-05-21  Bruno Haible  <bruno@clisp.org>
3899
3900         signbit: Move AC_LIBOBJ invocations to module description.
3901         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
3902         * modules/signbit (configure.ac): ... to here.
3903
3904 2011-05-21  Bruno Haible  <bruno@clisp.org>
3905
3906         sigprocmask: Move AC_LIBOBJ invocations to module description.
3907         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
3908         gl_PREREQ_SIGPROMASK invocations from here...
3909         * modules/sigprocmask (configure.ac): ... to here.
3910
3911 2011-05-21  Bruno Haible  <bruno@clisp.org>
3912
3913         sigaction: Move AC_LIBOBJ invocations to module description.
3914         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
3915         gl_PREREQ_SIGACTION invocations from here...
3916         * modules/sigaction (configure.ac): ... to here.
3917
3918 2011-05-21  Bruno Haible  <bruno@clisp.org>
3919
3920         sig2str: Move AC_LIBOBJ invocations to module description.
3921         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
3922         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
3923         here...
3924         * modules/sig2str (configure.ac): ... to here.
3925
3926 2011-05-21  Bruno Haible  <bruno@clisp.org>
3927
3928         setlocale: Move AC_LIBOBJ invocations to module description.
3929         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
3930         gl_PREREQ_SETLOCALE invocations from here...
3931         * modules/setlocale (configure.ac): ... to here.
3932
3933 2011-05-21  Bruno Haible  <bruno@clisp.org>
3934
3935         unsetenv: Move AC_LIBOBJ invocations to module description.
3936         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
3937         and gl_PREREQ_UNSETENV invocations from here...
3938         * modules/unsetenv (configure.ac): ... to here.
3939         (Depends-on): Update.
3940
3941 2011-05-21  Bruno Haible  <bruno@clisp.org>
3942
3943         setenv: Move AC_LIBOBJ invocations to module description.
3944         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
3945         here...
3946         * modules/setenv (configure.ac): ... to here.
3947
3948 2011-05-21  Bruno Haible  <bruno@clisp.org>
3949
3950         selinux-h: Move AC_LIBOBJ invocations to module description.
3951         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
3952         AC_LIBOBJ invocation from here...
3953         * modules/selinux-h (configure.ac): ... to here.
3954
3955 2011-05-21  Bruno Haible  <bruno@clisp.org>
3956
3957         select: Respect rules for use of AC_LIBOBJ.
3958         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
3959         here...
3960         * modules/select (configure.ac): ... to here.
3961
3962 2011-05-21  Bruno Haible  <bruno@clisp.org>
3963
3964         scandir: Move AC_LIBOBJ invocations to module description.
3965         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
3966         invocations from here...
3967         * modules/scandir (configure.ac): ... to here.
3968
3969 2011-05-21  Bruno Haible  <bruno@clisp.org>
3970
3971         rpmatch: Move AC_LIBOBJ invocations to module description.
3972         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
3973         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
3974         here...
3975         * modules/rpmatch (configure.ac): ... to here.
3976
3977 2011-05-21  Bruno Haible  <bruno@clisp.org>
3978
3979         rmdir: Respect rules for use of AC_LIBOBJ.
3980         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
3981         * modules/rmdir (configure.ac): ... to here.
3982
3983 2011-05-21  Bruno Haible  <bruno@clisp.org>
3984
3985         renameat: Move AC_LIBOBJ invocations to module description.
3986         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
3987         here...
3988         * modules/renameat (configure.ac): ... to here.
3989
3990 2011-05-21  Bruno Haible  <bruno@clisp.org>
3991
3992         rename: Respect rules for use of AC_LIBOBJ.
3993         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
3994         here...
3995         * modules/rename (configure.ac): ... to here.
3996
3997 2011-05-21  Bruno Haible  <bruno@clisp.org>
3998
3999         remove: Move AC_LIBOBJ invocations to module description.
4000         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
4001         here...
4002         * modules/remove (configure.ac): ... to here.
4003
4004 2011-05-21  Bruno Haible  <bruno@clisp.org>
4005
4006         relocatable-lib: Move AC_LIBOBJ invocations to module description.
4007         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
4008         macro.
4009         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
4010         * modules/relocatable-lib (configure.ac): ... to here.
4011         * modules/relocatable-prog-wrapper (configure.ac): Invoke
4012         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
4013
4014 2011-05-21  Bruno Haible  <bruno@clisp.org>
4015
4016         relocatable-prog: Move AC_LIBOBJ invocations to module description.
4017         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
4018         here...
4019         * modules/relocatable-prog (configure.ac): ... to here.
4020
4021 2011-05-21  Bruno Haible  <bruno@clisp.org>
4022
4023         regex: Move AC_LIBOBJ invocations to module description.
4024         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
4025         invocations from here...
4026         * modules/regex (configure.ac): ... to here.
4027
4028 2011-05-21  Bruno Haible  <bruno@clisp.org>
4029
4030         realloc-*: Move AC_LIBOBJ invocations to module description.
4031         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
4032         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
4033         AC_LIBOBJ invocations from here...
4034         * modules/realloc-gnu (configure.ac): ... to here.
4035         * modules/realloc-posix (configure.ac): ... and here.
4036
4037 2011-05-21  Bruno Haible  <bruno@clisp.org>
4038
4039         readutmp: Move AC_LIBOBJ invocations to module description.
4040         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
4041         * modules/readutmp (configure.ac): ... to here.
4042
4043 2011-05-21  Bruno Haible  <bruno@clisp.org>
4044
4045         readlinkat: Move AC_LIBOBJ invocations to module description.
4046         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
4047         here...
4048         * modules/readlinkat (configure.ac): ... to here.
4049
4050 2011-05-21  Bruno Haible  <bruno@clisp.org>
4051
4052         readlink: Move AC_LIBOBJ invocations to module description.
4053         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
4054         gl_PREREQ_READLINK invocations from here...
4055         * modules/readlink (configure.ac): ... to here.
4056
4057 2011-05-21  Bruno Haible  <bruno@clisp.org>
4058
4059         readline: Move AC_LIBOBJ invocations to module description.
4060         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
4061         gl_PREREQ_READLINE invocations from here...
4062         * modules/readline (configure.ac): ... to here.
4063
4064 2011-05-21  Bruno Haible  <bruno@clisp.org>
4065
4066         read: Move AC_LIBOBJ invocations to module description.
4067         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
4068         * modules/read (configure.ac): ... to here.
4069
4070 2011-05-21  Bruno Haible  <bruno@clisp.org>
4071
4072         rawmemchr: Move AC_LIBOBJ invocations to module description.
4073         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
4074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
4075         from here...
4076         * modules/rawmemchr (configure.ac): ... to here.
4077
4078 2011-05-21  Bruno Haible  <bruno@clisp.org>
4079
4080         random_r: Move AC_LIBOBJ invocations to module description.
4081         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
4082         gl_PREREQ_RANDOM_R invocations from here...
4083         * modules/random_r (configure.ac): ... to here.
4084
4085 2011-05-21  Bruno Haible  <bruno@clisp.org>
4086
4087         pwrite: Move AC_LIBOBJ invocations to module description.
4088         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
4089         * modules/pwrite (configure.ac): ... to here.
4090
4091 2011-05-21  Bruno Haible  <bruno@clisp.org>
4092
4093         putenv: Move AC_LIBOBJ invocations to module description.
4094         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
4095         * modules/putenv (configure.ac): ... to here.
4096
4097 2011-05-21  Bruno Haible  <bruno@clisp.org>
4098
4099         login_tty: Move AC_LIBOBJ invocations to module description.
4100         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
4101         * modules/login_tty (configure.ac): ... to here.
4102
4103 2011-05-21  Bruno Haible  <bruno@clisp.org>
4104
4105         openpty: Move AC_LIBOBJ invocations to module description.
4106         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
4107         * modules/openpty (configure.ac): ... to here.
4108
4109 2011-05-21  Bruno Haible  <bruno@clisp.org>
4110
4111         forkpty: Move AC_LIBOBJ invocations to module description.
4112         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
4113         * modules/forkpty (configure.ac): ... to here.
4114
4115 2011-05-21  Bruno Haible  <bruno@clisp.org>
4116
4117         ptsname: Move AC_LIBOBJ invocations to module description.
4118         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
4119         invocations from here...
4120         * modules/ptsname (configure.ac): ... to here.
4121
4122 2011-05-21  Bruno Haible  <bruno@clisp.org>
4123
4124         pread: Move AC_LIBOBJ invocations to module description.
4125         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
4126         * modules/pread (configure.ac): ... to here.
4127
4128 2011-05-21  Bruno Haible  <bruno@clisp.org>
4129
4130         posix_spawn*: Move AC_LIBOBJ invocations to module description.
4131         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
4132         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
4133         * modules/posix_spawn (configure.ac): ... to here.
4134         * modules/posix_spawnp (configure.ac): ... and here.
4135
4136 2011-05-21  Bruno Haible  <bruno@clisp.org>
4137
4138         popen: Move AC_LIBOBJ invocations to module description.
4139         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
4140         invocations from here...
4141         * modules/popen (configure.ac): ... to here.
4142
4143 2011-05-21  Bruno Haible  <bruno@clisp.org>
4144
4145         poll: Move AC_LIBOBJ invocations to module description.
4146         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
4147         invocations from here...
4148         * modules/poll (configure.ac): ... to here.
4149
4150 2011-05-21  Bruno Haible  <bruno@clisp.org>
4151
4152         pipe-posix: Move AC_LIBOBJ invocations to module description.
4153         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
4154         * modules/pipe-posix (configure.ac): ... to here.
4155
4156 2011-05-21  Bruno Haible  <bruno@clisp.org>
4157
4158         openat: Respect rules for use of AC_LIBOBJ.
4159         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
4160         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4161         * modules/openat (configure.ac): ... to here.
4162
4163 2011-05-21  Bruno Haible  <bruno@clisp.org>
4164
4165         obstack-printf*: Move AC_LIBOBJ invocations to module description.
4166         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
4167         invocation from here...
4168         * modules/obstack-printf (configure.ac): ... to here.
4169         * modules/obstack-printf-posix (configure.ac): ... and here.
4170
4171 2011-05-21  Bruno Haible  <bruno@clisp.org>
4172
4173         nl_langinfo: Move AC_LIBOBJ invocations to module description.
4174         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
4175         from here...
4176         * modules/nl_langinfo (configure.ac): ... to here.
4177
4178 2011-05-21  Bruno Haible  <bruno@clisp.org>
4179
4180         nanosleep: Move AC_LIBOBJ invocations to module description.
4181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
4182         gl_PREREQ_NANOSLEEP invocations from here...
4183         * modules/nanosleep (configure.ac): ... to here.
4184
4185 2011-05-21  Bruno Haible  <bruno@clisp.org>
4186
4187         mountlist: Move AC_LIBOBJ invocations to module description.
4188         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
4189         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
4190         * modules/mountlist (configure.ac): ... to here.
4191
4192 2011-05-21  Bruno Haible  <bruno@clisp.org>
4193
4194         mktime: Respect rules for use of AC_LIBOBJ.
4195         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
4196         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
4197         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
4198         (gl_FUNC_MKTIME_INTERNAL): ... and here...
4199         * modules/mktime (configure.ac): ... to here.
4200         * modules/mktime-internal (configure.ac): ... and here.
4201         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
4202
4203 2011-05-21  Bruno Haible  <bruno@clisp.org>
4204
4205         mkstemps: Move AC_LIBOBJ invocations to module description.
4206         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
4207         here...
4208         * modules/mkstemps (configure.ac): ... to here.
4209
4210 2011-05-21  Bruno Haible  <bruno@clisp.org>
4211
4212         mkstemp: Move AC_LIBOBJ invocations to module description.
4213         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
4214         gl_PREREQ_MKSTEMP invocations from here...
4215         * modules/mkstemp (configure.ac): ... to here.
4216
4217 2011-05-21  Bruno Haible  <bruno@clisp.org>
4218
4219         mkostemps: Move AC_LIBOBJ invocations to module description.
4220         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
4221         here...
4222         * modules/mkostemps (configure.ac): ... to here.
4223
4224 2011-05-21  Bruno Haible  <bruno@clisp.org>
4225
4226         mkostemp: Move AC_LIBOBJ invocations to module description.
4227         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
4228         gl_PREREQ_MKOSTEMP invocations from here...
4229         * modules/mkostemp (configure.ac): ... to here.
4230
4231 2011-05-21  Bruno Haible  <bruno@clisp.org>
4232
4233         mknod: Move AC_LIBOBJ invocations to module description.
4234         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
4235         * modules/mknod (configure.ac): ... to here.
4236
4237 2011-05-21  Bruno Haible  <bruno@clisp.org>
4238
4239         mkfifoat: Move AC_LIBOBJ invocations to module description.
4240         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
4241         here...
4242         * modules/mkfifoat (configure.ac): ... to here.
4243
4244 2011-05-21  Bruno Haible  <bruno@clisp.org>
4245
4246         mkfifo: Respect rules for use of AC_LIBOBJ.
4247         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
4248         here...
4249         * modules/mkfifo (configure.ac): ... to here.
4250
4251 2011-05-21  Bruno Haible  <bruno@clisp.org>
4252
4253         mkdtemp: Move AC_LIBOBJ invocations to module description.
4254         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
4255         invocations from here...
4256         * modules/mkdtemp (configure.ac): ... to here.
4257
4258 2011-05-21  Bruno Haible  <bruno@clisp.org>
4259
4260         mkdir: Move AC_LIBOBJ invocations to module description.
4261         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
4262         * modules/mkdir (configure.ac): ... to here.
4263
4264 2011-05-21  Bruno Haible  <bruno@clisp.org>
4265
4266         memset: Move AC_LIBOBJ invocations to module description.
4267         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
4268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
4269         here...
4270         * modules/memset (configure.ac): ... to here.
4271
4272 2011-05-21  Bruno Haible  <bruno@clisp.org>
4273
4274         memrchr: Move AC_LIBOBJ invocations to module description.
4275         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
4276         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
4277         here...
4278         * modules/memrchr (configure.ac): ... to here.
4279
4280 2011-05-21  Bruno Haible  <bruno@clisp.org>
4281
4282         mempcpy: Move AC_LIBOBJ invocations to module description.
4283         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
4284         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
4285         here...
4286         * modules/mempcpy (configure.ac): ... to here.
4287
4288 2011-05-21  Bruno Haible  <bruno@clisp.org>
4289
4290         memmove: Move AC_LIBOBJ invocations to module description.
4291         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
4292         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
4293         here...
4294         * modules/memmove (configure.ac): ... to here.
4295
4296 2011-05-21  Bruno Haible  <bruno@clisp.org>
4297
4298         memmem*: Move AC_LIBOBJ invocations to module description.
4299         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
4300         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
4301         here...
4302         (gl_FUNC_MEMMEM): ... and here...
4303         * modules/memmem-simple (configure.ac): ... to here.
4304         * modules/memmem (configure.ac): ... and here.
4305
4306 2011-05-21  Bruno Haible  <bruno@clisp.org>
4307
4308         memcpy: Move AC_LIBOBJ invocations to module description.
4309         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
4310         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
4311         here...
4312         * modules/memcpy (configure.ac): ... to here.
4313
4314 2011-05-21  Bruno Haible  <bruno@clisp.org>
4315
4316         memcmp: Simplify autoconf macro.
4317         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
4318         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
4319         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
4320
4321 2011-05-21  Bruno Haible  <bruno@clisp.org>
4322
4323         memcmp: Move AC_LIBOBJ invocations to module description.
4324         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
4325         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
4326         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
4327         * modules/memcmp (configure.ac): ... to here.
4328         (Depends-on): Update conditions.
4329
4330 2011-05-21  Bruno Haible  <bruno@clisp.org>
4331
4332         memchr: Respect rules for use of AC_LIBOBJ.
4333         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
4334         invocations from here...
4335         * modules/memchr (configure.ac): ... to here.
4336
4337 2011-05-21  Bruno Haible  <bruno@clisp.org>
4338
4339         mbtowc: Move AC_LIBOBJ invocations to module description.
4340         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
4341         invocations from here...
4342         * modules/mbtowc (configure.ac): ... to here.
4343
4344 2011-05-21  Bruno Haible  <bruno@clisp.org>
4345
4346         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
4347         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
4348         gl_PREREQ_MBSRTOWCS invocations from here...
4349         * modules/mbsrtowcs (configure.ac): ... to here.
4350
4351 2011-05-21  Bruno Haible  <bruno@clisp.org>
4352
4353         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
4354         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
4355         gl_PREREQ_MBSNRTOWCS invocations from here...
4356         * modules/mbsnrtowcs (configure.ac): ... to here.
4357
4358 2011-05-21  Bruno Haible  <bruno@clisp.org>
4359
4360         mbsinit: Move AC_LIBOBJ invocations to module description.
4361         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
4362         invocations from here...
4363         * modules/mbsinit (configure.ac): ... to here.
4364
4365 2011-05-21  Bruno Haible  <bruno@clisp.org>
4366
4367         mbrlen: Move AC_LIBOBJ invocations to module description.
4368         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
4369         invocations from here...
4370         * modules/mbrlen (configure.ac): ... to here.
4371
4372 2011-05-21  Bruno Haible  <bruno@clisp.org>
4373
4374         mbrtowc: Respect rules for use of AC_LIBOBJ.
4375         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
4376         invocations from here...
4377         * modules/mbrtowc (configure.ac): ... to here.
4378
4379 2011-05-21  Bruno Haible  <bruno@clisp.org>
4380
4381         malloc-*: Move AC_LIBOBJ invocations to module description.
4382         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
4383         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
4384         AC_LIBOBJ invocations from here...
4385         * modules/malloc-gnu (configure.ac): ... to here.
4386         * modules/malloc-posix (configure.ac): ... and here.
4387
4388 2011-05-21  Bruno Haible  <bruno@clisp.org>
4389
4390         lstat, openat: Respect rules for use of AC_LIBOBJ.
4391         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
4392         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
4393         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
4394         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
4395         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
4396         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
4397         here.
4398         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
4399
4400 2011-05-21  Bruno Haible  <bruno@clisp.org>
4401
4402         lseek: Move AC_LIBOBJ invocations to module description.
4403         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
4404         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
4405         * modules/lseek (configure.ac): ... to here.
4406
4407 2011-05-21  Bruno Haible  <bruno@clisp.org>
4408
4409         linkat: Move AC_LIBOBJ invocations to module description.
4410         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
4411         here...
4412         * modules/linkat (configure.ac): ... to here.
4413
4414 2011-05-21  Bruno Haible  <bruno@clisp.org>
4415
4416         link: Respect rules for use of AC_LIBOBJ.
4417         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
4418         * modules/link (configure.ac): ... to here.
4419
4420 2011-05-21  Bruno Haible  <bruno@clisp.org>
4421
4422         lchown: Move AC_LIBOBJ invocations to module description.
4423         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
4424         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
4425         * modules/lchown (configure.ac): ... to here.
4426
4427 2011-05-21  Bruno Haible  <bruno@clisp.org>
4428
4429         iswctype: Move AC_LIBOBJ invocations to module description.
4430         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
4431         here...
4432         * modules/iswctype (configure.ac): ... to here.
4433
4434 2011-05-21  Bruno Haible  <bruno@clisp.org>
4435
4436         iswblank: Move AC_LIBOBJ invocations to module description.
4437         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
4438         here...
4439         * modules/iswblank (configure.ac): ... to here.
4440
4441 2011-05-21  Bruno Haible  <bruno@clisp.org>
4442
4443         atanl: Move AC_LIBOBJ invocations to module description.
4444         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
4445         * modules/atanl (configure.ac): ... to here.
4446
4447 2011-05-21  Bruno Haible  <bruno@clisp.org>
4448
4449         acosl: Move AC_LIBOBJ invocations to module description.
4450         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
4451         * modules/acosl (configure.ac): ... to here.
4452
4453 2011-05-21  Bruno Haible  <bruno@clisp.org>
4454
4455         asinl: Respect rules for use of AC_LIBOBJ.
4456         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
4457         * modules/asinl (configure.ac): ... to here.
4458
4459 2011-05-21  Bruno Haible  <bruno@clisp.org>
4460
4461         tanl: Move AC_LIBOBJ invocations to module description.
4462         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
4463         * modules/tanl (configure.ac): ... to here.
4464
4465 2011-05-21  Bruno Haible  <bruno@clisp.org>
4466
4467         cosl: Move AC_LIBOBJ invocations to module description.
4468         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
4469         * modules/cosl (configure.ac): ... to here.
4470
4471 2011-05-21  Bruno Haible  <bruno@clisp.org>
4472
4473         sinl: Move AC_LIBOBJ invocations to module description.
4474         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
4475         * modules/sinl (configure.ac): ... to here.
4476
4477 2011-05-21  Bruno Haible  <bruno@clisp.org>
4478
4479         logl: Move AC_LIBOBJ invocations to module description.
4480         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
4481         * modules/logl (configure.ac): ... to here.
4482
4483 2011-05-21  Bruno Haible  <bruno@clisp.org>
4484
4485         expl: Move AC_LIBOBJ invocations to module description.
4486         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
4487         * modules/expl (configure.ac): ... to here.
4488
4489 2011-05-21  Bruno Haible  <bruno@clisp.org>
4490
4491         roundl: Move AC_LIBOBJ invocations to module description.
4492         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
4493         * modules/roundl (configure.ac): ... to here.
4494
4495 2011-05-21  Bruno Haible  <bruno@clisp.org>
4496
4497         round: Move AC_LIBOBJ invocations to module description.
4498         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
4499         * modules/round (configure.ac): ... to here.
4500
4501 2011-05-21  Bruno Haible  <bruno@clisp.org>
4502
4503         roundf: Move AC_LIBOBJ invocations to module description.
4504         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
4505         * modules/roundf (configure.ac): ... to here.
4506
4507 2011-05-21  Bruno Haible  <bruno@clisp.org>
4508
4509         truncl: Move AC_LIBOBJ invocations to module description.
4510         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
4511         * modules/truncl (configure.ac): ... to here.
4512
4513 2011-05-21  Bruno Haible  <bruno@clisp.org>
4514
4515         trunc: Move AC_LIBOBJ invocations to module description.
4516         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
4517         * modules/trunc (configure.ac): ... to here.
4518
4519 2011-05-21  Bruno Haible  <bruno@clisp.org>
4520
4521         truncf: Move AC_LIBOBJ invocations to module description.
4522         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
4523         * modules/truncf (configure.ac): ... to here.
4524
4525 2011-05-21  Bruno Haible  <bruno@clisp.org>
4526
4527         ceill: Move AC_LIBOBJ invocations to module description.
4528         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
4529         * modules/ceill (configure.ac): ... to here.
4530
4531 2011-05-21  Bruno Haible  <bruno@clisp.org>
4532
4533         ceil: Move AC_LIBOBJ invocations to module description.
4534         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
4535         * modules/ceil (configure.ac): ... to here.
4536
4537 2011-05-21  Bruno Haible  <bruno@clisp.org>
4538
4539         ceilf: Move AC_LIBOBJ invocations to module description.
4540         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
4541         * modules/ceilf (configure.ac): ... to here.
4542
4543 2011-05-21  Bruno Haible  <bruno@clisp.org>
4544
4545         floorl: Respect rules for use of AC_LIBOBJ.
4546         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
4547         * modules/floorl (configure.ac): ... to here.
4548
4549 2011-05-21  Bruno Haible  <bruno@clisp.org>
4550
4551         floor: Respect rules for use of AC_LIBOBJ.
4552         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
4553         * modules/floor (configure.ac): ... to here.
4554
4555 2011-05-21  Bruno Haible  <bruno@clisp.org>
4556
4557         floorf: Move AC_LIBOBJ invocations to module description.
4558         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
4559         * modules/floorf (configure.ac): ... to here.
4560
4561 2011-05-20  Bruno Haible  <bruno@clisp.org>
4562
4563         sqrtl: Respect rules for use of AC_LIBOBJ.
4564         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
4565         * modules/sqrtl (configure.ac): ... to here.
4566
4567 2011-05-20  Bruno Haible  <bruno@clisp.org>
4568
4569         ldexpl: Respect rules for use of AC_LIBOBJ.
4570         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
4571         * modules/ldexpl (configure.ac): ... to here.
4572
4573 2011-05-20  Bruno Haible  <bruno@clisp.org>
4574
4575         frexpl*: Respect rules for use of AC_LIBOBJ.
4576         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
4577         invocation from here...
4578         * modules/frexpl (configure.ac): ... to here.
4579         * modules/frexpl-nolibm (configure.ac): ... and here.
4580
4581 2011-05-20  Bruno Haible  <bruno@clisp.org>
4582
4583         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
4584         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
4585         invocation from here...
4586         * modules/frexp (configure.ac): ... to here.
4587         * modules/frexp-nolibm (configure.ac): ... and here.
4588
4589 2011-05-20  Bruno Haible  <bruno@clisp.org>
4590
4591         isnan: Respect rules for use of AC_LIBOBJ.
4592         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
4593         invocations here.
4594         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
4595         REPLACE_ISNAN.
4596         * modules/isnand (configure.ac): Likewise.
4597         * modules/isnanl (configure.ac): Likewise.
4598
4599 2011-05-20  Bruno Haible  <bruno@clisp.org>
4600
4601         isnanl*: Respect rules for use of AC_LIBOBJ.
4602         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
4603         invocation from here...
4604         * modules/isnanl (configure.ac): ... to here.
4605         * modules/isnanl-nolibm (configure.ac): ... and here.
4606
4607 2011-05-20  Bruno Haible  <bruno@clisp.org>
4608
4609         isnand*: Move AC_LIBOBJ invocations to module description.
4610         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
4611         invocation from here...
4612         * modules/isnand (configure.ac): ... to here.
4613         * modules/isnand-nolibm (configure.ac): ... and here.
4614
4615 2011-05-20  Bruno Haible  <bruno@clisp.org>
4616
4617         isnanf*: Move AC_LIBOBJ invocations to module description.
4618         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
4619         invocation from here...
4620         * modules/isnanf (configure.ac): ... to here.
4621         * modules/isnanf-nolibm (configure.ac): ... and here.
4622
4623 2011-05-20  Bruno Haible  <bruno@clisp.org>
4624
4625         isnan*: Separate the AC_LIBOBJ invocations.
4626         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
4627         AC_LIBOBJ invocation.
4628         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
4629         here.
4630         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
4631         AC_LIBOBJ invocation.
4632         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
4633         here.
4634         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
4635         AC_LIBOBJ invocation.
4636         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
4637         here.
4638         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
4639
4640 2011-05-08  Bruno Haible  <bruno@clisp.org>
4641
4642         isinf: Move AC_LIBOBJ invocations to module description.
4643         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
4644         * modules/isinf (configure.ac): ... to here.
4645
4646 2011-05-08  Bruno Haible  <bruno@clisp.org>
4647
4648         isfinite: Move AC_LIBOBJ invocations to module description.
4649         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
4650         * modules/isfinite (configure.ac): ... to here.
4651
4652 2011-05-08  Bruno Haible  <bruno@clisp.org>
4653
4654         isblank: Move AC_LIBOBJ invocations to module description.
4655         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
4656         here...
4657         * modules/isblank (configure.ac): ... to here.
4658
4659 2011-05-08  Bruno Haible  <bruno@clisp.org>
4660
4661         isapipe: Move AC_LIBOBJ invocations to module description.
4662         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
4663         gl_PREREQ_ISAPIPE invocations from here...
4664         * modules/isapipe (configure.ac): ... to here.
4665         (Depends-on): Update condition.
4666
4667 2011-05-08  Bruno Haible  <bruno@clisp.org>
4668
4669         ioctl: Move AC_LIBOBJ invocations to module description.
4670         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
4671         invocations from here...
4672         * modules/ioctl (configure.ac): ... to here.
4673         (Depends-on): Update condition.
4674
4675 2011-05-08  Bruno Haible  <bruno@clisp.org>
4676
4677         imaxdiv: Move AC_LIBOBJ invocations to module description.
4678         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
4679         invocations from here...
4680         * modules/imaxdiv (configure.ac): ... to here.
4681
4682 2011-05-08  Bruno Haible  <bruno@clisp.org>
4683
4684         imaxabs: Move AC_LIBOBJ invocations to module description.
4685         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
4686         invocations from here...
4687         * modules/imaxabs (configure.ac): ... to here.
4688
4689 2011-05-08  Bruno Haible  <bruno@clisp.org>
4690
4691         getaddrinfo: Move AC_LIBOBJ invocations to module description.
4692         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
4693         AC_LIBOBJ invocations from here...
4694         * modules/getaddrinfo (configure.ac): ... to here.
4695         (Depends-on): Add conditions.
4696
4697 2011-05-08  Bruno Haible  <bruno@clisp.org>
4698
4699         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4700         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
4701         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4702         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
4703         (gl_PREREQ_INET_PTON): ... from here.
4704         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
4705         gl_PREREQ_INET_PTON here.
4706         (Depends-on): Update condition.
4707
4708 2011-05-08  Bruno Haible  <bruno@clisp.org>
4709
4710         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
4711         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
4712         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
4713         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
4714         (gl_PREREQ_INET_NTOP): ... from here.
4715         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
4716         gl_PREREQ_INET_NTOP here.
4717         (Depends-on): Update condition.
4718
4719 2011-05-08  Bruno Haible  <bruno@clisp.org>
4720
4721         iconv_open: Move AC_LIBOBJ invocations to module description.
4722         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
4723         AC_LIBOBJ invocations from here...
4724         * modules/iconv_open (configure.ac): ... to here.
4725
4726 2011-05-08  Bruno Haible  <bruno@clisp.org>
4727
4728         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
4729         If module 'iconv_open' is among the main modules and module
4730         'iconv_open-utf' is among the tests dependencies, then
4731         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
4732         return the special iconv_t values. Therefore iconv() and iconv_close()
4733         must support these special iconv_t values, already in lib, not only in
4734         tests.
4735         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
4736         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
4737         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
4738         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
4739         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
4740         (Depends-on): Add the dependencies of iconv_open-utf.
4741         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
4742         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
4743         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
4744
4745 2011-05-08  Bruno Haible  <bruno@clisp.org>
4746
4747         group-member: Move AC_LIBOBJ invocations to module description.
4748         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
4749         gl_PREREQ_GROUP_MEMBER invocations from here...
4750         * modules/group-member (configure.ac): ... to here.
4751
4752 2011-05-08  Bruno Haible  <bruno@clisp.org>
4753
4754         grantpt: Move AC_LIBOBJ invocations to module description.
4755         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
4756         invocations from here...
4757         * modules/grantpt (configure.ac): ... to here.
4758
4759 2011-05-08  Bruno Haible  <bruno@clisp.org>
4760
4761         glob: Move AC_LIBOBJ invocations to module description.
4762         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
4763         from here...
4764         * modules/glob (configure.ac): ... to here.
4765
4766 2011-05-08  Bruno Haible  <bruno@clisp.org>
4767
4768         getusershell: Move AC_LIBOBJ invocations to module description.
4769         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
4770         Move AC_LIBOBJ invocation from here...
4771         * modules/getusershell (configure.ac): ... to here.
4772         (Depends-on): Update condition.
4773
4774 2011-05-08  Bruno Haible  <bruno@clisp.org>
4775
4776         gettimeofday: Move AC_LIBOBJ invocations to module description.
4777         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4778         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
4779         gl_PREREQ_GETTIMEOFDAY invocations from here...
4780         * modules/gettimeofday (configure.ac): ... to here.
4781
4782 2011-05-08  Bruno Haible  <bruno@clisp.org>
4783
4784         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
4785         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
4786         just gl_FUNC_TZSET.
4787         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
4788         (gl_FUNC_TZSET_CLOBBER): Remove actions.
4789         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
4790         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
4791
4792 2011-05-08  Bruno Haible  <bruno@clisp.org>
4793
4794         getsubopt: Move AC_LIBOBJ invocations to module description.
4795         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
4796         gl_PREREQ_GETSUBOPT invocations from here...
4797         * modules/getsubopt (configure.ac): ... to here.
4798
4799 2011-05-08  Bruno Haible  <bruno@clisp.org>
4800
4801         getpass-gnu: Move AC_LIBOBJ invocations to module description.
4802         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
4803         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
4804         * modules/getpass-gnu (configure.ac): ... to here.
4805
4806 2011-05-08  Bruno Haible  <bruno@clisp.org>
4807
4808         getpass: Move AC_LIBOBJ invocations to module description.
4809         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
4810         gl_PREREQ_GETPASS invocations from here...
4811         * modules/getpass (configure.ac): ... to here.
4812
4813 2011-05-08  Bruno Haible  <bruno@clisp.org>
4814
4815         getpagesize: Move AC_LIBOBJ invocations to module description.
4816         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
4817         from here...
4818         * modules/getpagesize (configure.ac): ... to here.
4819
4820 2011-05-08  Bruno Haible  <bruno@clisp.org>
4821
4822         getopt: Move AC_LIBOBJ invocations to module description.
4823         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
4824         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
4825         invocations from here...
4826         * modules/getopt-gnu (configure.ac): ... to here.
4827         * modules/getopt-posix (configure.ac): ... and here.
4828         (Depends-on): Update condition.
4829
4830 2011-05-08  Bruno Haible  <bruno@clisp.org>
4831
4832         getopt, argp: Respect rules for use of AC_LIBOBJ.
4833         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
4834         (gl_REPLACE_GETOPT_ALWAYS): New macro.
4835         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
4836         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
4837
4838 2011-05-08  Bruno Haible  <bruno@clisp.org>
4839
4840         getlogin_r: Move AC_LIBOBJ invocations to module description.
4841         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
4842         gl_PREREQ_GETLOGIN_R invocations from here...
4843         * modules/getlogin_r (configure.ac): ... to here.
4844
4845 2011-05-08  Bruno Haible  <bruno@clisp.org>
4846
4847         getlogin: Move AC_LIBOBJ invocations to module description.
4848         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
4849         here...
4850         * modules/getlogin (configure.ac): ... to here.
4851
4852 2011-05-08  Bruno Haible  <bruno@clisp.org>
4853
4854         getloadavg: Move AC_LIBOBJ invocations to module description.
4855         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
4856         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
4857         * modules/getloadavg (configure.ac): ... to here.
4858
4859 2011-05-08  Bruno Haible  <bruno@clisp.org>
4860
4861         gethrxtime: Move AC_LIBOBJ invocations to module description.
4862         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
4863         LIB_GETHRXTIME from here...
4864         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
4865         invocations from here...
4866         * modules/gethrxtime (configure.ac): ... to here.
4867
4868 2011-05-08  Bruno Haible  <bruno@clisp.org>
4869
4870         gethostname: Move AC_LIBOBJ invocations to module description.
4871         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
4872         gl_PREREQ_GETHOSTNAME invocations from here...
4873         * modules/gethostname (configure.ac): ... to here.
4874
4875 2011-05-08  Bruno Haible  <bruno@clisp.org>
4876
4877         getgroups: Move AC_LIBOBJ invocations to module description.
4878         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
4879         here...
4880         * modules/getgroups (configure.ac): ... to here.
4881
4882 2011-05-08  Bruno Haible  <bruno@clisp.org>
4883
4884         getdtablesize: Move AC_LIBOBJ invocations to module description.
4885         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
4886         invocation from here...
4887         * modules/getdtablesize (configure.ac): ... to here.
4888
4889 2011-05-08  Bruno Haible  <bruno@clisp.org>
4890
4891         getdomainname: Move AC_LIBOBJ invocations to module description.
4892         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
4893         gl_PREREQ_GETDOMAINNAME invocations from here...
4894         * modules/getdomainname (configure.ac): ... to here.
4895
4896 2011-05-08  Bruno Haible  <bruno@clisp.org>
4897
4898         getline: Move AC_LIBOBJ invocations to module description.
4899         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
4900         invocations from here...
4901         * modules/getline (configure.ac): ... to here.
4902
4903 2011-05-08  Bruno Haible  <bruno@clisp.org>
4904
4905         getline: Simplify.
4906         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
4907         It's already handled through the module dependency.
4908
4909 2011-05-08  Bruno Haible  <bruno@clisp.org>
4910
4911         getdelim: Move AC_LIBOBJ invocations to module description.
4912         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
4913         and gl_PREREQ_GETDELIM invocations from here...
4914         * modules/getdelim (configure.ac): ... to here.
4915         (Depends-on): Fix condition.
4916
4917 2011-05-08  Bruno Haible  <bruno@clisp.org>
4918
4919         getcwd: Move AC_LIBOBJ invocations to module description.
4920         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
4921         invocations from here...
4922         * modules/getcwd (configure.ac): ... to here.
4923
4924 2011-05-08  Bruno Haible  <bruno@clisp.org>
4925
4926         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
4927         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
4928         here...
4929         * modules/getcwd-lgpl (configure.ac): ... to here.
4930
4931 2011-05-07  Bruno Haible  <bruno@clisp.org>
4932
4933         crypto/gc: Move AC_LIBOBJ invocations to module description.
4934         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
4935         * modules/crypto/gc (configure.ac): ... to here.
4936
4937 2011-05-07  Bruno Haible  <bruno@clisp.org>
4938
4939         fwriting: Move AC_LIBOBJ invocations to module description.
4940         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
4941         here...
4942         * modules/fwriting (configure.ac): ... to here.
4943
4944 2011-05-07  Bruno Haible  <bruno@clisp.org>
4945
4946         fwritable: Move AC_LIBOBJ invocations to module description.
4947         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
4948         here...
4949         * modules/fwritable (configure.ac): ... to here.
4950
4951 2011-05-07  Bruno Haible  <bruno@clisp.org>
4952
4953         futimens: Move AC_LIBOBJ invocations to module description.
4954         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
4955         here...
4956         * modules/futimens (configure.ac): ... to here.
4957
4958 2011-05-07  Bruno Haible  <bruno@clisp.org>
4959
4960         ftruncate: Move AC_LIBOBJ invocations to module description.
4961         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
4962         gl_PREREQ_FTRUNCATE invocations from here...
4963         * modules/ftruncate (configure.ac): ... to here.
4964
4965 2011-05-07  Bruno Haible  <bruno@clisp.org>
4966
4967         fsync: Move AC_LIBOBJ invocations to module description.
4968         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
4969         invocations from here...
4970         * modules/fsync (configure.ac): ... to here.
4971
4972 2011-05-07  Bruno Haible  <bruno@clisp.org>
4973
4974         fsusage: Move AC_LIBOBJ invocations to module description.
4975         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
4976         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
4977         * modules/fsusage (configure.ac): ... to here.
4978
4979 2011-05-07  Bruno Haible  <bruno@clisp.org>
4980
4981         freopen: Move AC_LIBOBJ invocations to module description.
4982         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
4983         invocations from here...
4984         * modules/freopen (configure.ac): ... to here.
4985
4986 2011-05-07  Bruno Haible  <bruno@clisp.org>
4987
4988         free: Move AC_LIBOBJ invocations to module description.
4989         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
4990         invocations from here...
4991         * modules/free (configure.ac): ... to here.
4992
4993 2011-05-07  Bruno Haible  <bruno@clisp.org>
4994
4995         freadable: Move AC_LIBOBJ invocations to module description.
4996         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
4997         here...
4998         * modules/freadable (configure.ac): ... to here.
4999
5000 2011-05-07  Bruno Haible  <bruno@clisp.org>
5001
5002         fpurge: Move AC_LIBOBJ invocations to module description.
5003         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
5004         invocations from here...
5005         * modules/fpurge (configure.ac): ... to here.
5006
5007 2011-05-07  Bruno Haible  <bruno@clisp.org>
5008
5009         fpending: Move AC_LIBOBJ invocations to module description.
5010         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
5011         gl_FUNC_FPENDING.
5012         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
5013         invocations from here...
5014         * modules/fpending (configure.ac): ... to here.
5015
5016 2011-05-07  Bruno Haible  <bruno@clisp.org>
5017
5018         fopen: Move AC_LIBOBJ invocations to module description.
5019         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
5020         invocations from here...
5021         * modules/fopen (configure.ac): ... to here.
5022
5023 2011-05-07  Bruno Haible  <bruno@clisp.org>
5024
5025         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
5026         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
5027         gl_FUNC_FNMATCH_POSIX.
5028         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
5029         invocations from here...
5030         * modules/fnmatch (configure.ac): ... to here.
5031         * modules/fnmatch-gnu (configure.ac): ... and here.
5032
5033 2011-05-07  Bruno Haible  <bruno@clisp.org>
5034
5035         flock: Move AC_LIBOBJ invocations to module description.
5036         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
5037         invocations from here...
5038         * modules/flock (configure.ac): ... to here.
5039
5040 2011-05-07  Bruno Haible  <bruno@clisp.org>
5041
5042         fileblocks: Move AC_LIBOBJ invocations to module description.
5043         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
5044         gl_PREREQ_FILEBLOCKS invocations from here...
5045         * modules/fileblocks (configure.ac): ... to here.
5046
5047 2011-05-06  Bruno Haible  <bruno@clisp.org>
5048
5049         fflush: Move AC_LIBOBJ invocations to module description.
5050         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
5051         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
5052         invocations from here...
5053         * modules/fflush (configure.ac): ... to here.
5054
5055 2011-05-06  Bruno Haible  <bruno@clisp.org>
5056
5057         fdopendir: Move AC_LIBOBJ invocations to module description.
5058         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
5059         here...
5060         * modules/fdopendir (configure.ac): ... to here.
5061         (Depends-on): Improve conditions.
5062
5063 2011-05-06  Bruno Haible  <bruno@clisp.org>
5064
5065         _Exit: Move AC_LIBOBJ invocations to module description.
5066         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
5067         invocations from here...
5068         * modules/_Exit (configure.ac): ... to here.
5069
5070 2011-05-21  Bruno Haible  <bruno@clisp.org>
5071
5072         euidaccess: Respect rules for use of AC_LIBOBJ.
5073         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
5074         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
5075         from here...
5076         * modules/euidaccess (configure.ac): ... to here.
5077
5078 2011-05-06  Bruno Haible  <bruno@clisp.org>
5079
5080         error: Move AC_LIBOBJ invocations to module description.
5081         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
5082         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
5083         invocations from here...
5084         * modules/error (configure.ac): ... to here.
5085
5086 2011-05-06  Bruno Haible  <bruno@clisp.org>
5087
5088         duplocale: Move AC_LIBOBJ invocations to module description.
5089         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
5090         gl_PREREQ_DUPLOCALE invocations from here...
5091         * modules/duplocale (configure.ac): ... to here.
5092
5093 2011-05-05  Bruno Haible  <bruno@clisp.org>
5094
5095         dirfd: Move AC_LIBOBJ invocations to module description.
5096         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
5097         gl_FUNC_DIRFD.
5098         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
5099         here...
5100         * modules/dirfd (configure.ac): ... to here.
5101         (Depends-on): Fix condition.
5102
5103 2011-05-05  Bruno Haible  <bruno@clisp.org>
5104
5105         chown: Respect rules for use of AC_LIBOBJ.
5106         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
5107         * modules/chown (configure.ac): ... to here.
5108
5109 2011-05-05  Bruno Haible  <bruno@clisp.org>
5110
5111         chdir-long: Move AC_LIBOBJ invocations to module description.
5112         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
5113         gl_PREREQ_CHDIR_LONG invocations from here...
5114         * modules/chdir-long (configure.ac): ... to here.
5115
5116 2011-05-05  Bruno Haible  <bruno@clisp.org>
5117
5118         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
5119         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
5120         from here...
5121         * modules/canonicalize-lgpl (configure.ac): ... to here.
5122
5123 2011-05-05  Bruno Haible  <bruno@clisp.org>
5124
5125         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
5126         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
5127         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
5128         REPLACE_CALLOC.
5129         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
5130         * modules/calloc-gnu (configure.ac): Likewise.
5131
5132 2011-05-05  Bruno Haible  <bruno@clisp.org>
5133
5134         btowc: Move AC_LIBOBJ invocations to module description.
5135         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
5136         invocations from here...
5137         * modules/btowc (configure.ac): ... to here.
5138
5139 2011-05-21  Bruno Haible  <bruno@clisp.org>
5140
5141         atexit: Move AC_LIBOBJ invocations to module description.
5142         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
5143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
5144         here...
5145         * modules/atexit (configure.ac): ... to here.
5146
5147 2011-05-05  Bruno Haible  <bruno@clisp.org>
5148
5149         atoll: Move AC_LIBOBJ invocations to module description.
5150         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
5151         invocations from here...
5152         * modules/atoll (configure.ac): ... to here.
5153
5154 2011-05-05  Bruno Haible  <bruno@clisp.org>
5155
5156         argz: Move AC_LIBOBJ invocations to module description.
5157         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
5158         * modules/argz (configure.ac): ... to here.
5159
5160 2011-05-05  Bruno Haible  <bruno@clisp.org>
5161
5162         alphasort: Move AC_LIBOBJ invocations to module description.
5163         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
5164         gl_PREREQ_ALPHASORT invocations from here...
5165         * modules/alphasort (configure.ac): ... to here.
5166
5167 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
5168
5169         verify: new macro verify_expr; verify_true deprecated
5170         * NEWS: Mention this.
5171         * doc/verify.texi (Compile-time Assertions): Document this.
5172         * lib/verify.h (verify_true): Deprecate.
5173         (verify_expr): New macro.
5174         * tests/test-verify.c (function): Test verify_expr.
5175
5176 2011-06-14  Jim Meyering  <meyering@redhat.com>
5177
5178         init.sh: give more portable redirection-related advice in a comment
5179         * tests/init.sh (stderr_fileno_): Update the advice in comments.
5180         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
5181         for lots of discussion.  Stefano Lattarini suggested the solution
5182         of putting "9>&2" after the command.  Reported by Bruno Haible.
5183
5184 2011-06-13  Bruno Haible  <bruno@clisp.org>
5185
5186         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
5187         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
5188         'none'.
5189
5190 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
5191
5192         ftoastr: use strtof only if HAVE_STRTOF
5193         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
5194         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
5195         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
5196         * modules/ftoastr (configure.ac): Check for strtof.
5197
5198 2011-06-13  Bruno Haible  <bruno@clisp.org>
5199
5200         gnulib-tool: Addendum to 2011-06-08 commit.
5201         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
5202         and --witness-c-macro have been given, augment AM_CPPFLAGS.
5203
5204 2011-06-13  Bruno Haible  <bruno@clisp.org>
5205
5206         fseeko: Provide a non-inline replacement of fseek().
5207         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
5208         * modules/fseeko (Depends-on): Add fseek.
5209         * modules/fseek (License): Change to LGPLv2+.
5210
5211 2011-06-13  Bruno Haible  <bruno@clisp.org>
5212
5213         ftello: Provide a non-inline replacement of ftell().
5214         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
5215         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
5216         not have ftello() (such as on mingw).
5217         * modules/ftello (Depends-on): Add ftell.
5218         * modules/ftell (License): Change to LGPLv2+.
5219
5220 2011-05-07  Bruno Haible  <bruno@clisp.org>
5221
5222         ftell: Move AC_LIBOBJ invocations to module description.
5223         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
5224         * modules/ftell (configure.ac): ... to here.
5225
5226 2011-05-07  Bruno Haible  <bruno@clisp.org>
5227
5228         ftello: Respect rules for use of AC_LIBOBJ.
5229         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
5230         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
5231         here...
5232         * modules/ftello (configure.ac): ... to here.
5233
5234 2011-05-07  Bruno Haible  <bruno@clisp.org>
5235
5236         fseeko: Simplify.
5237         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
5238         (gl_FUNC_FSEEKO): Inline it here.
5239
5240 2011-05-07  Bruno Haible  <bruno@clisp.org>
5241
5242         fseek: Move AC_LIBOBJ invocations to module description.
5243         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
5244         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
5245         * modules/fseek (configure.ac): ... to here.
5246
5247 2011-05-07  Bruno Haible  <bruno@clisp.org>
5248
5249         fseek: Respect rules for use of AC_LIBOBJ.
5250         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
5251         here...
5252         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
5253
5254 2011-05-07  Bruno Haible  <bruno@clisp.org>
5255
5256         fseeko: Respect rules for use of AC_LIBOBJ.
5257         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
5258         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
5259         here...
5260         * modules/fseeko (configure.ac): ... to here.
5261
5262 2011-06-13  Bruno Haible  <bruno@clisp.org>
5263
5264         gnulib-tool: Allow comments in the 'Depends-on' section.
5265         * doc/gnulib.texi (Module description): Mention comment syntax in the
5266         Depends-on section.
5267         * gnulib-tool (func_get_dependencies): Filter out comment lines.
5268
5269 2011-06-13  Bruno Haible  <bruno@clisp.org>
5270
5271         file-set.h: guard __attibute__ use, now that it's not always defined
5272         * lib/file-set.h (record_file): Use __attribute__ only with compiler
5273         versions that support it.  This fixes a coreutils build failure with
5274         the vendor cc on HP-UX 11.31.
5275
5276 2011-06-12  Bruno Haible  <bruno@clisp.org>
5277
5278         acl: Add support for HP-UX >= 11.11 JFS ACLs.
5279         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
5280         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
5281         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
5282         (acl, aclsort): New declarations.
5283         (aclv_nontrivial): New declaration.
5284         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
5285         (file_has_acl): Read also the second kind of HP-UX ACLs.
5286         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
5287         kind of HP-UX ACLs if the first kind fails.
5288         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
5289         second kind of HP-UX ACLs.
5290         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
5291         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
5292         agree.
5293         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5294         hpuxjfs.
5295         Handle hpuxjfs.
5296         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
5297         hpuxjfs.
5298         Handle hpuxjfs.
5299         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5300         (func_test_same_acls): Use both lsacl and getacl.
5301         Handle hpuxjfs.
5302         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
5303         (func_test_same_acls): Use both lsacl and getacl.
5304         Handle hpuxjfs.
5305
5306 2011-06-12  Bruno Haible  <bruno@clisp.org>
5307
5308         acl: Complete the 2010-08-10 fix.
5309         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
5310         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
5311         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
5312         explicitly.
5313         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
5314         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
5315
5316 2011-06-12  Bruno Haible  <bruno@clisp.org>
5317
5318         spawn-pipe tests: Comments.
5319         * tests/test-spawn-pipe-child.c (main): Update comment.
5320         Reported by James Youngman <jay@gnu.org>.
5321
5322 2011-06-11  James Youngman  <jay@gnu.org>
5323
5324         New module 'stat-size'.
5325         * modules/stat-size: New module.  Provides macros for accessing
5326         file size information in instances of struct stat.  Depends on the
5327         fileblocks module because it calls st_blocks.
5328         * lib/stat-size.h: New file, adapted from coreutils' system.h.
5329         * doc/gnulib.texi: Include stat-size.texi.
5330         * doc/stat-size.texi: Documentation for this module.
5331         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
5332         * m4/fileblocks.m4: Mention that stat-size depends on the call to
5333         AC_STRUCT_ST_BLOCKS.
5334
5335 2011-06-09  Bruno Haible  <bruno@clisp.org>
5336
5337         thread: Support pthreads-win32.
5338         * lib/glthread/thread.h (gl_thread_self): Define differently on
5339         pthreads-win32.
5340         (gl_null_thread): New declaration.
5341         (gl_thread_self_pointer): New macro.
5342         * lib/glthread/thread.c (gl_null_thread): New constant.
5343         * tests/test-lock.c: Use gl_thread_self_pointer instead of
5344         gl_thread_self.
5345         * tests/test-tls.c: Likewise.
5346         Suggested by Paul Eggert. Reported by Eric Blake.
5347
5348 2011-06-09  Bruno Haible  <bruno@clisp.org>
5349
5350         thread: Fix confusion between NULL and 0.
5351         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
5352         Reported by Paul Eggert.
5353
5354 2011-06-09  Bruno Haible  <bruno@clisp.org>
5355
5356         spawn-pipe tests: Avoid test failure on HP-UX 11.
5357         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
5358         is closed.
5359
5360 2011-06-09  Bruno Haible  <bruno@clisp.org>
5361
5362         acl tests: Fix compilation error on HP-UX 11.
5363         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
5364
5365 2011-06-09  Bruno Haible  <bruno@clisp.org>
5366
5367         rmdir: Avoid test failure on HP-UX 10.20.
5368         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
5369         EEXIST.
5370
5371 2011-06-08  Eric Blake  <eblake@redhat.com>
5372
5373         perror: fix test on mingw
5374         * modules/perror-tests (Depends-on): Add dup2.
5375
5376         strerror_r-posix: fix on MacOS
5377         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
5378         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
5379         logic bug.
5380         * lib/strerror_r.c (strerror_r): Fix the bug.
5381         * lib/strerror.c (strerror): Likewise.
5382         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
5383         problem.
5384         * doc/posix-functions/strerror.texi (strerror): Likewise.
5385         * doc/posix-functions/perror.texi (perror): Likewise.
5386         * tests/test-strerror.c (main): Enhance test.
5387         * tests/test-strerror_r.c (main): Likewise.
5388
5389 2011-06-08  Bruno Haible  <bruno@clisp.org>
5390
5391         gnulib-tool: Better isolation between different gnulib-tool invocations.
5392         * gnulib-tool: New option --witness-c-macro.
5393         (witness_c_macro): New variable.
5394         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
5395         AM_CPPFLAGS define it as a C macro.
5396         (func_emit_tests_Makefile_am): Likewise.
5397         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
5398         read it from there.
5399         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
5400         m4_define, not AC_DEFUN.
5401         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
5402         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
5403         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
5404         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
5405         s|...|...|, to substitute the values of the GNULIB_* module indicator
5406         variables.
5407         * modules/dirent (Makefile.am): Likewise.
5408         * modules/fcntl-h (Makefile.am): Likewise.
5409         * modules/iconv-h (Makefile.am): Likewise.
5410         * modules/langinfo (Makefile.am): Likewise.
5411         * modules/locale (Makefile.am): Likewise.
5412         * modules/math (Makefile.am): Likewise.
5413         * modules/netdb (Makefile.am): Likewise.
5414         * modules/poll-h (Makefile.am): Likewise.
5415         * modules/pty (Makefile.am): Likewise.
5416         * modules/search (Makefile.am): Likewise.
5417         * modules/signal (Makefile.am): Likewise.
5418         * modules/spawn (Makefile.am): Likewise.
5419         * modules/stdio (Makefile.am): Likewise.
5420         * modules/stdlib (Makefile.am): Likewise.
5421         * modules/string (Makefile.am): Likewise.
5422         * modules/sys_ioctl (Makefile.am): Likewise.
5423         * modules/sys_select (Makefile.am): Likewise.
5424         * modules/sys_socket (Makefile.am): Likewise.
5425         * modules/sys_stat (Makefile.am): Likewise.
5426         * modules/sys_times (Makefile.am): Likewise.
5427         * modules/sys_utsname (Makefile.am): Likewise.
5428         * modules/sys_wait (Makefile.am): Likewise.
5429         * modules/termios (Makefile.am): Likewise.
5430         * modules/time (Makefile.am): Likewise.
5431         * modules/unistd (Makefile.am): Likewise.
5432         * modules/wchar (Makefile.am): Likewise.
5433
5434 2011-06-08  Eric Blake  <eblake@redhat.com>
5435
5436         strerror: simplify replacement
5437         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
5438         * modules/strerror (configure.ac): No prereqs needed here...
5439         * modules/strerror-override (configure.ac): ...but this needs it.
5440         (Files): Add file for needed prereq macro.
5441
5442 2011-06-08  Bruno Haible  <bruno@clisp.org>
5443
5444         strerror_r-posix: Tweaks.
5445         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
5446         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
5447         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
5448         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
5449         (gl_FUNC_STRERROR_R): ... to here.
5450         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
5451
5452 2011-06-07  Eric Blake  <eblake@redhat.com>
5453
5454         perror: document fixed bugs
5455         * doc/posix-functions/perror.texi (perror): Document recent
5456         patches.
5457
5458 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
5459
5460         stat-time: get_stat_birthtime failure is better-defined
5461         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
5462         return a timestamp whose tv_sec and tv_nsec values are both -1.
5463         Previously, the spec said only that the tv_nsec value was negative.
5464         This upward-compatible change simplifies GNU tar a bit.
5465
5466 2011-06-07  Eric Blake  <eblake@redhat.com>
5467
5468         strerror_r-posix: work around cygwin 1.7.9
5469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
5470         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
5471         bug without replacing strerror_r.
5472         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
5473         strerror_r is buggy, but without requiring strerror_r compilation.
5474         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
5475
5476         test-perror: relax test to ignore cygwin bug
5477         * tests/test-perror2.c (main): Relax test on requiring detection
5478         of stream errors, and use unbuffered stream.
5479         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
5480         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
5481         * doc/posix-functions/fputc.texi (fputc): Likewise.
5482         * doc/posix-functions/fputs.texi (fputs): Likewise.
5483         * doc/posix-functions/fputws.texi (fputws): Likewise.
5484         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
5485         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
5486         * doc/posix-functions/getopt.texi (getopt): Likewise.
5487         * doc/posix-functions/perror.texi (perror): Likewise.
5488         * doc/posix-functions/printf.texi (printf): Likewise.
5489         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
5490         * doc/posix-functions/psignal.texi (psignal): Likewise.
5491         * doc/posix-functions/putc.texi (putc): Likewise.
5492         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
5493         Likewise.
5494         * doc/posix-functions/putchar.texi (putchar): Likewise.
5495         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
5496         Likewise.
5497         * doc/posix-functions/puts.texi (puts): Likewise.
5498         * doc/posix-functions/putwc.texi (putwc): Likewise.
5499         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
5500         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
5501         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5502         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
5503         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
5504         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5505         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
5506         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
5507
5508 2011-05-22  Bruno Haible  <bruno@clisp.org>
5509
5510         strerror: Move AC_LIBOBJ invocations to module description.
5511         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
5512         gl_PREREQ_STRERROR invocations from here...
5513         * modules/strerror (configure.ac): ... to here.
5514
5515 2011-05-21  Bruno Haible  <bruno@clisp.org>
5516
5517         perror: Use common idiom.
5518         * modules/perror (configure.ac): Reorder statements.
5519
5520 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5521
5522         tests: fix usage message in 'mktempd_'
5523         * tests/init.sh (mktempd_): In the usage message, use literal
5524         'mktempd_', not '$ME' (which is even undefined), as the name of
5525         the subroutine.
5526
5527 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
5528
5529         tests init: new function 'fatal_', for hard errors
5530         Before this patch, the only way offered by tests/init.sh to
5531         properly signal a hard error was the `framework_failure_'
5532         function.  But the error message issued by that function,
5533         as its name would suggest, refers to a set-up failure in the
5534         testsuite, while hard errors can obviously also be due to
5535         other reasons.  The best way to fix this inconsistency is to
5536         introduce a new function with a more general error message.
5537         * tests/init.sh (fatal_): New function.
5538
5539 2011-06-06  Eric Blake  <eblake@redhat.com>
5540
5541         canonicalize-lgpl: use common idiom
5542         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
5543         over newer POSIX -Rf.
5544         Reported by Bruno Haible.
5545
5546         canonicalize-lgpl: work around AIX realpath bug
5547         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
5548         * doc/posix-functions/realpath.texi (realpath): Document it.
5549         Reported by Bruno Haible.
5550
5551         strerror: work around FreeBSD bug
5552         * lib/strerror.c (strerror): Special case 0.
5553         Reported by Bruno Haible.
5554
5555         strerror-override: avoid bloating errno module
5556         * modules/errno (Files, configure.ac): Move replacement strings...
5557         * modules/strerror-override: ...to new module.
5558         * modules/strerror (Depends-on): Add strerror-override.
5559         * modules/strerror_r-posix (Depends-on): Likewise.
5560         * MODULES.html.sh: Document new module.
5561         Reported by Bruno Haible.
5562
5563 2011-06-06  Bruno Haible  <bruno@clisp.org>
5564
5565         spawn-pipe tests: Rename program.
5566         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
5567         * tests/test-spawn-pipe-child.c: Update comment.
5568         * tests/test-spawn-pipe.sh: Update.
5569         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
5570
5571         spawn-pipe tests: Link the child program only against libc.
5572         * tests/test-spawn-pipe-child.c: New file, extracted from
5573         tests/test-spawn-pipe.c.
5574         (main): Expect only one argument.
5575         (is_open): New function, copied from tests/test-pipe.c.
5576         * tests/test-spawn-pipe.c: Don't include <errno.h>.
5577         (child_main): Remove function.
5578         (test_pipe): Pass only one argument to the child program.
5579         (main): Remove child process code. Expect the child program's name as
5580         first argument.
5581         * tests/test-spawn-pipe.sh: Pass the child program's name as first
5582         argument.
5583         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
5584         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
5585         test-spawn-pipe-child against no libraries.
5586
5587 2011-06-06  Bruno Haible  <bruno@clisp.org>
5588
5589         careadlinkat: Avoid mismatch between ssize_t and int.
5590         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
5591         * lib/careadlinkat.c (careadlinkatcwd): Define always.
5592
5593 2011-06-06  Jim Meyering  <meyering@redhat.com>
5594
5595         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
5596         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
5597         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
5598
5599 2011-06-05  Bruno Haible  <bruno@clisp.org>
5600
5601         ansi-c++-opt: Interoperability with libtool.
5602         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
5603         set the variable to "no", not to ":".
5604         * NEWS: Mention the change.
5605
5606 2011-06-05  Bruno Haible  <bruno@clisp.org>
5607
5608         acl: Fix test failure on AIX 7.
5609         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
5610         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
5611
5612 2011-06-05  Bruno Haible  <bruno@clisp.org>
5613
5614         pipe-filter-ii: Fix test failure on AIX and IRIX.
5615         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
5616         with EAGAIN, retry with a smaller buffer size.
5617
5618 2011-06-05  Bruno Haible  <bruno@clisp.org>
5619
5620         localename: Fix link dependencies.
5621         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
5622         * modules/localename-tests (Makefile.am): Link test-localename with
5623         $(LIBTHREAD).
5624
5625 2011-06-05  Bruno Haible  <bruno@clisp.org>
5626
5627         error: Avoid gcc warning.
5628         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
5629
5630 2011-06-05  Bruno Haible  <bruno@clisp.org>
5631
5632         unsetenv: Avoid gcc warning.
5633         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
5634
5635 2011-06-05  Bruno Haible  <bruno@clisp.org>
5636
5637         setenv: Avoid gcc warning.
5638         * lib/setenv.c (setenv): Provide declaration if system lacks it.
5639
5640 2011-06-05  Bruno Haible  <bruno@clisp.org>
5641
5642         sys_select: Ensure memset is declared also on AIX 7.
5643         * lib/sys_select.in.h: Include <string.h> also on AIX.
5644         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
5645         self-contained also on AIX 7.1.
5646
5647 2011-06-04  Jim Meyering  <meyering@redhat.com>
5648
5649         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
5650         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
5651         function name, "error".
5652         (_gl_translatable_diag_func_re): New configurable variable.
5653
5654 2011-06-04  Bruno Haible  <bruno@clisp.org>
5655
5656         getopt: Avoid gcc warning.
5657         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
5658
5659 2011-06-04  Bruno Haible  <bruno@clisp.org>
5660
5661         strerror_r: Fix comments.
5662         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
5663         commit.
5664
5665 2011-06-04  Bruno Haible  <bruno@clisp.org>
5666
5667         perror: Fix compilation error.
5668         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
5669         Undefine fprintf, not sprintf.
5670         * modules/perror (Depends-on): Remove intprops, verify.
5671
5672 2011-06-04  Bruno Haible  <bruno@clisp.org>
5673
5674         setlocale: Enable replacement on Cygwin 1.5.
5675         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
5676         Cygwin 1.5.x.
5677         * doc/posix-functions/setlocale.texi: Mention that the problem with the
5678         LC_CTYPE category also exists on Cygwin 1.5.x.
5679
5680 2011-06-04  Bruno Haible  <bruno@clisp.org>
5681
5682         strerror-override: Don't disable symbol renamings.
5683         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
5684         * lib/strerror-override.c: Include config.h.
5685         (strerror_override): Don't undefine.
5686
5687 2011-06-03  Bruno Haible  <bruno@clisp.org>
5688
5689         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
5690         * lib/localename.h: Update copyright header.
5691         * lib/localename.c: Likewise.
5692         * lib/relocatable.h: Likewise.
5693         * lib/relocatable.c: Likewise.
5694
5695 2011-06-02  Bruno Haible  <bruno@clisp.org>
5696
5697         doc: Fix a module name.
5698         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
5699
5700 2011-06-02  Bruno Haible  <bruno@clisp.org>
5701
5702         pipe2: Remove dependency on 'nonblocking' module.
5703         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
5704         O_NONBLOCK is defined by gnulib.
5705         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
5706         is zero.
5707         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
5708         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
5709         defined by gnulib.
5710         (get_nonblocking_flag): New function.
5711         (main): Test O_NONBLOCK flag only if it is nonzero.
5712         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
5713
5714 2011-06-03  Jim Meyering  <meyering@redhat.com>
5715
5716         maint: three new prohibit-header-without-use rules
5717         Prohibit use of cloexec.h, posixver.h, same.h without use.
5718         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
5719         (sc_prohibit_posixver_without_use): Likewise.
5720         (sc_prohibit_same_without_use): Likewise.
5721
5722 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
5723
5724         allocator: 'die' routine is now given requested size
5725         * lib/allocator.h (struct allocator.die): New size arg.
5726         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
5727         If the actual problem is an ssize_t limitation, not a size_t or
5728         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
5729
5730 2011-06-01  Eric Blake  <eblake@redhat.com>
5731
5732         strerror: drop strerror_r dependency
5733         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
5734         * lib/strerror-override.c (strerror_override): ...to new file.
5735         * lib/strerror-override.h: Add prototype.
5736         * lib/strerror-impl.h: Delete.
5737         * lib/strerror.c (strerror): New implementation.
5738         * modules/errno (Files): Add new files.
5739         (configure.ac): Compile new file as appropriate.
5740         * modules/strerror (Files): Drop unused file.
5741         (Depends-on): Drop strerror_r-posix.
5742         * MODULES.html.sh: Document strerror_r-posix.
5743         Requested by Sam Steingold.
5744
5745         perror: call strerror_r directly
5746         * modules/perror (Files): Drop strerror-impl.h.
5747         * lib/perror.c (perror): Use our own stack buffer, rather than
5748         calling a wrapper that uses static storage.
5749         * doc/posix-functions/perror.texi (perror): Document a limitation
5750         of our replacement.
5751
5752         strerror_r: fix includes for FreeBSD
5753         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
5754         since we use abort on some platforms.
5755         Reported by Matthias Bolte.
5756
5757 2011-05-31  Bruno Haible  <bruno@clisp.org>
5758
5759         Fix link errors in tests: openat-die uses gettext-h.
5760         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
5761         against $(LIBINTL).
5762         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
5763         against $(LIBINTL).
5764         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
5765         $(LIBINTL).
5766         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
5767         against $(LIBINTL).
5768         * modules/linkat-tests (Makefile.am): Link test-linkat against
5769         $(LIBINTL).
5770         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
5771         $(LIBINTL).
5772         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
5773         against $(LIBINTL).
5774         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
5775         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
5776         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
5777         $(LIBINTL).
5778         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
5779         $(LIBINTL).
5780         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
5781         $(LIBINTL).
5782         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5783
5784 2011-05-31  Bruno Haible  <bruno@clisp.org>
5785
5786         Fix link errors in tests: wait-process uses gettext-h.
5787         * modules/nonblocking-pipe-tests (Makefile.am): Set
5788         test_nonblocking_pipe_main_LDADD.
5789         * modules/nonblocking-socket-tests (Makefile.am): Link
5790         test-nonblocking-socket-main against $(LIBINTL).
5791         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5792
5793 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
5794
5795         assert-h: work around 'verify' incompatibility
5796         * lib/verify.h: Use @...@ directives, not ifdef.
5797         * modules/assert-h (assert.h): Implement the directives.
5798         (assert.h): Substitute the symbol-prefix more consistently.
5799
5800 2011-05-29  Jim Meyering  <meyering@redhat.com>
5801
5802         trim: remove three superfluous assignments
5803         * lib/trim.c (trim2): Remove three superfluous assignments
5804         and correct brace positioning.
5805
5806 2011-05-29  Bruno Haible  <bruno@clisp.org>
5807
5808         wctype-h: Avoid namespace pollution on Solaris 2.6.
5809         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
5810         identifiers.
5811         * doc/posix-headers/wctype.texi: Mention the problem.
5812         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5813
5814 2011-05-28  Jim Meyering  <meyering@redhat.com>
5815
5816         parse-datetime.y: accommodate -Wstrict-overflow
5817         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
5818         placate -Wstrict-overflow.
5819
5820         trim: avoid a warning from -O2 -Wstrict-overflow
5821         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
5822
5823 2011-05-29  Bruno Haible  <bruno@clisp.org>
5824
5825         gnulib-tool: Fix bug in yesterday's commit.
5826         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
5827         twice.
5828
5829 2011-05-29  Bruno Haible  <bruno@clisp.org>
5830
5831         Allow multiple gnulib generated include files to be combined.
5832         * gnulib-tool (func_compute_include_guard_prefix): New function.
5833         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
5834         ${gl_include_guard_prefix} references.
5835         (func_import, func_create_testdir): Invoke
5836         func_compute_include_guard_prefix.
5837         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
5838         * lib/ctype.in.h: Likewise.
5839         * lib/dirent.in.h: Likewise.
5840         * lib/errno.in.h: Likewise.
5841         * lib/fcntl.in.h: Likewise.
5842         * lib/float.in.h: Likewise.
5843         * lib/getopt.in.h: Likewise.
5844         * lib/iconv.in.h: Likewise.
5845         * lib/langinfo.in.h: Likewise.
5846         * lib/locale.in.h: Likewise.
5847         * lib/math.in.h: Likewise.
5848         * lib/netdb.in.h: Likewise.
5849         * lib/netinet_in.in.h: Likewise.
5850         * lib/poll.in.h: Likewise.
5851         * lib/pthread.in.h: Likewise.
5852         * lib/pty.in.h: Likewise.
5853         * lib/sched.in.h: Likewise.
5854         * lib/se-selinux.in.h: Likewise.
5855         * lib/search.in.h: Likewise.
5856         * lib/signal.in.h: Likewise.
5857         * lib/spawn.in.h: Likewise.
5858         * lib/stdarg.in.h: Likewise.
5859         * lib/stddef.in.h: Likewise.
5860         * lib/stdint.in.h: Likewise.
5861         * lib/stdio.in.h: Likewise.
5862         * lib/stdlib.in.h: Likewise.
5863         * lib/string.in.h: Likewise.
5864         * lib/strings.in.h: Likewise.
5865         * lib/sys_file.in.h: Likewise.
5866         * lib/sys_ioctl.in.h: Likewise.
5867         * lib/sys_select.in.h: Likewise.
5868         * lib/sys_socket.in.h: Likewise.
5869         * lib/sys_stat.in.h: Likewise.
5870         * lib/sys_time.in.h: Likewise.
5871         * lib/sys_times.in.h: Likewise.
5872         * lib/sys_uio.in.h: Likewise.
5873         * lib/sys_utsname.in.h: Likewise.
5874         * lib/sys_wait.in.h: Likewise.
5875         * lib/sysexits.in.h: Likewise.
5876         * lib/termios.in.h: Likewise.
5877         * lib/time.in.h: Likewise.
5878         * lib/unistd.in.h: Likewise.
5879         * lib/wchar.in.h: Likewise.
5880         * lib/wctype.in.h: Likewise.
5881         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
5882         * modules/ctype (Makefile.am): Likewise.
5883         * modules/dirent (Makefile.am): Likewise.
5884         * modules/errno (Makefile.am): Likewise.
5885         * modules/fcntl-h (Makefile.am): Likewise.
5886         * modules/float (Makefile.am): Likewise.
5887         * modules/getopt-posix (Makefile.am): Likewise.
5888         * modules/iconv-h (Makefile.am): Likewise.
5889         * modules/langinfo (Makefile.am): Likewise.
5890         * modules/locale (Makefile.am): Likewise.
5891         * modules/math (Makefile.am): Likewise.
5892         * modules/netdb (Makefile.am): Likewise.
5893         * modules/netinet_in (Makefile.am): Likewise.
5894         * modules/poll-h (Makefile.am): Likewise.
5895         * modules/pthread (Makefile.am): Likewise.
5896         * modules/pty (Makefile.am): Likewise.
5897         * modules/sched (Makefile.am): Likewise.
5898         * modules/search (Makefile.am): Likewise.
5899         * modules/selinux-h (Makefile.am): Likewise.
5900         * modules/signal (Makefile.am): Likewise.
5901         * modules/spawn (Makefile.am): Likewise.
5902         * modules/stdarg (Makefile.am): Likewise.
5903         * modules/stddef (Makefile.am): Likewise.
5904         * modules/stdint (Makefile.am): Likewise.
5905         * modules/stdio (Makefile.am): Likewise.
5906         * modules/stdlib (Makefile.am): Likewise.
5907         * modules/string (Makefile.am): Likewise.
5908         * modules/strings (Makefile.am): Likewise.
5909         * modules/sys_file (Makefile.am): Likewise.
5910         * modules/sys_ioctl (Makefile.am): Likewise.
5911         * modules/sys_select (Makefile.am): Likewise.
5912         * modules/sys_socket (Makefile.am): Likewise.
5913         * modules/sys_stat (Makefile.am): Likewise.
5914         * modules/sys_time (Makefile.am): Likewise.
5915         * modules/sys_times (Makefile.am): Likewise.
5916         * modules/sys_uio (Makefile.am): Likewise.
5917         * modules/sys_utsname (Makefile.am): Likewise.
5918         * modules/sys_wait (Makefile.am): Likewise.
5919         * modules/sysexits (Makefile.am): Likewise.
5920         * modules/termios (Makefile.am): Likewise.
5921         * modules/time (Makefile.am): Likewise.
5922         * modules/unistd (Makefile.am): Likewise.
5923         * modules/wchar (Makefile.am): Likewise.
5924         * modules/wctype-h (Makefile.am): Likewise.
5925         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
5926
5927 2011-05-29  Bruno Haible  <bruno@clisp.org>
5928
5929         assert-h: Allow multiple gnulib generated replacements to coexist.
5930         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
5931
5932 2011-05-29  Bruno Haible  <bruno@clisp.org>
5933
5934         argp: Allow coexistence with strerror_r-posix module.
5935         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
5936         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
5937         by gnulib's <string.h> replacement), assume it has the POSIX signature,
5938         not the glibc signature.
5939
5940 2011-05-28  Bruno Haible  <bruno@clisp.org>
5941
5942         gnulib-tool: Alternative structure of testdirs, similar to --import.
5943         * gnulib-tool: New option --single-configure.
5944         (func_usage): Document it.
5945         (single_configure): New variable.
5946         (func_modules_transitive_closure_separately,
5947         func_modules_transitive_closure_separately,
5948         func_determine_use_libtests, func_modules_add_dummy_separately,
5949         func_modules_to_filelist_separately): New functions, extracted from
5950         func_import.
5951         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
5952         (func_import): Use the new functions.
5953         (func_create_testdir): Set final_modules. Handle $single_configure =
5954         true case.
5955
5956 2011-05-28  Bruno Haible  <bruno@clisp.org>
5957
5958         getloadavg: Remove an unreliable safety check.
5959         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
5960         getloadavg.c is in place.
5961         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
5962         Reported by Sam Steingold <sds@gnu.org>.
5963
5964 2011-05-28  Bruno Haible  <bruno@clisp.org>
5965
5966         doc: Cleanup yet another file produced by texinfo.tex.
5967         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
5968
5969 2011-05-28  Bruno Haible  <bruno@clisp.org>
5970
5971         Finish the conditional dependencies mechanism.
5972         * gnulib-tool: New option --no-conditional-dependencies.
5973         (func_usage): Document it. Don't mark --conditional-dependencies as
5974         experimental.
5975         (cond_dependencies): The possible values can now be true, false, empty.
5976         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
5977         (func_import): Store setting in gnulib-cache.m4 and read it from there.
5978         * doc/gnulib-tool.texi (Conditional dependencies): New section.
5979
5980 2011-05-28  Bruno Haible  <bruno@clisp.org>
5981
5982         doc: Use a recent texinfo.tex.
5983         * doc/Makefile (tex_opts): New variable.
5984         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
5985
5986 2011-05-28  Jim Meyering  <meyering@redhat.com>
5987
5988         intprops.h: adjust comment to match code change
5989         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
5990         only once, it *may* have side effects.  Also fix an unrelated typo.
5991         (_GL_INT_SIGNED): Likewise.
5992
5993 2011-05-26  Simon Josefsson  <simon@josefsson.org>
5994
5995         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
5996
5997 2011-05-26  Bruno Haible  <bruno@clisp.org>
5998
5999         mbsrchr: Avoid collision with system function on Interix.
6000         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
6001         Reported by Markus Duft <mduft@gentoo.org>.
6002
6003 2011-05-15  James Youngman  <jay@gnu.org>
6004
6005         getopt: for ambiguous options, enumerate the possibilities.
6006         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
6007         the ambiguous options when an ambiguous prefix is given. This was
6008         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
6009         glibc change was
6010         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
6011
6012 2011-05-25  Eric Blake  <eblake@redhat.com>
6013
6014         getcwd: work around mingw bug
6015         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
6016         * doc/posix-functions/getcwd.texi (getcwd): Document it.
6017         Reported by Matthias Bolte.
6018
6019 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
6020
6021         test-intprops: disable -Wtype-limits diagnostics
6022         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
6023         diagnostics.  Otherwise, the integer overflow macros generate many
6024         diagnostics.  Reported by Jim Meyering in
6025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6026
6027         intprops: shorten, to pacify gcc -Woverlength-strings
6028         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
6029         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
6030         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
6031         likely to run afoul of C compiler limits for string constant lengths.
6032         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
6033
6034 2011-05-24  Eric Blake  <eblake@redhat.com>
6035
6036         docs: document recently fixed glibc printf bug
6037         * doc/posix-functions/fprintf.texi (fprintf): Document it.
6038         * doc/posix-functions/printf.texi (printf): Likewise.
6039         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
6040         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6041
6042         closein-tests: convert to init.sh
6043         * modules/closein-tests (Files): Add init.sh
6044         * tests/test-closein.sh Use it.
6045
6046         yesno-tests: convert to init.sh
6047         * modules/yesno-tests (Files): Add init.sh.
6048         * tests/test-yesno.sh: Use it.
6049
6050         atexit-tests: ensure reliable exit status
6051         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
6052         Reported by Bruno Haible.
6053
6054 2011-05-24  Bruno Haible  <bruno@clisp.org>
6055
6056         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
6057         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
6058         gl_PREREQ_STRERROR_R invocations from here...
6059         * modules/strerror_r-posix (configure.ac): ... to here.
6060
6061 2011-05-24  Eric Blake  <eblake@redhat.com>
6062
6063         strerror_r: fix missing header
6064         * lib/strerror_r.c: Avoid compiler warning about snprintf.
6065
6066         strerror_r: fix AIX test failures
6067         * lib/strerror_r.c (strerror_r): Convert silent truncation to
6068         ERANGE failure.
6069
6070         strerror_r: fix Solaris test failures
6071         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
6072         failures.
6073         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6074
6075         strerror_r: enforce POSIX recommendations
6076         * lib/strerror_r.c (safe_copy): New helper method.
6077         (strerror_r): Guarantee a non-empty string.
6078         * tests/test-strerror_r.c (main): Enhance tests to incorporate
6079         recent POSIX rulings and to match our strerror guarantees.
6080         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
6081
6082 2011-05-24  Jim Meyering  <meyering@redhat.com>
6083
6084         test-perror2.c: avoid warning about unused variable
6085         * tests/test-perror2.c (main): Remove declaration of unused "fp".
6086
6087 2011-05-24  Eric Blake  <eblake@redhat.com>
6088
6089         perror: avoid spurious test failure on HP-UX
6090         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
6091
6092         tests: fix logic bug in init.sh
6093         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
6094         shell.
6095
6096 2011-05-24  Jim Meyering  <meyering@redhat.com>
6097
6098         utimensat: do not reference an out-of-scope buffer
6099         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
6100         declared in an inner scope, yet "times" would be dereferenced outside
6101         the scope in which "ts" was valid.
6102         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
6103         of ts[2] "out/up", so that the use of aliased "times" (via
6104         "times = ts;") does not end up referencing an out-of-scope "ts"
6105
6106         opendir-safer.c: don't clobber errno; don't close negative FD
6107         * lib/opendir-safer.c (opendir_safer):
6108         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
6109         file descriptor, and more importantly, don't clobber the
6110         offending errno value with EINVAL.  Before, upon failure
6111         of dup_safer, we would pass the negative file descriptor to
6112         fdopendir, which would clobber errno.
6113
6114 2011-05-23  Bruno Haible  <bruno@clisp.org>
6115
6116         idcache: Fix module description.
6117         * modules/idcache (Include): Set to "idcache.h".
6118
6119 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
6120
6121         gnulib-tool: fix portability problem with MacOS sed
6122         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
6123         before the "}".  Problem reported by Leo in
6124         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
6125         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
6126         sed_extract_condition1, sed_extract_condition2.
6127
6128 2011-05-23  Bruno Haible  <bruno@clisp.org>
6129
6130         hash: Simplify autoconf macro.
6131         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
6132
6133 2011-05-23  Bruno Haible  <bruno@clisp.org>
6134
6135         getugroups: Fix module description.
6136         * modules/getugroups (Include): Set to "getugroups.h".
6137
6138 2011-05-23  Bruno Haible  <bruno@clisp.org>
6139
6140         linkat: Simplify autoconf macro.
6141         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
6142
6143 2011-05-23  Bruno Haible  <bruno@clisp.org>
6144             Eric Blake  <eblake@redhat.com>
6145
6146         linkat, renameat: Update dependencies.
6147         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
6148         * modules/linkat (Depends-on): Likewise. Remove also readlink,
6149         symlinkat.
6150
6151 2011-05-23  Jim Meyering  <meyering@redhat.com>
6152
6153         maint.mk: more tight_scope improvements
6154         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
6155         (_gl_TS_headers): Define only in if-0'd block.
6156         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
6157         sometimes we must *not* use it.  Adjust uses accordingly.
6158         (sc_tight_scope): Use much simpler grep-based test to determine
6159         whether we skip this rule.
6160
6161         maint.mk: generalize/improve the tight-scope rule
6162         * top/maint.mk: Emit a warning when the test is skipped.
6163         (_gl_TS_dir): Add $(srcdir)/ prefix.
6164         (_gl_TS_function_match): Simplify, rather than trying
6165         to enumerate common types.  Otherwise, it would fail to match an
6166         "extern unsigned char const *" declaration in idutils.
6167         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
6168         a way to support use of that type of macro.
6169         (_gl_TS_var_match): Simplify regexp.
6170         (_gl_TS_obj_files): New configurable variable.
6171         (_gl_TS_headers): Likewise.
6172
6173 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
6174
6175         verify: fix bug when gnulib <assert.h> is also included
6176         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
6177         is defined, not if _GL_STATIC_ASSERT_H is not defined.
6178         Perhaps there's a better way, but this fixes the immediate problem.
6179         Problem reported by Bruno Haible in
6180         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
6181
6182 2011-05-22  Bruno Haible  <bruno@clisp.org>
6183
6184         xgetcwd: Simplify autoconf macro.
6185         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
6186
6187 2011-05-22  Bruno Haible  <bruno@clisp.org>
6188
6189         New module 'mktime-internal'.
6190         * modules/mktime-internal: New file.
6191         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
6192         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
6193         mktime_internal as a C macro if libc has __mktime_internal.
6194         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
6195         conditions.
6196         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
6197
6198 2011-05-22  Bruno Haible  <bruno@clisp.org>
6199
6200         timegm: Correct mktime replacement statements.
6201         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
6202         defining mktime as a C macro. This completes a 2009-07-28 commit.
6203
6204 2011-05-22  Bruno Haible  <bruno@clisp.org>
6205
6206         timegm: Simplify autoconf macro.
6207         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
6208
6209 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
6210
6211         clock-time: change to LGPLv2+.
6212         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
6213         BSD-like but we have no mark for that; this is good enough for now.
6214
6215 2011-05-21  Bruno Haible  <bruno@clisp.org>
6216
6217         strerror_r: Fix comments.
6218         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
6219
6220 2011-05-21  Bruno Haible  <bruno@clisp.org>
6221
6222         relocatable-prog-wrapper: Fix possible link error.
6223         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
6224         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
6225         (gl_FUNC_SETENV): ... to here.
6226         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
6227         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
6228
6229 2011-05-21  Bruno Haible  <bruno@clisp.org>
6230
6231         relocatable-prog-wrapper: Assume strerror() exists.
6232         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
6233         m4/strerror.m4.
6234         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
6235         * lib/relocwrapper.c: Remove mention of strerror module.
6236         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
6237         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
6238         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
6239         C macro.
6240
6241 2011-05-21  Bruno Haible  <bruno@clisp.org>
6242
6243         select: Simplify replacement idiom.
6244         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
6245         Win32 platforms.
6246         * lib/sys_select.in.h (select): Simplify accordingly.
6247         * modules/select (Depends-on): Likewise.
6248
6249 2011-05-21  Bruno Haible  <bruno@clisp.org>
6250
6251         mkdir-p: Simplify autoconf macro.
6252         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
6253         gl_FUNC_LCHOWN.
6254
6255 2011-05-21  Eric Blake  <eblake@redhat.com>
6256
6257         strerror_r: avoid clobbering strerror on cygwin
6258         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
6259         fall back instead to sys_errlist.
6260         * modules/strerror (configure.ac): Add witness.
6261         * tests/test-strerror_r.c (main): Enhance test.
6262         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6263         * tests/test-perror2.c (main): Free memory before exit.
6264
6265 2011-05-21  Bruno Haible  <bruno@clisp.org>
6266
6267         mkdtemp: Use gnulib naming conventions.
6268         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
6269         * modules/mkdtemp (configure.ac): Update.
6270
6271 2011-05-20  Eric Blake  <eblake@redhat.com>
6272
6273         strerror_r: avoid corrupting errno on Solaris
6274         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
6275         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
6276
6277         strerror_r: avoid compiler warning
6278         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
6279
6280         strerror_r: simplify AIX code
6281         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
6282
6283         test-perror: avoid spurious failure on FreeBSD
6284         * modules/perror-tests (Depends-on): Add strerror, now that
6285         strerror_r no longer pulls it in.
6286
6287 2011-05-20  Bruno Haible  <bruno@clisp.org>
6288
6289         strerror_r-posix: Remove unused dependencies.
6290         * modules/strerror_r-posix (Depends-on): Remove strerror.
6291         Reported by Eric Blake.
6292
6293 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
6294
6295         intprops: remove assumption about A|B representation
6296         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
6297         is a valid integer if both A and B are.  Although this is true for
6298         all known practical hosts, the C standard doesn't guarantee it,
6299         and the code need not assume it.  Also, this change may work around
6300         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
6301         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
6302
6303 2011-05-20  Eric Blake  <eblake@redhat.com>
6304
6305         perror: work around FreeBSD bug
6306         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
6307         is broken.  Move AC_LIBOBJ...
6308         * modules/perror (configure.ac): Here.
6309         * doc/posix-functions/perror.texi (perror): Document this.
6310         * tests/test-perror2.c (main): Enhance test.
6311
6312         test-perror: check for strerror interactions
6313         * tests/macros.h (STREQ): Add macro.
6314         * modules/perror-tests (Files): Add second test.
6315         * tests/test-perror2.c (main): New file.
6316         * doc/posix-functions/perror.texi (perror): Document glibc bug.
6317
6318         test-perror: rewrite to use init script
6319         * modules/perror-tests (Files): Add init.sh.
6320         * tests/test-perror.sh: Use temporary directory.
6321
6322 2011-05-20  Jim Meyering  <meyering@redhat.com>
6323
6324         maint: replace misused "a" with "an"
6325         * doc/intprops.texi: "a integer"
6326         * doc/regex.texi: "a explanation"
6327         * lib/alignof.h: "a object"
6328         * lib/argmatch.h: "a explanation"
6329         * lib/argp-help.c: "a option" and "a OPTION_DOC"
6330         * lib/stdint.in.h: "a integer"
6331         * lib/userspec.c: "a owner"
6332         * doc/gnulib.texi: Fix "a idea", and reword.
6333
6334 2011-05-19  Jim Meyering  <meyering@redhat.com>
6335
6336         maint: correct misuse of "a" and "an"
6337         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
6338         * lib/argp-help.c: "an docum...": s/an/a/
6339         * lib/argp-parse.c: "An vector": s/An/A/
6340         * lib/execute.c: "an native": s/an/a/
6341         * lib/spawn-pipe.c: Likewise.
6342         * lib/gc.h: "an Gc_rc": s/an/a/
6343         * lib/unigbrk.in.h: "an grapheme": s/an/a/
6344         * lib/fts.c: "an stat.st_dev": s/an/a/
6345
6346 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6347
6348         intprops-tests: work around HP-UX 11.23 cc bug with constants
6349         * tests/test-intprops.c (VERIFY): New macro.
6350         (main): Use it, instead of verify, to work around the compiler bug; see
6351         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6352
6353         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
6354         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
6355         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
6356         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
6357         (_GL_REMAINDER_OVERFLOW): Use it.
6358
6359         intprops-tests: revert unsigned part of previous change
6360         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
6361         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
6362         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
6363         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
6364
6365 2011-05-19  Bruno Haible  <bruno@clisp.org>
6366
6367         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
6368         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
6369         strerror_r() returned without filling the buffer.
6370         Reported by Eric Blake.
6371
6372 2011-05-19  Eric Blake  <eblake@redhat.com>
6373
6374         strerror_r: guarantee unchanged errno
6375         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
6376         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
6377         failure.
6378         * tests/test-strerror_r.c (main): Enhance test.
6379
6380 2011-05-19  Bruno Haible  <bruno@clisp.org>
6381
6382         strerror_r: Reorder #if blocks.
6383         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
6384         for consistency with the previous commit.
6385
6386 2011-05-19  Bruno Haible  <bruno@clisp.org>
6387
6388         perror: Avoid clobbering the strerror buffer when possible.
6389         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
6390         * lib/strerror.c: Include it.
6391         * modules/strerror (Files): Add lib/strerror-impl.h.
6392         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
6393         (my_strerror): New function, defined through lib/strerror-impl.h.
6394         (perror): Use it instead of strerror.
6395         * modules/perror (Files): Add lib/strerror-impl.h.
6396         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
6397
6398 2011-05-19  Eric Blake  <eblake@redhat.com>
6399
6400         strerror_r: fix on newer cygwin
6401         * lib/strerror_r.c (strerror_r): Cygwin now has
6402         __xpg_strerror_r, use it.
6403
6404 2011-05-19  Bruno Haible  <bruno@clisp.org>
6405
6406         strerror_r: Avoid clobbering the strerror buffer when possible.
6407         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
6408         (sys_nerr, sys_errlist): New declarations.
6409         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
6410         HP-UX, native Win32, IRIX, and 32-bit Solaris.
6411         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
6412
6413 2011-05-19  Bruno Haible  <bruno@clisp.org>
6414
6415         strerror_r: Fix test failure on mingw.
6416         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
6417         EXTEND_STRERROR_R.
6418         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
6419         macros from errno.in.h instead.
6420
6421 2011-05-19  Eric Blake  <eblake@redhat.com>
6422
6423         strerror: relax test for Solaris
6424         * tests/test-strerror.c (main): Permit Solaris behavior.
6425         * tests/test-strerror_r.c (main): Likewise.
6426
6427         strerror: enforce POSIX ruling on strerror(0)
6428         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
6429         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
6430         * lib/strerror_r.c (rpl_strerror_r): Work around it.
6431         * doc/posix-functions/strerror.texi (strerror): Document it.
6432         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
6433         * tests/test-strerror.c (main): Strengthen test.
6434         * tests/test-strerror_r.c (main): Likewise.
6435
6436 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
6437
6438         intprop-tests: port to older and more-pedantic compilers
6439         * modules/intprops-tests (Files): Add tests/macros.h.
6440         * tests/test-intprops.c: Include macros.h.
6441         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
6442         it's no longer documented to expand to an integer constant expression.
6443         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
6444         argument is floating point, as it's no longer documented to expand
6445         to an integer constant expression in that case.
6446         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
6447         compiler bugs reported by Bruno Haible.  See
6448         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6449         (U0, U1): New constants, to work around the same bugs.  Also,
6450         in tests, use e.g., "(unsigned int) 39" rather than "39u".
6451
6452         intprops: work around C compiler bugs
6453         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
6454         bug in Sun C 5.11 2010/08/13 and other compilers; see
6455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
6456
6457         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
6458         * doc/intprops.texi (Integer Type Determination): Fix
6459         documentation for TYPE_IS_INTEGER: it returns an constant
6460         expression, not an integer constant expression.  Fix doc for
6461         TYPE_SIGNED: it returns an integer constant expression only if its
6462         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
6463         hardly worth documented that way....)
6464
6465 2011-05-18  Bruno Haible  <bruno@clisp.org>
6466
6467         strerror_r: Avoid clobbering the strerror buffer when possible.
6468         * lib/strerror_r.c (strerror_r): Merge the three implementations.
6469         Handle gnulib defined errno values here. When strerror() returns NULL
6470         or an empty string, return EINVAL.
6471         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
6472         gnulib defined errno values here.
6473         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
6474
6475 2011-05-18  Eric Blake  <eblake@redhat.com>
6476
6477         fnmatch: avoid compiler warning
6478         * lib/fnmatch_loop.c (FCT): Use correct type.
6479         Reported by Matthias Bolte.
6480
6481 2011-05-13  Jim Meyering  <meyering@redhat.com>
6482
6483         maint.mk: three new prohibit_<HDR>_without_use rules
6484         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
6485         (sc_prohibit_stdio-safer_without_use): Likewise.
6486         (sc_prohibit_xfreopen_without_use): Likewise.
6487
6488 2011-05-17  Jim Meyering  <meyering@redhat.com>
6489
6490         announce-gen: fail if the NEWS delta is empty
6491         If there's nothing noteworthy in NEWS, then either you forgot
6492         or you shouldn't be releasing.
6493         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
6494
6495 2011-05-17  Pádraig Brady <P@draigBrady.com>
6496
6497         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
6498         reserved symbols starting with double underscore from the check.
6499
6500 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
6501
6502         intprops: add doc
6503         * doc/intprops.texi: New file, documenting intprops.
6504         * doc/gnulib.texi (Particular Modules): Include it.
6505
6506         verify: add doc to gnulib manual and fix example
6507         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
6508         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
6509         (Compile-time Assertions): Fix example so it can't overflow.
6510
6511 2011-05-17  Jim Meyering  <meyering@redhat.com>
6512
6513         warnings.m4: don't usurp save_CPPFLAGS variable name
6514         * m4/warnings.m4: Prefix local temporary variable name with gl_.
6515
6516         doc: fix typo
6517         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
6518
6519 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6520             Bruno Haible  <bruno@clisp.org>
6521
6522         doc: Tweak recent change.
6523         * README (Portability guidelines): Tweak new text.
6524         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
6525         Interix 6.1.
6526
6527 2011-05-16  Eric Blake  <eblake@redhat.com>
6528
6529         inttypes: avoid autoconf warning
6530         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
6531         * m4/stdint.m4 (gl_STDINT_H): Likewise.
6532
6533 2011-05-16  Sam Steingold <sds@gnu.org>
6534         and Eric Blake  <eblake@redhat.com>
6535
6536         vc-list-files: accept multiple directory operands
6537         * build-aux/vc-list-files: Iterate over all remaining operands.
6538
6539 2011-05-16  Bruno Haible  <bruno@clisp.org>
6540
6541         Fix confusion regarding deprecated modules.
6542         * modules/calloc (Status, Notice): Mark module as deprecated, not
6543         obsolete.
6544         * modules/fnmatch-posix (Status, Notice): Likewise.
6545         * modules/getdate (Status, Notice): Likewise.
6546         * modules/getopt (Status, Notice): Likewise.
6547         * modules/malloc (Status, Notice): Likewise.
6548         * modules/pipe (Status, Notice): Likewise.
6549         * modules/realloc (Status, Notice): Likewise.
6550         * modules/rename-dest-slash (Status, Notice): Likewise.
6551         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
6552         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
6553         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
6554         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
6555         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
6556
6557 2011-05-16  Bruno Haible  <bruno@clisp.org>
6558
6559         doc: List the target platforms.
6560         * doc/gnulib-intro.texi (Target Platforms): New section.
6561         * doc/gnulib.texi (Introduction): Update menu.
6562         * README (Portability guidelines): Refer to the new section. Update
6563         statement about oldest supported environment. Remove rationale why
6564         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
6565         unportable C89 function.
6566         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
6567         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
6568
6569 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
6570
6571         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
6572
6573 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
6574
6575         intprops-tests: new module
6576         * modules/intprops-tests, tests/test-intprops.c: New files.
6577
6578         intprops: add safe, portable integer overflow checking
6579         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
6580         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
6581         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
6582         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
6583         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
6584         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
6585         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
6586         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
6587         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
6588         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
6589         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
6590
6591 2011-05-12  James Youngman  <jay@gnu.org>
6592
6593         Add a test for glibc's Bugzilla bug #12378.
6594         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
6595         doesn't allow the literal matching of a lone "[" (which is
6596         required by POSIX).
6597         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
6598
6599 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
6600
6601         Sync glibc change fixing Bugzilla bug #12378.
6602         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
6603         beginning and fall back to matching as normal character if the
6604         string ends before the matching ']' is found.  This is what POSIX
6605         requires.
6606
6607 2011-05-13  Eric Blake  <eblake@redhat.com>
6608
6609         getcwd-lgpl: relax test for FreeBSD
6610         * doc/posix-functions/getcwd.texi (getcwd): Document portability
6611         issue.
6612         * tests/test-getcwd-lgpl.c (main): Relax test.
6613         Reported by Matthias Bolte.
6614
6615 2011-05-11  Eric Blake  <eblake@redhat.com>
6616
6617         test-fflush: silence compiler warning
6618         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
6619
6620 2011-05-11  Bruno Haible  <bruno@clisp.org>
6621
6622         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
6623         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
6624         * modules/canonicalize (Depends-on): Add 'nocrash'.
6625         * modules/canonicalize-lgpl (Depends-on): Likewise.
6626         * doc/posix-functions/realpath.texi: Update platforms list.
6627         Reported by Ryan Schmidt <ryandesign@macports.org>.
6628
6629 2011-05-11  Bruno Haible  <bruno@clisp.org>
6630
6631         group-member: Declare function in <unistd.h>.
6632         * lib/unistd.in.h (group_member): New declaration.
6633         * lib/group-member.h: Remove file.
6634         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
6635         * tests/test-unistd-c++.cc: Check signature of group_member.
6636         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
6637         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
6638         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
6639         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
6640         HAVE_GROUP_MEMBER.
6641         * modules/group-member (Files): Remove lib/group-member.h.
6642         (Depends-on): Add unistd. Specify conditions.
6643         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
6644         (Include): Change to <unistd.h>.
6645         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
6646         HAVE_GROUP_MEMBER.
6647         * NEWS: Mention the change.
6648         * lib/euidaccess.c: Don't include group-member.h.
6649
6650 2011-05-11  Bruno Haible  <bruno@clisp.org>
6651
6652         group-member: Document module.
6653         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
6654         module.
6655
6656 2011-05-11  Bruno Haible  <bruno@clisp.org>
6657
6658         fclose: Fix mistake earlier today.
6659         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
6660
6661 2011-05-11  Eric Blake  <eblake@redhat.com>
6662
6663         fclose: preserve fflush errors
6664         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
6665         Reported by Jim Meyering.
6666
6667         bootstrap: support a prereq of 'rpcgen -' on RHEL5
6668         * build-aux/bootstrap (check_versions): When no specific version
6669         is required, merely check that the app produces an exit status
6670         that indicates its existence.
6671
6672         maint.mk: drop redundant check
6673         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
6674         the same but better.
6675
6676 2011-05-11  Bruno Haible  <bruno@clisp.org>
6677
6678         fclose: Fix possible link error.
6679         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
6680         unregister_shadow_fd. Improve comments.
6681         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
6682         Eric Blake.
6683
6684 2011-05-11  Jim Meyering  <meyering@redhat.com>
6685
6686         maint.mk: improve "can not" detection and generalize rule name
6687         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
6688         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
6689         Use the same technique as in sc_prohibit_doubled_word, so that
6690         we recognize "can not" also when the words are separated by a newline.
6691         Suggested by Eric Blake.
6692         (perl_filename_lineno_text_): Define.  Factored out of...
6693         (prohibit_doubled_word_): ...here.  Use the new definition.
6694         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
6695         (prohibit_undesirable_word_seq_RE_): New overridable variable.
6696         (ignore_undesirable_word_sequence_RE_): New overridable variable.
6697
6698 2011-05-10  Eric Blake  <eblake@redhat.com>
6699
6700         fclose: avoid double close race when possible
6701         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
6702         all but WINDOWS_SOCKETS.
6703
6704 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
6705
6706         openat: correct new comment
6707         * lib/openat-proc.c (openat_proc_name): Correct the comment.
6708
6709 2011-05-10  Jim Meyering  <meyering@redhat.com>
6710
6711         openat: add comments
6712         * lib/openat-proc.c (openat_proc_name): Add comments,
6713         mostly from Eric Blake.
6714
6715 2011-05-09  Eric Blake  <eblake@redhat.com>
6716
6717         openat: reduce syscalls in first probe of /proc
6718         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
6719         be a directory.  Simplify the probe for .. bugs.
6720         * modules/openat (Depends-on): Drop same-inode.
6721         Reported by Bastien ROUCARIES.
6722
6723 2011-05-09  Jim Meyering  <meyering@redhat.com>
6724
6725         maint.mk: change semantics/name of tight_scope variables
6726         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
6727         Rename variables to align with semantics that make them more useful.
6728
6729         maint.mk: tweak new rule's name not to impinge
6730         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
6731         (sc_tight_scope): Use new rule name rather than $@-0.
6732
6733         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
6734         * top/maint.mk (sc_tight_scope): New rule.
6735         (sc_tight_scope-0): New rule, ifdef'd out.
6736         (_gl_TS_dir): Default.
6737         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
6738         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
6739
6740 2011-05-09  Simon Josefsson  <simon@josefsson.org>
6741
6742         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
6743         Haible <bruno@clisp.org>.
6744
6745 2011-05-08  Bruno Haible  <bruno@clisp.org>
6746
6747         Comments.
6748         * m4/isnanf.m4: Add comment.
6749         * m4/isnanl.m4: Likewise.
6750
6751 2011-05-08  Bruno Haible  <bruno@clisp.org>
6752
6753         glob: Remove obsolete macro.
6754         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
6755
6756 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
6757
6758         intprops: Sun C 5.11 supports __typeof__
6759         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
6760         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
6761         which is new.
6762         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
6763
6764         intprops: switch to usual gnulib indenting and naming
6765         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
6766         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
6767
6768         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
6769
6770 2011-05-08  Jim Meyering  <meyering@redhat.com>
6771
6772         maint.mk: suppress "Entering/Leaving directory" diag in announcement
6773         * top/maint.mk (release-prep): Use make's --no-print-directory
6774         option when generating the announcement.  This eliminates the
6775         pesky "make[2]: Entering/Leaving directory" diagnostics in the
6776         generated announcement template.
6777
6778 2011-05-08  Bruno Haible  <bruno@clisp.org>
6779
6780         tzset: Fix gettimeofday wrapper on Solaris 2.6.
6781         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
6782         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
6783
6784 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
6785
6786         ignore-value, verify: Omit include files from lib_SOURCES.
6787         * modules/ignore-value, modules/verify (Makefile.am):
6788         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
6789         that leads Automake to duplicate use of am__objects_... variables
6790         in Makefile.in.  See
6791         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
6792
6793 2011-05-07  Bruno Haible  <bruno@clisp.org>
6794
6795         fclose: Simplify autoconf macro.
6796         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
6797         defined.
6798
6799 2011-05-07  Bruno Haible  <bruno@clisp.org>
6800
6801         canonicalize-lgpl: Fix autoconf macro ordering bug.
6802         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
6803         gl_STDLIB_H_DEFAULTS.
6804
6805 2011-05-06  Eric Blake  <eblake@redhat.com>
6806
6807         maintainer-makefile: make sc_po_check easier to tune
6808         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
6809         to probe for strings, such as an alternate location for gnulib.
6810
6811         fclose: guarantee behavior on seekable stdin
6812         * modules/fclose (Depends-on): Add fflush.
6813         * doc/posix-functions/fclose.texi (fclose): Document this.
6814         * tests/test-fclose.c (main): Make test for this unconditional.
6815
6816 2011-05-06  Bruno Haible  <bruno@clisp.org>
6817
6818         fflush, fpurge: Relicense under LGPLv2+.
6819         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
6820         * modules/fpurge (License): Likewise.
6821         With permission from Eric Blake and Jim Meyering.
6822         Suggested by Eric Blake.
6823
6824 2011-05-06  Karl Berry  <karl@gnu.org>
6825
6826         * MODULES.html.sh (func_all_modules): remove exit.
6827
6828 2011-05-06  Jim Meyering  <meyering@redhat.com>
6829
6830         maint.mk: use info-gnu@ as the default only for a stable release
6831         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
6832         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
6833         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
6834         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
6835
6836 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
6837
6838         assert-h: new module, which supports C1X-style static_assert
6839         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
6840         * lib/verify.h: Revamp so that this can be copied into assert.h,
6841         while retaining the ability to use it standalone as before.
6842         Rename private identifiers so as not to encroach on the
6843         standard C namespace, since this is now used by assert.h.
6844         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
6845         the old verify_true.
6846         (_GL_VERIFY_TRUE): New macro, with much of the contents of
6847         the old verify_true.  Use _GL_VERIFY_TYPE.
6848         (_GL_VERIFY): New macro, with much of the contents of the old verify.
6849         (static_assert): New macro, if _GL_STATIC_ASSERT_H
6850         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
6851         defined when this file is copied into the replacement assert.h.
6852         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
6853         and _Static_assert is not built in.
6854         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
6855         defined, and use the new macros mentioned above.
6856         * doc/posix-headers/assert.texi: Document this.
6857
6858 2011-05-05  Bruno Haible  <bruno@clisp.org>
6859
6860         fclose, fflush: Respect rules for use of AC_LIBOBJ.
6861         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
6862         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
6863         gl_REPLACE_FCLOSE here.
6864         * modules/fflush (Depends-on): Remove fclose.
6865         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
6866         combination with module 'fclose'.
6867
6868 2011-05-05  Bruno Haible  <bruno@clisp.org>
6869
6870         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
6871         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
6872         gl_FUNC_FFLUSH.
6873         (gl_FUNC_FFLUSH): Use it.
6874         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
6875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
6876         gl_REPLACE_FSEEKO here.
6877
6878 2011-05-05  Bruno Haible  <bruno@clisp.org>
6879
6880         tzset: Relicense under LGPL.
6881         * modules/tzset (License): Change to LGPL.
6882         No agreement needed; it's a no-op.
6883
6884         strtoimax, strtoumax: Relicense under LGPL.
6885         * modules/strtoimax (License): Change to LGPL.
6886         * modules/strtoumax (License): Likewise.
6887         With permission from Jim Meyering, Paul Eggert:
6888         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
6889         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
6890
6891         getgroups: Relicense under LGPL.
6892         * modules/getgroups (License): Change to LGPL.
6893         With permission from Jim Meyering, Paul Eggert, Eric Blake:
6894         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6895         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6896         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6897
6898         nanosleep: Relicense under LGPL.
6899         * modules/nanosleep (License): Change to LGPL.
6900         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
6901         Haible:
6902         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
6903         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
6904         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6905         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6906
6907         futimens: Relicense under LGPL.
6908         * modules/futimens (License): Change to LGPL.
6909         With permission from Eric Blake:
6910         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6911
6912         fflush: Relicense under LGPL.
6913         * modules/fflush (License): Change to LGPL.
6914         With permission from Eric Blake, Bruno Haible, Jim Meyering:
6915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
6916         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
6917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
6918
6919         tmpfile: Relicense under LGPL.
6920         * modules/tmpfile (License): Change to LGPL.
6921         With permission from Ben Pfaff:
6922         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6923
6924         isfinite: Relicense under LGPL.
6925         * modules/isfinite (License): Change to LGPL.
6926         With permission from Ben Pfaff, Bruno Haible:
6927         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
6928         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
6929
6930         acosl..tanl: Relicense under LGPL.
6931         * modules/acosl (License): Change to LGPL.
6932         * modules/asinl (License): Likewise.
6933         * modules/atanl (License): Likewise.
6934         * modules/cosl (License): Likewise.
6935         * modules/expl (License): Likewise.
6936         * modules/logl (License): Likewise.
6937         * modules/sinl (License): Likewise.
6938         * modules/sqrtl (License): Likewise.
6939         * modules/tanl (License): Likewise.
6940         Source code originally from glibc and Paolo Bonzini. Agreements:
6941         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
6942         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
6943
6944 2011-05-05  Bruno Haible  <bruno@clisp.org>
6945
6946         signal: Define sighandler_t.
6947         * lib/signal.in.h (sighandler_t): New type.
6948         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
6949         whether sighandler_t is defined.
6950         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
6951         * modules/signal (Depends-on): Add extensions.
6952         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
6953         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
6954         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
6955
6956 2011-05-05  Eric Blake  <eblake@redhat.com>
6957
6958         maint: remove useless REPLACE_*_H macros
6959         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
6960         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
6961         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
6962         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
6963         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
6964         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
6965         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
6966         * m4/btowc.m4: Update callers.
6967         * m4/dirfd.m4: Likewise.
6968         * m4/duplocale.m4: Likewise.
6969         * m4/fchdir.m4: Likewise.
6970         * m4/fdopendir.m4: Likewise.
6971         * m4/inet_ntop.m4: Likewise.
6972         * m4/inet_pton.m4: Likewise.
6973         * m4/ioctl.m4: Likewise.
6974         * m4/mbrlen.m4: Likewise.
6975         * m4/mbrtowc.m4: Likewise.
6976         * m4/mbsinit.m4: Likewise.
6977         * m4/mbsnrtowcs.m4: Likewise.
6978         * m4/mbsrtowcs.m4: Likewise.
6979         * m4/poll.m4: Likewise.
6980         * m4/setlocale.m4: Likewise.
6981         * m4/wcrtomb.m4: Likewise.
6982         * m4/wcsnrtombs.m4: Likewise.
6983         * m4/wcsrtombs.m4: Likewise.
6984         * m4/wctob.m4: Likewise.
6985         * m4/wcwidth.m4: Likewise.
6986         * modules/posix_spawn: Likewise.
6987         * modules/posix_spawn_file_actions_addclose: Likewise.
6988         * modules/posix_spawn_file_actions_adddup2: Likewise.
6989         * modules/posix_spawn_file_actions_addopen: Likewise.
6990         * modules/posix_spawn_file_actions_destroy: Likewise.
6991         * modules/posix_spawn_file_actions_init: Likewise.
6992         * modules/posix_spawnattr_destroy: Likewise.
6993         * modules/posix_spawnattr_getflags: Likewise.
6994         * modules/posix_spawnattr_getpgroup: Likewise.
6995         * modules/posix_spawnattr_getschedparam: Likewise.
6996         * modules/posix_spawnattr_getschedpolicy: Likewise.
6997         * modules/posix_spawnattr_getsigdefault: Likewise.
6998         * modules/posix_spawnattr_getsigmask: Likewise.
6999         * modules/posix_spawnattr_init: Likewise.
7000         * modules/posix_spawnattr_setflags: Likewise.
7001         * modules/posix_spawnattr_setpgroup: Likewise.
7002         * modules/posix_spawnattr_setschedparam: Likewise.
7003         * modules/posix_spawnattr_setschedpolicy: Likewise.
7004         * modules/posix_spawnattr_setsigdefault: Likewise.
7005         * modules/posix_spawnattr_setsigmask: Likewise.
7006         * modules/posix_spawnp: Likewise.
7007
7008 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
7009
7010         Add option to do-release-commit-and-tag to specify branch.
7011         * build-aux/do-release-commit-and-tag: Add --branch.
7012
7013 2011-05-03  Bruno Haible  <bruno@clisp.org>
7014
7015         Avoid unnecessary compilation units, through conditional dependencies.
7016         * modules/accept (Depends-on): Add conditions to the dependencies.
7017         * modules/acosl (Depends-on): Likewise.
7018         * modules/argz (Depends-on): Likewise.
7019         * modules/asinl (Depends-on): Likewise.
7020         * modules/atanl (Depends-on): Likewise.
7021         * modules/atoll (Depends-on): Likewise.
7022         * modules/bind (Depends-on): Likewise.
7023         * modules/btowc (Depends-on): Likewise.
7024         * modules/canonicalize-lgpl (Depends-on): Likewise.
7025         * modules/ceil (Depends-on): Likewise.
7026         * modules/ceilf (Depends-on): Likewise.
7027         * modules/ceill (Depends-on): Likewise.
7028         * modules/chdir-long (Depends-on): Likewise.
7029         * modules/chown (Depends-on): Likewise.
7030         * modules/close (Depends-on): Likewise.
7031         * modules/connect (Depends-on): Likewise.
7032         * modules/cosl (Depends-on): Likewise.
7033         * modules/dirfd (Depends-on): Likewise.
7034         * modules/dprintf (Depends-on): Likewise.
7035         * modules/dprintf-posix (Depends-on): Likewise.
7036         * modules/error (Depends-on): Likewise.
7037         * modules/euidaccess (Depends-on): Likewise.
7038         * modules/expl (Depends-on): Likewise.
7039         * modules/faccessat (Depends-on): Likewise.
7040         * modules/fchdir (Depends-on): Likewise.
7041         * modules/fclose (Depends-on): Likewise.
7042         * modules/fcntl (Depends-on): Likewise.
7043         * modules/fdopendir (Depends-on): Likewise.
7044         * modules/fflush (Depends-on): Likewise.
7045         * modules/floor (Depends-on): Likewise.
7046         * modules/floorf (Depends-on): Likewise.
7047         * modules/floorl (Depends-on): Likewise.
7048         * modules/fnmatch (Depends-on): Likewise.
7049         * modules/fopen (Depends-on): Likewise.
7050         * modules/fprintf-posix (Depends-on): Likewise.
7051         * modules/frexp (Depends-on): Likewise.
7052         * modules/frexp-nolibm (Depends-on): Likewise.
7053         * modules/frexpl (Depends-on): Likewise.
7054         * modules/frexpl-nolibm (Depends-on): Likewise.
7055         * modules/fseek (Depends-on): Likewise.
7056         * modules/fsusage (Depends-on): Likewise.
7057         * modules/ftell (Depends-on): Likewise.
7058         * modules/ftello (Depends-on): Likewise.
7059         * modules/futimens (Depends-on): Likewise.
7060         * modules/getcwd (Depends-on): Likewise.
7061         * modules/getcwd-lgpl (Depends-on): Likewise.
7062         * modules/getdelim (Depends-on): Likewise.
7063         * modules/getdomainname (Depends-on): Likewise.
7064         * modules/getgroups (Depends-on): Likewise.
7065         * modules/gethostname (Depends-on): Likewise.
7066         * modules/getline (Depends-on): Likewise.
7067         * modules/getlogin_r (Depends-on): Likewise.
7068         * modules/getopt-posix (Depends-on): Likewise.
7069         * modules/getpeername (Depends-on): Likewise.
7070         * modules/getsockname (Depends-on): Likewise.
7071         * modules/getsockopt (Depends-on): Likewise.
7072         * modules/getsubopt (Depends-on): Likewise.
7073         * modules/getusershell (Depends-on): Likewise.
7074         * modules/glob (Depends-on): Likewise.
7075         * modules/grantpt (Depends-on): Likewise.
7076         * modules/iconv_open (Depends-on): Likewise.
7077         * modules/iconv_open-utf (Depends-on): Likewise.
7078         * modules/inet_ntop (Depends-on): Likewise.
7079         * modules/inet_pton (Depends-on): Likewise.
7080         * modules/ioctl (Depends-on): Likewise.
7081         * modules/isapipe (Depends-on): Likewise.
7082         * modules/isfinite (Depends-on): Likewise.
7083         * modules/isinf (Depends-on): Likewise.
7084         * modules/lchown (Depends-on): Likewise.
7085         * modules/ldexpl (Depends-on): Likewise.
7086         * modules/link (Depends-on): Likewise.
7087         * modules/linkat (Depends-on): Likewise.
7088         * modules/listen (Depends-on): Likewise.
7089         * modules/logl (Depends-on): Likewise.
7090         * modules/lstat (Depends-on): Likewise.
7091         * modules/mbrlen (Depends-on): Likewise.
7092         * modules/mbrtowc (Depends-on): Likewise.
7093         * modules/mbsinit (Depends-on): Likewise.
7094         * modules/mbsnrtowcs (Depends-on): Likewise.
7095         * modules/mbsrtowcs (Depends-on): Likewise.
7096         * modules/mbtowc (Depends-on): Likewise.
7097         * modules/memcmp (Depends-on): Likewise.
7098         * modules/mkdir (Depends-on): Likewise.
7099         * modules/mkdtemp (Depends-on): Likewise.
7100         * modules/mkfifo (Depends-on): Likewise.
7101         * modules/mkfifoat (Depends-on): Likewise.
7102         * modules/mknod (Depends-on): Likewise.
7103         * modules/mkostemp (Depends-on): Likewise.
7104         * modules/mkostemps (Depends-on): Likewise.
7105         * modules/mkstemp (Depends-on): Likewise.
7106         * modules/mkstemps (Depends-on): Likewise.
7107         * modules/mktime (Depends-on): Likewise.
7108         * modules/nanosleep (Depends-on): Likewise.
7109         * modules/open (Depends-on): Likewise.
7110         * modules/openat (Depends-on): Likewise.
7111         * modules/perror (Depends-on): Likewise.
7112         * modules/poll (Depends-on): Likewise.
7113         * modules/popen (Depends-on): Likewise.
7114         * modules/posix_spawn (Depends-on): Likewise.
7115         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
7116         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
7117         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
7118         * modules/posix_spawnp (Depends-on): Likewise.
7119         * modules/pread (Depends-on): Likewise.
7120         * modules/printf-posix (Depends-on): Likewise.
7121         * modules/ptsname (Depends-on): Likewise.
7122         * modules/putenv (Depends-on): Likewise.
7123         * modules/pwrite (Depends-on): Likewise.
7124         * modules/readline (Depends-on): Likewise.
7125         * modules/readlink (Depends-on): Likewise.
7126         * modules/readlinkat (Depends-on): Likewise.
7127         * modules/recv (Depends-on): Likewise.
7128         * modules/recvfrom (Depends-on): Likewise.
7129         * modules/regex (Depends-on): Likewise.
7130         * modules/remove (Depends-on): Likewise.
7131         * modules/rename (Depends-on): Likewise.
7132         * modules/renameat (Depends-on): Likewise.
7133         * modules/rmdir (Depends-on): Likewise.
7134         * modules/round (Depends-on): Likewise.
7135         * modules/roundf (Depends-on): Likewise.
7136         * modules/roundl (Depends-on): Likewise.
7137         * modules/rpmatch (Depends-on): Likewise.
7138         * modules/select (Depends-on): Likewise.
7139         * modules/send (Depends-on): Likewise.
7140         * modules/sendto (Depends-on): Likewise.
7141         * modules/setenv (Depends-on): Likewise.
7142         * modules/setlocale (Depends-on): Likewise.
7143         * modules/setsockopt (Depends-on): Likewise.
7144         * modules/shutdown (Depends-on): Likewise.
7145         * modules/sigaction (Depends-on): Likewise.
7146         * modules/signbit (Depends-on): Likewise.
7147         * modules/sigprocmask (Depends-on): Likewise.
7148         * modules/sinl (Depends-on): Likewise.
7149         * modules/sleep (Depends-on): Likewise.
7150         * modules/snprintf (Depends-on): Likewise.
7151         * modules/snprintf-posix (Depends-on): Likewise.
7152         * modules/socket (Depends-on): Likewise.
7153         * modules/sprintf-posix (Depends-on): Likewise.
7154         * modules/sqrtl (Depends-on): Likewise.
7155         * modules/stat (Depends-on): Likewise.
7156         * modules/strchrnul (Depends-on): Likewise.
7157         * modules/strdup-posix (Depends-on): Likewise.
7158         * modules/strerror (Depends-on): Likewise.
7159         * modules/strerror_r-posix (Depends-on): Likewise.
7160         * modules/strndup (Depends-on): Likewise.
7161         * modules/strnlen (Depends-on): Likewise.
7162         * modules/strptime (Depends-on): Likewise.
7163         * modules/strsep (Depends-on): Likewise.
7164         * modules/strsignal (Depends-on): Likewise.
7165         * modules/strstr-simple (Depends-on): Likewise.
7166         * modules/strtod (Depends-on): Likewise.
7167         * modules/strtoimax (Depends-on): Likewise.
7168         * modules/strtok_r (Depends-on): Likewise.
7169         * modules/strtoumax (Depends-on): Likewise.
7170         * modules/symlink (Depends-on): Likewise.
7171         * modules/symlinkat (Depends-on): Likewise.
7172         * modules/tanl (Depends-on): Likewise.
7173         * modules/tcgetsid (Depends-on): Likewise.
7174         * modules/tmpfile (Depends-on): Likewise.
7175         * modules/trunc (Depends-on): Likewise.
7176         * modules/truncf (Depends-on): Likewise.
7177         * modules/truncl (Depends-on): Likewise.
7178         * modules/uname (Depends-on): Likewise.
7179         * modules/unlink (Depends-on): Likewise.
7180         * modules/unlockpt (Depends-on): Likewise.
7181         * modules/unsetenv (Depends-on): Likewise.
7182         * modules/usleep (Depends-on): Likewise.
7183         * modules/utimensat (Depends-on): Likewise.
7184         * modules/vasprintf (Depends-on): Likewise.
7185         * modules/vdprintf (Depends-on): Likewise.
7186         * modules/vdprintf-posix (Depends-on): Likewise.
7187         * modules/vfprintf-posix (Depends-on): Likewise.
7188         * modules/vprintf-posix (Depends-on): Likewise.
7189         * modules/vsnprintf (Depends-on): Likewise.
7190         * modules/vsnprintf-posix (Depends-on): Likewise.
7191         * modules/vsprintf-posix (Depends-on): Likewise.
7192         * modules/wcrtomb (Depends-on): Likewise.
7193         * modules/wcscasecmp (Depends-on): Likewise.
7194         * modules/wcscspn (Depends-on): Likewise.
7195         * modules/wcsdup (Depends-on): Likewise.
7196         * modules/wcsncasecmp (Depends-on): Likewise.
7197         * modules/wcsnrtombs (Depends-on): Likewise.
7198         * modules/wcspbrk (Depends-on): Likewise.
7199         * modules/wcsrtombs (Depends-on): Likewise.
7200         * modules/wcsspn (Depends-on): Likewise.
7201         * modules/wcsstr (Depends-on): Likewise.
7202         * modules/wcstok (Depends-on): Likewise.
7203         * modules/wcswidth (Depends-on): Likewise.
7204         * modules/wctob (Depends-on): Likewise.
7205         * modules/wctomb (Depends-on): Likewise.
7206         * modules/wctype (Depends-on): Likewise.
7207         * modules/wcwidth (Depends-on): Likewise.
7208         * modules/write (Depends-on): Likewise.
7209
7210 2011-05-03  Bruno Haible  <bruno@clisp.org>
7211
7212         Support for conditional dependencies.
7213         * doc/gnulib.texi (Module description): Document the syntax of
7214         conditional dependencies.
7215         * gnulib-tool: New option --conditional-dependencies.
7216         (func_usage): Document it.
7217         (cond_dependencies): New variable.
7218         (func_get_automake_snippet_conditional,
7219         func_get_automake_snippet_unconditional): New functions, extracted from
7220         func_get_automake_snippet.
7221         (func_get_automake_snippet): Use them.
7222         (sed_first_32_chars): New variable.
7223         (func_module_shellfunc_name): New function.
7224         (func_module_shellvar_name): New function.
7225         (func_module_conditional_name): New function.
7226         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
7227         func_cond_module_condition): New functions.
7228         (func_modules_transitive_closure): Add support for conditional
7229         dependencies.
7230         (func_emit_lib_Makefile_am): For a conditional module, enclose the
7231         conditional automake snippet in an automake conditional.
7232         (func_emit_autoconf_snippets): Emit shell functions that contain the
7233         code for conditional modules.
7234         (func_import, func_create_testdir): Update specification.
7235
7236 2011-05-03  Eric Blake  <eblake@redhat.com>
7237
7238         test-getaddrinfo: report error information
7239         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
7240
7241 2011-05-03  Jim Meyering  <meyering@redhat.com>
7242
7243         bootstrap: avoid build failure when $GZIP is set
7244         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
7245         program name.  If defined at all, it is supposed to list gzip options.
7246         Reported by Alan Curry in http://debbugs.gnu.org/8609
7247
7248 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
7249
7250         readme-release: new module with release instructions
7251         * modules/readme-release: New module.
7252         * top/README-release: New file, from coreutils, grep, diffutils.
7253         * MODULES.html.sh (Support for maintaining and releasing): Add it.
7254
7255 2011-05-02  Eric Blake  <eblake@redhat.com>
7256
7257         fflush: also replace fclose when fixing fflush
7258         * modules/fflush (Depends-on): Add fclose.
7259         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
7260         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
7261         memstreams with no backing fd.
7262         * doc/posix-functions/fclose.texi (fclose): Document the use of
7263         fflush module to fix the bug.
7264         * tests/test-fclose.c (main): Relax test when fclose is used in
7265         isolation.
7266
7267         fclose: add some tests
7268         * modules/fclose-tests: New test module.
7269         * tests/test-fclose.c: New file.
7270         * doc/posix-functions/fclose.texi (fclose): Document the bug.
7271
7272         fclose: reduced dependencies
7273         * modules/fclose (Depends-on): Switch from fflush/fseeko to
7274         simpler lseek.
7275         * lib/fclose.c (rpl_fclose): Likewise.
7276         Reported by Simon Josefsson.
7277
7278         exit: drop remaining clients
7279         * modules/argmatch (Depends-on): Replace exit with stdlib.
7280         * modules/copy-file (Depends-on): Likewise.
7281         * modules/execute (Depends-on): Likewise.
7282         * modules/exitfail (Depends-on): Likewise.
7283         * modules/obstack (Depends-on): Likewise.
7284         * modules/pagealign_alloc (Depends-on): Likewise.
7285         * modules/pipe-filter-gi (Depends-on): Likewise.
7286         * modules/pipe-filter-ii (Depends-on): Likewise.
7287         * modules/savewd (Depends-on): Likewise.
7288         * modules/spawn-pipe (Depends-on): Likewise.
7289         * modules/wait-process (Depends-on): Likewise.
7290         * modules/xsetenv (Depends-on): Likewise.
7291         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
7292         * modules/git-merge-changelog (Depends-on): Likewise.
7293         * modules/long-options (Depends-on): Likewise.
7294         * modules/pt_chown (Depends-on): Likewise.
7295         * modules/sysexits (Depends-on): Likewise.
7296
7297         freading: relax license from LGPLv3+ to LGPLv2+
7298         * modules/freading (License): Relax LGPL version.
7299
7300 2011-05-02  Bruno Haible  <bruno@clisp.org>
7301
7302         fchdir: Remove unused dependencies.
7303         * modules/fchdir (Depends-on): Remove include_next.
7304
7305 2011-05-02  Bruno Haible  <bruno@clisp.org>
7306
7307         gnulib-tool: Refactor.
7308         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
7309         from func_emit_autoconf_snippets.
7310         (func_emit_autoconf_snippets): Use it.
7311
7312 2011-05-02  Simon Josefsson  <simon@josefsson.org>
7313
7314         * NEWS: Document removal of 'exit'.
7315         * modules/exit: Remove file.
7316
7317 2011-05-01  Bruno Haible  <bruno@clisp.org>
7318
7319         Update DEPENDENCIES.
7320         * DEPENDENCIES (gettext): Recommend the newest release.
7321         Reported by Simon Josefsson.
7322
7323 2011-05-01  Bruno Haible  <bruno@clisp.org>
7324
7325         gnulib-tool: Reduce code duplication.
7326         * gnulib-tool (func_emit_autoconf_snippets): New function.
7327         (func_import, func_create_testdir): Use it.
7328
7329 2011-04-30  Eric Blake  <eblake@redhat.com>
7330
7331         fclose: don't fail on non-seekable input stream
7332         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
7333         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
7334         since fflush is allowed to fail in that case.
7335
7336 2011-04-30  Bruno Haible  <bruno@clisp.org>
7337
7338         dup3: cleanup
7339         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
7340
7341 2011-04-30  Bruno Haible  <bruno@clisp.org>
7342
7343         netdb: Make it work in C++ mode.
7344         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
7345         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
7346         module.
7347         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
7348         gl_MODULE_INDICATOR_FOR_TESTS.
7349         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
7350         * modules/netdb-c++-tests: New file.
7351         * tests/test-netdb-c++.cc: New file.
7352
7353 2011-04-30  Bruno Haible  <bruno@clisp.org>
7354
7355         New modules 'vfscanf', 'vscanf'.
7356         * modules/vfscanf: New file.
7357         * modules/vscanf: New file.
7358         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
7359         here.
7360         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
7361         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
7362
7363 2011-04-30  Bruno Haible  <bruno@clisp.org>
7364
7365         passfd: Add comments.
7366         * lib/passfd.c: Add comments about platforms.
7367
7368 2011-04-30  Bruno Haible  <bruno@clisp.org>
7369
7370         sys_uio: Make <sys/uio.h> self-contained.
7371         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
7372         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
7373
7374 2011-04-30  Bruno Haible  <bruno@clisp.org>
7375
7376         sys_socket: Ensure 'struct iovec' definition.
7377         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
7378         <sys/socket.h>.
7379         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
7380
7381 2011-04-30  Bruno Haible  <bruno@clisp.org>
7382
7383         sys_uio: Protect definition of 'struct iovec'.
7384         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
7385         it as a C struct.
7386
7387 2011-04-30  Bruno Haible  <bruno@clisp.org>
7388
7389         manywarnings: fix indentation
7390         * m4/manywarnings.m4: Indent by 2 spaces consistently.
7391
7392 2011-04-30  Pádraig Brady <P@draigBrady.com>
7393
7394         manywarnings: add -Wno-missing-field-initializers if needed.
7395         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
7396         option if it's needed to allow initialization with { 0, }
7397
7398 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
7399
7400         announce-gen: cosmetic improvement
7401         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
7402
7403 2011-04-29  Jim Meyering  <meyering@redhat.com>
7404
7405         vc-list-files: indent with spaces, not TABs
7406         * build-aux/vc-list-files: Convert leading TABs to spaces,
7407         to match the style of most other files in gnulib.
7408
7409         announce-gen: indent with spaces, not TABs
7410         * build-aux/announce-gen: Convert all TABs to spaces, to match
7411         the style of most other files in gnulib.
7412
7413 2011-04-29  Eric Blake  <eblake@redhat.com>
7414
7415         quotearg: avoid uninitialized variable use
7416         * lib/quotearg.c (quoting_options_from_style): Initialize
7417         remaining fields, and ensure that custom styles are only used via
7418         quoting_options rather than quoting_style.
7419
7420 2011-04-29  Jim Meyering  <meyering@redhat.com>
7421
7422         maint.mk: remove unused VC-tag variable
7423         * top/maint.mk (VC-tag): Remove unused variable.
7424
7425 2011-04-29  Bruno Haible  <bruno@clisp.org>
7426
7427         netdb: fix gai_strerror replacements
7428         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
7429         * modules/netdb: Substitute it.
7430
7431 2011-04-29  Jim Meyering  <meyering@redhat.com>
7432
7433         test-getcwd.c: avoid new set-but-not-used warning
7434         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
7435         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
7436         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
7437         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
7438
7439         test-hash.c: avoid a new shadowing warning
7440         * tests/test-hash.c (main): Don't shadow "dup".
7441
7442 2011-04-28  Eric Blake  <eblake@redhat.com>
7443
7444         getaddrinfo: fix gai_strerror signature
7445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
7446         and work around mingw with UNICODE defined.
7447         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
7448         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
7449         * modules/netdb (Makefile.am): Substitute it.
7450         * lib/netdb.in.h (gai_strerror): Declare replacement.
7451         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
7452         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
7453         the fix.
7454
7455         getsockopt: avoid compiler warning
7456         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
7457         Reported by Matthias Bolte.
7458
7459         tests: drop unused link dependency
7460         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
7461         * modules/dirent-safer-tests (Makefile.am): Likewise.
7462         * modules/fdopendir-tests (Makefile.am): Likewise.
7463         * modules/mkfifoat-tests (Makefile.am): Likewise.
7464         * modules/openat-safer-tests (Makefile.am): Likewise.
7465         * modules/openat-tests (Makefile.am): Likewise.
7466         * modules/readlinkat-tests (Makefile.am): Likewise.
7467         * modules/symlinkat-tests (Makefile.am): Likewise.
7468         * modules/linkat-tests (Makefile.am): Likewise.
7469         (Depends-on): Switch to filenamecat-lgpl.
7470         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
7471         LIBINTL.
7472         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
7473         * tests/test-linkat.c (main): Don't require xalloc.
7474
7475         hash, mgetgroups: drop xalloc dependency
7476         * lib/hash.c (includes): Adjust includes.
7477         * lib/mgetgroups.c (includes): Likewise.
7478         (xgetgroups): Move...
7479         * lib/xgetgroups.c: ...to new file.
7480         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
7481         * modules/xgetgroups: New file, split from...
7482         * modules/mgetgroups: ...here.
7483         (Depends-on): Add xalloc-oversized.
7484         * modules/hash (Depends-on): Likewise.
7485         * modules/hash-tests (Depends-on): Drop xalloc.
7486         (test_hash_LDADD): Drop unused library.
7487         * tests/test-hash.c (main): Break xalloc dependency.
7488         (includes): Drop unused include.
7489
7490         xalloc-oversized: new module
7491         * modules/xalloc-oversized: New module.
7492         * modules/xalloc (Depends-on): Add it.
7493         * lib/xalloc.h (xalloc_oversized): Move...
7494         * lib/xalloc-oversized.h: ...into new file.
7495
7496         utimecmp: drop dependency on xmalloc
7497         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
7498         due to memory pressure.
7499         * modules/utimecmp (Depends-on): Drop xalloc.
7500
7501 2011-04-27  Eric Blake  <eblake@redhat.com>
7502
7503         getcwd: fix mingw bugs
7504         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
7505         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
7506         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
7507
7508 2011-04-27  Bruno Haible  <bruno@clisp.org>
7509
7510         mkstemps: Ensure declaration on MacOS X 10.5.
7511         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
7512         * doc/glibc-functions/mkstemps.texi: Document header file problem on
7513         MacOS X.
7514
7515 2011-04-27  Bruno Haible  <bruno@clisp.org>
7516
7517         mkstemp: More documentation.
7518         * doc/posix-functions/mkstemp.texi: Document header file problem on
7519         MacOS X.
7520
7521 2011-04-27  Bruno Haible  <bruno@clisp.org>
7522
7523         mkstemp: Tweak configure message when cross-compiling.
7524         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
7525         result as a guess.
7526
7527 2011-04-27  Bruno Haible  <bruno@clisp.org>
7528
7529         clean-temp: Clarify what it does.
7530         * lib/clean-temp.h: Add more comments.
7531         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
7532         module.
7533         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
7534         * doc/glibc-functions/mkstemps.texi: Likewise.
7535         * doc/glibc-functions/mkostemps.texi: Likewise.
7536
7537 2011-04-27  Eric Blake  <eblake@redhat.com>
7538
7539         fchdir: avoid extra chdir and fix test
7540         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
7541         getcwd-lgpl.
7542         * lib/fchdir.c (get_name): Any absolute name will do; it does not
7543         have to be canonical.
7544         (canonicalize_file_name): Drop unused macro.
7545         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
7546
7547         filenamecat-lgpl: fix licence
7548         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
7549         when it was first created.
7550
7551         linkat, renameat: add missing dependency
7552         * modules/linkat (Depends-on): Require getcwd-lgpl.
7553         * modules/renameat (Depends-on): Likewise.
7554
7555         tests: reduce dependencies
7556         * tests/test-linkat.c (main): Use lighter-weight getcwd.
7557         * tests/test-renameat.c (main): Likewise.
7558         * modules/linkat-tests (Depends-on): Relax dependency.
7559         * modules/renameat-tests (Depends-on): Likewise.
7560         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
7561         dependency explicit.
7562
7563         save-cwd: reduce default dependency
7564         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
7565         * lib/save-cwd.c: Update comments.
7566         * NEWS: Document the semantic change.
7567
7568         getcwd: enhance tests
7569         * tests/test-getcwd-lgpl.c: New file, taken from...
7570         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
7571         repeat long path stress tests from m4 probe.
7572         * modules/getcwd-lgpl-tests: New module.
7573         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
7574         * m4/getcwd-abort-bug.m4: Update comment.
7575         * m4/getcwd-path-max.m4: Likewise.
7576
7577         getcwd-lgpl: new module
7578         * modules/getcwd-lgpl: New module.
7579         * lib/getcwd-lgpl.c: New file.
7580         * doc/posix-functions/getcwd.texi (getcwd): Document it.
7581         * MODULES.html.sh (lacking POSIX:2008): Likewise.
7582         * modules/getcwd (configure.ac): Set C witness.
7583         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
7584
7585         getcwd: tweak comments
7586         * m4/getcwd-abort-bug.m4: Fix comments.
7587         * m4/getcwd-path-max.m4: Likewise.
7588         * m4/getcwd.m4: Likewise.
7589
7590 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7591         and Eric Blake  <eblake@redhat.com>
7592
7593         mkstemp: replace if system version uses wrong permissions
7594         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
7595         read/write mode bits set in file created by mkstemp.
7596         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
7597
7598 2011-04-27  Eric Blake  <eblake@redhat.com>
7599
7600         passfd: avoid compiler warning
7601         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
7602         Reported by Laine Stump.
7603
7604 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
7605
7606         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
7607         required by the NetBSD (and perhaps other 4.4BSD derived) join.
7608
7609 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
7610         and Eric Blake  <eblake@redhat.com>
7611
7612         mkstemp: mention clean-temp module
7613         * lib/mkstemp.c: Add comment.
7614         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
7615
7616 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
7617
7618         inttypes: also provide default values for 32-bit tests
7619         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
7620         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
7621
7622 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7623
7624         strtoumax: remove dependency on strtoimax
7625         This is like the strtoull change of yesterday.
7626         * modules/strtoumax (Files): Add lib/strtoimax.c.
7627         (Depends-on): Remove strtoimax and add verify.
7628
7629         inttypes-incomplete: new module
7630         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
7631         all but the PRI* and SCN* parts of gl_INTTYPES_H.
7632         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
7633         of gl_INTTYPES_H.
7634         (gl_INTTYPES_H): Rewrite in terms of these new macros.
7635         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
7636         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
7637         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
7638         * modules/strtoumax, modules/xstrtol (Depends-on):
7639         Depend on inttypes-incomplete, not inttypes.
7640         * modules/inttypes-incomplete: New module, containing the contents
7641         of the old modules/inttypes module, except that the Files: section
7642         omits m4/inttypes-pri.m4, and the configure.ac section invokes
7643         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
7644         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
7645         (Depends-on): Depend only on inttypes-incomplete.
7646         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
7647
7648         inttypes: omit now-redundant strtoimax and strtoumax work
7649         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
7650         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
7651
7652         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
7653         This supports apps that need pointers to strtoimax and strtoumax,
7654         and ports to HP-UX 11.00 64.bit, which has macros that expand to
7655         nonexistent functions.  See
7656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
7657         et seq.
7658         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
7659         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
7660         a macro.
7661         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
7662
7663 2011-04-25  Simon Josefsson  <simon@josefsson.org>
7664
7665         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
7666
7667 2011-04-25  Bruno Haible  <bruno@clisp.org>
7668
7669         strtol, strtoul: Mark modules as obsolete.
7670         * modules/strtol (Status, Notice): New sections.
7671         * modules/strtoul (Status, Notice): New sections.
7672
7673 2011-04-25  Bruno Haible  <bruno@clisp.org>
7674
7675         strtod: Remove check for strtod, unless supporting old platforms.
7676         * modules/strtod-obsolete: New file.
7677         * m4/strtod-obsolete.m4: New file.
7678         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
7679         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
7680         * modules/strtod (Depends-on): Add strtod-obsolete.
7681         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
7682
7683 2011-04-25  Bruno Haible  <bruno@clisp.org>
7684
7685         strcase: Make module obsolete.
7686         * modules/strcase (Status, Notice): New sections.
7687
7688 2011-04-25  Bruno Haible  <bruno@clisp.org>
7689
7690         dup2: Remove check for dup2, unless supporting old obsolete platforms.
7691         * modules/dup2-obsolete: New file.
7692         * m4/dup2-obsolete.m4: New file.
7693         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
7694         gl_FUNC_DUP2_OBSOLETE is not also defined.
7695         * modules/dup2 (Depends-on): Add dup2-obsolete.
7696         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
7697
7698 2011-04-25  Bruno Haible  <bruno@clisp.org>
7699
7700         strnlen: Avoid memchr related link error on old obsolete platforms.
7701         * modules/memchr-obsolete: New file.
7702         * m4/memchr-obsolete.m4: New file.
7703         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
7704         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
7705         * modules/memchr (Depends-on): Add memchr-obsolete.
7706         * modules/strnlen (Depends-on): Likewise.
7707         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
7708
7709 2011-04-25  Jim Meyering  <meyering@redhat.com>
7710
7711         maint.mk: makefile_at_at_check extend and clean up
7712         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
7713         in addition to */Makefile.am.
7714         Exempt legitimate uses of @VAR@ notation, e.g.,
7715         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
7716         Remove obsolete coreutils-specific comment.
7717         Prompted by discussion here:
7718         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
7719
7720 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
7721
7722         strtoul: remove dependency on strtol
7723         This is so that 'configure' need not check for strtol merely because
7724         the application needs strtoul.
7725         * modules/strtoul (Files): Add lib/strtol.c.
7726         (Depends-on): Remove strtol.
7727
7728         strtoull: remove dependency on strtoul
7729         This is like the strtoll change.
7730         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
7731         (Depends-on): Remove strtoul.
7732
7733         strtoll: remove dependency on strtol
7734         This is so that 'configure' need not check for strtol merely because
7735         the application needs strtoll.
7736         * modules/strtoll (Files): Add lib/strtol.c.
7737         (Depends-on): Remove strtol.
7738
7739 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7740
7741         inttypes: Move some configure check to module 'imaxdiv'.
7742         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
7743         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
7744         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
7745
7746 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7747
7748         inttypes: Move some configure check to module 'imaxabs'.
7749         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
7750         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
7751         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
7752
7753 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7754
7755         inttypes: Remove configure tests that are not needed since 2009-12-31.
7756         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
7757         gl_cv_header_working_inttypes_h.
7758
7759 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
7760
7761         * modules/strnlen (Depends-on): Remove memchr.
7762         The strnlen implementation doesn't need the memchr module's fixes; see
7763         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
7764
7765         strtol: remove dependency on wchar
7766         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
7767         * modules/strtol (Depends-on): Remove wchar.
7768
7769 2011-04-21  Eric Blake  <eblake@redhat.com>
7770
7771         passfd: fix test regression on Linux
7772         * modules/passfd-tests (configure.ac): Correct socketpair check.
7773
7774         passfd: speed up configure and drop unused code
7775         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
7776         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
7777         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
7778         Instead of probing at configure for unix_scm_rights_bsd44_way,
7779         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
7780         check to a struct member probe.
7781         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
7782         (sendfd, recvfd): Update preprocessor checks.
7783         * modules/passfd (Files): Reflect rename, and drop unused file.
7784         (Depends-on): Drop unused dependency.
7785
7786         passfd: allow compilation on mingw
7787         * modules/sys_socket (Depends-on): Add sys_uio.
7788         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
7789         iovec and a minimal struct msghdr.
7790         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
7791         * tests/test-sys_socket.c (main): Enhance test.
7792         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
7793         guaranteed to provide what we need.
7794         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
7795         * modules/passfd-tests (Depends-on): Add sys_wait.
7796         * tests/test-passfd.c (main): Skip test on mingw, for now.
7797         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
7798         partial 'struct msghdr' implementation.
7799
7800         sys_uio: new module
7801         * modules/sys_uio: New module.
7802         * modules/sys_uio-tests: Likewise.
7803         * lib/sys_uio.in.h: New file.
7804         * m4/sys_uio_h.m4: Likewise.
7805         * tests/test-sys_uio.c: Likewise.
7806         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
7807         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
7808
7809 2011-04-20  Jim Meyering  <meyering@redhat.com>
7810
7811         useless-if-before-free: avoid false-positive
7812         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
7813         disjunct so that it too requires a terminating ";".  Without that,
7814         this script would identify as useless one statement from gcc that
7815         was not:
7816           if (aligned_ptr)
7817             free (((void **) aligned_ptr) [-1]);
7818
7819 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
7820
7821         doc: update users.txt.
7822         * users.txt: Add barcode.
7823
7824 2011-04-19  Bruno Haible  <bruno@clisp.org>
7825
7826         ioctl: Remove link dependency on native Windows.
7827         * lib/fd-hook.h: Renamed from lib/close-hook.h.
7828         (gl_close_fn, gl_ioctl_fn): New types.
7829         (struct fd_hook): Renamed from struct close_hook. Change type of
7830         private_close_fn field. Add private_ioctl_fn field.
7831         (close_hook_fn): Add parameter for primary close method.
7832         (execute_close_hooks, execute_all_close_hooks): Likewise.
7833         (ioctl_hook_fn): New type.
7834         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
7835         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7836         argument.
7837         (unregister_fd_hook): Renamed from unregister_close_hook.
7838         * lib/fd-hook.c: Renamed from lib/close-hook.c.
7839         Don't include <unistd.h>.
7840         (close): Remove undef.
7841         (anchor): Update.
7842         (execute_close_hooks): Add argument for primary close method.
7843         (execute_all_close_hooks): Likewise.
7844         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
7845         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
7846         argument. Allow each argument to be NULL.
7847         (unregister_fd_hook): Renamed from unregister_close_hook.
7848         * lib/close.c (rpl_close): Pass 'close' function pointer to
7849         execute_all_close_hooks.
7850         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
7851         (primary_ioctl): New function.
7852         (ioctl): Don't call ioctlsocket here. Instead, call
7853         execute_all_ioctl_hooks.
7854         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
7855         close method.
7856         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
7857         (fd_sockets_hook): Renamed from close_sockets_hook.
7858         (gl_sockets_startup, gl_sockets_cleanup): Update.
7859         * modules/fd-hook: Renamed from modules/close-hook. Update.
7860         * modules/close (Depends-on): Add fd-hook, remove close-hook.
7861         * modules/sockets (Depends-on): Likewise.
7862         * modules/ioctl (Depends-on): Add fd-hook.
7863         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
7864         GNULIB_SOCKET.
7865
7866 2011-04-19  Bruno Haible  <bruno@clisp.org>
7867
7868         Move the support of O_NONBLOCK in open() to the 'open' module.
7869         * modules/nonblocking (Depends-on): Remove 'open'.
7870         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
7871         gl_cv_have_open_O_NONBLOCK.
7872         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
7873         O_NONBLOCK support.
7874         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
7875
7876 2011-04-17  Bruno Haible  <bruno@clisp.org>
7877
7878         pipe2: Simplify code.
7879         * lib/pipe2.c (pipe2): Reduce code duplication.
7880
7881 2011-04-17  Bruno Haible  <bruno@clisp.org>
7882
7883         nonblocking: Add comment.
7884         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
7885
7886 2011-04-17  Bruno Haible  <bruno@clisp.org>
7887
7888         nonblocking: Add tests for sockets.
7889         * tests/test-nonblocking-socket.sh: New file.
7890         * tests/test-nonblocking-socket-main.c: New file.
7891         * tests/test-nonblocking-socket-child.c: New file.
7892         * tests/test-nonblocking-socket.h: New file.
7893         * tests/socket-server.h: New file.
7894         * tests/socket-client.h: New file.
7895         * modules/nonblocking-socket-tests: New file.
7896         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
7897
7898 2011-04-17  Bruno Haible  <bruno@clisp.org>
7899
7900         nonblocking: Add tests for pipes.
7901         * tests/test-nonblocking-pipe.sh: New file.
7902         * tests/test-nonblocking-pipe-main.c: New file.
7903         * tests/test-nonblocking-pipe-child.c: New file.
7904         * tests/test-nonblocking-pipe.h: New file.
7905         * tests/test-nonblocking-writer.h: New file.
7906         * tests/test-nonblocking-reader.h: New file.
7907         * tests/test-nonblocking-misc.h: New file.
7908         * modules/nonblocking-pipe-tests: New file.
7909         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
7910
7911 2011-04-16  Bruno Haible  <bruno@clisp.org>
7912
7913         gettext: Clarify the needed programmer actions.
7914         * modules/gettext (Notice): New field.
7915         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
7916
7917 2011-04-16  Bruno Haible  <bruno@clisp.org>
7918
7919         strchrnul: Tweak last commit.
7920         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
7921         bug.
7922         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
7923         as in _GL_FUNCDECL_SYS.
7924         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
7925         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
7926
7927 2011-04-15  Eric Blake  <eblake@redhat.com>
7928
7929         strchrnul: work around cygwin bug
7930         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
7931         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
7932         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
7933         * modules/string (Makefile.am): Substitute it.
7934         * lib/string.in.h (strchrnul): Use it.
7935
7936 2011-04-15  Bruno Haible  <bruno@clisp.org>
7937
7938         Don't require lib/stdio-write.c when only module 'stdio' is used.
7939         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
7940         invocation.
7941         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
7942
7943 2011-04-14  Bruno Haible  <bruno@clisp.org>
7944
7945         Support non-blocking pipe I/O in read() on native Windows.
7946         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
7947         (read): New declaration.
7948         * lib/read.c: New file.
7949         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
7950         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
7951         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
7952         vscanf): New declarations.
7953         * lib/stdio-read.c: New file.
7954         * m4/read.m4: New file.
7955         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
7956         REPLACE_READ.
7957         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
7958         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7959         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
7960         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
7961         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
7962         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7963         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7964         * modules/read: New file.
7965         * modules/nonblocking (Files): Add lib/stdio-read.c.
7966         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
7967         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
7968         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
7969         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
7970         * modules/pread (Depends-on): Add read.
7971         * modules/safe-read (Depends-on): Likewise.
7972         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
7973         gets, scanf, vfscanf, vscanf): Verify signatures.
7974         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
7975         problem with non-blocking pipes.
7976         * doc/posix-functions/fgetc.texi: Likewise.
7977         * doc/posix-functions/fgets.texi: Likewise.
7978         * doc/posix-functions/fread.texi: Likewise.
7979         * doc/posix-functions/fscanf.texi: Likewise.
7980         * doc/posix-functions/getc.texi: Likewise.
7981         * doc/posix-functions/getchar.texi: Likewise.
7982         * doc/posix-functions/gets.texi: Likewise.
7983         * doc/posix-functions/scanf.texi: Likewise.
7984         * doc/posix-functions/vfscanf.texi: Likewise.
7985         * doc/posix-functions/vscanf.texi: Likewise.
7986
7987 2011-04-14  Bruno Haible  <bruno@clisp.org>
7988
7989         Support non-blocking pipe I/O in write() on native Windows.
7990         * lib/write.c (rpl_write): Split a write request that failed merely
7991         because the byte count was larger than the pipe buffer's size.
7992         * doc/posix-functions/write.texi: Mention the problem with large byte
7993         counts.
7994
7995 2011-04-14  Bruno Haible  <bruno@clisp.org>
7996
7997         wchar: Ensure that wchar_t gets defined on uClibc.
7998         * lib/wchar.in.h: On uClibc, include <stddef.h>.
7999         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
8000
8001 2011-04-13  Bruno Haible  <bruno@clisp.org>
8002
8003         safe-write, full-read: Avoid unnecessary compilation units.
8004         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
8005         (Depends-on): Remove safe-read. Add ssize_t.
8006         * modules/full-read (Files): Add lib/full-write.c.
8007         (Depends-on): Add full-write.
8008
8009 2011-04-13  Bruno Haible  <bruno@clisp.org>
8010
8011         Support non-blocking pipe I/O and SIGPIPE in pwrite().
8012         * modules/pwrite (Depends-on): Add 'write'.
8013
8014 2011-04-13  Bruno Haible  <bruno@clisp.org>
8015
8016         Support non-blocking pipe I/O in write() on native Windows.
8017         * lib/unistd.in.h (write): Enable replacement also if
8018         GNULIB_UNISTD_H_NONBLOCKING is 1.
8019         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
8020         (rpl_write): When failing to write on a non-blocking pipe, change
8021         errno from ENOSPC to EAGAIN.
8022         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
8023         putchar, puts, vfprintf, vprintf): Enable replacement also if
8024         GNULIB_STDIO_H_NONBLOCKING is 1.
8025         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
8026         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
8027         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
8028         CALL_WITH_SIGPIPE_EMULATION.
8029         (CALL_WITH_SIGPIPE_EMULATION): Use them.
8030         * m4/nonblocking.m4: New file.
8031         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
8032         for non-blocking I/O support.
8033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8034         GNULIB_UNISTD_H_NONBLOCKING.
8035         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
8036         required for non-blocking I/O support.
8037         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
8038         * modules/nonblocking (Files): Add m4/nonblocking.m4,
8039         lib/stdio-write.c, m4/asm-underscore.m4.
8040         (Depends-on): Add stdio, unistd.
8041         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
8042         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
8043         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
8044         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
8045         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
8046         problem with non-blocking pipes.
8047         * doc/posix-functions/fputc.texi: Likewise.
8048         * doc/posix-functions/fputs.texi: Likewise.
8049         * doc/posix-functions/fwrite.texi: Likewise.
8050         * doc/posix-functions/printf.texi: Likewise.
8051         * doc/posix-functions/putc.texi: Likewise.
8052         * doc/posix-functions/putchar.texi: Likewise.
8053         * doc/posix-functions/puts.texi: Likewise.
8054         * doc/posix-functions/vfprintf.texi: Likewise.
8055         * doc/posix-functions/vprintf.texi: Likewise.
8056         * doc/posix-functions/write.texi: Likewise.
8057
8058 2011-04-10  Jim Meyering  <meyering@redhat.com>
8059
8060         maint.mk: prohibit doubled words
8061         Detect them also when they're separated by a newline.
8062         There are 3 ways to customize it:
8063           - disable the test on a per file basis, as usual with rules using
8064             $(VC_LIST_EXCEPT)
8065           - replace the default doubled-word-selecting regexp (affects all files)
8066           - ignore a particular file-vs-doubled-word match
8067         I nearly used that last one to ignore the "is is" match in
8068         coreutils' NEWS file, since the text was "ls -is is ..."
8069         To do that, I would have added this line to cfg.mk:
8070           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
8071         but it would have ignored any "is is" match in NEWS.
8072         Low probability, but still...
8073         Instead, I changed the text, slightly:
8074           -  ls -is is now consistent with ls -lis in ignoring values returned
8075           +  "ls -is" is now consistent with ls -lis in ignoring values returned
8076         * top/maint.mk (prohibit_double_word_RE_): Provide default.
8077         (prohibit_doubled_word_): Define.
8078         (sc_prohibit_doubled_word): New rule.
8079         (sc_prohibit_the_the): Remove.  Subsumed by the above.
8080
8081 2011-04-10  Jim Meyering  <meyering@redhat.com>
8082
8083         maint: fix doubled-word typo in comment
8084         * m4/gethostname.m4: s/is is/it is/
8085         * m4/getdomainname.m4: Likewise.
8086
8087 2011-04-10  Jim Meyering  <meyering@redhat.com>
8088
8089         maint: remove doubled word: s/it it/it/
8090         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
8091
8092 2011-04-10  Jim Meyering  <meyering@redhat.com>
8093
8094         maint.mk: remove useless semicolon and backslash
8095         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
8096         semicolon and backslash.
8097
8098 2011-04-10  Bruno Haible  <bruno@clisp.org>
8099
8100         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
8101         * modules/stdint-tests (Depends-on): Add wchar.
8102
8103 2011-04-10  Jim Meyering  <meyering@redhat.com>
8104
8105         maint: remove doubled words in comments, e.g., s/a a/a/
8106         * lib/strptime.c (day_of_the_week): s/the the/the/
8107         * tests/test-chown.h (test_chown): s/a a/a/
8108
8109         test-chown.h: correct a cast
8110         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
8111         when the destination is a stat.st_gid.
8112
8113 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
8114
8115         getaddrinfo: Fix test for sa_len member.
8116         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
8117         include <sys/types.h> before <sys/socket.h>.
8118
8119 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
8120
8121         maint: change "can not" to "cannot"
8122         * doc/posix-functions/iconv.texi (iconv): This one crossed line
8123         boundaries.
8124
8125 2011-04-09  Jim Meyering  <meyering@redhat.com>
8126
8127         maint: change "a a" to "a"
8128         * tests/test-lchown.h (test_lchown): s/a a/a/
8129
8130         maint.mk: prohibit \<the the\>
8131         * top/maint.mk (sc_prohibit_the_the): New rule.
8132
8133         maint: fix "the the" in comment
8134         * lib/count-one-bits.h: s/the the/the/
8135
8136         maint: change "can not" to "cannot"
8137         But do not change the occurrences in maintain.texi or in
8138         build-aux/po/Makefile.in.in, which I presume comes from gettext.
8139         * doc/gnulib-tool.texi: s/can not/cannot/
8140         * doc/posix-functions/accept.texi (accept): Likewise.
8141         * doc/posix-functions/socket.texi (socket): Likewise.
8142         * lib/mbrtowc.c: Likewise.
8143
8144         maint.mk: prohibit use of "can not"
8145         * top/maint.mk (sc_prohibit_can_not): New rule.
8146         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
8147
8148 2011-04-09  Bruno Haible  <bruno@clisp.org>
8149
8150         careadlinkat: Guard against misuse of careadlinkatcwd.
8151         * lib/careadlinkat.c: Include <stdlib.h>.
8152         (careadlinkatcwd): Check that the fd argument is as expected.
8153
8154 2011-04-09  Bruno Haible  <bruno@clisp.org>
8155
8156         careadlinkat: Use common coding style.
8157         * lib/careadlinkat.c: Move gnulib includes after system includes.
8158
8159 2011-04-09  Bruno Haible  <bruno@clisp.org>
8160
8161         careadlinkat: Clarify specification.
8162         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
8163         (careadlinkatcwd): Add comment.
8164         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
8165
8166 2011-04-09  Bruno Haible  <bruno@clisp.org>
8167
8168         areadlinkat: Avoid link error on many platforms.
8169         * modules/areadlinkat (Depends-on): Add areadlink.
8170
8171 2011-04-09  Bruno Haible  <bruno@clisp.org>
8172
8173         allocator, careadlinkat: Fix double-inclusion guard.
8174         * lib/allocator.h: Fix double-inclusion guard.
8175         * lib/careadlinkat.h: Likewise.
8176
8177 2011-04-09  Bruno Haible  <bruno@clisp.org>
8178
8179         relocatable-prog-wrapper: Update after module 'areadlink' changed.
8180         * lib/relocwrapper.c: Update dependencies hierarchy.
8181         * build-aux/install-reloc: Update list of files to be compiled.
8182         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
8183         lib/allocator.[hc].
8184
8185 2011-04-08  Eric Blake  <eblake@redhat.com>
8186
8187         strftime: silence gnulib-tool warning
8188         * modules/strftime-tests (Depends-on): Drop automatic dependency.
8189
8190 2011-04-08  Bruno Haible  <bruno@clisp.org>
8191
8192         verify: Fix syntax error with GCC 4.6 in C++ mode.
8193         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
8194         (HAVE_STATIC_ASSERT): New macro.
8195         (verify_true, verify): Use 'static_assert' if it is supported and
8196         '_Static_assert' is not supported.
8197
8198 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
8199
8200         allocator: New module.
8201         * modules/allocator, lib/allocator.c: New files.
8202         * lib/allocator.h (stdlib_allocator): New decl.
8203         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
8204         Remove.  Do not include <stdlib.h>.
8205         (careadlinkat): Use stdlib_allocator instead of rolling our own.
8206         * modules/careadlinkat (Files): Remove lib/allocator.h.
8207         (Depends-on): Add allocator.
8208
8209         stdlib: let modules use system malloc, realloc
8210         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
8211         if !_GL_USE_STDLIB_ALLOC.
8212         (malloc, realloc): Limit this change to a smaller scope.
8213
8214         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
8215         (malloc, realloc): Don't #undef; no longer needed.
8216         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8217         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8218         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8219         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8220         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8221         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8222         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
8223         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
8224
8225         careadlinkat: rename members to avoid problem
8226         * lib/allocator.h (struct allocator): Rename members from
8227         malloc/realloc to allocate/reallocate, to avoid problems if malloc
8228         and realloc are #define'd.  Reported by Eric Blake in
8229         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
8230         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
8231
8232 2011-04-08  Eric Blake  <eblake@redhat.com>
8233
8234         nonblocking: reduce dependency
8235         * tests/test-nonblocking.c: Only test sockets when in use.
8236         * modules/nonblocking-tests (Depends-on): Drop socket.
8237         (Makefile.am): Link even if sockets are not present.
8238         * modules/pipe2-tests (Makefile.am): Likewise.
8239         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
8240
8241         pipe2: fix O_NONBLOCK support on mingw
8242         * modules/pipe2 (Depends-on): Add nonblocking.
8243         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
8244         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
8245         * tests/test-nonblocking.c (main): Likewise.
8246         * modules/pipe2-tests (Makefile.am): Avoid link failure.
8247
8248         fcntl-h: fix O_ACCMODE on cygwin
8249         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
8250         * lib/fcntl.in.h (O_ACCMODE): Fix it.
8251
8252         pipe-filter: drop O_NONBLOCK workarounds
8253         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
8254         * modules/pipe-filter-ii (Depends-on): Likewise.
8255         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
8256
8257         nonblocking: provide O_NONBLOCK for mingw
8258         * modules/nonblocking (Depends-on): Add open.
8259         (configure.ac): Set new witness macro.
8260         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
8261         * modules/fcntl-h (Makefile.am): Substitute it.
8262         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
8263         nonblocking module is in use.
8264         * lib/nonblocking.c: Adjust portability test.
8265         * lib/open.c (open): Don't let native open see gnulib flag.
8266         * tests/test-fcntl-h.c (main): Enhance test.
8267         * tests/test-open.h (test_open): Likewise.
8268         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
8269
8270         careadlinkat: fix compilation error on mingw
8271         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
8272         within struct allocator.
8273
8274 2011-04-06  Eric Blake  <eblake@redhat.com>
8275
8276         binary-io: relicense under LGPLv2+
8277         * modules/binary-io (License): Relax to LGPLv2+.
8278         Requested for libvirt, and required by pipe2.
8279
8280 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
8281
8282         verify: use _Static_assert if available
8283         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
8284         (verify_true, verify): Use it if available.  This generates better
8285         diagnostics with GCC 4.6.0 and later.
8286
8287 2011-04-05  Bruno Haible  <bruno@clisp.org>
8288
8289         Remove leftover generated .h files after config.status changed.
8290
8291         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
8292         GL_GENERATE_ALLOCA_H.
8293         * modules/alloca-opt (Makefile.am): Remove alloca.h if
8294         GL_GENERATE_ALLOCA_H evaluates to false.
8295
8296         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
8297         GL_GENERATE_ARGZ_H.
8298         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
8299         evaluates to false.
8300
8301         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
8302         GL_GENERATE_BYTESWAP_H.
8303         * modules/byteswap (Makefile.am): Remove byteswap.h if
8304         GL_GENERATE_BYTESWAP_H evaluates to false.
8305
8306         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
8307         GL_GENERATE_ERRNO_H.
8308         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
8309         evaluates to false.
8310
8311         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
8312         GL_GENERATE_FLOAT_H.
8313         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
8314         evaluates to false.
8315
8316         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
8317         GL_GENERATE_FNMATCH_H.
8318         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
8319         GL_GENERATE_FNMATCH_H evaluates to false.
8320
8321         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
8322         GL_GENERATE_GLOB_H.
8323         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
8324         evaluates to false.
8325
8326         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
8327         automake conditional GL_GENERATE_ICONV_H.
8328         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
8329         evaluates to false.
8330
8331         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
8332         GL_GENERATE_NETINET_IN_H.
8333         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
8334         GL_GENERATE_NETINET_IN_H evaluates to false.
8335
8336         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
8337         conditional GL_GENERATE_PTHREAD_H.
8338         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
8339         * modules/pthread (Makefile.am): Remove pthread.h if
8340         GL_GENERATE_PTHREAD_H evaluates to false.
8341
8342         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
8343         GL_GENERATE_SCHED_H.
8344         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
8345         evaluates to false.
8346
8347         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
8348         conditional GL_GENERATE_SELINUX_CONTEXT_H.
8349         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
8350         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
8351
8352         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
8353         GL_GENERATE_STDARG_H.
8354         * modules/stdarg (Makefile.am): Remove stdarg.h if
8355         GL_GENERATE_STDARG_H evaluates to false.
8356
8357         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
8358         GL_GENERATE_STDBOOL_H.
8359         * modules/stdbool (Makefile.am): Remove stdbool.h if
8360         GL_GENERATE_STDBOOL_H evaluates to false.
8361
8362         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
8363         conditional GL_GENERATE_STDDEF_H.
8364         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
8365         * modules/stddef (Makefile.am): Remove stddef.h if
8366         GL_GENERATE_STDDEF_H evaluates to false.
8367
8368         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
8369         GL_GENERATE_STDINT_H.
8370         * modules/stdint (Makefile.am): Remove stdint.h if
8371         GL_GENERATE_STDINT_H evaluates to false.
8372
8373         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
8374         GL_GENERATE_SYSEXITS_H.
8375         * modules/sysexits (Makefile.am): Remove sysexits.h if
8376         GL_GENERATE_SYSEXITS_H evaluates to false.
8377
8378         Reported by Karl Berry and Ralf Wildenhues.
8379
8380 2011-04-05  Bruno Haible  <bruno@clisp.org>
8381
8382         Ensure to rebuild generated .h files when config.status has changed.
8383         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
8384         config.status.
8385         * modules/ctype (Makefile.am): Likewise.
8386         * modules/dirent (Makefile.am): Likewise.
8387         * modules/errno (Makefile.am): Likewise.
8388         * modules/fcntl-h (Makefile.am): Likewise.
8389         * modules/float (Makefile.am): Likewise.
8390         * modules/getopt-posix (Makefile.am): Likewise.
8391         * modules/glob (Makefile.am): Likewise.
8392         * modules/iconv-h (Makefile.am): Likewise.
8393         * modules/inttypes (Makefile.am): Likewise.
8394         * modules/langinfo (Makefile.am): Likewise.
8395         * modules/locale (Makefile.am): Likewise.
8396         * modules/math (Makefile.am): Likewise.
8397         * modules/netdb (Makefile.am): Likewise.
8398         * modules/netinet_in (Makefile.am): Likewise.
8399         * modules/poll-h (Makefile.am): Likewise.
8400         * modules/pthread (Makefile.am): Likewise.
8401         * modules/pty (Makefile.am): Likewise.
8402         * modules/sched (Makefile.am): Likewise.
8403         * modules/search (Makefile.am): Likewise.
8404         * modules/selinux-h (Makefile.am): Likewise.
8405         * modules/signal (Makefile.am): Likewise.
8406         * modules/spawn (Makefile.am): Likewise.
8407         * modules/stdarg (Makefile.am): Likewise.
8408         * modules/stdbool (Makefile.am): Likewise.
8409         * modules/stddef (Makefile.am): Likewise.
8410         * modules/stdint (Makefile.am): Likewise.
8411         * modules/stdio (Makefile.am): Likewise.
8412         * modules/stdlib (Makefile.am): Likewise.
8413         * modules/string (Makefile.am): Likewise.
8414         * modules/strings (Makefile.am): Likewise.
8415         * modules/sys_file (Makefile.am): Likewise.
8416         * modules/sys_ioctl (Makefile.am): Likewise.
8417         * modules/sys_select (Makefile.am): Likewise.
8418         * modules/sys_socket (Makefile.am): Likewise.
8419         * modules/sys_stat (Makefile.am): Likewise.
8420         * modules/sys_time (Makefile.am): Likewise.
8421         * modules/sys_times (Makefile.am): Likewise.
8422         * modules/sys_utsname (Makefile.am): Likewise.
8423         * modules/sys_wait (Makefile.am): Likewise.
8424         * modules/sysexits (Makefile.am): Likewise.
8425         * modules/termios (Makefile.am): Likewise.
8426         * modules/time (Makefile.am): Likewise.
8427         * modules/unistd (Makefile.am): Likewise.
8428         * modules/wchar (Makefile.am): Likewise.
8429         * modules/wctype-h (Makefile.am): Likewise.
8430         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
8431
8432 2011-04-05  Bruno Haible  <bruno@clisp.org>
8433
8434         pipe2: Relicense under LGPLv2+.
8435         * modules/pipe2 (License): Change to LGPLv2+.
8436         Requested by Eric Blake, for libvirt.
8437
8438 2011-04-05  Bruce Korb  <bkorb@gnu.org>
8439
8440         bootstrap: compute gnulib_extra_files after updating build_aux
8441         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
8442         change build_aux or also supply gnulib_extra_files.  Handle correctly.
8443
8444 2011-04-05  Eric Blake  <eblake@redhat.com>
8445
8446         bootstrap: preserve git whitelist item sorting
8447         * build-aux/bootstrap (sort_patterns): New function.
8448         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
8449
8450 2011-04-05  Simon Josefsson  <simon@josefsson.org>
8451
8452         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
8453         sc_space_tab check.
8454
8455 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
8456
8457         areadlink, areadlinkat: rewrite in terms of careadlinkat
8458         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
8459         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
8460         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
8461         (malloc, realloc): Remove #undefs.
8462         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
8463         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
8464         readlink, ssize_t, stdint, unistd.
8465         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
8466         areadlink, stdint.
8467
8468         careadlinkat: new module
8469         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
8470         * modules/careadlinkat: New files, written by me with
8471         a review and feedback from Ben Pfaff in
8472         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
8473
8474 2011-04-01  Bruno Haible  <bruno@clisp.org>
8475
8476         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
8477         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
8478         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
8479         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
8480         Reported by Bruce Korb <bruce.korb@gmail.com>.
8481
8482 2011-04-01  Bruno Haible  <bruno@clisp.org>
8483
8484         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
8485         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
8486         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
8487         * modules/wcpcpy (Depends-on): Add extensions.
8488         * modules/wcpncpy (Depends-on): Likewise.
8489         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
8490         systems.
8491         * doc/posix-functions/wcpncpy.texi: Likewise.
8492         * doc/posix-functions/wcwidth.texi: Likewise.
8493
8494 2011-03-31  Eric Blake  <eblake@redhat.com>
8495
8496         nonblocking: fix mingw test failures
8497         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
8498         non-blocking flag on regular file.
8499         (get_nonblocking_flag): Set errno on invalid fd.
8500         * tests/test-nonblocking.c (main): Avoid test failure on
8501         directories if fchdir is not active.
8502         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
8503
8504 2011-03-31  Bruno Haible  <bruno@clisp.org>
8505
8506         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
8507         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
8508         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
8509         Reported by Simon Josefsson <simon@josefsson.org>.
8510
8511 2011-03-31  Bruno Haible  <bruno@clisp.org>
8512         and Eric Blake  <eblake@redhat.com>
8513
8514         nonblocking: new module
8515         * modules/nonblocking: New module.
8516         * modules/nonblocking-tests: Likewise.
8517         * lib/nonblocking.h: New file.
8518         * lib/nonblocking.c: Likewise.
8519         * tests/test-nonblocking.c: New test.
8520         * lib/ioctl.c (ioctl) [mingw]: Update comment.
8521
8522 2011-03-30  Bruno Haible  <bruno@clisp.org>
8523
8524         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
8525         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
8526         instead of 'printf' format for GCC >= 4.4.
8527         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
8528         (fprintf, printf, vfprintf, vprintf): Declare with
8529         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
8530         the system's vfprintf() function.
8531         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
8532
8533 2011-03-30  Eric Blake  <eblake@redhat.com>
8534
8535         passfd: fix scoping bug
8536         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
8537         before sendmsg/recvmsg.
8538
8539         passfd: standardize coding conventions
8540         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
8541         can be learned at compile time.
8542         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
8543         ifdefs.
8544         (sendfd, recvfd): Follow gnulib code conventions.
8545
8546         passfd: fix incorrect sendmsg arguments
8547         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
8548         incorrect msg_controllen value.
8549         * modules/passfd-tests (Depends-on): Check for alarm.
8550         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
8551         Reported by Bastien ROUCARIES.
8552
8553 2011-03-30  Bruno Haible  <bruno@clisp.org>
8554
8555         c-strcasestr: Relicense under LGPLv2+.
8556         * modules/c-strcasestr (License): Change to LGPLv2+.
8557         Requested by Eric Blake, for libvirt.
8558
8559 2011-03-30  Simon Josefsson  <simon@josefsson.org>
8560
8561         * users.txt: Add libidn2.  Fix libtasn1 link.
8562
8563 2011-03-30  Jim Meyering  <meyering@redhat.com>
8564
8565         tests: readlink* ("",... fails with EINVAL on newer kernels
8566         readlink and readlinkat have typically failed with ENOENT for
8567         the invalid, empty file name,  "".  However, with the advent
8568         of linux-2.6.39, they fail with EINVAL.
8569         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
8570         when operating on the empty file name.
8571         * tests/test-readlink.h (test_readlink): Likewise.
8572
8573 2011-03-29  Bruno Haible  <bruno@clisp.org>
8574
8575         Relicense some modules under LGPLv2+, for libidn2.
8576         * modules/array-mergesort (License): Change to LGPLv2+.
8577         * modules/c-strcaseeq (License): Likewise.
8578         * modules/striconveh (License): Likewise.
8579         * modules/striconveha (License): Likewise.
8580         * modules/uniconv/base (License): Likewise.
8581         * modules/uniconv/u8-conv-from-enc (License): Likewise.
8582         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
8583         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
8584         * modules/unictype/base (License): Likewise.
8585         * modules/unictype/bidiclass-of (License): Likewise.
8586         * modules/unictype/category-M (License): Likewise.
8587         * modules/unictype/category-none (License): Likewise.
8588         * modules/unictype/category-of (License): Likewise.
8589         * modules/unictype/category-test (License): Likewise.
8590         * modules/unictype/category-test-withtable (License): Likewise.
8591         * modules/unictype/combining-class (License): Likewise.
8592         * modules/unictype/joiningtype-of (License): Likewise.
8593         * modules/unictype/scripts (License): Likewise.
8594         * modules/uninorm/base (License): Likewise.
8595         * modules/uninorm/canonical-decomposition (License): Likewise.
8596         * modules/uninorm/composition (License): Likewise.
8597         * modules/uninorm/decompose-internal (License): Likewise.
8598         * modules/uninorm/decomposition-table (License): Likewise.
8599         * modules/uninorm/nfc (License): Likewise.
8600         * modules/uninorm/nfd (License): Likewise.
8601         * modules/uninorm/u32-normalize (License): Likewise.
8602         * modules/unistr/base (License): Likewise.
8603         * modules/unistr/u32-cpy (License): Likewise.
8604         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
8605         * modules/unistr/u32-to-u8 (License): Likewise.
8606         * modules/unistr/u32-uctomb (License): Likewise.
8607         * modules/unistr/u8-check (License): Likewise.
8608         * modules/unistr/u8-mblen (License): Likewise.
8609         * modules/unistr/u8-mbtouc (License): Likewise.
8610         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
8611         * modules/unistr/u8-mbtoucr (License): Likewise.
8612         * modules/unistr/u8-prev (License): Likewise.
8613         * modules/unistr/u8-strlen (License): Likewise.
8614         * modules/unistr/u8-to-u32 (License): Likewise.
8615         * modules/unistr/u8-uctomb (License): Likewise.
8616         * modules/unitypes (License): Likewise.
8617         Requested by Simon Josefsson.
8618
8619 2011-03-29  Simon Josefsson  <simon@josefsson.org>
8620
8621         lib-symbol-visibility: Add a notice.
8622         * modules/lib-symbol-visibility (Notice): New field.
8623
8624 2011-03-29  Bruno Haible  <bruno@clisp.org>
8625
8626         getaddrinfo: Doc fix.
8627         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
8628         section "fixed in Gnulib".
8629
8630 2011-03-28  Simon Josefsson  <simon@josefsson.org>
8631
8632         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
8633         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
8634
8635 2011-03-26  Bruno Haible  <bruno@clisp.org>
8636
8637         unictype/property-byname: Reduce the number of load-time relocations.
8638         * lib/unictype/pr_byname.c: Include <stdlib.h>.
8639         (UC_PROPERTY_INDEX_*): New enumeration values.
8640         (uc_property_byname): Convert an index from the lookup table to an
8641         uc_property_t.
8642         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
8643         values.
8644
8645 2011-03-26  Bruno Haible  <bruno@clisp.org>
8646
8647         unictype/property-byname: Allow omitted word separators and aliases.
8648         * lib/unictype/pr_byname.gperf: Add property names without word
8649         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
8650         for 'space'.
8651
8652 2011-03-26  Bruno Haible  <bruno@clisp.org>
8653
8654         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
8655         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
8656         also hyphens to space.
8657         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
8658         without spaces.
8659         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
8660
8661 2011-03-26  Bruno Haible  <bruno@clisp.org>
8662
8663         unictype/joiningtype-byname: Recognize long names as well.
8664         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
8665         a long name.
8666         * lib/unictype/joiningtype_byname.c: Include <string.h>,
8667         unictype/joiningtype_byname.h.
8668         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
8669         * lib/unictype/joiningtype_byname.gperf: New file.
8670         * modules/unictype/joiningtype-byname (Files): Add
8671         lib/unictype/joiningtype_byname.gperf.
8672         (Depends-on): Add gperf.
8673         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
8674         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
8675         long names.
8676
8677         Tests for module 'unictype/joiningtype-longname'.
8678         * modules/unictype/joiningtype-longname-tests: New file.
8679         * tests/unictype/test-joiningtype_longname.c: New file.
8680
8681         New module 'unictype/joiningtype-longname'.
8682         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
8683         * lib/unictype/joiningtype_longname.c: New file.
8684         * modules/unictype/joiningtype-longname: New file.
8685         * modules/unictype/joiningtype-all (Depends-on): Add
8686         unictype/joiningtype-longname.
8687
8688 2011-03-26  Bruno Haible  <bruno@clisp.org>
8689
8690         unictype/bidiclass-byname: Recognize long names as well.
8691         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
8692         name.
8693         * lib/unictype/bidi_byname.c: Include <string.h>,
8694         unictype/bidi_byname.h.
8695         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
8696         * lib/unictype/bidi_byname.gperf: New file.
8697         * modules/unictype/bidiclass-byname (Files): Add
8698         lib/unictype/bidi_byname.gperf.
8699         (Depends-on): Add gperf.
8700         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
8701         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
8702         long names.
8703
8704         Tests for module 'unictype/bidiclass-longname'.
8705         * modules/unictype/bidiclass-longname-tests: New file.
8706         * tests/unictype/test-bidi_longname.c: New file.
8707
8708         New module 'unictype/bidiclass-longname'.
8709         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
8710         * lib/unictype/bidi_longname.c: New file.
8711         * modules/unictype/bidiclass-longname: New file.
8712         * modules/unictype/bidiclass-all (Depends-on): Add
8713         unictype/bidiclass-longname.
8714
8715 2011-03-26  Bruno Haible  <bruno@clisp.org>
8716
8717         unictype/bidi*: Rename modules.
8718         * modules/unictype/bidiclass-all: Renamed from
8719         modules/unictype/bidicategory-all.
8720         * modules/unictype/bidiclass-name: Renamed from
8721         modules/unictype/bidiclass-name.
8722         (Description): Update.
8723         * modules/unictype/bidiclass-name-tests: Renamed from
8724         modules/unictype/bidicategory-name-tests.
8725         * modules/unictype/bidiclass-byname: Renamed from
8726         modules/unictype/bidicategory-byname.
8727         (Description): Update.
8728         * modules/unictype/bidiclass-byname-tests: Renamed from
8729         modules/unictype/bidicategory-byname-tests.
8730         * modules/unictype/bidiclass-of: Renamed from
8731         modules/unictype/bidicategory-of.
8732         (Description): Update.
8733         * modules/unictype/bidiclass-of-tests: Renamed from
8734         modules/unictype/bidicategory-of-tests.
8735         * modules/unictype/bidiclass-test: Renamed from
8736         modules/unictype/bidicategory-test.
8737         (Description): Update.
8738         * modules/unictype/bidiclass-test-tests: Renamed from
8739         modules/unictype/bidicategory-test-tests.
8740         * modules/unictype/bidicategory-all: New file, a simple redirection.
8741         * modules/unictype/bidicategory-name: Likewise.
8742         * modules/unictype/bidicategory-byname: Likewise.
8743         * modules/unictype/bidicategory-of: Likewise.
8744         * modules/unictype/bidicategory-test: Likewise.
8745         * modules/unictype/property-bidi-* (Dependencies): Update.
8746         * lib/unictype/bidi_*.c: Update comment.
8747
8748 2011-03-26  Bruno Haible  <bruno@clisp.org>
8749
8750         unictype/bidi*: Rename functions, part 2.
8751         * modules/unictype/bidicategory-name (configure.ac): Update required
8752         libunistring version.
8753         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
8754
8755 2011-03-25  Bruno Haible  <bruno@clisp.org>
8756
8757         New module 'unictype/combining-class-all'.
8758         * modules/unictype/combining-class-all: New file.
8759
8760         Tests for module 'unictype/combining-class-byname'.
8761         * modules/unictype/combining-class-byname-tests: New file.
8762         * tests/unictype/test-combiningclass_byname.c: New file.
8763
8764         New module 'unictype/combining-class-byname'.
8765         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
8766         * lib/unictype/combiningclass_byname.c: New file.
8767         * lib/unictype/combiningclass_byname.gperf: New file.
8768         * modules/unictype/combining-class-byname: New file.
8769
8770         Tests for module 'unictype/combining-class-longname'.
8771         * modules/unictype/combining-class-longname-tests: New file.
8772         * tests/unictype/test-combiningclass_longname.c: New file.
8773
8774         New module 'unictype/combining-class-longname'.
8775         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
8776         * lib/unictype/combiningclass_longname.c: New file.
8777         * modules/unictype/combining-class-longname: New file.
8778
8779         Tests for module 'unictype/combining-class-name'.
8780         * modules/unictype/combining-class-name-tests: New file.
8781         * tests/unictype/test-combiningclass_name.c: New file.
8782
8783         New module 'unictype/combining-class-name'.
8784         * lib/unictype.in.h (uc_combining_class_name): New declaration.
8785         * lib/unictype/combiningclass_name.c: New file.
8786         * modules/unictype/combining-class-name: New file.
8787
8788 2011-03-25  Bruno Haible  <bruno@clisp.org>
8789
8790         unictype/combining-class: Rename source files.
8791         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
8792         of unictype/combining.h.
8793         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
8794         Update.
8795         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
8796         * modules/unictype/combining-class (Description): Fix.
8797         (Files, Makefile.am): Update.
8798         * tests/unictype/test-combiningclass.c: Renamed from
8799         tests/unictype/test-combining.c.
8800         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
8801
8802 2011-03-25  Bruno Haible  <bruno@clisp.org>
8803
8804         unictype: Update list of canonical combining classes.
8805         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
8806
8807 2011-03-25  Bruno Haible  <bruno@clisp.org>
8808
8809         unictype/category-byname: Recognize long names as well.
8810         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
8811         a long name.
8812         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
8813         unictype/categ_byname.h.
8814         (UC_CATEGORY_INDEX_*): New enumeration values.
8815         (uc_general_category_byname): Use uc_general_category_lookup and
8816         convert from index to value.
8817         * lib/unictype/categ_byname.gperf: New file.
8818         * modules/unictype/category-byname (Files): Add
8819         lib/unictype/categ_byname.gperf.
8820         (Depends-on): Add gperf.
8821         (Makefile.am): Add rule for generating unictype/categ_byname.h.
8822         * tests/unictype/test-categ_byname.c (main): Test the recognition of
8823         long names.
8824
8825         Tests for module 'unictype/category-longname'.
8826         * modules/unictype/category-longname-tests: New file.
8827         * tests/unictype/test-categ_longname.c: New file.
8828
8829         New module 'unictype/category-longname'.
8830         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
8831         * lib/unictype/categ_longname.c: New file.
8832         * modules/unictype/category-longname: New file.
8833         * modules/unictype/category-all (Depends-on): Add it.
8834
8835 2011-03-25  Bruno Haible  <bruno@clisp.org>
8836
8837         Tests for module 'unictype/category-LC'.
8838         * modules/unictype/category-LC-tests: New file.
8839         * tests/unictype/test-categ_LC.c: New file, automatically generated.
8840
8841         New module 'unictype/category-LC'.
8842         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
8843         (UC_CATEGORY_LC): New declaration.
8844         (UC_CASED_LETTER): New macro.
8845         * lib/gen-uni-tables.c (is_category_LC): New function.
8846         (output_categories): Also handle category LC.
8847         (UC_CATEGORY_MASK_LC): New enumeration value.
8848         (general_category_byname): Also handle category LC.
8849         * lib/unictype/categ_LC.c: New file.
8850         * lib/unictype/categ_LC.h: New file, automatically generated.
8851         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
8852         category LC.
8853         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
8854         * modules/unictype/category-LC: New file.
8855         * modules/unictype/category-byname (Depends-on): Add
8856         unictype/category-LC.
8857         * modules/unictype/category-all (Depends-on): Likewise.
8858
8859 2011-03-25  Eric Blake  <eblake@redhat.com>
8860
8861         xmalloc: revert yesterday's regression
8862         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
8863         realloc's underlying behavior (allowing allocation of zero-size
8864         objects, especially if malloc-gnu is also in use).
8865
8866 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
8867
8868         maint.mk: add missing version to VC-tag
8869         * top/maint.mk: git tag was missing actual tag name; add it.
8870
8871         valgrind: do leak checking, and exit with code 1 on error (not 0)
8872         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
8873         to VALGRIND.
8874
8875 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
8876
8877         posix-modules: say what it does.
8878         * posix-modules: Add a line to the --help output saying what it does.
8879
8880 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
8881
8882         xmalloc: Do not leak if underlying realloc is C99 compatible.
8883         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
8884         This avoids a leak on C99-based systems.  See
8885         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
8886
8887 2011-03-24  Eric Blake  <eblake@redhat.com>
8888
8889         realloc: document portability problem
8890         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
8891         passing 0 size to realloc.
8892
8893 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
8894
8895         doc: update users.txt
8896         * users.txt: Add cvsps, tmpwatch
8897
8898 2011-03-23  Matt Rice  <ratmice@gmail.com>
8899
8900         doc: update users.txt
8901         * users.txt: Add gdb.
8902
8903 2011-03-23  Jim Meyering  <meyering@redhat.com>
8904
8905         doc: update users.txt
8906         Looking through matches up to the following URL (there are still
8907         several more pages), I found several projects that use gnulib:
8908         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
8909         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
8910         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
8911
8912 2011-03-22  Bruno Haible  <bruno@clisp.org>
8913
8914         unictype/bidi*: Rename functions.
8915         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
8916         uc_bidi_class, uc_is_bidi_class): New declarations.
8917         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
8918         uc_bidi_category_byname.
8919         (uc_bidi_category_byname): New function.
8920         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
8921         u_bidi_category_name.
8922         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
8923         (uc_bidi_category_name): New function.
8924         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
8925         uc_bidi_category.
8926         (uc_bidi_category): New function.
8927         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
8928         uc_is_bidi_category. Invoke uc_bidi_class.
8929         (uc_is_bidi_category): New function.
8930         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
8931         instead of uc_bidi_category_byname.
8932         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
8933         instead of uc_bidi_category_name.
8934         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
8935         uc_bidi_category.
8936         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
8937         instead of uc_is_bidi_category.
8938
8939 2011-03-21  Bruno Haible  <bruno@clisp.org>
8940
8941         New module 'unictype/joininggroup-all'.
8942         * modules/unictype/joininggroup-all: New file.
8943
8944         Tests for module 'unictype/joininggroup-of'.
8945         * modules/unictype/joininggroup-of-tests: New file.
8946         * tests/unictype/test-joininggroup_of.c: New file.
8947         * tests/unictype/test-joininggroup_of.h: New file, automatically
8948         generated by gen-uni-tables.
8949
8950         New module 'unictype/joininggroup-of'.
8951         * modules/unictype/joininggroup-of: New file.
8952         * lib/unictype/joininggroup_of.c: New file.
8953         * lib/unictype/joininggroup_of.h: New file, automatically generated by
8954         gen-uni-tables.
8955
8956         Tests for module 'unictype/joininggroup-byname'.
8957         * modules/unictype/joininggroup-byname-tests: New file.
8958         * tests/unictype/test-joininggroup_byname.c: New file.
8959
8960         New module 'unictype/joininggroup-byname'.
8961         * modules/unictype/joininggroup-byname: New file.
8962         * lib/unictype/joininggroup_byname.c: New file.
8963         * lib/unictype/joininggroup_byname.gperf: New file.
8964
8965         Tests for module 'unictype/joininggroup-name'.
8966         * modules/unictype/joininggroup-name-tests: New file.
8967         * tests/unictype/test-joininggroup_name.c: New file.
8968
8969         New module 'unictype/joininggroup-name'.
8970         * modules/unictype/joininggroup-name: New file.
8971         * lib/unictype/joininggroup_name.c: New file.
8972         * lib/unictype/joininggroup_name.h: New file.
8973
8974         New module 'unictype/joiningtype-all'.
8975         * modules/unictype/joiningtype-all: New file.
8976
8977         Tests for module 'unictype/joiningtype-of'.
8978         * modules/unictype/joiningtype-of-tests: New file.
8979         * tests/unictype/test-joiningtype_of.c: New file.
8980         * tests/unictype/test-joiningtype_of.h: New file, automatically
8981         generated by gen-uni-tables.
8982
8983         New module 'unictype/joiningtype-of'.
8984         * modules/unictype/joiningtype-of: New file.
8985         * lib/unictype/joiningtype_of.c: New file.
8986         * lib/unictype/joiningtype_of.h: New file, automatically generated by
8987         gen-uni-tables.
8988
8989         Tests for module 'unictype/joiningtype-byname'.
8990         * modules/unictype/joiningtype-byname-tests: New file.
8991         * tests/unictype/test-joiningtype_byname.c: New file.
8992
8993         New module 'unictype/joiningtype-byname'.
8994         * modules/unictype/joiningtype-byname: New file.
8995         * lib/unictype/joiningtype_byname.c: New file.
8996
8997         Tests for module 'unictype/joiningtype-name'.
8998         * modules/unictype/joiningtype-name-tests: New file.
8999         * tests/unictype/test-joiningtype_name.c: New file.
9000
9001         New module 'unictype/joiningtype-name'.
9002         * modules/unictype/joiningtype-name: New file.
9003         * lib/unictype/joiningtype_name.c: New file.
9004
9005         unictype: Add support for Arabic shaping properties.
9006         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
9007         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
9008         declarations.
9009         (UC_JOINING_GROUP_*): New enumeration values.
9010         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
9011         declarations.
9012         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
9013         (unicode_joining_type): New variable.
9014         (UC_JOINING_GROUP_*): New enumeration values.
9015         (unicode_joining_group): New variable.
9016         (fill_arabicshaping, joining_type_as_c_identifier,
9017         output_joining_type_test, output_joining_type,
9018         joining_group_as_c_identifier, output_joining_group_test,
9019         output_joining_group): New functions.
9020         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
9021         fill_arabicshaping and output_joining_type_test, output_joining_type,
9022         output_joining_group_test, output_joining_group.
9023         Reported by Simon Josefsson.
9024
9025 2011-03-21  Jim Meyering  <meyering@redhat.com>
9026
9027         strftime: fix a bug in yesterday's change
9028         * lib/strftime.c (add): Accommodate width's initial value of -1.
9029         Otherwise, nstrftime would copy uninitialized data into
9030         the result buffer.
9031
9032 2011-03-21  Jim Meyering  <meyering@redhat.com>
9033
9034         tests: add strftime-tests module
9035         * tests/test-strftime.c: New file.
9036         * modules/strftime-tests: New module.
9037
9038 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9039
9040         strftime: don't assume a byte count fits in 'int'
9041         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
9042         found this problem by static analysis, using gcc -Wstrict-overflow
9043         (GCC 4.5.2, x86-64).  This reported an optimization that depended
9044         on an integer overflow having undefined behavior, but it turns out
9045         that the argument is a size, which might not fit in 'int' anyway,
9046
9047 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9048
9049         stdio: don't require ignore_value around fwrite
9050
9051         This patch works around libc bug 11959
9052         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
9053         Without this patch, applications must often write
9054         ignore_value (fwrite (...)) even though the ignore_value is
9055         not helpful here.  It's common to write many objects, using
9056         fwrite/printf/etc., and then use ferror to detect output error.
9057
9058         I considered making this patch optional, but decided against it,
9059         because libc is obviously being inconsistent here: there is no
9060         reason libc should insist that user code must inspect fwrite
9061         return's value without also insisting that it inspect printf's,
9062         putchar's, etc.  If user code wants to have a strict style where
9063         all these functions' values are checked (so that ferror need not
9064         be checked), we could add support for that style in a new gnulib
9065         module, but in the meantime it's better to be consistent and to
9066         support common usage.
9067
9068         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
9069         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
9070         that we are compiling in checking mode, and if not C++, and
9071         if not already wrapping fwrite for some other reason.
9072         (fwrite): #define to rpl_fwrite if the latter is defined.
9073
9074 2011-03-20  Bruno Haible  <bruno@clisp.org>
9075
9076         verror: Fix compilation error introduced on 2011-02-13.
9077         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
9078         instead of __attribute__.
9079         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9080
9081 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
9082             Bruno Haible  <bruno@clisp.org>
9083
9084         socklen: do not depend on sys_socket
9085         While trying to modify Emacs to use gnulib's socklen module,
9086         I discovered a circular dependency: socklen depends on sys_socket
9087         and vice versa.  Emacs can use socklen, but it does not need
9088         sys_socket because it has its own substitute for sys/socket.h.
9089         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
9090         gl_TYPE_SOCKLEN_T.
9091         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
9092         gl_PREREQ_SYS_H_SOCKET.
9093         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
9094         gl_PREREQ_SYS_H_SOCKET.
9095         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
9096         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
9097         * modules/socklen (Depends-on): Do not depend on sys_socket.
9098         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
9099
9100 2011-03-20  Jim Meyering  <meyering@redhat.com>
9101
9102         maint.mk: sort file names *after* new transformation
9103         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
9104         prefix would have led to an unwarranted failure in GNU parted.
9105         Sort after that transformation.
9106
9107 2011-03-19  Jim Meyering  <meyering@redhat.com>
9108
9109         maint.mk: fix po-file syntax-check rule
9110         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
9111         Patch by Bruno Haible.
9112
9113 2011-03-19  Bruno Haible  <bruno@clisp.org>
9114
9115         socklen: Update comment.
9116         * m4/socklen.m4: Update comment about platforms.
9117
9118 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9119             Bruno Haible  <bruno@clisp.org>
9120
9121         inet_ntop, inet_pton: Simplify.
9122         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
9123         documented to provide socklen_t and we already depend on sys_socket.
9124         * modules/inet_pton (Depends-on): Likewise.
9125         * lib/arpa_inet.in.h: Adjust comment.
9126
9127 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
9128             Bruno Haible  <bruno@clisp.org>
9129
9130         netdb: Simplify.
9131         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
9132         documented to provide socklen_t and we already depend on sys_socket.
9133         * lib/netdb.in.h: Adjust comment.
9134
9135 2011-03-19  Bruno Haible  <bruno@clisp.org>
9136
9137         sys_socket, netdb: Document problem with socklen_t.
9138         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
9139         platforms.
9140         * doc/posix-headers/netdb.texi: Likewise.
9141
9142 2011-03-18  Eric Blake  <eblake@redhat.com>
9143
9144         maint.mk: let po check work in VPATH build
9145         * top/maint.mk (po_file): Allow cfg.mk override.
9146         (sc_po_check): Allow VPATH use.
9147         Reported by Jiri Denemark.
9148
9149 2011-03-16  Jim Meyering  <meyering@redhat.com>
9150
9151         maint.mk: allow fine-grained syntax-check exclusion via Make variables
9152         Before, you would have had to create one .x-sc_ file per rule in order
9153         to exempt offending files.  Now, you may instead use a Make variable --
9154         usually defined in cfg.mk -- whose name identifies the affected rule.
9155         * top/maint.mk (_sc_excl): Define.
9156         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
9157         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
9158
9159 2011-03-13  Bruno Haible  <bruno@clisp.org>
9160
9161         ignore-value tests: Avoid warnings.
9162         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
9163         empty for gcc < 3.4.
9164
9165 2011-03-13  Bruno Haible  <bruno@clisp.org>
9166
9167         passfd: Fix link error on Solaris.
9168         * modules/passfd (Description): Correct.
9169         (Depends-on): Add socketlib.
9170         (Link): New section.
9171         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
9172
9173 2011-03-13  Bruno Haible  <bruno@clisp.org>
9174
9175         passfd: Fix link error on AIX 5.2.
9176         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
9177
9178 2011-03-13  Bruno Haible  <bruno@clisp.org>
9179
9180         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
9181         * lib/sys_socket.in.h: Include <stddef.h>.
9182         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
9183         CMSG_FIRSTHDR. Remove unused variable.
9184
9185 2011-03-13  Bruno Haible  <bruno@clisp.org>
9186
9187         passfd: Fix compilation error on OpenBSD.
9188         * lib/passfd.c: Include <sys/uio.h>.
9189
9190 2011-03-13  Bruno Haible  <bruno@clisp.org>
9191
9192         passfd test: Fix warnings.
9193         * tests/test-passfd.c: Include <sys/wait.h>.
9194         (main): Fix typo.
9195
9196 2011-03-13  Bruno Haible  <bruno@clisp.org>
9197
9198         passfd module, part 4, tweaks.
9199         * tests/test-passfd.c: Reorder includes.
9200         (main): Fix perror and printf calls.
9201
9202 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9203
9204         passfd module, part 4.
9205         * modules/passfd-tests: New file.
9206         * tests/test-passfd.c: New file.
9207
9208 2011-03-13  Jim Meyering  <meyering@redhat.com>
9209
9210         Makefile: rely on GNU make; derive syntax-check rule names
9211         Rather than requiring that each sc_ rule be listed as a dependent
9212         of "check", use features of GNU make to derive the list.
9213         * Makefile (syntax-check-rules): Define.
9214         (check): Depend on the new variable, not the hard-coded list.
9215
9216 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
9217             Bruno Haible  <bruno@clisp.org>
9218
9219         passfd module, part 3.
9220         * lib/passfd.h (recvfd): Add a flags argument.
9221         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
9222         (recvfd): Add a flags argument.
9223         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
9224         exists.
9225         * modules/passfd (Depends-on): Add cloexec.
9226         Suggested by Eric Blake.
9227
9228 2011-03-13  Bruno Haible  <bruno@clisp.org>
9229
9230         passfd module, part 2, tweaks.
9231         * modules/passfd (Files): Reorder.
9232         (Depends-on): Remove errno.
9233         (Include): Remove <sys/socket.h>, <sys/un.h>.
9234         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
9235         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
9236         specification header. Include <sys/socket.h> always. Don't include
9237         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
9238         (sendfd): Clarify that it sets errno when it fails.
9239         (recvfd): Fix specification.
9240
9241 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9242
9243         passfd module, part 2.
9244         * modules/passfd: New file.
9245         * lib/passfd.h: New file.
9246         * lib/passfd.c: New file.
9247
9248 2011-03-12  Bruno Haible  <bruno@clisp.org>
9249
9250         wcswidth, mbswidth: Avoid integer overflow.
9251         * lib/wcswidth.c: Include <limits.h>.
9252         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
9253         * lib/mbswidth.c: Include <limits.h>.
9254         (mbsnwidth): Avoid 'int' overflow.
9255         Reported by Jim Meyering.
9256
9257 2011-03-12  Bruno Haible  <bruno@clisp.org>
9258
9259         futimens, utimensat: Avoid endless recursion on Solaris 10.
9260         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
9261         Solaris.
9262         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
9263         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
9264
9265 2011-03-11  Jim Meyering  <meyering@redhat.com>
9266
9267         maint.mk: relax a regexp to accommodate other formatting styles
9268         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
9269         between "ngettext" and the following "(".
9270
9271 2011-03-11  Pádraig Brady <P@draigBrady.com>
9272
9273         maint.mk: suppress a false positive warning
9274         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
9275         diagnostics are marked with ngettext.
9276
9277 2011-03-10  Eric Blake  <eblake@redhat.com>
9278
9279         wchar: add explicit dependencies, for Tru64
9280         * modules/mbmemcasecoll (Depends-on): Add wchar.
9281         * modules/mbtowc (Depends-on): Likewise.
9282         * modules/vasnprintf (Depends-on): Likewise.
9283         * modules/unistdio/u-printf-args (Depends-on): Likewise.
9284         * modules/wctomb (Depends-on): Likewise.
9285         Reported by Peter O'Gorman.
9286
9287 2011-03-08  Bruno Haible  <bruno@clisp.org>
9288
9289         passfd module, part 1, tweaks.
9290         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
9291         Improve indentation. Improve AC_MSG_CHECKING messages.
9292         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
9293         gl_SOCKET_FAMILIES.
9294
9295 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
9296
9297         passfd module, part 1.
9298         * m4/afunix.m4: New file.
9299         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
9300         sockets.
9301
9302 2011-03-08  Bruno Haible  <bruno@clisp.org>
9303
9304         regex-quote: New API.
9305         * lib/regex-quote.h: Include <stdbool.h>.
9306         (struct regex_quote_spec): New type.
9307         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9308         New declarations.
9309         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9310         'const struct regex_quote_spec *' argument.
9311         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
9312         (pcre_special): New constant.
9313         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
9314         New functions.
9315         (regex_quote_length, regex_quote_copy, regex_quote): Take a
9316         'const struct regex_quote_spec *' argument.
9317         * modules/regex-quote (Depends-on): Add stdbool.
9318         * tests/test-regex-quote.c (check): Update for new API. Add test for
9319         anchored results.
9320         * NEWS: Mention the API change.
9321         Reported by Reuben Thomas and Eric Blake.
9322
9323 2011-03-06  Bruno Haible  <bruno@clisp.org>
9324
9325         regex-quote: Fix creation of POSIX extended regular expressions.
9326         * lib/regex-quote.c (ere_special): Add grouping and alternation
9327         operators.
9328
9329 2011-03-05  Bruno Haible  <bruno@clisp.org>
9330
9331         doc: Improve doc regarding autopoint vs. gnulib.
9332         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
9333         disable autopoint while running autoreconf.
9334         Suggested by Ralf Wildenhues.
9335
9336 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9337
9338         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
9339         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
9340
9341 2011-03-03  Bruce Korb  <bkorb@gnu.org>
9342
9343         parse-duration: remove xalloc.h dependency
9344         * lib/parse-duration.c (parse_period): handle NULL return from
9345         strdup instead of calling xstrdup().
9346         * modules/parse-duration: remove "xalloc" dependency
9347
9348 2011-03-03  Matthew Booth  <mbooth@redhat.com>
9349
9350         bootstrap: honor m4_base when running aclocal
9351         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
9352
9353 2011-03-02  Jim Meyering  <meyering@redhat.com>
9354
9355         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
9356         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
9357         on request from Matt Booth.
9358
9359 2011-03-01  Eric Blake  <eblake@redhat.com>
9360
9361         test-link: work on Hurd
9362         * tests/test-link.h (test_link): Hurd rejects linking directories
9363         with EISDIR instead of the POSIX-mandated EPERM.
9364
9365 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
9366
9367         stdio: simplify by moving files to printf-posix, sigpipe
9368         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
9369         since this symbol is needed only if printf is replaced.
9370         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
9371         Require gl_ASM_SYMBOL_PREFIX.
9372         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
9373         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
9374         (Depends-on): Add 'raise'.
9375         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
9376         * modules/stdio (Files): Remove lib/stdio-write.c,
9377         m4/asm-underscore.m4.
9378         (Depends-on): Remove 'raise'.
9379
9380         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
9381         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
9382         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
9383         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
9384
9385 2011-02-28  Bruno Haible  <bruno@clisp.org>
9386
9387         localcharset: Assume ANSI C behaviour of free().
9388         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
9389         calling free().
9390         Suggested by Simon Josefsson <simon@josefsson.org>.
9391
9392 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
9393             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
9394             Bruno Haible  <bruno@clisp.org>  (tiny change)
9395
9396         On Cygwin, use /proc file system instead of win32 API.
9397         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
9398         Win32 file names.
9399         (DllMain): Simplify by removing Cygwin specific code.
9400         (find_shared_library_fullname): Use Linux specific implementation also
9401         for Cygwin.
9402         (get_shared_library_fullname): Update accordingly.
9403         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
9404         Win32 file names.
9405         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
9406         Cygwin specific code.
9407
9408 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
9409             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
9410
9411         Fix OpenMP flag detection for various Fortran compilers.
9412         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
9413         OpenMP-conditional compilation construct, to force compile
9414         failure with missing OpenMP flag.
9415         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
9416
9417 2011-02-25  Eric Blake  <eblake@redhat.com>
9418
9419         strstr: expand test coverage
9420         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
9421         compilation.
9422         * tests/test-memmem.c (main): Duplicate tests.
9423         * tests/test-strcasestr.c (main): Likewise.
9424         * tests/test-c-strcasestr.c (main): Likewise.
9425
9426 2011-02-25  Jim Meyering  <meyering@redhat.com>
9427
9428         maint.mk: detect missing-NL-at-EOF, too
9429         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
9430         it also detects when a file lacks a newline at EOF.
9431         (require_exactly_one_NL_at_EOF_): Renamed from
9432         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
9433         since people may well have .x-sc_... file names tied to the
9434         existing name.  Suggested by Eric Blake.
9435
9436 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
9437
9438         dirname: move m4/dos.m4 functionality into lib/dosname.h
9439
9440         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
9441         extracts symbols from it, puts them into config.h; but it's much
9442         easier to use the symbols directly.  filename.h already does this,
9443         but it disagrees with dos.m4 in some respects.  This patch
9444         introduces a different include file dosname.h that packages up
9445         dos.m4, and then later we can work on merging filename.h and
9446         dosname.h.  Applications that need only the easy-to-configure
9447         symbols should consider including dosname.h rather than dirname.h.
9448         * NEWS: Mention incompatible changes.
9449         * m4/dos.m4: Remove.
9450         * lib/dosname.h, modules/dosname: New files.
9451         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
9452         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
9453         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
9454         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
9455         Include dosname.h, not dirname.h.
9456         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
9457         Include dosname.h, for definitions of symbols like ISSLASH
9458         that used to be in config.h.
9459         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
9460         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
9461         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
9462         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
9463         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
9464         * modules/rmdir (Files): Likewise.
9465         * modules/stat (Files): Likewise.
9466         * modules/unlink (Files): Likewise.
9467         * modules/dirname-lgpl (Depends-on): Add dosname.
9468         * modules/lstat (Depends-on): Likewise.
9469         * modules/openat (Depends-on): Likewise.
9470         * modules/rmdir (Depends-on): Likewise.
9471         * modules/savewd (Depends-on): Likewise.
9472         * modules/stat (Depends-on): Likewise.
9473         * modules/unlink (Depends-on): Likewise.
9474         * modules/openat (Depends-on): Remove dirname-lgpl.
9475         * modules/savewd (Depends-on): Likewise.
9476         * tests/test-dirname.c: Do not use removed symbols like
9477         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
9478         the remaining symbols, e.g., ISSLASH ('\\').
9479
9480 2011-02-25  Eric Blake  <eblake@redhat.com>
9481
9482         strstr: revert patches that introduced bug and pessimization
9483         * lib/str-two-way.h: Add another reference.
9484         (two_way_short_needle, two_way_long_needle): Revert changes from
9485         2011-02-24; they pessimize search speed.
9486         (critical_factorization): Partially revert changes from
9487         2010-06-22; they violate the requirement that the left half of the
9488         needle be smaller than the period of the needle.
9489
9490 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
9491
9492         filenamecat: remove unnecessary dependency on dirname-lgpl
9493         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
9494         is no direct dependency, just an indirect one via filenamecat-lgpl.
9495
9496         remove: remove unnecessary use of m4/dos.m4
9497         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
9498         * modules/remove (FILES): Remove m4/dos.m4.
9499
9500         * lib/openat-proc.c: Don't include dirname.h; not needed.
9501
9502         backupfile: remove unnecessary use of m4/dos.m4
9503         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
9504         of its symbols are used by the backupfile code.  backupfile.c does
9505         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
9506         for the rare case of programs that want all their backup file
9507         names to live within 8+3 limits, and dos.m4 doesn't address that.
9508         * modules/backupfile (Files): Remove m4/dos.m4.
9509
9510 2011-02-24  Jim Meyering  <meyering@redhat.com>
9511
9512         strstr: fix a bug whereby strstr would mistakenly return NULL
9513         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
9514         in period calculation.
9515         (two_way_long_needle): Likewise.
9516         The original problem was reported by Mike Stump in
9517         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
9518         Ralf Wildenhues provided the short needle and haystack.
9519         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
9520         Add a more involved test to trigger the bug in two_way_long_needle.
9521
9522 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
9523
9524         gnulib-tool: remove use of bold display in help screen
9525         * gnulib-tool (func_usage): Do not use bold display anymore in the
9526         help screen.  That was just meant to be a temporary emphasis for a
9527         backward-incompatible change.
9528
9529 2011-02-23  Bruno Haible  <bruno@clisp.org>
9530
9531         Fix misindentation of preprocessor directives.
9532         * lib/argp-namefrob.h: Reindent preprocessor directives.
9533         * lib/getopt_int.h (struct _getopt_data): Likewise.
9534         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
9535         * lib/vasnprintf.c (decode_long_double): Likewise.
9536         * tests/test-argmatch.c: Insert blank lines, for clarity.
9537         * tests/test-exclude.c: Likewise.
9538
9539 2011-02-22  Bruno Haible  <bruno@clisp.org>
9540
9541         ioctl: Fix for MacOS X in 64-bit mode.
9542         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
9543         value.
9544         Suggested by Eric Blake.
9545         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
9546
9547 2011-02-22  Jim Meyering  <meyering@redhat.com>
9548
9549         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
9550         * Makefile (sc_cpp_indent_check): Don't limit the check to files
9551         in lib/.
9552
9553 2011-02-22  Eric Blake  <eblake@redhat.com>
9554
9555         maint: avoid any CDPATH issue
9556         * Makefile (sc_cpp_indent_check): Anchor cd argument.
9557
9558         maint: adjust cpp indentation for my modules, as well
9559         * Makefile (sc_cpp_indent_check): Add my name.
9560         * lib/fbufmode.c: Filter through cppi.
9561         * lib/fpurge.c: Likewise.
9562         * lib/freadable.c: Likewise.
9563         * lib/freading.c: Likewise.
9564         * lib/fwritable.c: Likewise.
9565         * lib/fwriting.c: Likewise.
9566         * lib/sigaction.c: Likewise.
9567
9568 2011-02-22  Jim Meyering  <meyering@redhat.com>
9569
9570         maint: adjust cpp indentation to reflect nesting depth
9571         I.e., in a block of code that begins with an unnested "#if",
9572         put one space between the "#" in column 1 and following token.
9573         For example,
9574         -#include <sys/vfs.h>
9575         +# include <sys/vfs.h>
9576         Do this only in .c files that are part of a module I maintain.
9577         * lib/linkat.c: Filter through cppi.
9578         * lib/nanosleep.c: Likewise.
9579         * lib/openat.c: Likewise.
9580         * lib/openat-die.c: Likewise.
9581         * lib/dup3.c: Likewise.
9582         * lib/fchownat.c: Likewise.
9583         * lib/flock.c: Likewise.
9584         * lib/fsync.c: Likewise.
9585         * lib/fts.c: Likewise.
9586         * lib/getpass.c: Likewise.
9587         * lib/gettimeofday.c: Likewise.
9588         * lib/userspec.c: Likewise.
9589         * Makefile (sc_cpp_indent_check): New rule, to check this.
9590
9591 2011-02-22  Bruno Haible  <bruno@clisp.org>
9592
9593         New module 'wctomb'.
9594         * lib/stdlib.in.h (wctomb): New declaration.
9595         * lib/wctomb.c: New file.
9596         * lib/wctomb-impl.h: New file.
9597         * m4/wctomb.m4: New file.
9598         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
9599         REPLACE_WCTOMB.
9600         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
9601         REPLACE_WCTOMB.
9602         * modules/wctomb: New file.
9603         * tests/test-stdlib-c++.cc: Test signature of wctomb.
9604         * doc/posix-functions/wctomb.texi: Mention the new module.
9605         * modules/wctob (Depends-on): Add wctomb.
9606
9607 2011-02-22  Bruno Haible  <bruno@clisp.org>
9608
9609         New module 'mbtowc'.
9610         * lib/stdlib.in.h (mbtowc): New declaration.
9611         * lib/mbtowc.c: New file.
9612         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
9613         * m4/mbtowc.m4: New file.
9614         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
9615         REPLACE_MBTOWC.
9616         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
9617         REPLACE_MBTOWC.
9618         * modules/mbtowc: New file.
9619         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
9620         * doc/posix-functions/mbtowc.texi: Mention the new module.
9621         * modules/btowc (Depends-on): Add mbtowc.
9622
9623 2011-02-22  Bruno Haible  <bruno@clisp.org>
9624
9625         wcrtomb: Add more tests for native Windows platforms.
9626         * tests/test-wcrtomb-w32-1.sh: New file.
9627         * tests/test-wcrtomb-w32-2.sh: New file.
9628         * tests/test-wcrtomb-w32-3.sh: New file.
9629         * tests/test-wcrtomb-w32-4.sh: New file.
9630         * tests/test-wcrtomb-w32-5.sh: New file.
9631         * tests/test-wcrtomb-w32.c: New file.
9632         * modules/wcrtomb-tests (Files): Add them.
9633         (Makefile.am): Arrange to run these tests.
9634         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
9635         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
9636
9637 2011-02-20  Bruno Haible  <bruno@clisp.org>
9638
9639         wcrtomb: Enhance test.
9640         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
9641
9642 2011-02-20  Bruno Haible  <bruno@clisp.org>
9643
9644         mbrtowc: Tiny optimization.
9645         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
9646
9647 2011-02-20  Jim Meyering  <meyering@redhat.com>
9648
9649         test-exclude.c: remove unmatched #endif
9650         * tests/test-exclude.c: Remove stray #endif, left over from
9651         the change of a week ago.
9652
9653 2011-02-19  Jim Meyering  <meyering@redhat.com>
9654
9655         git-version-gen: skip "-dirty" check when appropriate
9656         * build-aux/git-version-gen: Don't run any git commands when the
9657         version string comes from .tarball-version.  Prior to this, we
9658         would run git update-index --refresh even from a just-unpacked
9659         tarball directory, and that could affect a .git/ directory in a
9660         parent of the build directory.  Reported by Mike Frysinger.
9661
9662 2011-02-19  Bruno Haible  <bruno@clisp.org>
9663
9664         unictype/property-byname: Reduce the size of the 'data' segment.
9665         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
9666
9667 2011-02-19  Bruno Haible  <bruno@clisp.org>
9668
9669         unictype/scripts: Reduce the size of the 'data' segment.
9670         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
9671         '%pic'.
9672         * lib/unictype/scripts_byname.gperf: Regenerated.
9673
9674 2011-02-19  Bruno Haible  <bruno@clisp.org>
9675
9676         stdint: Update documentation.
9677         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
9678
9679 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
9680
9681         stdint: omit redundant check for wchar.h
9682         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
9683         always tests whether wchar.h exists, so remove the now-redundant test.
9684
9685 2011-02-18  Bruno Haible  <bruno@clisp.org>
9686
9687         stdint: Cut dependency to module 'wchar'.
9688         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
9689         include the necessary prerequisites.
9690         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
9691         * modules/stdint (Depends-on): Remove wchar.
9692         (Makefile.am): Substitute HAVE_WCHAR_H.
9693         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
9694
9695 2011-02-18  Eric Blake  <eblake@redhat.com>
9696
9697         longlong: skip, rather than fail, on cross-compilation
9698         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
9699         when cross-compiling; regression from 2011-02-16.
9700
9701 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9702
9703         * NEWS: Mention 2011-02-08 change to stdlib.
9704
9705 2011-02-17  Bruno Haible  <bruno@clisp.org>
9706
9707         getloadavg: Add comments about platforms.
9708         * m4/getloadavg.m4: Add comment.
9709         * lib/getloadavg.c: Likewise.
9710
9711 2011-02-17  Bruno Haible  <bruno@clisp.org>
9712
9713         getloadavg: Fix link error on Solaris 2.6.
9714         * modules/getloadavg (Link): New section.
9715         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
9716         linking test-getloadavg.
9717         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
9718         getloadavg.
9719
9720 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
9721
9722         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
9723         It was 'int', but this doesn't match the IRIX 6.5 manual.
9724         Suggested by Bruno Haible in
9725         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
9726
9727 2011-02-17  Bruno Haible  <bruno@clisp.org>
9728
9729         havelib: Fix comments.
9730         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
9731         change.
9732
9733 2011-02-17  Bruno Haible  <bruno@clisp.org>
9734
9735         havelib: Update config.rpath.
9736         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
9737
9738 2011-02-17  Bruno Haible  <bruno@clisp.org>
9739
9740         getloadavg test: Add some plausibility checks.
9741         * tests/test-getloadavg.c (check_avg): Print a warning when the value
9742         is improbable.
9743
9744 2011-02-16  Eric Blake  <eblake@redhat.com>
9745
9746         maintainer-makefile: make syntax-check a no-op from tarballs
9747         * top/maint.mk (no-vc-detected): New rule.
9748         (local-checks-available): Use it to avoid hanging if someone tries
9749         'make syntax-check' from a tarball.  Also append to any non-syntax
9750         checks already defined in cfg.mk.
9751
9752 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
9753
9754         longlong: tune, particularly for common case of c99
9755
9756         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
9757         or running anything if c99, or if unsigned long long int does not
9758         work.  In either case, we know the answer without further tests.
9759         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
9760         it at most once, and use its results for both long long int and
9761         unsigned long long int.  This is more likely to be efficient in
9762         the common case where the program wants to check for both long
9763         long int and unsigned long long int.
9764         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
9765         since the answer is already known.
9766
9767 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
9768
9769         getloadavg: set errno
9770         * lib/getloadavg.c: Set errno when returning -1.  If no other
9771         error number looks appropriate, set it to ENOSYS if the getloadavg
9772         looks like it can't possibly ever work, ENOTSUP otherwise.
9773         Suggested by Bruno Haible in
9774         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
9775
9776         getloadavg: trim unused parts and speed up 'configure'
9777         * NEWS: Document this.
9778         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
9779         always compiled if getloadavg is absent.
9780         Move test code to ...
9781         * tests/test-getloadavg.c: New file, containing previous
9782         contents of test from lib/getloadavg.c.  It also contains
9783         suggestions by Bruno Haible in
9784         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
9785         * modules/getloadavg-tests: New file.
9786         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
9787         Do tests in the same order as they're needed for getloadavg.c.
9788         Omit setgid-related tests that generate symbols KMEM_GROUP,
9789         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
9790         Do only the tests that are needed to see whether the system has
9791         getloadavg, moving the other tests into ...
9792         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
9793         NLIST_NAME_UNION; nobody should be using it.  Do not define
9794         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
9795         relevant, as the user of this module shouldn't care how getloadavg
9796         is implemented.
9797
9798         getloadavg: omit unused var
9799         * lib/getloadavg.c (getloadavg): Omit unused local variable.
9800
9801 2011-02-15  Jim Meyering  <meyering@redhat.com>
9802
9803         doc: update users.txt
9804         * users.txt: Update iwhd's URL.
9805
9806 2011-02-13  Bruno Haible  <bruno@clisp.org>
9807
9808         Consistent macro naming for macros that use GCC __attribute__.
9809         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
9810         _ATTRIBUTE_NONNULL_.
9811         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
9812         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
9813         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
9814         ATTRIBUTE_DEPRECATED.
9815         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
9816         ATTRIBUTE_NORETURN.
9817         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9818         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9819         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9820         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
9821         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
9822         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
9823         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
9824         ATTRIBUTE_SENTINEL.
9825         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
9826         ATTRIBUTE_RETURN_CHECK.
9827         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
9828         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
9829         ATTRIBUTE_NORETURN.
9830         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
9831         Reported by Paul Eggert.
9832
9833 2011-02-13  Bruno Haible  <bruno@clisp.org>
9834
9835         Don't interfere with a program's definition of __attribute__.
9836         * lib/argp.h (__attribute__): Remove definition.
9837         (_GL_ATTRIBUTE_FORMAT): New macro.
9838         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
9839         * lib/argp-fmtstream.h (__attribute__): Remove definition.
9840         (_GL_ATTRIBUTE_FORMAT): New macro.
9841         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
9842         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
9843         GCC 3 or newer.
9844         * lib/error.h (__attribute__): Remove definition.
9845         (_GL_ATTRIBUTE_FORMAT): New macro.
9846         (error, error_at_line): Use it.
9847         * lib/hash.h (__attribute__): Remove definition.
9848         (ATTRIBUTE_WUR): Update definition. Define always.
9849         * lib/openat.h (__attribute__): Remove definition.
9850         (ATTRIBUTE_NORETURN): Update definition. Define always.
9851         * lib/sigpipe-die.h (__attribute__): Remove definition.
9852         (ATTRIBUTE_NORETURN): Update definition. Define always.
9853         * lib/vasnprintf.h (__attribute__): Remove definition.
9854         (_GL_ATTRIBUTE_FORMAT): New macro.
9855         (asnprintf, vasnprintf): Use it.
9856         * lib/xalloc.h (__attribute__): Remove definition.
9857         (ATTRIBUTE_NORETURN): Update definition. Define always.
9858         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
9859         * lib/xmemdup0.h (__attribute__): Remove definition.
9860         (ATTRIBUTE_NORETURN): Update definition. Define always.
9861         * lib/xprintf.h (__attribute__): Remove definition.
9862         (_GL_ATTRIBUTE_FORMAT): New macro.
9863         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
9864         * lib/xstrtol.h (__attribute__): Remove definition.
9865         (ATTRIBUTE_NORETURN): Update definition. Define always.
9866         * lib/xvasprintf.h (__attribute__): Remove definition.
9867         (_GL_ATTRIBUTE_FORMAT): New macro.
9868         (xasprintf, xvasprintf): Use it.
9869         * tests/test-argmatch.c (__attribute__): Remove definition.
9870         (ATTRIBUTE_NORETURN): Update definition. Define always.
9871         * tests/test-exclude.c (__attribute__): Remove definition.
9872         (ATTRIBUTE_NORETURN): Update definition. Define always.
9873         Reported by Paul Eggert.
9874
9875 2011-02-13  Bruno Haible  <bruno@clisp.org>
9876
9877         mbrtowc: Add more tests for native Windows platforms.
9878         * tests/test-mbrtowc-w32-1.sh: New file.
9879         * tests/test-mbrtowc-w32-2.sh: New file.
9880         * tests/test-mbrtowc-w32-3.sh: New file.
9881         * tests/test-mbrtowc-w32-4.sh: New file.
9882         * tests/test-mbrtowc-w32-5.sh: New file.
9883         * tests/test-mbrtowc-w32.c: New file.
9884         * modules/mbrtowc-tests (Files): Add them.
9885         (Makefile.am): Arrange to run these tests.
9886         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
9887         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
9888
9889 2011-02-13  Bruno Haible  <bruno@clisp.org>
9890
9891         mbrtowc: Work around native Windows bug.
9892         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
9893         guess when no suitable locale for testing was found.
9894         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
9895
9896 2011-02-13  Bruno Haible  <bruno@clisp.org>
9897
9898         mbsinit: Work around mingw bug.
9899         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
9900         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
9901         Windows.
9902         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
9903
9904 2011-02-13  Bruno Haible  <bruno@clisp.org>
9905
9906         mbsinit: Don't crash for a NULL argument.
9907         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
9908         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
9909
9910 2011-02-13  Bruno Haible  <bruno@clisp.org>
9911
9912         Don't interfere with a program's definition of __attribute__.
9913         * lib/stdio.in.h (__attribute__): Remove definition.
9914         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
9915         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
9916         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
9917         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
9918         * lib/string.in.h (__attribute__): Remove definition.
9919         Reported by Paul Eggert.
9920
9921 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9922
9923         stdlib: don't get in the way of non-GCC __attribute__
9924         See thread starting at
9925         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
9926         Revert previous stdlib change, installing the following instead:
9927         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
9928         to get in the way of a non-GCC compiler that supports __attribute__.
9929         (_GL_ATTRIBUTE_RETURN): New macro.
9930         (_Exit): Use it instead of __attribute__.
9931
9932 2011-02-12  Bruno Haible  <bruno@clisp.org>
9933
9934         quotearg test: Avoid test failure on mingw.
9935         * tests/test-quotearg.sh: Convert the locale identifier from native
9936         Windows syntax to Unix syntax.
9937
9938 2011-02-12  Bruno Haible  <bruno@clisp.org>
9939
9940         setlocale: Prefer gnulib's override over libintl's override.
9941         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
9942         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
9943         GNULIB_defined_setlocale is set.
9944
9945 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
9946
9947         stdlib: support non-GCC __attribute__
9948
9949         Fix a serious and tricky problem encountered when attempting to
9950         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
9951         5.5, but it crashed due to memory corruption on Solaris 10 with
9952         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
9953         bits that are otherwise zero.  This tagging is optional inside
9954         Emacs but is preferred and is used when __attribute__ ((__aligned
9955         (8))) works, as it does with both recent-enough GCC and with Sun C
9956         5.11.  However, Sun C 5.11 is not GCC and does not #define
9957         __GNUC__ and __GNUC_MINOR__.
9958
9959         When I added the getloadavg module to Emacs, it brought in
9960         stdlib.in.h, which contained this fragment:
9961
9962            #ifndef __attribute__
9963            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
9964            #  define __attribute__(Spec)   /* empty */
9965            # endif
9966            #endif
9967
9968         When files that include <stdlib.h> were compiled with Sun C 5.11,
9969         the above code disabled __attribute__ ((__aligned (8))), which
9970         caused variables to not be properly aligned, which eventually led
9971         to the pointer corruption mentioned above.  (This was a bit hard
9972         to diagnose, unfortunately.)
9973
9974         Several "#define __attribute__(X) /* empty */" code snippets need
9975         to be eradicated from Gnulib to work with non-GCC compilers that
9976         support __attribute__.  The Autoconf way to do this is to test for
9977         each kind of attribute that we want support for, and selectively
9978         enable that in source code.
9979
9980         Fix this problem just for stdlib.h, by adding a test for the
9981         __noreturn__ attribute, and change stdlib.in.h to use that test
9982         when needed.  This technique can be easily generalized to the
9983         other *.in.h files and attributes, and a similar technique can be
9984         used for *.h and *.c files.  This patch is enough to solve the
9985         problem for Emacs + getloadavg, and I thought I'd publish it for
9986         feedback before undertaking further, similar fixes in other
9987         modules.
9988
9989         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
9990         because it's not needed for stdlib.h.  It merely substitutes the
9991         value directly into stdlib.h.  We may well need to #define it, or
9992         similar symbols, for other modules, but it's nice to also have an
9993         option to not #define it for applications like Emacs that do not
9994         need it.
9995
9996         * lib/stdlib.in.h (__attribute__): Do not #define.
9997         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
9998         be defined only if the _Exit module is also used.
9999         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
10000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
10001         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
10002         platforms.
10003         * modules/_Exit (Files): Add m4/attribute.m4.
10004         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
10005         * m4/attribute.m4: New file.
10006
10007 2011-02-12  Bruno Haible  <bruno@clisp.org>
10008
10009         wcsrtombs: Work around bug on native Windows.
10010         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
10011         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
10012         instead of len.
10013         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
10014
10015 2011-02-12  Bruno Haible  <bruno@clisp.org>
10016
10017         mbsrtowcs: Work around bug on native Windows.
10018         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
10019         against mingw bug.
10020         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
10021
10022 2011-02-12  Bruno Haible  <bruno@clisp.org>
10023
10024         Avoid setlocale bugs in tests.
10025         * modules/btowc (Dependencies): Add setlocale.
10026         * modules/c-strcase (Dependencies): Likewise.
10027         * modules/mbmemcasecmp (Dependencies): Likewise.
10028         * modules/mbmemcasecoll (Dependencies): Likewise.
10029         * modules/mbrtowc (Dependencies): Likewise.
10030         * modules/mbscasecmp (Dependencies): Likewise.
10031         * modules/mbscasestr (Dependencies): Likewise.
10032         * modules/mbschr (Dependencies): Likewise.
10033         * modules/mbscspn (Dependencies): Likewise.
10034         * modules/mbsinit (Dependencies): Likewise.
10035         * modules/mbsncasecmp (Dependencies): Likewise.
10036         * modules/mbsnrtowcs (Dependencies): Likewise.
10037         * modules/mbspbrk (Dependencies): Likewise.
10038         * modules/mbspcasecmp (Dependencies): Likewise.
10039         * modules/mbsrchr (Dependencies): Likewise.
10040         * modules/mbsrtowcs (Dependencies): Likewise.
10041         * modules/mbsspn (Dependencies): Likewise.
10042         * modules/mbsstr (Dependencies): Likewise.
10043         * modules/nl_langinfo (Dependencies): Likewise.
10044         * modules/quotearg (Dependencies): Likewise.
10045         * modules/unicase/locale-language (Dependencies): Likewise.
10046         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
10047         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
10048         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
10049         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
10050         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
10051         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
10052         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
10053         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
10054         * modules/vasnprintf-posix (Dependencies): Likewise.
10055         * modules/wcrtomb (Dependencies): Likewise.
10056         * modules/wcsnrtombs (Dependencies): Likewise.
10057         * modules/wcsrtombs (Dependencies): Likewise.
10058
10059 2011-02-12  Bruno Haible  <bruno@clisp.org>
10060
10061         setlocale: Workaround native Windows bug.
10062         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
10063         succeeds but sets LC_CTYPE to "C", report a failure.
10064         * tests/test-setlocale2.sh: New file.
10065         * tests/test-setlocale2.c: New file.
10066         * modules/setlocale-tests (Files): Add the new files.
10067         (Makefile.am): Enable test-setlocale2.sh test.
10068         * doc/posix-functions/setlocale.texi: Mention workaround.
10069
10070 2011-02-11  Bruno Haible  <bruno@clisp.org>
10071
10072         Tests for module 'setlocale'.
10073         * modules/setlocale-tests: New file.
10074         * tests/test-setlocale1.sh: New file.
10075         * tests/test-setlocale1.c: New file.
10076
10077         New module 'setlocale'.
10078         * lib/locale.in.h (setlocale): New declaration.
10079         * lib/setlocale.c: New file, based on
10080         gettext/gettext-runtime/intl/setlocale.c.
10081         * m4/setlocale.m4: New file.
10082         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
10083         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
10084         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
10085         REPLACE_SETLOCALE.
10086         * modules/setlocale: New file.
10087         * tests/test-locale-c++.cc: Test the declaration of setlocale.
10088         * doc/posix-functions/setlocale.texi: Mention the new module.
10089
10090 2011-02-11  Bruno Haible  <bruno@clisp.org>
10091
10092         Prepare for locale dependent tests on mingw.
10093         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
10094         because it has the wrong locale encoding.
10095         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
10096         French_France.1252 instead of "fr".
10097         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
10098         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
10099         because it has the wrong locale encoding.
10100         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
10101         native Windows, try Turkish_Turkey.65001.
10102         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
10103         Chinese_China.54936.
10104
10105         Prepare for locale dependent tests on mingw.
10106         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
10107         differently.
10108         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
10109         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
10110         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10111         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10112
10113 2011-02-11  Eric Blake  <eblake@redhat.com>
10114
10115         strptime: avoid compiler warnings
10116         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
10117         compiler warnings about dead code.
10118         Reported by Daniel P. Berrange.
10119
10120 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
10121
10122         doc: update users.txt
10123         * users.txt: Add rcs.
10124
10125 2011-02-10  John W. Eaton  <jwe@gnu.org>
10126
10127         doc: update users.txt
10128         * users.txt: Add octave.
10129
10130 2011-02-10  Jim Meyering  <meyering@redhat.com>
10131
10132         doc: update users.txt
10133         * users.txt: Add iwhd.
10134
10135 2011-02-09  Bruno Haible  <bruno@clisp.org>
10136
10137         gnulib-tool: Make copyright notice adjustment more robust.
10138         * gnulib-tool (func_import): In sed_transform_main_lib_file,
10139         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
10140         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
10141         License".
10142         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
10143
10144 2011-02-06  Bruno Haible  <bruno@clisp.org>
10145
10146         New module 'towctrans'.
10147         * modules/towctrans: New file.
10148         * lib/wctype.in.h (towctrans): New declaration.
10149         * lib/towctrans.c: New file.
10150         * lib/towctrans-impl.h: New file.
10151         * m4/towctrans.m4: New file.
10152         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
10153         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
10154         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
10155         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
10156         * doc/posix-functions/towctrans.texi: Mention the new module.
10157
10158 2011-02-06  Bruno Haible  <bruno@clisp.org>
10159
10160         New module 'wctrans'.
10161         * modules/wctrans: New file.
10162         * lib/wctype.in.h (wctrans): New declaration.
10163         * lib/wctrans.c: New file.
10164         * lib/wctrans-impl.h: New file.
10165         * m4/wctrans.m4: New file.
10166         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
10167         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
10168         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
10169         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
10170         * doc/posix-functions/wctrans.texi: Mention the new module.
10171
10172 2011-02-06  Bruno Haible  <bruno@clisp.org>
10173
10174         New module 'iswctype'.
10175         * modules/iswctype: New file.
10176         * lib/wctype.in.h (iswctype): New declaration.
10177         * lib/iswctype.c: New file.
10178         * lib/iswctype-impl.h: New file.
10179         * m4/iswctype.m4: New file.
10180         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
10181         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
10182         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
10183         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
10184         * doc/posix-functions/iswctype.texi: Mention the new module and the
10185         HP-UX 11.00 problem.
10186
10187 2011-02-06  Bruno Haible  <bruno@clisp.org>
10188
10189         New module 'wctype'.
10190         * modules/wctype: Change to represent the wctype() substitute.
10191         * lib/wctype.in.h (wctype): New declaration.
10192         * lib/wctype.c: New file.
10193         * lib/wctype-impl.h: New file.
10194         * m4/wctype.m4: New file.
10195         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
10196         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
10197         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
10198         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
10199         * doc/posix-functions/wctype.texi: Mention the new module and the
10200         HP-UX 11.00 problem.
10201
10202 2011-02-06  Bruno Haible  <bruno@clisp.org>
10203
10204         wctype-h: Ensure wctype_t and wctrans_t are defined.
10205         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
10206         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10207         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
10208         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
10209         HAVE_WCTRANS_T.
10210         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
10211
10212 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
10213
10214         flock: fix license typo
10215
10216         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
10217         omitted.
10218
10219 2011-02-08  Bruno Haible  <bruno@clisp.org>
10220
10221         Split large sed scripts, for HP-UX sed.
10222         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
10223         to avoid HP-UX limit of 99 commands, in the near future.
10224         * modules/stdlib (Makefile.am): Likewise.
10225         * modules/unistd (Makefile.am): Likewise.
10226         * modules/wchar (Makefile.am): Likewise.
10227         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10228         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
10229         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
10230
10231 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10232             Bruno Haible  <bruno@clisp.org>
10233
10234         stdlib: improve random_r modularization
10235         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
10236         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
10237         you also need the random_r module to get this material right.
10238         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
10239         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
10240         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
10241
10242 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
10243
10244         stdlib: don't depend on stdint
10245         * lib/stdlib.in.h: Don't include <stdint.h> merely because
10246         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
10247         be independent of whether stdint.h is needed.
10248         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
10249         here, instead of ...
10250         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
10251         struct random_data should be using the random_r module, not just
10252         the stdlib module (which wouldn't make sense: what package needs
10253         just struct random_data without also needing random_r?).
10254         * modules/stdlib (Depends-on): Remove stdint.
10255
10256         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
10257         See the thread rooted at
10258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
10259         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
10260         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
10261         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
10262         __VMS)); previously it was always included (via fcntl--.h).
10263         (getloadavg): Do not use c_strtod.  Instead, approximate it by
10264         hand; this is good enough for load averages.  Also, do not use
10265         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
10266         flags directly if available and don't bother otherwise.  (Packages
10267         that need the extra reliability should use the modules that define
10268         these flags on older platforms that lack them.)
10269         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
10270         fcntl-safer.
10271
10272 2011-02-08  Jim Meyering  <meyering@redhat.com>
10273
10274         di-set.h, ino-map.h: add multiple-inclusion guard
10275         Technically, the guard is required only for ino-map.h, due to its
10276         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
10277         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
10278         * lib/ino-map.h: Likewise.
10279
10280 2011-02-06  Bruno Haible  <bruno@clisp.org>
10281
10282         iswblank: Ensure declaration on glibc systems.
10283         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
10284         * modules/iswblank (Dependencies): Add 'extensions'.
10285         * doc/posix-functions/iswblank.texi: Document the glibc problem.
10286
10287 2011-02-06  Bruno Haible  <bruno@clisp.org>
10288
10289         New module 'iswblank'.
10290         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
10291         * modules/iswblank: New file.
10292         * modules/wctype-h (Files): Remove lib/iswblank.c.
10293         (Makefile.am): Substitute GNULIB_ISWBLANK.
10294         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
10295         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
10296         (gl_WCTYPE_H_DEFAULTS): New macro.
10297         (gl_WCTYPE_H): Require it. Remove iswblank related code.
10298         * modules/iswblank-tests: New file.
10299         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
10300         * tests/test-wctype-h.c (main): Remove iswblank tests.
10301         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
10302         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
10303         of 'wctype-h'.
10304         * NEWS: Mention the change.
10305         * modules/mbchar (Depends-on): Add iswblank.
10306
10307 2011-02-08  Bruno Haible  <bruno@clisp.org>
10308
10309         di-set tests: Refactor.
10310         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
10311         unnecessary includes.
10312         (ASSERT): Remove macro.
10313         (main): Make C90 compliant by avoiding variable declaration after
10314         statement.
10315         * modules/di-set-tests (Files): Add tests/macros.h.
10316
10317 2011-02-08  Bruno Haible  <bruno@clisp.org>
10318
10319         ino-map tests: Refactor.
10320         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
10321         unnecessary includes.
10322         (ASSERT): Remove macro.
10323         (main): Make C90 compliant by avoiding variable declaration after
10324         statement.
10325         * modules/ino-map-tests (Files): Add tests/macros.h.
10326
10327 2011-02-08  Jim Meyering  <meyering@redhat.com>
10328
10329         di-set: add "const" to a cast
10330         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
10331         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
10332
10333 2011-02-06  Bruno Haible  <bruno@clisp.org>
10334
10335         Rename module 'wctype' to 'wctype-h'.
10336         * modules/wctype-h: Renamed from modules/wctype.
10337         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
10338         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
10339         (Files, Depends-on, Makefile.am): Update.
10340         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
10341         (Files, Makefile.am): Update.
10342         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
10343         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
10344         * doc/posix-headers/wctype.texi: Update.
10345         * doc/posix-functions/iswalnum.texi: Update.
10346         * doc/posix-functions/iswalpha.texi: Update.
10347         * doc/posix-functions/iswblank.texi: Update.
10348         * doc/posix-functions/iswcntrl.texi: Update.
10349         * doc/posix-functions/iswdigit.texi: Update.
10350         * doc/posix-functions/iswgraph.texi: Update.
10351         * doc/posix-functions/iswlower.texi: Update.
10352         * doc/posix-functions/iswprint.texi: Update.
10353         * doc/posix-functions/iswpunct.texi: Update.
10354         * doc/posix-functions/iswspace.texi: Update.
10355         * doc/posix-functions/iswupper.texi: Update.
10356         * doc/posix-functions/iswxdigit.texi: Update.
10357         * doc/posix-functions/towlower.texi: Update.
10358         * doc/posix-functions/towupper.texi: Update.
10359         * NEWS: Mention the change.
10360         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
10361         * modules/mbchar (Dependencies): Likewise.
10362         * modules/mbswidth (Dependencies): Likewise.
10363         * modules/quotearg (Dependencies): Likewise.
10364         * modules/regex (Dependencies): Likewise.
10365         * modules/wcscasecmp (Dependencies): Likewise.
10366         * modules/wcsncasecmp (Dependencies): Likewise.
10367         * modules/wcwidth (Dependencies): Likewise.
10368
10369 2011-02-06  Bruno Haible  <bruno@clisp.org>
10370
10371         New module 'wcswidth'.
10372         * modules/wcswidth: New file.
10373         * lib/wchar.in.h (wcswidth): New declaration.
10374         * lib/wcswidth.c: New file.
10375         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
10376         * m4/wcswidth.m4: New file.
10377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
10378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
10379         REPLACE_WCSWIDTH.
10380         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
10381         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
10382         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
10383         * doc/posix-functions/wcswidth.texi: Mention the new module.
10384
10385 2011-02-06  Bruno Haible  <bruno@clisp.org>
10386
10387         New module 'wcstok'.
10388         * modules/wcstok: New file.
10389         * lib/wchar.in.h (wcstok): New declaration.
10390         * lib/wcstok.c: New file.
10391         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
10392         * m4/wcstok.m4: New file.
10393         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
10394         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
10395         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
10396         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
10397         * doc/posix-functions/wcstok.texi: Mention the new module.
10398
10399 2011-02-06  Bruno Haible  <bruno@clisp.org>
10400
10401         New module 'wcsstr'.
10402         * modules/wcsstr: New file.
10403         * lib/wchar.in.h (wcsstr): New declaration.
10404         * lib/wcsstr.c: New file.
10405         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
10406         * m4/wcsstr.m4: New file.
10407         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
10408         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
10409         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
10410         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
10411         * doc/posix-functions/wcsstr.texi: Mention the new module.
10412
10413 2011-02-06  Bruno Haible  <bruno@clisp.org>
10414
10415         New module 'wcspbrk'.
10416         * modules/wcspbrk: New file.
10417         * lib/wchar.in.h (wcspbrk): New declaration.
10418         * lib/wcspbrk.c: New file.
10419         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
10420         * m4/wcspbrk.m4: New file.
10421         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
10422         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
10423         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
10424         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
10425         * doc/posix-functions/wcspbrk.texi: Mention the new module.
10426
10427 2011-02-06  Bruno Haible  <bruno@clisp.org>
10428
10429         New module 'wcsspn'.
10430         * modules/wcsspn: New file.
10431         * lib/wchar.in.h (wcsspn): New declaration.
10432         * lib/wcsspn.c: New file.
10433         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
10434         * m4/wcsspn.m4: New file.
10435         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
10436         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
10437         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
10438         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
10439         * doc/posix-functions/wcsspn.texi: Mention the new module.
10440
10441 2011-02-06  Bruno Haible  <bruno@clisp.org>
10442
10443         New module 'wcscspn'.
10444         * modules/wcscspn: New file.
10445         * lib/wchar.in.h (wcscspn): New declaration.
10446         * lib/wcscspn.c: New file.
10447         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
10448         * m4/wcscspn.m4: New file.
10449         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
10450         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
10451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
10452         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
10453         * doc/posix-functions/wcscspn.texi: Mention the new module.
10454
10455 2011-02-06  Bruno Haible  <bruno@clisp.org>
10456
10457         New module 'wcsrchr'.
10458         * modules/wcsrchr: New file.
10459         * lib/wchar.in.h (wcsrchr): New declaration.
10460         * lib/wcsrchr.c: New file.
10461         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
10462         * m4/wcsrchr.m4: New file.
10463         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
10464         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
10465         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
10466         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
10467         * doc/posix-functions/wcsrchr.texi: Mention the new module.
10468
10469 2011-02-06  Bruno Haible  <bruno@clisp.org>
10470
10471         New module 'wcschr'.
10472         * modules/wcschr: New file.
10473         * lib/wchar.in.h (wcschr): New declaration.
10474         * lib/wcschr.c: New file.
10475         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
10476         * m4/wcschr.m4: New file.
10477         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
10478         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
10479         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
10480         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
10481         * doc/posix-functions/wcschr.texi: Mention the new module.
10482
10483 2011-02-06  Bruno Haible  <bruno@clisp.org>
10484
10485         New module 'wcsdup'.
10486         * modules/wcsdup: New file.
10487         * lib/wchar.in.h (wcsdup): New declaration.
10488         * lib/wcsdup.c: New file.
10489         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
10490         * m4/wcsdup.m4: New file.
10491         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
10492         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
10493         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
10494         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
10495         * doc/posix-functions/wcsdup.texi: Mention the new module.
10496
10497 2011-02-06  Bruno Haible  <bruno@clisp.org>
10498
10499         New module 'wcsxfrm'.
10500         * modules/wcsxfrm: New file.
10501         * lib/wchar.in.h (wcsxfrm): New declaration.
10502         * lib/wcsxfrm.c: New file.
10503         * lib/wcsxfrm-impl.h: New file.
10504         * m4/wcsxfrm.m4: New file.
10505         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
10506         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
10507         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
10508         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
10509         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
10510
10511 2011-02-06  Bruno Haible  <bruno@clisp.org>
10512
10513         New module 'wcscoll'.
10514         * modules/wcscoll: New file.
10515         * lib/wchar.in.h (wcscoll): New declaration.
10516         * lib/wcscoll.c: New file.
10517         * lib/wcscoll-impl.h: New file.
10518         * m4/wcscoll.m4: New file.
10519         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
10520         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
10521         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
10522         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
10523         * doc/posix-functions/wcscoll.texi: Mention the new module.
10524
10525 2011-02-06  Bruno Haible  <bruno@clisp.org>
10526
10527         New module 'wcsncasecmp'.
10528         * modules/wcsncasecmp: New file.
10529         * lib/wchar.in.h (wcsncasecmp): New declaration.
10530         * lib/wcsncasecmp.c: New file.
10531         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
10532         * m4/wcsncasecmp.m4: New file.
10533         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
10534         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
10535         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
10536         HAVE_WCSNCASECMP.
10537         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
10538         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
10539
10540 2011-02-06  Bruno Haible  <bruno@clisp.org>
10541
10542         New module 'wcscasecmp'.
10543         * modules/wcscasecmp: New file.
10544         * lib/wchar.in.h (wcscasecmp): New declaration.
10545         * lib/wcscasecmp.c: New file.
10546         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
10547         * m4/wcscasecmp.m4: New file.
10548         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
10549         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
10550         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
10551         HAVE_WCSCASECMP.
10552         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
10553         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
10554
10555 2011-02-05  Bruno Haible  <bruno@clisp.org>
10556
10557         New module 'wcsncmp'.
10558         * modules/wcsncmp: New file.
10559         * lib/wchar.in.h (wcsncmp): New declaration.
10560         * lib/wcsncmp.c: New file.
10561         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
10562         * m4/wcsncmp.m4: New file.
10563         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
10564         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
10565         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
10566         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
10567         * doc/posix-functions/wcsncmp.texi: Mention the new module.
10568
10569 2011-02-05  Bruno Haible  <bruno@clisp.org>
10570
10571         New module 'wcscmp'.
10572         * modules/wcscmp: New file.
10573         * lib/wchar.in.h (wcscmp): New declaration.
10574         * lib/wcscmp.c: New file.
10575         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
10576         * m4/wcscmp.m4: New file.
10577         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
10578         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
10579         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
10580         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
10581         * doc/posix-functions/wcscmp.texi: Mention the new module.
10582
10583 2011-02-05  Bruno Haible  <bruno@clisp.org>
10584
10585         New module 'wcsncat'.
10586         * modules/wcsncat: New file.
10587         * lib/wchar.in.h (wcsncat): New declaration.
10588         * lib/wcsncat.c: New file.
10589         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
10590         * m4/wcsncat.m4: New file.
10591         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
10592         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
10593         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
10594         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
10595         * doc/posix-functions/wcsncat.texi: Mention the new module.
10596
10597 2011-02-05  Bruno Haible  <bruno@clisp.org>
10598
10599         New module 'wcscat'.
10600         * modules/wcscat: New file.
10601         * lib/wchar.in.h (wcscat): New declaration.
10602         * lib/wcscat.c: New file.
10603         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
10604         * m4/wcscat.m4: New file.
10605         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
10606         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
10607         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
10608         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
10609         * doc/posix-functions/wcscat.texi: Mention the new module.
10610
10611 2011-02-05  Bruno Haible  <bruno@clisp.org>
10612
10613         New module 'wcpncpy'.
10614         * modules/wcpncpy: New file.
10615         * lib/wchar.in.h (wcpncpy): New declaration.
10616         * lib/wcpncpy.c: New file.
10617         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
10618         * m4/wcpncpy.m4: New file.
10619         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
10620         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
10621         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
10622         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
10623         * doc/posix-functions/wcpncpy.texi: Mention the new module.
10624
10625 2011-02-05  Bruno Haible  <bruno@clisp.org>
10626
10627         New module 'wcsncpy'.
10628         * modules/wcsncpy: New file.
10629         * lib/wchar.in.h (wcsncpy): New declaration.
10630         * lib/wcsncpy.c: New file.
10631         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
10632         * m4/wcsncpy.m4: New file.
10633         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
10634         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
10635         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
10636         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
10637         * doc/posix-functions/wcsncpy.texi: Mention the new module.
10638
10639 2011-02-05  Bruno Haible  <bruno@clisp.org>
10640
10641         New module 'wcpcpy'.
10642         * modules/wcpcpy: New file.
10643         * lib/wchar.in.h (wcpcpy): New declaration.
10644         * lib/wcpcpy.c: New file.
10645         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
10646         * m4/wcpcpy.m4: New file.
10647         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
10648         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
10649         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
10650         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
10651         * doc/posix-functions/wcpcpy.texi: Mention the new module.
10652
10653 2011-02-05  Bruno Haible  <bruno@clisp.org>
10654
10655         New module 'wcscpy'.
10656         * modules/wcscpy: New file.
10657         * lib/wchar.in.h (wcscpy): New declaration.
10658         * lib/wcscpy.c: New file.
10659         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
10660         * m4/wcscpy.m4: New file.
10661         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
10662         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
10663         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
10664         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
10665         * doc/posix-functions/wcscpy.texi: Mention the new module.
10666
10667 2011-02-05  Bruno Haible  <bruno@clisp.org>
10668
10669         New module 'wcsnlen'.
10670         * modules/wcsnlen: New file.
10671         * lib/wchar.in.h (wcsnlen): New declaration.
10672         * lib/wcsnlen.c: New file.
10673         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
10674         * m4/wcsnlen.m4: New file.
10675         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
10676         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
10677         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
10678         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
10679         * doc/posix-functions/wcsnlen.texi: Mention the new module.
10680
10681 2011-02-05  Bruno Haible  <bruno@clisp.org>
10682
10683         New module 'wcslen'.
10684         * modules/wcslen: New file.
10685         * lib/wchar.in.h (wcslen): New declaration.
10686         * lib/wcslen.c: New file.
10687         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
10688         * m4/wcslen.m4: New file.
10689         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
10690         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
10691         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
10692         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
10693         * doc/posix-functions/wcslen.texi: Mention the new module.
10694
10695 2011-02-05  Bruno Haible  <bruno@clisp.org>
10696
10697         New module 'wmemset'.
10698         * modules/wmemset: New file.
10699         * lib/wchar.in.h (wmemset): New declaration.
10700         * lib/wmemset.c: New file.
10701         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
10702         * m4/wmemset.m4: New file.
10703         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
10704         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
10705         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
10706         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
10707         * doc/posix-functions/wmemset.texi: Mention the new module.
10708
10709 2011-02-05  Bruno Haible  <bruno@clisp.org>
10710
10711         New module 'wmemmove'.
10712         * modules/wmemmove: New file.
10713         * lib/wchar.in.h (wmemmove): New declaration.
10714         * lib/wmemmove.c: New file.
10715         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
10716         * m4/wmemmove.m4: New file.
10717         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
10718         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
10719         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
10720         HAVE_WMEMMOVE.
10721         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
10722         * doc/posix-functions/wmemmove.texi: Mention the new module.
10723
10724 2011-02-05  Bruno Haible  <bruno@clisp.org>
10725
10726         New module 'wmemcpy'.
10727         * modules/wmemcpy: New file.
10728         * lib/wchar.in.h (wmemcpy): New declaration.
10729         * lib/wmemcpy.c: New file.
10730         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
10731         * m4/wmemcpy.m4: New file.
10732         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
10733         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
10734         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
10735         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
10736         * doc/posix-functions/wmemcpy.texi: Mention the new module.
10737
10738 2011-02-05  Bruno Haible  <bruno@clisp.org>
10739
10740         New module 'wmemcmp'.
10741         * modules/wmemcmp: New file.
10742         * lib/wchar.in.h (wmemcmp): New declaration.
10743         * lib/wmemcmp.c: New file.
10744         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
10745         * m4/wmemcmp.m4: New file.
10746         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
10747         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
10748         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
10749         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
10750         * doc/posix-functions/wmemcmp.texi: Mention the new module.
10751
10752 2011-02-07  Jim Meyering  <meyering@redhat.com>
10753
10754         di-set, ino-map: new modules, from coreutils
10755         * lib/di-set.c: New file.
10756         * lib/di-set.h: Likewise.
10757         * lib/ino-map.c: Likewise.
10758         * lib/ino-map.h: Likewise.
10759         * modules/di-set: Likewise.
10760         * modules/di-set-tests: Likewise.
10761         * modules/ino-map: Likewise.
10762         * modules/ino-map-tests: Likewise.
10763         * tests/test-di-set.c: Likewise.
10764         * tests/test-ino-map.c: Likewise.
10765
10766 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
10767
10768         getloadavg: merge minor changes from Emacs
10769
10770         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
10771         (getloadavg): Use memset, not bzero.
10772
10773         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
10774         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
10775         clash (bug#86).
10776
10777 2010-11-14  Bruno Haible  <bruno@clisp.org>
10778
10779         Allow multiple gnulib generated replacements to coexist.
10780         * lib/getopt.in.h (struct option): Avoid identical redefinition.
10781         * lib/inttypes.in.h (imaxdiv_t): Likewise.
10782         * lib/langinfo.in.h (nl_item): Likewise.
10783         * lib/math.in.h (_NaN, NAN): Likewise.
10784         * lib/netdb.in.h (struct addrinfo): Likewise.
10785         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
10786         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
10787         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
10788         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
10789         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
10790         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
10791         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
10792         pthread_mutexattr_init, pthread_mutexattr_settype,
10793         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
10794         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
10795         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
10796         pthread_spin_trylock, pthread_spin_unlock): Likewise.
10797         * lib/sched.in.h (struct sched_param): Likewise.
10798         * lib/se-selinux.in.h (security_class_t, security_context_t,
10799         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
10800         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
10801         lsetfilecon, fsetfilecon, security_check_context,
10802         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
10803         Likewise.
10804         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
10805         Likewise.
10806         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
10807         _gl_function_taking_int_returning_void_t, union sigval,
10808         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
10809         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
10810         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
10811         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
10812         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
10813         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
10814         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
10815         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
10816         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
10817         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
10818         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
10819         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
10820         socklen_t, rpl_fd_isset): Likewise.
10821         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
10822         * lib/sys_time.in.h (struct timeval): Likewise.
10823         * lib/sys_times.in.h (struct tms): Likewise.
10824         * lib/sys_utsname.in.h (struct utsname):
10825         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
10826         * lib/unistd.in.h (getpagesize): Likewise.
10827         * lib/wchar.in.h (mbstate_t): Likewise.
10828         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10829         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
10830         towlower, towupper): Likewise.
10831         Reported by Sam Steingold <sds@gnu.org>.
10832
10833 2011-02-05  Eric Blake  <eblake@redhat.com>
10834
10835         unsetenv: work around Haiku issues
10836         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
10837         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
10838
10839 2010-12-30  Bruce Korb  <bkorb@gnu.org>
10840
10841         libposix: avoid calling error() within libposix
10842         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
10843         is defined.
10844
10845 2011-02-05  Eric Blake  <eblake@redhat.com>
10846
10847         strerror_r-posix: port to cygwin
10848         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
10849         implementation.
10850         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
10851         * tests/test-strerror_r.c (main): Fix test.
10852         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
10853         issue.
10854
10855 2011-02-05  Bruno Haible  <bruno@clisp.org>
10856
10857         New module 'wmemchr'.
10858         * modules/wmemchr: New file.
10859         * lib/wchar.in.h (wmemchr): New declaration.
10860         * lib/wmemchr.c: New file.
10861         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
10862         * m4/wmemchr.m4: New file.
10863         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
10864         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
10865         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
10866         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
10867         * doc/posix-functions/wmemchr.texi: Mention the new module.
10868
10869 2011-02-04  Eric Blake  <eblake@redhat.com>
10870
10871         fdopendir: detect FreeBSD bug
10872         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
10873         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
10874
10875 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
10876
10877         stdbool: do not define HAVE_STDBOOL_H
10878         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
10879         AC_HEADER_STDBOOL.  All uses changed.  Do not define
10880         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
10881         imported from the latest Autoconf git.  It was motivated by Emacs,
10882         which uses gnulib but does not need HAVE_STDBOOL_H.
10883
10884 2011-02-04  Bruno Haible  <bruno@clisp.org>
10885
10886         wcsnrtombs: Prepare for new module wwcsnrtombs.
10887         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
10888         * lib/wcsnrtombs.c: Include it.
10889         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
10890
10891         wcsrtombs: Prepare for new module wwcsrtombs.
10892         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
10893         * lib/wcsrtombs.c: Include it.
10894         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
10895
10896         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
10897         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
10898         * lib/mbsnrtowcs.c: Include it.
10899         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
10900
10901         mbsrtowcs: Prepare for new module mbsrtowwcs.
10902         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
10903         * lib/mbsrtowcs.c: Include it.
10904         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
10905
10906 2011-02-04  Bruno Haible  <bruno@clisp.org>
10907
10908         vasnprintf: Reduce use of malloc for small format strings.
10909         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
10910         (arguments): Add room for the first 7 arguments.
10911         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
10912         (char_directives, u8_directives, u16_directives, u32_directives): Add
10913         room for the first 7 directives.
10914         * lib/printf-parse.c: Include <string.h>.
10915         (PRINTF_PARSE): Change memory handling code so that it uses the first
10916         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
10917         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
10918         Reported by Pádraig Brady <P@draigbrady.com>.
10919
10920 2011-01-31  Eric Blake  <eblake@redhat.com>
10921
10922         dup2: work around Haiku bug
10923         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
10924         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
10925         * doc/posix-functions/dup2.texi (dup2): Document the bug.
10926         * tests/test-dup2.c (main): Enhance test.
10927
10928 2011-01-31  Simon Josefsson  <simon@josefsson.org>
10929
10930         doc: off_t is not available in eglibc 2.11.2 stdio.h.
10931         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
10932         declared by eglibc 2.11.2.
10933         * lib/stdio.in.h: Likewise.
10934
10935 2011-01-31  Eric Blake  <eblake@redhat.com>
10936
10937         ignore-value: add missing test dependency
10938         * tests/test-ignore-value.c: Revert previous change; stdio.h
10939         provides off_t.
10940         * modules/ignore-value-tests (Depends-on): Add missing dependency.
10941
10942 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
10943
10944         mktime: clarify long_int width checking
10945         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
10946         the top level, to make it clearer that the assumption about
10947         long_int width is being checked.  See
10948         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
10949
10950 2011-01-30  Simon Josefsson  <simon@josefsson.org>
10951
10952         ignore-value: Fix self-test.
10953         * tests/test-ignore-value.c: Include sys/types.h for off_t.
10954
10955 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
10956
10957         TYPE_MAXIMUM: avoid theoretically undefined behavior
10958         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
10959         negative number, which the C Standard says has undefined behavior.
10960         In practice this is not a problem, but might as well do it by the book.
10961         Reported by Rich Felker and Eric Blake; see
10962         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
10963         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
10964         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
10965         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
10966         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
10967         * m4/stdint.m4 (gl_STDINT_H): Likewise.
10968         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
10969
10970         mktime: #undef mktime before #defining it
10971         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
10972
10973         mktime: systematically normalize tm_isdst comparisons
10974         * lib/mktime.c (isdst_differ): New function.
10975         (__mktime_internal): Use it systematically for all isdst comparisons.
10976         This completes the fix for libc BZ #6723, and removes the need for
10977         normalizing tm_isdst.  See
10978         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
10979         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
10980
10981         mktime: fix some integer overflow issues and sidestep the rest
10982
10983         This was prompted by a bug report by Benjamin Lindner for MinGW
10984         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
10985         His bug is due to signed integer overflow (0 - INT_MIN), and I
10986         I scanned through mktime.c looking for other integer overflow
10987         problems, fixing all the bugs I found.
10988
10989         Although the C Standard says the resulting code is still not safe
10990         in the presence of integer overflow, in practice it should be good
10991         enough for all real-world two's-complement implementations, except
10992         for debugging environments that deliberately trap on integer
10993         overflow (e.g., gcc -ftrapv).
10994
10995         * lib/mktime.c (WRAPV): New macro.
10996         (SHR): Also check that long_int and time_t shift right in the
10997         usual way, before using the fast-but-unportable method.
10998         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
10999         used.  The code already assumed two's complement, so there's
11000         no need to test for alternatives.  All uses removed.
11001         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
11002         the C standard.  Problem reported by Rich Felker in
11003         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
11004         (twos_complement_arithmetic): Also check long_int and time_t.
11005         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
11006         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
11007         (__mktime_internal): Avoid integer overflow with unary subtraction
11008         in two instances where -1 - X is an adequate replacement for -X,
11009         since the calculations are approximate.
11010
11011 2011-01-29  Eric Blake  <eblake@redhat.com>
11012
11013         mktime: avoid infinite loop
11014         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
11015         type; behavior is still undefined but portable to all known targets.
11016         Reported by Rich Felker.
11017
11018 2011-01-29  Simon Josefsson  <simon@josefsson.org>
11019
11020         rename, unlink, same-inode: Relicense.
11021         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
11022         * modules/unlink (License): Likewise.
11023         * modules/same-inode (License): Likewise.
11024
11025 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
11026
11027         mktime: avoid problems on NetBSD 5 / i386
11028         * lib/mktime.c (long_int): New type.  This works around a problem
11029         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
11030         but time_t is 64 bits, and where I expect the existing code is
11031         wrong in some cases.
11032         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
11033         (ydhms_diff): Bring back the compile-time check for wide-enough
11034         year and yday.
11035
11036         mktime: fix misspelling in comment
11037         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
11038         This merges all recent glibc changes of importance.
11039
11040 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11041
11042         move-if-change: cope with concurrent mv of identical file.
11043         * build-aux/move-if-change (CMPPROG): Accept environment
11044         variable as an override for `cmp'.
11045         (usage): Document CMPPROG.
11046         Adjust comparison to drop stdout.  Cope with failure of mv if
11047         the target file exists and is identical to the source, for
11048         parallel builds.
11049         Report from H.J. Lu against binutils in PR binutils/12283.
11050
11051 2011-01-28  Bruce Korb  <bkorb@gnu.org>
11052
11053         * users.txt: Mention sharutils.
11054
11055 2011-01-28  Simon Josefsson  <simon@josefsson.org>
11056
11057         * users.txt: Mention OATH Toolkit.
11058
11059 2011-01-27  Bruno Haible  <bruno@clisp.org>
11060
11061         Prepare for supporting FreeBSD 10.
11062         * build-aux/config.libpath: Remove handling of freebsd1*.
11063
11064 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
11065
11066         Prepare for supporting FreeBSD 10.
11067         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
11068         match FreeBSD 10.0.
11069
11070 2011-01-27  Bruno Haible  <bruno@clisp.org>
11071
11072         vma-iter, get-rusage-as: Add OpenBSD support.
11073         * modules/vma-iter (configure.ac): Test for mquery.
11074         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
11075         * lib/vma-iter.c: Include <sys/mman.h>.
11076         (vma_iterate): Add an implementation based on mquery().
11077         * lib/resource-ext.h (get_rusage_as): Update comments.
11078         * lib/get-rusage-as.c: Likewise.
11079         * lib/get-rusage-data.c: Likewise.
11080
11081 2011-01-26  Karl Berry  <karl@gnu.org>
11082
11083         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
11084         variables to make it easier to override the makeinfo program used.
11085
11086 2011-01-26  Eric Blake  <eblake@redhat.com>
11087
11088         fcntl: work around Haiku F_DUPFD bugs
11089         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
11090         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
11091         cloexec bit on duplication.
11092         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
11093
11094 2011-01-26  Bruno Haible  <bruno@clisp.org>
11095
11096         Enable memory leak tests on AIX.
11097         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
11098         * tests/test-fprintf-posix3.c (main): Likewise.
11099
11100 2011-01-26  Bruno Haible  <bruno@clisp.org>
11101
11102         Tests for module 'get-rusage-data'.
11103         * modules/get-rusage-data-tests: New file.
11104         * tests/test-get-rusage-data.c: New file.
11105
11106         New module 'get-rusage-data'.
11107         * lib/resource-ext.h (get_rusage_data): New declaration.
11108         * lib/get-rusage-data.c: New file.
11109         * modules/get-rusage-data: New file.
11110
11111 2011-01-25  Bruno Haible  <bruno@clisp.org>
11112
11113         get-rusage-as: Allow for easier testing.
11114         * lib/resource-ext.h (get_rusage_as): Add comment.
11115         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
11116         (main): New function for interactive testing.
11117
11118 2011-01-25  Bruno Haible  <bruno@clisp.org>
11119
11120         vma-iter: Treat Haiku like BeOS.
11121         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
11122         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
11123
11124 2011-01-25  Eric Blake  <eblake@redhat.com>
11125
11126         c-stack: fix regression on cygwin when libsigsegv is present
11127         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
11128
11129 2011-01-24  Bruno Haible  <bruno@clisp.org>
11130
11131         vma-iter: Avoid empty intervals.
11132         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
11133         on an empty interval.
11134
11135 2011-01-24  Jim Meyering  <meyering@redhat.com>
11136
11137         u64: remove unnecessary #include
11138         * lib/u64.h: Don't include <stddef.h>.  It was not used.
11139
11140 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
11141
11142         Allow the user to avoid the HAVE_RAW_DECL_* macros.
11143         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
11144
11145 2011-01-23  Bruno Haible  <bruno@clisp.org>
11146
11147         New module 'vma-iter'.
11148         * lib/vma-iter.h: New file.
11149         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
11150         * modules/vma-iter: New file.
11151         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
11152         for get_rusage_as_via_iterator.
11153         (vma_iterate_callback): New function.
11154         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
11155         * modules/get-rusage-as (Depends-on): Add vma-iter.
11156
11157 2011-01-23  Bruno Haible  <bruno@clisp.org>
11158
11159         uninorm: Tweak includes.
11160         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
11161         Reported by Jim Meyering.
11162
11163 2011-01-23  Bruno Haible  <bruno@clisp.org>
11164
11165         get-rusage-as: Improve on NetBSD.
11166         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
11167         /proc, like on FreeBSD.
11168
11169 2011-01-23  Jim Meyering  <meyering@redhat.com>
11170
11171         xreadlink.h: remove unnecessary #include
11172         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
11173
11174         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
11175         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
11176
11177 2011-01-23  Bruno Haible  <bruno@clisp.org>
11178
11179         get-rusage-as: Fix bug.
11180         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
11181         original limit when aborting the first loop.
11182
11183 2011-01-23  Bruno Haible  <bruno@clisp.org>
11184
11185         wctype: Ensure valid C syntax.
11186         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
11187         unconditionally, instead of gl_NEXT_HEADERS conditionally.
11188
11189 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
11190
11191         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
11192         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
11193         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
11194         as they are needed only for configure's test case.
11195         This removes two unnecessary symbols from config.h.
11196
11197         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
11198         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
11199         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
11200         AC_CHECK_HEADERS_ONCE on a header that we also invoke
11201         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
11202         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
11203         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
11204         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11205         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
11206         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11207         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
11208         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11209         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
11210         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
11211         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11212         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11213         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
11214         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
11215
11216 2011-01-21  Eric Blake  <eblake@redhat.com>
11217
11218         maintainer-makefile: work with older git for submodule check
11219         * top/maint.mk (public-submodule-commit): Rewrite to avoid
11220         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
11221         Reported by Matthias Bolte.
11222
11223         bootstrap: minor portability fixes
11224         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
11225         (usage): Omit leading capital and trailing . on help phrases, per
11226         GNU Coding Standards.
11227         (check_versions, top level): Prefix messages with script name.
11228
11229 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
11230
11231         bootstrap: support --no-git option
11232         * build-aux/bootstrap: Add --no-git option, to be used when
11233         --gnulib-srcdir points to the exact desired checkout.
11234
11235 2011-01-21  Eric Blake  <eblake@redhat.com>
11236
11237         strerror_r-posix: work with glibc 2.13
11238         * lib/strerror_r.c (strerror_r): Fix return type.
11239
11240 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11241             Bruno Haible  <bruno@clisp.org>
11242
11243         uN_strstr: New unit tests.
11244         * modules/unistr/u8-strstr-tests: New file.
11245         * modules/unistr/u16-strstr-tests: New file.
11246         * modules/unistr/u32-strstr-tests: New file.
11247         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
11248         * tests/unistr/test-u8-strstr.c: New file.
11249         * tests/unistr/test-u16-strstr.c: New file.
11250         * tests/unistr/test-u32-strstr.c: New file.
11251
11252 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11253             Bruno Haible  <bruno@clisp.org>
11254
11255         Make uN_strstr functions O(n) worst-case.
11256         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
11257         16-bit and 32-bit unit cases, use the unibyte algorithm from
11258         lib/mbsstr.c.
11259         * lib/unistr/u8-strstr.c: Include <string.h>.
11260         (UNIT_IS_UINT8_T): New macro.
11261         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
11262         (U_STRLEN, U_STRNLEN): New macros.
11263         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
11264         (U_STRLEN, U_STRNLEN): New macros.
11265         * modules/unistr/u8-strstr (Depends-on): Add strstr.
11266         (configure.ac): Update required libunistring version.
11267         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
11268         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
11269         malloca.
11270         (configure.ac): Update required libunistring version.
11271         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
11272         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
11273         malloca.
11274         (configure.ac): Update required libunistring version.
11275
11276 2011-01-21  Pádraig Brady  <P@draigBrady.com>
11277             Bruno Haible  <bruno@clisp.org>
11278
11279         Prepare for faster uN_strstr functions.
11280         * lib/str-kmp.h: Support definable UNITs.
11281         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
11282         needle_len argument.
11283         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
11284         * lib/mbscasestr.c (mbscasestr): Likewise.
11285
11286 2011-01-21  Pádraig Brady <P@draigBrady.com>
11287
11288         malloca-tests: make faster by unsetting MALLOC_PERTURB_
11289         * tests/test-malloca.c (main): Unset the environment variable
11290         to greatly speed up the test.
11291         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
11292         * modules/malloca-tests: Depend on unsetenv.
11293
11294 2011-01-21  Pádraig Brady <P@draigBrady.com>
11295
11296         ignore-value: remove stdint dependency
11297         * lib/ignore-value.h: Remove <stdint.h>
11298         * modules/ignore-value: Remove stdint dependency.
11299
11300 2011-01-21  Jim Meyering  <meyering@redhat.com>
11301
11302         maint.mk: adjust variable name to be consistent with other gl_ vars
11303         * top/maint.mk (gl_public_submodule_commit): Rename the variable
11304         to be lower case.
11305
11306 2011-01-20  Jim Meyering  <meyering@redhat.com>
11307
11308         maint.mk: make "check" depend on public-submodule-commit by default
11309         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
11310
11311 2011-01-20  Bruno Haible  <bruno@clisp.org>
11312
11313         mbfile, mbiter: Complete change from 2008-12-21.
11314         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
11315         * m4/mbiter.m4 (gl_MBITER): Likewise.
11316
11317 2011-01-20  Jim Meyering  <meyering@redhat.com>
11318
11319         init.sh: insert space between each function name and "()"
11320         * tests/init.sh: Make it a little easier to see that a function's
11321         name is "warn_", and not "warn" when looking at the first part of
11322         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
11323
11324 2011-01-20  Jim Meyering  <meyering@redhat.com>
11325
11326         mountlist: clean up code formatting
11327         * lib/mountlist.c (read_file_system_list): Split a long line,
11328         correct bracing style, use NULL in place of "(struct statfs *)0",
11329         don't parenthesize return value, add spaces around "=" and after
11330         ";-in-for-stmt".
11331
11332 2011-01-14  Markus Duft <mduft@gentoo.org>
11333
11334         mountlist: add support for Interix
11335         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
11336         Apply statvfs to all entries of /dev/fs.
11337         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
11338         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
11339
11340 2011-01-20  Jim Meyering  <meyering@redhat.com>
11341
11342         maint.mk: improve the public-submodule-commit rule
11343         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
11344         to suppress printing of its commands... unless V=1.
11345         Add git submodule's --quiet option to suppress printing of e.g.,
11346         "Entering gnulib" output.
11347         "cd" into $(srcdir) before running git submodule.
11348
11349 2011-01-20  Bruno Haible  <bruno@clisp.org>
11350
11351         include_next: Fix bug introduced on 2011-01-18.
11352         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
11353         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
11354         ac_cv_header_... variable if the second argument is not 'check'.
11355         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
11356         gl_NEXT_HEADERS_INTERNAL.
11357
11358 2011-01-20  Bruno Haible  <bruno@clisp.org>
11359
11360         Allow the user to avoid the GNULIB_TEST_* macros.
11361         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
11362         Suggested by Paul Eggert.
11363
11364 2011-01-14  Jim Meyering  <meyering@redhat.com>
11365
11366         bootstrap: avoid failure when there is no .gitmodules file
11367         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
11368         has been assigned to, even when its value is the empty string.
11369         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
11370         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
11371         Reported by John W. Eaton <jwe@gnu.org>.
11372
11373 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
11374
11375         assume <ctype.h>, ..., <time.h> exist
11376         For years gnulib has been assuming the existence of the headers
11377         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
11378         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
11379         them, since they don't appear to be needed.
11380         * README (Portability guidelines): Document this.
11381         * lib/flock.c: Assume <fcntl.h> exists.
11382         * lib/regex_internal.h: Assume <locale.h> exists.
11383         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
11384         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
11385         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
11386         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
11387         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
11388         * m4/regex.m4 (gl_REGEX): Likewise.
11389         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
11390         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
11391         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
11392         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
11393         * tests/test-argp.c: Likewise.
11394         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
11395
11396         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
11397         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
11398         AA_APPLE_UNIVERSAL_BUILD.  See
11399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
11400         * NEWS: Document this.
11401
11402 2011-01-19  Eric Blake  <eblake@redhat.com>
11403
11404         c-stack: assume stack overflow if SA_SIGINFO unsupported
11405         * lib/c-stack.c (SIGACTION_WORKS): Rename...
11406         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
11407         sigaction will work.
11408         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
11409         behavior match Linux.
11410         * tests/test-c-stack.c (main): Prefer NULL for pointers.
11411
11412         stdbool-tests: accomodate Haiku
11413         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
11414
11415         binary-io: fix O_TEXT on Haiku
11416         * modules/binary-io (Depends-on): Add fcntl-h.
11417         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
11418         than blindly undefining O_TEXT.
11419         Reported by Scott McCreary.
11420
11421 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11422
11423         include_next: do not check for standard headers like stddef.h
11424
11425         I found this problem when modifying Emacs to use gnulib.
11426         I noticed that it added HAVE_STDDEF_H to config.h, even though
11427         gnulib always assumes <stddef.h> exists as per README and this
11428         symbol is unnecessary.
11429         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
11430         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
11431         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
11432         faster for headers like stddef.h that are known to exist.
11433         (gl_CHECK_NEXT_HEADERS): Use it.
11434         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
11435         rather than gl_CHECK_NEXT_HEADERS.
11436         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
11437         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
11438
11439 2011-01-18  Eric Blake  <eblake@redhat.com>
11440
11441         ansi-c++-opt: skip C++ dependency style if C++ is unused
11442         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
11443         tests when we know C++ compilation is not desired.
11444         Reported by Scott McCreary.
11445
11446 2011-01-18  Bruno Haible  <bruno@clisp.org>
11447
11448         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
11449         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
11450         (main): Perform test also when getrlimit and setrlimit don't exist or
11451         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
11452         limiting the address space size using setrlimit, compare the address
11453         space size before and after the the test.
11454         * tests/test-dprintf-posix2.c: Likewise.
11455         * tests/test-fprintf-posix3.sh: Update skip messages.
11456         * tests/test-dprintf-posix2.sh: Likewise.
11457         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
11458         * modules/dprintf-posix-tests (Depends-on): Likewise.
11459         Reported by Bruce Korb <bkorb@gnu.org> and
11460         Gary V. Vaughan <gary@gnu.org>.
11461
11462 2011-01-18  Bruno Haible  <bruno@clisp.org>
11463
11464         get-rusage-as: Improvement for Cygwin.
11465         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
11466         areas that are merely reserved.
11467
11468 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
11469
11470         strftime: remove dependencies on multibyte modules
11471
11472         strftime depended on mbrlen, mbsinit, and wchar, but these modules
11473         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
11474         only if __osf__ is defined, and I suspect OSF doesn't need these
11475         other modules.  If my guess is wrong, we'll need to come up with a
11476         variant of strftime that doesn't need the multibyte modules.
11477
11478         I discovered this problem when attempting modify Emacs to use the
11479         strftime module.  With the previous gnulib, this caused Emacs to
11480         need 31 new files, ranging from lib/config.charset to
11481         m4/wint_t.m4.  This was overkill and I expect would be offputting
11482         to the Emacs maintainers.  After this change, only 6 new files are
11483         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
11484         stdbool.m4, and tm_gmtoff.m4.
11485
11486         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
11487         Suggested by Bruno Haible in
11488         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
11489         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
11490         and do not check for wchar.h.
11491         * modules/strftime (Files): Remove m4/mbstate_t.m4.
11492         (Depends-on): Remove mbrlen, mbsinit, wchar.
11493
11494 2011-01-18  Bruno Haible  <bruno@clisp.org>
11495
11496         Tests for module 'get-rusage-as'.
11497         * modules/get-rusage-as-tests: New file.
11498         * tests/test-get-rusage-as.c: New file.
11499
11500         New module 'get-rusage-as'.
11501         * modules/get-rusage-as: New file.
11502         * lib/resource-ext.h: New file.
11503         * lib/get-rusage-as.c: New file.
11504
11505 2011-01-17  Eric Blake  <eblake@redhat.com>
11506
11507         sigaction: relax license from LGPLv3+ to LGPLv2+
11508         * modules/sigaction (License): Relax to LGPLv2+.
11509
11510 2011-01-14  Bruno Haible  <bruno@clisp.org>
11511
11512         filemode: Make function declarations usable in C++ mode.
11513         * lib/filemode.h: Enclose function declarations in extern "C" block.
11514         Reported by John W. Eaton <jwe@gnu.org>.
11515
11516 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
11517
11518         save-cwd: no longer include "xgetcwd.h"
11519         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
11520         This avoids a compilation failure in projects that use save-cwd
11521         without also using the xgetcwd module.
11522
11523 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11524
11525         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
11526         This is so that a program like Emacs, which needs only dtoastr,
11527         does not have to bother with distributing and compiling ftoastr
11528         and ldtoastr.
11529         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
11530         * modules/dtoastr, modules/ldtoastr: New files.
11531         * modules/ftoastr: Now works just for 'float'.
11532         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
11533         (Makefile.am): Remove ftoastr.h (not needed and no effect),
11534         dtoastr.c, ldtoastr.c.
11535
11536 2011-01-11  Jim Meyering  <meyering@redhat.com>
11537
11538         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
11539         There is no need to work around the lack of the fchdir function,
11540         since gnulib can now provide a replacement when required.
11541         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
11542         * modules/save-cwd (Depends-on): Add fchdir.
11543
11544 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
11545
11546         openat, save-cwd: avoid xmalloc
11547
11548         This removes a direct (but undocumented) dependency of openat on
11549         xalloc, along with an indirect dependency via save-cwd.  It also
11550         removes a dependency of save-cwd on xgetcwd, and thereby
11551         indirectly on xalloc.  This change causes the openat substitute
11552         to fall back on save_cwd when memory is tight, and for save_cwd to
11553         fail instead of dying when memory is tight, but that's good enough.
11554         Problem and initial idea for fix reported by Bastien Roucaries in
11555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
11556
11557         * lib/openat-proc.c: Include stdlib.h (for malloc), not
11558         xalloc.h (for xmalloc).
11559         (openat_proc_name): Use malloc, not xmalloc.
11560         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
11561         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
11562
11563         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
11564         This avoids heap allocation for file names whose lengths are in
11565         the range 512..1023, with the upper bound increasing to at most
11566         4031 depending on the platform's PATH_MAX.  (We do not want
11567         pathmax.h here as it might supply a non-constant PATH_MAX.)
11568         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
11569         Perhaps they should be moved to malloca.h?
11570         (OPENAT_BUFFER_SIZE): Use them.
11571
11572 2011-01-10  Bruno Haible  <bruno@clisp.org>
11573
11574         doc: Update users.txt.
11575         * users.txt: Add recutils.
11576
11577 2011-01-09  Karl Berry  <karl@gnu.org>
11578
11579         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
11580
11581         * doc/configmake.texi: New file.
11582         * doc/gnulib.texi: Include it.
11583         * modules/configmake: Move documentation from here.
11584
11585 2011-01-09  Bruno Haible  <bruno@clisp.org>
11586
11587         Update to Unicode 6.0.0.
11588         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
11589         (get_lbp): Update for Unicode 6.0.0.
11590         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
11591         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
11592         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
11593         U+11001, U+11038..U+11046. Remove U+06DE.
11594         (uc_width): Fix bounds of planes.
11595         * tests/uniwidth/test-uc_width2.sh: Same updates as in
11596         lib/uniwidth/width.c.
11597         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
11598         trailing whitespace removed.
11599         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
11600         without comments, but with the original copyright notice.
11601         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
11602         * lib/unicase/ignorable.h: Likewise.
11603         * lib/unicase/tocasefold.h: Likewise.
11604         * lib/unicase/tolower.h: Likewise.
11605         * lib/unicase/totitle.h: Likewise.
11606         * lib/unicase/toupper.h: Likewise.
11607         * lib/unictype/bidi_of.h: Likewise.
11608         * lib/unictype/blocks.h: Likewise.
11609         * lib/unictype/categ_C.h: Likewise.
11610         * lib/unictype/categ_Cn.h: Likewise.
11611         * lib/unictype/categ_L.h: Likewise.
11612         * lib/unictype/categ_Ll.h: Likewise.
11613         * lib/unictype/categ_Lm.h: Likewise.
11614         * lib/unictype/categ_Lo.h: Likewise.
11615         * lib/unictype/categ_Lu.h: Likewise.
11616         * lib/unictype/categ_M.h: Likewise.
11617         * lib/unictype/categ_Mc.h: Likewise.
11618         * lib/unictype/categ_Me.h: Likewise.
11619         * lib/unictype/categ_Mn.h: Likewise.
11620         * lib/unictype/categ_N.h: Likewise.
11621         * lib/unictype/categ_Nd.h: Likewise.
11622         * lib/unictype/categ_No.h: Likewise.
11623         * lib/unictype/categ_P.h: Likewise.
11624         * lib/unictype/categ_Po.h: Likewise.
11625         * lib/unictype/categ_S.h: Likewise.
11626         * lib/unictype/categ_Sc.h: Likewise.
11627         * lib/unictype/categ_Sk.h: Likewise.
11628         * lib/unictype/categ_Sm.h: Likewise.
11629         * lib/unictype/categ_So.h: Likewise.
11630         * lib/unictype/categ_of.h: Likewise.
11631         * lib/unictype/combining.h: Likewise.
11632         * lib/unictype/ctype_alnum.h: Likewise.
11633         * lib/unictype/ctype_alpha.h: Likewise.
11634         * lib/unictype/ctype_graph.h: Likewise.
11635         * lib/unictype/ctype_lower.h: Likewise.
11636         * lib/unictype/ctype_print.h: Likewise.
11637         * lib/unictype/ctype_punct.h: Likewise.
11638         * lib/unictype/ctype_upper.h: Likewise.
11639         * lib/unictype/decdigit.h: Likewise.
11640         * lib/unictype/digit.h: Likewise.
11641         * lib/unictype/numeric.h: Likewise.
11642         * lib/unictype/pr_alphabetic.h: Likewise.
11643         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
11644         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
11645         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
11646         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
11647         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
11648         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
11649         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
11650         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
11651         * lib/unictype/pr_case_ignorable.h: Likewise.
11652         * lib/unictype/pr_cased.h: Likewise.
11653         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
11654         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
11655         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
11656         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
11657         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
11658         * lib/unictype/pr_combining.h: Likewise.
11659         * lib/unictype/pr_composite.h: Likewise.
11660         * lib/unictype/pr_currency_symbol.h: Likewise.
11661         * lib/unictype/pr_decimal_digit.h: Likewise.
11662         * lib/unictype/pr_deprecated.h: Likewise.
11663         * lib/unictype/pr_format_control.h: Likewise.
11664         * lib/unictype/pr_grapheme_base.h: Likewise.
11665         * lib/unictype/pr_grapheme_extend.h: Likewise.
11666         * lib/unictype/pr_grapheme_link.h: Likewise.
11667         * lib/unictype/pr_id_continue.h: Likewise.
11668         * lib/unictype/pr_id_start.h: Likewise.
11669         * lib/unictype/pr_ideographic.h: Likewise.
11670         * lib/unictype/pr_lowercase.h: Likewise.
11671         * lib/unictype/pr_math.h: Likewise.
11672         * lib/unictype/pr_numeric.h: Likewise.
11673         * lib/unictype/pr_other_alphabetic.h: Likewise.
11674         * lib/unictype/pr_other_id_continue.h: Likewise.
11675         * lib/unictype/pr_other_math.h: Likewise.
11676         * lib/unictype/pr_punctuation.h: Likewise.
11677         * lib/unictype/pr_sentence_terminal.h: Likewise.
11678         * lib/unictype/pr_terminal_punctuation.h: Likewise.
11679         * lib/unictype/pr_unassigned_code_value.h: Likewise.
11680         * lib/unictype/pr_unified_ideograph.h: Likewise.
11681         * lib/unictype/pr_uppercase.h: Likewise.
11682         * lib/unictype/pr_xid_continue.h: Likewise.
11683         * lib/unictype/pr_xid_start.h: Likewise.
11684         * lib/unictype/scripts.h: Likewise.
11685         * lib/unictype/scripts_byname.gperf: Likewise.
11686         * lib/unictype/sy_java_ident.h: Likewise.
11687         * lib/unigbrk/gbrkprop.h: Likewise.
11688         * lib/unilbrk/lbrkprop1.h: Likewise.
11689         * lib/unilbrk/lbrkprop2.h: Likewise.
11690         * lib/uninorm/decomposition-table2.h: Likewise.
11691         * lib/uniwbrk/wbrkprop.h: Likewise.
11692         * tests/unicase/test-cased.c: Likewise.
11693         * tests/unicase/test-ignorable.c: Likewise.
11694         * tests/unicase/test-uc_tolower.c: Likewise.
11695         * tests/unicase/test-uc_totitle.c: Likewise.
11696         * tests/unicase/test-uc_toupper.c: Likewise.
11697         * tests/unictype/test-categ_C.c: Likewise.
11698         * tests/unictype/test-categ_Cn.c: Likewise.
11699         * tests/unictype/test-categ_L.c: Likewise.
11700         * tests/unictype/test-categ_Ll.c: Likewise.
11701         * tests/unictype/test-categ_Lm.c: Likewise.
11702         * tests/unictype/test-categ_Lo.c: Likewise.
11703         * tests/unictype/test-categ_Lu.c: Likewise.
11704         * tests/unictype/test-categ_M.c: Likewise.
11705         * tests/unictype/test-categ_Mc.c: Likewise.
11706         * tests/unictype/test-categ_Me.c: Likewise.
11707         * tests/unictype/test-categ_Mn.c: Likewise.
11708         * tests/unictype/test-categ_N.c: Likewise.
11709         * tests/unictype/test-categ_Nd.c: Likewise.
11710         * tests/unictype/test-categ_No.c: Likewise.
11711         * tests/unictype/test-categ_P.c: Likewise.
11712         * tests/unictype/test-categ_Po.c: Likewise.
11713         * tests/unictype/test-categ_S.c: Likewise.
11714         * tests/unictype/test-categ_Sc.c: Likewise.
11715         * tests/unictype/test-categ_Sk.c: Likewise.
11716         * tests/unictype/test-categ_Sm.c: Likewise.
11717         * tests/unictype/test-categ_So.c: Likewise.
11718         * tests/unictype/test-ctype_alnum.c: Likewise.
11719         * tests/unictype/test-ctype_alpha.c: Likewise.
11720         * tests/unictype/test-ctype_graph.c: Likewise.
11721         * tests/unictype/test-ctype_lower.c: Likewise.
11722         * tests/unictype/test-ctype_print.c: Likewise.
11723         * tests/unictype/test-ctype_punct.c: Likewise.
11724         * tests/unictype/test-ctype_upper.c: Likewise.
11725         * tests/unictype/test-decdigit.h: Likewise.
11726         * tests/unictype/test-digit.h: Likewise.
11727         * tests/unictype/test-numeric.h: Likewise.
11728         * tests/unictype/test-pr_alphabetic.c: Likewise.
11729         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
11730         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
11731         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
11732         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
11733         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
11734         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
11735         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
11736         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
11737         * tests/unictype/test-pr_case_ignorable.c: Likewise.
11738         * tests/unictype/test-pr_cased.c: Likewise.
11739         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
11740         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
11741         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
11742         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
11743         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
11744         * tests/unictype/test-pr_combining.c: Likewise.
11745         * tests/unictype/test-pr_composite.c: Likewise.
11746         * tests/unictype/test-pr_currency_symbol.c: Likewise.
11747         * tests/unictype/test-pr_decimal_digit.c: Likewise.
11748         * tests/unictype/test-pr_deprecated.c: Likewise.
11749         * tests/unictype/test-pr_format_control.c: Likewise.
11750         * tests/unictype/test-pr_grapheme_base.c: Likewise.
11751         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
11752         * tests/unictype/test-pr_grapheme_link.c: Likewise.
11753         * tests/unictype/test-pr_id_continue.c: Likewise.
11754         * tests/unictype/test-pr_id_start.c: Likewise.
11755         * tests/unictype/test-pr_ideographic.c: Likewise.
11756         * tests/unictype/test-pr_lowercase.c: Likewise.
11757         * tests/unictype/test-pr_math.c: Likewise.
11758         * tests/unictype/test-pr_numeric.c: Likewise.
11759         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
11760         * tests/unictype/test-pr_other_id_continue.c: Likewise.
11761         * tests/unictype/test-pr_other_math.c: Likewise.
11762         * tests/unictype/test-pr_punctuation.c: Likewise.
11763         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
11764         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
11765         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
11766         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
11767         * tests/unictype/test-pr_uppercase.c: Likewise.
11768         * tests/unictype/test-pr_xid_continue.c: Likewise.
11769         * tests/unictype/test-pr_xid_start.c: Likewise.
11770         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
11771         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
11772         changes.
11773         * lib/unictype/categ_Cc.h: Likewise.
11774         * lib/unictype/categ_Cf.h: Likewise.
11775         * lib/unictype/categ_Co.h: Likewise.
11776         * lib/unictype/categ_Cs.h: Likewise.
11777         * lib/unictype/categ_Lt.h: Likewise.
11778         * lib/unictype/categ_Nl.h: Likewise.
11779         * lib/unictype/categ_Pc.h: Likewise.
11780         * lib/unictype/categ_Pd.h: Likewise.
11781         * lib/unictype/categ_Pe.h: Likewise.
11782         * lib/unictype/categ_Pf.h: Likewise.
11783         * lib/unictype/categ_Pi.h: Likewise.
11784         * lib/unictype/categ_Ps.h: Likewise.
11785         * lib/unictype/categ_Z.h: Likewise.
11786         * lib/unictype/categ_Zl.h: Likewise.
11787         * lib/unictype/categ_Zp.h: Likewise.
11788         * lib/unictype/categ_Zs.h: Likewise.
11789         * lib/unictype/ctype_blank.h: Likewise.
11790         * lib/unictype/ctype_cntrl.h: Likewise.
11791         * lib/unictype/ctype_digit.h: Likewise.
11792         * lib/unictype/ctype_space.h: Likewise.
11793         * lib/unictype/ctype_xdigit.h: Likewise.
11794         * lib/unictype/mirror.h: Likewise.
11795         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
11796         * lib/unictype/pr_bidi_block_separator.h: Likewise.
11797         * lib/unictype/pr_bidi_common_separator.h: Likewise.
11798         * lib/unictype/pr_bidi_control.h: Likewise.
11799         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
11800         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
11801         * lib/unictype/pr_bidi_european_digit.h: Likewise.
11802         * lib/unictype/pr_bidi_pdf.h: Likewise.
11803         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
11804         * lib/unictype/pr_bidi_whitespace.h: Likewise.
11805         * lib/unictype/pr_dash.h: Likewise.
11806         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
11807         * lib/unictype/pr_diacritic.h: Likewise.
11808         * lib/unictype/pr_extender.h: Likewise.
11809         * lib/unictype/pr_hex_digit.h: Likewise.
11810         * lib/unictype/pr_hyphen.h: Likewise.
11811         * lib/unictype/pr_ids_binary_operator.h: Likewise.
11812         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
11813         * lib/unictype/pr_ignorable_control.h: Likewise.
11814         * lib/unictype/pr_iso_control.h: Likewise.
11815         * lib/unictype/pr_join_control.h: Likewise.
11816         * lib/unictype/pr_left_of_pair.h: Likewise.
11817         * lib/unictype/pr_line_separator.h: Likewise.
11818         * lib/unictype/pr_logical_order_exception.h: Likewise.
11819         * lib/unictype/pr_non_break.h: Likewise.
11820         * lib/unictype/pr_not_a_character.h: Likewise.
11821         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
11822         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
11823         * lib/unictype/pr_other_id_start.h: Likewise.
11824         * lib/unictype/pr_other_lowercase.h: Likewise.
11825         * lib/unictype/pr_other_uppercase.h: Likewise.
11826         * lib/unictype/pr_paired_punctuation.h: Likewise.
11827         * lib/unictype/pr_paragraph_separator.h: Likewise.
11828         * lib/unictype/pr_pattern_syntax.h: Likewise.
11829         * lib/unictype/pr_pattern_white_space.h: Likewise.
11830         * lib/unictype/pr_private_use.h: Likewise.
11831         * lib/unictype/pr_quotation_mark.h: Likewise.
11832         * lib/unictype/pr_radical.h: Likewise.
11833         * lib/unictype/pr_soft_dotted.h: Likewise.
11834         * lib/unictype/pr_space.h: Likewise.
11835         * lib/unictype/pr_titlecase.h: Likewise.
11836         * lib/unictype/pr_variation_selector.h: Likewise.
11837         * lib/unictype/pr_white_space.h: Likewise.
11838         * lib/unictype/pr_zero_width.h: Likewise.
11839         * lib/unictype/sy_c_ident.h: Likewise.
11840         * lib/unictype/sy_c_whitespace.h: Likewise.
11841         * lib/unictype/sy_java_whitespace.h: Likewise.
11842         * lib/uninorm/composition-table.gperf: Likewise.
11843         * lib/uninorm/decomposition-table1.h: Likewise.
11844         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
11845         LB8.
11846         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
11847         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
11848         * modules/unictype/*: Bump version number of expected libunistring
11849         version.
11850
11851 2011-01-09  Bruno Haible  <bruno@clisp.org>
11852
11853         Update to Unicode 5.2.0.
11854         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
11855         trailing whitespace removed.
11856
11857 2011-01-09  Bruno Haible  <bruno@clisp.org>
11858
11859         New Unicode character properties, from Unicode 5.2.0.
11860         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
11861         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
11862         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
11863         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
11864         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
11865         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
11866         uc_is_property_cased, uc_is_property_case_ignorable,
11867         uc_is_property_changes_when_lowercased,
11868         uc_is_property_changes_when_uppercased,
11869         uc_is_property_changes_when_titlecased,
11870         uc_is_property_changes_when_casefolded,
11871         uc_is_property_changes_when_casemapped): New declarations.
11872         * lib/unictype/pr_byname.gperf: Add the new properties.
11873         * modules/unictype/property-byname (Depends-on): Depend on the new
11874         properties modules.
11875         * modules/unictype/property-all (Depends-on): Likewise.
11876         * MODULES.html.sh (Unicode string functions): Add
11877         unictype/property-case-ignorable, unictype/property-cased,
11878         unictype/property-changes-when-casefolded,
11879         unictype/property-changes-when-casemapped,
11880         unictype/property-changes-when-lowercased,
11881         unictype/property-changes-when-titlecased,
11882         unictype/property-changes-when-uppercased.
11883
11884         New module 'unictype/property-changes-when-casemapped'.
11885         * modules/unictype/property-changes-when-casemapped: New file.
11886         * lib/unictype/pr_changes_when_casemapped.c: New file.
11887         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
11888         generated by gen-uni-tables.
11889         * modules/unictype/property-changes-when-casemapped-tests: New file.
11890         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
11891         automatically generated by gen-uni-tables.
11892
11893         New module 'unictype/property-changes-when-casefolded'.
11894         * modules/unictype/property-changes-when-casefolded: New file.
11895         * lib/unictype/pr_changes_when_casefolded.c: New file.
11896         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
11897         generated by gen-uni-tables.
11898         * modules/unictype/property-changes-when-casefolded-tests: New file.
11899         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
11900         automatically generated by gen-uni-tables.
11901
11902         New module 'unictype/property-changes-when-titlecased'.
11903         * modules/unictype/property-changes-when-titlecased: New file.
11904         * lib/unictype/pr_changes_when_titlecased.c: New file.
11905         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
11906         generated by gen-uni-tables.
11907         * modules/unictype/property-changes-when-titlecased-tests: New file.
11908         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
11909         automatically generated by gen-uni-tables.
11910
11911         New module 'unictype/property-changes-when-uppercased'.
11912         * modules/unictype/property-changes-when-uppercased: New file.
11913         * lib/unictype/pr_changes_when_uppercased.c: New file.
11914         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
11915         generated by gen-uni-tables.
11916         * modules/unictype/property-changes-when-uppercased-tests: New file.
11917         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
11918         automatically generated by gen-uni-tables.
11919
11920         New module 'unictype/property-changes-when-lowercased'.
11921         * modules/unictype/property-changes-when-lowercased: New file.
11922         * lib/unictype/pr_changes_when_lowercased.c: New file.
11923         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
11924         generated by gen-uni-tables.
11925         * modules/unictype/property-changes-when-lowercased-tests: New file.
11926         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
11927         automatically generated by gen-uni-tables.
11928
11929         New module 'unictype/property-case-ignorable'.
11930         * modules/unictype/property-case-ignorable: New file.
11931         * lib/unictype/pr_case_ignorable.c: New file.
11932         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
11933         by gen-uni-tables.
11934         * modules/unictype/property-case-ignorable-tests: New file.
11935         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
11936         generated by gen-uni-tables.
11937
11938         New module 'unictype/property-cased'.
11939         * modules/unictype/property-cased: New file.
11940         * lib/unictype/pr_cased.c: New file.
11941         * lib/unictype/pr_cased.h: New file, automatically generated by
11942         gen-uni-tables.
11943         * modules/unictype/property-cased-tests: New file.
11944         * tests/unictype/test-pr_cased.c: New file, automatically generated by
11945         gen-uni-tables.
11946
11947 2011-01-09  Bruno Haible  <bruno@clisp.org>
11948
11949         Update to Unicode 5.2.0.
11950         * lib/gen-uni-tables.c (output_predicate, output_category,
11951         output_combclass, output_bidi_category, output_decimal_digit_test,
11952         output_decimal_digit, output_digit_test, output_digit,
11953         output_numeric_test, output_numeric, output_mirror, output_scripts,
11954         output_scripts_byname, output_blocks, output_ident_category): Fix
11955         comment header.
11956         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
11957         get_wbp.
11958         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
11959         items.
11960         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
11961         Changes_When_Lowercased, Changes_When_Uppercased,
11962         Changes_When_Titlecased, Changes_When_Casefolded,
11963         Changes_When_Casemapped.
11964         (is_property_alphabetic, is_property_default_ignorable_code_point):
11965         Update for Unicode 5.2.0.
11966         (is_property_cased, is_property_case_ignorable,
11967         is_property_changes_when_lowercased,
11968         is_property_changes_when_uppercased,
11969         is_property_changes_when_titlecased,
11970         is_property_changes_when_casefolded,
11971         is_property_changes_when_casemapped): New functions.
11972         (output_properties): Output also the properties cased, case_ignorable,
11973         changes_when_lowercased, changes_when_uppercased,
11974         changes_when_titlecased, changes_when_casefolded,
11975         changes_when_casemapped.
11976         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
11977         Unicode TR#11 revision 17 -> 19.
11978         (LBP_CP): New enumeration value.
11979         (LBP_*): Adjust values accordingly.
11980         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11981         TR#14 revision 22 -> 24.
11982         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
11983         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
11984         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
11985         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
11986         is_WBP_MIDLETTER.
11987         (output_composition_tables): Allow for 24 bits instead of 16 bits in
11988         the code1 and code2 of each composition rule.
11989         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
11990         * lib/unicase/ignorable.h: Likewise.
11991         * lib/unicase/tocasefold.h: Likewise.
11992         * lib/unicase/tolower.h: Likewise.
11993         * lib/unicase/totitle.h: Likewise.
11994         * lib/unicase/toupper.h: Likewise.
11995         * lib/unictype/bidi_of.h: Likewise.
11996         * lib/unictype/blocks.h: Likewise.
11997         * lib/unictype/categ_C.h: Likewise.
11998         * lib/unictype/categ_Cf.h: Likewise.
11999         * lib/unictype/categ_Cn.h: Likewise.
12000         * lib/unictype/categ_L.h: Likewise.
12001         * lib/unictype/categ_Ll.h: Likewise.
12002         * lib/unictype/categ_Lm.h: Likewise.
12003         * lib/unictype/categ_Lo.h: Likewise.
12004         * lib/unictype/categ_Lu.h: Likewise.
12005         * lib/unictype/categ_M.h: Likewise.
12006         * lib/unictype/categ_Mc.h: Likewise.
12007         * lib/unictype/categ_Mn.h: Likewise.
12008         * lib/unictype/categ_N.h: Likewise.
12009         * lib/unictype/categ_Nd.h: Likewise.
12010         * lib/unictype/categ_Nl.h: Likewise.
12011         * lib/unictype/categ_No.h: Likewise.
12012         * lib/unictype/categ_P.h: Likewise.
12013         * lib/unictype/categ_Pd.h: Likewise.
12014         * lib/unictype/categ_Po.h: Likewise.
12015         * lib/unictype/categ_S.h: Likewise.
12016         * lib/unictype/categ_Sc.h: Likewise.
12017         * lib/unictype/categ_So.h: Likewise.
12018         * lib/unictype/categ_of.h: Likewise.
12019         * lib/unictype/combining.h: Likewise.
12020         * lib/unictype/ctype_alnum.h: Likewise.
12021         * lib/unictype/ctype_alpha.h: Likewise.
12022         * lib/unictype/ctype_graph.h: Likewise.
12023         * lib/unictype/ctype_lower.h: Likewise.
12024         * lib/unictype/ctype_print.h: Likewise.
12025         * lib/unictype/ctype_punct.h: Likewise.
12026         * lib/unictype/ctype_upper.h: Likewise.
12027         * lib/unictype/decdigit.h: Likewise.
12028         * lib/unictype/digit.h: Likewise.
12029         * lib/unictype/numeric.h: Likewise.
12030         * lib/unictype/pr_alphabetic.h: Likewise.
12031         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
12032         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
12033         * lib/unictype/pr_bidi_european_digit.h: Likewise.
12034         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
12035         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
12036         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
12037         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
12038         * lib/unictype/pr_combining.h: Likewise.
12039         * lib/unictype/pr_composite.h: Likewise.
12040         * lib/unictype/pr_currency_symbol.h: Likewise.
12041         * lib/unictype/pr_dash.h: Likewise.
12042         * lib/unictype/pr_decimal_digit.h: Likewise.
12043         * lib/unictype/pr_deprecated.h: Likewise.
12044         * lib/unictype/pr_diacritic.h: Likewise.
12045         * lib/unictype/pr_extender.h: Likewise.
12046         * lib/unictype/pr_grapheme_base.h: Likewise.
12047         * lib/unictype/pr_grapheme_extend.h: Likewise.
12048         * lib/unictype/pr_grapheme_link.h: Likewise.
12049         * lib/unictype/pr_id_continue.h: Likewise.
12050         * lib/unictype/pr_id_start.h: Likewise.
12051         * lib/unictype/pr_ideographic.h: Likewise.
12052         * lib/unictype/pr_ignorable_control.h: Likewise.
12053         * lib/unictype/pr_logical_order_exception.h: Likewise.
12054         * lib/unictype/pr_lowercase.h: Likewise.
12055         * lib/unictype/pr_numeric.h: Likewise.
12056         * lib/unictype/pr_other_alphabetic.h: Likewise.
12057         * lib/unictype/pr_punctuation.h: Likewise.
12058         * lib/unictype/pr_sentence_terminal.h: Likewise.
12059         * lib/unictype/pr_terminal_punctuation.h: Likewise.
12060         * lib/unictype/pr_unassigned_code_value.h: Likewise.
12061         * lib/unictype/pr_unified_ideograph.h: Likewise.
12062         * lib/unictype/pr_uppercase.h: Likewise.
12063         * lib/unictype/pr_xid_continue.h: Likewise.
12064         * lib/unictype/pr_xid_start.h: Likewise.
12065         * lib/unictype/pr_zero_width.h: Likewise.
12066         * lib/unictype/scripts.h: Likewise.
12067         * lib/unictype/scripts_byname.gperf: Likewise.
12068         * lib/unictype/sy_java_ident.h: Likewise.
12069         * lib/unigbrk/gbrkprop.h: Likewise.
12070         * lib/unilbrk/lbrkprop1.h: Likewise.
12071         * lib/unilbrk/lbrkprop2.h: Likewise.
12072         * lib/unilbrk/lbrktables.h: Likewise.
12073         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
12074         LBP_CP. Implement rule LB30.
12075         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
12076         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
12077         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
12078         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
12079         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
12080         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
12081         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
12082         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
12083         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
12084         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
12085         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
12086         bits instead of 16 bits in the code1 and code2 of each composition
12087         rule.
12088         (uc_composition): Update for Unicode 5.2.0.
12089         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
12090         * lib/uninorm/decomposition-table2.h: Likewise.
12091         * lib/uniwbrk/wbrkprop.h: Likewise.
12092         * tests/unicase/test-cased.c: Likewise.
12093         * tests/unicase/test-ignorable.c: Likewise.
12094         * tests/unicase/test-uc_tolower.c: Likewise.
12095         * tests/unicase/test-uc_totitle.c: Likewise.
12096         * tests/unicase/test-uc_toupper.c: Likewise.
12097         * tests/unictype/test-categ_C.c: Likewise.
12098         * tests/unictype/test-categ_Cf.c: Likewise.
12099         * tests/unictype/test-categ_Cn.c: Likewise.
12100         * tests/unictype/test-categ_L.c: Likewise.
12101         * tests/unictype/test-categ_Ll.c: Likewise.
12102         * tests/unictype/test-categ_Lm.c: Likewise.
12103         * tests/unictype/test-categ_Lo.c: Likewise.
12104         * tests/unictype/test-categ_Lu.c: Likewise.
12105         * tests/unictype/test-categ_M.c: Likewise.
12106         * tests/unictype/test-categ_Mc.c: Likewise.
12107         * tests/unictype/test-categ_Mn.c: Likewise.
12108         * tests/unictype/test-categ_N.c: Likewise.
12109         * tests/unictype/test-categ_Nd.c: Likewise.
12110         * tests/unictype/test-categ_Nl.c: Likewise.
12111         * tests/unictype/test-categ_No.c: Likewise.
12112         * tests/unictype/test-categ_P.c: Likewise.
12113         * tests/unictype/test-categ_Pd.c: Likewise.
12114         * tests/unictype/test-categ_Po.c: Likewise.
12115         * tests/unictype/test-categ_S.c: Likewise.
12116         * tests/unictype/test-categ_Sc.c: Likewise.
12117         * tests/unictype/test-categ_So.c: Likewise.
12118         * tests/unictype/test-ctype_alnum.c: Likewise.
12119         * tests/unictype/test-ctype_alpha.c: Likewise.
12120         * tests/unictype/test-ctype_graph.c: Likewise.
12121         * tests/unictype/test-ctype_lower.c: Likewise.
12122         * tests/unictype/test-ctype_print.c: Likewise.
12123         * tests/unictype/test-ctype_punct.c: Likewise.
12124         * tests/unictype/test-ctype_upper.c: Likewise.
12125         * tests/unictype/test-decdigit.h: Likewise.
12126         * tests/unictype/test-digit.h: Likewise.
12127         * tests/unictype/test-numeric.h: Likewise.
12128         * tests/unictype/test-pr_alphabetic.c: Likewise.
12129         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
12130         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
12131         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
12132         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
12133         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
12134         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
12135         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
12136         * tests/unictype/test-pr_combining.c: Likewise.
12137         * tests/unictype/test-pr_composite.c: Likewise.
12138         * tests/unictype/test-pr_currency_symbol.c: Likewise.
12139         * tests/unictype/test-pr_dash.c: Likewise.
12140         * tests/unictype/test-pr_decimal_digit.c: Likewise.
12141         * tests/unictype/test-pr_deprecated.c: Likewise.
12142         * tests/unictype/test-pr_diacritic.c: Likewise.
12143         * tests/unictype/test-pr_extender.c: Likewise.
12144         * tests/unictype/test-pr_grapheme_base.c: Likewise.
12145         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
12146         * tests/unictype/test-pr_grapheme_link.c: Likewise.
12147         * tests/unictype/test-pr_id_continue.c: Likewise.
12148         * tests/unictype/test-pr_id_start.c: Likewise.
12149         * tests/unictype/test-pr_ideographic.c: Likewise.
12150         * tests/unictype/test-pr_ignorable_control.c: Likewise.
12151         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
12152         * tests/unictype/test-pr_lowercase.c: Likewise.
12153         * tests/unictype/test-pr_numeric.c: Likewise.
12154         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
12155         * tests/unictype/test-pr_punctuation.c: Likewise.
12156         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
12157         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
12158         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
12159         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
12160         * tests/unictype/test-pr_uppercase.c: Likewise.
12161         * tests/unictype/test-pr_xid_continue.c: Likewise.
12162         * tests/unictype/test-pr_xid_start.c: Likewise.
12163         * tests/unictype/test-pr_zero_width.c: Likewise.
12164         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
12165         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
12166         changed behaviour: line breaking is now disallowed between a letter
12167         or '=' and '('.
12168         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
12169         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
12170         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
12171         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
12172         * tests/uniwidth/test-uc_width2.sh: Same updates as in
12173         lib/uniwidth/width.c.
12174         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
12175         without comments, but with the original copyright notice.
12176         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
12177         changes.
12178         * lib/unictype/categ_Cc.h: Likewise.
12179         * lib/unictype/categ_Co.h: Likewise.
12180         * lib/unictype/categ_Cs.h: Likewise.
12181         * lib/unictype/categ_Lt.h: Likewise.
12182         * lib/unictype/categ_Me.h: Likewise.
12183         * lib/unictype/categ_Pc.h: Likewise.
12184         * lib/unictype/categ_Pe.h: Likewise.
12185         * lib/unictype/categ_Pf.h: Likewise.
12186         * lib/unictype/categ_Pi.h: Likewise.
12187         * lib/unictype/categ_Ps.h: Likewise.
12188         * lib/unictype/categ_Sk.h: Likewise.
12189         * lib/unictype/categ_Sm.h: Likewise.
12190         * lib/unictype/categ_Z.h: Likewise.
12191         * lib/unictype/categ_Zl.h: Likewise.
12192         * lib/unictype/categ_Zp.h: Likewise.
12193         * lib/unictype/categ_Zs.h: Likewise.
12194         * lib/unictype/ctype_blank.h: Likewise.
12195         * lib/unictype/ctype_cntrl.h: Likewise.
12196         * lib/unictype/ctype_digit.h: Likewise.
12197         * lib/unictype/ctype_space.h: Likewise.
12198         * lib/unictype/ctype_xdigit.h: Likewise.
12199         * lib/unictype/mirror.h: Likewise.
12200         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
12201         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
12202         * lib/unictype/pr_bidi_block_separator.h: Likewise.
12203         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
12204         * lib/unictype/pr_bidi_common_separator.h: Likewise.
12205         * lib/unictype/pr_bidi_control.h: Likewise.
12206         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
12207         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
12208         * lib/unictype/pr_bidi_pdf.h: Likewise.
12209         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
12210         * lib/unictype/pr_bidi_whitespace.h: Likewise.
12211         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
12212         * lib/unictype/pr_format_control.h: Likewise.
12213         * lib/unictype/pr_hex_digit.h: Likewise.
12214         * lib/unictype/pr_hyphen.h: Likewise.
12215         * lib/unictype/pr_ids_binary_operator.h: Likewise.
12216         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
12217         * lib/unictype/pr_iso_control.h: Likewise.
12218         * lib/unictype/pr_join_control.h: Likewise.
12219         * lib/unictype/pr_left_of_pair.h: Likewise.
12220         * lib/unictype/pr_line_separator.h: Likewise.
12221         * lib/unictype/pr_math.h: Likewise.
12222         * lib/unictype/pr_non_break.h: Likewise.
12223         * lib/unictype/pr_not_a_character.h: Likewise.
12224         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
12225         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
12226         * lib/unictype/pr_other_id_continue.h: Likewise.
12227         * lib/unictype/pr_other_id_start.h: Likewise.
12228         * lib/unictype/pr_other_lowercase.h: Likewise.
12229         * lib/unictype/pr_other_math.h: Likewise.
12230         * lib/unictype/pr_other_uppercase.h: Likewise.
12231         * lib/unictype/pr_paired_punctuation.h: Likewise.
12232         * lib/unictype/pr_paragraph_separator.h: Likewise.
12233         * lib/unictype/pr_pattern_syntax.h: Likewise.
12234         * lib/unictype/pr_pattern_white_space.h: Likewise.
12235         * lib/unictype/pr_private_use.h: Likewise.
12236         * lib/unictype/pr_quotation_mark.h: Likewise.
12237         * lib/unictype/pr_radical.h: Likewise.
12238         * lib/unictype/pr_soft_dotted.h: Likewise.
12239         * lib/unictype/pr_space.h: Likewise.
12240         * lib/unictype/pr_titlecase.h: Likewise.
12241         * lib/unictype/pr_variation_selector.h: Likewise.
12242         * lib/unictype/pr_white_space.h: Likewise.
12243         * lib/unictype/sy_c_ident.h: Likewise.
12244         * lib/unictype/sy_c_whitespace.h: Likewise.
12245         * lib/unictype/sy_java_whitespace.h: Likewise.
12246         * modules/uni*/*: Bump version number of expected libunistring version.
12247         Reported by Simon Josefsson.
12248
12249 2011-01-09  Karl Heuer  <kwzh@gnu.org>
12250
12251         useless-if-before-free: fix typo in --help and make the internal,
12252         automatic version date update process work once again.
12253         --help output contained a NUL character instead of the
12254         backslash-zero that was intended.  Also, the "must lie within
12255         the first 8 lines" line is on line 9, and hence not getting
12256         automatically updated.
12257         * build-aux/useless-if-before-free: Fix the former by adding a
12258         backslash, and the latter by condensing the three lines of what-it-does
12259         to a single line, leaving one line of slack for the future.
12260
12261 2011-01-09  Bruno Haible  <bruno@clisp.org>
12262
12263         uniwidth/width: Fix width of U+1D173..U+1D17A.
12264         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
12265         symbolic_width, output_width_property_test): New functions.
12266         (main): Invoke output_nonspacing_property, output_width_property_test.
12267         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
12268         U+1D173..U+1D17A.
12269         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
12270         1.
12271         * modules/uniwidth/*: Bump version number of expected libunistring
12272         version.
12273         * modules/unilbrk/*: Likewise.
12274
12275 2011-01-08  Bruno Haible  <bruno@clisp.org>
12276
12277         uninorm tests: Preserve copyright of Unicode data file.
12278         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
12279         Mention modifications.
12280
12281 2011-01-08  Bruno Haible  <bruno@clisp.org>
12282
12283         gen-uni-tables: Prepare for Unicode 5.2.0.
12284         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
12285         (debug_output_lbp, output_lbp): Update.
12286
12287 2011-01-08  Bruno Haible  <bruno@clisp.org>
12288
12289         unilbrk: Clarify gen-uni-tables.c code.
12290         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
12291         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
12292         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
12293
12294 2011-01-07  Bruno Haible  <bruno@clisp.org>
12295
12296         strtod: Restore errno when successfully parsing Infinity or NaN.
12297         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
12298         restore the original errno.
12299
12300 2011-01-07  Bruno Haible  <bruno@clisp.org>
12301
12302         remove test: Avoid failure on HP-UX 11.
12303         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
12304
12305 2011-01-07  Bruno Haible  <bruno@clisp.org>
12306
12307         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
12308         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
12309         error code.
12310
12311 2011-01-07  Pádraig Brady <P@draigBrady.com>
12312
12313         ignore-value: fixup comments, and add Eric Blake
12314         as an author since he rewrote the macros.
12315         * lib/ignore-value.h (ignore_value):  State that
12316         we now support aggregates.  Also specify exactly
12317         when the GCC warn_unused_result feature was added.
12318
12319 2011-01-06  Eric Blake  <eblake@redhat.com>
12320
12321         ignore-value: support aggregate types
12322         * lib/ignore-value.h (ignore_value): Provide separate gcc
12323         definition.
12324         * modules/ignore-value-tests: New test module.
12325         * tests/test-ignore-value.c: New test.
12326
12327         maint.mk: improve sc_prohibit_strcmp regex
12328         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
12329         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
12330         definition of STRNEQ.
12331
12332         signal: work around Haiku issue with SIGBUS
12333         * lib/siglist.h: Add comment.
12334         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
12335         strsignal's favoring of SIGSEGV.
12336         * tests/test-signal.c (main): Avoid test failure.
12337         * doc/posix-headers/signal.texi (signal.h): Document the issue.
12338         Reported by Scott McCreary.
12339
12340         maint.mk: add pre-release check to ensure submodule commits are public
12341         * top/maint.mk (public-submodule-commit): New rule.
12342         (submodule-checks): New variable.
12343         (alpha beta stable): Depend on the variable.
12344
12345 2011-01-05  Pádraig Brady <P@draigBrady.com>
12346         and Jim Meyering  <meyering@redhat.com>
12347
12348         ignore-value: make ignore_value more generic; deprecate ignore_ptr
12349         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
12350         (ATTRIBUTE_DEPRECATED): Define.
12351         (_ignore_case): New function.
12352         (ignore_value): New macro, to replace the old function.
12353         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
12354         * modules/ignore-value (Depends-on): Add stdint.
12355
12356 2011-01-04  Eric Blake  <eblake@redhat.com>
12357
12358         doc: regenerate INSTALL
12359         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
12360         @firstparagraphindent support, now that autoconf dropped it.
12361         (INSTALL_PRELUDE): Reinstate old macro.
12362         * doc/install.texi: Resync from autoconf.
12363         * doc/INSTALL: Reflect recent autoconf update.
12364         * doc/INSTALL.ISO: Likewise.
12365         * doc/INSTALL.UTF-8: Likewise.
12366         Reported by Karl Berry.
12367
12368 2011-01-04  Bruce Korb  <address@hidden>
12369
12370         git-version-gen: avoid a sub-shell
12371         * build-aux/git-version-gen: Redirect stderr in `...` via
12372         "exec 2>...", rather than via an added sub-shell.
12373
12374 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
12375
12376         git-version-gen: use (...) rather than sh -c '...'
12377         * build-aux/git-version-gen: Rather than hard-coding a shell's name
12378         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
12379
12380 2011-01-03  Jim Meyering  <meyering@redhat.com>
12381
12382         git-version-gen: convert leading TABs to spaces
12383         * build-aux/git-version-gen: Expand leading TABs.
12384
12385         git-version-gen: handle failed "git rev-list"
12386         * build-aux/git-version-gen: Rather than leaking a "fatal" error
12387         from git and proceeding as if it had succeeded but printed no SHA1
12388         checksums, suppress the diagnostic and handle the failure.
12389         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
12390
12391         git-version-gen: include command name in one more diagnostic
12392         * build-aux/git-version-gen: When the required .tarball-version file
12393         was missing or unreadable, you might see the diagnostic from "cat",
12394         but no trace of the name of the invoking script.  Now, you still see
12395         the diagnostic from cat, but also get one from "git-version-gen: ".
12396         Inspired by a patch from Bruce Korb.
12397
12398         update-copyright: adjust test to match changed code
12399         * tests/test-update-copyright.sh: Change test's expected output
12400         to match new actual output.
12401
12402 2011-01-02  Bruno Haible  <bruno@clisp.org>
12403
12404         getlogin_r: Avoid test failure on HP-UX 11.
12405         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
12406         ERANGE when the second argument is zero.
12407         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
12408         portability problem.
12409
12410 2011-01-02  Bruce Korb  <bkorb@gnu.org>
12411
12412         * build-aux/update-copyright: doc Simon's changes
12413
12414 2011-01-02  Simon Josefsson  <simon@josefsson.org>
12415
12416         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
12417         environment variable.
12418
12419 2011-01-02  Bruno Haible  <bruno@clisp.org>
12420
12421         unigbrk: Avoid gcc warnings.
12422         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
12423         unused variable.
12424         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
12425         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
12426         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
12427         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
12428         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
12429         Change type of first argument to 'const char *'.
12430         (main): Remove unused variable.
12431         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
12432         type of first argument to 'const char *'.
12433         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
12434         Likewise.
12435         (main): Change type of variable 's'.
12436         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
12437         to 'int'.
12438
12439 2011-01-02  Bruno Haible  <bruno@clisp.org>
12440
12441         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
12442         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
12443         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
12444         bug.
12445         * lib/pwrite.c: Undo 2010-12-31 patch.
12446         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
12447
12448 2011-01-02  Bruno Haible  <bruno@clisp.org>
12449
12450         pread: Fix test whether it works.
12451         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
12452
12453 2011-01-02  Bruno Haible  <bruno@clisp.org>
12454
12455         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
12456         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
12457         ends in "6". Don't require a specific month name. Try also the locale
12458         names found on HP-UX 11 and Solaris 7.
12459
12460 2011-01-02  Bruno Haible  <bruno@clisp.org>
12461
12462         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
12463         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
12464         C linkage.
12465         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
12466
12467 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12468
12469         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
12470         for consistency, since the "cluster" term is not used elsewhere.
12471         * lib/unigbrk.in.h: Update name.
12472         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
12473         * lib/unigbrk/u16-grapheme-next.c: Update name.
12474         * lib/unigbrk/u16-grapheme-prev.c: Update name.
12475         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
12476         * lib/unigbrk/u32-grapheme-next.c: Update name.
12477         * lib/unigbrk/u32-grapheme-prev.c: Update name.
12478         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
12479         * lib/unigbrk/u8-grapheme-next.c: Update name.
12480         * lib/unigbrk/u8-grapheme-prev.c: Update name.
12481         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
12482         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
12483         Suggested by Bruno Haible.
12484
12485 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12486
12487         Remove module 'u8-grapheme-len' as too redundant with
12488         'u8-grapheme-next'.
12489         * modules/unigbrk/u8-grapheme-len: Delete file.
12490         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
12491         * lib/unigbrk.in.h: Remove prototype for deleted function.
12492         * lib/unigbrk/u8-grapheme-len.c: Delete file.
12493         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
12494
12495         Remove module 'u16-grapheme-len' as too redundant with
12496         'u16-grapheme-next'.
12497         * modules/unigbrk/u16-grapheme-len: Delete file.
12498         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
12499         * lib/unigbrk.in.h: Remove prototype for deleted function.
12500         * lib/unigbrk/u16-grapheme-len.c: Delete file.
12501         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
12502
12503         Remove module 'u32-grapheme-len' as too redundant with
12504         'u32-grapheme-next'.
12505         * modules/unigbrk/u32-grapheme-len: Delete file.
12506         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
12507         * lib/unigbrk.in.h: Remove prototype for deleted function.
12508         * lib/unigbrk/u32-grapheme-len.c: Delete file.
12509         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
12510
12511         Suggested by Bruno Haible.
12512
12513 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
12514
12515         * unigbrk.in.h: Fix typo: "ben" => "been".
12516         Reported by Bruno Haible.
12517
12518 2011-01-01  Jim Meyering  <meyering@redhat.com>
12519
12520         maint: update almost all copyright ranges to include 2011
12521         Run the new "make update-copyright" rule.
12522
12523 2011-01-01  Jim Meyering  <meyering@redhat.com>
12524
12525         maint: update-copyright: exempt doc/INSTALL*
12526         * Makefile (update-copyright): Also exclude doc/INSTALL*,
12527         since they are generated.  Suggested by Bruno Haible.
12528
12529 2011-01-01  Jim Meyering  <meyering@redhat.com>
12530
12531         maint: refine the update-copyright rule
12532         * Makefile (update-copyright): Also exclude any file that includes
12533         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
12534         code that merely generates the comment.
12535
12536 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12537
12538         New module 'u8-grapheme-len'.
12539         * modules/unigbrk/u8-grapheme-len: New file.
12540         * modules/unigbrk/u8-grapheme-len-tests: New file.
12541         * lib/unigbrk.in.h: Add prototype for new function.
12542         * lib/unigbrk/u8-grapheme-len.c: New file.
12543         * tests/unigbrk/test-u8-grapheme-len.c: New file.
12544
12545         New module 'u16-grapheme-len'.
12546         * modules/unigbrk/u16-grapheme-len: New file.
12547         * modules/unigbrk/u16-grapheme-len-tests: New file.
12548         * lib/unigbrk.in.h: Add prototype for new function.
12549         * lib/unigbrk/u16-grapheme-len.c: New file.
12550         * tests/unigbrk/test-u16-grapheme-len.c: New file.
12551
12552         New module 'u32-grapheme-len'.
12553         * modules/unigbrk/u32-grapheme-len: New file.
12554         * modules/unigbrk/u32-grapheme-len-tests: New file.
12555         * lib/unigbrk.in.h: Add prototype for new function.
12556         * lib/unigbrk/u32-grapheme-len.c: New file.
12557         * tests/unigbrk/test-u32-grapheme-len.c: New file.
12558
12559         New module 'u8-grapheme-next'.
12560         * modules/unigbrk/u8-grapheme-next: New file.
12561         * modules/unigbrk/u8-grapheme-next-tests: New file.
12562         * lib/unigbrk.in.h: Add prototype for new function.
12563         * lib/unigbrk/u8-grapheme-next.c: New file.
12564         * tests/unigbrk/test-u8-grapheme-next.c: New file.
12565
12566         New module 'u16-grapheme-next'.
12567         * modules/unigbrk/u16-grapheme-next: New file.
12568         * modules/unigbrk/u16-grapheme-next-tests: New file.
12569         * lib/unigbrk.in.h: Add prototype for new function.
12570         * lib/unigbrk/u16-grapheme-next.c: New file.
12571         * tests/unigbrk/test-u16-grapheme-next.c: New file.
12572
12573         New module 'u32-grapheme-next'.
12574         * modules/unigbrk/u32-grapheme-next: New file.
12575         * modules/unigbrk/u32-grapheme-next-tests: New file.
12576         * lib/unigbrk.in.h: Add prototype for new function.
12577         * lib/unigbrk/u32-grapheme-next.c: New file.
12578         * tests/unigbrk/test-u32-grapheme-next.c: New file.
12579
12580         New module 'u8-grapheme-prev'.
12581         * modules/unigbrk/u8-grapheme-prev: New file.
12582         * modules/unigbrk/u8-grapheme-prev-tests: New file.
12583         * lib/unigbrk.in.h: Add prototype for new function.
12584         * lib/unigbrk/u8-grapheme-prev.c: New file.
12585         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
12586
12587         New module 'u16-grapheme-prev'.
12588         * modules/unigbrk/u16-grapheme-prev: New file.
12589         * modules/unigbrk/u16-grapheme-prev-tests: New file.
12590         * lib/unigbrk.in.h: Add prototype for new function.
12591         * lib/unigbrk/u16-grapheme-prev.c: New file.
12592         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
12593
12594         New module 'u32-grapheme-prev'.
12595         * modules/unigbrk/u32-grapheme-prev: New file.
12596         * modules/unigbrk/u32-grapheme-prev-tests: New file.
12597         * lib/unigbrk.in.h: Add prototype for new function.
12598         * lib/unigbrk/u32-grapheme-prev.c: New file.
12599         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
12600
12601         New module 'u8-grapheme-breaks'.
12602         * modules/unigbrk/u8-grapheme-breaks: New file.
12603         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
12604         * lib/unigbrk.in.h: Add prototype for new function.
12605         * lib/unigbrk/u8-grapheme-breaks.c: New file.
12606         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
12607
12608         New module 'u16-grapheme-breaks'.
12609         * modules/unigbrk/u16-grapheme-breaks: New file.
12610         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
12611         * lib/unigbrk.in.h: Add prototype for new function.
12612         * lib/unigbrk/u16-grapheme-breaks.c: New file.
12613         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
12614
12615         New module 'u32-grapheme-breaks'.
12616         * modules/unigbrk/u32-grapheme-breaks: New file.
12617         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
12618         * lib/unigbrk.in.h: Add prototype for new function.
12619         * lib/unigbrk/u32-grapheme-breaks.c: New file.
12620         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
12621
12622         New module 'ulc-grapheme-breaks'.
12623         * modules/unigbrk/ulc-grapheme-breaks: New file.
12624         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
12625         * m4/locale-ar.m4: New file.
12626         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
12627         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
12628         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
12629
12630 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
12631
12632         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
12633         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
12634         modified how this file was generated before I initially submitted
12635         the module, but failed to regenerate it.  This meant that several
12636         of the level2 entries were wrong.
12637         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
12638         Remove the division-by-2 that is folded into the table now that
12639         gbrkprop.h has been regenerated properly.  Now -1 entries are
12640         handled correctly.
12641
12642         New module 'unigbrk/uc-gbrk-prop-tests'.
12643         * modules/unigbrk/uc-gbrk-prop-tests: New file.
12644         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
12645         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
12646         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
12647
12648 2011-01-01  Bruno Haible  <bruno@clisp.org>
12649
12650         Avoid use of hexadecimal escapes.
12651         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
12652         instead of hexadecimal escapes.
12653
12654 2011-01-01  Jim Meyering  <meyering@redhat.com>
12655
12656         maint: new rule to update copyright year ranges
12657         * Makefile (update-copyright): New rule.
12658
12659         maint: indent with TABs in Makefile
12660         * Makefile: Expand leading sequences of spaces to TABs
12661
12662         version-etc: update the copyright year it reports
12663         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
12664
12665 2010-12-31  Bruno Haible  <bruno@clisp.org>
12666
12667         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
12668         * lib/isfinite.c (zerof, zerod, zerol): New variables.
12669         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
12670         zero.
12671
12672 2010-12-31  Bruno Haible  <bruno@clisp.org>
12673
12674         pwrite: Work around HP-UX 11.11 bug.
12675         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
12676         works and set REPLACE_PWRITE if not.
12677         * lib/pwrite.c (pwrite): Add an implementation that uses the system
12678         function.
12679         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
12680
12681 2010-12-31  Bruno Haible  <bruno@clisp.org>
12682
12683         pread: Work around HP-UX 11 bugs.
12684         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
12685         and set REPLACE_PREAD if not.
12686         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
12687
12688 2010-12-31  Eric Blake  <eblake@redhat.com>
12689
12690         nl_langinfo: fix YESEXPR on Irix 6.5
12691         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
12692         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
12693         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
12694         it.
12695
12696 2010-12-31  Bruno Haible  <bruno@clisp.org>
12697
12698         iconv: Document HP-UX 11 bug.
12699         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
12700
12701 2010-12-31  Bruno Haible  <bruno@clisp.org>
12702
12703         ldexpl: Fix link error on HP-UX 11.
12704         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
12705         LDEXPL_LIBM, using $ISNANL_LIBM.
12706
12707 2010-12-31  Eric Blake  <eblake@redhat.com>
12708
12709         ftello: avoid compilation failure with SunStudio c89
12710         * lib/ftello.c (ftello): Use lseek, not llseek.
12711
12712         tests: avoid failing coreutils tests on cygwin
12713         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
12714         (create_exe_shims_): Return 0 when skipping.
12715
12716 2010-12-31  Bruno Haible  <bruno@clisp.org>
12717
12718         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
12719         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
12720
12721 2010-12-31  Bruno Haible  <bruno@clisp.org>
12722
12723         waitpid: Fix link error in C++ mode.
12724         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
12725
12726 2010-12-31  Bruno Haible  <bruno@clisp.org>
12727
12728         isnan: Use GCC built-ins when possible.
12729         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
12730         __builtin_isnan.
12731         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
12732         (isnan): Define using GCC built-ins for GCC >= 4.0.
12733
12734 2010-12-31  Bruno Haible  <bruno@clisp.org>
12735
12736         isnand: Fix mistake.
12737         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
12738         __builtin_isnand.
12739
12740 2010-12-31  Bruno Haible  <bruno@clisp.org>
12741
12742         open: Avoid C++ error on HP-UX 11.
12743         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
12744
12745 2010-12-31  Bruno Haible  <bruno@clisp.org>
12746
12747         time_r: Add missing declarations on HP-UX 11.
12748         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
12749         instead of HAVE_LOCALTIME_R.
12750         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
12751         HAVE_LOCALTIME_R always.
12752         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
12753         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
12754         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
12755         HAVE_LOCALTIME_R.
12756         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
12757         * doc/posix-functions/localtime_r.texi: Likewise.
12758
12759 2010-12-29  Eric Blake  <eblake@redhat.com>
12760
12761         mountlist: tweak previous commit
12762         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
12763         Reported by Paul Eggert.
12764
12765         mountlist: fix local drive detection on cygwin
12766         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
12767         that works for cygwin.
12768
12769 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
12770
12771         ftoastr, snprintf: ftoastr + snprintf module
12772         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
12773         since the snprintf module now should be good enough here.
12774         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
12775         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
12776         and gl_MODULE_INDICATOR([snprintf]), but the former enables
12777         GNULIB_SNPRINTF only for the test directory, and the latter
12778         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
12779         seems to suffice by itself.
12780
12781 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
12782
12783         alloca: one step towards thread-safety
12784         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
12785         need for a static variable.  All callers changed.  This does not
12786         make the alloca replacement thread-safe, but it's one step.
12787
12788         tests: minor indenting change
12789         * tests/init.sh: Sync from coreutils housekeeping patch
12790         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
12791         to keep lines within 80 columns.
12792
12793 2010-12-28  Jim Meyering  <meyering@redhat.com>
12794
12795         regex: don't infloop on persistent failing calloc
12796         * lib/regexec.c (build_trtable): Return failure indication upon
12797         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
12798         In glibc, this was fixed for version 2.13:
12799         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
12800
12801 2010-12-28  Bruno Haible  <bruno@clisp.org>
12802             Paul Eggert <eggert@cs.ucla.edu>
12803
12804         linkat: Make implementation robust against system behaviour variations.
12805         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
12806         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
12807         way, and to -2 if it needs a generic runtime test.
12808         * lib/linkat.c (solaris_optimized_link_immediate,
12809         solaris_optimized_link_follow): New functions.
12810         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
12811         (check_same_link): Use it.
12812
12813 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
12814
12815         New module 'unigbrk/base'.
12816         * modules/unigbrk/base: New file.
12817         * lib/unigbrk.in.h: New file.
12818
12819         New module 'unigbrk/uc-gbrk-prop'.
12820         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
12821         * modules/unigbrk/uc-gbrk-prop: New file.
12822         * lib/unigbrk/gbrkprop.h: New file.
12823         * lib/unigbrk/uc-gbrk-prop.c: New file.
12824
12825         New module 'unigbrk/uc-is-grapheme-break'.
12826         * modules/unigbrk/uc-is-grapheme-break: New file.
12827         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
12828         * lib/unigbrk/uc-is-grapheme-break.c: New file.
12829         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
12830         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
12831         * tests/unigbrk/GraphemeBreakTest.txt: New file.
12832
12833         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
12834
12835 2010-12-27  Bruno Haible  <bruno@clisp.org>
12836
12837         linkat test: Avoid failure on Solaris 11 2010-11.
12838         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
12839
12840 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12841
12842         utimens: work around glibc rounding bug on more platforms
12843         * lib/utimens.c (fdutimens): Work around rounding bug even if
12844         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
12845         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
12846
12847 2010-12-27  Bruno Haible  <bruno@clisp.org>
12848
12849         select tests: Improve comments.
12850         * tests/test-select.c (do_select): Add comments.
12851
12852 2010-12-27  Bruno Haible  <bruno@clisp.org>
12853
12854         select tests: Safer way of handling timeout.
12855         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
12856         at every invocation.
12857
12858 2010-12-27  Bruno Haible  <bruno@clisp.org>
12859
12860         select tests: Use 'bool' where appropriate.
12861         * tests/test-select.c (connect_to_socket): Change argument type to
12862         'bool'.
12863
12864 2010-12-27  Bruno Haible  <bruno@clisp.org>
12865
12866         select tests: Use existing modules.
12867         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
12868         (configure.ac): Don't test for unistd.h.
12869         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
12870         declared in <unistd.h>.
12871
12872 2010-12-27  Bruno Haible  <bruno@clisp.org>
12873
12874         mbrtowc: Work around a Solaris 7 bug.
12875         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
12876         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
12877         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
12878         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
12879         MBRTOWC_NULL_ARG1_BUG.
12880         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
12881         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
12882         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
12883         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
12884
12885 2010-12-27  Jim Meyering  <meyering@redhat.com>
12886
12887         read-file.c: tweak syntax
12888         * lib/read-file.c (fread_file): Remove space after "*" in function
12889         definitions.
12890
12891 2010-12-27  Bruno Haible  <bruno@clisp.org>
12892
12893         times test: Avoid gcc warnings on OSF/1.
12894         * tests/test-times.c (main): Cast printf arguments from clock_t to
12895         'long int'.
12896
12897 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
12898
12899         utimens: work around glibc rounding bug on older Linux kernels
12900         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
12901         on Linux with a glibc whose utimes might not work, then work
12902         around a longstanding glibc bug involving rounding rather than
12903         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
12904         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12905
12906 2010-12-26  Bruno Haible  <bruno@clisp.org>
12907
12908         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
12909         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
12910         _GL_CXXALIAS_SYS.
12911         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12912
12913 2010-12-26  Bruno Haible  <bruno@clisp.org>
12914
12915         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
12916         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
12917         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
12918         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
12919         looking for the declaration.
12920         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
12921         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
12922         problem.
12923         * doc/posix-functions/inet_pton.texi: Likewise.
12924
12925 2010-12-26  Bruno Haible  <bruno@clisp.org>
12926
12927         arpa_inet: Use the common idioms with C++ support.
12928         * lib/arpa_inet.in.h: Include c++defs.h.
12929         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
12930         support.
12931         * modules/arpa_inet (Depends-on): Add c++defs.
12932         (Makefile.am): Substitute the contents of c++defs.h.
12933         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
12934         * modules/arpa_inet-c++-tests: New file.
12935         * tests/test-arpa_inet-c++.cc: New file.
12936
12937 2010-12-25  Bruno Haible  <bruno@clisp.org>
12938
12939         Fix more C++ link errors on Solaris 8.
12940         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
12941         $(LIB_EACCESS).
12942         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
12943         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
12944         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
12945         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
12946         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
12947
12948 2010-12-25  Bruno Haible  <bruno@clisp.org>
12949
12950         printf-posix: Fix link error when a non-GCC compiler is used.
12951         * lib/stdio.in.h (printf): When not using GCC, override printf
12952         correctly.
12953         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
12954
12955 2010-12-25  Bruno Haible  <bruno@clisp.org>
12956
12957         strerror_r-posix: Update doc.
12958         * doc/posix-functions/strerror_r.texi: Update doc about the return
12959         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
12960
12961 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
12962
12963         utimens: simplify the logic of the previous change
12964         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
12965         This should not affect whether the test succeeds or fails.
12966
12967         utimens: configure better on hosts with NFS clock skew
12968         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
12969         uses the clock of the local host.  It might use the clock of the
12970         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
12971         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
12972
12973 2010-12-25  Bruno Haible  <bruno@clisp.org>
12974
12975         ptsname test: Avoid failure on Solaris.
12976         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
12977         open a pseudo-terminal; don't use BSD-style ptys.
12978         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
12979
12980 2010-12-25  Bruno Haible  <bruno@clisp.org>
12981
12982         ptsname: Avoid ERANGE failure on some systems.
12983         * lib/ptsname.c (buffer): Increase size.
12984
12985 2010-12-25  Bruno Haible  <bruno@clisp.org>
12986
12987         rename, renameat: Avoid test failures at NFS mounted locations.
12988         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
12989         so that subsequent mkdir calls succeed.
12990
12991 2010-12-25  Bruno Haible  <bruno@clisp.org>
12992
12993         iswblank: Fix C++ link error on Solaris 8.
12994         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
12995         _GL_FUNCDECL_SYS.
12996
12997 2010-12-25  Bruno Haible  <bruno@clisp.org>
12998
12999         unistd: Fix C++ link error on Solaris 8.
13000         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
13001
13002 2010-12-25  Bruno Haible  <bruno@clisp.org>
13003
13004         readlink doc: Mention an old glibc bug.
13005         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
13006
13007 2010-12-25  Bruno Haible  <bruno@clisp.org>
13008
13009         fcntl-h: Fix for use of C++ on glibc systems.
13010         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
13011         also on glibc systems in C++ mode.
13012         Reported by Gary V. Vaughan <gary@gnu.org>.
13013
13014 2010-12-25  Bruno Haible  <bruno@clisp.org>
13015
13016         roundl-ieee: Make it work on OSF/1 5.1 with cc.
13017         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
13018
13019 2010-12-25  Bruno Haible  <bruno@clisp.org>
13020
13021         truncl-ieee: Make it work on OSF/1 5.1 with cc.
13022         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
13023         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
13024         test whether truncl works according to ISO C 99 with IEC 60559.
13025         * m4/truncl-ieee.m4: New file.
13026         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
13027         m4/signbit.m4.
13028         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
13029
13030 2010-12-25  Bruno Haible  <bruno@clisp.org>
13031
13032         ceill-ieee: Make it work on OSF/1 5.1 with cc.
13033         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
13034         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
13035         test whether ceill works according to ISO C 99 with IEC 60559.
13036         * m4/ceill-ieee.m4: New file.
13037         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
13038         m4/signbit.m4.
13039         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
13040
13041 2010-12-25  Bruno Haible  <bruno@clisp.org>
13042
13043         Ensure all prerequisites of <wchar.h> are included.
13044         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
13045         before <wchar.h>.
13046         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
13047         gl_MBRLEN_NUL_RETVAL): Likewise.
13048         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
13049         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
13050         AC_FUNC_MBRTOWC): Likewise.
13051         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13052         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
13053         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
13054         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
13055         Likewise.
13056         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
13057         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
13058         (gl_WCHAR_H): Improve comments.
13059         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
13060
13061 2010-12-25  Bruno Haible  <bruno@clisp.org>
13062
13063         strtok_r: Fix C syntax error in autoconf macro.
13064         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
13065         characters in test program.
13066
13067 2010-12-24  Bruno Haible  <bruno@clisp.org>
13068
13069         ceil, trunc, round: Fix gcc warnings.
13070         * lib/ceil.c (MIN): Undefine before redefining.
13071         * lib/trunc.c (MIN): Likewise.
13072         * lib/round.c (MIN): Likewise.
13073         Include <math.h> first.
13074
13075 2010-12-24  Bruno Haible  <bruno@clisp.org>
13076
13077         select tests: Avoid failures on OSF/1 5.1.
13078         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
13079         failure of closing the last socket; it may fail with ECONNRESET.
13080
13081 2010-12-24  Eric Blake  <eblake@redhat.com>
13082
13083         stdint: avoid HP-UX 10.20 preprocessor bug
13084         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
13085         than #if.
13086         * tests/test-floor2.c (main): Likewise.
13087         Reported by Peter O'Gorman.
13088
13089         pipe: make obsoletion transition easier
13090         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
13091         * modules/pipe (Files): Include revived file.
13092         (Include): Drop reference, to mirror getdate's behavior.
13093
13094 2010-12-24  Bruno Haible  <bruno@clisp.org>
13095
13096         sys_socket: Hide mismatch of declarations on NonStop Kernel.
13097         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
13098         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
13099         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13100
13101 2010-12-24  Bruno Haible  <bruno@clisp.org>
13102
13103         gethostname: Ensure declaration on NonStop Kernel.
13104         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
13105         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13106
13107 2010-12-24  Bruno Haible  <bruno@clisp.org>
13108
13109         sys_select: Ensure all necessary types on NonStop Kernel.
13110         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
13111         include <sys/time.h>.
13112         * doc/posix-headers/sys_select.texi: Mention that it's missing on
13113         NonStop Kernel.
13114         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13115
13116 2010-12-24  Bruno Haible  <bruno@clisp.org>
13117
13118         sys_select: Remove unneeded include.
13119         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
13120         have <sys/select.h>.
13121
13122 2010-12-24  Bruno Haible  <bruno@clisp.org>
13123
13124         gethostname: Provide a fallback for HOST_NAME_MAX.
13125         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
13126         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
13127         instead.
13128         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13129
13130 2010-12-24  Bruno Haible  <bruno@clisp.org>
13131
13132         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
13133         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
13134         (SA_RESTART): Likewise.
13135         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13136
13137 2010-12-24  Bruno Haible  <bruno@clisp.org>
13138
13139         signal: Define NSIG.
13140         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
13141         * tests/test-signal.c (nsig): New variable.
13142         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13143
13144 2010-12-24  Bruno Haible  <bruno@clisp.org>
13145
13146         rename, renameat: Avoid test failures on OSF/1 5.1.
13147         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
13148         alternative error codes.
13149         * tests/test-renameat.c (main): Likewise.
13150
13151 2010-12-24  Bruno Haible  <bruno@clisp.org>
13152
13153         *printf: Detect large precisions bug on Solaris 10/SPARC.
13154         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
13155         by Paul Eggert.
13156         * tests/test-snprintf-posix.h (test_function): Add this test code here
13157         too.
13158         * tests/test-sprintf-posix.h (test_function): Likewise.
13159         * tests/test-vasnprintf-posix.c (test_function): Likewise.
13160         * tests/test-vasprintf-posix.c (test_function): Likewise.
13161         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
13162         around by gnulib.
13163         * doc/posix-functions/printf.texi: Likewise.
13164         * doc/posix-functions/snprintf.texi: Likewise.
13165         * doc/posix-functions/sprintf.texi: Likewise.
13166         * doc/posix-functions/vfprintf.texi: Likewise.
13167         * doc/posix-functions/vprintf.texi: Likewise.
13168         * doc/posix-functions/vsnprintf.texi: Likewise.
13169         * doc/posix-functions/vsprintf.texi: Likewise.
13170         * doc/posix-functions/dprintf.texi: Undo last commit.
13171         * doc/posix-functions/vdprintf.texi: Likewise.
13172
13173 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
13174
13175         tests: port test-fdutimensat.c to Solaris 8
13176         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
13177         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
13178         On Solaris 8, it fails with errno == ENOSYS, because there is no
13179         futimens (so it can't use the fd), and there is no lutimens (so it
13180         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
13181
13182         vsnprintf: make more consistent with snprintf; doc fixes
13183
13184         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
13185         the byte count return problem was promoted from the snprintf-posix
13186         to the snprintf module.
13187         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13188         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
13189         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
13190         * tests/test-snprintf.c (main): Check the byte count returned.
13191         * tests/test-vsnprintf.c (main): Likewise.
13192
13193 2010-12-23  Eric Blake  <eblake@redhat.com>
13194
13195         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
13196         * modules/sigpipe (License): Relax license.
13197
13198 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13199
13200         doc: document Solaris printf bug with large float precisions
13201         * doc/posix-functions/dprintf.texi (dprintf):
13202         * doc/posix-functions/fprintf.texi (fprintf):
13203         * doc/posix-functions/printf.texi (printf):
13204         * doc/posix-functions/snprintf.texi (snprintf):
13205         * doc/posix-functions/sprintf.texi (sprintf):
13206         * doc/posix-functions/vdprintf.texi (vdprintf):
13207         * doc/posix-functions/vfprintf.texi (vfprintf):
13208         * doc/posix-functions/vprintf.texi (vprintf):
13209         * doc/posix-functions/vsnprintf.texi (vsnprintf):
13210         * doc/posix-functions/vsprintf.texi (vsprintf):
13211         Mention that these functions mishandle large floating point
13212         precisions on Solaris 10.  The same bug is also present in Solaris
13213         8, and I assume earlier.  This causes "cd gnulib-tests; make
13214         check" to fail on Solaris 8 (and I assume, later) when building
13215         the latest coreutils, in test-vasprintf-posix's call to
13216         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
13217         the wide flavors (e.g., wprintf) so this patch just updates the
13218         documentation for the narrow ones.
13219
13220         test-posixtm.c: add two tests
13221         * tests/test-posixtm.c: Add two tests, to highlight the
13222         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
13223         around this bug; this is merely to document it.
13224
13225 2010-12-22  Bruno Haible  <bruno@clisp.org>
13226
13227         getlogin_r: Work around portability problem on OSF/1.
13228         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
13229         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
13230         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
13231         test for a truncated result.
13232         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
13233         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
13234         * modules/getlogin_r (Depends-on): Add memchr.
13235         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
13236
13237 2010-12-22  Bruno Haible  <bruno@clisp.org>
13238
13239         ptsname: Avoid test failure on OSF/1 5.1.
13240         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
13241         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
13242         (same_slave): New function.
13243         (main): Use it to compare ptsname's result with the expected file name.
13244
13245 2010-12-22  Bruno Haible  <bruno@clisp.org>
13246
13247         Port extended stdio modules to HP NonStop Kernel.
13248         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
13249         macros.
13250         * lib/fbufmode.c: Update comments.
13251         * lib/fflush.c: Likewise.
13252         * lib/fpurge.c: Likewise.
13253         * lib/freadable.c: Likewise.
13254         * lib/freadahead.c: Likewise.
13255         * lib/freading.c: Likewise.
13256         * lib/freadptr.c: Likewise.
13257         * lib/freadseek.c: Likewise.
13258         * lib/fseeko.c: Likewise.
13259         * lib/fseterr.c: Likewise.
13260         * lib/fwritable.c: Likewise.
13261         * lib/fwriting.c: Likewise.
13262         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
13263
13264 2010-12-22  Bruno Haible  <bruno@clisp.org>
13265
13266         ttyname_r: Work around bug on OSF/1 5.1.
13267         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
13268         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
13269         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
13270         present.
13271         * lib/ttyname_r.c (ttyname_r): Update comments.
13272
13273 2010-12-22  Bruno Haible  <bruno@clisp.org>
13274
13275         round: Implement result sign according to IEEE 754.
13276         * lib/round.c (MIN, MINUS_ZERO): New macros.
13277         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
13278         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
13279         * tests/test-round-ieee.c (main): Likewise.
13280         * tests/test-roundl-ieee.c (main): Likewise.
13281
13282         trunc: Implement result sign according to IEEE 754.
13283         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
13284         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
13285         * tests/test-trunc2.c: Include minus-zero.h.
13286         (MINUS_ZERO): New macro.
13287         (trunc_reference): Keep in sync with lib/trunc.c.
13288         * tests/test-truncf2.c: Include minus-zero.h.
13289         (MINUS_ZERO): New macro.
13290         (truncf_reference): Keep in sync with lib/trunc.c.
13291         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
13292         * tests/test-trunc-ieee.c (main): Likewise.
13293         * tests/test-truncl-ieee.c (main): Likewise.
13294
13295         ceil: Implement result sign according to IEEE 754.
13296         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
13297         (FUNC): Return -0.0 for -1 < x < 0.
13298         * tests/test-ceil2.c: Include minus-zero.h.
13299         (MINUS_ZERO): New macro.
13300         (ceil_reference): Keep in sync with lib/ceil.c.
13301         * tests/test-ceilf2.c: Include minus-zero.h.
13302         (MINUS_ZERO): New macro.
13303         (ceilf_reference): Keep in sync with lib/ceil.c.
13304         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
13305         * tests/test-ceil-ieee.c (main): Likewise.
13306         * tests/test-ceill-ieee.c (main): Likewise.
13307
13308         floor: Implement result sign according to IEEE 754.
13309         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
13310         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
13311         * tests/test-floorf2.c (floorf_reference): Likewise.
13312         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
13313         * tests/test-floor-ieee.c (main): Likewise.
13314         * tests/test-floorl-ieee.c (main): Likewise.
13315
13316 2010-12-22  Bruno Haible  <bruno@clisp.org>
13317
13318         getaddrinfo: Update doc.
13319         * doc/posix-functions/gai_strerror.texi: Return type is also different
13320         on AIX and HP-UX.
13321
13322 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
13323
13324         getaddrinfo, inet_ntop: Update doc for Solaris.
13325         * doc/posix-functions/gai_strerror.texi: Return type is also an
13326         issue on Solaris 9 and earlier.
13327         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
13328         on Solaris 10 and earlier.
13329
13330 2010-12-21  Bruno Haible  <bruno@clisp.org>
13331
13332         New module 'roundl-ieee'.
13333         * modules/roundl-ieee: New file.
13334         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
13335         test whether roundl works according to ISO C 99 with IEC 60559.
13336         * m4/roundl-ieee.m4: New file.
13337         * modules/roundl-ieee-tests: New file.
13338         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
13339         * tests/test-roundl.c (main): Remove signbit tests.
13340         * modules/roundl-tests (Depends-on): Remove signbit.
13341         * doc/posix-functions/roundl.texi: Mention the new module.
13342
13343 2010-12-21  Bruno Haible  <bruno@clisp.org>
13344
13345         New module 'truncl-ieee'.
13346         * modules/truncl-ieee: New file.
13347         * modules/truncl-ieee-tests: New file.
13348         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
13349         * tests/test-truncl.c (main): Remove signbit tests.
13350         * modules/truncl-tests (Depends-on): Remove signbit.
13351         * doc/posix-functions/truncl.texi: Mention the new module.
13352
13353 2010-12-21  Bruno Haible  <bruno@clisp.org>
13354
13355         New module 'ceill-ieee'.
13356         * modules/ceill-ieee: New file.
13357         * modules/ceill-ieee-tests: New file.
13358         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
13359         * tests/test-ceill.c (main): Remove signbit tests.
13360         * modules/ceill-tests (Depends-on): Remove signbit.
13361         * doc/posix-functions/ceill.texi: Mention the new module.
13362
13363 2010-12-21  Bruno Haible  <bruno@clisp.org>
13364
13365         New module 'floorl-ieee'.
13366         * modules/floorl-ieee: New file.
13367         * modules/floorl-ieee-tests: New file.
13368         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
13369         * tests/test-floorl.c (main): Remove signbit tests.
13370         * modules/floorl-tests (Depends-on): Remove signbit.
13371         * doc/posix-functions/floorl.texi: Mention the new module.
13372
13373 2010-12-21  Bruno Haible  <bruno@clisp.org>
13374
13375         New module 'round-ieee'.
13376         * modules/round-ieee: New file.
13377         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
13378         whether round works according to ISO C 99 with IEC 60559.
13379         * m4/round-ieee.m4: New file.
13380         * modules/round-ieee-tests: New file.
13381         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
13382         * tests/test-round1.c (main): Remove signbit tests.
13383         * modules/round-tests (Depends-on): Remove 'signbit'.
13384         * doc/posix-functions/round.texi: Mention the new module.
13385
13386 2010-12-21  Bruno Haible  <bruno@clisp.org>
13387
13388         New module 'trunc-ieee'.
13389         * modules/trunc-ieee: New file.
13390         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
13391         whether trunc works according to ISO C 99 with IEC 60559.
13392         * m4/trunc-ieee.m4: New file.
13393         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
13394         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
13395         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
13396         * modules/trunc-ieee-tests: New file.
13397         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
13398         * tests/test-trunc1.c (main): Remove signbit tests.
13399         * modules/trunc-tests (Depends-on): Remove 'signbit'.
13400         * doc/posix-functions/trunc.texi: Mention the new module.
13401
13402 2010-12-21  Bruno Haible  <bruno@clisp.org>
13403
13404         New module 'ceil-ieee'.
13405         * modules/ceil-ieee: New file.
13406         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
13407         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
13408         ISO C 99 with IEC 60559.
13409         * m4/ceil-ieee.m4: New file.
13410         * modules/ceil (Files): Add lib/ceil.c.
13411         (Depends-on): Add 'float'.
13412         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13413         * lib/math.in.h (ceil): New declaration.
13414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
13415         REPLACE_CEIL.
13416         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
13417         * modules/ceil-ieee-tests: New file.
13418         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
13419         * tests/test-math-c++.cc: Check the signature of 'ceil'.
13420         * doc/posix-functions/ceil.texi: Mention the new module.
13421
13422 2010-12-21  Bruno Haible  <bruno@clisp.org>
13423
13424         New module 'floor-ieee'.
13425         * modules/floor-ieee: New file.
13426         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
13427         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
13428         ISO C 99 with IEC 60559.
13429         * m4/floor-ieee.m4: New file.
13430         * modules/floor (Files): Add lib/floor.c.
13431         (Depends-on): Add 'float'.
13432         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
13433         * lib/math.in.h (floor): New declaration.
13434         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
13435         REPLACE_FLOOR.
13436         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
13437         * modules/floor-ieee-tests: New file.
13438         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
13439         * tests/test-math-c++.cc: Check the signature of 'floor'.
13440         * doc/posix-functions/floor.texi: Mention the new module.
13441
13442 2010-12-21  Bruno Haible  <bruno@clisp.org>
13443
13444         New module 'roundf-ieee'.
13445         * modules/roundf-ieee: New file.
13446         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
13447         test whether roundf works according to ISO C 99 with IEC 60559.
13448         * m4/roundf-ieee.m4: New file.
13449         * modules/roundf-ieee-tests: New file.
13450         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
13451         * tests/test-roundf1.c (main): Remove signbit tests.
13452         * modules/roundf-tests (Depends-on): Remove 'signbit'.
13453         * doc/posix-functions/roundf.texi: Mention the new module.
13454
13455 2010-12-21  Bruno Haible  <bruno@clisp.org>
13456
13457         New module 'truncf-ieee'.
13458         * modules/truncf-ieee: New file.
13459         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
13460         test whether truncf works according to ISO C 99 with IEC 60559.
13461         * m4/truncf-ieee.m4: New file.
13462         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
13463         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
13464         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
13465         * modules/truncf-ieee-tests: New file.
13466         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
13467         * tests/test-truncf1.c (main): Remove signbit tests.
13468         * modules/truncf-tests (Depends-on): Remove 'signbit'.
13469         * doc/posix-functions/truncf.texi: Mention the new module.
13470
13471 2010-12-21  Bruno Haible  <bruno@clisp.org>
13472
13473         New module 'ceilf-ieee'.
13474         * modules/ceilf-ieee: New file.
13475         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
13476         test whether ceilf works according to ISO C 99 with IEC 60559.
13477         * m4/ceilf-ieee.m4: New file.
13478         * modules/ceilf-ieee-tests: New file.
13479         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
13480         * tests/test-ceilf1.c (main): Remove signbit tests.
13481         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
13482         * doc/posix-functions/ceilf.texi: Mention the new module.
13483
13484 2010-12-21  Bruno Haible  <bruno@clisp.org>
13485
13486         New module 'floorf-ieee'.
13487         * modules/floorf-ieee: New file.
13488         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
13489         test whether floorf works according to ISO C 99 with IEC 60559.
13490         * m4/floorf-ieee.m4: New file.
13491         * modules/floorf-ieee-tests: New file.
13492         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
13493         * tests/test-floorf1.c (main): Remove signbit tests.
13494         * modules/floorf-tests (Depends-on): Remove 'signbit'.
13495         * doc/posix-functions/floorf.texi: Mention the new module.
13496
13497 2010-12-21  Bruno Haible  <bruno@clisp.org>
13498
13499         Support for minus zero in autoconf macros.
13500         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
13501         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
13502         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
13503         * tests/minus-zero.h: Update comments.
13504
13505 2010-12-21  Bruno Haible  <bruno@clisp.org>
13506
13507         Tests for module 'ceil'.
13508         * modules/ceil-tests: New file.
13509         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
13510         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
13511
13512 2010-12-21  Bruno Haible  <bruno@clisp.org>
13513
13514         Tests for module 'floor'.
13515         * modules/floor-tests: New file.
13516         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
13517         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
13518
13519 2010-12-21  Bruno Haible  <bruno@clisp.org>
13520
13521         math: Fix indentation.
13522         * lib/math.in.h (floorf): Fix indentation.
13523
13524 2010-12-21  Bruno Haible  <bruno@clisp.org>
13525
13526         Fix cross-compilation guesses on Solaris.
13527         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
13528         not match "solaris2.10".
13529         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13530         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
13531         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
13532
13533 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
13534
13535         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
13536         This fixes a problem observed with the latest coreutils snapshot
13537         that caused a test to fail on Solaris 8.  src/csplit.c's call
13538         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
13539         earlier, instead of returning the number of bytes that would have
13540         been generated; this causes csplit to incorrectly report memory
13541         exhaustion.
13542         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
13543         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
13544         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
13545         comments to match.
13546         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
13547         Fix typo in matching older versions of Solaris: "solaris2.10"
13548         is matched by the shell pattern "solaris2.[0-9]*".  This matters
13549         only for guessing while cross-compiling.
13550         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
13551
13552 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
13553
13554         ftoastr: fix comment again
13555         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13556         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
13557         Also, simplify example a bit by using flags = 0.
13558
13559 2010-12-20  Bruno Haible  <bruno@clisp.org>
13560
13561         round*, trunc*: Update documentation regarding glibc.
13562         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
13563         * doc/posix-functions/round.texi: Likewise.
13564         * doc/posix-functions/roundl.texi: Likewise.
13565         * doc/posix-functions/truncf.texi: Likewise.
13566         * doc/posix-functions/trunc.texi: Likewise.
13567         * doc/posix-functions/truncl.texi: Likewise.
13568
13569 2010-12-20  Bruno Haible  <bruno@clisp.org>
13570
13571         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
13572         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
13573         * doc/posix-functions/round.texi: Likewise.
13574         * doc/posix-functions/roundl.texi: Likewise.
13575
13576 2010-12-20  Bruno Haible  <bruno@clisp.org>
13577
13578         ttyname_r: Add missing declaration on HP-UX 11.
13579         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
13580         HAVE_TTYNAME_R.
13581         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
13582         declared. Set HAVE_TTYNAME_R always.
13583         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13584         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
13585         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
13586         HAVE_TTYNAME_R.
13587         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
13588
13589 2010-12-20  Bruno Haible  <bruno@clisp.org>
13590
13591         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
13592         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
13593         * doc/posix-functions/getlogin_r.texi: Likewise.
13594         * tests/test-getlogin.c: Include <errno.h>.
13595         (main): Avoid test failure on HP-UX 11.11.
13596         * tests/test-getlogin_r.c (main): Likewise.
13597
13598 2010-12-20  Bruno Haible  <bruno@clisp.org>
13599
13600         getlogin_r: Add missing declaration on HP-UX 11.
13601         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
13602         declared also when it exists as a function.
13603         * doc/posix-functions/getlogin_r.texi: Document this workaround.
13604
13605 2010-12-20  Bruno Haible  <bruno@clisp.org>
13606
13607         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
13608         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
13609         through wcrtomb.
13610
13611 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
13612
13613         ftoastr: fix comment
13614         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
13615         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
13616
13617 2010-12-19  Bruno Haible  <bruno@clisp.org>
13618
13619         isnan: Ensure it is a macro.
13620         * lib/math.in.h (isnan): Define as a macro if not already a macro.
13621         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
13622         Solaris.
13623
13624 2010-12-19  Bruno Haible  <bruno@clisp.org>
13625
13626         ldexpl test: Fix link error on OSF/1 5.1.
13627         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
13628
13629 2010-12-19  Bruno Haible  <bruno@clisp.org>
13630
13631         wctype: Make it work in C++ mode on OSF/1 5.1.
13632         * lib/wctype.in.h (iswblank): Declare but not define here.
13633         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
13634         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
13635         * modules/wctype (Files): Add lib/iswblank.c.
13636
13637 2010-12-19  Bruno Haible  <bruno@clisp.org>
13638
13639         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
13640         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
13641         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
13642
13643 2010-12-19  Bruno Haible  <bruno@clisp.org>
13644
13645         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
13646         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
13647         _POSIX_PII_SOCKET.
13648         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
13649         * doc/posix-functions/recvfrom.texi: Likewise.
13650         * doc/posix-functions/send.texi: Likewise.
13651         * doc/posix-functions/sendto.texi: Likewise.
13652
13653 2010-12-19  Bruno Haible  <bruno@clisp.org>
13654
13655         tcgetsid: Add missing declaration on OSF/1 5.1.
13656         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
13657         HAVE_TCGETSID.
13658         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
13659         Don't set HAVE_TCGETSID.
13660         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
13661         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
13662         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
13663         HAVE_TCGETSID.
13664         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
13665
13666 2010-12-19  Bruno Haible  <bruno@clisp.org>
13667
13668         stdio: Fix problem with popen() declaration on OSF/1 5.1.
13669         * lib/stdio.in.h: During the include_next statement, let recursive
13670         includes of this file include only the system header file.
13671
13672 2010-12-19  Bruno Haible  <bruno@clisp.org>
13673
13674         iconv_open: Fix regression from 2010-12-04.
13675         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
13676         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
13677
13678 2010-12-19  Bruno Haible  <bruno@clisp.org>
13679
13680         stdbool test: Avoid a gcc warning.
13681         * tests/test-stdbool.c (main): Fail if e1 is false.
13682         Reported by Jim Meyering.
13683
13684 2010-12-19  Jim Meyering  <meyering@redhat.com>
13685
13686         setenv: restore to working order
13687         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
13688         mistakenly removed.
13689         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
13690         HAVE_SETENV.
13691         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
13692         HAVE_SETENV.
13693
13694 2010-12-19  Bruno Haible  <bruno@clisp.org>
13695
13696         Document some different function declarations on OSF/1 5.1.
13697         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
13698         * doc/posix-functions/inet_ntop.texi: Likewise.
13699         * doc/posix-functions/gethostname.texi: Likewise.
13700         * lib/unistd.in.h (gethostname): Update comment.
13701
13702 2010-12-19  Bruno Haible  <bruno@clisp.org>
13703
13704         doc: Mention vasprintf-posix module.
13705         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
13706         the 'vasprintf-posix' module.
13707         * doc/glibc-functions/vasprintf.texi: Likewise.
13708
13709 2010-12-19  Bruno Haible  <bruno@clisp.org>
13710
13711         unsetenv: Add missing declaration on OSF/1 5.1.
13712         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
13713         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
13714         Don't set HAVE_UNSETENV. In the test program, set _BSD.
13715         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
13716         not HAVE_UNSETENV.
13717         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
13718         HAVE_UNSETENV.
13719         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
13720
13721 2010-12-19  Bruno Haible  <bruno@clisp.org>
13722
13723         setenv: Add missing declaration on OSF/1 5.1.
13724         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
13725         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
13726         declared. Don't set HAVE_SETENV.
13727         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
13728         not HAVE_SETENV.
13729         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
13730         HAVE_SETENV.
13731         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
13732
13733 2010-12-19  Bruno Haible  <bruno@clisp.org>
13734
13735         nl_langinfo tests: Avoid gcc warning.
13736         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
13737
13738 2010-12-19  Bruno Haible  <bruno@clisp.org>
13739
13740         mknod: Avoid error in C++ mode on OSF/1 with GCC.
13741         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
13742         _GL_CXXALIAS_SYS.
13743
13744 2010-12-19  Bruno Haible  <bruno@clisp.org>
13745
13746         stdbool: Relax test.
13747         * tests/test-stdbool.c (e): Don't require that casts from a variable's
13748         address to 'bool' work in static initializer, for compilers other than
13749         GCC.
13750
13751 2010-12-19  Bruno Haible  <bruno@clisp.org>
13752
13753         ftello: Add missing declaration on OSF/1 5.1.
13754         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
13755         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
13756         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
13757         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
13758         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
13759
13760 2010-12-19  Bruno Haible  <bruno@clisp.org>
13761
13762         fseeko: Add missing declaration on OSF/1 5.1.
13763         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
13764         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
13765         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
13766         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
13767         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
13768
13769 2010-12-19  Bruno Haible  <bruno@clisp.org>
13770
13771         fchdir: Add missing declaration on OSF/1 5.1.
13772         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
13773         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
13774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
13775         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
13776         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
13777
13778 2010-12-19  Bruno Haible  <bruno@clisp.org>
13779
13780         relocatable-prog-wrapper: Separate from relocatable-prog.
13781         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
13782         uninstall-relocwrapper rule here.
13783         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
13784         Reported by Ian Beckwith <ianb@erislabs.net>.
13785
13786 2010-12-19  Bruno Haible  <bruno@clisp.org>
13787
13788         unistr/u8-mbsnlen: Add missing dependency.
13789         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
13790         Reported by Ian Beckwith <ianb@erislabs.net>.
13791
13792 2010-12-19  Bruno Haible  <bruno@clisp.org>
13793
13794         iconv: Make it possible again to use this module without 'iconv-h'.
13795         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
13796         if it is not defined.
13797         Reported by Ian Beckwith <ianb@erislabs.net>.
13798
13799 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
13800
13801         acl: port to Solaris 8 when copying from tmpfs to ufs
13802         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
13803         error number.  Problem observed on Solaris 8 with latest
13804         coreutils, with "mv A B", where A is on a tmpfs file system and B
13805         is on a ufs file system.  This caused coreutils' mv/part-symlink
13806         test to fail.
13807
13808         tests: set fail=0 at start
13809         * tests/init.sh (setup_): Move fail=0 initialization here ...
13810         (mktempd_): ... from here, so that tests can rely on fail being
13811         set to 0 initially.  This fixes a problem in coreutils; see:
13812         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
13813
13814 2010-12-18  Bruno Haible  <bruno@clisp.org>
13815
13816         memmem-simple: Stylistic changes.
13817         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
13818         Fix preprocessor directive indentation.
13819
13820 2010-12-15  Pádraig Brady <P@draigBrady.com>
13821
13822         memmem, memmem-simple: reorganize and expand empty needle check
13823         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
13824         functional checks to memmem-simple so that one has a fully functional
13825         memmem by using just this module.
13826         Restrict the performance only check to the memmem module.
13827         Also expand the empty needle check to ensure the correct
13828         pointer is returned, not just a non NULL pointer.
13829         * doc/glibc-functions/memmem.texi: Rearrange the portability
13830         documentation to correlate with the rearranged checks.
13831         Clarify exactly how the memmem and memmem-simple modules
13832         relate to each other.
13833
13834 2010-12-15  Pádraig Brady <P@draigBrady.com>
13835             Bruno Haible  <bruno@clisp.org>
13836
13837         Improve cross-compilation guesses for uClibc.
13838         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
13839         that uClibc does not have the glibc bug.
13840         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
13841         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
13842
13843 2010-12-14  Eric Blake  <eblake@redhat.com>
13844
13845         configmake: provide fallbacks for oldest supported autotools
13846         * m4/configmake.m4: New file.
13847         * modules/configmake (Files): Ship it.
13848         (configure.ac): Use it to guarantee fallbacks.
13849
13850 2010-12-13  Pádraig Brady <P@draigBrady.com>
13851
13852         read-file: Improve handling of large files
13853         * lib/read-file.c (fread_file): Minimize realloc()s
13854         for regular files, and better manage sizes around SIZE_MAX.
13855
13856 2010-12-13  Eric Blake  <eblake@redhat.com>
13857
13858         cloexec, fcntl: relax license
13859         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
13860         consent from all contributors.
13861         * modules/fcntl (License): Likewise.
13862
13863 2010-12-10  Bruno Haible  <bruno@clisp.org>
13864
13865         Tests for module 'pipe-posix'.
13866         * modules/pipe-posix-tests: New file.
13867         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
13868
13869 2010-12-10  Bruno Haible  <bruno@clisp.org>
13870
13871         pipe-posix: Make it work in C++ mode.
13872         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
13873         (pipe): Use common idiom, not a macro definition.
13874         * lib/pipe.c: New file.
13875         * m4/pipe.m4: New file.
13876         * modules/pipe-posix (Description): Enhance.
13877         (Files): Add lib/pipe.c, m4/pipe.m4.
13878         (configure.ac): Invoke gl_FUNC_PIPE.
13879         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
13880         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
13881         * tests/test-unistd-c++.cc: Check the signature of pipe.
13882
13883 2010-12-10  Bruno Haible  <bruno@clisp.org>
13884
13885         Rename module 'pipe' to 'spawn-pipe'.
13886         * modules/spawn-pipe: New file, renamed from modules/pipe.
13887         (Files, configure.ac, Makefile.am): Update.
13888         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
13889         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
13890         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
13891         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
13892         "spawn-pipe.h" instead of "pipe.h".
13893         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
13894         to gl_SPAWN_PIPE.
13895         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
13896         (Files, Makefile.am): Update.
13897         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
13898         Update.
13899         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
13900         Include "spawn-pipe.h" instead of "pipe.h".
13901         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
13902         * lib/javacomp.c: Likewise.
13903         * lib/javaversion.c: Likewise.
13904         * lib/pipe-filter-gi.c: Likewise.
13905         * lib/pipe-filter-ii.c: Likewise.
13906         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
13907         * modules/javacomp (Depends-on): Likewise.
13908         * modules/javaversion (Depends-on): Likewise.
13909         * modules/pipe-filter-gi (Depends-on): Likewise.
13910         * modules/pipe-filter-ii (Depends-on): Likewise.
13911         * MODULES.html.sh (Executing programs): Update.
13912         * NEWS: Mention the change.
13913
13914 2010-12-10  Eric Blake  <eblake@redhat.com>
13915
13916         pipe-posix: new module
13917         * modules/pipe-posix: New file.
13918         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
13919         (gl_UNISTD_H): Check for declaration.
13920         * modules/unistd (Makefile.am): Substitute it.
13921         * lib/unistd.in.h (pipe): Provide it for mingw.
13922         * doc/posix-functions/pipe.texi (pipe): Update documentation.
13923         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
13924
13925 2010-12-07  Bruno Haible  <bruno@clisp.org>
13926
13927         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
13928         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
13929         u8_strcmp_gnu.
13930         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
13931
13932 2010-12-06  Bruno Haible  <bruno@clisp.org>
13933
13934         Update internal documentation.
13935         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
13936
13937 2010-12-04  Bruno Haible  <bruno@clisp.org>
13938
13939         Put more information about failed tests into the test return codes.
13940         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
13941         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
13942         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
13943         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
13944         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
13945         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
13946         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13947         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
13948         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
13949         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
13950         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
13951         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
13952         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
13953         * m4/stdint.m4 (gl_STDINT_H): Likewise.
13954         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
13955         returns a bit mask.
13956         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
13957         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
13958         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
13959         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
13960         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
13961         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
13962         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
13963         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
13964         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
13965         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
13966         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
13967         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
13968         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
13969         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
13970         * m4/link.m4 (gl_FUNC_LINK): Likewise.
13971         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
13972         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
13973         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
13974         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
13975         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
13976         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
13977         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
13978         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
13979         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
13980         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
13981         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
13982         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
13983         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
13984         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
13985         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
13986         gl_PRINTF_PRECISION): Likewise.
13987         * m4/regex.m4 (gl_REGEX): Likewise.
13988         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
13989         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
13990         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
13991         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
13992         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
13993         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13994         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
13995         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
13996         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13997         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
13998         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
13999         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
14000         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
14001         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
14002         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
14003         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
14004         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
14005         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
14006         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
14007         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
14008         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
14009         enumerated value.
14010         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
14011
14012 2010-12-04  Bruno Haible  <bruno@clisp.org>
14013
14014         Update for Solaris 11 2010-11.
14015         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
14016         Express, released in November 2010.
14017
14018 2010-12-04  Bruno Haible  <bruno@clisp.org>
14019
14020         nproc: Relax license.
14021         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
14022         and Paul Eggert.
14023         Requested by Ludovic Courtès <ludo@gnu.org>.
14024
14025 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
14026
14027         utimecmp: fine-grained src to nearby coarse-grained dest
14028
14029         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
14030         and the source is on a file system with higher-resolution time
14031         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
14032         not work, and the time stamps are close together, the algorithm to
14033         determine the exact resolution from the read-back mtime was buggy:
14034         it had a "!=" where it should have had an "==".  This bug has been
14035         in the code ever since it was introduced to gnulib.
14036         Problem reported by Dan Jacobson in
14037         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
14038
14039 2010-11-30  Bruno Haible  <bruno@clisp.org>
14040
14041         strerror_r-posix: Fix autoconf test.
14042         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
14043
14044 2010-11-28  Bruno Haible  <bruno@clisp.org>
14045             Paul Eggert  <eggert@cs.ucla.edu>
14046
14047         Tests for module 'getdomainname'.
14048         * modules/getdomainname-tests: New file.
14049         * tests/test-getdomainname.c: New file, based on
14050         tests/test-gethostname.c.
14051
14052 2010-11-28  Bruno Haible  <bruno@clisp.org>
14053             Paul Eggert  <eggert@cs.ucla.edu>
14054
14055         getdomainname: Use the system function when possible.
14056         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
14057         (getdomainname): Replace if needed. Provide the declaration if it is
14058         missing. Don't use _GL_CXXALIAS_SYS_CAST.
14059         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
14060         (getdomainname): When the system has getdomainname, call the system
14061         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
14062         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
14063         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
14064         found in libnsl. Look for the declaration also in <netdb.h>. Replace
14065         the function if its second argument is of type 'int' or if it is found
14066         in libnsl.
14067         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
14068         <sys/systeminfo.h> and sysinfo().
14069         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
14070         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14071         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
14072         HAVE_GETDOMAINNAME.
14073         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
14074         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
14075         * doc/glibc-functions/getdomainname.texi: Document the problems with
14076         the getdomainname declaration.
14077
14078 2010-11-28  Bruno Haible  <bruno@clisp.org>
14079
14080         sys_socket: Ensure ss_family field on AIX.
14081         * lib/sys_socket.in.h (ss_family): New macro definition.
14082         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
14083         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
14084         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
14085         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14086         * modules/sys_socket (Makefile.am): Substitute
14087         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
14088         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
14089
14090 2010-11-27  Bruno Haible  <bruno@clisp.org>
14091
14092         readline: Improve configure output.
14093         * m4/readline.m4 (gl_FUNC_READLINE): Make the
14094         "checking for readline..." result understandable.
14095
14096 2010-11-27  Bruno Haible  <bruno@clisp.org>
14097
14098         *printf-posix: Detect a bug on Solaris 10/x86.
14099         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
14100         for floating-point output.
14101         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
14102         directive.
14103         * tests/test-snprintf-posix.h (test_function): Likewise.
14104         * tests/test-sprintf-posix.h (test_function): Likewise.
14105         * tests/test-vasprintf-posix.c (test_function): Likewise.
14106         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
14107         * doc/posix-functions/printf.texi: Likewise.
14108         * doc/posix-functions/snprintf.texi: Likewise.
14109         * doc/posix-functions/sprintf.texi: Likewise.
14110         * doc/posix-functions/vfprintf.texi: Likewise.
14111         * doc/posix-functions/vprintf.texi: Likewise.
14112         * doc/posix-functions/vsnprintf.texi: Likewise.
14113         * doc/posix-functions/vsprintf.texi: Likewise.
14114         * doc/glibc-functions/obstack_printf.texi: Likewise.
14115         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
14116
14117 2010-11-27  Bruno Haible  <bruno@clisp.org>
14118
14119         Fix link error when module libunistring-optional is in use.
14120         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
14121         * modules/striconveha-tests (Makefile.am): Likewise.
14122
14123 2010-11-27  Bruno Haible  <bruno@clisp.org>
14124
14125         regex: Mention link dependencies.
14126         * modules/regex (Link): New section.
14127         * modules/rpmatch (Link): Likewise.
14128         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
14129
14130 2010-11-27  Bruno Haible  <bruno@clisp.org>
14131
14132         ftoastr: Fix compilation error on Solaris.
14133         * lib/ftoastr.c: Include <config.h>.
14134
14135 2010-11-27  Bruno Haible  <bruno@clisp.org>
14136
14137         getloadavg: Update documentation.
14138         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
14139
14140 2010-11-27  Bruno Haible  <bruno@clisp.org>
14141
14142         sys_socket: Fix test whether the functions are declared.
14143         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
14144         not <sys/select.h>.
14145
14146 2010-11-27  Bruno Haible  <bruno@clisp.org>
14147
14148         getpass: Make sure to get system declaration on some platforms.
14149         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
14150         gl_USE_SYSTEM_EXTENSIONS.
14151         * modules/getpass (Depends-on): Add extensions.
14152
14153 2010-11-26  Bruno Haible  <bruno@clisp.org>
14154
14155         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
14156         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
14157         'iconv' module is present.
14158         (ICONV_CONST): New macro.
14159         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
14160         ICONV_CONST.
14161         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
14162         set ICONV_CONST.
14163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
14164         here.
14165         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
14166         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
14167         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
14168         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
14169         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
14170         present.
14171
14172 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
14173
14174         ftoastr: comment fix
14175         * lib/ftoastr.c: "little" -> "little or no" in comment
14176
14177 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
14178
14179         stdint: port to GCC 4.3 + OSX + Octave
14180         On this platform, stdint.h is buggy and defines int64_t to long
14181         long int.  The replacement defined it to long int, causing
14182         problems with C++ style name mangling.  Instead, trust the system
14183         definition if INT64_MAX is defined, and likewise for the unsigned
14184         variant.   Problem reported by Jarno Rajahalme in
14185         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
14186         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
14187         and don't mess with int64_t and INT64_MAX in this case.
14188         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
14189
14190 2010-11-24  Bruno Haible  <bruno@clisp.org>
14191
14192         doc: Corrections regarding MacOS X 10.4 and 10.5.
14193         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
14194         MacOS X.
14195         Reported by Simon Josefsson.
14196
14197 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
14198
14199         Uninstall ".bin" files installed by relocwrapper.
14200         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
14201         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
14202         unless it is already there.
14203
14204 2010-11-21  Bruno Haible  <bruno@clisp.org>
14205
14206         Update for NetBSD 5.0.
14207         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14208         NetBSD; the test fails on NetBSD 5.0.
14209         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14210         about NetBSD.
14211
14212 2010-11-21  Bruno Haible  <bruno@clisp.org>
14213
14214         Update for HP-UX 11.23 and HP-UX 11.31.
14215         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
14216         HP-UX.
14217
14218 2010-11-21  Bruno Haible  <bruno@clisp.org>
14219
14220         Update for MacOS X 10.5.
14221         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
14222         MacOS X; the test fails on MacOS X 10.5.8.
14223         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
14224         about MacOS X.
14225
14226 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
14227
14228         bootstrap: add bootstrap_sync option.
14229         See discussion at
14230         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
14231         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
14232         * build-aux/bootstrap: Accept --bootstrap-sync to update
14233         bootstrap if it is not identical to the local gnulib's
14234         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
14235         enable this by default.  Accept --no-bootstrap-sync to disable
14236         it.
14237
14238 2010-11-20  Bruno Haible  <bruno@clisp.org>
14239
14240         Ensure that <features.h> is included before __GLIBC__ is tested.
14241         * lib/printf-parse.h: Include <features.h>.
14242         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
14243         Reported by Mike Frysinger <vapier@gentoo.org>.
14244
14245         Ensure that <features.h> is included before __GLIBC__ is tested.
14246         * lib/wchar.in.h: Include <features.h>.
14247         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
14248         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
14249         Reported by Mike Frysinger <vapier@gentoo.org>.
14250
14251         Ensure that <features.h> is included before __GLIBC__ is tested.
14252         * lib/arpa_inet.in.h: Include <features.h>.
14253         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
14254         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
14255         Reported by Mike Frysinger <vapier@gentoo.org>.
14256
14257         Ensure that <features.h> is included before __GLIBC__ is tested.
14258         * build-aux/link-warning.h: Include <features.h>.
14259         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
14260         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
14261         Reported by Mike Frysinger <vapier@gentoo.org>.
14262
14263         Ensure that <features.h> is included before __GLIBC__ is tested.
14264         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
14265         Reported by Mike Frysinger <vapier@gentoo.org>.
14266
14267 2010-11-20  Bruno Haible  <bruno@clisp.org>
14268
14269         memmem: Fix autoconf test.
14270         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
14271
14272 2010-11-20  Bruno Haible  <bruno@clisp.org>
14273
14274         Port to uClibc.
14275         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
14276         * lib/fcntl.in.h: Likewise.
14277         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
14278         * lib/mbrtowc.c (mbrtowc): Likewise.
14279         * lib/relocatable.c (find_shared_library_fullname): Likewise.
14280         * lib/strerror_r.c: Likewise.
14281         * lib/unistr/u8-strnlen.c: Likewise.
14282         * lib/vasnprintf.c (decimal_point_char): Likewise.
14283         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
14284         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
14285         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
14286         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
14287         * tests/test-sigaction.c (handler, main): Likewise.
14288         * lib/freading.h: Treat uClibc like a non-glibc platform.
14289         * lib/freading.c: Likewise.
14290         * lib/gettext.h: Likewise.
14291         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
14292         Likewise.
14293         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
14294         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
14295         * lib/propername.c (proper_name_utf8): Likewise.
14296         * lib/spawn.in.h: Likewise.
14297         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
14298         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
14299         mem_cd_iconveh_internal): Likewise.
14300         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
14301         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
14302         strstr, strcasestr): Likewise.
14303         * lib/unicodeio.c (unicode_to_mb): Likewise.
14304         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
14305         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
14306         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
14307         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
14308         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
14309         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
14310         * lib/unistr/u8-stpncpy.c: Likewise.
14311         * lib/vasnprintf.c (VASNPRINTF): Likewise.
14312         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
14313         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
14314         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
14315         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
14316         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
14317         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
14318         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
14319         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
14320         Likewise.
14321         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
14322         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
14323         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
14324         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14325         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14326         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
14327         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14328         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
14329         * tests/test-getopt.h (OPTIND_MIN): Likewise.
14330         * tests/test-striconveha.c (main): Likewise.
14331         * tests/test-vasnprintf-posix.c (test_function): Likewise.
14332         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
14333         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
14334         * doc/posix-functions/getline.texi: Likewise.
14335         Reported by Mike Frysinger <vapier@gentoo.org>.
14336
14337 2010-11-20  Bruno Haible  <bruno@clisp.org>
14338
14339         nproc: Fix condition.
14340         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
14341         HAVE_PTHREAD_AFFINITY_NP.
14342
14343 2010-11-20  Bruno Haible  <bruno@clisp.org>
14344
14345         Fix a comment.
14346         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
14347
14348 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
14349
14350         ftoastr: don't assume snprintf
14351         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
14352         Implement a subset of snprintf here, by using sprintf safely.
14353         * modules/ftoastr (Depends-on): Remove snprintf.
14354
14355 2010-11-19  Jim Meyering  <meyering@redhat.com>
14356
14357         test-rename.h: fix compilation failure
14358         * tests/test-rename.h (test_rename): Add omitted "}".
14359
14360 2010-11-17  Jim Meyering  <meyering@redhat.com>
14361
14362         maint.mk: add a URL discussing the no-@acronym policy
14363         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
14364
14365 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
14366
14367         ftoastr: depend on snprintf, improve comments
14368         * lib/ftoastr.c: Also mention Loitsch's draft.
14369         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
14370         needed in the current implementation, but it might simplify
14371         speeding up the code later.
14372         * modules/ftoastr: Depend on snprintf; this improves portability.
14373         Suggested by Bruno Haible in the same email.
14374
14375         ftoastr: port to hosts lacking strtof and strtold
14376         Problem reported by Bruno Haible in
14377         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
14378         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
14379         environment and strtold (and presumably strtof) are not available.
14380         * modules/ftoastr (Files): Add m4/c-strtod.m4.
14381         (configure.ac): Require gl_C99_STRTOLD.
14382
14383 2010-11-18  Bruno Haible  <bruno@clisp.org>
14384
14385         c-strtold: Avoid link error on AIX 7.
14386         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
14387         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
14388         (gl_C_STRTOLD): Test whether strtold_l exists.
14389         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14390
14391 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
14392
14393         intprops: new macro INT_BITS_STRLEN_BOUND
14394         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
14395         ftoastr.h.  This exposes an internal of intprops.h that was formerly
14396         not exposed.  Also, it uses a slightly tighter bound than before;
14397         though this makes no practical difference, we might as well be as
14398         tight as we easily can.
14399
14400         ftoastr: new module, for lossless conversion of floats to short strings
14401         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
14402         * modules/ftoastr: New files.
14403
14404 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
14405
14406         bootstrap: port to Solaris sed
14407         * build-aux/bootstrap (get_version): Port to Solaris sed.
14408         See Ralf Wildenhues's note in
14409         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
14410
14411 2010-11-14  Jim Meyering  <meyering@redhat.com>
14412
14413         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
14414         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
14415         and move definition closer to sole use.
14416
14417 2010-11-13  Jim Meyering  <meyering@redhat.com>
14418
14419         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
14420         Now we require at least autoconf-2.59, which means the work-around
14421         is no longer needed.
14422         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
14423         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
14424         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
14425         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
14426         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
14427
14428 2010-11-13  Bruno Haible  <bruno@clisp.org>
14429
14430         rename, renameat: Avoid test failures at NFS mounted locations.
14431         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
14432         functions.
14433         (test_rename): Use assert_nonexistent.
14434         * tests/test-rename.c: Include <dirent.h>.
14435         * tests/test-renameat.c: Likewise.
14436         Reported by Gary V. Vaughan <gary@gnu.org>.
14437
14438         rename, renameat: Document Linux bug with NFS
14439         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
14440         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
14441         * doc/posix-functions/renameat.texi: Likewise.
14442         Suggested by Eric Blake.
14443
14444 2010-11-13  Bruno Haible  <bruno@clisp.org>
14445
14446         rename test: Add comments.
14447         * tests/test-rename.h (test_rename): Add structure and comments.
14448
14449 2010-11-13  Eric Blake  <eblake@redhat.com>
14450
14451         maintainer-makefile: cover a few more files
14452         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
14453         scripts generated within C files, for libvirt.
14454
14455 2010-11-13  Bruno Haible  <bruno@clisp.org>
14456
14457         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
14458         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
14459         character, return the number of bytes that belong together, not always
14460         1.
14461         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
14462         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
14463         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
14464         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
14465         number of bytes of an invalid character.
14466         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
14467         (main): Invoke it.
14468         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
14469         results.
14470         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
14471         malformed byte sequences.
14472         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
14473         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
14474         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
14475         Reported by Ben Pfaff and Paolo Bonzini.
14476
14477 2010-11-13  Bruno Haible  <bruno@clisp.org>
14478
14479         openat: Work around glibc bug with fchownat() and empty file names.
14480         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
14481         (gl_FUNC_FCHOWNAT): Invoke it.
14482         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
14483         * doc/posix-functions/fchownat.texi: Document the glibc bug.
14484         Reported by Gary V. Vaughan <gary@gnu.org>.
14485
14486 2010-11-13  Bruno Haible  <bruno@clisp.org>
14487
14488         openat: Ensure autoconf macro ordering.
14489         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
14490         gl_USE_SYSTEM_EXTENSIONS.
14491         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
14492
14493 2010-11-13  Bruno Haible  <bruno@clisp.org>
14494
14495         Update comments.
14496         * lib/unistr/u8-check.c: Update file name in comments.
14497         * lib/unistr/u8-mblen.c: Likewise.
14498         * lib/unistr/u8-prev.c: Likewise.
14499         * lib/unistr/u8-strmblen.c: Likewise.
14500         * lib/unistr/u8-strmbtouc.c: Likewise.
14501
14502 2010-11-13  Jim Meyering  <meyering@redhat.com>
14503
14504         tests: avoid test failure on Solaris 10 due to lack of PATH export
14505         * tests/test-update-copyright.sh: Don't forget to export PATH.
14506
14507         init.sh: ensure that IFS is defined, just in case...
14508         * tests/init.sh (setup_): Ensure that IFS is defined,
14509         so that saving and restoring it works as expected.  This
14510         appears to be useful at least for an old version of dash
14511         from a long time ago (RH 6).  See here for details:
14512         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
14513
14514         maint.mk: tighten "test a == b" check
14515         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
14516         test to files that contain something like #!/bin/sh.
14517         Without this, coreutils would get two false positives in
14518         the comments of C source files.
14519
14520 2010-11-12  Eric Blake  <eblake@redhat.com>
14521
14522         bootstrap: fix typo in previous attempt
14523         * build-aux/bootstrap (buildreq): Correct the grouping.
14524         Reported by Paul Eggert.
14525
14526         maintainer-makefile: prohibit test x == x
14527         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
14528         Based on a report by Matthias Bolte.
14529
14530         bootstrap: allow FreeBSD gzip
14531         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
14532         which has no '.' and goes to stderr.
14533         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
14534         Reported by Matthias Bolte.
14535
14536         maintainer-makefile: check for i18n setup
14537         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
14538         will likely work.
14539
14540 2010-11-12  Bruno Haible  <bruno@clisp.org>
14541
14542         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
14543         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
14544         * lib/nanosleep.c (nanosleep): Likewise.
14545
14546 2010-11-11  Bruno Haible  <bruno@clisp.org>
14547
14548         fcntl-h: Fix for use of C++ on glibc systems.
14549         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
14550         also on glibc systems in C++ mode.
14551         Reported by Gary V. Vaughan <gary@gnu.org>.
14552
14553 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14554
14555         mknod: avoid false failure with dash
14556         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
14557
14558 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
14559
14560         unlink: Fix "is it should" typo in diagnostic.
14561         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
14562         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
14563
14564 2010-11-11  Bruno Haible  <bruno@clisp.org>
14565
14566         Tests for module 'strerror_r-posix'.
14567         * modules/strerror_r-posix-tests: New file.
14568         * tests/test-strerror_r.c: New file.
14569         * tests/test-string-c++.cc: Check the signature of strerror_r.
14570
14571         New module 'strerror_r-posix'.
14572         * lib/string.in.h (strerror_r): New declaration.
14573         * lib/strerror_r.c: New file.
14574         * m4/strerror_r.m4: New file.
14575         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
14576         of strerror_r.
14577         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
14578         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14579         * modules/strerror_r-posix: New file.
14580         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
14581         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
14582         * doc/posix-functions/strerror_r.texi: Mention the new module and the
14583         portability problems.
14584
14585 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
14586
14587         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
14588         line is also considered for output. Quoted function name in shell
14589         command, so temporary files for functions like MyClass::operator()
14590         are removed correctly without errors.
14591
14592 2010-11-09  Bruno Haible  <bruno@clisp.org>
14593
14594         * doc/posix-functions/strerror.texi: List more failing platforms.
14595
14596         * doc/posix-functions/strerror.texi: Add a comment.
14597
14598 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
14599
14600         fdopendir: fix bug on MacOS X when low on file descriptors
14601
14602         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
14603         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
14604         All callers changed.
14605         (fdopendir): Invoke save_cwd at the top level, not after using
14606         multiple dup() calls to use up file descriptors.  Then retry
14607         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
14608         less than the maximum number of open file descriptors, because
14609         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
14610         on Mac OS X 10.6.4 for tar 1.24
14611         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
14612         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
14613         and for tar 1.25
14614         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
14615
14616 2010-11-07  Bruno Haible  <bruno@clisp.org>
14617
14618         vasnprintf: Support I flag on glibc systems.
14619         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
14620         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
14621         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
14622         snprintf function.
14623         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
14624         glibc systems.
14625         * tests/test-vasnprintf-posix3.c: New file.
14626         * modules/vasnprintf-posix-tests (Files): Add it.
14627         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
14628
14629 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
14630
14631         [html] Fix copy/paste bug: Use unique name for compiler warnings.
14632         * MODULES.html.sh: For compiler warnings, use name
14633         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
14634
14635 2010-11-05  Eric Blake  <eblake@redhat.com>
14636
14637         ceil, floor: avoid spurious failure with icc
14638         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
14639         [denormals-as-zero] when optimizing without -mieee-fp option.
14640         * tests/test-floorf2.c (floorf_reference): Likewise.
14641         * tests/test-ceilf1.c (dummy): New function.
14642         (main): Use it to outsmart icc's optimization.
14643         * tests/test-floorf1.c (dummy, main): Likewise.
14644
14645         tests: require working signbit
14646         * modules/ceilf-tests (Depends-on): Add signbit.
14647         * modules/ceill-tests (Depends-on): Likewise.
14648         * modules/floorf-tests (Depends-on): Likewise.
14649         * modules/floorl-tests (Depends-on): Likewise.
14650         * modules/round-tests (Depends-on): Likewise.
14651         * modules/roundf-tests (Depends-on): Likewise.
14652         * modules/roundl-tests (Depends-on): Likewise.
14653         * modules/trunc-tests (Depends-on): Likewise.
14654         * modules/truncf-tests (Depends-on): Likewise.
14655         * modules/truncl-tests (Depends-on): Likewise.
14656
14657         strtod: work around icc bug
14658         * lib/strtod.c (minus_zero): Define to working value.
14659         (strtod): Use it to avoid icc bug.
14660
14661         copysign: enhance tests
14662         * modules/copysign-tests (Files): Add minus-zero.h.
14663         * tests/test-copysign.c (main): Also test zeros.
14664
14665 2010-11-04  Eric Blake  <eblake@redhat.com>
14666
14667         ceil, floor, round, trunc: enhance tests of -0
14668         * tests/test-ceilf1.c (main): Ensure correct sign of result.
14669         * tests/test-ceill.c (main): Likewise.
14670         * tests/test-floorf1.c (main): Likewise.
14671         * tests/test-floorl.c (main): Likewise.
14672         * tests/test-round1.c (main): Likewise.
14673         * tests/test-roundf1.c (main): Likewise.
14674         * tests/test-roundl.c (main): Likewise.
14675         * tests/test-trunc1.c (main): Likewise.
14676         * tests/test-truncf1.c (main): Likewise.
14677         * tests/test-truncl.c (main): Likewise.
14678
14679 2010-11-04  Eric Blake  <eblake@redhat.com>
14680
14681         frexp, tests: work around ICC bug with -zero
14682         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
14683         works with more compilers.
14684         * tests/minus-zero.h: New file.
14685         * modules/ceilf-tests (Files): Include it.
14686         * modules/ceill-tests (Files): Likewise.
14687         * modules/floorf-tests (Files): Likewise.
14688         * modules/floorl-tests (Files): Likewise.
14689         * modules/frexp-nolibm-tests (Files): Likewise.
14690         * modules/frexp-tests (Files): Likewise.
14691         * modules/frexpl-nolibm-tests (Files): Likewise.
14692         * modules/frexpl-tests (Files): Likewise.
14693         * modules/isnan-tests (Files): Likewise.
14694         * modules/isnand-nolibm-tests (Files): Likewise.
14695         * modules/isnand-tests (Files): Likewise.
14696         * modules/isnanf-nolibm-tests (Files): Likewise.
14697         * modules/isnanf-tests (Files): Likewise.
14698         * modules/isnanl-nolibm-tests (Files): Likewise.
14699         * modules/isnanl-tests (Files): Likewise.
14700         * modules/round-tests (Files): Likewise.
14701         * modules/roundf-tests (Files): Likewise.
14702         * modules/roundl-tests (Files): Likewise.
14703         * modules/ldexpl-tests (Files): Likewise.
14704         * modules/signbit-tests (Files): Likewise.
14705         * modules/snprintf-posix-tests (Files): Likewise.
14706         * modules/sprintf-posix-tests (Files): Likewise.
14707         * modules/strtod-tests (Files): Likewise.
14708         * modules/trunc-tests (Files): Likewise.
14709         * modules/truncf-tests (Files): Likewise.
14710         * modules/truncl-tests (Files): Likewise.
14711         * modules/vsnprintf-posix-tests (Files): Likewise.
14712         * modules/vsprintf-posix-tests (Files): Likewise.
14713         * modules/vasnprintf-posix-tests (Files): Likewise.
14714         * modules/vasprintf-posix-tests (Files): Likewise.
14715         * tests/test-ceilf1.c (main): Use it.
14716         * tests/test-ceill.c (main): Likewise.
14717         * tests/test-floorf1.c (main): Likewise.
14718         * tests/test-floorl.c (main): Likewise.
14719         * tests/test-frexp.c (main): Likewise.
14720         * tests/test-frexpl.c (main): Likewise.
14721         * tests/test-isnan.c (main): Likewise.
14722         * tests/test-isnand.h (main): Likewise.
14723         * tests/test-isnanf.h (main): Likewise.
14724         * tests/test-isnanl.h (main): Likewise.
14725         * tests/test-ldexpl.c (main): Likewise.
14726         * tests/test-round.c (main): Likewise.
14727         * tests/test-roundf.c (main): Likewise.
14728         * tests/test-roundl.c (main): Likewise.
14729         * tests/test-signbit.c (test_signbitf, test_signbitd)
14730         (test_signbitl): Likewise.
14731         * tests/test-snprintf-posix.h (test_function): Likewise.
14732         * tests/test-sprintf-posix.h (test_function): Likewise.
14733         * tests/test-strtod.c (main): Likewise.
14734         * tests/test-trunc1.c (main): Likewise.
14735         * tests/test-truncf1.c (main): Likewise.
14736         * tests/test-truncl.c (main): Likewise.
14737
14738         isnanl: work around icc bug
14739         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
14740
14741 2010-11-03  Eric Blake  <eblake@redhat.com>
14742
14743         tests: fix compiler warnings
14744         * tests/test-getopt.h (test_getopt): Fix condition.
14745         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14746         * tests/test-pipe2.c (main): Likewise.
14747         * tests/test-quotearg-simple.c (main): Avoid icc warning.
14748
14749         utimens: fix broken m4 test
14750         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
14751
14752 2010-10-28  Bruno Haible  <bruno@clisp.org>
14753
14754         posix_spawn*, getdtablesize: Relax license.
14755         * modules/posix_spawn (License): Change to LGPLv2+.
14756         * modules/posix_spawnp (License): Likewise.
14757         * modules/posix_spawn-internal (License): Likewise.
14758         * modules/posix_spawnattr_init (License): Likewise.
14759         * modules/posix_spawnattr_getflags (License): Likewise.
14760         * modules/posix_spawnattr_setflags (License): Likewise.
14761         * modules/posix_spawnattr_getpgroup (License): Likewise.
14762         * modules/posix_spawnattr_setpgroup (License): Likewise.
14763         * modules/posix_spawnattr_getschedparam (License): Likewise.
14764         * modules/posix_spawnattr_setschedparam (License): Likewise.
14765         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
14766         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
14767         * modules/posix_spawnattr_getsigdefault (License): Likewise.
14768         * modules/posix_spawnattr_setsigdefault (License): Likewise.
14769         * modules/posix_spawnattr_getsigmask (License): Likewise.
14770         * modules/posix_spawnattr_setsigmask (License): Likewise.
14771         * modules/posix_spawnattr_destroy (License): Likewise.
14772         * modules/posix_spawn_file_actions_init (License): Likewise.
14773         * modules/posix_spawn_file_actions_addclose (License): Likewise.
14774         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
14775         * modules/posix_spawn_file_actions_addopen (License): Likewise.
14776         * modules/posix_spawn_file_actions_destroy (License): Likewise.
14777         * modules/getdtablesize (License): Likewise.
14778         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
14779
14780 2010-10-26  Bruno Haible  <bruno@clisp.org>
14781
14782         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
14783         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
14784         Cygwin and mingw.
14785         Suggested by Eric Blake.
14786
14787 2010-10-26  Bruno Haible  <bruno@clisp.org>
14788
14789         stdio: Work around compilation error due to renameat() on Solaris 10.
14790         * lib/stdio.in.h: Include <unistd.h> on Solaris.
14791         * lib/renameat.c: Don't include <unistd.h> here.
14792         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
14793         Reported by Paul Eggert and Eric Blake.
14794
14795 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
14796
14797         renameat: port to Solaris 10, which declares renameat in unistd.h
14798
14799         * lib/renameat.c: Include unistd.h before stdio.h, because
14800         Solaris 10 declares renameat in unistd.h.  Problem encountered
14801         when building GNU tar 1.24 on Solaris 10.
14802
14803 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
14804
14805         fdopendir: fix C89 compilation
14806         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
14807         compilers.
14808
14809 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
14810
14811         inttostr: simplify by removing unnecessary redundancy
14812         * lib/anytostr.c: Don't include verify.h.
14813         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
14814         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
14815         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
14816         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
14817         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
14818         Likewise.
14819         * modules/inttostr (Depends-on): Remove 'verify'.
14820
14821 2010-10-23  Bruno Haible  <bruno@clisp.org>
14822
14823         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
14824         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
14825         Reported by Eric Blake.
14826
14827 2010-10-23  Bruno Haible  <bruno@clisp.org>
14828
14829         Tests: Fix LOCALE_JA on MirBSD 10.
14830         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
14831         to an UTF-8 locale.
14832         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
14833         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
14834         Reported by Eric Blake.
14835
14836 2010-10-21  Bruno Haible  <bruno@clisp.org>
14837
14838         nl_langinfo test: Avoid test failure on NetBSD 5.
14839         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
14840         Reported by Eric Blake.
14841
14842 2010-10-21  Eric Blake  <eblake@redhat.com>
14843
14844         c-stack: work around libsigsegv 2.8 bug
14845         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
14846         overflow on at least PowerPC64.
14847
14848 2010-10-17  Bruno Haible  <bruno@clisp.org>
14849
14850         userspec: Drop redundant file.
14851         * modules/userspec (Files): Remove lib/inttostr.h.
14852
14853 2010-10-17  Bruno Haible  <bruno@clisp.org>
14854
14855         nl_langinfo tests: Silence some warnings.
14856         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
14857         Reported by Jim Meyering.
14858
14859 2010-10-17  Bruno Haible  <bruno@clisp.org>
14860
14861         Make use of GCC's attribute __alloc_size__.
14862         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
14863         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
14864         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
14865         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
14866         __alloc_size__.
14867         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14868         Suggested by Jim Meyering.
14869
14870 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
14871
14872         bootstrap: anchor .gitignore entries.
14873         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
14874         with...
14875         (insert_vc_ignore): ... this new function, which prepends `/' to
14876         all .gitignore entries before passing them to
14877         insert_sorted_if_absent.
14878
14879 2010-10-16  Bruno Haible  <bruno@clisp.org>
14880
14881         nextafter: Fix configure check.
14882         * modules/nextafter (configure.ac): Correct expected prototype.
14883
14884 2010-10-16  Bruno Haible  <bruno@clisp.org>
14885
14886         termios: Update documentation.
14887         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
14888
14889 2010-10-16  Bruno Haible  <bruno@clisp.org>
14890
14891         tests: Make them compile with TinyCC.
14892         * tests/test-strstr.c (main): Remove parentheses around array
14893         initializer.
14894
14895 2010-10-15  Eric Blake  <eblake@redhat.com>
14896
14897         ignore-value: make header idempotent
14898         * lib/ignore-value.h: Add double-inclusion guards.
14899         Reported by Stefan Berger.
14900
14901 2010-10-15  Jim Meyering  <meyering@redhat.com>
14902
14903         GNUmakefile: handle "stable" target, not "major"
14904         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
14905         lists in maint.mk and announce-gen.  Without this, "make stable"
14906         would fail to ensure that $(VERSION) is up to date.
14907
14908 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
14909
14910         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
14911         & co.
14912
14913 2010-10-14  Bruno Haible  <bruno@clisp.org>
14914
14915         vasnprintf: Don't set errno to 0.
14916         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
14917         block that sets it to 0.
14918         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
14919
14920 2010-10-14  Bruno Haible  <bruno@clisp.org>
14921
14922         socketlib: Fix.
14923         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
14924         gl_PREREQ_SYS_H_WINSOCK2.
14925         Reported by Ian Beckwith <ianb@erislabs.net>.
14926
14927 2010-10-13  Jim Meyering  <meyering@redhat.com>
14928
14929         test-select-stdin.c: avoid warn_unused_result warnings
14930         * tests/test-select-stdin.c: Include "macros.h".
14931         ASSERT that read and fflush succeed.
14932
14933 2010-10-13  Jim Meyering  <meyering@redhat.com>
14934
14935         git-version-gen: do require git-VC'd files in cwd
14936         * build-aux/git-version-gen: Reject a git version string
14937         if there are no commits associated with the current directory.
14938         This avoids an unlikely false-positive (unrelated dir whose parent
14939         repository also contains a tag matching v*), as pointed out
14940         by Giuseppe Scrivano in
14941         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
14942
14943 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14944
14945         argv-iter: omit nonconforming declaration
14946         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
14947         enum arg_iter_err declaration, which doesn't conform to C99.
14948         Solaris 10 cc warns about this.
14949
14950 2010-10-13  Eric Blake  <eblake@redhat.com>
14951
14952         termios: fix compilation on mingw
14953         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
14954         (gl_TERMIOS_H): Adjust it on mingw.
14955         * modules/termios (Makefile.am): Substitute new key.
14956         * lib/termios.in.h (includes): Make include_next conditional.
14957         * doc/posix-headers/termios.texi (termios.h): Update
14958         documentation.
14959         Reported by Daniel P. Berrange.
14960
14961 2010-10-13  Jim Meyering  <meyering@redhat.com>
14962
14963         git-version-gen: don't require that .git/ be in the current dir
14964         * build-aux/git-version-gen: Adjust this script so that it works
14965         when run from any working directory beneath the top-level .git/-
14966         containing directory.  Inspired by a patch from Giuseppe Scrivano,
14967         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
14968
14969         test-select: avoid warn_unused_result warnings
14970         * tests/test-select.c: Include "macros.h".
14971         ASSERT that each call to read, write, and pipe succeeds.
14972         While not technically required, also check each "close".
14973         * modules/select-tests (Files): Add tests/macros.h.
14974
14975         test-symlinkat: remove declaration of unused local
14976         * tests/test-symlinkat.c (main): Remove unused local, "buf".
14977
14978         test-inttostr: avoid shadowing warnings
14979         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
14980         and use malloc rather than the stack for the same reason as
14981         mentioned in the comment justifying the other allocation.
14982
14983 2010-10-11  Bruno Haible  <bruno@clisp.org>
14984
14985         stdlib: Allow multiple gnulib generated replacements to coexist.
14986         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
14987         Reported by Sam Steingold <sds@gnu.org>.
14988
14989 2010-10-11  Jim Meyering  <meyering@redhat.com>
14990
14991         fix a documentation typo
14992         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
14993
14994 2010-10-11  Eric Blake  <eblake@redhat.com>
14995
14996         futimens: work around Solaris 11 bug
14997         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
14998         * tests/test-futimens.h (test_futimens): Enhance, rather than
14999         weaken test.
15000         * doc/posix-functions/futimens.texi (futimens): Document the bug.
15001
15002 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
15003
15004         Indentation.
15005         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
15006         higher-level operators more to the left.
15007
15008 2010-10-11  Jim Meyering  <meyering@redhat.com>
15009
15010         test-futimens: avoid unwarranted test failure on Solaris 5.11
15011         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
15012         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
15013         because it tries to dereference the NULL name argument.
15014
15015 2010-10-11  Bruno Haible  <bruno@clisp.org>
15016
15017         Indentation.
15018         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
15019         indentation.
15020
15021 2010-10-11  Jim Meyering  <meyering@redhat.com>
15022
15023         spawn.in.h: make indentation consistent with parentheses
15024         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
15025         Make indentation consistent with parentheses.
15026
15027 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
15028
15029         Fix mismatched parens in previous commit
15030         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
15031         parens.
15032
15033 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
15034
15035         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
15036
15037         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
15038         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
15039         * lib/malloca.c: Include "verify.h".
15040         (verify1): Remove, replacing with a verify call.
15041         * lib/relocwrapper.c (verify1): Likewise.
15042         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
15043         Likewise.
15044         * modules/malloca (Depends-on): Add 'verify'.
15045         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
15046         * modules/vasnprintf (Depends-on): Add 'verify'.
15047         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
15048         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
15049         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
15050         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
15051         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
15052         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
15053         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
15054
15055         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
15056
15057         Formerly the style was sometimes 2*X - 1, because the C standard
15058         was wrongly thought to disallow ?: in integral constant expressions.
15059         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
15060         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
15061         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
15062         * lib/stdint.in.h (_verify_intmax_size): Likewise.
15063         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
15064         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
15065         verify that time_t cannot be floating.
15066
15067 2010-10-08  Eric Blake  <eblake@redhat.com>
15068
15069         time: enforce recent POSIX ruling that time_t is integral
15070         * lib/time.in.h (__time_t_must_be_integral): Detect any
15071         problematic systems, allowing the rest of gnulib to assume POSIX.
15072
15073 2010-10-08  Jim Meyering  <meyering@redhat.com>
15074
15075         fdopendir: fix a bug on systems lacking openat and /proc support
15076         OpenBSD 4.7 is one such system.  The most noticeable effect was
15077         failure of any application making nontrivial use of fts: rm, du,
15078         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
15079           ./rm: traversal failed: `a': Bad file descriptor
15080         Debugging that, you see that even though FD 6 was closed just
15081         prior to the opendir call in fd_clone_opendir, its resulting
15082         dir->dd_fd was 8, rather than the expected value of 6:
15083
15084         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
15085         93                close (fd);
15086         (gdb) n
15087         94                dir = fd_clone_opendir (dupfd);
15088         (gdb) n
15089         95                saved_errno = errno;
15090         (gdb) p dir->dd_fd
15091         $11 = 8
15092
15093         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
15094         The problem is that on OpenBSD, fd_clone_opendir has to resort
15095         to using the old-style save/restore CWD mechanism, due to its
15096         lack of openat/proc support, and *that* would steal the FD (6)
15097         that opendir was supposed to use.
15098
15099         The fix is to squirrel away the desired FD so that save_cwd uses a
15100         different one, and then free the dest FD right before calling opendir.
15101         That guarantees opendir will use the required file descriptor.
15102
15103         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
15104
15105 2010-10-08  Bruno Haible  <bruno@clisp.org>
15106
15107         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
15108         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
15109
15110 2010-10-08  Bruno Haible  <bruno@clisp.org>
15111
15112         nanosleep: Make replacement POSIX compliant.
15113         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
15114         is out of range.
15115         Reported by Jim Meyering.
15116
15117 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
15118
15119         bootstrap: add hook for altering gnulib.mk, for Bison
15120         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
15121         the Bison bootstrapping process can rewrite file names and variables
15122         in this file before later parts of 'bootstrap' use the file.
15123         Bison wants to include lib/gnulib.mk from the top-level makefile,
15124         so it needs the file names in this file to be relative to the top
15125         level, not relative to lib; plus it needs variable names to be
15126         rewritten.
15127         (slurp): Use the new function.
15128
15129         bootstrap: reformat for readability
15130         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
15131
15132 2010-10-08  Eric Blake  <eblake@redhat.com>
15133
15134         docs: update cygwin progress
15135         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
15136         1.7.7.
15137         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
15138         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
15139         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
15140         * doc/posix-functions/carg.texi (carg): Likewise.
15141         * doc/posix-functions/cargf.texi (cargf): Likewise.
15142         * doc/posix-functions/casin.texi (casin): Likewise.
15143         * doc/posix-functions/casinf.texi (casinf): Likewise.
15144         * doc/posix-functions/casinh.texi (casinh): Likewise.
15145         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
15146         * doc/posix-functions/catan.texi (catan): Likewise.
15147         * doc/posix-functions/catanf.texi (catanf): Likewise.
15148         * doc/posix-functions/catanh.texi (catanh): Likewise.
15149         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
15150         * doc/posix-functions/ccos.texi (ccos): Likewise.
15151         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
15152         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
15153         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
15154         * doc/posix-functions/cexp.texi (cexp): Likewise.
15155         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
15156         * doc/posix-functions/cimag.texi (cimag): Likewise.
15157         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
15158         * doc/posix-functions/clog.texi (clog): Likewise.
15159         * doc/posix-functions/clogf.texi (clogf): Likewise.
15160         * doc/posix-functions/conj.texi (conj): Likewise.
15161         * doc/posix-functions/conjf.texi (conjf): Likewise.
15162         * doc/posix-functions/cpow.texi (cpow): Likewise.
15163         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
15164         * doc/posix-functions/cproj.texi (cproj): Likewise.
15165         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
15166         * doc/posix-functions/creal.texi (creal): Likewise.
15167         * doc/posix-functions/crealf.texi (crealf): Likewise.
15168         * doc/posix-functions/csin.texi (csin): Likewise.
15169         * doc/posix-functions/csinf.texi (csinf): Likewise.
15170         * doc/posix-functions/csinh.texi (csinh): Likewise.
15171         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
15172         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
15173         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
15174         * doc/posix-functions/ctan.texi (ctan): Likewise.
15175         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
15176         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
15177         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
15178         * doc/posix-headers/complex.texi (complex.h): Likewise.
15179
15180 2010-10-07  Jim Meyering  <meyering@redhat.com>
15181
15182         parse-datetime: avoid compilation failure on OpenBSD 4.7
15183         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
15184         This works around a compilation failure on OpenBSD 4.7:
15185         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
15186
15187 2010-10-07  Eric Blake  <eblake@redhat.com>
15188
15189         docs: update cygwin progress
15190         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
15191         1.7.6.
15192         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
15193         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
15194         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
15195         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
15196         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
15197         Likewise.
15198         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
15199         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
15200         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
15201         Likewise.
15202         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
15203         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
15204         Likewise.
15205         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
15206         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
15207         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
15208         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
15209         Likewise.
15210         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
15211         Likewise.
15212         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
15213
15214         docs: update parse-datetime history
15215         * doc/parse-datetime.texi (Authors of parse_datetime): Better
15216         documentation of this function's history and alternatives.
15217
15218         cygwin: use more robust version check
15219         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
15220         exclude an eventual cygwin 1.9.1.
15221         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15222         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15223         (gl_FUNC_STRCASESTR): Likewise.
15224         Reported by Bruno Haible.
15225
15226 2010-10-06  Bruno Haible  <bruno@clisp.org>
15227
15228         string, sys_select: Avoid #including large headers unless necessary.
15229         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
15230         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
15231         OSF/1, BeOS, Haiku.
15232         Reported by Jim Meyering.
15233
15234 2010-10-05  Eric Blake  <eblake@redhat.com>
15235
15236         memmem, strstr, strcasestr: fix bug with long periodic needle
15237         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
15238         periodic needle having false positive.
15239         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
15240         and cygwin 1.7.7.
15241         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
15242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
15243         (gl_FUNC_STRCASESTR): Likewise.
15244         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
15245         * tests/test-memmem.c (main): Expose the bug.
15246         * tests/test-strcasestr.c (main): Likewise.
15247         * tests/test-strstr.c (main): Likewise.
15248         * tests/test-c-strcasestr.c (main): Likewise.
15249         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
15250         * doc/posix-functions/strstr.texi (strstr): Likewise.
15251         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15252         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
15253
15254 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15255
15256         parse-datetime: do some more renaming
15257         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
15258         parse_datetime, not get_date.  Mention the renaming.
15259         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
15260         in comments.
15261         * m4/bison.m4: Likewise.
15262
15263 2010-10-05  Eric Blake  <eblake@redhat.com>
15264
15265         parse-datetime: better name than get_date
15266         * NEWS: Reword the deprecation notice.
15267         * modules/get_date: Rename to modules/parse-datetime.
15268         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
15269         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
15270         * lib/get_date.y: Rename to lib/parse-datetime.y.
15271         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
15272         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
15273         * doc/getdate.texi: Provide fallback wrapper.
15274         * lib/getdate.h: Move guts, and wrap...
15275         * lib/parse-datetime.h: ...new file.
15276         * lib/parse-datetime.y (get_date): Rename...
15277         (parse_datetime): ...to this.
15278         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
15279         (gl_PARSE_DATETIME): ...to this.
15280         * doc/posix-functions/getdate.texi (get_date): Provide fallback
15281         documentation.
15282         * modules/getdate (Files): Provide fallback docs and header.
15283         (Notice, Depends-on): Update references.
15284         * tests/test-parse-datetime.c: Likewise.
15285         * DEPENDENCIES: Likewise.
15286         * MODULES.html.sh (Date and time <time.h>): Likewise.
15287         * doc/parse-datetime.texi (Date input formats)
15288         (Authors of parse_datetime): Likewise.
15289         * modules/parse-datetime (Files, configure.ac, Makefile.am)
15290         (Include): Likewise.
15291         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
15292         * gnulib-tool: Likewise.
15293         * m4/bison.m4 (gl_BISON): Likewise.
15294         Suggested by Bruno Haible.
15295
15296 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
15297
15298         more ports to Solaris tr, which needs [] around ranges
15299         * gnulib-tool: Solaris tr needs [] around ranges.
15300         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15301         * tests/test-pipe-filter-gi1.c (main): Likewise.
15302         * tests/test-pipe-filter-ii1.c (main): Likewise.
15303
15304 2010-10-05  Eric Blake  <eblake@redhat.com>
15305
15306         bootstrap: fix Solaris regression
15307         * build-aux/bootstrap (check_versions): Solaris tr still needs []
15308         around ranges.
15309         Reported by Pádraig Brady.
15310
15311         bootstrap: work with pkg-config
15312         * build-aux/bootstrap (check_versions): Also transliterate - in
15313         prerequisite name.
15314         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
15315         prerequisites that were already found, to avoid confusion.
15316         Reported by Justin Clift.
15317
15318         faccessat: remove unused wrappers
15319         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
15320         presence of these wrappers dragged in -lgen on Solaris.
15321         Reported by Clemens Brogi; fix suggested by Paul Eggert.
15322
15323 2010-10-05  Jim Meyering  <meyering@redhat.com>
15324
15325         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
15326         * Makefile (sc_pragma_columns): New syntax-check rule.
15327
15328 2010-10-04  Bruno Haible  <bruno@clisp.org>
15329
15330         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
15331         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
15332         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
15333         Reported by Bruce Korb and Eric Blake.
15334
15335 2010-10-04  Bruno Haible  <bruno@clisp.org>
15336
15337         threadlib: Make option --with-libpth-prefix work.
15338         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
15339         use $LIBPTH, not just -lpth.
15340
15341 2010-10-04  Bruno Haible  <bruno@clisp.org>
15342
15343         Avoid line length limitation from HP NonStop system header files.
15344         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
15345         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
15346         * lib/ctype.in.h: Likewise.
15347         * lib/dirent.in.h: Likewise.
15348         * lib/errno.in.h: Likewise.
15349         * lib/fcntl.in.h: Likewise.
15350         * lib/float.in.h: Likewise.
15351         * lib/getopt.in.h: Likewise.
15352         * lib/iconv.in.h: Likewise.
15353         * lib/inttypes.in.h: Likewise.
15354         * lib/langinfo.in.h: Likewise.
15355         * lib/locale.in.h: Likewise.
15356         * lib/math.in.h: Likewise.
15357         * lib/netdb.in.h: Likewise.
15358         * lib/netinet_in.in.h: Likewise.
15359         * lib/poll.in.h: Likewise.
15360         * lib/pthread.in.h: Likewise.
15361         * lib/pty.in.h: Likewise.
15362         * lib/sched.in.h: Likewise.
15363         * lib/se-selinux.in.h: Likewise.
15364         * lib/search.in.h: Likewise.
15365         * lib/signal.in.h: Likewise.
15366         * lib/spawn.in.h: Likewise.
15367         * lib/stdarg.in.h: Likewise.
15368         * lib/stddef.in.h: Likewise.
15369         * lib/stdint.in.h: Likewise.
15370         * lib/stdio.in.h: Likewise.
15371         * lib/stdlib.in.h: Likewise.
15372         * lib/string.in.h: Likewise.
15373         * lib/strings.in.h: Likewise.
15374         * lib/sys_file.in.h: Likewise.
15375         * lib/sys_ioctl.in.h: Likewise.
15376         * lib/sys_select.in.h: Likewise.
15377         * lib/sys_socket.in.h: Likewise.
15378         * lib/sys_stat.in.h: Likewise.
15379         * lib/sys_time.in.h: Likewise.
15380         * lib/sys_times.in.h: Likewise.
15381         * lib/sys_utsname.in.h: Likewise.
15382         * lib/sys_wait.in.h: Likewise.
15383         * lib/sysexits.in.h: Likewise.
15384         * lib/termios.in.h: Likewise.
15385         * lib/time.in.h: Likewise.
15386         * lib/unistd.in.h: Likewise.
15387         * lib/wchar.in.h: Likewise.
15388         * lib/wctype.in.h: Likewise.
15389         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
15390         * modules/ctype (Makefile.am): Likewise.
15391         * modules/dirent (Makefile.am): Likewise.
15392         * modules/errno (Makefile.am): Likewise.
15393         * modules/fcntl-h (Makefile.am): Likewise.
15394         * modules/float (Makefile.am): Likewise.
15395         * modules/getopt-posix (Makefile.am): Likewise.
15396         * modules/iconv-h (Makefile.am): Likewise.
15397         * modules/inttypes (Makefile.am): Likewise.
15398         * modules/langinfo (Makefile.am): Likewise.
15399         * modules/locale (Makefile.am): Likewise.
15400         * modules/math (Makefile.am): Likewise.
15401         * modules/netdb (Makefile.am): Likewise.
15402         * modules/netinet_in (Makefile.am): Likewise.
15403         * modules/poll-h (Makefile.am): Likewise.
15404         * modules/pthread (Makefile.am): Likewise.
15405         * modules/pty (Makefile.am): Likewise.
15406         * modules/sched (Makefile.am): Likewise.
15407         * modules/search (Makefile.am): Likewise.
15408         * modules/selinux-h (Makefile.am): Likewise.
15409         * modules/signal (Makefile.am): Likewise.
15410         * modules/spawn (Makefile.am): Likewise.
15411         * modules/stdarg (Makefile.am): Likewise.
15412         * modules/stddef (Makefile.am): Likewise.
15413         * modules/stdint (Makefile.am): Likewise.
15414         * modules/stdio (Makefile.am): Likewise.
15415         * modules/stdlib (Makefile.am): Likewise.
15416         * modules/string (Makefile.am): Likewise.
15417         * modules/strings (Makefile.am): Likewise.
15418         * modules/sys_file (Makefile.am): Likewise.
15419         * modules/sys_ioctl (Makefile.am): Likewise.
15420         * modules/sys_select (Makefile.am): Likewise.
15421         * modules/sys_socket (Makefile.am): Likewise.
15422         * modules/sys_stat (Makefile.am): Likewise.
15423         * modules/sys_time (Makefile.am): Likewise.
15424         * modules/sys_times (Makefile.am): Likewise.
15425         * modules/sys_utsname (Makefile.am): Likewise.
15426         * modules/sys_wait (Makefile.am): Likewise.
15427         * modules/sysexits (Makefile.am): Likewise.
15428         * modules/termios (Makefile.am): Likewise.
15429         * modules/time (Makefile.am): Likewise.
15430         * modules/unistd (Makefile.am): Likewise.
15431         * modules/wchar (Makefile.am): Likewise.
15432         * modules/wctype (Makefile.am): Likewise.
15433
15434 2010-10-04  Bruno Haible  <bruno@clisp.org>
15435
15436         read-file tests: Avoid a test failure on NonStop Kernel.
15437         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
15438         a regular file.
15439         Reported by Joachim Schmitz <schmitz@hp.com>.
15440
15441 2010-10-03  Bruno Haible  <bruno@clisp.org>
15442
15443         gnulib-tool: Fixes for --create-testdir with --libtool.
15444         * gnulib-tool (func_get_automake_snippet): Don't augment
15445         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
15446         an executable.
15447         (func_create_testdir): Handle module 'alloca' like func_import.
15448         Reported by Bruce Korb <bruce.korb@gmail.com>.
15449
15450 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
15451
15452         Avoid some lines longer than 80 characters.
15453         * lib/stdint.in.h: Break long comment lines.
15454         * lib/math.in.h: Likewise.
15455         (_GL_NUM_UINT_WORDS): New macro, for readability.
15456         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
15457         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
15458         * lib/stdlib.in.h: Likewise.
15459         * lib/spawn.in.h: Likewise.
15460         * lib/sys_socket.in.h: Update an URL.
15461         * lib/sys_stat.in.h: Break long line.
15462
15463 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
15464
15465         Improve pmccabe2html.
15466         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
15467         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
15468         when the sources change. Remove the line in the HTML about "Used
15469         ranges" (which implied that there might be other unused ranges),
15470         rename "Resume" to "Summary" (easier to understand for more users).
15471         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
15472         styles, and some unnecessary blank lines.
15473
15474 2010-10-03  Bruno Haible  <bruno@clisp.org>
15475             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
15476
15477         acl: Add support for ACLs on NonStop Kernel.
15478         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
15479         Check whether the function aclsort() exists.
15480         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
15481         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
15482         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15483         (acl_nontrivial [HAVE_ACLSORT]: New function.
15484         (file_has_acl): Implement for NonStop Kernel.
15485         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15486         (qset_acl): Implement for NonStop Kernel.
15487         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
15488         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
15489         (main): Implement for NonStop Kernel.
15490         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
15491         Kernel. Handle this flavor.
15492         * tests/test-set-mode-acl.sh: Likewise.
15493         * tests/test-copy-acl.sh: Likewise.
15494         * tests/test-copy-file.sh: Likewise.
15495
15496 2010-10-03  Bruno Haible  <bruno@clisp.org>
15497
15498         Info about ACLs on NonStop Kernel.
15499         * doc/acl-resources.txt: Add info about NonStop Kernel.
15500         References by Joachim Schmitz <schmitz@hp.com>.
15501
15502 2010-10-02  Bruno Haible  <bruno@clisp.org>
15503
15504         Define missing EDQUOT on NonStop Kernel.
15505         * lib/errno.in.h (EDQUOT): Assign a value if missing.
15506         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
15507         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
15508         missing.
15509         * doc/posix-headers/errno.texi: Mention the NSK bug.
15510         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
15511         Reported by Joachim Schmitz <schmitz@hp.com>.
15512
15513 2010-10-02  Bruno Haible  <bruno@clisp.org>
15514
15515         Update doc for POSIX:2008.
15516         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
15517         Update URL of POSIX specification.
15518
15519 2010-10-02  Bruno Haible  <bruno@clisp.org>
15520
15521         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
15522         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
15523         from gnulib, not from Automake.
15524
15525 2010-10-02  Bruno Haible  <bruno@clisp.org>
15526
15527         New module 'system-posix'.
15528         * modules/system-posix: New file.
15529         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
15530         module is present.
15531         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
15532         GNULIB_SYSTEM_POSIX.
15533         * modules/stdlib (Depends-on): Remove sys_wait.
15534         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
15535         * doc/posix-functions/system.texi: Mention the new module.
15536         * doc/posix-headers/stdlib.texi: Likewise.
15537         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
15538         define test_sys_wait_macros to a no-op.
15539         Reported by Sam Steingold <sds@gnu.org>.
15540
15541 2010-09-30  Bruno Haible  <bruno@clisp.org>
15542
15543         More renaming from 'getdate' to 'get_date'.
15544         * doc/get_date.texi: Renamed from doc/getdate.texi.
15545         * modules/get_date (Files): Update.
15546         * MODULES.html.sh (Date and time <time.h>): Update.
15547         * DEPENDENCIES: Update.
15548         * gnulib-tool: Update comment.
15549         * m4/bison.m4 (gl_BISON): Likewise.
15550         * m4/get_date.m4 (gl_GET_DATE): Likewise.
15551
15552 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
15553
15554         bootstrap: support ACLOCAL_FLAGS during aclocal
15555         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
15556         can add additional -I dir for third-party .m4 files.
15557
15558 2010-09-30  Eric Blake  <eblake@redhat.com>
15559
15560         bootstrap: use glibtoolize on MacOS
15561         * build-aux/bootstrap (check_versions): Convert libtool into
15562         libtoolize.
15563         (tool search): Move libtool check earlier, and look for
15564         glibtoolize for MacOS.
15565         (gnulib_tool_options): Auto-add --libtool when appropriate.
15566         Reported by Justin Clift.
15567
15568         poll: fix typo that broke test on MacOS
15569         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
15570         Reported by Justin Clift.
15571
15572         getdate: rename to get_date
15573         Note: getdate.h is not renamed, to minimize client impact.
15574         * modules/getdate: Mark obsolete.  Move old contents...
15575         * modules/get_date: ...to new module name.
15576         * modules/getdate-tests: Move...
15577         * modules/get_date-tests: ...here.
15578         * m4/getdate.m4: Move...
15579         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
15580         * lib/getdate.y: Move...
15581         * lib/get_date.y: ...here.
15582         * tests/test-getdate.c: Move...
15583         * tests/test-get_date.c: ...here.
15584         * doc/posix-functions/getdate.texi (getdate): Update name.
15585         * NEWS: Mention the change.
15586
15587 2010-09-29  Bruno Haible  <bruno@clisp.org>
15588
15589         Separate the module 'waitpid' from the module 'sys_wait'.
15590         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
15591         present.
15592         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
15593         gl_MODULE_INDICATOR_FOR_TESTS.
15594         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
15595         * modules/sys_wait (Depends-on): Remove waitpid.
15596         (Makefile.am): Substitute GNULIB_WAITPID.
15597         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
15598         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
15599         signature only if the 'waitpid' module is present.
15600         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
15601         * NEWS: Mention the change.
15602         * modules/grantpt (Depends-on): Add waitpid.
15603         * modules/wait-process (Depends-on): Likewise.
15604
15605 2010-09-29  Bruno Haible  <bruno@clisp.org>
15606
15607         More tests for module 'sys_wait'.
15608         * modules/sys_wait-c++-tests: New file.
15609         * tests/test-sys_wait-c++.cc: New file.
15610         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
15611         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15612
15613 2010-09-29  Bruno Haible  <bruno@clisp.org>
15614
15615         New module 'waitpid'.
15616         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
15617         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
15618         Don't include <process.h>.
15619         (waitpid): Declare only, using modern idiom.
15620         * m4/waitpid.m4: New file.
15621         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
15622         * modules/waitpid: New file.
15623         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
15624         (Makefile.am): Update.
15625         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
15626
15627 2010-09-28  Bruno Haible  <bruno@clisp.org>
15628
15629         poll: Assume ANSI C.
15630         * lib/poll.c (poll): Use an ANSI C declaration.
15631
15632 2010-09-28  Bruno Haible  <bruno@clisp.org>
15633
15634         poll-h: Create poll.h on all platforms.
15635         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
15636         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
15637         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
15638         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
15639         (gl_REPLACE_POLL_H): Don't set POLL_H.
15640         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
15641         * modules/poll-h (Depends-on): Add include_next.
15642         (Makefile.am): Create poll.h unconditionally. Substitute also
15643         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
15644
15645 2010-09-28  Bruno Haible  <bruno@clisp.org>
15646
15647         Tests for module 'poll-h'.
15648         * modules/poll-h-c++-tests: New file.
15649         * tests/test-poll-h-c++.cc: New file.
15650
15651         Tests for module 'poll-h'.
15652         * modules/poll-h-tests: New file.
15653         * tests/test-poll-h.c: New file.
15654
15655 2010-09-28  Bruno Haible  <bruno@clisp.org>
15656
15657         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
15658         * modules/poll-h (Depends-on): Add 'extensions'.
15659
15660 2010-09-28  Bruno Haible  <bruno@clisp.org>
15661
15662         New module 'poll-h'.
15663         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
15664         (poll): Use modern idiom.
15665         * modules/poll-h: New file.
15666         * modules/poll (Files): Remove lib/poll.in.h.
15667         (Depends-on): Add poll-h.
15668         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
15669         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
15670         * m4/poll_h.m4: New file.
15671         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
15672         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
15673         and invoke gl_REPLACE_POLL_H.
15674         * lib/poll.c: Use common idiom.
15675         * tests/test-poll.c: Likewise.
15676         * doc/posix-headers/poll.texi: Mention the poll-h module.
15677         Suggested by Eric Blake.
15678
15679 2010-09-26  Bruno Haible  <bruno@clisp.org>
15680
15681         sys_wait: Implement WSTOPSIG.
15682         * lib/sys_wait.in.h (WSTOPSIG): New macro.
15683         Reported by Simon Josefsson.
15684
15685 2010-09-26  Simon Josefsson  <simon@josefsson.org>
15686
15687         stdlib, sys_wait: Avoid compilation error on mingw.
15688         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
15689
15690 2010-09-26  Bruno Haible  <bruno@clisp.org>
15691
15692         stdlib tests: Avoid code duplication.
15693         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
15694         * modules/sys_wait-tests (Files): Likewise.
15695         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
15696         * tests/test-stdlib.c: Include test-sys_wait.h.
15697         (main): Invoke test_sys_wait_macros.
15698         * tests/test-sys_wait.c: Include test-sys_wait.h.
15699         (main): Invoke test_sys_wait_macros.
15700
15701 2010-09-25  Simon Josefsson  <simon@josefsson.org>
15702
15703         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
15704         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
15705         sure Windows sockets are working before calling getaddrinfo.
15706         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
15707         * doc/gnulib.texi (Windows sockets): Fix typo.
15708
15709 2010-09-25  Bruno Haible  <bruno@clisp.org>
15710
15711         Tests for module 'regex-quote'.
15712         * modules/regex-quote-tests: New file.
15713         * tests/test-regex-quote.c: New file.
15714
15715         New module 'regex-quote'.
15716         * lib/regex-quote.h: New file.
15717         * lib/regex-quote.c: New file.
15718         * modules/regex-quote: New file.
15719         Suggested by Reuben Thomas <rrt@sc3d.org>.
15720
15721 2010-09-24  Bruno Haible  <bruno@clisp.org>
15722
15723         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
15724         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
15725
15726 2010-09-23  Bruno Haible  <bruno@clisp.org>
15727
15728         setenv: Relax license.
15729         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
15730         Blake.
15731         Requested by Eric Blake.
15732
15733 2010-09-22  Bruno Haible  <bruno@clisp.org>
15734
15735         termios: Relax license.
15736         * modules/termios (License): Change to LGPLv2+.
15737         Requested by Eric Blake.
15738
15739 2010-09-22  Bruno Haible  <bruno@clisp.org>
15740
15741         threadlib: Allow the package to change the default to 'no'.
15742         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
15743         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
15744         Reported by Paul Eggert.
15745
15746 2010-09-22  Pádraig Brady  <P@draigbrady.com>
15747             Bruno Haible  <bruno@clisp.org>
15748
15749         Fix endless loop in mbmemcasecoll.
15750         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
15751         byte.
15752         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
15753
15754 2010-09-22  Bruno Haible  <bruno@clisp.org>
15755
15756         Tests for module 'memcoll'.
15757         * modules/memcoll-tests: New file.
15758         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
15759
15760         memcoll, xmemcoll: Clarify size vs. length.
15761         * modules/memcoll.c (memcoll0): Clarify specification.
15762         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
15763         passed to collate_error.
15764
15765 2010-09-22  Bruno Haible  <bruno@clisp.org>
15766
15767         Tests for module 'memcasecmp'.
15768         * modules/memcasecmp-tests: New file.
15769         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
15770
15771 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
15772
15773         * lib/pthread.in.h: Add split double-inclusion guard, and include
15774         system <pthread.h> if there is one.  Use @@-style as in other
15775         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
15776         pthread.h doesn't.
15777         (pthread_mutexattr_destroy, pthread_mutexattr_init):
15778         (pthread_mutexattr_settype, pthread_mutex_trylock):
15779         New static inline functions, if there's no system <pthread.h>.
15780         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
15781         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
15782         Approximate with mutexes if the system lacks spinlocks, as in
15783         MacOS.
15784         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
15785         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
15786         @@-style.  Check for spinlocks separately.
15787         (gl_PTHREAD_DEFAULTS): New macro.
15788         * modules/pthread: Redo to use a more typical style for in.h files.
15789
15790 2010-09-21  Eric Blake  <eblake@redhat.com>
15791
15792         net_if: enhance tests
15793         * tests/test-net_if.c (main): Move signature checks earlier.
15794         Print failures to stderr.
15795         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
15796         Document the bug that we do not yet fix.
15797
15798 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15799
15800         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
15801         about gnulib, not GSS.
15802
15803 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
15804
15805         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
15806         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
15807         for Emacs.
15808         * build-aux/pmccabe2html: Make Makefile.am example code more
15809         cut-and-paste friendly.
15810
15811 2010-09-21  Simon Josefsson  <simon@josefsson.org>
15812
15813         * tests/test-net_if.c: New file.
15814         * modules/net_if-tests: New file.
15815
15816 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
15817
15818         pthread: add pthread_spin_destroy
15819         * lib/pthread.in.h (pthread_spin_destroy): New function.
15820
15821 2010-09-19  Bruno Haible  <bruno@clisp.org>
15822
15823         gnulib-tool: Fix --help output.
15824         * gnulib-tool (func_usage): Fix help message.
15825         Reported by Reuben Thomas <rrt@sc3d.org>.
15826
15827 2010-09-18  Jim Meyering  <meyering@redhat.com>
15828
15829         maint.mk: avoid unexpanded \n in two diagnostics
15830         * top/maint.mk (sc_prohibit_always_true_header_tests):
15831         Don't use a literal \n in a halt=... assignment.  It would not be
15832         expanded, and the two \n bytes would appear in the diagnostic output
15833         rather than the desired newline.  Use halt=$$(printf ... instead.
15834         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
15835
15836 2010-09-18  Bruno Haible  <bruno@clisp.org>
15837
15838         netinet_in: Doc tweak.
15839         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
15840         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15841
15842 2010-09-18  Jim Meyering  <meyering@redhat.com>
15843
15844         init.sh: correct an outdated comment
15845         * tests/init.sh (create_exe_shims_):  s/function/alias/
15846
15847         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
15848         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
15849         a file named "*.exe" is removed between the glob expansion and the
15850         processing of that oddly named file.
15851
15852 2010-09-17  Eric Blake  <eblake@redhat.com>
15853
15854         mirbsd: add some more support
15855         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
15856         in BSD family.
15857         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
15858         devices as OpenBSD.
15859         * m4/host-os.m4 (mirbsd): Add MirBSD.
15860
15861         tests: fix unportable assumption on sys/wait.h
15862         * tests/test-sys_wait.c (main): Relax test.
15863         * tests/test-stdlib.c (main): Likewise.
15864
15865         init.sh: accomodate directory with no .exes
15866         * tests/init.sh: Accomodate directory containing only scripts.
15867
15868         tests: avoid compiler warning
15869         * tests/test-stdlib.c (main): Use the variable.
15870
15871         fdutimens, fdutimensat: update signature, again
15872         * lib/utimens.h (gl_futimens): Delete, and move signature...
15873         (fdutimens): ...here.
15874         (fdutimensat): Rearrange signature.
15875         (lutimensat): Rename variable for clarity.
15876         * lib/fdutimensat.c (fdutimensat): Update signature.
15877         * lib/utimens.c (fdutimens): Likewise.
15878         (gl_futimens): Delete.
15879         (utimens, lutimens): Update callers.
15880         * lib/futimens.c (futimens): Likewise.
15881         * tests/test-fdutimensat.c: Likewise.
15882         * tests/test-utimens.c: Likewise.
15883         * tests/test-futimens.h: Update comment.
15884         * NEWS: Mention this.
15885         Suggested by Paul Eggert.
15886
15887 2010-09-17  Bruno Haible  <bruno@clisp.org>
15888
15889         Take over the maintenance of some older macros from Autoconf.
15890         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
15891         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
15892         GNU Autoconf.
15893         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
15894         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
15895
15896 2010-09-17  Eric Blake  <eblake@redhat.com>
15897
15898         fdutimensat: drop atflag validation
15899         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
15900         with valid fd, to close a race scenario where futimens is
15901         unsupported and FILE was replaced by a symlink.
15902         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
15903         accordingly.
15904         Suggested by Paul Eggert.
15905
15906 2010-09-16  Bruno Haible  <bruno@clisp.org>
15907
15908         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
15909         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
15910
15911 2010-09-16  Bruno Haible  <bruno@clisp.org>
15912
15913         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
15914         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
15915         login_tty exists.
15916         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15917
15918 2010-09-16  Bruno Haible  <bruno@clisp.org>
15919
15920         login_tty: Make the replacement code work on BSD systems.
15921         * lib/login_tty.c: Include <sys/ioctl.h>.
15922         (login_tty): Use ioctl TIOCSCTTY when available.
15923         * modules/login_tty (Depends-on): Add sys_ioctl.
15924         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15925
15926 2010-09-16  Bruno Haible  <bruno@clisp.org>
15927
15928         login_tty: Stricter unit test.
15929         * modules/login_tty-tests (Depends-on): Add tcgetsid.
15930         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
15931         and tcgetsid() after login_tty.
15932         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
15933
15934 2010-09-16  Bruno Haible  <bruno@clisp.org>
15935
15936         New module 'tcgetsid'.
15937         * lib/tcgetsid.c: New file.
15938         * m4/tcgetsid.m4: New file.
15939         * modules/tcgetsid: New file.
15940         * modules/termios (Depends-on): Add c++defs, warn-on-use.
15941         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
15942         GNULIB_TCGETSID, HAVE_TCGETSID.
15943         * lib/termios.in.h: Include <sys/types.h>.
15944         (tcgetsid): New declaration.
15945         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
15946         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
15947         * doc/posix-functions/tcgetsid.texi: Mention the new module.
15948         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
15949
15950 2010-09-16  Bruno Haible  <bruno@clisp.org>
15951
15952         Tests for module 'termios'.
15953         * modules/termios-c++-tests: New file.
15954         * modules/termios-tests: New file.
15955         * tests/test-termios-c++.cc: New file.
15956         * tests/test-termios.c: New file.
15957
15958         New module 'termios'.
15959         * modules/termios: New file.
15960         * lib/termios.in.h: New file.
15961         * m4/termios_h.m4: New file.
15962         * doc/posix-headers/termios.texi: Mention the new module.
15963
15964 2010-09-16  Eric Blake  <eblake@redhat.com>
15965
15966         fdutimensat: add an atflag parameter
15967         * lib/fdutimensat.c (fdutimensat): Add new parameter.
15968         * lib/utimens.h (fdutimensat): Update prototype.
15969         * tests/test-fdutimensat.c: Adjust test to match.
15970         * NEWS: Document the change.
15971         Suggested by Paul Eggert.
15972
15973 2010-09-16  Bruno Haible  <bruno@clisp.org>
15974
15975         Fix typos in comments.
15976         * lib/striconveh.h: Fix typo in comment.
15977         * lib/login_tty.c (login_tty): Likewise.
15978
15979 2010-09-15  Bruno Haible  <bruno@clisp.org>
15980
15981         stdlib: clarify MirBSD WEXITSTATUS bug
15982         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
15983         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15984
15985 2010-09-15  Eric Blake  <eblake@redhat.com>
15986
15987         stdlib: work around MirBSD WEXITSTATUS bug
15988         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
15989         * modules/stdlib (Depends-on): Add sys_wait.
15990         * tests/test-sys_wait.c (main): Enhance test.
15991         * tests/test-stdlib.c (main): Likewise.
15992         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
15993
15994         docs: mention MacOS issue with WEXITSTATUS(constant)
15995         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
15996         issue.
15997         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
15998
15999         strnlen: add tests
16000         * modules/strnlen-tests: New file.
16001         * tests/test-strnlen.c: Likewise.
16002
16003 2010-09-14  Bruno Haible  <bruno@clisp.org>
16004
16005         unistr/base: Avoid link errors when module 'libunistring' is also used.
16006         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
16007         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
16008         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
16009         Declare also when HAVE_LIBUNISTRING is set.
16010         Reported by Pádraig Brady <P@draigbrady.com>.
16011
16012 2010-09-14  Eric Blake  <eblake@redhat.com>
16013
16014         test-rawmemchr: make more robust
16015         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
16016         (Depends-on, configure.ac): Add needed prerequisites to use it.
16017         * modules/memchr-tests (Files, Depends-on, configure.ac):
16018         Likewise, to avoid implicit reliance on memchr module prereqs.
16019         * tests/test-memchr.c (main): Ensure proper masking.
16020         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
16021         reads.
16022
16023         memchr: detect glibc Alpha bug
16024         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
16025         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
16026         Alpha.
16027         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
16028         * tests/test-memchr.c (main): Enhance test.
16029         Reported by Nelson H. F. Beebe.
16030
16031 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16032
16033         fts, getcwd, glob: audit for dirfd returning -1
16034         * lib/fts.c (opendir): Remove #define; no longer used.
16035         (opendirat): New arg PDIR_FD.  All callers changed.
16036         (fts_build, _opendir2): Use new opendirat to avoid the need for
16037         dirfd, or for checking whether dirfd returns a negative value.
16038         Don't use opendir; always use openat followed by fdopendir.
16039         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
16040         it.
16041         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
16042         returns -1 here.
16043         * modules/fts (Depends-on): Remove dirfd.
16044         * modules/getcwd (Depends-on): Likewise.
16045
16046 2010-09-13  Eric Blake  <eblake@redhat.com>
16047
16048         float: fix broken MirBSD header
16049         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
16050         * doc/posix-headers/float.texi (float.h): Document it.
16051
16052 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
16053
16054         fts: use O_NOFOLLOW to avoid race condition when opening a directory
16055         * lib/fts.c (opendirat): New arg extra_flags.
16056         (__opendir2): Use it to avoid following symlinks when opening
16057         a directory, if symlinks are not supposed to be followed.  See
16058         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
16059
16060         fdopendir: preserve argument fd before returning
16061         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
16062         (fdopendir_with_dup, fd_clone_opendir): New static functions.
16063         (fdopendir): Use them, arranging for FD to be open to the same
16064         directory that it was when it started.  (It might be temporarily
16065         closed while fdopendir is running, so this not thread- or
16066         signal-safe.)  Be careful to do the right thing even when file
16067         descriptors are scarce and dup fails with errno == EMFILE.  See
16068         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
16069
16070 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
16071
16072         regex: Pass the system regex if its only problem is 32-bit regoff_t.
16073         * NEWS: Document change.
16074         * m4/regex.m4: Disable test for regoff_t size.
16075
16076 2010-09-13  Jim Meyering  <meyering@redhat.com>
16077
16078         fts: don't operate on an invalid file descriptor after failed dup
16079         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
16080         negative file descriptor.
16081
16082 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
16083
16084         savedir: add streamsavedir, deprecate fdsavedir
16085         * NEWS: Mention deprecation of fdsavedir.
16086         * lib/savedir.c (streamsavedir): New extern function, whose name
16087         ends in "savedir" to be consistent with the others.  This differs
16088         from savedirstream in that it doesn't close its argument.  The
16089         next version of GNU tar will use this instead of fdsavedir, to
16090         avoid some race conditions and conserve file descriptors.
16091         (savedirstream): Reimplement as a wrapper around streamsavedir.
16092         (fdsavedir): Add a comment deprecating this function.  As far as
16093         I know, only GNU tar used it, and GNU tar doesn't need it any more.
16094         * lib/savedir.h (streamsavedir): New decl.
16095         (fdsavedir): Add a comment deprecating this.
16096
16097 2010-09-10  Bruno Haible  <bruno@clisp.org>
16098
16099         langinfo: Fix last commit.
16100         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
16101         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
16102         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16103
16104 2010-09-10  Bruno Haible  <bruno@clisp.org>
16105
16106         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
16107         * lib/progreloc.c (O_EXEC): Define fallback.
16108
16109 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
16110
16111         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
16112         * NEWS: Document recent changes to fcntl-h.
16113         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
16114         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
16115         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
16116         Similarly for O_SEARCH; this last was already true, but not documented.
16117         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
16118         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
16119         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
16120         Likewise.
16121         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
16122         is zero, not whether it is defined.
16123         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
16124         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
16125         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
16126
16127 2010-09-10  Bruno Haible  <bruno@clisp.org>
16128
16129         langinfo, nl_langinfo: Fix for IRIX 5.3.
16130         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
16131         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
16132         HAVE_LANGINFO_YESEXPR.
16133         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
16134         HAVE_LANGINFO_YESEXPR.
16135         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
16136         HAVE_LANGINFO_T_FMT_AMPM is 0.
16137         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
16138         HAVE_LANGINFO_YESEXPR is 0.
16139         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
16140         NOEXPR.
16141         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
16142         * doc/posix-functions/nl_langinfo.texi: Likewise.
16143         Reported by Eric Blake.
16144
16145 2010-09-10  Bruno Haible  <bruno@clisp.org>
16146
16147         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
16148         * doc/glibc-functions/login_tty.texi: Mention the include file problem
16149         on FreeBSD 8.0 and OpenBSD 4.6.
16150         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
16151         * m4/pty_h.m4 (gl_PTY_H): Likewise.
16152         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
16153         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
16154         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
16155         ac_includes_default.
16156         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
16157
16158 2010-09-09  Eric Blake  <eblake@redhat.com>
16159
16160         strsignal: work around NetBSD bug
16161         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
16162         * lib/string.in.h (includes): Likewise.
16163         * doc/posix-functions/strsignal.texi (strsignal): Document the
16164         bug.
16165         Reported by Nelson H. F. Beebe.
16166
16167         gnulib-tool: work with NetBSD /bin/sh
16168         * gnulib-tool (func_cache_var, func_cache_lookup_module)
16169         (func_get_description, func_get_comment, func_get_status)
16170         (func_get_notice, func_get_applicability, func_get_filelist)
16171         (func_get_dependencies, func_get_autoconf_early_snippet)
16172         (func_get_autoconf_snippet, func_get_automake_snippet)
16173         (func_get_include_directive, func_get_link_directive)
16174         (func_get_license, func_get_maintainer, func_import): Avoid
16175         shell syntax errors from parsing syntax extensions.
16176
16177 2010-09-09  Bruno Haible  <bruno@clisp.org>
16178
16179         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16180         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
16181         a reliable way to determine whether the 'alias' command works.
16182
16183 2010-09-08  Jim Meyering  <meyering@redhat.com>
16184
16185         init.sh: penalize a set-x-impaired shell; don't disqualify it
16186         * tests/init.sh: Too many shells corrupt application stderr when
16187         you set -x, so we can't afford to disqualify them, since at least
16188         on Irix-6.5, that would disqualify all bourne shells.
16189         Instead, use a two-pass approach.
16190         On the first pass, try to find a shell that meets the stricter
16191         condition that set -x does not corrupt stderr.
16192         If no shell meets the stricter condition, retest each candidate
16193         shell, but without that extra condition.  Finally, when
16194         VERBOSE=yes is requested and set -x might cause trouble, simply
16195         issue a warning and refrain from enabling debug output.
16196
16197 2010-09-08  Eric Blake  <eblake@redhat.com>
16198
16199         unsetenv: fix OpenBSD bug
16200         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
16201         * doc/posix-functions/unsetenv.texi (unsetenv): Update
16202         documentation.
16203         Reported by Jim Meyering.
16204
16205         strtod: work around IRIX 6.5 bug
16206         * lib/strtod.c (strtod): Reparse number on shorter string if
16207         exponent parse was invalid.
16208         * tests/test-strtod.c (main): Add check for "0x1p 2".
16209         Reported by Tom G. Christensen.
16210
16211         getopt: optimize previous patch
16212         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
16213         empty variable.  Speed up awk script.
16214         Reported by Paolo Bonzini.
16215
16216 2010-09-08  Jim Meyering  <meyering@redhat.com>
16217
16218         test.sh: disqualify shells for which set -x corrupts stderr
16219         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
16220         and OpenBSD 4.7.  They make it so with "set -x", environment settings
16221         appear in stderr output.  For example, this command:
16222             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
16223         prints "P=1" on those two systems:
16224
16225 2010-09-08  Bruno Haible  <bruno@clisp.org>
16226
16227         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
16228         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
16229         commands, because some shells ignore redirections when there is an
16230         error in the command lookup.
16231         Reported by Eric Blake.
16232
16233 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
16234
16235         * lib/regex.h: Fix a mention of `regex_compile' (should be
16236         `re_compile_pattern').
16237         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
16238         (re_set_registers): Correct name of parameter in comment.
16239
16240         * doc/regex.texi: Add documentation for missing syntax flags.
16241         Remove commented-out documentation of defunct syntax option
16242         RE_NO_EMPTY_ALTS.
16243         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
16244         Add documentation of re_set_registers.
16245         Document trick to re-use a pattern buffer by setting fastmap manually.
16246         Update documentation of struct re_pattern_buffer per public members.
16247         Uncomment documentation of equivalence class operators and
16248         collating symbol operators, since they are now implemented,
16249         Explain leftmost-longest matching in relation to alternatives.
16250         Tidy documentation of substring matching.
16251         Remove POSIX documentation, which is done better in
16252         glibc, and refer the reader there. Keep BSD API documentation, as
16253         that is not readily available elsewhere.
16254
16255 2010-09-07  Eric Blake  <eblake@redhat.com>
16256
16257         getopt: handle POSIXLY_CORRECT set but not exported
16258         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
16259         export state of POSIXLY_CORRECT, due to bash set -o posix.
16260         Reported by Dustin J. Mitchell.
16261
16262 2010-09-05  Bruno Haible  <bruno@clisp.org>
16263
16264         gnulib-tool: Highlight the changed options.
16265         * gnulib-tool (func_usage): Display the --import, --add-import,
16266         --remove-import explanations in bold font.
16267
16268 2010-09-06  Karl Berry  <karl@gnu.org>
16269
16270         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
16271
16272 2010-09-05  Bruno Haible  <bruno@clisp.org>
16273
16274         uniwidth/width: Update comment.
16275         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
16276         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
16277
16278 2010-09-05  Bruno Haible  <bruno@clisp.org>
16279
16280         isinf, isnan: Relax license.
16281         * modules/isinf (License): Change from GPL to LGPL, with consent from
16282         Ben Pfaff.
16283         * modules/isnan (License): Likewise.
16284         Requested by Ludovic Courtès.
16285
16286 2010-09-04  Bruno Haible  <bruno@clisp.org>
16287
16288         gnulib-tool: Help migration from --import to --add-import or --update.
16289         * gnulib-tool: Emit a verbose error message when --import is used
16290         without any module name.
16291
16292 2010-09-04  Bruno Haible  <bruno@clisp.org>
16293
16294         Update doc about gnulib-tool.
16295         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
16296         'gnulib-tool --update' in more detail.
16297         Reported by Eric Blake.
16298
16299 2010-09-04  Bruno Haible  <bruno@clisp.org>
16300
16301         gnulib-tool: Change --import. New options --add/remove-import.
16302         * gnulib-tool: New options --add-import, --remove-import.
16303         (func_usage): Document them.
16304         (have_associative): Define always.
16305         (func_import): In import mode, don't merge the specified settings with
16306         the cached settings. Implement remove-import mode.
16307         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
16308         Explain when to use them versus --import.
16309         (Simple update): Use --add-import instead of --import.
16310         * NEWS: Mention the change.
16311
16312 2010-09-04  Bruno Haible  <bruno@clisp.org>
16313
16314         * doc/gnulib-tool.texi (Initial import): Update paragraph about
16315         separate gnulib.mk.
16316
16317 2010-09-04  Bruno Haible  <bruno@clisp.org>
16318
16319         gnulib-tool: Don't talk about CVS any more.
16320         * gnulib-tool (func_usage, func_import): Write "version control"
16321         instead of CVS.
16322
16323 2010-09-04  Jim Meyering  <meyering@redhat.com>
16324
16325         maint.mk: avoid obscure sc_copyright_check failure in coreutils
16326         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
16327         false positives (whose names may be ill-chosen) when searching
16328         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
16329         would cause a false-positive.
16330
16331         avoid coreutils "make distcheck" failure
16332         Coreutils tests with an absolute build directory name that contains
16333         a space.  Not quoting this directory name caused a failure.
16334         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
16335         * tests/test-vc-list-files-cvs.sh: Likewise.
16336
16337 2010-09-04  Bruno Haible  <bruno@clisp.org>
16338
16339         gnulib-tool: Avoid error when run in a package without Makefile.am.
16340         * gnulib-tool: When collecting the m4dirs in a package that does not
16341         have a Makefile.am, eliminate those directories that contain no
16342         gnulib-cache.m4. Fix expression that counts these directories.
16343
16344 2010-09-04  Bruno Haible  <bruno@clisp.org>
16345
16346         update-copyright test: Improve output when perl is missing or too old.
16347         * tests/test-update-copyright.sh: Move test of Perl version down after
16348         the test whether Perl exists. Provide an explanation relating Perl's
16349         error message to Automake's SKIP: message.
16350
16351 2010-09-04  Bruno Haible  <bruno@clisp.org>
16352
16353         Don't augment PATH in TESTS_ENVIRONMENT.
16354         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
16355         set abs_aux_dir instead of augmenting PATH.
16356         * modules/vc-list-files-tests (Makefile.am): Likewise.
16357         * tests/test-update-copyright.sh: Augment PATH here.
16358         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
16359         path_prepend_.
16360         * tests/test-vc-list-files-git.sh: Likewise.
16361
16362 2010-09-04  Jim Meyering  <meyering@redhat.com>
16363
16364         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
16365         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
16366
16367 2010-09-04  Bruno Haible  <bruno@clisp.org>
16368
16369         strdup: Fix compilation error in C++ mode.
16370         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
16371         the macro.
16372
16373 2010-09-04  Bruno Haible  <bruno@clisp.org>
16374
16375         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
16376         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
16377         macro into a function.
16378         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
16379
16380 2010-09-04  Bruno Haible  <bruno@clisp.org>
16381
16382         Set PATH_SEPARATOR the same way autoconf does.
16383         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
16384         the value of PATH_SEPARATOR the same way autoconf-generated configure
16385         scripts do.
16386         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
16387         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16388
16389 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
16390
16391         Set PATH_SEPARATOR the same way autoconf does.
16392         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
16393         the same way autoconf-generated configure scripts do.
16394         * posix-modules: Likewise.
16395
16396 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
16397
16398         hash: fix safe_hasher const typo
16399         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
16400         const; otherwise, there is a type error later.
16401
16402 2010-09-02  Jim Meyering  <meyering@redhat.com>
16403
16404         test-update-copyright.sh: require perl 5.8.0
16405         * tests/test-update-copyright.sh: Require 5.8.0,
16406         which Tom G. Christensen has confirmed is adequate,
16407         while 5.6.1 is not.
16408
16409 2010-09-02  Eric Blake  <eblake@redhat.com>
16410
16411         tests: init.sh improvements for re-exec'ing with zsh
16412         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
16413         -vx through shell re-exec.
16414         Reported by Tom G. Christensen.
16415
16416         wctype: fix typo in previous commit
16417         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
16418         Reported by Ludovic Courtès.
16419
16420 2010-09-02  Jim Meyering  <meyering@redhat.com>
16421
16422         test-update-copyright.sh: skip test if Perl is too old
16423         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
16424         Reported by Tom G. Christensen.
16425
16426 2010-09-02  Bruno Haible  <bruno@clisp.org>
16427
16428         wctype: Avoid compilation error on IRIX 6.5.30.
16429         * lib/wctype.in.h (iswblank): Declare with a replacement if
16430         REPLACE_ISWBLANK is set.
16431         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
16432         declared. Set REPLACE_ISWBLANK.
16433         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
16434         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
16435         * doc/posix-headers/wctype.texi: Likewise.
16436         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16437
16438 2010-09-01  Bruno Haible  <bruno@clisp.org>
16439
16440         New module 'socketlib'.
16441         * modules/socketlib: New file.
16442         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
16443         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
16444         * modules/sockets (Depends-on): Add socketlib.
16445         Suggested by Sam Steingold <sds@gnu.org>.
16446
16447 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
16448
16449         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
16450
16451         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
16452         when one needs search access to a directory but not read access.
16453         On systems where it is available, it works in some cases where
16454         O_RDONLY does not, namely on directories that are searchable but
16455         not readable, and which need only to be searchable.  If O_SEARCH
16456         is not available, fall back to the traditional method of using
16457         O_RDONLY.
16458
16459         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
16460         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
16461         when opening a directory that needs only to be searchable.
16462         * lib/chdir-safer.c (chdir_no_follow): Likewise.
16463         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
16464         * lib/openat-proc.c (openat_proc_name): Likewise.
16465         * lib/openat.c (openat_needs_fchdir): Likewise.
16466         * lib/save-cwd.c (save_cwd): Likewise.
16467         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
16468
16469 2010-08-28  Bruno Haible  <bruno@clisp.org>
16470
16471         New module 'host-cpu-c-abi'.
16472         * modules/host-cpu-c-abi: New file.
16473         * m4/host-cpu-c-abi.m4: New file, based on part of
16474         clisp/src/m4/general.m4.
16475         Requested by Sam Steingold <sds@gnu.org>.
16476
16477 2010-08-31  Eric Blake  <eblake@redhat.com>
16478         and Jim Meyering  <meyering@redhat.com>
16479
16480         hash: factor, and guard against misbehaving hasher function
16481         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
16482         of table->hasher's return value.  Also protect against a hash value
16483         so large that adding it to table->bucket results in a NULL pointer.
16484         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
16485         Use it in place of open-coded check-and-abort.
16486
16487 2010-08-30  Bruno Haible  <bruno@clisp.org>
16488
16489         hash: silence spurious clang warning
16490         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
16491         Reported by Eric Blake.
16492
16493 2010-08-30  Eric Blake  <eblake@redhat.com>
16494
16495         strstr, memmem, strcasestr: avoid leaked shell message
16496         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
16497         FreeBSD.
16498         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16499         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16500
16501         tests: silence clang warning
16502         * tests/test-malloca.c (do_allocation): Avoid dead store.
16503
16504 2010-08-29  Bruno Haible  <bruno@clisp.org>
16505
16506         gettext: Fix recent mistake.
16507         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
16508
16509 2010-08-29  Bruno Haible  <bruno@clisp.org>
16510
16511         selinux-h: Offer a --without-selinux option.
16512         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
16513         --without-selinux was specified, skip all tests and define
16514         HAVE_SELINUX_SELINUX_H to 0.
16515         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
16516         set LIB_SELINUX to empty.
16517         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
16518         gl_LIBSELINUX. If --without-selinux was specified, replace
16519         selinux/context.h.
16520         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
16521
16522 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16523             Bruno Haible  <bruno@clisp.org>
16524
16525         Make the module 'realloc-gnu' work again on AIX and OSF/1.
16526         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
16527         of HAVE_REALLOC.
16528         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
16529         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
16530         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
16531         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16532
16533 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16534             Bruno Haible  <bruno@clisp.org>
16535
16536         Make the module 'calloc-gnu' work again on AIX and OSF/1.
16537         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
16538         HAVE_CALLOC.
16539         * lib/xmalloc.c: Update accordingly.
16540         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
16541         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
16542         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
16543
16544 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16545             Bruno Haible  <bruno@clisp.org>
16546
16547         Make the module 'malloc-gnu' work again on AIX and OSF/1.
16548         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
16549         HAVE_MALLOC.
16550         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
16551         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
16552         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
16553
16554 2010-08-29  Bruno Haible  <bruno@clisp.org>
16555
16556         Update modules list.
16557         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
16558         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
16559         (String handling <string.h>): Add astrxfrm.
16560         (File system functions): Add readlinkat.
16561
16562 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16563
16564         Tests for module 'realloc-gnu'.
16565         * modules/realloc-gnu-tests: New file.
16566         * tests/test-realloc-gnu.c: New file.
16567
16568         Tests for module 'calloc-gnu'.
16569         * modules/calloc-gnu-tests: New file.
16570         * tests/test-calloc-gnu.c: New file.
16571
16572         Tests for module 'malloc-gnu'.
16573         * modules/malloc-gnu-tests: New file.
16574         * tests/test-malloc-gnu.c: New file.
16575
16576 2010-08-28  Bruno Haible  <bruno@clisp.org>
16577
16578         Rename module 'realloc' -> 'realloc-gnu'.
16579         * modules/realloc-gnu: New file, copied from modules/realloc.
16580         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
16581         obsolete.
16582         * modules/mgetgroups (Depends-on): Update.
16583         * doc/posix-functions/realloc.texi: Update.
16584         * NEWS: Mention the change.
16585
16586         Rename module 'calloc' -> 'calloc-gnu'.
16587         * modules/calloc-gnu: New file, copied from modules/calloc.
16588         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
16589         obsolete.
16590         * doc/posix-functions/calloc.texi: Update.
16591         * NEWS: Mention the change.
16592
16593         Rename module 'malloc' -> 'malloc-gnu'.
16594         * modules/malloc-gnu: New file, copied from modules/malloc.
16595         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
16596         obsolete.
16597         * modules/argp (Depends-on): Update.
16598         * modules/regex (Depends-on): Update.
16599         * doc/posix-functions/malloc.texi: Update.
16600         * NEWS: Mention the change.
16601
16602 2010-08-28  Eric Blake  <eblake@redhat.com>
16603
16604         pread, pwrite: add missing dependency
16605         * modules/pread (Depends-on): Add extensions.
16606         * modules/pwrite (Depends-on): Likewise.
16607
16608 2010-08-28  Bruno Haible  <bruno@clisp.org>
16609
16610         unistr/u*-strchr: Fix tests dependencies.
16611         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
16612         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
16613         Reported by Ian Beckwith <ianb@erislabs.net>.
16614
16615 2010-08-28  Bruno Haible  <bruno@clisp.org>
16616
16617         read-file: Don't occupy too much unused memory.
16618         * lib/read-file.c (fread_file): Shrink the buffer at the end.
16619
16620 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
16621             Eric Blake  <eblake@redhat.com>
16622             Bruno Haible  <bruno@clisp.org>
16623
16624         read-file: Avoid memory reallocations with regular files.
16625         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
16626         (fread_file): With regular files, use the remaining length as the
16627         initial buffer size.  Check against overflow.
16628         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
16629         sys_stat.
16630
16631 2010-08-28  Bruno Haible  <bruno@clisp.org>
16632
16633         ftello: Relax license.
16634         * modules/ftello (License): Relax to LGPLv2+.
16635         Reported by Eric Blake.
16636
16637 2010-08-28  Bruno Haible  <bruno@clisp.org>
16638
16639         Avoid relocwrapper link errors due to gnulib replacement functions.
16640         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
16641         function.
16642         Reported by Ben Pfaff <blp@cs.stanford.edu>.
16643
16644 2010-08-28  Bruno Haible  <bruno@clisp.org>
16645
16646         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
16647         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
16648         defined.
16649         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
16650         Suggested by Eric Blake.
16651
16652 2010-08-28  Bruno Haible  <bruno@clisp.org>
16653
16654         sys_socket, netdb: Ensure socklen_t gets defined.
16655         * modules/sys_socket (Depends-on): Add socklen.
16656         * modules/netdb (Depends-on): Likewise.
16657         * modules/getaddrinfo (Depends-on): Remove socklen.
16658         * modules/getsockopt (Depends-on): Likewise.
16659         * modules/setsockopt (Depends-on): Likewise.
16660         * tests/test-sys_socket.c: Check that socklen_t is defined.
16661         * tests/test-netdb.c: Likewise.
16662         * m4/socklen.m4: Update comments.
16663         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16664
16665 2010-08-27  Eric Blake  <eblake@redhat.com>
16666
16667         login_tty: add missing dependency
16668         * modules/login_tty (Depends-on): Add pty.
16669
16670 2010-08-26  Eric Blake  <eblake@redhat.com>
16671
16672         lib-symbol-versions: fix m4 quoting
16673         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
16674         format for AC_LINK_IFELSE.
16675
16676         glob: fix compile test
16677         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
16678
16679         btowc: fix missing file
16680         * modules/btowc (Files): Also ship locale-fr.m4.
16681
16682         lseek: fix link test
16683         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
16684         AC_LINK_IFELSE.
16685
16686         include_next: silence autoconf 2.68 warning
16687         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
16688         AC_COMPILE_IFELSE as special.
16689         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
16690         autoconf < 2.68.
16691
16692         acl: fix compilation test
16693         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
16694         AC_COMPILE_IFELSE.
16695
16696 2010-08-26  Bruno Haible  <bruno@clisp.org>
16697
16698         Modernize AC_TRY_RUN invocations.
16699         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
16700         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
16701         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
16702         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
16703         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
16704         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
16705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
16706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
16707         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16708         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16709         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
16710         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16711         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
16712         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
16713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
16714         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
16715         gl_MBRLEN_NUL_RETVAL): Likewise.
16716         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
16717         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
16718         Likewise.
16719         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
16720         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
16721         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
16722         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
16723         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
16724         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
16725         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
16726         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
16727         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
16728         Likewise.
16729         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16730         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
16731         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
16732         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16733         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16734         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
16735         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
16736         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
16737         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
16738         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
16739
16740 2010-08-26  Bruno Haible  <bruno@clisp.org>
16741
16742         Modernize AC_TRY_LINK invocations.
16743         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
16744         AC_TRY_LINK.
16745         * m4/argp.m4 (gl_ARGP): Likewise.
16746         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
16747         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
16748         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
16749         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
16750         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
16751         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
16752         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
16753         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
16754         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
16755         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
16756         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
16757         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
16758         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
16759         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
16760         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16761         * m4/hostent.m4 (gl_HOSTENT): Likewise.
16762         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
16763         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
16764         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16765         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
16766         Likewise.
16767         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
16768         Likewise.
16769         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
16770         Likewise.
16771         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16772         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
16773         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
16774         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
16775         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
16776         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
16777         * m4/servent.m4 (gl_SERVENT): Likewise.
16778         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
16779         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
16780         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
16781         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
16782         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16783         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16784         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16785         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16786         * modules/tsearch-tests (configure.ac): Likewise.
16787
16788 2010-08-26  Bruno Haible  <bruno@clisp.org>
16789
16790         Modernize AC_TRY_COMPILE invocations.
16791         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
16792         AC_TRY_COMPILE.
16793         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
16794         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
16795         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16796         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
16797         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16798         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16799         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
16800         * m4/lock.m4 (gl_LOCK): Likewise.
16801         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
16802         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16803         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
16804         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
16805         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16806         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
16807         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
16808         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
16809         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16810         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16811         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16812         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16813         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
16814         extraneous semicolon.
16815
16816 2010-08-26  Jim Meyering  <meyering@redhat.com>
16817
16818         stat-time: relax license LGPL
16819         * modules/stat-time (License): Change from GPL to LGPL,
16820         with consent from all contributors, for use in libguile.
16821         Requested by Ludovic Courtès.
16822
16823 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
16824
16825         poll: return immediately on POLLHUP.
16826         * lib/poll.c (poll): Always set timeout before wait_timeout is
16827         computed.
16828
16829 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16830
16831         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
16832         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
16833         rmdir ("dir/.//"), unlinkat.
16834
16835 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16836
16837         stdbool: avoid spurious failure with modern xlc
16838         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16839
16840 2010-08-24  Bruno Haible  <bruno@clisp.org>
16841
16842         getloadavg: simplify code
16843         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
16844         gl_have_func. Update comments.
16845
16846 2010-08-24  Eric Blake  <eblake@redhat.com>
16847
16848         getloadavg: don't define SVR4 on cygwin
16849         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
16850         only define SVR4 when -lkvm is required.
16851         Reported by Yaakov Selkowitz.
16852
16853 2010-08-24  Bruno Haible  <bruno@clisp.org>
16854
16855         priv-set: fix comment
16856         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
16857
16858 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16859
16860         priv-set: fix comments
16861         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
16862         to match code, as suggested by David Bartley in:
16863         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
16864
16865 2010-08-23  Eric Blake  <eblake@redhat.com>
16866
16867         stdbool: avoid rejecting clang
16868         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
16869         * tests/test-stdbool.c: Enable more tests if using the system
16870         <stdbool.h> instead of the gnulib replacement.
16871         (main): Move xlc bug test to a runtime test for all compilers.
16872         Reported by Anders Kaseorg.
16873
16874         argz: fix shell quoting issue
16875         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
16876         Reported by Charles Wilson.
16877
16878 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
16879             Erik Faye-Lund <kusmabite@gmail.com>
16880
16881         poll, select: handle ERROR_BROKEN_PIPE.
16882         * lib/poll.c (win32_compute_revents): Return POLLHUP when
16883         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16884         * lib/select.c (win32_compute_revents): Do not mark a pipe
16885         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
16886
16887 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
16888
16889         fts: allow compilation with C++
16890         * lib/fts_.h: Specify extern "C" linkage with C++.
16891
16892 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16893
16894         Fix gnulib-tool sed script de-commentation for AIX sed.
16895         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
16896         sed.
16897
16898 2010-08-17  Eric Blake  <eblake@redhat.com>
16899
16900         test-stddef: test for (some) offsetof bugs
16901         * tests/test-stddef.c: Enhance test to ensure correct type of
16902         offsetof.
16903         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
16904         that we are not fixing at this time.
16905
16906 2010-08-15  Bruno Haible  <bruno@clisp.org>
16907
16908         stpncpy: Allow stpncpy to be defined as a macro.
16909         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
16910         if it's already correctly declared.
16911         * lib/string.in.h (stpncpy): Undefine before redefining.
16912         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
16913
16914 2010-08-14  Bruno Haible  <bruno@clisp.org>
16915
16916         Rename module 'memxfrm' to 'amemxfrm'.
16917         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
16918         (amemxfrm): Renamed from memxfrm.
16919         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
16920         (amemxfrm): Renamed from memxfrm.
16921         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
16922         * NEWS: Mention the change.
16923         * MODULES.html.sh (String handling <string.h>): Update.
16924         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
16925         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
16926         * lib/unicase/u16-casexfrm.c: Likewise.
16927         * lib/unicase/u32-casexfrm.c: Likewise.
16928         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
16929         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
16930         * lib/uninorm/u16-normxfrm.c: Likewise.
16931         * lib/uninorm/u32-normxfrm.c: Likewise.
16932         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
16933         memxfrm.
16934         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
16935         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
16936         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
16937         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
16938         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
16939         Suggested by Paul Eggert.
16940
16941 2010-08-14  Bruno Haible  <bruno@clisp.org>
16942
16943         Tests for module 'astrxfrm'.
16944         * modules/astrxfrm-tests: New file.
16945         * tests/test-astrxfrm.c: New file.
16946
16947         New module 'astrxfrm'.
16948         * lib/astrxfrm.h: New file.
16949         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
16950         * modules/astrxfrm: New file.
16951
16952 2010-08-14  Reuben Thomas <rrt@sc3d.org>
16953
16954         regex: Tweak doc.
16955         * doc/regex.texi (Overview): Don't mention regex.c.
16956         (GNU Regular Expression Compiling): Likewise.
16957         (Match-end-of-line Operator): Mention 'not_eol'.
16958
16959 2010-08-14  Brian Gough  <bjg@gnu.org>
16960             Bruno Haible  <bruno@clisp.org>
16961
16962         git-merge-changelog: add doc relating to use with bzr and hg.
16963         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
16964
16965 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
16966
16967         pthread: fix pthread.h creation for srcdir != builddir
16968         * modules/pthread (Makefile.am): Fix the rule to work also in a
16969         non-srcdir build.
16970
16971 2010-08-13  Karl Berry  <karl@gnu.org>
16972
16973         * doc/regex.texi (Predefined Syntaxes): @smallexample.
16974         * doc/posix-*/*: force line break before @url of POSIX
16975         specifications.
16976         Suggested by Werner Lemberg.
16977
16978 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
16979
16980         strtod: fix const diagnostic
16981         * lib/strtod.c (strtod): Don't assign const char * to char *,
16982         as this elicits a warning from GCC when warnings are enabled.
16983
16984 2010-08-10  Pádraig Brady <P@draigbrady.com>
16985         and Eric Blake  <eblake@redhat.com>
16986
16987         copy-acl: ignore ENOTSUP on HP-UX
16988         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
16989         so that it is available for HP-UX.
16990         * lib/copy-acl.c (qcopy_acl): Use it.
16991         Reported by Patrick M. Callahan.
16992
16993 2010-08-10  Eric Blake  <eblake@redhat.com>
16994
16995         open, chown: relax license
16996         * modules/open (License): Change to LGPLv2+, with consent by all
16997         authors, for use in augeas.
16998         * modules/chown (License): Likewise.
16999         * modules/lchown (Likewise): Likewise.
17000         Requested by Adam Stokes.
17001
17002 2010-08-09  Karl Berry  <karl@gnu.org>
17003
17004         * build-aux/ar-lib: new file, import from Automake.
17005         * config/srclist.txt: autocheck for updates.
17006
17007 2010-08-09  Eric Blake  <eblake@redhat.com>
17008
17009         readlinkat: adjust client modules
17010         * modules/areadlinkat (Depends-on): Use readlinkat, not
17011         symlinkat.
17012         * modules/areadlinkat-with-size (Depends-on): Likewise.
17013
17014         mknod: be more vocal about danger of running tests as root
17015         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
17016         root, since that is just asking for problems.
17017         Suggested by Bruno Haible, based on a report by Rainer Tammer.
17018
17019         readlinkat: split into its own module
17020         * modules/symlinkat: Split readlinkat...
17021         * modules/readlinkat: ...into separate module.
17022         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
17023         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
17024         * lib/symlinkat.c (readlinkat): Move...
17025         * lib/readlinkat.c: ...into new file.
17026         * modules/symlinkat-tests: Split readlinkat test...
17027         * modules/readlinkat-tests: ...into separate module.
17028         * tests/test-symlinkat.c: Split...
17029         * tests/test-readlinkat.c: ...into new file.
17030         * NEWS: Document the split.
17031         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
17032         * lib/unistd.in.h (readlinkat): Likewise.
17033         Suggested by Bruno Haible.
17034
17035 2010-08-08  Bruno Haible  <bruno@clisp.org>
17036
17037         memxfrm: Speed up.
17038         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
17039         that usually only one call to strxfrm is necessary for each string
17040         part.
17041         Reported by Paul Eggert <eggert@cs.ucla.edu>.
17042
17043 2010-08-07  Karl Berry  <karl@gnu.org>
17044
17045         * doc/posix-headers/limits.texi,
17046         * doc/posix-functions/malloc.texi,
17047         * doc/posix-functions/strsignal.texi: missing @item.
17048         * doc/ld-version-script.texi: spurious leading i.
17049         * doc/regex.texi (Interval Operators): no commas inside @var.
17050
17051 2010-08-01  Bruno Haible  <bruno@clisp.org>
17052
17053         Integrate the regex documentation.
17054         * doc/gnulib.texi: Define 'cn' index.
17055         (Regular expressions): New a chapter that includes regex.texi and
17056         regexprops-generic.texi.
17057         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
17058         syntax.
17059
17060         Whitespace cleanup.
17061         * doc/regex.texi: Remove trailing spaces.
17062
17063         Add regex documentation.
17064         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
17065         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
17066         Written by Kathy A. Hargreaves and Karl Berry.
17067
17068 2010-08-01  Bruno Haible  <bruno@clisp.org>
17069
17070         link: Update documentation.
17071         * doc/posix-functions/link.texi: Update regarding Solaris.
17072
17073 2010-07-31  Bruno Haible  <bruno@clisp.org>
17074
17075         Update modules list.
17076         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
17077         (String handling <string.h>): Add memcmp2, memxfrm.
17078         (Container data structures): Add xlist, xsublist, xoset.
17079         (Core language properties): Add alignof, unused-parameter.
17080         (Process control, Numeric conversion functions <stdlib.h>): Renamed
17081         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
17082         (Unibyte characters <ctype.h>): New section.
17083         (String handling <string.h>): New section.
17084         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
17085         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
17086         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
17087         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
17088         tan, tanh, tanl, y0, y1, yn.
17089         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
17090         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
17091         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
17092         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
17093         unlockpt, vdprintf, vdprintf-posix.
17094         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
17095         (File system functions): Add concat-filename, sys_file, sys_ioctl,
17096         xconcat-filename.
17097         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
17098         getdtablesize, pipe2, pipe2-safer.
17099         (Security): New section.
17100         (Networking functions): Add accept4.
17101         (Signal handling): Add sigpipe.
17102         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
17103         mbmemcasecoll.
17104         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
17105         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
17106         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
17107         pipe-filter-ii.
17108         (Misc): Add argp-version-etc, login_tty, parse-duration.
17109
17110 2010-07-31  Bruno Haible  <bruno@clisp.org>
17111
17112         Improve doc in MODULES.html.
17113         * modules/linkat (Description): Add the word "function".
17114         * modules/mkfifo (Description): Likewise.
17115         * modules/mknod (Description): Likewise.
17116         * modules/remove (Description): Likewise.
17117         * modules/renameat (Description): Likewise.
17118         * modules/stat (Description): Likewise.
17119         * modules/symlink (Description): Likewise.
17120         * modules/unlink (Description): Likewise.
17121
17122 2010-07-31  Bruno Haible  <bruno@clisp.org>
17123
17124         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
17125         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
17126         option --enable/disable-c++ instead of --enable/disable-cxx.
17127         * NEWS: Mention the change.
17128
17129 2010-07-31  Bruno Haible  <bruno@clisp.org>
17130
17131         readlink, areadlink: Relax test a bit.
17132         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
17133         alternative to ENOTDIR.
17134         * tests/test-areadlink.h (test_areadlink): Likewise.
17135         Reported by Rainer Tammer.
17136
17137 2010-07-31  Bruno Haible  <bruno@clisp.org>
17138
17139         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
17140         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
17141         character, perform the search using U_STRCHR.
17142         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
17143         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
17144         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
17145         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
17146         Suggested by Paolo Bonzini.
17147
17148 2010-07-31  Bruno Haible  <bruno@clisp.org>
17149
17150         unistr/u*-strstr: Fix dependencies.
17151         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
17152         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
17153         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
17154
17155 2010-07-31  Bruno Haible  <bruno@clisp.org>
17156
17157         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
17158         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
17159         the beginning of the loop.
17160         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
17161         cases in 'switch' statement.
17162
17163         unistr/u8-strchr: Fix several bugs.
17164         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
17165         the string. When not found, return NULL, not a pointer near the end.
17166
17167         More tests for unistr/u8-strchr.
17168         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
17169         that the function does not read past the first occurrence of the byte
17170         being searched.
17171         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
17172         * tests/unistr/test-u16-strchr.c (main): New function.
17173         * tests/unistr/test-u32-strchr.c (main): New function.
17174
17175 2010-07-31  Bruno Haible  <bruno@clisp.org>
17176
17177         posix-modules: Ignore backup files of documentation files.
17178         * posix-modules: grep only through files named *.texi.
17179
17180 2010-07-31  Bruno Haible  <bruno@clisp.org>
17181
17182         symlinkat: Fix documentation.
17183         * doc/posix-functions/readlinkat.texi: Fix module name.
17184
17185 2010-07-31  Bruno Haible  <bruno@clisp.org>
17186
17187         fchownat: Replace also when chown has the trailing slash bug.
17188         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
17189         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
17190         introduced on 2010-04-10.
17191         Reported by Rainer Tammer.
17192
17193 2010-07-31  Bruno Haible  <bruno@clisp.org>
17194
17195         linkat: Work around AIX 7.1 bug.
17196         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
17197         whether linkat handles trailing slash correctly. If not, replace linkat
17198         and define LINKAT_TRAILING_SLASH_BUG.
17199         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
17200         check whether (fd1,file1) points to a directory if file1 or file2 ends
17201         in a slash. Code taken from lib/link.c.
17202         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
17203         Reported by Rainer Tammer.
17204
17205 2010-07-31  Bruno Haible  <bruno@clisp.org>
17206
17207         Correctly determine whether pow is available in libc on AIX 7 with xlc.
17208         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
17209         This disables an xlc optimization that was causing wrong test results.
17210         Reported by Rainer Tammer.
17211
17212 2010-07-31  Bruno Haible  <bruno@clisp.org>
17213
17214         iconv: Work around AIX 6.1..7.1 bug.
17215         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
17216         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
17217         cross-compiling, guess no on all versions of AIX.
17218         Reported by Rainer Tammer.
17219
17220 2010-07-31  Bruno Haible  <bruno@clisp.org>
17221
17222         readlink: Relax test a bit.
17223         * tests/test-readlink.h (test_readlink): Allow different errno value
17224         when readlink is called with a file name that ends in / and refers to
17225         a file.
17226         Suggested by Eric Blake.
17227         Reported by Rainer Tammer.
17228
17229 2010-07-31  Bruno Haible  <bruno@clisp.org>
17230
17231         copysign: Does not require -lm on glibc systems.
17232         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
17233         gl_COMMON_DOUBLE_MATHFUNC.
17234         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
17235
17236 2010-07-31  Bruno Haible  <bruno@clisp.org>
17237
17238         duplocale: Work around AIX 7.1 bug.
17239         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
17240         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
17241         * lib/duplocale.c (rpl_duplocale): Update comment.
17242         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
17243         Reported by Rainer Tammer.
17244
17245 2010-07-30  Bruno Haible  <bruno@clisp.org>
17246
17247         dirfd: Avoid link error on AIX 7.1.
17248         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
17249         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
17250         exist, set REPLACE_DIRFD.
17251         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
17252         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
17253         * doc/posix-functions/dirfd.texi: Update.
17254         Reported by Rainer Tammer.
17255
17256 2010-07-30  Eric Blake  <eblake@redhat.com>
17257
17258         strtod: next round of AIX fixes
17259         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
17260         exponent.
17261         * tests/test-strtod.c (main): Enhance tests.
17262         * doc/posix-functions/strtod.texi (strtod): Document next bug.
17263         Reported by Rainer Tammer.
17264
17265         futimens: fix configure check
17266         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
17267         Reported by Bruno Haible.
17268
17269 2010-07-30  Bruno Haible  <bruno@clisp.org>
17270
17271         getline: Update regarding AIX.
17272         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
17273         Reported by Rainer Tammer.
17274
17275 2010-07-30  Bruno Haible  <bruno@clisp.org>
17276
17277         wcwidth: Drop replacement on AIX 7.
17278         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
17279         AIX 7.
17280         Reported by Rainer Tammer.
17281
17282 2010-07-30  Bruno Haible  <bruno@clisp.org>
17283
17284         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
17285         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
17286         a 'char *'.
17287         Reported by Rainer Tammer.
17288
17289 2010-07-30  Bruno Haible  <bruno@clisp.org>
17290
17291         unlink: Update regarding AIX.
17292         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
17293         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
17294         Reported by Rainer Tammer.
17295
17296 2010-07-30  Bruno Haible  <bruno@clisp.org>
17297
17298         symlink: Update regarding AIX.
17299         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
17300         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
17301         Reported by Rainer Tammer.
17302
17303 2010-07-30  Bruno Haible  <bruno@clisp.org>
17304
17305         strndup: Update regarding AIX.
17306         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
17307         AIX 7.
17308         Reported by Rainer Tammer.
17309
17310 2010-07-30  Bruno Haible  <bruno@clisp.org>
17311
17312         stat: Update regarding AIX.
17313         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
17314         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
17315         Reported by Rainer Tammer.
17316
17317 2010-07-30  Bruno Haible  <bruno@clisp.org>
17318
17319         truncl: Fix autoconf test.
17320         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
17321         whether truncl works.
17322         Reported by Rainer Tammer.
17323
17324 2010-07-30  Bruno Haible  <bruno@clisp.org>
17325
17326         round: Update regarding AIX.
17327         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
17328         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
17329         Reported by Rainer Tammer.
17330
17331 2010-07-30  Bruno Haible  <bruno@clisp.org>
17332
17333         rename: Update regarding AIX.
17334         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
17335         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
17336         Reported by Rainer Tammer.
17337
17338 2010-07-30  Bruno Haible  <bruno@clisp.org>
17339
17340         printf.m4: Update regarding AIX.
17341         * m4/printf.m4: Update comments regarding AIX.
17342         Reported by Rainer Tammer.
17343
17344 2010-07-30  Bruno Haible  <bruno@clisp.org>
17345
17346         iconv: Update regarding AIX.
17347         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
17348         AIX 7.
17349         Reported by Rainer Tammer.
17350
17351 2010-07-30  Bruno Haible  <bruno@clisp.org>
17352
17353         getopt: Update regarding AIX.
17354         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
17355         no on AIX.
17356         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
17357         Reported by Rainer Tammer.
17358
17359 2010-07-30  Bruno Haible  <bruno@clisp.org>
17360
17361         ldexpl; Update regarding AIX.
17362         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
17363         on AIX 7.
17364         Reported by Rainer Tammer.
17365
17366 2010-07-30  Bruno Haible  <bruno@clisp.org>
17367
17368         frexpl: Update regarding AIX.
17369         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
17370         on AIX 7.
17371         Reported by Rainer Tammer.
17372
17373 2010-07-30  Bruno Haible  <bruno@clisp.org>
17374
17375         open, fopen: Update regarding AIX.
17376         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
17377         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
17378         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
17379         * doc/posix-functions/fopen.texi: Likewise.
17380         Reported by Rainer Tammer.
17381
17382 2010-07-30  Bruno Haible  <bruno@clisp.org>
17383
17384         chown: Update doc regarding AIX.
17385         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
17386         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
17387         Reported by Rainer Tammer.
17388
17389 2010-07-30  Eric Blake  <eblake@redhat.com>
17390
17391         strtod: fix bug in replacement function on AIX
17392         * lib/strtod.c (strtod): Special case broken "0x" parse in
17393         underlying strtod.
17394         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
17395         * doc/posix-functions/strtod.texi (strtod): Likewise.
17396         Reported by Rainer Tammer.
17397
17398 2010-07-30  Bruno Haible  <bruno@clisp.org>
17399
17400         mbrlen: Fix cross-compilation guess for AIX.
17401         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
17402         guess. Leftover from 2008-12-22.
17403
17404 2010-07-30  Bruno Haible  <bruno@clisp.org>
17405
17406         mbrtowc: Fix cross-compilation guess for AIX.
17407         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
17408         guess. Leftover from 2008-12-21.
17409
17410 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
17411
17412         init.sh: work around trap limitation of some shells
17413         * tests/init.sh (setup_): Move exit trap outside of shell function.
17414
17415 2010-07-29  Eric Blake  <eblake@redhat.com>
17416
17417         strtod: aid debugging
17418         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
17419         understanding why strtod is rejected.
17420
17421 2010-07-28  Bruno Haible  <bruno@clisp.org>
17422
17423         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
17424         * lib/unistr/u8-chr.c: Include <string.h>.
17425         * tests/unistr/test-u8-chr.c: Likewise.
17426         * tests/unistr/test-u16-chr.c: Likewise.
17427         * tests/unistr/test-u32-chr.c: Likewise.
17428         * tests/unistr/test-u8-strchr.c: Likewise.
17429         * tests/unistr/test-u16-strchr.c: Likewise.
17430         * tests/unistr/test-u32-strchr.c: Likewise.
17431         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
17432         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
17433         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
17434         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
17435
17436 2010-07-28  Bruno Haible  <bruno@clisp.org>
17437
17438         Use spaces for indentation, not tabs.
17439         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
17440
17441 2010-07-27  Bruno Haible  <bruno@clisp.org>
17442
17443         mbspcasecmp: Fix function specification.
17444         * lib/string.in.h (mbspcasecmp): Fix specification comment.
17445         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
17446         Reported by Eric Blake <eblake@redhat.com>.
17447
17448 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
17449
17450         timespec: use cast and not conditional, as truncation isn't possible
17451         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
17452         instead of a conditional.  Comment about the situation in more detail.
17453         This undoes most of the 2009-10-29 patch.
17454
17455 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
17456
17457         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
17458         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
17459         * lib/unistr/u8-strchr.c: Likewise.
17460         * modules/unistr/u8-chr: Depend on memchr.
17461
17462         unistr/u*-strchr: add tests
17463         * modules/unistr/u8-strchr-tests: New file.
17464         * modules/unistr/u16-strchr-tests: New file.
17465         * modules/unistr/u32-strchr-tests: New file.
17466         * tests/unistr/test-strchr.h: New file.
17467         * tests/unistr/test-u8-strchr.c: New file.
17468         * tests/unistr/test-u16-strchr.c: New file.
17469         * tests/unistr/test-u32-strchr.c: New file.
17470
17471         unistr/u*-chr: test multibyte sequences more
17472         * tests/unistr/test-chr.h: Do complete testing of the characters in the
17473         test vector.
17474         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
17475         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
17476         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
17477
17478         unistr/u*-chr: test multibyte sequences
17479         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
17480
17481         unistr/u*-chr: prepare for multibyte tests
17482         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
17483         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
17484         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
17485         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
17486         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
17487         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
17488
17489 2010-07-18  Bruno Haible  <bruno@clisp.org>
17490
17491         unistr/u8-strchr: Optimize non-ASCII argument case.
17492         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
17493         because the first byte often matches anyway.
17494         Reported by Pádraig Brady <P@draigbrady.com>.
17495
17496 2010-07-15  Karl Berry  <karl@gnu.org>
17497
17498         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
17499
17500 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
17501
17502         getcwd: on Solaris, work better if ancestors are inaccessible
17503         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
17504         buffer and size, try again with a large buffer.  This works better
17505         on Solaris, since its getcwd succeeds even if the path to the root
17506         is inaccessible, and this is helpful in common cases such as .zfs
17507         hidden directories.  Problem reported by J Chapman Flack in
17508         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
17509         Use system getcwd if it's declared, not merely if it's partly
17510         working; use the partly-working test only to avoid needless effort
17511         if the system getcwd fails.
17512         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
17513         comment that was already obsolete and is now even more obsolete.
17514         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
17515         now might call strdup.
17516
17517 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
17518
17519         pthread: Add enough so that coreutils/src/sort.c compiles.
17520         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
17521         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
17522         gnulib. Include <sched.h> and <time.h>, as per POSIX.
17523         Include <sys/types.h>, in case it defines pthread_t.
17524         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
17525         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
17526         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
17527         (pthread_rwlockattr_t, pthread_spinlock_t):
17528         New typedefs, if HAVE_PTHREAD_T is not defined.
17529         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
17530         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
17531         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
17532         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
17533         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
17534         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
17535         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
17536         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
17537         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
17538         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
17539         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
17540         New macros.
17541         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
17542         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
17543         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
17544         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
17545         (pthread_spin_unlock): New dummy functions.
17546         (pthread_create): Return EAGAIN; don't set errno.
17547         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
17548         require AC_C_INLINE.
17549         * modules/pthread (Depends-on): Add sched, time.
17550         (pthread.h): Use AM_V_GEN.
17551
17552 2010-07-13  Bruno Haible  <bruno@clisp.org>
17553
17554         striconveh: Don't malloc memory if the result buffer is sufficient.
17555         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
17556         buffer if its size is sufficient.
17557         Reported by Ludovic Courtès <ludo@gnu.org>.
17558
17559 2010-07-13  Bruno Haible  <bruno@clisp.org>
17560
17561         strtod: Add safety check.
17562         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
17563
17564 2010-07-12  Bruno Haible  <bruno@clisp.org>
17565
17566         Unify tests that set gl_cv_func_ldexpl_no_libm.
17567         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
17568         gl_FUNC_LDEXPL.
17569         (gl_FUNC_LDEXPL): Invoke it.
17570         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17571
17572 2010-07-12  Bruno Haible  <bruno@clisp.org>
17573
17574         Unify tests that set gl_cv_func_ldexp_no_libm.
17575         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
17576         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
17577         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
17578         (configure.ac): Simply invoke gl_FUNC_LDEXP.
17579         * modules/strtod (Files): Add m4/ldexp.m4.
17580
17581 2010-07-12  Bruno Haible  <bruno@clisp.org>
17582
17583         Unify tests that set gl_cv_func_frexpl_no_libm.
17584         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
17585         gl_FUNC_FREXPL_NO_LIBM.
17586         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
17587         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
17588
17589 2010-07-12  Bruno Haible  <bruno@clisp.org>
17590
17591         Unify tests that set gl_cv_func_frexp_no_libm.
17592         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
17593         gl_FUNC_FREXP_NO_LIBM.
17594         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
17595         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
17596
17597 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17598
17599         memcoll: clarify sizes versus lengths, document better, and tweak perf
17600         * lib/memcoll.c (strcoll_loop, memcoll0):
17601         Improve quality of descriptive comments.  Name variables
17602         consistently as to whether they are lengths (which do not include
17603         terminating null) versus sizes (which do).
17604         * lib/xmemcoll.c (xmemcoll0): Likewise.
17605         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
17606         returned when s1size == 0; this is easier to compile and saves
17607         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
17608
17609 2010-07-12  Bruno Haible  <bruno@clisp.org>
17610
17611         Tests for module '_Exit'.
17612         * modules/_Exit-tests: New file.
17613         * tests/test-_Exit.sh: New file.
17614         * tests/test-_Exit.c: New file.
17615
17616         New module '_Exit'.
17617         * lib/stdlib.in.h (__attribute__): New macro.
17618         (_Exit): New declaration.
17619         * lib/_Exit.c: New file.
17620         * m4/_Exit.m4: New file.
17621         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
17622         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
17623         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
17624         * modules/_Exit: New file.
17625         * tests/test-stdlib-c++.cc (_Exit): Check signature.
17626         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
17627
17628 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
17629
17630         strtod: make it more-accurate typically, and don't require libm
17631         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
17632         Include limits.h.  Don't include string.h.
17633         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
17634         (locale_isspace): New function, so that no casts are needed to
17635         check whether *s is a space.
17636         (ldexp): Provide an unused dummy if not available.
17637         (scale_radix_exp, parse_number, underlying_strtod): New functions.
17638         (strtod): Use them.  This implementation prefers to use the
17639         underlying strtod if available, falling back on our own code
17640         only to fix known bugs.  This is more likely to produce an
17641         accurate result.  Also, it avoids the use of libm functions.
17642         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
17643         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
17644         was absent, but it caused a test failure with coreutils.
17645         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
17646         with libm.
17647         * modules/strtod (Makefile.am, Link): libm is no longer needed.
17648         * modules/strtod-tests (Makefile.am): Likewise.
17649
17650 2010-07-11  Pádraig Brady  <P@draigBrady.com>
17651             Bruno Haible  <bruno@clisp.org>
17652
17653         unistr/u8-strchr: Optimize ASCII argument case.
17654         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
17655
17656 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
17657
17658         (x)memcoll: minor tweaks
17659         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
17660         is after the type that it qualifies.
17661         (memcoll0): Likewise.
17662         * lib/memcoll.h (memcoll0): Likewise.
17663         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
17664         * lib/xmemcoll.h (xmemcoll0): Likewise.
17665         * lib/memcoll.c (memcoll0): Correct the comment.  This function
17666         differs from memcoll in that the NUL byte is part of the argument.
17667         Omit the abort-checks, as performance is a real issue here.  Plus,
17668         the checks were wrong anyway (an off-by-one error).  Omit local
17669         variable 'diff', as it's a bit clearer that way.
17670         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
17671         no longer needed.
17672
17673 2010-07-08  Chen Guo <chenguo4@yahoo.com>
17674
17675         (x)memcoll: speedup when input is known to be NUL delimited
17676         * lib/memcoll.c: Include stdlib.
17677         (memcoll0): New function.
17678         (strcoll_loop): New function, refactored for use in both memcoll
17679         and memcoll0.
17680         * lib/memcoll.h (memcoll0): Add prototype.
17681         * lib/xmemcoll.c (xmemcoll0): New function.
17682         (collate_error): New function, refactored for use in both xmemcoll
17683         and xmemcoll0.
17684         * lib/xmemcoll.h (xmemcoll0): Add prototype.
17685         * m4/memcoll.m4: add inline invocation.
17686
17687 2010-07-06  Pádraig Brady  <P@draigBrady.com>
17688
17689         * build-aux/bootstrap: Remove any local translations
17690         from the translation project synchronization directory,
17691         so that local only translations are not distributed.
17692
17693 2010-07-04  Bruno Haible  <bruno@clisp.org>
17694
17695         fsusage: Clarify which code applies to which platforms.
17696         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
17697         platform.
17698         * lib/fsusage.c (get_fs_usage): Likewise.
17699
17700 2010-07-04  Bruno Haible  <bruno@clisp.org>
17701
17702         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
17703         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
17704         Reported by Martin Lambers <marlam@marlam.de>.
17705
17706 2010-07-04  Jim Meyering  <meyering@redhat.com>
17707
17708         hash: once again explicitly disallow insertion of NULL
17709         * lib/hash.c (hash_insert0): Reinstate just-removed test:
17710         inserting a NULL pointer cannot work with these functions.
17711         Add a comment with details.
17712         This reverts part of the 2010-07-01 commit, 5bef1a35
17713         "hash: extend module to deal with non-pointer keys".
17714
17715 2010-07-01  Bruno Haible  <bruno@clisp.org>
17716
17717         stdbool: Update doc.
17718         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
17719         Info from Christian Weisgerber <naddy@mips.inka.de>.
17720
17721 2010-07-01  Jim Meyering  <meyering@redhat.com>
17722
17723         hash: extend module to deal with non-pointer keys
17724         * lib/hash.c (hash_insert0): New interface, much like hash_insert
17725         but that allows insertion of non-pointer entries.
17726         Do not disallow an ENTRY value of NULL.
17727         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
17728         * lib/hash.h (hash_insert0): Declare.
17729
17730 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
17731
17732         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
17733         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
17734         not present (i.e. with autoconf 2.59 and when using gettextize, not
17735         gnulib), require AC_GNU_SOURCE instead.
17736
17737 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
17738
17739         idpriv-drop: Fix tests.
17740         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
17741         not to the test-idpriv-droptemp program.
17742
17743 2010-06-29  Bruno Haible  <bruno@clisp.org>
17744
17745         string: Fix syntax error with g++ 2.96.
17746         * lib/string.in.h (__pure__): Remove definition.
17747         (_GL_ATTRIBUTE_PURE): New macro.
17748         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
17749         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
17750         Reported by Christian Weisgerber <naddy@mips.inka.de>.
17751
17752 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
17753
17754         unitypes: Fix bug introduced on 2010-05-18.
17755         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
17756
17757 2010-06-22  Eric Blake  <eblake@redhat.com>
17758
17759         memmem: slight optimization
17760         * lib/str-two-way.h (critical_factorization): Update comments.
17761         Reduce work during factorization phase.
17762         Reported by Carlos Bueno <carlos@bueno.org>.
17763
17764 2010-06-21  Bruno Haible  <bruno@clisp.org>
17765
17766         Fix HAVE_CALLOC_POSIX misnomer.
17767         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
17768         !HAVE_CALLOC_POSIX.
17769         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
17770         HAVE_CALLOC_POSIX.
17771         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
17772         instead of HAVE_CALLOC_POSIX.
17773         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
17774         HAVE_CALLOC_POSIX.
17775
17776         Use modern idiom for calloc() replacement.
17777         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
17778         AC_FUNC_CALLOC.
17779         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
17780         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
17781         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17782         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
17783         (gl_REPLACE_CALLOC): New macro.
17784
17785 2010-06-21  Bruno Haible  <bruno@clisp.org>
17786
17787         Fix HAVE_REALLOC_POSIX misnomer.
17788         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
17789         !HAVE_REALLOC_POSIX.
17790         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
17791         HAVE_REALLOC_POSIX.
17792         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
17793         instead of HAVE_REALLOC_POSIX.
17794         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
17795         HAVE_REALLOC_POSIX.
17796
17797         Use modern idiom for realloc() replacement.
17798         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
17799         AC_FUNC_REALLOC.
17800         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
17801         Autoconf's AC_FUNC_REALLOC.
17802         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17803         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
17804         (gl_REPLACE_REALLOC): New macro.
17805         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17806
17807 2010-06-21  Bruno Haible  <bruno@clisp.org>
17808
17809         Fix HAVE_MALLOC_POSIX misnomer.
17810         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
17811         !HAVE_MALLOC_POSIX.
17812         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
17813         HAVE_MALLOC_POSIX.
17814         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
17815         instead of HAVE_MALLOC_POSIX.
17816         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
17817         HAVE_MALLOC_POSIX.
17818
17819         Use modern idiom for malloc() replacement.
17820         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
17821         AC_FUNC_MALLOC.
17822         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
17823         Autoconf's AC_FUNC_MALLOC.
17824         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
17825         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
17826         (gl_REPLACE_MALLOC): New macro.
17827         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
17828
17829 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
17830
17831         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
17832         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
17833         This macro takes 3 arguments, not 4.
17834
17835 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
17836
17837         ipv6: fix detection under mingw
17838         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
17839         in6_addr.
17840
17841 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
17842
17843         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
17844         that strtod() works when cross-compiling to a glibc version known
17845         to work.
17846
17847 2010-06-15  Bruno Haible  <bruno@clisp.org>
17848
17849         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
17850
17851 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
17852
17853         select: Correct timeout.
17854         * lib/select.c (rpl_select): Compute wait_timeout correctly.
17855
17856 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17857
17858         git-version-gen: init shell var to avoid env var influence
17859         * build-aux/git-version-gen (v): Init shell var to empty.
17860
17861 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
17862
17863         priv-set: Don't assume that priv.h exists merely because getppriv does.
17864         See Jan Andersen's bug report about AIX 5L in
17865         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
17866         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
17867         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
17868         * lib/priv-set.h: Likewise.
17869         * tests/test-priv-set.c: Likewise.
17870
17871 2010-06-13  Bruno Haible  <bruno@clisp.org>
17872
17873         relocatable: Make it easier to test whether to install wrappers.
17874         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
17875         RELOCATABLE_VIA_WRAPPER.
17876
17877 2010-06-13  Bruno Haible  <bruno@clisp.org>
17878
17879         gnulib-tool: Display specified modules and dependencies differently.
17880         * gnulib-tool (func_show_module_list): New function.
17881         (func_import, func_create_testdir): Invoke it.
17882         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17883
17884 2010-06-13  Bruno Haible  <bruno@clisp.org>
17885
17886         gnulib-tool: Align code of func_import and func_create_testdir.
17887         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
17888         specified_modules.
17889
17890 2010-06-12  Jim Meyering  <meyering@redhat.com>
17891
17892         test-inttostr: avoid spurious failure on Solaris 9
17893         * tests/test-inttostr.c (main): Skip the test when snprintf fails
17894         to accept "%ju".  Reported by Bruno Haible.
17895
17896 2010-06-11  Jim Meyering  <meyering@redhat.com>
17897
17898         test-sys_socket: mark variables as used more readably
17899         * tests/test-sys_socket.c (main): Mark otherwise unused variables
17900         as "used" explicitly via (void) statement casts.  This is more
17901         readable than using them in an artificial return expression.
17902         Suggestion from Bruno Haible.
17903
17904 2010-06-11  Bruno Haible  <bruno@clisp.org>
17905
17906         Avoid some more warnings from "gcc -Wwrite-strings".
17907         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
17908         to 'const char *'.
17909         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
17910         * tests/test-c-strcasestr.c (main): Likewise.
17911         * tests/test-mbscasestr1.c (main): Likewise.
17912         * tests/test-mbscasestr2.c (main): Likewise.
17913         * tests/test-memmem.c (main): Likewise.
17914         * tests/test-strstr.c (main): Likewise.
17915         * tests/test-strcasestr.c (main): Likewise.
17916
17917 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17918
17919         init.sh: change framework_failure_ to fail with status 99, not 1
17920         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
17921         automake's parallel-tests rule that this is an unexpected failure,
17922         even if the test is listed in XFAIL_TESTS.
17923
17924 2010-06-11  Jim Meyering  <meyering@redhat.com>
17925
17926         test-inttostr: avoid warnings about 4-6KB literal strings
17927         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
17928         Include "macros.h", for its definition of ASSERT.
17929         (CK): s/assert/ASSERT/
17930         * modules/inttostr-tests (Files): Add macros.h.
17931
17932         init.sh: don't use $ME_ or skip_ before they are defined
17933         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
17934         their first uses.  Also hoist their companions: warn_, fail_,
17935         framework_failure_, $stderr_fileno.  Prompted by a patch from
17936         Stefano Lattarini.
17937
17938         test-sys_socket: avoid set-but-not-used warnings from gcc
17939         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
17940         avoid warning about set-but-not-used variables.
17941
17942         test-xvasprintf: avoid 'const' discard warnings
17943         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
17944         "const" when assigning from literal strings.
17945         (test_xasprintf): Add "void" in function argument list to placate
17946         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
17947
17948         tests: avoid compilation warnings in argmatch and exclude tests...
17949         in packages that define ARGMATCH_DIE_DECL, like coreutils.
17950         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
17951         Since it always exits, declare with the "noreturn" attribute.
17952         * tests/test-argmatch.c: Likewise.
17953
17954         tests: avoid 'const' discard warnings in mbsstr tests
17955         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
17956         * tests/test-mbsstr2.c (main): Likewise.
17957
17958         test-verify: avoid warning from gcc's -Wmissing-declarations
17959         * tests/test-verify.c (function): Declare to be static.
17960
17961         test-inttostr.c: include <string.h> for use of strcmp
17962         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
17963
17964         test-linkat: avoid failed assertion on "other" architectures
17965         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
17966         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
17967         sparc: https://bugs.launchpad.net/bugs/591968
17968
17969 2010-06-11  Jim Meyering  <meyering@redhat.com>
17970
17971         printf.m4: avoid autoconf's "Expanded Before Required" warning
17972         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
17973         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
17974         autoconf warning.
17975
17976 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
17977
17978         Replacement header templates are now named with ".in", not "_".
17979         * doc/gnulib-intro.texi: Correct.
17980
17981 2010-06-10  Jim Meyering  <meyering@redhat.com>
17982
17983         inttostr-tests: depend on snprintf, not snprintf-posix
17984         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
17985         snprintf-posix, to avoid this aclocal failure:
17986           missing file gnulib-tests/vasnprintf.c
17987           configure.ac:45: error: expected source file, required through \
17988           AC_LIBSOURCES, not found
17989
17990 2010-06-10  Jim Meyering  <meyering@redhat.com>
17991
17992         inttostr: add a new function, inttostr, and tests
17993         The namesake function was not available.  The existence of the
17994         template file, inttostr.c makes its addition nontrivial.
17995         * lib/anytostr.c: Rename from inttostr.c.
17996         (anytostr): Rename from inttostr.
17997         * lib/inttostr.c: New file.
17998         * modules/inttostr (Files): Add anytostr.c.
17999         (Makefile.am): Set lib_SOURCES instead of ...
18000         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
18001         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
18002         * lib/offtostr.c: Likewise.
18003         * lib/uinttostr.c: Likewise.
18004         * lib/umaxtostr.c: Likewise.
18005         * modules/inttostr-tests: New file.
18006         * tests/test-inttostr.c: New file.  Test these functions.
18007
18008 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
18009             Bruno Haible  <bruno@clisp.org>
18010
18011         Add "Extending Gnulib" chapter to manual.
18012         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
18013         chapter.
18014         (Extending Gnulib): New chapter.
18015         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
18016         chapter.
18017
18018 2010-06-09  Bruno Haible  <bruno@clisp.org>
18019
18020         Avoid relocwrapper link errors due to gnulib replacement functions.
18021         * lib/areadlink.c: Use the system's malloc, realloc functions.
18022         (areadlink): Set errno to ENOMEM explicitly.
18023         * modules/areadlink (Depends-on): Remove malloc-posix.
18024         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18025
18026 2010-06-09  Bruno Haible  <bruno@clisp.org>
18027
18028         Avoid relocwrapper link errors due to gnulib replacement functions.
18029         * lib/canonicalize-lgpl.c: Use the system's malloc function.
18030         * lib/malloca.c: Likewise.
18031         * lib/relocatable.c: Likewise.
18032         * lib/progreloc.c: Use the system's malloc, sprintf functions.
18033         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
18034         * lib/setenv.c: Use the system's malloc, realloc functions.
18035         * lib/strerror.c: Use the system's sprintf function.
18036         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18037
18038 2010-06-04  Bruno Haible  <bruno@clisp.org>
18039
18040         Prefer documented low-level autoconf macro names.
18041         * m4/lib-link.m4: Use m4_translit instead of translit.
18042         * m4/environ.m4: Likewise.
18043         * m4/mathfunc.m4: Likewise.
18044         * m4/onceonly.m4: Likewise.
18045         * m4/stdint.m4: Likewise.
18046         Suggested by Eric Blake.
18047
18048 2010-06-04  Martin Lambers  <marlam@marlam.de>
18049             Bruno Haible  <bruno@clisp.org>
18050
18051         havelib: Allow library names with '+' characters.
18052         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
18053         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
18054
18055 2010-06-09  Bruno Haible  <bruno@clisp.org>
18056
18057         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
18058         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
18059         realloc failed.
18060
18061 2010-06-08  Peter Simons  <simons@cryp.to>
18062
18063         maint.mk: make the news-check rule more configurable
18064         * top/maint.mk (news-check-lines-spec): New variable.
18065         (news-check): Use "sed -n 1,10p" in place of "head".
18066
18067 2010-06-07  Jim Meyering  <meyering@redhat.com>
18068
18069         do-release-commit-and-tag: fix typo in --help
18070         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
18071
18072         regex: avoid new dead-code warning with gcc-4.6.0
18073         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
18074         if-block containing a while-loop.  It's been unused for at least
18075         5 years.
18076
18077 2010-06-05  Bruno Haible  <bruno@clisp.org>
18078
18079         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
18080         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
18081
18082 2010-06-04  Bruno Haible  <bruno@clisp.org>
18083
18084         Update to GNU gettext 0.18.1.
18085         * modules/gettext (configure.ac): Require gettext infrastructure from
18086         version 0.18.1.
18087
18088 2010-06-03  Bruno Haible  <bruno@clisp.org>
18089
18090         Don't use AC_LIBOBJ with file names in subdirectories.
18091         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
18092         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
18093         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
18094         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
18095         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
18096         gl_LIBUNISTRING_LIBSOURCE.
18097         (Makefile.am): Augment lib_SOURCES here, conditionally.
18098         * NEWS: Drop requirement for Automake option 'subdir-objects'.
18099
18100 2010-06-03  Bruno Haible  <bruno@clisp.org>
18101
18102         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
18103         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
18104         expansion does not end with a newline.
18105         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
18106         unnecessary newline.
18107
18108 2010-06-03  Bruno Haible  <bruno@clisp.org>
18109
18110         Reduce dependencies.
18111         * tests/test-quotearg.h: New file, extracted from
18112         tests/test-quotearg.c.
18113         * tests/test-quotearg-simple.c: New file, extracted from
18114         tests/test-quotearg.c.
18115         * tests/test-quotearg.c: Don't include <ctype.h>.
18116         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
18117         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
18118         use_quote_double_quotes, use_quotearg_colon): Moved to
18119         tests/test-quotearg.h.
18120         (results_g, flag_results, custom_quotes, custom_results): Moved
18121         to tests/test-quotearg-simple.c.
18122         (main): Moved the part that does not depend on gettext to
18123         tests/test-quotearg-simple.c. Return 77 if the test cannot be
18124         performed.
18125         * modules/quotearg-simple: New file.
18126         * modules/quotearg-simple-tests: New file.
18127         * modules/quotearg (Depends-on): Add quotearg-simple.
18128         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
18129         (Files): Add tests/test-quotearg.h.
18130         Reported by Paolo Bonzini.
18131
18132 2010-06-03  Bruno Haible  <bruno@clisp.org>
18133
18134         Reduce dependencies.
18135         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
18136
18137 2010-06-03  Bruno Haible  <bruno@clisp.org>
18138
18139         time: Undefine more broken macros.
18140         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
18141         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
18142         Reported by Eric Blake.
18143
18144 2010-06-03  Bruno Haible  <bruno@clisp.org>
18145
18146         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
18147         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
18148         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
18149         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
18150         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
18151         Reported by Ludovic Courtès <ludo@gnu.org>.
18152
18153 2010-06-02  Eric Blake  <eblake@redhat.com>
18154
18155         time: work with mingw + pthreads-win32 library
18156         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
18157         if timespec is defined only in pthread.h.
18158         * modules/time (Makefile.am): Substitute it.
18159         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
18160         <pthread.h>, when needed.
18161         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
18162         from the library.
18163
18164 2010-05-31  Bruno Haible  <bruno@clisp.org>
18165
18166         Avoid expanding two macros in the wrong order.
18167         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
18168         gl_LIBUNISTRING if it is defined.
18169         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
18170         autoconf >= 2.64.
18171         Reported by Ludovic Courtès <ludo@gnu.org>.
18172
18173 2010-05-27  Jim Meyering  <meyering@redhat.com>
18174
18175         maint.mk: also prohibit "#undef" of always-defined symbols
18176         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
18177         Allow more than one space before the symbol name.
18178         (sc_prohibit_always-defined_macros): Use grep's -E, now that
18179         the regexp uses alternation.
18180
18181 2010-05-26  Eric Blake  <eblake@redhat.com>
18182
18183         maint.mk: avoid echo -e
18184         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
18185         Convert all uses of echo -* to printf.
18186         Reported by Matthias Bolte.
18187
18188 2010-05-25  Bruno Haible  <bruno@clisp.org>
18189
18190         Update to GNU gettext 0.18, part 2.
18191         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
18192         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
18193
18194 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18195
18196         Add missing include in test-pwrite.c.
18197         * tests/test-pwrite.c: Include string.h, for strcmp.
18198
18199 2010-05-24  Bruno Haible  <bruno@clisp.org>
18200
18201         * NEWS: Mention requirement for Automake option 'subdir-objects'.
18202
18203 2010-05-24  Bruno Haible  <bruno@clisp.org>
18204
18205         Don't use conversion with transliteration in u{8,16,32}_strcoll.
18206         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
18207         iconveh_error argument.
18208         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
18209         U_STRCONV_TO_LOCALE.
18210         * lib/unistr/u16-strcoll.c: Likewise.
18211         * lib/unistr/u32-strcoll.c: Likewise.
18212         * modules/unistr/u8-strcoll (Depends-on): Add
18213         uniconv/u8-strconv-to-enc, localcharset. Remove
18214         uniconv/u8-strconv-to-locale.
18215         (configure.ac): Bump version number.
18216         * modules/unistr/u16-strcoll (Depends-on): Add
18217         uniconv/u16-strconv-to-enc, localcharset. Remove
18218         uniconv/u16-strconv-to-locale.
18219         (configure.ac): Bump version number.
18220         * modules/unistr/u32-strcoll (Depends-on): Add
18221         uniconv/u32-strconv-to-enc, localcharset. Remove
18222         uniconv/u32-strconv-to-locale.
18223         (configure.ac): Bump version number.
18224
18225 2010-05-24  Bruno Haible  <bruno@clisp.org>
18226
18227         Avoid a test failure on NetBSD 5.0.
18228         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
18229         an iconv() bug.
18230
18231 2010-05-24  Bruno Haible  <bruno@clisp.org>
18232
18233         Adjust #include directive style.
18234         * modules/regex (Includes): Recommend to write <regex.h>.
18235
18236 2010-05-24  Bruno Haible  <bruno@clisp.org>
18237
18238         regex: Don't require alloca.
18239         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
18240         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
18241         only inside if (0).
18242
18243 2010-05-23  Jim Meyering  <meyering@redhat.com>
18244
18245         test-renameat.c: include <sys/stat.h>
18246         * tests/test-renameat.c: Include <sys/stat.h>; required for
18247         definition of S_IS* macros.
18248
18249 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
18250
18251         Update maintainer documentation for 'relocatable-prog' module.
18252         * doc/relocatable-maint.texi: Update.
18253         Comments by Bruno Haible.
18254
18255 2010-05-23  Bruno Haible  <bruno@clisp.org>
18256
18257         git-merge-changelog: Enable --split-merged-entry by default.
18258         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
18259         (usage): Don't mention this option any more.
18260         Reported by Ralf Wildenhues.
18261
18262 2010-05-23  Jim Meyering  <meyering@redhat.com>
18263
18264         test-pwrite: do not leave behind a test file named "out"
18265         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
18266         The trivial-looking use of init.sh is really necessary.
18267         It ensures that the temporary file, "out", is created in
18268         a temporary directory, and removed upon termination.
18269         * tests/test-pwrite.sh: Re-add file.
18270         * modules/pwrite-tests: Reference it.
18271
18272 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18273
18274         Fix output redirection buglet in init.sh.
18275         * tests/init.sh: Fix redirection of stderr.
18276
18277 2010-05-20  Simon Josefsson  <simon@josefsson.org>
18278
18279         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
18280
18281 2010-05-17  Simon Josefsson  <simon@josefsson.org>
18282
18283         * modules/valgrind-tests: New file.
18284         * m4/valgrind-tests.m4: New file.
18285         * doc/valgrind-tests.texi: New file.
18286         * doc/gnulib.texi (Running self-tests under valgrind): New
18287         section.
18288
18289 2010-05-19  Bruno Haible  <bruno@clisp.org>
18290
18291         Clean up dead code in recent commit.
18292         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
18293         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
18294         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
18295         Suggested by Paolo Bonzini.
18296
18297 2010-05-19  Bruno Haible  <bruno@clisp.org>
18298
18299         Avoid valgrind error reports from libunistring.
18300         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
18301         * modules/libunistring (Files): Add it.
18302         * modules/libunistring-optional (Files): Likewise.
18303
18304 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
18305             Bruno Haible  <bruno@clisp.org>
18306
18307         New module 'libunistring-optional'.
18308         * modules/libunistring-optional: New file.
18309         * m4/libunistring-base.m4: New file.
18310         * m4/libunistring-optional.m4: New file.
18311         * lib/unicase.in.h: Renamed from lib/unicase.h.
18312         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
18313         * lib/unictype.in.h: Renamed from lib/unictype.h.
18314         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
18315         * lib/uniname.in.h: Renamed from lib/uniname.h.
18316         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
18317         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
18318         * lib/unistr.in.h: Renamed from lib/unistr.h.
18319         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
18320         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
18321         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
18322         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
18323         gl_LIBUNISTRING. If the library was found, determine the installed
18324         version and set LIBUNISTRING_VERSION.
18325         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
18326         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
18327         handle a configuration option --with-included-libunistring.
18328         * modules/libunistring (Files): Add m4/absolute-header.m4.
18329         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
18330         Add m4/libunistring-base.m4.
18331         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18332         (Makefile.am): Build unicase.h from unicase.in.h.
18333         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
18334         Add m4/libunistring-base.m4.
18335         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18336         (Makefile.am): Build uniconv.h from uniconv.in.h.
18337         * modules/unictype/base (Files): Use unictype.in.h instead of
18338         unictype.h. Add m4/libunistring-base.m4.
18339         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18340         (Makefile.am): Build unictype.h from unictype.in.h.
18341         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
18342         Add m4/libunistring-base.m4.
18343         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18344         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
18345         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
18346         Add m4/libunistring-base.m4.
18347         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18348         (Makefile.am): Build uniname.h from uniname.in.h.
18349         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
18350         Add m4/libunistring-base.m4.
18351         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18352         (Makefile.am): Build uninorm.h from uninorm.in.h.
18353         * modules/unistdio/base (Files): Use unistdio.in.h instead of
18354         unistdio.h. Add m4/libunistring-base.m4.
18355         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18356         (Makefile.am): Build unistdio.h from unistdio.in.h.
18357         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
18358         Add m4/libunistring-base.m4.
18359         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18360         (Makefile.am): Build unistr.h from unistr.in.h.
18361         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
18362         Add m4/libunistring-base.m4.
18363         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18364         (Makefile.am): Build unitypes.h from unitypes.in.h.
18365         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
18366         Add m4/libunistring-base.m4.
18367         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18368         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
18369         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
18370         uniwidth.h. Add m4/libunistring-base.m4.
18371         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
18372         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
18373         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
18374         instead of augmenting lib_SOURCES.
18375         * modules/unicase/empty-suffix-context: Likewise.
18376         * modules/unicase/locale-language: Likewise.
18377         * modules/unicase/tolower: Likewise.
18378         * modules/unicase/totitle: Likewise.
18379         * modules/unicase/toupper: Likewise.
18380         * modules/unicase/u8-casecmp: Likewise.
18381         * modules/unicase/u8-casecoll: Likewise.
18382         * modules/unicase/u8-casefold: Likewise.
18383         * modules/unicase/u8-casexfrm: Likewise.
18384         * modules/unicase/u8-ct-casefold: Likewise.
18385         * modules/unicase/u8-ct-tolower: Likewise.
18386         * modules/unicase/u8-ct-totitle: Likewise.
18387         * modules/unicase/u8-ct-toupper: Likewise.
18388         * modules/unicase/u8-is-cased: Likewise.
18389         * modules/unicase/u8-is-casefolded: Likewise.
18390         * modules/unicase/u8-is-lowercase: Likewise.
18391         * modules/unicase/u8-is-titlecase: Likewise.
18392         * modules/unicase/u8-is-uppercase: Likewise.
18393         * modules/unicase/u8-prefix-context: Likewise.
18394         * modules/unicase/u8-suffix-context: Likewise.
18395         * modules/unicase/u8-tolower: Likewise.
18396         * modules/unicase/u8-totitle: Likewise.
18397         * modules/unicase/u8-toupper: Likewise.
18398         * modules/unicase/u16-casecmp: Likewise.
18399         * modules/unicase/u16-casecoll: Likewise.
18400         * modules/unicase/u16-casefold: Likewise.
18401         * modules/unicase/u16-casexfrm: Likewise.
18402         * modules/unicase/u16-ct-casefold: Likewise.
18403         * modules/unicase/u16-ct-tolower: Likewise.
18404         * modules/unicase/u16-ct-totitle: Likewise.
18405         * modules/unicase/u16-ct-toupper: Likewise.
18406         * modules/unicase/u16-is-cased: Likewise.
18407         * modules/unicase/u16-is-casefolded: Likewise.
18408         * modules/unicase/u16-is-lowercase: Likewise.
18409         * modules/unicase/u16-is-titlecase: Likewise.
18410         * modules/unicase/u16-is-uppercase: Likewise.
18411         * modules/unicase/u16-prefix-context: Likewise.
18412         * modules/unicase/u16-suffix-context: Likewise.
18413         * modules/unicase/u16-tolower: Likewise.
18414         * modules/unicase/u16-totitle: Likewise.
18415         * modules/unicase/u16-toupper: Likewise.
18416         * modules/unicase/u32-casecmp: Likewise.
18417         * modules/unicase/u32-casecoll: Likewise.
18418         * modules/unicase/u32-casefold: Likewise.
18419         * modules/unicase/u32-casexfrm: Likewise.
18420         * modules/unicase/u32-ct-casefold: Likewise.
18421         * modules/unicase/u32-ct-tolower: Likewise.
18422         * modules/unicase/u32-ct-totitle: Likewise.
18423         * modules/unicase/u32-ct-toupper: Likewise.
18424         * modules/unicase/u32-is-cased: Likewise.
18425         * modules/unicase/u32-is-casefolded: Likewise.
18426         * modules/unicase/u32-is-lowercase: Likewise.
18427         * modules/unicase/u32-is-titlecase: Likewise.
18428         * modules/unicase/u32-is-uppercase: Likewise.
18429         * modules/unicase/u32-prefix-context: Likewise.
18430         * modules/unicase/u32-suffix-context: Likewise.
18431         * modules/unicase/u32-tolower: Likewise.
18432         * modules/unicase/u32-totitle: Likewise.
18433         * modules/unicase/u32-toupper: Likewise.
18434         * modules/unicase/ulc-casecmp: Likewise.
18435         * modules/unicase/ulc-casecoll: Likewise.
18436         * modules/unicase/ulc-casexfrm: Likewise.
18437         * modules/uniconv/u8-conv-from-enc: Likewise.
18438         * modules/uniconv/u8-conv-to-enc: Likewise.
18439         * modules/uniconv/u8-strconv-from-enc: Likewise.
18440         * modules/uniconv/u8-strconv-from-locale: Likewise.
18441         * modules/uniconv/u8-strconv-to-enc: Likewise.
18442         * modules/uniconv/u8-strconv-to-locale: Likewise.
18443         * modules/uniconv/u16-conv-from-enc: Likewise.
18444         * modules/uniconv/u16-conv-to-enc: Likewise.
18445         * modules/uniconv/u16-strconv-from-enc: Likewise.
18446         * modules/uniconv/u16-strconv-from-locale: Likewise.
18447         * modules/uniconv/u16-strconv-to-enc: Likewise.
18448         * modules/uniconv/u16-strconv-to-locale: Likewise.
18449         * modules/uniconv/u32-conv-from-enc: Likewise.
18450         * modules/uniconv/u32-conv-to-enc: Likewise.
18451         * modules/uniconv/u32-strconv-from-enc: Likewise.
18452         * modules/uniconv/u32-strconv-from-locale: Likewise.
18453         * modules/uniconv/u32-strconv-to-enc: Likewise.
18454         * modules/uniconv/u32-strconv-to-locale: Likewise.
18455         * modules/unictype/bidicategory-byname: Likewise.
18456         * modules/unictype/bidicategory-name: Likewise.
18457         * modules/unictype/bidicategory-of: Likewise.
18458         * modules/unictype/bidicategory-test: Likewise.
18459         * modules/unictype/block-list: Likewise.
18460         * modules/unictype/block-test: Likewise.
18461         * modules/unictype/category-C: Likewise.
18462         * modules/unictype/category-Cc: Likewise.
18463         * modules/unictype/category-Cf: Likewise.
18464         * modules/unictype/category-Cn: Likewise.
18465         * modules/unictype/category-Co: Likewise.
18466         * modules/unictype/category-Cs: Likewise.
18467         * modules/unictype/category-L: Likewise.
18468         * modules/unictype/category-Ll: Likewise.
18469         * modules/unictype/category-Lm: Likewise.
18470         * modules/unictype/category-Lo: Likewise.
18471         * modules/unictype/category-Lt: Likewise.
18472         * modules/unictype/category-Lu: Likewise.
18473         * modules/unictype/category-M: Likewise.
18474         * modules/unictype/category-Mc: Likewise.
18475         * modules/unictype/category-Me: Likewise.
18476         * modules/unictype/category-Mn: Likewise.
18477         * modules/unictype/category-N: Likewise.
18478         * modules/unictype/category-Nd: Likewise.
18479         * modules/unictype/category-Nl: Likewise.
18480         * modules/unictype/category-No: Likewise.
18481         * modules/unictype/category-P: Likewise.
18482         * modules/unictype/category-Pc: Likewise.
18483         * modules/unictype/category-Pd: Likewise.
18484         * modules/unictype/category-Pe: Likewise.
18485         * modules/unictype/category-Pf: Likewise.
18486         * modules/unictype/category-Pi: Likewise.
18487         * modules/unictype/category-Po: Likewise.
18488         * modules/unictype/category-Ps: Likewise.
18489         * modules/unictype/category-S: Likewise.
18490         * modules/unictype/category-Sc: Likewise.
18491         * modules/unictype/category-Sk: Likewise.
18492         * modules/unictype/category-Sm: Likewise.
18493         * modules/unictype/category-So: Likewise.
18494         * modules/unictype/category-Z: Likewise.
18495         * modules/unictype/category-Zl: Likewise.
18496         * modules/unictype/category-Zp: Likewise.
18497         * modules/unictype/category-Zs: Likewise.
18498         * modules/unictype/category-and: Likewise.
18499         * modules/unictype/category-and-not: Likewise.
18500         * modules/unictype/category-byname: Likewise.
18501         * modules/unictype/category-name: Likewise.
18502         * modules/unictype/category-none: Likewise.
18503         * modules/unictype/category-of: Likewise.
18504         * modules/unictype/category-or: Likewise.
18505         * modules/unictype/category-test: Likewise.
18506         * modules/unictype/combining-class: Likewise.
18507         * modules/unictype/ctype-alnum: Likewise.
18508         * modules/unictype/ctype-alpha: Likewise.
18509         * modules/unictype/ctype-blank: Likewise.
18510         * modules/unictype/ctype-cntrl: Likewise.
18511         * modules/unictype/ctype-digit: Likewise.
18512         * modules/unictype/ctype-graph: Likewise.
18513         * modules/unictype/ctype-lower: Likewise.
18514         * modules/unictype/ctype-print: Likewise.
18515         * modules/unictype/ctype-punct: Likewise.
18516         * modules/unictype/ctype-space: Likewise.
18517         * modules/unictype/ctype-upper: Likewise.
18518         * modules/unictype/ctype-xdigit: Likewise.
18519         * modules/unictype/decimal-digit: Likewise.
18520         * modules/unictype/digit: Likewise.
18521         * modules/unictype/mirror: Likewise.
18522         * modules/unictype/numeric: Likewise.
18523         * modules/unictype/property-alphabetic: Likewise.
18524         * modules/unictype/property-ascii-hex-digit: Likewise.
18525         * modules/unictype/property-bidi-arabic-digit: Likewise.
18526         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
18527         * modules/unictype/property-bidi-block-separator: Likewise.
18528         * modules/unictype/property-bidi-boundary-neutral: Likewise.
18529         * modules/unictype/property-bidi-common-separator: Likewise.
18530         * modules/unictype/property-bidi-control: Likewise.
18531         * modules/unictype/property-bidi-embedding-or-override: Likewise.
18532         * modules/unictype/property-bidi-eur-num-separator: Likewise.
18533         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
18534         * modules/unictype/property-bidi-european-digit: Likewise.
18535         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
18536         * modules/unictype/property-bidi-left-to-right: Likewise.
18537         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
18538         * modules/unictype/property-bidi-other-neutral: Likewise.
18539         * modules/unictype/property-bidi-pdf: Likewise.
18540         * modules/unictype/property-bidi-segment-separator: Likewise.
18541         * modules/unictype/property-bidi-whitespace: Likewise.
18542         * modules/unictype/property-byname: Likewise.
18543         * modules/unictype/property-combining: Likewise.
18544         * modules/unictype/property-composite: Likewise.
18545         * modules/unictype/property-currency-symbol: Likewise.
18546         * modules/unictype/property-dash: Likewise.
18547         * modules/unictype/property-decimal-digit: Likewise.
18548         * modules/unictype/property-default-ignorable-code-point: Likewise.
18549         * modules/unictype/property-deprecated: Likewise.
18550         * modules/unictype/property-diacritic: Likewise.
18551         * modules/unictype/property-extender: Likewise.
18552         * modules/unictype/property-format-control: Likewise.
18553         * modules/unictype/property-grapheme-base: Likewise.
18554         * modules/unictype/property-grapheme-extend: Likewise.
18555         * modules/unictype/property-grapheme-link: Likewise.
18556         * modules/unictype/property-hex-digit: Likewise.
18557         * modules/unictype/property-hyphen: Likewise.
18558         * modules/unictype/property-id-continue: Likewise.
18559         * modules/unictype/property-id-start: Likewise.
18560         * modules/unictype/property-ideographic: Likewise.
18561         * modules/unictype/property-ids-binary-operator: Likewise.
18562         * modules/unictype/property-ids-trinary-operator: Likewise.
18563         * modules/unictype/property-ignorable-control: Likewise.
18564         * modules/unictype/property-iso-control: Likewise.
18565         * modules/unictype/property-join-control: Likewise.
18566         * modules/unictype/property-left-of-pair: Likewise.
18567         * modules/unictype/property-line-separator: Likewise.
18568         * modules/unictype/property-logical-order-exception: Likewise.
18569         * modules/unictype/property-lowercase: Likewise.
18570         * modules/unictype/property-math: Likewise.
18571         * modules/unictype/property-non-break: Likewise.
18572         * modules/unictype/property-not-a-character: Likewise.
18573         * modules/unictype/property-numeric: Likewise.
18574         * modules/unictype/property-other-alphabetic: Likewise.
18575         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
18576         * modules/unictype/property-other-grapheme-extend: Likewise.
18577         * modules/unictype/property-other-id-continue: Likewise.
18578         * modules/unictype/property-other-id-start: Likewise.
18579         * modules/unictype/property-other-lowercase: Likewise.
18580         * modules/unictype/property-other-math: Likewise.
18581         * modules/unictype/property-other-uppercase: Likewise.
18582         * modules/unictype/property-paired-punctuation: Likewise.
18583         * modules/unictype/property-paragraph-separator: Likewise.
18584         * modules/unictype/property-pattern-syntax: Likewise.
18585         * modules/unictype/property-pattern-white-space: Likewise.
18586         * modules/unictype/property-private-use: Likewise.
18587         * modules/unictype/property-punctuation: Likewise.
18588         * modules/unictype/property-quotation-mark: Likewise.
18589         * modules/unictype/property-radical: Likewise.
18590         * modules/unictype/property-sentence-terminal: Likewise.
18591         * modules/unictype/property-soft-dotted: Likewise.
18592         * modules/unictype/property-space: Likewise.
18593         * modules/unictype/property-terminal-punctuation: Likewise.
18594         * modules/unictype/property-test: Likewise.
18595         * modules/unictype/property-titlecase: Likewise.
18596         * modules/unictype/property-unassigned-code-value: Likewise.
18597         * modules/unictype/property-unified-ideograph: Likewise.
18598         * modules/unictype/property-uppercase: Likewise.
18599         * modules/unictype/property-variation-selector: Likewise.
18600         * modules/unictype/property-white-space: Likewise.
18601         * modules/unictype/property-xid-continue: Likewise.
18602         * modules/unictype/property-xid-start: Likewise.
18603         * modules/unictype/property-zero-width: Likewise.
18604         * modules/unictype/scripts: Likewise.
18605         * modules/unictype/syntax-c-ident: Likewise.
18606         * modules/unictype/syntax-c-whitespace: Likewise.
18607         * modules/unictype/syntax-java-ident: Likewise.
18608         * modules/unictype/syntax-java-whitespace: Likewise.
18609         * modules/unilbrk/u8-possible-linebreaks: Likewise.
18610         * modules/unilbrk/u8-width-linebreaks: Likewise.
18611         * modules/unilbrk/u16-possible-linebreaks: Likewise.
18612         * modules/unilbrk/u16-width-linebreaks: Likewise.
18613         * modules/unilbrk/u32-possible-linebreaks: Likewise.
18614         * modules/unilbrk/u32-width-linebreaks: Likewise.
18615         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
18616         * modules/unilbrk/ulc-width-linebreaks: Likewise.
18617         * modules/uniname/uniname: Likewise.
18618         * modules/uninorm/canonical-decomposition: Likewise.
18619         * modules/uninorm/composition: Likewise.
18620         * modules/uninorm/decomposing-form: Likewise.
18621         * modules/uninorm/decomposition: Likewise.
18622         * modules/uninorm/filter: Likewise.
18623         * modules/uninorm/nfc: Likewise.
18624         * modules/uninorm/nfd: Likewise.
18625         * modules/uninorm/nfkc: Likewise.
18626         * modules/uninorm/nfkd: Likewise.
18627         * modules/uninorm/u8-normalize: Likewise.
18628         * modules/uninorm/u8-normcmp: Likewise.
18629         * modules/uninorm/u8-normcoll: Likewise.
18630         * modules/uninorm/u8-normxfrm: Likewise.
18631         * modules/uninorm/u16-normalize: Likewise.
18632         * modules/uninorm/u16-normcmp: Likewise.
18633         * modules/uninorm/u16-normcoll: Likewise.
18634         * modules/uninorm/u16-normxfrm: Likewise.
18635         * modules/uninorm/u32-normalize: Likewise.
18636         * modules/uninorm/u32-normcmp: Likewise.
18637         * modules/uninorm/u32-normcoll: Likewise.
18638         * modules/uninorm/u32-normxfrm: Likewise.
18639         * modules/unistdio/u8-asnprintf: Likewise.
18640         * modules/unistdio/u8-asprintf: Likewise.
18641         * modules/unistdio/u8-snprintf: Likewise.
18642         * modules/unistdio/u8-sprintf: Likewise.
18643         * modules/unistdio/u8-u8-asnprintf: Likewise.
18644         * modules/unistdio/u8-u8-asprintf: Likewise.
18645         * modules/unistdio/u8-u8-snprintf: Likewise.
18646         * modules/unistdio/u8-u8-sprintf: Likewise.
18647         * modules/unistdio/u8-u8-vasnprintf: Likewise.
18648         * modules/unistdio/u8-u8-vasprintf: Likewise.
18649         * modules/unistdio/u8-u8-vsnprintf: Likewise.
18650         * modules/unistdio/u8-u8-vsprintf: Likewise.
18651         * modules/unistdio/u8-vasnprintf: Likewise.
18652         * modules/unistdio/u8-vasprintf: Likewise.
18653         * modules/unistdio/u8-vsnprintf: Likewise.
18654         * modules/unistdio/u8-vsprintf: Likewise.
18655         * modules/unistdio/u16-asnprintf: Likewise.
18656         * modules/unistdio/u16-asprintf: Likewise.
18657         * modules/unistdio/u16-snprintf: Likewise.
18658         * modules/unistdio/u16-sprintf: Likewise.
18659         * modules/unistdio/u16-u16-asnprintf: Likewise.
18660         * modules/unistdio/u16-u16-asprintf: Likewise.
18661         * modules/unistdio/u16-u16-snprintf: Likewise.
18662         * modules/unistdio/u16-u16-sprintf: Likewise.
18663         * modules/unistdio/u16-u16-vasnprintf: Likewise.
18664         * modules/unistdio/u16-u16-vasprintf: Likewise.
18665         * modules/unistdio/u16-u16-vsnprintf: Likewise.
18666         * modules/unistdio/u16-u16-vsprintf: Likewise.
18667         * modules/unistdio/u16-vasnprintf: Likewise.
18668         * modules/unistdio/u16-vasprintf: Likewise.
18669         * modules/unistdio/u16-vsnprintf: Likewise.
18670         * modules/unistdio/u16-vsprintf: Likewise.
18671         * modules/unistdio/u32-asnprintf: Likewise.
18672         * modules/unistdio/u32-asprintf: Likewise.
18673         * modules/unistdio/u32-snprintf: Likewise.
18674         * modules/unistdio/u32-sprintf: Likewise.
18675         * modules/unistdio/u32-u32-asnprintf: Likewise.
18676         * modules/unistdio/u32-u32-asprintf: Likewise.
18677         * modules/unistdio/u32-u32-snprintf: Likewise.
18678         * modules/unistdio/u32-u32-sprintf: Likewise.
18679         * modules/unistdio/u32-u32-vasnprintf: Likewise.
18680         * modules/unistdio/u32-u32-vasprintf: Likewise.
18681         * modules/unistdio/u32-u32-vsnprintf: Likewise.
18682         * modules/unistdio/u32-u32-vsprintf: Likewise.
18683         * modules/unistdio/u32-vasnprintf: Likewise.
18684         * modules/unistdio/u32-vasprintf: Likewise.
18685         * modules/unistdio/u32-vsnprintf: Likewise.
18686         * modules/unistdio/u32-vsprintf: Likewise.
18687         * modules/unistdio/ulc-asnprintf: Likewise.
18688         * modules/unistdio/ulc-asprintf: Likewise.
18689         * modules/unistdio/ulc-fprintf: Likewise.
18690         * modules/unistdio/ulc-snprintf: Likewise.
18691         * modules/unistdio/ulc-sprintf: Likewise.
18692         * modules/unistdio/ulc-vasnprintf: Likewise.
18693         * modules/unistdio/ulc-vasprintf: Likewise.
18694         * modules/unistdio/ulc-vfprintf: Likewise.
18695         * modules/unistdio/ulc-vsnprintf: Likewise.
18696         * modules/unistdio/ulc-vsprintf: Likewise.
18697         * modules/unistr/u8-check: Likewise.
18698         * modules/unistr/u8-chr: Likewise.
18699         * modules/unistr/u8-cmp: Likewise.
18700         * modules/unistr/u8-cmp2: Likewise.
18701         * modules/unistr/u8-cpy: Likewise.
18702         * modules/unistr/u8-cpy-alloc: Likewise.
18703         * modules/unistr/u8-endswith: Likewise.
18704         * modules/unistr/u8-mblen: Likewise.
18705         * modules/unistr/u8-mbsnlen: Likewise.
18706         * modules/unistr/u8-mbtouc: Likewise.
18707         * modules/unistr/u8-mbtouc-unsafe: Likewise.
18708         * modules/unistr/u8-mbtoucr: Likewise.
18709         * modules/unistr/u8-move: Likewise.
18710         * modules/unistr/u8-next: Likewise.
18711         * modules/unistr/u8-prev: Likewise.
18712         * modules/unistr/u8-set: Likewise.
18713         * modules/unistr/u8-startswith: Likewise.
18714         * modules/unistr/u8-stpcpy: Likewise.
18715         * modules/unistr/u8-stpncpy: Likewise.
18716         * modules/unistr/u8-strcat: Likewise.
18717         * modules/unistr/u8-strchr: Likewise.
18718         * modules/unistr/u8-strcmp: Likewise.
18719         * modules/unistr/u8-strcoll: Likewise.
18720         * modules/unistr/u8-strcpy: Likewise.
18721         * modules/unistr/u8-strcspn: Likewise.
18722         * modules/unistr/u8-strdup: Likewise.
18723         * modules/unistr/u8-strlen: Likewise.
18724         * modules/unistr/u8-strmblen: Likewise.
18725         * modules/unistr/u8-strmbtouc: Likewise.
18726         * modules/unistr/u8-strncat: Likewise.
18727         * modules/unistr/u8-strncmp: Likewise.
18728         * modules/unistr/u8-strncpy: Likewise.
18729         * modules/unistr/u8-strnlen: Likewise.
18730         * modules/unistr/u8-strpbrk: Likewise.
18731         * modules/unistr/u8-strrchr: Likewise.
18732         * modules/unistr/u8-strspn: Likewise.
18733         * modules/unistr/u8-strstr: Likewise.
18734         * modules/unistr/u8-strtok: Likewise.
18735         * modules/unistr/u8-to-u16: Likewise.
18736         * modules/unistr/u8-to-u32: Likewise.
18737         * modules/unistr/u8-uctomb: Likewise.
18738         * modules/unistr/u16-check: Likewise.
18739         * modules/unistr/u16-chr: Likewise.
18740         * modules/unistr/u16-cmp: Likewise.
18741         * modules/unistr/u16-cmp2: Likewise.
18742         * modules/unistr/u16-cpy: Likewise.
18743         * modules/unistr/u16-cpy-alloc: Likewise.
18744         * modules/unistr/u16-endswith: Likewise.
18745         * modules/unistr/u16-mblen: Likewise.
18746         * modules/unistr/u16-mbsnlen: Likewise.
18747         * modules/unistr/u16-mbtouc: Likewise.
18748         * modules/unistr/u16-mbtouc-unsafe: Likewise.
18749         * modules/unistr/u16-mbtoucr: Likewise.
18750         * modules/unistr/u16-move: Likewise.
18751         * modules/unistr/u16-next: Likewise.
18752         * modules/unistr/u16-prev: Likewise.
18753         * modules/unistr/u16-set: Likewise.
18754         * modules/unistr/u16-startswith: Likewise.
18755         * modules/unistr/u16-stpcpy: Likewise.
18756         * modules/unistr/u16-stpncpy: Likewise.
18757         * modules/unistr/u16-strcat: Likewise.
18758         * modules/unistr/u16-strchr: Likewise.
18759         * modules/unistr/u16-strcmp: Likewise.
18760         * modules/unistr/u16-strcoll: Likewise.
18761         * modules/unistr/u16-strcpy: Likewise.
18762         * modules/unistr/u16-strcspn: Likewise.
18763         * modules/unistr/u16-strdup: Likewise.
18764         * modules/unistr/u16-strlen: Likewise.
18765         * modules/unistr/u16-strmblen: Likewise.
18766         * modules/unistr/u16-strmbtouc: Likewise.
18767         * modules/unistr/u16-strncat: Likewise.
18768         * modules/unistr/u16-strncmp: Likewise.
18769         * modules/unistr/u16-strncpy: Likewise.
18770         * modules/unistr/u16-strnlen: Likewise.
18771         * modules/unistr/u16-strpbrk: Likewise.
18772         * modules/unistr/u16-strrchr: Likewise.
18773         * modules/unistr/u16-strspn: Likewise.
18774         * modules/unistr/u16-strstr: Likewise.
18775         * modules/unistr/u16-strtok: Likewise.
18776         * modules/unistr/u16-to-u32: Likewise.
18777         * modules/unistr/u16-to-u8: Likewise.
18778         * modules/unistr/u16-uctomb: Likewise.
18779         * modules/unistr/u32-check: Likewise.
18780         * modules/unistr/u32-chr: Likewise.
18781         * modules/unistr/u32-cmp: Likewise.
18782         * modules/unistr/u32-cmp2: Likewise.
18783         * modules/unistr/u32-cpy: Likewise.
18784         * modules/unistr/u32-cpy-alloc: Likewise.
18785         * modules/unistr/u32-endswith: Likewise.
18786         * modules/unistr/u32-mblen: Likewise.
18787         * modules/unistr/u32-mbsnlen: Likewise.
18788         * modules/unistr/u32-mbtouc: Likewise.
18789         * modules/unistr/u32-mbtouc-unsafe: Likewise.
18790         * modules/unistr/u32-mbtoucr: Likewise.
18791         * modules/unistr/u32-move: Likewise.
18792         * modules/unistr/u32-next: Likewise.
18793         * modules/unistr/u32-prev: Likewise.
18794         * modules/unistr/u32-set: Likewise.
18795         * modules/unistr/u32-startswith: Likewise.
18796         * modules/unistr/u32-stpcpy: Likewise.
18797         * modules/unistr/u32-stpncpy: Likewise.
18798         * modules/unistr/u32-strcat: Likewise.
18799         * modules/unistr/u32-strchr: Likewise.
18800         * modules/unistr/u32-strcmp: Likewise.
18801         * modules/unistr/u32-strcoll: Likewise.
18802         * modules/unistr/u32-strcpy: Likewise.
18803         * modules/unistr/u32-strcspn: Likewise.
18804         * modules/unistr/u32-strdup: Likewise.
18805         * modules/unistr/u32-strlen: Likewise.
18806         * modules/unistr/u32-strmblen: Likewise.
18807         * modules/unistr/u32-strmbtouc: Likewise.
18808         * modules/unistr/u32-strncat: Likewise.
18809         * modules/unistr/u32-strncmp: Likewise.
18810         * modules/unistr/u32-strncpy: Likewise.
18811         * modules/unistr/u32-strnlen: Likewise.
18812         * modules/unistr/u32-strpbrk: Likewise.
18813         * modules/unistr/u32-strrchr: Likewise.
18814         * modules/unistr/u32-strspn: Likewise.
18815         * modules/unistr/u32-strstr: Likewise.
18816         * modules/unistr/u32-strtok: Likewise.
18817         * modules/unistr/u32-to-u16: Likewise.
18818         * modules/unistr/u32-to-u8: Likewise.
18819         * modules/unistr/u32-uctomb: Likewise.
18820         * modules/uniwbrk/u8-wordbreaks: Likewise.
18821         * modules/uniwbrk/u16-wordbreaks: Likewise.
18822         * modules/uniwbrk/u32-wordbreaks: Likewise.
18823         * modules/uniwbrk/ulc-wordbreaks: Likewise.
18824         * modules/uniwbrk/wordbreak-property: Likewise.
18825         * modules/uniwidth/u8-strwidth: Likewise.
18826         * modules/uniwidth/u8-width: Likewise.
18827         * modules/uniwidth/u16-strwidth: Likewise.
18828         * modules/uniwidth/u16-width: Likewise.
18829         * modules/uniwidth/u32-strwidth: Likewise.
18830         * modules/uniwidth/u32-width: Likewise.
18831         * modules/uniwidth/width: Likewise.
18832         * modules/unicase/cased-tests (Makefile.am): Link all test programs
18833         with $(LIBUNISTRING).
18834         * modules/unicase/ignorable-tests: Likewise.
18835         * modules/unicase/locale-language-tests: Likewise.
18836         * modules/unicase/tolower-tests: Likewise.
18837         * modules/unicase/totitle-tests: Likewise.
18838         * modules/unicase/toupper-tests: Likewise.
18839         * modules/unicase/u8-casecmp-tests: Likewise.
18840         * modules/unicase/u8-casecoll-tests: Likewise.
18841         * modules/unicase/u8-casefold-tests: Likewise.
18842         * modules/unicase/u8-is-cased-tests: Likewise.
18843         * modules/unicase/u8-is-casefolded-tests: Likewise.
18844         * modules/unicase/u8-is-lowercase-tests: Likewise.
18845         * modules/unicase/u8-is-titlecase-tests: Likewise.
18846         * modules/unicase/u8-is-uppercase-tests: Likewise.
18847         * modules/unicase/u8-tolower-tests: Likewise.
18848         * modules/unicase/u8-totitle-tests: Likewise.
18849         * modules/unicase/u8-toupper-tests: Likewise.
18850         * modules/unicase/u16-casecmp-tests: Likewise.
18851         * modules/unicase/u16-casecoll-tests: Likewise.
18852         * modules/unicase/u16-casefold-tests: Likewise.
18853         * modules/unicase/u16-is-cased-tests: Likewise.
18854         * modules/unicase/u16-is-casefolded-tests: Likewise.
18855         * modules/unicase/u16-is-lowercase-tests: Likewise.
18856         * modules/unicase/u16-is-titlecase-tests: Likewise.
18857         * modules/unicase/u16-is-uppercase-tests: Likewise.
18858         * modules/unicase/u16-tolower-tests: Likewise.
18859         * modules/unicase/u16-totitle-tests: Likewise.
18860         * modules/unicase/u16-toupper-tests: Likewise.
18861         * modules/unicase/u32-casecmp-tests: Likewise.
18862         * modules/unicase/u32-casecoll-tests: Likewise.
18863         * modules/unicase/u32-casefold-tests: Likewise.
18864         * modules/unicase/u32-is-cased-tests: Likewise.
18865         * modules/unicase/u32-is-casefolded-tests: Likewise.
18866         * modules/unicase/u32-is-lowercase-tests: Likewise.
18867         * modules/unicase/u32-is-titlecase-tests: Likewise.
18868         * modules/unicase/u32-is-uppercase-tests: Likewise.
18869         * modules/unicase/u32-tolower-tests: Likewise.
18870         * modules/unicase/u32-totitle-tests: Likewise.
18871         * modules/unicase/u32-toupper-tests: Likewise.
18872         * modules/unicase/ulc-casecmp-tests: Likewise.
18873         * modules/unicase/ulc-casecoll-tests: Likewise.
18874         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
18875         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
18876         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
18877         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
18878         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
18879         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
18880         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
18881         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
18882         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
18883         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
18884         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
18885         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
18886         * modules/unictype/bidicategory-byname-tests: Likewise.
18887         * modules/unictype/bidicategory-name-tests: Likewise.
18888         * modules/unictype/bidicategory-of-tests: Likewise.
18889         * modules/unictype/bidicategory-test-tests: Likewise.
18890         * modules/unictype/block-list-tests: Likewise.
18891         * modules/unictype/block-of-tests: Likewise.
18892         * modules/unictype/block-test-tests: Likewise.
18893         * modules/unictype/category-C-tests: Likewise.
18894         * modules/unictype/category-Cc-tests: Likewise.
18895         * modules/unictype/category-Cf-tests: Likewise.
18896         * modules/unictype/category-Cn-tests: Likewise.
18897         * modules/unictype/category-Co-tests: Likewise.
18898         * modules/unictype/category-Cs-tests: Likewise.
18899         * modules/unictype/category-L-tests: Likewise.
18900         * modules/unictype/category-Ll-tests: Likewise.
18901         * modules/unictype/category-Lm-tests: Likewise.
18902         * modules/unictype/category-Lo-tests: Likewise.
18903         * modules/unictype/category-Lt-tests: Likewise.
18904         * modules/unictype/category-Lu-tests: Likewise.
18905         * modules/unictype/category-M-tests: Likewise.
18906         * modules/unictype/category-Mc-tests: Likewise.
18907         * modules/unictype/category-Me-tests: Likewise.
18908         * modules/unictype/category-Mn-tests: Likewise.
18909         * modules/unictype/category-N-tests: Likewise.
18910         * modules/unictype/category-Nd-tests: Likewise.
18911         * modules/unictype/category-Nl-tests: Likewise.
18912         * modules/unictype/category-No-tests: Likewise.
18913         * modules/unictype/category-P-tests: Likewise.
18914         * modules/unictype/category-Pc-tests: Likewise.
18915         * modules/unictype/category-Pd-tests: Likewise.
18916         * modules/unictype/category-Pe-tests: Likewise.
18917         * modules/unictype/category-Pf-tests: Likewise.
18918         * modules/unictype/category-Pi-tests: Likewise.
18919         * modules/unictype/category-Po-tests: Likewise.
18920         * modules/unictype/category-Ps-tests: Likewise.
18921         * modules/unictype/category-S-tests: Likewise.
18922         * modules/unictype/category-Sc-tests: Likewise.
18923         * modules/unictype/category-Sk-tests: Likewise.
18924         * modules/unictype/category-Sm-tests: Likewise.
18925         * modules/unictype/category-So-tests: Likewise.
18926         * modules/unictype/category-Z-tests: Likewise.
18927         * modules/unictype/category-Zl-tests: Likewise.
18928         * modules/unictype/category-Zp-tests: Likewise.
18929         * modules/unictype/category-Zs-tests: Likewise.
18930         * modules/unictype/category-and-not-tests: Likewise.
18931         * modules/unictype/category-and-tests: Likewise.
18932         * modules/unictype/category-byname-tests: Likewise.
18933         * modules/unictype/category-name-tests: Likewise.
18934         * modules/unictype/category-none-tests: Likewise.
18935         * modules/unictype/category-of-tests: Likewise.
18936         * modules/unictype/category-or-tests: Likewise.
18937         * modules/unictype/category-test-withtable-tests: Likewise.
18938         * modules/unictype/combining-class-tests: Likewise.
18939         * modules/unictype/ctype-alnum-tests: Likewise.
18940         * modules/unictype/ctype-alpha-tests: Likewise.
18941         * modules/unictype/ctype-blank-tests: Likewise.
18942         * modules/unictype/ctype-cntrl-tests: Likewise.
18943         * modules/unictype/ctype-digit-tests: Likewise.
18944         * modules/unictype/ctype-graph-tests: Likewise.
18945         * modules/unictype/ctype-lower-tests: Likewise.
18946         * modules/unictype/ctype-print-tests: Likewise.
18947         * modules/unictype/ctype-punct-tests: Likewise.
18948         * modules/unictype/ctype-space-tests: Likewise.
18949         * modules/unictype/ctype-upper-tests: Likewise.
18950         * modules/unictype/ctype-xdigit-tests: Likewise.
18951         * modules/unictype/decimal-digit-tests: Likewise.
18952         * modules/unictype/digit-tests: Likewise.
18953         * modules/unictype/mirror-tests: Likewise.
18954         * modules/unictype/numeric-tests: Likewise.
18955         * modules/unictype/property-alphabetic-tests: Likewise.
18956         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
18957         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
18958         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
18959         * modules/unictype/property-bidi-block-separator-tests: Likewise.
18960         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
18961         * modules/unictype/property-bidi-common-separator-tests: Likewise.
18962         * modules/unictype/property-bidi-control-tests: Likewise.
18963         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
18964         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
18965         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
18966         * modules/unictype/property-bidi-european-digit-tests: Likewise.
18967         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
18968         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
18969         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
18970         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
18971         * modules/unictype/property-bidi-pdf-tests: Likewise.
18972         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
18973         * modules/unictype/property-bidi-whitespace-tests: Likewise.
18974         * modules/unictype/property-byname-tests: Likewise.
18975         * modules/unictype/property-combining-tests: Likewise.
18976         * modules/unictype/property-composite-tests: Likewise.
18977         * modules/unictype/property-currency-symbol-tests: Likewise.
18978         * modules/unictype/property-dash-tests: Likewise.
18979         * modules/unictype/property-decimal-digit-tests: Likewise.
18980         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
18981         * modules/unictype/property-deprecated-tests: Likewise.
18982         * modules/unictype/property-diacritic-tests: Likewise.
18983         * modules/unictype/property-extender-tests: Likewise.
18984         * modules/unictype/property-format-control-tests: Likewise.
18985         * modules/unictype/property-grapheme-base-tests: Likewise.
18986         * modules/unictype/property-grapheme-extend-tests: Likewise.
18987         * modules/unictype/property-grapheme-link-tests: Likewise.
18988         * modules/unictype/property-hex-digit-tests: Likewise.
18989         * modules/unictype/property-hyphen-tests: Likewise.
18990         * modules/unictype/property-id-continue-tests: Likewise.
18991         * modules/unictype/property-id-start-tests: Likewise.
18992         * modules/unictype/property-ideographic-tests: Likewise.
18993         * modules/unictype/property-ids-binary-operator-tests: Likewise.
18994         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
18995         * modules/unictype/property-ignorable-control-tests: Likewise.
18996         * modules/unictype/property-iso-control-tests: Likewise.
18997         * modules/unictype/property-join-control-tests: Likewise.
18998         * modules/unictype/property-left-of-pair-tests: Likewise.
18999         * modules/unictype/property-line-separator-tests: Likewise.
19000         * modules/unictype/property-logical-order-exception-tests: Likewise.
19001         * modules/unictype/property-lowercase-tests: Likewise.
19002         * modules/unictype/property-math-tests: Likewise.
19003         * modules/unictype/property-non-break-tests: Likewise.
19004         * modules/unictype/property-not-a-character-tests: Likewise.
19005         * modules/unictype/property-numeric-tests: Likewise.
19006         * modules/unictype/property-other-alphabetic-tests: Likewise.
19007         * modules/unictype/property-other-default-ignorable-code-point-tests:
19008         Likewise.
19009         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
19010         * modules/unictype/property-other-id-continue-tests: Likewise.
19011         * modules/unictype/property-other-id-start-tests: Likewise.
19012         * modules/unictype/property-other-lowercase-tests: Likewise.
19013         * modules/unictype/property-other-math-tests: Likewise.
19014         * modules/unictype/property-other-uppercase-tests: Likewise.
19015         * modules/unictype/property-paired-punctuation-tests: Likewise.
19016         * modules/unictype/property-paragraph-separator-tests: Likewise.
19017         * modules/unictype/property-pattern-syntax-tests: Likewise.
19018         * modules/unictype/property-pattern-white-space-tests: Likewise.
19019         * modules/unictype/property-private-use-tests: Likewise.
19020         * modules/unictype/property-punctuation-tests: Likewise.
19021         * modules/unictype/property-quotation-mark-tests: Likewise.
19022         * modules/unictype/property-radical-tests: Likewise.
19023         * modules/unictype/property-sentence-terminal-tests: Likewise.
19024         * modules/unictype/property-soft-dotted-tests: Likewise.
19025         * modules/unictype/property-space-tests: Likewise.
19026         * modules/unictype/property-terminal-punctuation-tests: Likewise.
19027         * modules/unictype/property-test-tests: Likewise.
19028         * modules/unictype/property-titlecase-tests: Likewise.
19029         * modules/unictype/property-unassigned-code-value-tests: Likewise.
19030         * modules/unictype/property-unified-ideograph-tests: Likewise.
19031         * modules/unictype/property-uppercase-tests: Likewise.
19032         * modules/unictype/property-variation-selector-tests: Likewise.
19033         * modules/unictype/property-white-space-tests: Likewise.
19034         * modules/unictype/property-xid-continue-tests: Likewise.
19035         * modules/unictype/property-xid-start-tests: Likewise.
19036         * modules/unictype/property-zero-width-tests: Likewise.
19037         * modules/unictype/scripts-tests: Likewise.
19038         * modules/unictype/syntax-c-ident-tests: Likewise.
19039         * modules/unictype/syntax-c-whitespace-tests: Likewise.
19040         * modules/unictype/syntax-java-ident-tests: Likewise.
19041         * modules/unictype/syntax-java-whitespace-tests: Likewise.
19042         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
19043         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
19044         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
19045         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
19046         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
19047         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
19048         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
19049         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
19050         * modules/uniname/uniname-tests: Likewise.
19051         * modules/uninorm/canonical-decomposition-tests: Likewise.
19052         * modules/uninorm/compat-decomposition-tests: Likewise.
19053         * modules/uninorm/composition-tests: Likewise.
19054         * modules/uninorm/decomposing-form-tests: Likewise.
19055         * modules/uninorm/decomposition-tests: Likewise.
19056         * modules/uninorm/filter-tests: Likewise.
19057         * modules/uninorm/nfc-tests: Likewise.
19058         * modules/uninorm/nfd-tests: Likewise.
19059         * modules/uninorm/nfkc-tests: Likewise.
19060         * modules/uninorm/nfkd-tests: Likewise.
19061         * modules/uninorm/u8-normcmp-tests: Likewise.
19062         * modules/uninorm/u8-normcoll-tests: Likewise.
19063         * modules/uninorm/u16-normcmp-tests: Likewise.
19064         * modules/uninorm/u16-normcoll-tests: Likewise.
19065         * modules/uninorm/u32-normcmp-tests: Likewise.
19066         * modules/uninorm/u32-normcoll-tests: Likewise.
19067         * modules/unistdio/u8-asnprintf-tests: Likewise.
19068         * modules/unistdio/u8-vasnprintf-tests: Likewise.
19069         * modules/unistdio/u8-vasprintf-tests: Likewise.
19070         * modules/unistdio/u8-vsnprintf-tests: Likewise.
19071         * modules/unistdio/u8-vsprintf-tests: Likewise.
19072         * modules/unistdio/u16-asnprintf-tests: Likewise.
19073         * modules/unistdio/u16-vasnprintf-tests: Likewise.
19074         * modules/unistdio/u16-vasprintf-tests: Likewise.
19075         * modules/unistdio/u16-vsnprintf-tests: Likewise.
19076         * modules/unistdio/u16-vsprintf-tests: Likewise.
19077         * modules/unistdio/u32-asnprintf-tests: Likewise.
19078         * modules/unistdio/u32-vasnprintf-tests: Likewise.
19079         * modules/unistdio/u32-vasprintf-tests: Likewise.
19080         * modules/unistdio/u32-vsnprintf-tests: Likewise.
19081         * modules/unistdio/u32-vsprintf-tests: Likewise.
19082         * modules/unistdio/ulc-asnprintf-tests: Likewise.
19083         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
19084         * modules/unistdio/ulc-vasprintf-tests: Likewise.
19085         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
19086         * modules/unistdio/ulc-vsprintf-tests: Likewise.
19087         * modules/unistr/u8-check-tests: Likewise.
19088         * modules/unistr/u8-chr-tests: Likewise.
19089         * modules/unistr/u8-cmp-tests: Likewise.
19090         * modules/unistr/u8-cmp2-tests: Likewise.
19091         * modules/unistr/u8-cpy-alloc-tests: Likewise.
19092         * modules/unistr/u8-cpy-tests: Likewise.
19093         * modules/unistr/u8-mblen-tests: Likewise.
19094         * modules/unistr/u8-mbsnlen-tests: Likewise.
19095         * modules/unistr/u8-mbtouc-tests: Likewise.
19096         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
19097         * modules/unistr/u8-mbtoucr-tests: Likewise.
19098         * modules/unistr/u8-move-tests: Likewise.
19099         * modules/unistr/u8-next-tests: Likewise.
19100         * modules/unistr/u8-prev-tests: Likewise.
19101         * modules/unistr/u8-set-tests: Likewise.
19102         * modules/unistr/u8-stpcpy-tests: Likewise.
19103         * modules/unistr/u8-stpncpy-tests: Likewise.
19104         * modules/unistr/u8-strcat-tests: Likewise.
19105         * modules/unistr/u8-strcmp-tests: Likewise.
19106         * modules/unistr/u8-strcoll-tests: Likewise.
19107         * modules/unistr/u8-strcpy-tests: Likewise.
19108         * modules/unistr/u8-strdup-tests: Likewise.
19109         * modules/unistr/u8-strlen-tests: Likewise.
19110         * modules/unistr/u8-strmblen-tests: Likewise.
19111         * modules/unistr/u8-strmbtouc-tests: Likewise.
19112         * modules/unistr/u8-strncat-tests: Likewise.
19113         * modules/unistr/u8-strncmp-tests: Likewise.
19114         * modules/unistr/u8-strncpy-tests: Likewise.
19115         * modules/unistr/u8-strnlen-tests: Likewise.
19116         * modules/unistr/u8-to-u16-tests: Likewise.
19117         * modules/unistr/u8-to-u32-tests: Likewise.
19118         * modules/unistr/u8-uctomb-tests: Likewise.
19119         * modules/unistr/u16-check-tests: Likewise.
19120         * modules/unistr/u16-chr-tests: Likewise.
19121         * modules/unistr/u16-cmp-tests: Likewise.
19122         * modules/unistr/u16-cmp2-tests: Likewise.
19123         * modules/unistr/u16-cpy-alloc-tests: Likewise.
19124         * modules/unistr/u16-cpy-tests: Likewise.
19125         * modules/unistr/u16-mblen-tests: Likewise.
19126         * modules/unistr/u16-mbsnlen-tests: Likewise.
19127         * modules/unistr/u16-mbtouc-tests: Likewise.
19128         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
19129         * modules/unistr/u16-mbtoucr-tests: Likewise.
19130         * modules/unistr/u16-move-tests: Likewise.
19131         * modules/unistr/u16-next-tests: Likewise.
19132         * modules/unistr/u16-prev-tests: Likewise.
19133         * modules/unistr/u16-set-tests: Likewise.
19134         * modules/unistr/u16-stpcpy-tests: Likewise.
19135         * modules/unistr/u16-stpncpy-tests: Likewise.
19136         * modules/unistr/u16-strcat-tests: Likewise.
19137         * modules/unistr/u16-strcmp-tests: Likewise.
19138         * modules/unistr/u16-strcoll-tests: Likewise.
19139         * modules/unistr/u16-strcpy-tests: Likewise.
19140         * modules/unistr/u16-strdup-tests: Likewise.
19141         * modules/unistr/u16-strlen-tests: Likewise.
19142         * modules/unistr/u16-strmblen-tests: Likewise.
19143         * modules/unistr/u16-strmbtouc-tests: Likewise.
19144         * modules/unistr/u16-strncat-tests: Likewise.
19145         * modules/unistr/u16-strncmp-tests: Likewise.
19146         * modules/unistr/u16-strncpy-tests: Likewise.
19147         * modules/unistr/u16-strnlen-tests: Likewise.
19148         * modules/unistr/u16-to-u32-tests: Likewise.
19149         * modules/unistr/u16-to-u8-tests: Likewise.
19150         * modules/unistr/u16-uctomb-tests: Likewise.
19151         * modules/unistr/u32-check-tests: Likewise.
19152         * modules/unistr/u32-chr-tests: Likewise.
19153         * modules/unistr/u32-cmp-tests: Likewise.
19154         * modules/unistr/u32-cmp2-tests: Likewise.
19155         * modules/unistr/u32-cpy-alloc-tests: Likewise.
19156         * modules/unistr/u32-cpy-tests: Likewise.
19157         * modules/unistr/u32-mblen-tests: Likewise.
19158         * modules/unistr/u32-mbsnlen-tests: Likewise.
19159         * modules/unistr/u32-mbtouc-tests: Likewise.
19160         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
19161         * modules/unistr/u32-mbtoucr-tests: Likewise.
19162         * modules/unistr/u32-move-tests: Likewise.
19163         * modules/unistr/u32-next-tests: Likewise.
19164         * modules/unistr/u32-prev-tests: Likewise.
19165         * modules/unistr/u32-set-tests: Likewise.
19166         * modules/unistr/u32-stpcpy-tests: Likewise.
19167         * modules/unistr/u32-stpncpy-tests: Likewise.
19168         * modules/unistr/u32-strcat-tests: Likewise.
19169         * modules/unistr/u32-strcmp-tests: Likewise.
19170         * modules/unistr/u32-strcoll-tests: Likewise.
19171         * modules/unistr/u32-strcpy-tests: Likewise.
19172         * modules/unistr/u32-strdup-tests: Likewise.
19173         * modules/unistr/u32-strlen-tests: Likewise.
19174         * modules/unistr/u32-strmblen-tests: Likewise.
19175         * modules/unistr/u32-strmbtouc-tests: Likewise.
19176         * modules/unistr/u32-strncat-tests: Likewise.
19177         * modules/unistr/u32-strncmp-tests: Likewise.
19178         * modules/unistr/u32-strncpy-tests: Likewise.
19179         * modules/unistr/u32-strnlen-tests: Likewise.
19180         * modules/unistr/u32-to-u16-tests: Likewise.
19181         * modules/unistr/u32-to-u8-tests: Likewise.
19182         * modules/unistr/u32-uctomb-tests: Likewise.
19183         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
19184         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
19185         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
19186         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
19187         * modules/uniwidth/u8-strwidth-tests: Likewise.
19188         * modules/uniwidth/u8-width-tests: Likewise.
19189         * modules/uniwidth/u16-strwidth-tests: Likewise.
19190         * modules/uniwidth/u16-width-tests: Likewise.
19191         * modules/uniwidth/u32-strwidth-tests: Likewise.
19192         * modules/uniwidth/u32-width-tests: Likewise.
19193         * modules/uniwidth/width-tests: Likewise.
19194
19195 2010-05-18  Richard Jones  <rjones@redhat.com>
19196
19197         doc: users.txt: list hivex
19198         * users.txt: Add hivex.
19199
19200 2010-05-18  Richard Jones  <rjones@redhat.com>
19201
19202         doc: users.txt: list febootstrap
19203         * users.txt: Add febootstrap.
19204
19205 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
19206
19207         bootstrap: fix an error when gnulib is not used as a git submodule
19208         * build-aux/bootstrap (gnulib_path): If its length is zero then
19209         assign "gnulib" to it.
19210         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
19211
19212 2010-05-16  Bruno Haible  <bruno@clisp.org>
19213
19214         Avoid autoconf warnings about AM_ICONV.
19215         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
19216         2.64.
19217
19218 2010-05-16  Bruno Haible  <bruno@clisp.org>
19219
19220         absolute-header: Make the macro usable in more situations.
19221         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
19222         from gl_ABSOLUTE_HEADER.
19223         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
19224
19225 2010-05-16  James Youngman  <jay@gnu.org>
19226
19227         doc: update users.txt
19228         * users.txt: Add CSSC.
19229
19230 2010-05-16  Jim Meyering  <meyering@redhat.com>
19231
19232         init.sh: fix an error in the previous change; add more comments
19233         * tests/init.sh: Compare exit code in loop against 9, not 2.
19234         Patch by Bruno Haible.
19235         Make the two tests more similar by adding an empty "then" clause.
19236         Add comments.
19237
19238         init.sh: avoid unnecessary shell re-exec
19239         * tests/init.sh: Improve the re-exec-required check to first test the
19240         current shell.  If it passes the test, do not search for a shell that
19241         does pass, and do not re-exec.  This test is particularly contorted to
19242         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
19243         of $(...) evokes a syntax error and causes immediate shell exit with
19244         status 2.  Bruno Haible reported that the re-exec made it impossible
19245         to single-step through any init.sh-using script.
19246
19247 2010-05-16  Bruno Haible  <bruno@clisp.org>
19248
19249         Fix collision between gnulib's and libintl's printf replacements.
19250         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
19251         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
19252         (printf): When using GNU C, map the __printf__ function to rpl_printf
19253         via __asm__. When not using GNU C, define rpl_printf instead of
19254         __printf__.
19255         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
19256         commit.
19257         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
19258         commit.
19259         * m4/asm-underscore.m4: New file.
19260         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
19261         * modules/stdio (Files): Add m4/asm-underscore.m4.
19262         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
19263         Reported by Ben Pfaff.
19264
19265 2010-05-16  Bruno Haible  <bruno@clisp.org>
19266
19267         verify: Avoid skipping the test on openSUSE 11.0.
19268         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
19269
19270 2010-05-13  Bruno Haible  <bruno@clisp.org>
19271
19272         Avoid useless warnings from G++.
19273         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
19274         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
19275         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
19276
19277 2010-05-11  Jim Meyering  <meyering@redhat.com>
19278
19279         maint.mk: tweak preceding change
19280         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
19281         regexps tighter by anchoring at EOL, and make the new group "shy"
19282         for slightly decreased overhead.
19283
19284 2010-05-11  Eric Blake  <eblake@redhat.com>
19285
19286         maint.mk: gnulib doesn't guarantee NSIG
19287         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
19288
19289 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19290
19291         test-pwrite.c: Remove unused variable declaration.
19292         * tests/test-pwrite.c (main): Remove read_buf declaration.
19293
19294         Remove useless test-pwrite.sh file.
19295         * tests/test-pwrite.sh: Delete file.
19296         * modules/pwrite-tests: Remove references.
19297         Reported by Bruno Haible.
19298
19299 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
19300
19301         init.sh: fix a typo
19302         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
19303
19304 2010-05-10  Jim Meyering  <meyering@redhat.com>
19305
19306         maint.mk: avoid using a temporary file in the always-defined-macros check
19307         * top/maint.mk (.re-defmac): Remove rule.
19308         (gl_trap_): Remove definition.
19309         (sc_prohibit_always-defined_macros): Rewrite not to create and
19310         depend on a temporary file.  Instead, depend on GNU grep's ability
19311         to read a list of regular expressions from stdin when given "-f -".
19312
19313 2010-05-09  Bruno Haible  <bruno@clisp.org>
19314
19315         Update to GNU gettext 0.18, part 1.
19316         * m4/gettext.m4: Update to GNU gettext 0.18.
19317         * m4/intl.m4: Likewise.
19318         * m4/po.m4: Likewise.
19319         * modules/gettext (Files): Add m4/fcntl-o.m4.
19320         (configure.ac): Require gettext infrastructure from version 0.18.
19321
19322 2010-05-09  Jim Meyering  <meyering@redhat.com>
19323
19324         init.sh: enable MALLOC_PERTURB_
19325         * tests/init.sh: Enable glibc's malloc-perturbing option.
19326
19327         maint.mk: improve sc_cross_check_PATH_usage_in_tests
19328         With my recent change in init.sh from the two-line form:
19329             -#   : ${srcdir=.}
19330             -#   . "$srcdir/init.sh"; path_prepend_ .
19331             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
19332         I noticed that using the one-line form would cause this test
19333         to fail with a false-positive, or to stop working altogether,
19334         depending on whether help-version changed or all the tests did.
19335         * top/maint.mk (_hv_regex): Remove this definition.
19336         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
19337         (_hv_regex_strong): Use a stronger regex to check for conformance.
19338         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
19339         Give a separate diagnostic for lack of conforming use.
19340
19341         maint.mk: prohibit definition of symbols defined by gnulib
19342         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
19343         definition of symbols defined by gnulib.
19344
19345 2010-05-09  Bruno Haible  <bruno@clisp.org>
19346
19347         acl: Avoid test failure on Cygwin-hosted mingw.
19348         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
19349
19350 2010-05-09  Bruno Haible  <bruno@clisp.org>
19351
19352         error: Use system's fcntl function.
19353         * lib/error.c (fcntl): Undefine.
19354
19355 2010-05-09  Jim Meyering  <meyering@redhat.com>
19356
19357         verify: adjust formatting to be more consistent
19358         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
19359         argument-list '('s, and after one comma.
19360
19361 2010-05-09  Bruno Haible  <bruno@clisp.org>
19362
19363         error: More reliable output on mingw.
19364         * lib/error.c: Include <windows.h>.
19365         (is_open): New function.
19366         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
19367         defined.
19368
19369 2010-05-09  Bruno Haible  <bruno@clisp.org>
19370
19371         vasnprintf: Fix syntax errors in libintl build on mingw.
19372         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
19373         pad_ourselves and prec_ourselves after use.
19374
19375 2010-05-08  Bruno Haible  <bruno@clisp.org>
19376
19377         * lib/config.charset: Update comments for Cygwin 1.7.
19378         * lib/localcharset.c: Likewise.
19379
19380 2010-05-07  Jim Meyering  <meyering@redhat.com>
19381
19382         init.sh: improve comments
19383         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
19384         . "${srcdir=.}/init.sh"; path_prepend_ .
19385         Add a note about path_prepend_ and the alternative of using
19386         TESTS_ENVIRONMENT.
19387
19388 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
19389
19390         exclude: Unescape hashed patterns in wildcard mode.
19391         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
19392         to the hash list.
19393         * tests/test-exclude8.sh: New test case.
19394         * modules/exclude-tests: Add new test.
19395
19396 2010-05-05  Eric Blake  <eblake@redhat.com>
19397
19398         verify: automate tests
19399         * modules/verify-tests: New module.
19400         * tests/test-verify.sh: New file.
19401         * tests/test-verify.c: Guard each negative test with a unique id.
19402         Also avoid warning about unused left hand of comma expressions.
19403
19404 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19405
19406         Further improvements to verify.h, suggested by Eric Blake.
19407         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
19408         the GL_* versions, to avoid collision with OpenGL.
19409         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
19410         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
19411         than testing merely whether it's defined.
19412
19413         Modify verify.h to pacify gcc -Wredundant_decls.
19414         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
19415         These use the prefix "GL_" since they're likely to be useful elsewhere.
19416         We may need to break them out into a different .h file.
19417         (__COUNTER__): Define to 0 if the compiler doesn't support it.
19418         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
19419         of verify_function__.
19420
19421 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19422
19423         Tests for module pwrite.
19424         * modules/pwrite-tests: New file.
19425         * tests/test-pwrite.sh: New file.
19426         * tests/test-pwrite.c: New file.
19427
19428         New module pwrite.
19429         * lib/unistd.in.h (pwrite): New declaration.
19430         * lib/pwrite.c: New file, from glibc with modifications.
19431         * m4/pwrite.m4: New file.
19432         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
19433         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
19434         REPLACE_PWRITE.
19435         * modules/pwrite: New file.
19436         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
19437         REPLACE_PWRITE.
19438         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
19439         * doc/posix-functions/pwrite.texi: Mention the new module.
19440
19441 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
19442
19443         pread: Update documentation.
19444         * doc/posix-functions/pread.texi: Mention the 'pread' module.
19445
19446 2010-05-04  Eric Blake  <eblake@redhat.com>
19447
19448         docs: update cygwin progress
19449         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
19450         this bug.
19451         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
19452         Added in cygwin 1.7.2.
19453         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
19454         Likewise.
19455         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
19456         Likewise.
19457         * doc/glibc-functions/dup3.texi (dup3): Likewise.
19458         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
19459         * doc/glibc-functions/accept4.texi (accept4): Likewise.
19460         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
19461         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
19462         Mention nproc module.
19463         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
19464         bug in cygwin 1.7.5 addition.
19465         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
19466         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
19467         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
19468         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
19469         1.7.5.
19470         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
19471         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
19472         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
19473         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
19474         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
19475         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
19476         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
19477         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
19478         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
19479         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
19480         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
19481         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
19482         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
19483         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
19484         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
19485         Likewise.
19486         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
19487         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
19488         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
19489         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
19490         Likewise.
19491         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
19492         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
19493         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
19494         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
19495         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
19496         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
19497         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
19498         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
19499         Likewise.
19500         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
19501         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
19502         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
19503         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
19504         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
19505         Likewise.
19506         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
19507         Likewise.
19508         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
19509         Likewise.
19510         * doc/glibc-functions/xdrrec_endofrecord.texi
19511         (xdrrec_endofrecord): Likewise.
19512         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
19513         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
19514         Likewise.
19515         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
19516         Likewise.
19517
19518 2010-05-04  Jim Meyering  <meyering@redhat.com>
19519
19520         gendocs.sh: make its "-s FILE" option more useful
19521         * build-aux/gendocs.sh: When honoring the -s FILE option, update
19522         $PACKAGE to reflect the probably-different basename of "FILE".
19523
19524 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
19525
19526         bootstrap: don't ignore download_po_files failure
19527         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
19528         failure.
19529
19530 2010-05-03  Jim Meyering  <meyering@redhat.com>
19531
19532         maint.mk: allow to pass options to gendocs.sh
19533         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
19534         (gendocs_options_): New overridable variable.
19535
19536         gnu-web-doc-update: don't ignore configure or build failure
19537         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
19538
19539         announce-gen: backslash-escape '@'s in --help output
19540         * build-aux/announce-gen: Fix syntax errors.
19541
19542         maint.mk, announce-gen: allow project-specific announcement mail headers
19543         * top/maint.mk (translation_project_): Define default.
19544         (announcement_Cc_, announcement_mail_headers_): Likewise.
19545         (announcement): Invoke announce-gen with new --mail-headers option.
19546         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
19547
19548         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
19549         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
19550         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
19551         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
19552         line in the "err2" output file when running "make check" in verbose
19553         mode (i.e., with set -x enabled).
19554
19555 2010-05-03  Bruno Haible  <bruno@clisp.org>
19556
19557         wctob: Fix for weird platforms.
19558         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
19559         argument value.
19560
19561 2010-05-03  Jim Meyering  <meyering@redhat.com>
19562
19563         maint.mk: prohibit unwarranted use of <strings.h>
19564         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
19565         strings.h in a file that does not also use strcasecmp, strncasecmp,
19566         ffs or ffsll.
19567
19568         maint.mk: remove obsolete comments
19569         * top/maint.mk: Remove stale, commented-out rules.
19570
19571 2010-05-02  Bruno Haible  <bruno@clisp.org>
19572
19573         wcwidth: Declare also when it's aliased.
19574         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
19575         macro.
19576
19577 2010-05-02  Bruno Haible  <bruno@clisp.org>
19578
19579         Fix regression from 2010-04-25.
19580         * gnulib-tool (func_modules_transitive_closure): Check the status of
19581         all modules, not only of the tests that are of the form foo-tests where
19582         foo is a module.
19583
19584 2010-05-02  Bruno Haible  <bruno@clisp.org>
19585
19586         wctob: Work around nasty Cygwin 1.7.2 bug.
19587         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
19588         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
19589
19590 2010-05-01  Bruno Haible  <bruno@clisp.org>
19591
19592         fpurge: Sharper test.
19593         * tests/test-fpurge.c (main): Add one more ftell check.
19594         * modules/fpurge-tests (Depends-on): Add ftell.
19595         Suggested by Eric Blake.
19596
19597 2010-05-01  Bruno Haible  <bruno@clisp.org>
19598
19599         ftello: Another test.
19600         * tests/test-ftello3.c: New file.
19601         * modules/ftello-tests (Files): Add it.
19602         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19603         MOSTLYCLEANFILES.
19604
19605         ftell: Another test.
19606         * tests/test-ftell3.c: New file.
19607         * modules/ftell-tests (Files): Add it.
19608         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
19609         MOSTLYCLEANFILES.
19610
19611 2010-05-01  Bruno Haible  <bruno@clisp.org>
19612
19613         ftell, ftello: Work around Solaris bug.
19614         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
19615         * lib/ftello.c: Include stdio-impl.h.
19616         (ftello): On Solaris, when _IOWRT is set, compute the result without
19617         looking at _IOREAD.
19618         * modules/ftello (Files): Add lib/stdio-impl.h.
19619         * doc/posix-functions/ftell.texi: Mention Solaris bug.
19620         * doc/posix-functions/ftello.texi: Likewise.
19621         Reported by Eric Blake.
19622
19623 2010-05-01  Bruno Haible  <bruno@clisp.org>
19624
19625         freading: Adapt to special meaning of _IOREAD flag on Solaris.
19626         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
19627         the _IOWRT flag is also set.
19628
19629 2010-05-01  Bruno Haible  <bruno@clisp.org>
19630
19631         Fix doc about a HP-UX stdio bug.
19632         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
19633         * doc/posix-functions/ftello.texi: Likewise.
19634
19635 2010-05-01  Bruno Haible  <bruno@clisp.org>
19636
19637         lseek test: Fix failure on Solaris.
19638         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
19639         output.
19640
19641 2010-04-30  Jim Meyering  <meyering@redhat.com>
19642
19643         bootstrap: don't ignore failure to generate po*/Makevars
19644         * build-aux/bootstrap (with_gettext): Don't ignore failure
19645         to create po/Makevars or runtime-po/Makevars.
19646
19647 2010-04-29  Eric Blake  <eblake@redhat.com>
19648
19649         headers: relax license to LGPLv2+
19650         * modules/fcntl-h (License): Relax license.
19651         * modules/getopt-posix (License): Likewise.
19652         * modules/locale (License): Likewise.
19653         * modules/math (License): Likewise.
19654         * modules/pty (License): Likewise.
19655         * modules/sched (License): Likewise.
19656         * modules/search (License): Likewise.
19657         * modules/spawn (License): Likewise.
19658         * modules/stdarg (License): Likewise.
19659         * modules/sysexits (License): Likewise.
19660
19661 2010-04-29  Jim Meyering  <meyering@redhat.com>
19662
19663         inttypes: relax license to LGPLv2+
19664         * modules/inttypes (License): Relax license.
19665
19666 2010-04-29  Simon Josefsson  <simon@josefsson.org>
19667
19668         * top/maint.mk (indent): Run twice to produce idempotent results.
19669
19670 2010-04-28  Bruno Haible  <bruno@clisp.org>
19671
19672         getdate: Generate getdate.c in the source directory.
19673         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
19674         MOSTLYCLEANFILES.
19675         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
19676
19677 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
19678
19679         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
19680         is not declared as a const *; avoid warnings in that case.
19681
19682 2010-04-28  Eric Blake  <eblake@redhat.com>
19683
19684         canonicalize-lgpl: avoid compiler warning
19685         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
19686         declaration' / 'extraneous semicolon' warning with some compilers.
19687         Reported by Andreas Gruenbacher.
19688
19689 2010-04-28  Jim Meyering  <meyering@redhat.com>
19690
19691         init.sh: ensure a more reliable exit status when exiting via trap
19692         * tests/init.sh (setup_): Don't rely on $? in signal handler.
19693         Inspired by patches from Dmitry V. Levin.
19694         Also trap on signal 3 (SIGQUIT).
19695
19696 2010-04-27  Bruno Haible  <bruno@clisp.org>
19697
19698         Update doc about utimes().
19699         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
19700         'utimens' module.
19701         Reported by Andreas Gruenbacher <agruen@suse.de>.
19702
19703 2010-04-27  Eric Blake  <eblake@redhat.com>
19704
19705         full-read, full-write: relax license
19706         * modules/full-read (License): Drop to LGPLv2+.
19707         * modules/full-write (License): Likewise.
19708         * modules/safe-read (License): Likewise.
19709         * modules/safe-write (License): Likewise.
19710
19711         pthread: mention library for linking
19712         * modules/pthread (Link): Mention $(LIB_PTHREAD).
19713
19714 2010-04-27  Jim Meyering  <meyering@redhat.com>
19715
19716         maint.mk: fix a bug introduced in last change
19717         * top/maint.mk (gl_assured_headers_): Now that all names are on
19718         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
19719         is not anchored to end of word, it should be adequate.
19720
19721         maint.mk: avoid side-effect in latest syntax-check
19722         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
19723         to run commands via $(shell...), and hence to incur cost only when
19724         the new rule is actually run.
19725
19726         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
19727         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
19728         and use that to create a regexp used to detect all #if HAVE_..._H uses.
19729         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
19730         (gl_assured_headers_, az_, AZ_): Define.
19731         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
19732
19733 2010-04-26  Jim Meyering  <jim@meyering.net>
19734             Bruno Haible  <bruno@clisp.org>
19735
19736         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
19737         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
19738         Prompted by an exchange with Gilles Espinasse.
19739
19740 2010-04-26  Jim Meyering  <meyering@redhat.com>
19741
19742         git-version-gen: aesthetic tweak
19743         * build-aux/git-version-gen: Use "$nl" rather than a literal,
19744         so that the command remains on a single line.
19745
19746 2010-04-26  Eric Blake  <eblake@redhat.com>
19747
19748         git-version-gen: allow use on EBCDIC hosts
19749         * build-aux/git-version-gen (dirty): Use literal rather than tying
19750         ourselves to ascii.
19751         Reported by Steve Goetze.
19752
19753 2010-04-25  Bruno Haible  <bruno@clisp.org>
19754
19755         netdb: Add support for GNULIB_POSIXCHECK.
19756         * lib/netdb.in.h: Include warn-on-use.h.
19757         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
19758         functions are used when GNULIB_POSIXCHECK is defined and the
19759         getaddrinfo module is not in use.
19760         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
19761         freeaddrinfo, gai_strerror, getnameinfo are declared.
19762         * modules/netdb (Depends-on): Add warn-on-use.
19763         (Makefile.am): Include warn-on-use.h in netdb.h.
19764
19765 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
19766
19767         build: avoid "make check" failure without .git/ directory
19768         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
19769         there is no .git/ directory.
19770
19771 2010-04-25  Bruno Haible  <bruno@clisp.org>
19772
19773         ptsname: Fix misuse of ttyname_r.
19774         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
19775         of errno.
19776
19777 2010-04-25  Bruno Haible  <bruno@clisp.org>
19778
19779         ttyname_r: Make it work on Solaris 10.
19780         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
19781         if the system function has the POSIX declaration. Test whether the
19782         function fails if the buffer is less than 128 bytes large.
19783         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
19784         system's ttyname_r function. Provide a reasonably large buffer.
19785         * modules/ttyname_r (Depends-on): Add extensions.
19786         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
19787
19788 2010-04-25  Bruno Haible  <bruno@clisp.org>
19789
19790         Use the 'extensions' module for some more functions on Solaris.
19791         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
19792         module.
19793         * doc/posix-functions/ctime_r.texi: Likewise.
19794         * doc/posix-functions/getgrgid_r.texi: Likewise.
19795         * doc/posix-functions/getgrnam_r.texi: Likewise.
19796         * doc/posix-functions/getpwnam_r.texi: Likewise.
19797         * doc/posix-functions/getpwuid_r.texi: Likewise.
19798         * doc/posix-functions/readdir_r.texi: Likewise.
19799         * doc/posix-functions/sigwait.texi: Likewise.
19800         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
19801         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
19802
19803 2010-04-25  Bruno Haible  <bruno@clisp.org>
19804
19805         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
19806         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
19807         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
19808         * lib/ttyname_r.c: Include <limits.h>.
19809         (ttyname_r): Define using the system's ttyname_r function, if it exists
19810         and not on Solaris.
19811         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
19812         set.
19813         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
19814         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
19815         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
19816         Reported by Simon Josefsson.
19817
19818 2010-04-25  Bruno Haible  <bruno@clisp.org>
19819
19820         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
19821         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
19822         * doc/posix-functions/ctime_r.texi: Likewise.
19823         * doc/posix-functions/getgrgid_r.texi: Likewise.
19824         * doc/posix-functions/getgrnam_r.texi: Likewise.
19825         * doc/posix-functions/getlogin_r.texi: Likewise.
19826         * doc/posix-functions/getpwnam_r.texi: Likewise.
19827         * doc/posix-functions/getpwuid_r.texi: Likewise.
19828         * doc/posix-functions/readdir_r.texi: Likewise.
19829         * doc/posix-functions/sigwait.texi: Likewise.
19830         * doc/posix-functions/ttyname_r.texi: Likewise.
19831         Reported by Simon Josefsson.
19832
19833 2010-04-25  Bruno Haible  <bruno@clisp.org>
19834
19835         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
19836         * gnulib-tool (func_usage): Document that --with-*-tests options apply
19837         also to --create-testdir.
19838         (func_acceptable): Don't consider the status of *-tests modules here.
19839         (func_modules_transitive_closure): Consider it here, before including a
19840         test module.
19841         (func_import, func_create_testdir): Set inc_all_direct_tests,
19842         inc_all_indirect_tests.
19843         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
19844         --create-testdir and --create-megatestdir.
19845
19846 2010-04-25  Bruno Haible  <bruno@clisp.org>
19847
19848         gnulib-tool: Add --without-*-tests options.
19849         * gnulib-tool (func_usage): Document the --without-*-tests options.
19850         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
19851         excl_unportable_tests): New variables.
19852         Fail if they are specified with --import or --update.
19853         (func_acceptable): Respect the excl_*_tests variables.
19854         (func_import): Set the excl_*_tests variables to empty.
19855
19856 2010-04-25  Simon Josefsson  <simon@josefsson.org>
19857             Bruno Haible  <bruno@clisp.org>
19858
19859         Work around a MacOS X 10.4 bug with openpty.
19860         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
19861         * tests/test-openpty.c (main): Close the master side explicitly.
19862
19863 2010-04-25  Bruno Haible  <bruno@clisp.org>
19864
19865         strnlen: Fix a C++ test error on MacOS X and Solaris.
19866         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
19867         the function is not declared.
19868         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
19869         Simon Josefsson.
19870
19871 2010-04-24  Bruno Haible  <bruno@clisp.org>
19872
19873         Avoid a gcc warning.
19874         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
19875         of correct type for %08lx directive.
19876         Reported by Eric Blake.
19877
19878 2010-04-24  Bruno Haible  <bruno@clisp.org>
19879
19880         vasnprintf: Correct errno value in case of out-of-memory.
19881         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
19882         or sprintf. Use the errno value from SNPRINTF or sprintf.
19883         Reported by Ian Beckwith <ianb@erislabs.net>.
19884
19885 2010-04-24  Bruno Haible  <bruno@clisp.org>
19886
19887         ansi-c++-opt: Find correct compiler when cross-compiling.
19888         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
19889         AC_CHECK_PROGS.
19890         Reported by Simon Josefsson.
19891
19892 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
19893
19894         vc-list-files: Add support for subversion
19895         * build-aux/vc-list-files: Use "svn list" to generate the list of
19896         files controlled by subversion.
19897
19898 2010-04-23  Jim Meyering  <meyering@redhat.com>
19899
19900         vc-list-files tests: convert to use init.sh
19901         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
19902         path_prepend_.
19903         Use Exit, not exit.
19904         Use skip_ rather than open coding it.
19905         Remove trap set-up and compare definitions.
19906         * tests/test-vc-list-files-git.sh: Likewise.
19907         * modules/vc-list-files-tests (Files): Add tests/init.sh.
19908
19909 2010-04-22  Simon Josefsson  <simon@josefsson.org>
19910
19911         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
19912         backup files.
19913
19914 2010-04-21  Simon Josefsson  <simon@josefsson.org>
19915
19916         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
19917
19918 2010-04-20  Eric Blake  <eblake@redhat.com>
19919
19920         tests: be robust to ignored SIGPIPE
19921         * tests/test-select-in.sh: Consume all output.
19922         * tests/test-lseek.sh: Check correct exit status, while avoiding
19923         EPIPE.
19924
19925 2010-04-20  Simon Josefsson  <simon@josefsson.org>
19926             Bruno Haible  <bruno@clisp.org>
19927
19928         visibility: Don't use -fvisibility if it leads to a warning.
19929         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
19930         yes, don't pretend that visibility works if it leads to a warning.
19931         Reported by Mike Gran <spk121@yahoo.com>.
19932
19933 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
19934
19935         * build-aux/bootstrap: Use "git -h" for testing for supported options
19936         instead of "git --help".  The short-form option only shows a summary,
19937         and doesn't layout the full man page.  Grep for the full option name
19938         in the summary, too.
19939
19940 2010-04-19  Bruno Haible  <bruno@clisp.org>
19941
19942         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
19943         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
19944         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
19945         mention of RELOCATABLE_STRIP.
19946         Reported by Sylvain Beucler <beuc@beuc.net>.
19947
19948 2010-04-19  Bruno Haible  <bruno@clisp.org>
19949
19950         * lib/diffseq.h: Fix typo in comment.
19951         Reported by Eric Blake.
19952
19953 2010-04-19  Bruno Haible  <bruno@clisp.org>
19954
19955         ioctl: Move autoconf macro to a .m4 file.
19956         * m4/ioctl.m4: New file, extracted from modules/ioctl.
19957         * modules/ioctl (Files): Add it.
19958         (configure.ac): Simply invoke gl_FUNC_IOCTL.
19959         Reported by Ian Beckwith <ianb@erislabs.net>.
19960
19961 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
19962             Bruno Haible  <bruno@clisp.org>
19963
19964         diffseq: Accommodate use-case with abstract arrays.
19965         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
19966         is not defined.
19967         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
19968         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
19969
19970 2010-04-18  Bruno Haible  <bruno@clisp.org>
19971
19972         * doc/posix-headers/stdbool.texi: More precise wording.
19973
19974 2010-04-17  Jim Meyering  <meyering@redhat.com>
19975
19976         maint.mk: use gnu-style indentation in an embedded perl script
19977         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
19978         Rename variable: s/two/last_two_bytes/
19979
19980 2010-04-16  Eric Blake  <eblake@redhat.com>
19981
19982         test-stdbool: skip test that fails with Solaris CC
19983         * tests/test-stdbool.c (f): Skip test that causes compilation
19984         error under buggy C++ compiler.
19985         * lib/stdbool.in.h: Document the limitation.
19986         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
19987
19988         setenv: allow compilation with C++
19989         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
19990         register keyword.
19991
19992         stdint: allow test to pass with C++
19993         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
19994
19995         getopt: allow compilation with C++
19996         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
19997         struct.
19998         * lib/getopt.c (_getopt_internal_r): Use correct type.
19999         Reported by Dagobert Michelson, via Joel E. Denny.
20000
20001 2010-04-16  Bruno Haible  <bruno@clisp.org>
20002
20003         Override netdb.h always.
20004         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
20005         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
20006         Reported by Ludovic Courtès <ludo@gnu.org>.
20007
20008 2010-04-15  Bruno Haible  <bruno@clisp.org>
20009
20010         openpty: Fix mistake from 2010-03-21.
20011         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
20012         Reported by Simon Josefsson.
20013
20014 2010-04-15  Eric Blake  <eblake@redhat.com>
20015
20016         test-forkpty: fix expected signature
20017         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
20018         Reported by Simon Josefsson.
20019
20020 2010-04-15  Jim Meyering  <meyering@redhat.com>
20021
20022         maint.mk: texinfo_suffix_re_: correct the default regexp
20023         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
20024
20025         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
20026         make it configurable via texinfo_suffix_re_.
20027
20028 2010-04-14  Eric Blake  <eblake@redhat.com>
20029
20030         strtok_r: relax license to LGPLv2+
20031         * modules/strtok_r (License): Relax license.
20032         Reported by Matthias Bolte.
20033
20034 2010-04-14  Simon Josefsson  <simon@josefsson.org>
20035
20036         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
20037         version 1.4.4 by default instead of requiring the libgcrypt
20038         version used during build.  This makes it possible to use the
20039         application with older but still binary compatible libgcrypt
20040         versions.
20041
20042 2010-04-13  Eric Blake  <eblake@redhat.com>
20043
20044         getopt-gnu: match recent glibc fixes and posix ruling
20045         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
20046         '+' handling, when requesting extensions.
20047         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
20048         'W;' handling.
20049         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
20050         * doc/posix-functions/getopt.texi (getopt): Document this.
20051         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20052         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20053         Likewise.
20054
20055         getopt: merge bug fixes from glibc
20056         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
20057         diagnostics.  Honor '+:' correctly.  Reject ';'.
20058
20059         getopt-posix: detect MacOS bug
20060         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
20061         optind when missing a required argument.
20062         * doc/posix-functions/getopt.texi (getopt): Document the bug.
20063         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
20064         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
20065         Likewise.
20066
20067         getopt-posix: avoid spurious failure on Solaris
20068         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
20069         an indicator that setting optind=1 is sufficient for reset.
20070
20071         getopt-posix: avoid spurious failure on FreeBSD
20072         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
20073         in POSIX mode, since the m4 test uses it.
20074
20075         gnulib-tool: silence warning on BSD sh
20076         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
20077
20078 2010-04-13  Jim Meyering  <meyering@redhat.com>
20079
20080         doc: users.txt: GNU patch now uses gnulib
20081         * users.txt: Add patch.
20082
20083 2010-04-12  Jim Meyering  <meyering@redhat.com>
20084
20085         maint.mk: generate more concise timing data for syntax-check rules
20086         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
20087         " done" from each line that reports a syntax-check test duration.
20088
20089 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
20090
20091         git-version-gen: use "git update-index..." rather than "git status"
20092         * build-aux/git-version-gen: Use git update-index --refresh, not
20093         "git status".  With some versions of git, "git status" would fail
20094         to update the index and result in an unwarranted "-dirty" suffix.
20095
20096 2010-04-11  Jim Meyering  <meyering@redhat.com>
20097
20098         openat: correct formatting (no semantic change)
20099         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
20100         Suggested by Bruno Haible.
20101
20102 2010-04-11  Bruno Haible  <bruno@clisp.org>
20103
20104         Stricter declaration checking in testdirs.
20105         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
20106         If for_tests is true, augment AM_CPPFLAGS to define
20107         GNULIB_STRICT_CHECKING.
20108         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
20109         GNULIB_STRICT_CHECKING is defined, verify that the function is
20110         declared.
20111
20112 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
20113             Bruno Haible  <bruno@clisp.org>
20114
20115         libunistring: Improve configure output.
20116         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
20117         Don't say "consider installing GNU libunistring" when checking again
20118         with libiconv.
20119
20120 2010-04-11  Bruno Haible  <bruno@clisp.org>
20121
20122         libunistring: Correct value of $LTLIBUNISTRING.
20123         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
20124         correct the value of $LTLIBUNISTRING.
20125
20126 2010-04-11  Bruno Haible  <bruno@clisp.org>
20127
20128         havelib: Add static libraries to LIBS in the right order.
20129         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
20130         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
20131
20132 2010-04-11  Bruno Haible  <bruno@clisp.org>
20133
20134         libunistring: Detect libunistring also when it depends on libiconv.
20135         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
20136         the second AC_LIB_HAVE_LINKFLAGS invocation.
20137
20138 2010-04-11  James Youngman  <jay@gnu.org>
20139
20140         close-stream: declare local scalars to be "const"
20141         * lib/close-stream.c (close_stream): Make boolean variables const
20142         to document the fact that we set but do not change them.
20143
20144 2010-04-11  Bruno Haible  <bruno@clisp.org>
20145
20146         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
20147
20148 2010-04-11  Jim Meyering  <meyering@redhat.com>
20149
20150         maint.mk: don't include dist-check.mk
20151         * top/maint.mk: Remove bogus include directive.
20152
20153         maint.mk: improve empty-line-at-EOF check
20154         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
20155         solution, rather than tail+Perl-based one.  The latter would read
20156         a few kilobytes from the end of each file, and did not handle empty
20157         files properly.
20158
20159         maint.mk: print the elapsed time for each syntax-check rule
20160         * top/maint.mk (sc_m_rules_): Save start time in a file.
20161         (sc_z_rules_): New rules: remove temp file and print elapsed time.
20162         (local-check): Interpose the .z rules
20163
20164 2010-04-11  Jim Meyering  <meyering@redhat.com>
20165
20166         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
20167         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
20168         empty file with one that ends in an empty line.
20169
20170 2010-04-10  Bruno Haible  <bruno@clisp.org>
20171
20172         mkdir: Make it work on mingw64.
20173         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
20174         * lib/mkdir.c: Update comment.
20175         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
20176
20177 2010-04-10  Bruno Haible  <bruno@clisp.org>
20178
20179         Don't override improved macro from newer autoconf.
20180         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
20181         autoconf >= 2.62.
20182         Reported by Joel E. Denny <jdenny@clemson.edu>.
20183
20184 2010-04-10  Jim Meyering  <meyering@redhat.com>
20185
20186         maint.mk: new syntax-check rule: prohibit empty lines at end of file
20187         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
20188
20189         maint.mk: correct a diagnostic
20190         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
20191         in diagnostic; now use $prohibit.
20192
20193 2010-04-10  Bruno Haible  <address@hidden>
20194
20195         fchownat: Fix a C++ test error on Solaris 8.
20196         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
20197         the function does not exist.
20198
20199 2010-04-10  Bruno Haible  <bruno@clisp.org>
20200
20201         vasnprintf: Add more tests.
20202         * tests/test-vasnprintf-posix.c: Include <errno.h>.
20203         (test_function): Test converting an invalid wide string.
20204
20205         vasnprintf: Correct handling of unconvertible wide string arguments.
20206         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
20207         VASNPRINTF.
20208         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
20209         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
20210         smaller than the expected maximum need for the directive. Set errno to
20211         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
20212         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
20213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
20214         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
20215         * modules/vasnprintf (Files): Add m4/printf.m4.
20216         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20217
20218 2010-04-10  Bruno Haible  <bruno@clisp.org>
20219
20220         vasnprintf: Fix crash in %ls directive.
20221         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
20222         string is passed as argument to %ls, with no precision and no width.
20223         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20224
20225 2010-04-10  Bruno Haible  <bruno@clisp.org>
20226
20227         vasnprintf: Fix multiple test failures on mingw.
20228         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
20229         _snprintf, or snwprintf, not _snwprintf.
20230
20231 2010-04-10  Bruno Haible  <bruno@clisp.org>
20232
20233         write: Fix a C++ test error on mingw.
20234         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
20235
20236 2010-04-10  Bruno Haible  <bruno@clisp.org>
20237
20238         vasnprintf test: Reduce code duplication.
20239         * tests/test-vasnprintf.c (test_function): New function, extracted from
20240         test_vasnprintf.
20241         (test_vasnprintf, test_asnprintf): Invoke it.
20242
20243 2010-04-10  Bruno Haible  <bruno@clisp.org>
20244
20245         strnlen: Fix warning in C++ mode on MacOS X.
20246         * lib/string.in.h (strnlen): Use the modern idiom.
20247         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
20248         defining strnlen as a macro already in <config.h>.
20249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20250         REPLACE_STRNLEN.
20251         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
20252         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20253
20254 2010-04-08  James Youngman  <jay@gnu.org>
20255
20256         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
20257         the example.
20258
20259 2010-04-09  Jim Meyering  <meyering@redhat.com>
20260
20261         maint.mk: print better diagnostic when there is no $(_hv_file)
20262         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
20263         announce that when $(_hv_file) (aka help-version) does not exist.
20264
20265         init.sh: run tr in the "C" locale to avoid multibyte interpretation
20266         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
20267         not try to interpret its random input bytes.  Jarno Rajahalme reported
20268         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
20269         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
20270         (mktempd_): Likewise, just in case.
20271
20272         ftruncate: add two years to projected module removal date: 2012
20273         * m4/ftruncate.m4: Adjust comments.
20274
20275         ftruncate: mark module as obsolete; even MinGW provides it, now
20276         * modules/ftruncate (Status): Obsolete.
20277         (Notice): Say that.
20278         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
20279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
20280
20281 2010-04-08  Bruno Haible  <bruno@clisp.org>
20282
20283         Fix side effects from tests-related modules.
20284         * modules/dprintf-posix (Comment): New section.
20285         * modules/fprintf-posix (Comment): Likewise.
20286         * modules/obstack-printf-posix (Comment): Likewise.
20287         * modules/printf-posix (Comment): Likewise.
20288         * modules/snprintf-posix (Comment): Likewise.
20289         * modules/sprintf-posix (Comment): Likewise.
20290         * modules/vasnprintf-posix (Comment): Likewise.
20291         * modules/vasprintf-posix (Comment): Likewise.
20292         * modules/vdprintf-posix (Comment): Likewise.
20293         * modules/vfprintf-posix (Comment): Likewise.
20294         * modules/vprintf-posix (Comment): Likewise.
20295         * modules/vsnprintf-posix (Comment): Likewise.
20296         * modules/vsprintf-posix (Comment): Likewise.
20297         * modules/xprintf-posix (Comment): Likewise.
20298         * modules/xvasprintf-posix (Comment): Likewise.
20299         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
20300         * modules/floorf-tests (Depends-on): Likewise.
20301         * modules/round-tests (Depends-on): Likewise.
20302         * modules/roundf-tests (Depends-on): Likewise.
20303         * modules/trunc-tests (Depends-on): Likewise.
20304         * modules/truncf-tests (Depends-on): Likewise.
20305         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
20306         'fprintf-posix' module is not present.
20307         * tests/test-floorf2.c (check): Likewise.
20308         * tests/test-trunc2.c (check): Likewise.
20309         * tests/test-truncf2.c (check): Likewise.
20310         * tests/test-round2.c (equal): Likewise.
20311         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
20312
20313 2010-04-07  Karl Berry  <karl@gnu.org>
20314
20315         * config/srclist.txt,
20316         * config/srclistvars.sh,
20317         * config/srclist-update: doc fixes.
20318
20319 2010-04-07  Jim Meyering  <meyering@redhat.com>
20320
20321         maint.mk: add a PATH crosschecking syntax-check rule
20322         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
20323         Useful if you use a test like the one in help-version (coreutils,
20324         diffutils, grep, gzip) that ensures $(VERSION) matches what is
20325         printed by prog --version.
20326
20327 2010-04-06  Bruno Haible  <bruno@clisp.org>
20328
20329         Fix link error on mingw.
20330         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
20331         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
20332
20333 2010-04-06  Bruno Haible  <bruno@clisp.org>
20334
20335         Assume rmdir exists.
20336         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
20337
20338 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
20339
20340         doc: update users.txt
20341         * users.txt: Add gcal.
20342
20343 2010-04-06  Jim Meyering  <meyering@redhat.com>
20344
20345         init.sh: simply unset TMPDIR rather than risking env -i
20346         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
20347         although it probably works fine on all Unix-based systems, some
20348         systems (Cygwin?) cannot tolerate a totally cleared environment.
20349         Suggestion from Eric Blake.
20350
20351 2010-04-06  Jim Meyering  <meyering@redhat.com>
20352
20353         init.sh: portability fix: use env's POSIX-specified -i option not -u
20354         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
20355         than unportable env -u.  Solaris 5.11's env lacks support for -u.
20356
20357 2010-04-05  Bruno Haible  <bruno@clisp.org>
20358
20359         btowc: Work around Cygwin 1.7.2 bug.
20360         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
20361         does not map NUL to 0.
20362         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
20363
20364 2010-04-05  Bruno Haible  <bruno@clisp.org>
20365
20366         Make the multithread modules work on Cygwin 1.7.2.
20367         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
20368         imported symbols can be declared weak, so that it returns "no" on
20369         Cygwin 1.7.2.
20370
20371 2010-04-05  Bruno Haible  <bruno@clisp.org>
20372
20373         Use the module 'strncat'.
20374         * modules/unistr/u8-strncat (Depends-on): Add strncat.
20375
20376         Tests for module 'strncat'.
20377         * modules/strncat-tests: New file.
20378         * tests/test-strncat.c: New file.
20379
20380         New module 'strncat'.
20381         * lib/string.in.h (strncat): New declaration.
20382         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
20383         * m4/strncat.m4: New file, based on m4/memchr.m4.
20384         * modules/strncat: New file.
20385         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
20386         is declared.
20387         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
20388         REPLACE_STRNCAT.
20389         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
20390         REPLACE_STRNCAT.
20391         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
20392         module.
20393         * tests/test-string-c++.cc: Check signature of strncat.
20394
20395 2010-04-05  Jim Meyering  <meyering@redhat.com>
20396
20397         xstrtoumax-tests: convert to use init.sh
20398         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
20399         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20400         Use Exit, not exit.
20401         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20402
20403         xstrtoimax-tests: convert to use init.sh
20404         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
20405         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20406         Use Exit, not exit.
20407         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20408
20409 2010-04-05  Bruno Haible  <bruno@clisp.org>
20410
20411         sys_socket: Avoid #define replacements in C++ mode.
20412         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
20413         warning to the function if possible, rather than #defining the symbol
20414         to a dysfunctional alias.
20415
20416 2010-04-05  Bruno Haible  <bruno@clisp.org>
20417
20418         fseeko: Fix C++ test error on mingw.
20419         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
20420         gl_FUNC_FSEEKO.
20421         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
20422         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
20423         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
20424         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
20425
20426 2010-04-05  Bruno Haible  <bruno@clisp.org>
20427
20428         duplocale: Improve test output.
20429         * tests/test-duplocale.c (main): Print reason for skipped test.
20430
20431 2010-04-05  Bruno Haible  <bruno@clisp.org>
20432
20433         Assume rmdir exists.
20434         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
20435         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
20436
20437 2010-04-05  Bruno Haible  <bruno@clisp.org>
20438
20439         Fix link error on Solaris 8 with cc.
20440         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
20441
20442 2010-04-05  Bruno Haible  <bruno@clisp.org>
20443
20444         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20445         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
20446
20447 2010-04-05  Bruno Haible  <bruno@clisp.org>
20448
20449         vasprintf: Update documentation.
20450         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
20451
20452 2010-04-05  Bruno Haible  <bruno@clisp.org>
20453
20454         ptsname: Improve test.
20455         * tests/test-ptsname.c (main): Also try the various master names of BSD
20456         systems.
20457
20458 2010-04-05  Bruno Haible  <bruno@clisp.org>
20459
20460         memchr: Avoid a possible C++ test error.
20461         * lib/string.in.h (memchr): Provide declaration if function is missing.
20462         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
20463         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
20464         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
20465         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
20466
20467 2010-04-05  Bruno Haible  <bruno@clisp.org>
20468
20469         strtok_r: Improve idiom.
20470         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
20471         AC_LIBOBJ is used.
20472
20473 2010-04-05  Bruno Haible  <bruno@clisp.org>
20474
20475         strdup: Improve idiom.
20476         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
20477         AC_LIBOBJ is used.
20478         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
20479         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
20480         when AC_LIBOBJ is used.
20481
20482 2010-04-05  Bruno Haible  <bruno@clisp.org>
20483
20484         mbsinit, mbrtowc, wcrtomb: Improve idioms.
20485         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
20486         don't set REPLACE_MBSINIT to 1.
20487         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
20488         don't set REPLACE_MBRTOWC to 1.
20489         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
20490         exist, don't set REPLACE_MBSRTOWCS to 1.
20491         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
20492         exist, don't set REPLACE_MBSNRTOWCS to 1.
20493         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
20494         don't set REPLACE_WCRTOMB to 1.
20495         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
20496         exist, don't set REPLACE_WCSRTOMBS to 1.
20497         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
20498         exist, don't set REPLACE_WCSNRTOMBS to 1.
20499
20500 2010-04-05  Bruno Haible  <bruno@clisp.org>
20501
20502         ldexpl: Improve idiom.
20503         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
20504         make sure to set HAVE_DECL_LDEXPL to 0.
20505
20506 2010-04-05  Jim Meyering  <meyering@redhat.com>
20507
20508         xstrtol-tests: convert to use init.sh
20509         * modules/xstrtol-tests (Files): Add tests/init.sh.
20510         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20511         Use Exit, not exit.
20512         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20513
20514         atexit-tests: convert to use init.sh
20515         * modules/atexit-tests (Files): Add tests/init.sh.
20516         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
20517         Use Exit, not exit.
20518         Remove uses of $EXEEXT and "./" to run a program in the current dir.
20519
20520         init.sh: fix typo
20521         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
20522
20523         init.sh: make it easier for a test script to write to the tty, ...
20524         when using automake's parallel-tests mode.
20525         * tests/init.sh (stderr_fileno_): Define overridable variable.
20526         (warn_): New function, to use it.
20527         (fail_, skip_, framework_failure_): Use warn_.
20528
20529 2010-04-04  Bruno Haible  <bruno@clisp.org>
20530
20531         btowc: Avoid warning.
20532         * lib/btowc.c: Include <stdlib.h>.
20533         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
20534
20535 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20536             Bruno Haible  <bruno@clisp.org>
20537
20538         wchar: Port to NetBSD 1.5.
20539         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
20540         * lib/wctype.in.h (WEOF): Likewise.
20541
20542 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
20543             Bruno Haible  <bruno@clisp.org>
20544
20545         Port extended stdio to NetBSD 1.5.
20546         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
20547         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
20548         older.
20549
20550 2010-04-04  Bruno Haible  <bruno@clisp.org>
20551
20552         string: Remove unused substitution.
20553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
20554         HAVE_DECL_STRERROR.
20555         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
20556
20557 2010-04-04  Bruno Haible  <bruno@clisp.org>
20558
20559         strtod: Avoid a possible C++ test error.
20560         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
20561         set REPLACE_STRTOD.
20562
20563 2010-04-04  Bruno Haible  <bruno@clisp.org>
20564
20565         strerror: Update documentation.
20566         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
20567
20568 2010-04-04  Bruno Haible  <bruno@clisp.org>
20569
20570         stdio: Fix some C++ test errors on Solaris 8 with GCC.
20571         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
20572         _GL_CXXALIAS_SYS_CAST.
20573
20574 2010-04-04  Bruno Haible  <bruno@clisp.org>
20575
20576         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
20577         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
20578         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
20579         REPLACE_FREXPL to 1.
20580         * doc/posix-functions/frexpl.texi: Update documentation.
20581
20582 2010-04-04  Bruno Haible  <bruno@clisp.org>
20583
20584         math: Fix some C++ test errors on Solaris 8 and Cygwin.
20585         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
20586
20587 2010-04-04  Bruno Haible  <bruno@clisp.org>
20588
20589         Implement nanosleep for native Windows.
20590         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
20591
20592 2010-04-04  Bruno Haible  <bruno@clisp.org>
20593
20594         math: Fix some C++ test errors on Solaris 8.
20595         * lib/math.in.h (truncf, trunc): Use simpler idiom.
20596
20597 2010-04-04  Bruno Haible  <bruno@clisp.org>
20598
20599         math: Fix some C++ test errors on Cygwin.
20600         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
20601         truncl): Provide declaration if the system does not have it.
20602         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
20603         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
20604         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
20605         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
20606         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
20607         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
20608         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
20609         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
20610         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
20611         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
20612         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
20613         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
20614         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
20615         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
20616         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
20617         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
20618         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
20619         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20620         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20621         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
20622         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
20623         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
20624
20625 2010-04-04  Bruno Haible  <bruno@clisp.org>
20626
20627         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
20628         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
20629         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
20630         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20631         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
20632         * m4/isinf.m4 (gl_ISINF): Likewise.
20633         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
20634
20635 2010-04-04  Bruno Haible  <bruno@clisp.org>
20636
20637         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
20638         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
20639
20640 2010-04-04  Bruno Haible  <bruno@clisp.org>
20641
20642         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
20643         * modules/tmpfile (configure.ac): Update.
20644
20645         tmpfile: Fix C++ test error on mingw.
20646         * lib/stdio.in.h (tmpfile): New declaration.
20647         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
20648         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
20649         * modules/tmpfile (Depends-on): Add stdio.
20650         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
20651         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
20652         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
20653         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
20654         REPLACE_TMPFILE.
20655         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
20656
20657 2010-04-04  Bruno Haible  <bruno@clisp.org>
20658
20659         ioctl: Fix C++ test error on mingw.
20660         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
20661         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
20662         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
20663
20664 2010-04-03  Bruno Haible  <bruno@clisp.org>
20665
20666         wcwidth: Fix C++ test error on mingw.
20667         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
20668         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
20669         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
20670
20671 2010-04-03  Bruno Haible  <bruno@clisp.org>
20672
20673         nanosleep: Fix C++ test error on mingw.
20674         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
20675         * lib/time.in.h (nanosleep): Use modern idiom.
20676         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
20677         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
20678         REPLACE_NANOSLEEP to 1.
20679         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
20680         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
20681
20682 2010-04-03  Bruno Haible  <bruno@clisp.org>
20683
20684         strptime: Fix C++ test error on mingw.
20685         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
20686         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
20687         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
20688         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
20689         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
20690         not REPLACE_STRPTIME.
20691         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
20692         REPLACE_STRPTIME.
20693
20694 2010-04-03  Bruno Haible  <bruno@clisp.org>
20695
20696         timegm: Fix C++ test error on mingw.
20697         * lib/time.in.h (timegm): Use modern idiom.
20698         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
20699         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
20700         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
20701         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
20702
20703 2010-04-03  Bruno Haible  <bruno@clisp.org>
20704
20705         timegm: Assume declaration if function exists.
20706         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
20707         if it exists. Don't clobber ac_cv_func_timegm.
20708
20709 2010-04-03  Bruno Haible  <bruno@clisp.org>
20710
20711         time_r: Fix C++ test error on mingw.
20712         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
20713         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
20714         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
20715         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
20716         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
20717
20718 2010-04-03  Bruno Haible  <bruno@clisp.org>
20719
20720         time_r: Minor updates.
20721         * modules/time_r (Description): Mention the provided functions.
20722         * lib/time_r.c: Don't include <string.h>.
20723         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
20724         * doc/posix-functions/localtime_r.texi: Likewise.
20725
20726 2010-04-03  Bruno Haible  <bruno@clisp.org>
20727
20728         time: Fix regression introduced on 2010-03-08.
20729         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
20730         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
20731
20732 2010-04-03  Jim Meyering  <meyering@redhat.com>
20733
20734         maint.mk: don't silently disable project-specific syntax-check rules
20735         * top/maint.mk (_prohibit_regexp): Define, to help people realize
20736         that they need to convert their project-specific syntax-check rules
20737         to use the new _sc_search_regexp.
20738
20739 2010-04-03  Bruno Haible  <bruno@clisp.org>
20740
20741         fchdir: Fix regression introduced on 2010-03-08.
20742         * lib/unistd.in.h (fchdir): Fix declaration.
20743         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
20744         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
20745         REPLACE_FCHDIR.
20746         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
20747         REPLACE_FCHDIR.
20748
20749 2010-04-03  Bruno Haible  <bruno@clisp.org>
20750
20751         getpagesize: Fix C++ test error on mingw.
20752         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
20753         system does not declare the function.
20754         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
20755         declared.
20756         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20757         HAVE_DECL_GETPAGESIZE.
20758         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
20759
20760 2010-04-03  Bruno Haible  <bruno@clisp.org>
20761
20762         stdio: Make C++ tests work on mingw.
20763         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
20764         does not declare the function.
20765
20766 2010-04-03  Bruno Haible  <bruno@clisp.org>
20767
20768         ftello: Fix C++ test error on mingw.
20769         * lib/stdio.in.h (ftello): Use modern idiom.
20770         * lib/ftello.c (ftello): Renamed from rpl_ftello.
20771         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
20772         is missing and that it needs to be replaced.
20773         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
20774         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
20775         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
20776
20777 2010-04-03  Bruno Haible  <bruno@clisp.org>
20778
20779         fseeko: Fix C++ test error on mingw.
20780         * lib/stdio.in.h (fseeko): Use modern idiom.
20781         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
20782         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
20783         is missing and that it needs to be replaced.
20784         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
20785         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
20786         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
20787
20788 2010-04-03  Bruno Haible  <bruno@clisp.org>
20789
20790         mkstemp: Fix C++ test error on mingw.
20791         * lib/stdlib.in.h (mkstemp): Use modern idiom.
20792         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
20793         function is missing and that it needs to be replaced.
20794         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
20795         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
20796
20797 2010-04-03  Bruno Haible  <bruno@clisp.org>
20798
20799         stpncpy: Fix C++ test error on mingw.
20800         * lib/string.in.h (stpncpy): Use modern idiom.
20801         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
20802         function is missing and that it needs to be replaced.
20803         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20804         REPLACE_STPNCPY.
20805         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
20806
20807 2010-04-03  Bruno Haible  <bruno@clisp.org>
20808
20809         sys_stat: Fix C++ test error on mingw.
20810         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
20811         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
20812
20813 2010-04-03  Bruno Haible  <bruno@clisp.org>
20814
20815         pty: Update doc.
20816         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
20817
20818 2010-04-03  Bruno Haible  <bruno@clisp.org>
20819
20820         unistd: Fix C++ test error on mingw.
20821         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
20822
20823 2010-04-03  Bruno Haible  <bruno@clisp.org>
20824
20825         Update doc regarding mingw.
20826         * doc/glibc-functions/openpty.texi: Update regarding mingw.
20827         * doc/glibc-functions/login_tty.texi: Likewise.
20828         * doc/glibc-functions/forkpty.texi: Likewise.
20829
20830 2010-04-03  Bruno Haible  <bruno@clisp.org>
20831
20832         stdlib: Avoid compilation failure of c-strtold on mingw.
20833         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
20834
20835 2010-04-03  Bruno Haible  <bruno@clisp.org>
20836
20837         locale: Make C++ tests work on Cygwin and mingw.
20838         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
20839         cannot provide the function.
20840         Reported by Simon Josefsson.
20841
20842 2010-04-03  Bruno Haible  <bruno@clisp.org>
20843
20844         localename: Port to MacOS X 10.6.
20845         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
20846         memory layout of the locales in MacOS X 10.6 as well.
20847         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
20848
20849 2010-04-02  Bruno Haible  <bruno@clisp.org>
20850
20851         gnulib-tool: Ensure that long-running tests are executed last.
20852         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
20853         running tests after the one for the other tests.
20854
20855 2010-04-02  Bruno Haible  <bruno@clisp.org>
20856
20857         gnulib-tool: Ensure the tests in the main directory are executed first.
20858         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
20859         start with the current directory.
20860
20861 2010-04-02  Bruno Haible  <bruno@clisp.org>
20862
20863         Tests for module 'havelib', moved here from GNU gettext.
20864         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
20865         modifications.
20866         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
20867         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
20868         with modifications.
20869         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
20870         modifications.
20871         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
20872         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
20873         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
20874         with modifications.
20875         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
20876         with modifications.
20877         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
20878         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
20879         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
20880         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
20881         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
20882         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
20883         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
20884         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
20885         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
20886         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
20887         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
20888         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
20889         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
20890         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
20891         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
20892         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
20893         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
20894         with modifications.
20895         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
20896         with modifications.
20897         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
20898         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
20899         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
20900         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
20901         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
20902         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
20903         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
20904         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
20905         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
20906         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
20907         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
20908         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
20909         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
20910         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
20911         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
20912         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
20913         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
20914         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
20915         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
20916         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
20917         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
20918         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
20919         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
20920         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
20921         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
20922         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
20923         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
20924         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
20925         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
20926         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
20927         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
20928         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
20929         * tests/havelib/rpathx/rpathx.c: New file, from
20930         gettext/autoconf-lib-link.
20931         * tests/havelib/rpathx/Makefile.am: New file, from
20932         gettext/autoconf-lib-link.
20933         * tests/havelib/rpathx/configure.ac: New file, from
20934         gettext/autoconf-lib-link with modifications.
20935         * tests/havelib/rpathy/rpathy.c: New file, from
20936         gettext/autoconf-lib-link.
20937         * tests/havelib/rpathy/Makefile.am: New file, from
20938         gettext/autoconf-lib-link.
20939         * tests/havelib/rpathy/configure.ac: New file, from
20940         gettext/autoconf-lib-link with modifications.
20941         * tests/havelib/rpathz/rpathz.c: New file, from
20942         gettext/autoconf-lib-link.
20943         * tests/havelib/rpathz/Makefile.am: New file, from
20944         gettext/autoconf-lib-link.
20945         * tests/havelib/rpathz/configure.ac: New file, from
20946         gettext/autoconf-lib-link with modifications.
20947         * tests/havelib/rpathlx/usex.c: New file, from
20948         gettext/autoconf-lib-link.
20949         * tests/havelib/rpathlx/Makefile.am: New file, from
20950         gettext/autoconf-lib-link.
20951         * tests/havelib/rpathlx/configure.ac: New file, from
20952         gettext/autoconf-lib-link with modifications.
20953         * tests/havelib/rpathly/usey.c: New file, from
20954         gettext/autoconf-lib-link.
20955         * tests/havelib/rpathly/Makefile.am: New file, from
20956         gettext/autoconf-lib-link.
20957         * tests/havelib/rpathly/configure.ac: New file, from
20958         gettext/autoconf-lib-link with modifications.
20959         * tests/havelib/rpathlz/usez.c: New file, from
20960         gettext/autoconf-lib-link.
20961         * tests/havelib/rpathlz/Makefile.am: New file, from
20962         gettext/autoconf-lib-link.
20963         * tests/havelib/rpathlz/configure.ac: New file, from
20964         gettext/autoconf-lib-link with modifications.
20965         * tests/havelib/rpathlyx/usey.c: New file, from
20966         gettext/autoconf-lib-link.
20967         * tests/havelib/rpathlyx/Makefile.am: New file, from
20968         gettext/autoconf-lib-link.
20969         * tests/havelib/rpathlyx/configure.ac: New file, from
20970         gettext/autoconf-lib-link with modifications.
20971         * tests/havelib/rpathlzyx/usez.c: New file, from
20972         gettext/autoconf-lib-link.
20973         * tests/havelib/rpathlzyx/Makefile.am: New file, from
20974         gettext/autoconf-lib-link.
20975         * tests/havelib/rpathlzyx/configure.ac: New file, from
20976         gettext/autoconf-lib-link with modifications.
20977         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
20978         with modifications.
20979
20980 2010-04-02  Bruno Haible  <bruno@clisp.org>
20981
20982         gnulib-tool: Create distributed built sources also for the tests.
20983         * gnulib-tool (func_create_testdir): Also generate distributed built
20984         sources in the tests directory.
20985
20986 2010-04-02  Bruno Haible  <bruno@clisp.org>
20987
20988         gnulib-tool: Obey user's environment variables.
20989         * gnulib-tool (func_create_testdir): When creating built sources,
20990         respect the environment variables for autoconf, automake, etc. given by
20991         the user.
20992
20993 2010-04-02  Bruno Haible  <bruno@clisp.org>
20994
20995         gnulib-tool: Provide the value of --m4-base to modules.
20996         * gnulib-tool (func_import, func_create_testdir): Emit a definition
20997         of gl_m4_base.
20998
20999 2010-04-02  Eric Blake  <eblake@redhat.com>
21000
21001         maint.mk: fix some fallout
21002         * NEWS: Document the incompatible change, and its effect on cfg.mk.
21003         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
21004
21005 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21006
21007         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
21008         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
21009         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
21010         (sc_cast_of_x_alloc_return_value): Likewise.
21011         (sc_cast_of_alloca_return_value): Likewise.
21012         (sc_space_tab): Likewise.
21013         (sc_prohibit_atoi_atof): Likewise.
21014         (sc_prohibit_magic_number_exit): Likewise.
21015         (sc_error_exit_success): Likewise.
21016         (sc_file_system): Likewise.
21017         (sc_prohibit_have_config_h): Likewise.
21018         (sc_require_config_h): Likewise.
21019         (sc_prohibit_HAVE_MBRTOWC): Likewise.
21020         (sc_obsolete_symbols): Likewise.
21021         (sc_changelog): Likewise.
21022         (sc_program_name): Likewise.
21023         (sc_the_the): Likewise.
21024         (sc_trailing_blank): Likewise.
21025         (sc_two_space_separator_in_usage): Likewise.
21026         (sc_useless_cpp_parens): Likewise.
21027         (sc_GPL_version): Likewise.
21028         (sc_GFDL_version): Likewise.
21029         (sc_texinfo_acronym): Likewise.
21030         (sc_prohibit_cvs_keyword): Likewise.
21031         (sc_prohibit_stat_st_blocks): Likewise.
21032         (sc_prohibit_S_IS_definition): Likewise.
21033         (sc_redundant_const): Likewise.
21034         (sc_makefile_TAB_only_indentation): Likewise.
21035         (sc_m4_quote_check): Likewise.
21036         (sc_makefile_path_separator_check): Likewise.
21037         (sc_copyright_check): Likewise.
21038         (sc_Wundef_boolean): Likewise.
21039         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
21040
21041         maint.mk: match 0 or more whitespace-before-function-call '('
21042         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
21043         that have zero or two-and-more spaces between the function name
21044         and the open parenthesis.
21045         (sc_error_message_warn_fatal): Likewise.
21046         (sc_error_message_uppercase): Likewise.
21047         (sc_error_message_period): Likewise.
21048
21049 2010-03-31  Eric Blake  <eblake@redhat.com>
21050
21051         maint.mk: check for [ as well as test
21052         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
21053         Based on a libvirt report by Matthias Bolte.
21054
21055         gnumakefile: don't squelch _version output
21056         * top/GNUmakefile (_version): Create one-shot dependency rather
21057         than using $(shell) when version must be regenerated.
21058         (_autoreconf): Run verbosely, by default.
21059
21060         sys_time: avoid compiler warnings
21061         * lib/sys_time.in.h (includes): Ensure gcc pragma is
21062         unconditional, fixing regression from 2010-03-29.
21063         Reported by Simon Josefsson.
21064
21065 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
21066
21067         maint.mk: s/_header_without_use/_sc_header_without_use/
21068         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
21069         (sc_prohibit_assert_without_use): Use the new name.
21070         (sc_prohibit_close_stream_without_use): Likewise.
21071         (sc_prohibit_getopt_without_use): Likewise.
21072         (sc_prohibit_quotearg_without_use): Likewise.
21073         (sc_prohibit_quote_without_use): Likewise.
21074         (sc_prohibit_long_options_without_use): Likewise.
21075         (sc_prohibit_inttostr_without_use): Likewise.
21076         (sc_prohibit_ignore_value_without_use): Likewise.
21077         (sc_prohibit_error_without_use): Likewise.
21078         (sc_prohibit_xalloc_without_use): Likewise.
21079         (sc_prohibit_hash_without_use): Likewise.
21080         (sc_prohibit_hash_pjw_without_use): Likewise.
21081         (sc_prohibit_safe_read_without_use): Likewise.
21082         (sc_prohibit_argmatch_without_use): Likewise.
21083         (sc_prohibit_canonicalize_without_use): Likewise.
21084         (sc_prohibit_root_dev_ino_without_use): Likewise.
21085         (sc_prohibit_openat_without_use): Likewise.
21086         (sc_prohibit_c_ctype_without_use): Likewise.
21087         (sc_prohibit_signal_without_use): Likewise.
21088         (sc_prohibit_intprops_without_use): Likewise.
21089
21090 2010-03-30  Eric Blake  <eblake@redhat.com>
21091
21092         maint: improve module indicators
21093         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
21094         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
21095         columns, and avoid extra macro expansion.
21096
21097         fdopendir: work around FreeBSD bug
21098         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
21099         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
21100         * modules/dirent (Makefile.am): Substitute it.
21101         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
21102         declaration.
21103         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
21104         fix.
21105         Reported by Christian Weisgerber <naddy@mips.inka.de>.
21106
21107 2010-03-29  Bruno Haible  <bruno@clisp.org>
21108
21109         Emit #pragma system_header after the inclusion guard, not before.
21110         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
21111         guard that spans the entire file, not before. This enables an
21112         optimization in GCC's preprocessor.
21113         * lib/ctype.in.h: Likewise.
21114         * lib/dirent.in.h: Likewise.
21115         * lib/errno.in.h: Likewise.
21116         * lib/float.in.h: Likewise.
21117         * lib/getopt.in.h: Likewise.
21118         * lib/iconv.in.h: Likewise.
21119         * lib/langinfo.in.h: Likewise.
21120         * lib/locale.in.h: Likewise.
21121         * lib/math.in.h: Likewise.
21122         * lib/netdb.in.h: Likewise.
21123         * lib/netinet_in.in.h: Likewise.
21124         * lib/pty.in.h: Likewise.
21125         * lib/sched.in.h: Likewise.
21126         * lib/se-selinux.in.h: Likewise.
21127         * lib/search.in.h: Likewise.
21128         * lib/spawn.in.h: Likewise.
21129         * lib/stdarg.in.h: Likewise.
21130         * lib/stdint.in.h: Likewise.
21131         * lib/string.in.h: Likewise.
21132         * lib/strings.in.h: Likewise.
21133         * lib/sys_file.in.h: Likewise.
21134         * lib/sys_ioctl.in.h: Likewise.
21135         * lib/sys_time.in.h: Likewise.
21136         * lib/sys_times.in.h: Likewise.
21137         * lib/sys_utsname.in.h: Likewise.
21138         * lib/sys_wait.in.h: Likewise.
21139         * lib/sysexits.in.h: Likewise.
21140         * lib/wctype.in.h: Likewise.
21141
21142 2010-03-28  James Youngman  <jay@gnu.org>
21143
21144         save-cwd: don't leak a file descriptor when the caller execs.
21145         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
21146         saved file descriptor.
21147         * modules/save-cwd (Depends-on): Depend on cloexec.
21148
21149 2010-03-29  Bruno Haible  <bruno@clisp.org>
21150
21151         Remove vestiges of fts-lgpl module.
21152         * lib/fts_.h: Assume GNULIB_FTS is 1.
21153         * lib/fts.c: Likewise.
21154         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21155
21156 2010-03-28  Bruno Haible  <bruno@clisp.org>
21157
21158         Fix definition of tests witness macro.
21159         * gnulib-tool (func_import): Fix definition of witness macro.
21160
21161 2010-03-28  Bruno Haible  <bruno@clisp.org>
21162
21163         Fix ioctl's protoype on glibc systems.
21164         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
21165         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
21166         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
21167         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
21168         signature. If not, arrange to replace the ioctl function.
21169         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
21170         REPLACE_IOCTL.
21171         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
21172         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
21173         Reported by Ludovic Courtès <ludo@gnu.org>.
21174
21175 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
21176
21177         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
21178         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
21179         made it so grep -r --include=GLOB* ... did not work.
21180
21181 2010-03-26  Jim Meyering  <meyering@redhat.com>
21182             Eric Blake  <eblake@redhat.com>
21183
21184         maint.mk: prohibit use of test's -o and -a operators
21185         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
21186
21187 2010-03-28  Bruno Haible  <bruno@clisp.org>
21188
21189         Remove unused GNULIB_XYZ macro definitions.
21190         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
21191         invocation.
21192
21193 2010-03-28  Bruno Haible  <bruno@clisp.org>
21194
21195         Mark privileged tests modules.
21196         * modules/idpriv-drop-tests (Status): New section.
21197         * modules/idpriv-droptemp-tests (Status): New section.
21198
21199 2010-03-28  Bruno Haible  <bruno@clisp.org>
21200
21201         Split C++ tests into separate tests modules.
21202         * modules/dirent-c++-tests: New file, extracted from
21203         modules/dirent-tests.
21204         * modules/dirent-tests: Depend on it.
21205         * modules/fcntl-h-c++-tests: New file, extracted from
21206         modules/fcntl-h-tests.
21207         * modules/fcntl-h-tests: Depend on it.
21208         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
21209         * modules/glob-tests: Depend on it.
21210         * modules/iconv-h-c++-tests: New file, extracted from
21211         modules/iconv-h-tests.
21212         * modules/iconv-h-tests: Depend on it.
21213         * modules/langinfo-c++-tests: New file, extracted from
21214         modules/langinfo-tests.
21215         * modules/langinfo-tests: Depend on it.
21216         * modules/locale-c++-tests: New file, extracted from
21217         modules/locale-tests.
21218         * modules/locale-tests: Depend on it.
21219         * modules/math-c++-tests: New file, extracted from modules/math-tests.
21220         * modules/math-tests: Depend on it.
21221         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
21222         * modules/pty-tests: Depend on it.
21223         * modules/search-c++-tests: New file, extracted from
21224         modules/search-tests.
21225         * modules/search-tests: Depend on it.
21226         * modules/signal-c++-tests: New file, extracted from
21227         modules/signal-tests.
21228         * modules/signal-tests: Depend on it.
21229         * modules/spawn-c++-tests: New file, extracted from
21230         modules/spawn-tests.
21231         * modules/spawn-tests: Depend on it.
21232         * modules/stdio-c++-tests: New file, extracted from
21233         modules/stdio-tests.
21234         * modules/stdio-tests: Depend on it.
21235         * modules/stdlib-c++-tests: New file, extracted from
21236         modules/stdlib-tests.
21237         * modules/stdlib-tests: Depend on it.
21238         * modules/string-c++-tests: New file, extracted from
21239         modules/string-tests.
21240         * modules/string-tests: Depend on it.
21241         * modules/sys_ioctl-c++-tests: New file, extracted from
21242         modules/sys_ioctl-tests.
21243         * modules/sys_ioctl-tests: Depend on it.
21244         * modules/sys_select-c++-tests: New file, extracted from
21245         modules/sys_select-tests.
21246         * modules/sys_select-tests: Depend on it.
21247         * modules/sys_socket-c++-tests: New file, extracted from
21248         modules/sys_socket-tests.
21249         * modules/sys_socket-tests: Depend on it.
21250         * modules/sys_stat-c++-tests: New file, extracted from
21251         modules/sys_stat-tests.
21252         * modules/sys_stat-tests: Depend on it.
21253         * modules/sys_time-c++-tests: New file, extracted from
21254         modules/sys_time-tests.
21255         * modules/sys_time-tests: Depend on it.
21256         * modules/time-c++-tests: New file, extracted from modules/time-tests.
21257         * modules/time-tests: Depend on it.
21258         * modules/unistd-c++-tests: New file, extracted from
21259         modules/unistd-tests.
21260         * modules/unistd-tests: Depend on it.
21261         * modules/wchar-c++-tests: New file, extracted from
21262         modules/wchar-tests.
21263         * modules/wchar-tests: Depend on it.
21264         * modules/wctype-c++-tests: New file, extracted from
21265         modules/wctype-tests.
21266         * modules/wctype-tests: Depend on it.
21267         Reported by Simon Josefsson.
21268
21269 2010-03-28  Bruno Haible  <bruno@clisp.org>
21270
21271         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
21272         * gnulib-tool (func_exists_module): New function, extracted from
21273         func_verify_module.
21274         (func_verify_module): Use it.
21275         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
21276         'foo' only if 'foo' exists.
21277         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
21278         module.
21279
21280 2010-03-28  Bruno Haible  <bruno@clisp.org>
21281
21282         gnulib-tool: Add support for special categories of tests.
21283         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
21284         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
21285         (func_usage): Document them.
21286         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
21287         inc_unportable_tests, inc_all_tests): New variables.
21288         (func_acceptable): Consider these variables.
21289         (func_modules_transitive_closure): Make it work when the 'Status' field
21290         consists of multiple words.
21291         (func_import): Store and restore the values of inc_cxx_tests,
21292         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
21293         inc_all_tests in gnulib-comp.m4.
21294         (func_create_testdir): Set inc_all_tests to true.
21295         * doc/gnulib.texi (Extra tests modules): New section.
21296         Suggested by Jim Meyering.
21297
21298 2010-03-28  Bruno Haible  <bruno@clisp.org>
21299
21300         ansi-c++-opt: Allow turning off the C++ build by default.
21301         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
21302         gl_CXX_CHOICE_DEFAULT_NO is defined.
21303         Requested by Eric Blake.
21304
21305 2010-03-28  Bruno Haible  <bruno@clisp.org>
21306
21307         unistd: Avoid #define replacements in C++ mode.
21308         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
21309         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
21310         setsockopt, shutdown, select): In C++, attach a warning to the function
21311         if possible, rather than #defining the symbol to a dysfunctional alias.
21312         Reported by John W. Eaton <jwe@gnu.org>.
21313
21314 2010-03-28  Bruno Haible  <bruno@clisp.org>
21315
21316         Fix link errors on mingw.
21317         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
21318         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
21319         $(LIBSOCKET).
21320         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
21321         $(LIBSOCKET).
21322
21323 2010-03-28  Bruno Haible  <bruno@clisp.org>
21324             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21325
21326         lib-ignore: Determine different options for different compilers.
21327         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
21328         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
21329         Add comments.
21330         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
21331         * NEWS: Mention the change.
21332
21333 2010-03-27  Bruno Haible  <bruno@clisp.org>
21334
21335         Remove unused GNULIB_XYZ macro definitions.
21336         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
21337         * modules/fseek (configure.ac): Likewise.
21338         * modules/ioctl (configure.ac): Likewise.
21339         * modules/open (configure.ac): Likewise.
21340         * modules/stdlib-safer (configure.ac): Likewise.
21341
21342 2010-03-27  Bruno Haible  <bruno@clisp.org>
21343
21344         Add a remark about certain modules.
21345         * modules/malloc (Comment): New section.
21346         * modules/realloc (Comment): Likewise.
21347         * modules/sigpipe (Comment): Likewise.
21348
21349 2010-03-27  Bruno Haible  <bruno@clisp.org>
21350
21351         Resolve conflict between the two kinds of module indicators.
21352         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
21353         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
21354         * modules/canonicalize (configure.ac): Invoke
21355         gl_MODULE_INDICATOR_FOR_TESTS.
21356         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
21357         GNULIB_XYZ.
21358         * tests/test-dirent-c++.cc: Likewise.
21359         * tests/test-dirent-safer.c: Likewise.
21360         * tests/test-dup2.c: Likewise.
21361         * tests/test-fchdir.c: Likewise.
21362         * tests/test-fcntl-h-c++.cc: Likewise.
21363         * tests/test-getopt.c: Likewise.
21364         * tests/test-getopt.h: Likewise.
21365         * tests/test-langinfo-c++.cc: Likewise.
21366         * tests/test-locale-c++.cc: Likewise.
21367         * tests/test-math-c++.cc: Likewise.
21368         * tests/test-pty-c++.cc: Likewise.
21369         * tests/test-search-c++.cc: Likewise.
21370         * tests/test-signal-c++.cc: Likewise.
21371         * tests/test-spawn-c++.cc: Likewise.
21372         * tests/test-stdio-c++.cc: Likewise.
21373         * tests/test-stdlib-c++.cc: Likewise.
21374         * tests/test-string-c++.cc: Likewise.
21375         * tests/test-sys_ioctl-c++.cc: Likewise.
21376         * tests/test-sys_select-c++.cc: Likewise.
21377         * tests/test-sys_socket-c++.cc: Likewise.
21378         * tests/test-sys_stat-c++.cc: Likewise.
21379         * tests/test-sys_time-c++.cc: Likewise.
21380         * tests/test-time-c++.cc: Likewise.
21381         * tests/test-unistd-c++.cc: Likewise.
21382         * tests/test-wchar-c++.cc: Likewise.
21383         * tests/uninorm/test-u8-nfc.c: Likewise.
21384         * tests/uninorm/test-u8-nfd.c: Likewise.
21385         * tests/uninorm/test-u8-nfkc.c: Likewise.
21386         * tests/uninorm/test-u8-nfkd.c: Likewise.
21387         * tests/uninorm/test-u16-nfc.c: Likewise.
21388         * tests/uninorm/test-u16-nfd.c: Likewise.
21389         * tests/uninorm/test-u16-nfkc.c: Likewise.
21390         * tests/uninorm/test-u16-nfkd.c: Likewise.
21391         * tests/uninorm/test-u32-nfc.c: Likewise.
21392         * tests/uninorm/test-u32-nfc-big.c: Likewise.
21393         * tests/uninorm/test-u32-nfd.c: Likewise.
21394         * tests/uninorm/test-u32-nfd-big.c: Likewise.
21395         * tests/uninorm/test-u32-nfkc.c: Likewise.
21396         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
21397         * tests/uninorm/test-u32-nfkd.c: Likewise.
21398         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
21399         * tests/uninorm/test-u32-normalize-big.c: Likewise.
21400
21401 2010-03-27  Bruno Haible  <bruno@clisp.org>
21402
21403         Distinguish two kinds of module indicators.
21404         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
21405         gl_MODULE_INDICATOR.
21406         (gl_MODULE_INDICATOR): New macro.
21407         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
21408         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
21409         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21410         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21411         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21412         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21413         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21414         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21415         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21416         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21417         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21418         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21420         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21421         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21422         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21423         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21424         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21425         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21426         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21427         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21428         * modules/cloexec (configure.ac): Likewise.
21429         * modules/getopt-gnu (configure.ac): Likewise.
21430         * modules/uninorm/u8-normalize (configure.ac): Likewise.
21431         * modules/uninorm/u16-normalize (configure.ac): Likewise.
21432         * modules/uninorm/u32-normalize (configure.ac): Likewise.
21433         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
21434
21435 2010-03-27  Bruno Haible  <bruno@clisp.org>
21436
21437         New module description field 'Comment'.
21438         * gnulib-tool: New option --extract-comment.
21439         (func_usage): Document it.
21440         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
21441         (func_get_comment): New function.
21442         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
21443
21444 2010-03-27  Bruno Haible  <bruno@clisp.org>
21445
21446         Addendum to 2010-02-07 commit.
21447         * gnulib-tool (func_usage): Document --extract-applicability option.
21448
21449 2010-03-27  Bruno Haible  <bruno@clisp.org>
21450
21451         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
21452         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
21453         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
21454         rather than link errors.
21455
21456 2010-03-27  Bruno Haible  <bruno@clisp.org>
21457
21458         Avoid side effects from tests-related modules on the compilation of lib.
21459         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
21460         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
21461         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
21462         parameter. Emit into AM_CPPFLAGS a definition of the designated C
21463         macro.
21464         (func_import): Define a witness macro. Assign it a value that depends
21465         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
21466         tests-related modules.
21467         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
21468         Reported by Jim Meyering.
21469
21470 2010-03-27  Bruno Haible  <bruno@clisp.org>
21471
21472         Factorize common .m4 code.
21473         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
21474         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
21475         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
21476         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
21477         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
21478         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
21479         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
21480         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
21481         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
21482         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
21483         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
21484         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
21485         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
21486         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
21487         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
21488         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
21489         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
21490         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
21491         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
21492         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
21493         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
21494         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
21495         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
21496         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
21497         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
21498         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
21499         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
21500         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
21501         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
21502         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
21503         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
21504         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
21505
21506 2010-03-27  Bruno Haible  <bruno@clisp.org>
21507
21508         Fix a compilation error on Cygwin with g++ >= 4.3.
21509         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
21510         if it is undefined or if we alias it to chmod.
21511         (lstat): Don't warn about the use of this function if it is undefined
21512         or if we alias it to stat.
21513         Reported by Simon Josefsson.
21514
21515 2010-03-27  Bruno Haible  <bruno@clisp.org>
21516
21517         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
21518         * modules/getlogin (configure.ac): Update.
21519
21520         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
21521         * modules/getlogin_r (configure.ac): Update.
21522
21523         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
21524         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
21525         * modules/inet_ntop (configure.ac): Update.
21526
21527         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
21528         * modules/inet_pton (configure.ac): Update.
21529
21530         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
21531         * modules/mbslen (configure.ac): Update.
21532
21533         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
21534         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
21535         * modules/forkpty (configure.ac): Update.
21536         * modules/openpty (configure.ac): Update.
21537
21538 2010-03-26  Simon Josefsson  <simon@josefsson.org>
21539
21540         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
21541         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
21542
21543 2010-03-25  Eric Blake  <eblake@redhat.com>
21544
21545         maint: use pragma consistently across replacement headers
21546         * lib/ctype.in.h (system_header): Hoist for consistent placement.
21547         * lib/dirent.in.h (system_header): Likewise.
21548         * lib/errno.in.h (system_header): Likewise.
21549         * lib/float.in.h (system_header): Likewise.
21550         * lib/getopt.in.h (system_header): Likewise.
21551         * lib/iconv.in.h (system_header): Likewise.
21552         * lib/inttypes.in.h (system_header): Likewise.
21553         * lib/langinfo.in.h (system_header): Likewise.
21554         * lib/locale.in.h (system_header): Likewise.
21555         * lib/math.in.h (system_header): Likewise.
21556         * lib/netdb.in.h (system_header): Likewise.
21557         * lib/netinet_in.in.h (system_header): Likewise.
21558         * lib/pty.in.h (system_header): Likewise.
21559         * lib/sched.in.h (system_header): Likewise.
21560         * lib/se-selinux.in.h (system_header): Likewise.
21561         * lib/search.in.h (system_header): Likewise.
21562         * lib/spawn.in.h (system_header): Likewise.
21563         * lib/stdarg.in.h (system_header): Likewise.
21564         * lib/stdint.in.h (system_header): Likewise.
21565         * lib/string.in.h (system_header): Likewise.
21566         * lib/strings.in.h (system_header): Likewise.
21567         * lib/sys_file.in.h (system_header): Likewise.
21568         * lib/sys_ioctl.in.h (system_header): Likewise.
21569         * lib/sys_socket.in.h (system_header): Likewise.
21570         * lib/sys_times.in.h (system_header): Likewise.
21571         * lib/sys_utsname.in.h (system_header): Likewise.
21572         * lib/sys_wait.in.h (system_header): Likewise.
21573         * lib/sysexits.in.h (system_header): Likewise.
21574         * lib/unistd.in.h (system_header): Likewise.
21575         * lib/wctype.in.h (system_header): Likewise.
21576
21577         arpa/inet: fix mingw compilation warning
21578         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
21579         Reported by Matthew Bolte.
21580
21581 2010-03-25  Bruno Haible  <bruno@clisp.org>
21582
21583         Avoid collision between gnulib wrapper and libintl wrapper.
21584         * lib/printf.c (printf): Don't define if a printf wrapper is already
21585         defined in intl/printf.c.
21586         Reported by Michel Boaventura <michel@michelboaventura.com>.
21587
21588 2010-03-25  Bruno Haible  <bruno@clisp.org>
21589
21590         Use ANSI C.
21591         * lib/readutmp.h (getutent): Provide ANSI C prototype.
21592
21593 2010-03-25  Bruno Haible  <bruno@clisp.org>
21594
21595         Minor formatting changes.
21596         * lib/acosl.c: Insert space before function argument list.
21597         * lib/argz.c: Likewise.
21598         * lib/asinl.c: Likewise.
21599         * lib/expl.c: Likewise.
21600         * lib/gen-uni-tables.c: Likewise.
21601         * lib/gettext.h: Likewise.
21602         * lib/glthread/lock.h: Likewise.
21603         * lib/tanl.c: Likewise.
21604         * lib/uniname/uniname.c: Likewise.
21605         * tests/test-idpriv-drop.c: Likewise.
21606         * tests/test-idpriv-droptemp.c: Likewise.
21607         * tests/test-lock.c: Likewise.
21608         * tests/test-tls.c: Likewise.
21609         * lib/argp-help.c: Insert space before function-like macro argument
21610         list.
21611         * lib/memcmp.c: Likewise.
21612         * tests/test-base64.c: Likewise.
21613         * lib/localename.c: Insert space before sizeof's argument list.
21614         * lib/safe-alloc.h: Likewise.
21615         * lib/file-set.h: Insert space before macro argument list.
21616         * tests/test-argp.c: Likewise.
21617         * lib/argp-namefrob.h: Insert space before function parameter list.
21618         * lib/getaddrinfo.c: Likewise.
21619         * lib/netdb.in.h: Likewise.
21620         * lib/parse-duration.h: Likewise.
21621         * lib/parse-duration.c: Likewise.
21622         * lib/poll.c: Likewise.
21623         * lib/select.c: Likewise.
21624         * lib/trim.h: Likewise.
21625         * tests/test-usleep.c: Likewise.
21626         * lib/ldexpl.c: Insert space before function parameter list and before
21627         function argument list.
21628         * lib/logl.c: Likewise.
21629         * lib/sqrtl.c: Likewise.
21630         * lib/trim.c: Likewise.
21631         * lib/cosl.c: Use GNU style indentation. Insert space before function
21632         argument list.
21633         * lib/sinl.c: Likewise.
21634         * lib/tsearch.c: Insert space after 'for'.
21635         Reported by Jim Meyering.
21636
21637 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
21638
21639         * maint.mk (sc_Wundef_boolean): Check for the presence of the
21640         config header before grepping, as it's not present before
21641         autoreconf/configure are run.  Reported by Simon Josefsson.
21642
21643 2010-03-23  Bruno Haible  <bruno@clisp.org>
21644
21645         pt_chown: Make it work with automake < 1.11.
21646         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
21647         Reported by Simon Josefsson.
21648
21649 2010-03-23  Bruno Haible  <bruno@clisp.org>
21650
21651         pt_chown: Don't depend on GPLed modules.
21652         * lib/pt_chown.c: Don't include idpriv.h.
21653         (main): Don't drop privileges.
21654         * modules/pt_chown (Depends-on): Remove idpriv-drop.
21655         Reported by Simon Josefsson.
21656
21657 2010-03-24  Simon Josefsson  <simon@josefsson.org>
21658
21659         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
21660         suggestions from karl@freefriends.org (Karl Berry).
21661
21662 2010-03-22  Eric Blake  <eblake@redhat.com>
21663
21664         gethostname: further tweaks
21665         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
21666         are overriding gethostname.
21667         Suggested by Bruno Haible.
21668
21669 2010-03-21  Bruno Haible  <bruno@clisp.org>
21670
21671         Fix comments.
21672         * lib/forkpty.c (rpl_forkpty): Fix comment.
21673         * lib/openpty.c (rpl_openpty): Likewise.
21674         Reported by Eric Blake.
21675
21676 2010-03-22  Eric Blake  <eblake@redhat.com>
21677
21678         gethostname: fix build on mingw
21679         * lib/unistd.in.h (includes): Work around fact that mingw
21680         <winsock2.h> re-includes <unistd.h>, by avoiding any
21681         redeclarations if we are being included by <winsock2.h>.
21682         Reported by Matthias Bolte.
21683
21684 2010-03-21  Bruno Haible  <bruno@clisp.org>
21685
21686         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21687         * lib/forkpty.c (forkpty): New replacement function, from glibc with
21688         modifications.
21689         * lib/pty.in.h (forkpty): Update declaration. Add comments.
21690         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
21691         provide the replacement.
21692         * modules/forkpty (Depends-on): Add openpty, login_tty.
21693         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
21694         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
21695         * doc/glibc-functions/forkpty.texi: More supported platforms.
21696         * config/srclist.txt: Add forkpty.c (commented).
21697
21698 2010-03-21  Bruno Haible  <bruno@clisp.org>
21699
21700         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
21701         (Makefile.am): Verify that PTY_LIB is defined.
21702
21703         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
21704
21705 2010-03-21  Bruno Haible  <bruno@clisp.org>
21706
21707         Tests for module 'login_tty'.
21708         * modules/login_tty-tests: New file.
21709         * tests/test-login_tty.c: New file.
21710
21711         New module 'login_tty'.
21712         * lib/login_tty.c: New file.
21713         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
21714         * modules/login_tty: New file.
21715         * doc/glibc-functions/login_tty.texi: Mention the new module.
21716
21717 2010-03-21  Bruno Haible  <bruno@clisp.org>
21718
21719         login_tty: Documentation.
21720         * doc/glibc-functions/login_tty.texi: New file.
21721         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
21722
21723 2010-03-21  Bruno Haible  <bruno@clisp.org>
21724
21725         pty: Consistent macro naming.
21726         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
21727         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
21728         * modules/pty (configure.ac): Update.
21729
21730 2010-03-21  Bruno Haible  <bruno@clisp.org>
21731
21732         Tests for openpty: Make stricter.
21733         * tests/test-openpty.c (main): Add test of canonical processing and
21734         erase.
21735         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
21736
21737         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
21738         * lib/openpty.c (openpty): New replacement function.
21739         * lib/pty.in.h: Include <termios.h>.
21740         (openpty): Update declaration. Add comments.
21741         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
21742         is not declared, arrange to provide the replacement. Check for _getpty
21743         and posix_openpt.
21744         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
21745         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
21746         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
21747         * modules/pty-tests (test_pty_c___LDADD): New variable.
21748         * doc/glibc-functions/openpty.texi: More supported platforms.
21749
21750 2010-03-21  Bruno Haible  <bruno@clisp.org>
21751
21752         setenv: Tweaks.
21753         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
21754         the test program.
21755         * doc/posix-functions/setenv.texi: Update platforms list.
21756
21757 2010-03-21  Bruno Haible  <bruno@clisp.org>
21758
21759         New module 'unlockpt'.
21760         * lib/unlockpt.c: New file, from glibc with modifications.
21761         * m4/unlockpt.m4: New file.
21762         * modules/unlockpt: New file.
21763         * lib/stdlib.in.h (unlockpt): New declaration.
21764         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
21765         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
21766         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
21767         HAVE_UNLOCKPT.
21768         * doc/posix-functions/unlockpt.texi: Mention the new module.
21769         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
21770         * config/srclist.txt: Add unlockpt.c (commented).
21771
21772 2010-03-21  Jim Meyering  <meyering@redhat.com>
21773
21774         maint.mk: prohibit inclusion of "intprops.h" without use
21775         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
21776
21777 2010-03-21  Bruno Haible  <bruno@clisp.org>
21778
21779         New module 'grantpt'.
21780         * lib/grantpt.c: New file, from glibc with modifications.
21781         * m4/grantpt.m4: New file.
21782         * modules/grantpt: New file.
21783         * lib/stdlib.in.h (grantpt): New declaration.
21784         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
21785         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
21786         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
21787         HAVE_GRANTPT.
21788         * doc/posix-functions/grantpt.texi: Mention the new module.
21789         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
21790         * config/srclist.txt: Add grantpt.c (commented).
21791
21792 2010-03-21  Bruno Haible  <bruno@clisp.org>
21793
21794         New module 'pt_chown'.
21795         * lib/pt_chown.c: New file, from glibc with modifications.
21796         * lib/pty-private.h: New file, from glibc with modifications.
21797         * modules/pt_chown: New file.
21798         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
21799
21800 2010-03-21  Bruno Haible  <bruno@clisp.org>
21801
21802         Tests for module 'ptsname'.
21803         * modules/ptsname-tests: New file.
21804         * tests/test-ptsname.c: New file.
21805
21806         New module 'ptsname'.
21807         * lib/ptsname.c: New file, from glibc with modifications.
21808         * m4/ptsname.m4: New file.
21809         * modules/ptsname: New file.
21810         * lib/stdlib.in.h (ptsname): New declaration.
21811         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
21812         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
21813         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
21814         HAVE_PTSNAME.
21815         * doc/posix-functions/ptsname.texi: Mention the new module.
21816         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
21817         * config/srclist.txt: Add ptsname.c (commented).
21818
21819 2010-03-21  Bruno Haible  <bruno@clisp.org>
21820
21821         Tests for module 'ttyname_r'.
21822         * modules/ttyname_r-tests: New file.
21823         * tests/test-ttyname_r.c: New file.
21824
21825         New module 'ttyname_r'.
21826         * lib/ttyname_r.c: New file.
21827         * m4/ttyname_r.m4: New file.
21828         * modules/ttyname_r: New file.
21829         * lib/unistd.in.h (ttyname_r): New declaration.
21830         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
21831         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
21832         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
21833         HAVE_TTYNAME_R.
21834         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
21835         * doc/posix-functions/ttyname_r.texi: Mention the new module.
21836
21837 2010-03-20  Bruno Haible  <bruno@clisp.org>
21838
21839         signal: Undefine macro definitions in C++ mode.
21840         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
21841         sigfillset): Undefine macro definitions from the system header in C++
21842         mode.
21843         Reported by John W. Eaton <jwe@gnu.org>.
21844
21845 2010-03-20  Bruno Haible  <bruno@clisp.org>
21846
21847         Ensure no #include statements inside extern "C" { ... }.
21848         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
21849         contain #include statements.
21850         * lib/time.in.h: Likewise.
21851
21852 2010-03-20  Bruno Haible  <bruno@clisp.org>
21853
21854         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
21855         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
21856         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
21857         Reported by John W. Eaton <jwe@gnu.org>.
21858
21859 2010-03-20  Bruno Haible  <bruno@clisp.org>
21860
21861         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
21862         Reported by Jim Meyering.
21863
21864 2010-03-20  Bruno Haible  <bruno@clisp.org>
21865
21866         pipe: Set errno upon failure.
21867         * lib/pipe.h: Specify that when -1 is returned, errno is set.
21868         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
21869         errno value in error message.
21870
21871 2010-03-20  Bruno Haible  <bruno@clisp.org>
21872             Jim Meyering  <meyering@redhat.com>
21873
21874         lchown: Avoid "unused variable" warning.
21875         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
21876
21877 2010-03-20  Bruno Haible  <bruno@clisp.org>
21878
21879         Work around unlink() bug on MacOS X 10.5.6.
21880         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
21881         attempting to unlink a parent directory.
21882         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
21883         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
21884         activate for the replacement function.
21885         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
21886
21887 2010-03-20  Bruno Haible  <bruno@clisp.org>
21888
21889         Fix link errors on Solaris 8.
21890         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
21891         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
21892
21893 2010-03-19  Jim Meyering  <meyering@redhat.com>
21894
21895         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
21896         The _LIBC implementation of build_range_exp correctly honors the
21897         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
21898         However, the non-_LIBC implementation would ignore that syntax-bit
21899         flag and return REG_ERANGE unconditionally.
21900         This change makes it honor that flag.
21901         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
21902         Make two pointer parameters "const".
21903         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
21904         (parse_bracket_exp): Update caller.
21905
21906         regex.m4: correct the reversed range endpoint ([b-a]) test
21907         * m4/regex.m4: When requiring that [b-a] evoke failure,
21908         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
21909         test pass once again for x86-based systems.
21910
21911 2010-03-19  Bruno Haible  <bruno@clisp.org>
21912
21913         scandir: Fix link error on Solaris 8.
21914         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
21915         macros.
21916
21917 2010-03-19  Bruno Haible  <bruno@clisp.org>
21918
21919         getusershell: Fix documentation.
21920         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
21921         module.
21922         * doc/glibc-functions/setusershell.texi: Likewise.
21923
21924         getusershell: Provide declaration, missing on Solaris 9.
21925         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
21926         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
21927         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
21928         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
21929         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
21930         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
21931         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
21932         HAVE_GETUSERSHELL.
21933         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
21934
21935 2010-03-19  Bruno Haible  <bruno@clisp.org>
21936
21937         wctype: Provide iswblank function.
21938         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
21939         exists and is fine.
21940         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
21941         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
21942         * tests/test-wctype.c (main): Re-enable the iswblank tests.
21943         * doc/posix-functions/iswblank.texi: Update.
21944
21945 2010-03-19  Bruno Haible  <bruno@clisp.org>
21946
21947         Tests of module 'pty' in C++ mode.
21948         * modules/pty-tests: New file.
21949         * tests/test-pty-c++.cc: New file.
21950         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
21951
21952 2010-03-19  Eric Blake  <eblake@redhat.com>
21953
21954         logb: fix documentation
21955         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
21956         1.5 declaration bug.
21957
21958         forkpty, openpty: prefer glibc's const-safe prototype
21959         * lib/forkpty.c (rpl_forkpty): New file.
21960         * lib/openpty.c (rpl_openpty): Likewise.
21961         * modules/forkpty (Files): Distribute it.
21962         * modules/openpty (Files): Likewise.
21963         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
21964         check...
21965         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
21966         replacement for for non-const BSD signature.
21967         * modules/pty (Makefile.am): Substitute witnesses.
21968         * lib/pty.in.h (forkpty, openpty): Declare replacements.
21969         * tests/test-forkpty.c: Update signature check.
21970         * tests/test-openpty.c: Likewise.
21971         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
21972         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21973
21974         forkpty, openpty: split functions into new modules
21975         * modules/pty (Makefile.am): Substitute new witnesses.
21976         (Libraries): Move library detection...
21977         * modules/forkpty: ...into new module.
21978         * modules/openpty: Another new module.
21979         * modules/pty-tests: Rename and split...
21980         * modules/forkpty-tests: ...to this...
21981         * modules/openpty-tests: ...and this.
21982         * tests/test-pty.c: Rename and split...
21983         * tests/test-forkpty.c: ...to this...
21984         * tests/test-openpty.c: ...and this.
21985         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
21986         (gl_PTY): Split library searching...
21987         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
21988         (gl_FORKPTY, gl_OPENPTY): New macros.
21989         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
21990         * NEWS: Mention the split.
21991         * MODULES.html.sh (Misc): Document the modules.
21992         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
21993         * doc/glibc-functions/openpty.texi (openpty): Likewise.
21994
21995         pty: improve replacement header
21996         * lib/pty.in.h: New file.
21997         * modules/pty (Files): Ship it.
21998         (Makefile.am): Always build replacement.
21999         * m4/pty.m4: Rename...
22000         * m4/pty_h.m4: ...to this.
22001         (gl_PTY): Modernize setting of witness macros; update check of
22002         forkpty to take proper advantage of cache.
22003         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
22004
22005         getopt: avoid compiler warning
22006         * lib/getopt.c (attribute_hidden): Remove unused macro.
22007
22008 2010-03-18  Bruno Haible  <bruno@clisp.org>
22009
22010         Fix link errors on Solaris 8.
22011         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
22012         * modules/search-tests (test_search_c___LDADD): Likewise.
22013         * modules/signal-tests (test_signal_c___LDADD): Likewise.
22014         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
22015         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
22016         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
22017         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
22018         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
22019         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
22020
22021 2010-03-18  Bruno Haible  <bruno@clisp.org>
22022
22023         Fix bug introduced on 2010-03-14.
22024         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
22025         (gl_SPAWN_H): Require it.
22026         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
22027         Reported by Simon Josefsson.
22028
22029 2010-03-18  Bruno Haible  <bruno@clisp.org>
22030
22031         Fix typo introduced on 2009-12-31.
22032         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
22033         posix_spawn_file_actions_adddup2.
22034
22035 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
22036         and Eric Blake  <eblake@redhat.com>
22037
22038         test-vc-list-files-git: make more robust
22039         * tests/test-vc-list-files-git.sh: Unset problematic environment
22040         variables.  Chain commands together.
22041
22042 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
22043
22044         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
22045         `AC_CHECK_DECL' invocation.
22046
22047 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
22048
22049         * lib/inttostr.c (inttostr): Make sure the invocation of verify
22050         appears before executable statements. Suggested by Petr Sumbera
22051         <Petr.Sumbera@Sun.COM>.
22052
22053 2010-03-14  Bruno Haible  <bruno@clisp.org>
22054
22055         * tests/test-flock.c (test_exclusive): Comment out a test that causes
22056         portability problems. Instead use a simpler test.
22057         (main): Check that invalid arguments are rejected only on Linux.
22058
22059 2010-03-14  Bruno Haible  <bruno@clisp.org>
22060
22061         Fix bug introduced on 2009-12-31.
22062         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
22063         gl_PREREQ_SYS_H_WINSOCK2 always.
22064         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
22065         SYS_SOCKET_H variable.
22066         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
22067         Update comments.
22068         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
22069         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
22070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22071         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22072         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
22073
22074 2010-03-14  Bruno Haible  <bruno@clisp.org>
22075
22076         Fix values returned by sinl, cosl.
22077         * lib/trigl.h: Add specification comments.
22078         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
22079         that combines the values from the precomputed table with the values of
22080         the Chebyshev polynomials.
22081
22082 2010-03-14  Bruno Haible  <bruno@clisp.org>
22083
22084         Fix compilation error when modules 'posix_spawn[p]' are not used.
22085         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
22086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
22087
22088 2010-03-14  Bruno Haible  <bruno@clisp.org>
22089
22090         Fix compilation error on mingw when module 'time_r' is not used.
22091         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
22092         is 1.
22093         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
22094         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22095         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
22096         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
22097
22098 2010-03-14  Bruno Haible  <bruno@clisp.org>
22099
22100         Fix compilation error with Sun C.
22101         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
22102         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
22103         instead of GCC specific ULONG_LONG_MAX.
22104         * lib/xstrtoll.c: Likewise.
22105         * lib/xstrtoull.c: Likewise.
22106
22107 2010-03-13  Bruno Haible  <bruno@clisp.org>
22108
22109         Allow the user to disable C++ code and tests.
22110         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
22111         (gl_PROG_ANSI_CXX): Require it.
22112
22113 2010-03-13  Bruno Haible  <bruno@clisp.org>
22114
22115         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
22116         cases.
22117
22118 2010-03-13  Bruno Haible  <bruno@clisp.org>
22119
22120         Test that gnulib does not break the standard C++ headers.
22121         * tests/test-locale-c++2.cc: New file.
22122         * modules/locale-tests (Files): Add it.
22123         (Makefile.am): Compile it for test-locale-c++.
22124         * tests/test-math-c++2.cc: New file.
22125         * modules/math-tests (Files): Add it.
22126         (Makefile.am): Compile it for test-math-c++.
22127         * tests/test-signal-c++2.cc: New file.
22128         * modules/signal-tests (Files): Add it.
22129         (Makefile.am): Compile it for test-signal-c++.
22130         * tests/test-stdio-c++2.cc: New file.
22131         * modules/stdio-tests (Files): Add it.
22132         (Makefile.am): Compile it for test-stdio-c++.
22133         * tests/test-stdlib-c++2.cc: New file.
22134         * modules/stdlib-tests (Files): Add it.
22135         (Makefile.am): Compile it for test-stdlib-c++.
22136         * tests/test-string-c++2.cc: New file.
22137         * modules/string-tests (Files): Add it.
22138         (Makefile.am): Compile it for test-string-c++.
22139         * tests/test-time-c++2.cc: New file.
22140         * modules/time-tests (Files): Add it.
22141         (Makefile.am): Compile it for test-time-c++.
22142         Reported by John W. Eaton <jwe@gnu.org>.
22143
22144 2010-03-13  Bruno Haible  <bruno@clisp.org>
22145
22146         * gnulib-tool (func_usage): Clarify which options are available for
22147         --create-testdir and --create-megatestdir.
22148
22149 2010-03-13  Bruno Haible  <bruno@clisp.org>
22150
22151         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
22152         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
22153         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
22154         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
22155         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
22156         when appropriate.
22157         Reported by Jim Meyering.
22158
22159 2010-03-12  Simon Josefsson  <simon@josefsson.org>
22160
22161         * gnulib-tool (func_import): Explain origin of code.
22162
22163 2010-03-12  Bruno Haible  <bruno@clisp.org>
22164
22165         Fix problem with automake's definition of CXXLINK.
22166         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
22167         Reported by Simon Josefsson and Ludovic Courtès.
22168
22169 2010-03-12  Bruno Haible  <bruno@clisp.org>
22170
22171         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
22172         stable releases.
22173
22174 2010-03-11  Bruno Haible  <bruno@clisp.org>
22175
22176         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
22177         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
22178         whether the system provides one variant or multiple variants of the
22179         function.
22180         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
22181         C++ compilers.
22182         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
22183         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
22184         Reported by Jim Meyering.
22185
22186 2010-03-09  Simon Josefsson  <simon@josefsson.org>
22187
22188         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
22189
22190 2010-03-08  Bruno Haible  <bruno@clisp.org>
22191
22192         gnulib-tool: Add support for --libtool in --create-testdir.
22193         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
22194         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
22195
22196 2010-03-08  Eric Blake  <eblake@redhat.com>
22197
22198         gnulib-tool.texi: mention possibility of git submodule
22199         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
22200         submodules.
22201         * doc/.gitignore: Ignore another generated file.
22202
22203 2010-03-08  Karl Berry  <karl@gnu.org>
22204
22205         * doc/gnulib-tool.texi (VCS Issues): Mention third option
22206         of committing gnulib files while skipping others.
22207
22208 2010-03-07  Bruno Haible  <bruno@clisp.org>
22209
22210         Tests of module 'wctype' in C++ mode.
22211         * tests/test-wctype-c++.cc: New file.
22212         * modules/wctype-tests (Files): Add it and tests/signature.h.
22213         (Depends-on): Add ansi-c++-opt.
22214         (Makefile.am): Arrange to compile and run test-wctype-c++.
22215
22216         Tests of module 'wchar' in C++ mode.
22217         * tests/test-wchar-c++.cc: New file.
22218         * modules/wchar-tests (Files): Add it and tests/signature.h.
22219         (Depends-on): Add ansi-c++-opt.
22220         (Makefile.am): Arrange to compile and run test-wchar-c++.
22221         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
22222         gl_MODULE_INDICATOR.
22223
22224         Tests of module 'unistd' in C++ mode.
22225         * tests/test-unistd-c++.cc: New file.
22226         * modules/unistd-tests (Files): Add it and tests/signature.h.
22227         (Depends-on): Add ansi-c++-opt.
22228         (Makefile.am): Arrange to compile and run test-unistd-c++.
22229         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
22230         gl_MODULE_INDICATOR.
22231
22232         Tests of module 'time' in C++ mode.
22233         * tests/test-time-c++.cc: New file.
22234         * modules/time-tests (Files): Add it and tests/signature.h.
22235         (Depends-on): Add ansi-c++-opt.
22236         (Makefile.am): Arrange to compile and run test-time-c++.
22237         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22238
22239         Tests of module 'sys_time' in C++ mode.
22240         * tests/test-sys_time-c++.cc: New file.
22241         * modules/sys_time-tests (Files): Add it and tests/signature.h.
22242         (Depends-on): Add ansi-c++-opt.
22243         (Makefile.am): Arrange to compile and run test-sys_time-c++.
22244         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
22245         gl_MODULE_INDICATOR.
22246
22247         Tests of module 'sys_stat' in C++ mode.
22248         * tests/test-sys_stat-c++.cc: New file.
22249         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
22250         (Depends-on): Add ansi-c++-opt.
22251         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
22252         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
22253         gl_MODULE_INDICATOR.
22254
22255         Tests of module 'sys_socket' in C++ mode.
22256         * tests/test-sys_socket-c++.cc: New file.
22257         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
22258         (Depends-on): Add ansi-c++-opt.
22259         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
22260         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
22261         gl_MODULE_INDICATOR.
22262
22263         Tests of module 'sys_select' in C++ mode.
22264         * tests/test-sys_select-c++.cc: New file.
22265         * modules/sys_select-tests (Files): Add it and tests/signature.h.
22266         (Depends-on): Add ansi-c++-opt.
22267         (Makefile.am): Arrange to compile and run test-sys_select-c++.
22268         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
22269         gl_MODULE_INDICATOR.
22270
22271         Tests of module 'sys_ioctl' in C++ mode.
22272         * tests/test-sys_ioctl-c++.cc: New file.
22273         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
22274         (Depends-on): Add ansi-c++-opt.
22275         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
22276         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
22277         gl_MODULE_INDICATOR.
22278
22279         Tests of module 'string' in C++ mode.
22280         * tests/test-string-c++.cc: New file.
22281         * modules/string-tests (Files): Add it and tests/signature.h.
22282         (Depends-on): Add ansi-c++-opt.
22283         (Makefile.am): Arrange to compile and run test-string-c++.
22284         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
22285         gl_MODULE_INDICATOR.
22286
22287         Tests of module 'stdlib' in C++ mode.
22288         * tests/test-stdlib-c++.cc: New file.
22289         * modules/stdlib-tests (Files): Add it and tests/signature.h.
22290         (Depends-on): Add ansi-c++-opt.
22291         (Makefile.am): Arrange to compile and run test-stdlib-c++.
22292         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
22293         gl_MODULE_INDICATOR.
22294
22295         Tests of module 'stdio' in C++ mode.
22296         * tests/test-stdio-c++.cc: New file.
22297         * modules/stdio-tests (Files): Add it and tests/signature.h.
22298         (Depends-on): Add ansi-c++-opt.
22299         (Makefile.am): Arrange to compile and run test-stdio-c++.
22300         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
22301         gl_MODULE_INDICATOR.
22302
22303         Tests of module 'spawn' in C++ mode.
22304         * tests/test-spawn-c++.cc: New file.
22305         * modules/spawn-tests (Files): Add it and tests/signature.h.
22306         (Depends-on): Add ansi-c++-opt.
22307         (Makefile.am): Arrange to compile and run test-spawn-c++.
22308         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
22309         gl_MODULE_INDICATOR.
22310
22311         Tests of module 'signal' in C++ mode.
22312         * tests/test-signal-c++.cc: New file.
22313         * modules/signal-tests (Files): Add it and tests/signature.h.
22314         (Depends-on): Add ansi-c++-opt.
22315         (Makefile.am): Arrange to compile and run test-signal-c++.
22316         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
22317         gl_MODULE_INDICATOR.
22318
22319         Tests of module 'search' in C++ mode.
22320         * tests/test-search-c++.cc: New file.
22321         * modules/search-tests (Files): Add it and tests/signature.h.
22322         (Depends-on): Add ansi-c++-opt.
22323         (Makefile.am): Arrange to compile and run test-search-c++.
22324         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
22325         gl_MODULE_INDICATOR.
22326
22327         Tests of module 'math' in C++ mode.
22328         * tests/test-math-c++.cc: New file.
22329         * modules/math-tests (Files): Add it and tests/signature.h.
22330         (Depends-on): Add ansi-c++-opt.
22331         (Makefile.am): Arrange to compile and run test-math-c++.
22332         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
22333
22334         Tests of module 'locale' in C++ mode.
22335         * tests/test-locale-c++.cc: New file.
22336         * modules/locale-tests (Files): Add it and tests/signature.h.
22337         (Depends-on): Add ansi-c++-opt.
22338         (Makefile.am): Arrange to compile and run test-locale-c++.
22339         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
22340         gl_MODULE_INDICATOR.
22341
22342         Tests of module 'langinfo' in C++ mode.
22343         * tests/test-langinfo-c++.cc: New file.
22344         * modules/langinfo-tests (Files): Add it and tests/signature.h.
22345         (Depends-on): Add ansi-c++-opt.
22346         (Makefile.am): Arrange to compile and run test-langinfo-c++.
22347         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
22348         gl_MODULE_INDICATOR.
22349
22350         Tests of module 'iconv-h' in C++ mode.
22351         * tests/test-iconv-h-c++.cc: New file.
22352         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
22353         (Depends-on): Add ansi-c++-opt.
22354         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
22355
22356         Tests of module 'glob' in C++ mode.
22357         * tests/test-glob-c++.cc: New file.
22358         * modules/glob-tests (Files): Add it.
22359         (Depends-on): Add ansi-c++-opt.
22360         (Makefile.am): Arrange to compile and run test-glob-c++.
22361
22362         Tests of module 'fcntl-h' in C++ mode.
22363         * tests/test-fcntl-h-c++.cc: New file.
22364         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
22365         (Depends-on): Add ansi-c++-opt.
22366         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
22367         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
22368         gl_MODULE_INDICATOR.
22369
22370         Tests of module 'dirent' in C++ mode.
22371         * tests/test-dirent-c++.cc: New file.
22372         * modules/dirent-tests (Files): Add it and tests/signature.h.
22373         (Depends-on): Add ansi-c++-opt.
22374         (Makefile.am): Arrange to compile and run test-dirent-c++.
22375         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
22376         gl_MODULE_INDICATOR.
22377
22378         New module 'ansi-c++-opt'.
22379         * modules/ansi-c++-opt: New file.
22380         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
22381
22382         Document C++ namespace mode.
22383         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
22384
22385         wctype: Avoid #define replacements in C++ mode.
22386         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
22387         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
22388         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
22389         In C++, define a namespaced alias symbol.
22390         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
22391         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
22392         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
22393         rule.
22394
22395         wchar: Avoid #define replacements in C++ mode.
22396         * lib/wchar.in.h: Include c++defs.h.
22397         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
22398         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
22399         symbol.
22400         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
22401         * modules/wchar (Depends-on): Add c++defs.
22402         (Makefile.am): Update wchar.h rule.
22403
22404         unistd: Avoid #define replacements in C++ mode.
22405         * lib/unistd.in.h: Include c++defs.h.
22406         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
22407         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
22408         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
22409         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
22410         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
22411         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
22412         symbol.
22413         (environ): Update.
22414         * modules/unistd (Depends-on): Add c++defs.
22415         (Makefile.am): Update unistd.h rule.
22416
22417         time: Avoid #define replacements in C++ mode.
22418         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
22419         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
22420         define a namespaced alias symbol.
22421         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
22422         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
22423         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
22424         * modules/time (Depends-on): Add c++defs, warn-on-use.
22425         (Makefile.am): Update time.h rule.
22426         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
22427         * modules/nanosleep (configure.ac): Likewise.
22428         * modules/strptime (configure.ac): Likewise.
22429         * modules/timegm (configure.ac): Likewise.
22430
22431         sys_time: Avoid #define replacements in C++ mode.
22432         * lib/sys_time.in.h: Include c++defs.h.
22433         (gettimeofday): In C++, define a namespaced alias symbol.
22434         * modules/sys_time (Depends-on): Add c++defs.
22435         (Makefile.am): Update sys/time.h rule.
22436
22437         sys_stat: Avoid #define replacements in C++ mode.
22438         * lib/sys_stat.in.h: Include c++defs.h.
22439         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
22440         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
22441         namespaced alias symbol.
22442         In C++, define a namespaced alias symbol.
22443         * modules/sys_stat (Depends-on): Add c++defs.
22444         (Makefile.am): Update sys/stat.h rule.
22445
22446         sys_socket: Avoid #define replacements in C++ mode.
22447         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
22448         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
22449         definitions also when the system has a <sys/socket.h>.
22450         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
22451         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
22452         In C++, define a namespaced alias symbol.
22453         * modules/sys_socket (Depends-on): Add c++defs.
22454         (Makefile.am): Update sys/socket.h rule.
22455
22456         sys_select: Avoid #define replacements in C++ mode.
22457         * lib/sys_select.in.h: Include c++defs.h. Enable the function
22458         definitions also when the system has a <sys/select.h>.
22459         (select): In C++, define a namespaced alias symbol.
22460         * modules/sys_select (Depends-on): Add c++defs.
22461         (Makefile.am): Update sys/select.h rule.
22462
22463         sys_ioctl: Avoid #define replacements in C++ mode.
22464         * lib/sys_ioctl.in.h: Include c++defs.h.
22465         (ioctl): In C++, define a namespaced alias symbol.
22466         * modules/sys_ioctl (Depends-on): Add c++defs.
22467         (Makefile.am): Update sys/ioctl.h rule.
22468
22469         string: Avoid #define replacements in C++ mode.
22470         * lib/string.in.h: Include c++defs.h.
22471         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
22472         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
22473         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
22474         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
22475         strsignal, strverscmp): In C++, define a namespaced alias symbol.
22476         * modules/string (Depends-on): Add c++defs.
22477         (Makefile.am): Update string.h rule.
22478
22479         stdlib: Avoid #define replacements in C++ mode.
22480         * lib/stdlib.in.h: Include c++defs.h.
22481         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
22482         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
22483         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
22484         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
22485         symbol.
22486         * modules/stdlib (Depends-on): Add c++defs.
22487         (Makefile.am): Update stdlib.h rule.
22488
22489         stdio: Avoid #define replacements in C++ mode.
22490         * lib/stdio.in.h: Include c++defs.h.
22491         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
22492         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
22493         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
22494         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
22495         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
22496         namespaced alias symbol.
22497         * modules/stdio (Depends-on): Add c++defs.
22498         (Makefile.am): Update stdio.h rule.
22499
22500         spawn: Avoid #define replacements in C++ mode.
22501         * lib/spawn.in.h: Include c++defs.h.
22502         (posix_spawn, posix_spawnp, posix_spawnattr_init,
22503         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
22504         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
22505         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
22506         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
22507         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
22508         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
22509         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
22510         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
22511         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
22512         In C++, define a namespaced alias symbol.
22513         * modules/spawn (Depends-on): Add c++defs.
22514         (Makefile.am): Update spawn.h rule.
22515
22516         signal: Avoid #define replacements in C++ mode.
22517         * lib/signal.in.h: Include c++defs.h.
22518         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
22519         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
22520         namespaced alias symbol.
22521         * modules/signal (Depends-on): Add c++defs.
22522         (Makefile.am): Update signal.h rule.
22523
22524         search: Avoid #define replacements in C++ mode.
22525         * lib/search.in.h: Include c++defs.h.
22526         (_gl_search_compar_fn, _gl_search_action_fn): New types.
22527         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
22528         symbol.
22529         * modules/search (Depends-on): Add c++defs.
22530         (Makefile.am): Update search.h rule.
22531
22532         math: Avoid #define replacements in C++ mode.
22533         * lib/math.in.h: Include c++defs.h.
22534         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
22535         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
22536         trunc, truncl): In C++, define a namespaced alias symbol.
22537         * modules/math (Depends-on): Add c++defs.
22538         (Makefile.am): Update math.h rule.
22539
22540         locale: Avoid #define replacements in C++ mode.
22541         * lib/locale.in.h: Include c++defs.h.
22542         (duplocale): In C++, define a namespaced alias symbol.
22543         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
22544         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
22545         * modules/locale (Depends-on): Add c++defs.
22546         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
22547
22548         langinfo: Avoid #define replacements in C++ mode.
22549         * lib/langinfo.in.h: Include c++defs.h.
22550         (nl_langinfo): In C++, define a namespaced alias symbol.
22551         * modules/langinfo (Depends-on): Add c++defs.
22552         (Makefile.am): Update langinfo.h rule.
22553
22554         iconv-h: Avoid #define replacements in C++ mode.
22555         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
22556         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
22557         symbol.
22558         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
22559         whenever iconv is present.
22560         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
22561         (Makefile.am): Update iconv.h rule.
22562
22563         glob: Avoid #define replacements in C++ mode.
22564         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
22565         (_gl_glob_errfunc_fn): New type.
22566         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
22567         symbol.
22568         * modules/glob (Depends-on): Add c++defs, warn-on-use.
22569         (Makefile.am): Update glob.h rule.
22570
22571         fcntl-h: Avoid #define replacements in C++ mode.
22572         * lib/fcntl.in.h: Include c++defs.h.
22573         (fcntl, open, openat): In C++, define a namespaced alias symbol.
22574         * modules/fcntl-h (Depends-on): Add c++defs.
22575         (Makefile.am): Update fcntl.h rule.
22576
22577         dirent: Avoid #define replacements in C++ mode.
22578         * lib/dirent.in.h: Include c++defs.h.
22579         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
22580         namespaced alias symbol.
22581         (dirfd): Update declaration.
22582         * modules/dirent (Depends-on): Add c++defs.
22583         (Makefile.am): Update dirent.h rule.
22584
22585         ctype: Make it usable in C++ code.
22586         * lib/ctype.in.h: Include c++defs.h.
22587         (isblank): Declare as extern "C".
22588         * modules/ctype (Depends-on): Add c++defs.
22589         (Makefile.am): Update ctype.h rule.
22590
22591         New module 'c++defs'.
22592         * modules/c++defs: New file.
22593         * build-aux/c++defs.h: New file.
22594         Reported by John W. Eaton <jwe@gnu.org>.
22595
22596 2010-03-07  Bruno Haible  <bruno@clisp.org>
22597
22598         logb: Provide missing declaration for Cygwin.
22599         * lib/math.in.h (logb): New declaration.
22600         * m4/logb.m4: New file.
22601         * modules/logb (Files): Add m4/logb.m4.
22602         (Depends-on): Add math.
22603         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
22604         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
22605         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
22606         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
22607         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
22608
22609 2010-03-07  Bruno Haible  <bruno@clisp.org>
22610
22611         Fix test-cond link error.
22612         * tests/test-cond.c: Include <stdio.h>.
22613
22614 2010-03-07  Bruno Haible  <bruno@clisp.org>
22615
22616         Fix test-dirent-safer link error.
22617         * modules/dirent-safer-tests (Makefile.am): Define
22618         test_dirent_safer_LDADD.
22619
22620 2010-03-07  Bruno Haible  <bruno@clisp.org>
22621
22622         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
22623         among default module list.
22624
22625 2010-03-07  Bruno Haible  <bruno@clisp.org>
22626
22627         Fix link error on platforms with GNU libiconv.
22628         * modules/unistr/u8-strcoll-tests (Makefile): Define
22629         test_u8_strcoll_LDADD.
22630         * modules/unistr/u16-strcoll-tests (Makefile): Define
22631         test_u16_strcoll_LDADD.
22632         * modules/unistr/u32-strcoll-tests (Makefile): Define
22633         test_u32_strcoll_LDADD.
22634
22635 2010-03-07  Bruno Haible  <bruno@clisp.org>
22636
22637         Use POSIX declarations for socket functions.
22638         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
22639         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
22640         rpl_sendto): Change declaration to match POSIX.
22641         * lib/connect.c (rpl_connect): Likewise.
22642         * lib/accept.c (rpl_accept): Likewise.
22643         * lib/bind.c (rpl_bind): Likewise.
22644         * lib/getpeername.c (rpl_getpeername): Likewise.
22645         * lib/getsockname.c (rpl_getsockname): Likewise.
22646         * lib/recv.c (rpl_recv): Likewise.
22647         * lib/send.c (rpl_send): Likewise.
22648         * lib/recvfrom.c (rpl_recvfrom): Likewise.
22649         * lib/sendto.c (rpl_sendto): Likewise.
22650
22651 2010-03-06  Bruno Haible  <bruno@clisp.org>
22652
22653         Clarify access, euidaccess, faccessat.
22654         * doc/posix-functions/faccessat.texi: Mention security problem under
22655         "Other problems", not "Portability problems".
22656         * doc/posix-functions/access.texi: Likewise. Mention a related security
22657         problem.
22658         * doc/glibc-functions/euidaccess.texi: Mention security problems.
22659         * lib/euidaccess.c: Add comments about platforms.
22660         * lib/unistd.in.h (access, euidaccess): Add warnings.
22661
22662 2010-03-07  Bruno Haible  <bruno@clisp.org>
22663
22664         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
22665         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
22666         (POSIX_SPAWN_SETSCHEDULER): Likewise.
22667         (POSIX_SPAWN_USEVFORK): Define in a way that works when
22668         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22669         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
22670         declare when POSIX_SPAWN_SETSCHEDULER is zero.
22671         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
22672         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
22673         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
22674         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
22675         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
22676         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
22677         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
22678         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
22679         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
22680         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
22681         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
22682         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
22683         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
22684         Likewise.
22685         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
22686         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
22687         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
22688         Likewise.
22689         * tests/test-spawn.c (main): Make it work when
22690         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
22691
22692 2010-03-07  Bruno Haible  <bruno@clisp.org>
22693
22694         Fix incorrect Makefile.am generation in German locale.
22695         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22696         Execute sed command with character range in C locale.
22697
22698 2010-03-06  Bruno Haible  <bruno@clisp.org>
22699
22700         Tests for module 'iconv-h'.
22701         * modules/iconv-h-tests: New file.
22702         * tests/test-iconv-h.c: New file.
22703
22704         New module 'iconv-h'.
22705         * modules/iconv-h: New file.
22706         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
22707         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
22708         (configure.ac): Remove gl_ICONV_H.
22709         (Makefile.am): Remove rule for iconv.h.
22710
22711 2010-03-06  Bruno Haible  <bruno@clisp.org>
22712
22713         More consistent naming of *.m4 files.
22714         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
22715         * modules/wctype (Files): Update.
22716
22717         More consistent naming of *.m4 files.
22718         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
22719         * modules/wchar (Files): Update.
22720
22721 2010-03-06  Jim Meyering  <meyering@redhat.com>
22722
22723         euidaccess: relax license to LGPLv2+
22724         * modules/euidaccess (License): Relax to LGPLv2+.
22725
22726 2010-03-06  Bruno Haible  <bruno@clisp.org>
22727
22728         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
22729         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
22730         (Makefile.am): Augment lib_SOURCES instead.
22731
22732 2010-03-04  Jim Meyering  <meyering@redhat.com>
22733
22734         utime: remove obsolete module
22735         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
22736         unnecessary for years, and has been marked as obsolete for 10 months.
22737         * modules/utime: Remove file.
22738         * lib/utime.c: Remove file.
22739         * m4/utime.m4: Remove file.
22740         * m4/utimes-null.m4: Remove file.
22741         * doc/posix-functions/utime.texi (utime): Remove reference to
22742         the module.  Move the sole "fixed by gnulib" item into the
22743         "problems not fixed by Gnulib" list.
22744         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
22745
22746 2010-03-05  Simon Josefsson  <simon@josefsson.org>
22747
22748         * modules/exit (License): Relax license to LGPLv2+.
22749         (Status): Mark as obsolete.
22750         * NEWS: Mention deprecated 'exit' module.
22751         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
22752         of now obsolete 'exit'.
22753
22754 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22755
22756         fts-lgpl: remove unused module
22757         * modules/fts-lgpl: Remove.
22758         * MODULES.html.sh (func_all_modules): Adjust.
22759         * check-module (find_included_lib_files): Adjust.
22760         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
22761
22762 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
22763
22764         copy-acl: enhance Solaris ACL error handling
22765         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
22766         * lib/set-mode-acl.c (qset_acl): Likewise.
22767
22768 2010-03-02  Bruno Haible  <bruno@clisp.org>
22769
22770         spawn: Don't override the system defined values on FreeBSD 8.
22771         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
22772         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
22773         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
22774         if HAVE_POSIX_SPAWN is 1.
22775         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
22776
22777 2010-03-01  Bruno Haible  <bruno@clisp.org>
22778
22779         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
22780         regarding Automake.
22781
22782 2010-02-25  Bruno Haible  <bruno@clisp.org>
22783
22784         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
22785         * gnulib-tool: Define 'echo' as a function only before the ksh alias
22786         setting, not afterwards.
22787         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
22788
22789 2010-02-24  Eric Blake  <eblake@redhat.com>
22790
22791         bootstrap, git-version-gen: use timestamp
22792         * build-aux/git-version-gen (scriptversion): Force UTC.
22793         * build-aux/bootstrap (scriptversion): New variable.
22794
22795         bootstrap: allow older git
22796         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
22797         older than 1.6.4.  Requested by the libvirt project.
22798
22799 2010-02-23  Eric Blake  <eblake@redhat.com>
22800
22801         warn-on-use: work with old autoconf
22802         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
22803         AS_VAR semantics of autoconf 2.60.
22804         Reported by Bruno Haible.
22805
22806         bootstrap: improve some comments
22807         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
22808         clarification comments.
22809
22810         gettimeofday: provide correct function
22811         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
22812         when replacement is declared, otherwise provide gettimeofday.
22813         Reported by Michael Goffioul.
22814
22815 2010-02-23  Jim Meyering  <meyering@redhat.com>
22816
22817         lib-ignore: relax license to "unlimited", not LGPLv2+
22818         * modules/lib-ignore (License): Relax to "unlimited".
22819
22820 2010-02-23  Jim Meyering  <meyering@redhat.com>
22821
22822         lib-ignore: relax license to LGPLv2+
22823         * modules/lib-ignore (License): Relax to LGPLv2+.
22824
22825 2010-02-22  Eric Blake  <eblake@redhat.com>
22826
22827         lseek: avoid bash 3.2 broken pipe bug
22828         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
22829         warning from bash 3.2.
22830         Reported by Ben Pfaff, with analysis from Bruno Haible.
22831
22832         bootstrap: support non-FSF copyright holder
22833         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
22834         bootstrap.conf override of COPYRIGHT_HOLDER.
22835         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
22836
22837         bootstrap: interoperate with gettext 0.14.1
22838         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
22839
22840         bootstrap: allow for alternate submodule location
22841         * build-aux/bootstrap (gnulib_path): New variable; use instead of
22842         hardcoding submodule location.
22843         (gnulib_mk): Allow direct use of Makefile.am.
22844
22845         bootstrap: use GNULIB_SRCDIR to reduce disk usage
22846         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
22847         rather than reconfiguring where the submodule points.
22848
22849         gettimeofday: restore support for platforms that lack function
22850         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
22851         replacement if function is missing.
22852         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
22853         * modules/sys_time (Makefile.am): Substitute it.
22854         * lib/sys_time.in.h (gettimeofday): Check it.
22855         Reported by Michael Goffioul.
22856
22857 2010-02-21  Bruno Haible  <bruno@clisp.org>
22858
22859         * lib/stdio.in.h (obstack_printf): Fix typo.
22860
22861 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
22862
22863         vc-list-files: use bzr ls's -R option
22864         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
22865         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
22866
22867 2010-02-21  Jim Meyering  <meyering@redhat.com>
22868
22869         init.sh: fix EXEEXT shims to work also for names like test-prog
22870         * tests/init.sh: Re-exec a better shell, when needed.
22871         If the current shell lacks support for posix $(...), an init.sh-using
22872         test will now try to find a shell that supports that.  If EXEEXT is
22873         nonempty, we also require support for hyphen-in-alias-name and shell
22874         substitutions like ${var#glob}.  Failure to find such a shell results
22875         in a skipped test.
22876
22877 2010-02-21  Bruno Haible  <bruno@clisp.org>
22878
22879         Really work around around "broken pipe" error message from bash 3.2.
22880         * gnulib-tool (func_reset_sigpipe): Remove function.
22881         (echo): In bash 3.2, define to a function that uses printf.
22882         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
22883
22884 2010-02-20  Bruno Haible  <bruno@clisp.org>
22885
22886         Restore support for automake 1.9.6 with autoconf 2.61.
22887         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
22888         Reported by James Youngman <jay@gnu.org>.
22889
22890 2010-02-20  Bruno Haible  <bruno@clisp.org>
22891
22892         Improve *printf warning condition.
22893         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
22894         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
22895         and the function is overridden due to SIGPIPE emulation.
22896
22897 2010-02-20  Bruno Haible  <bruno@clisp.org>
22898
22899         * lib/stdio.in.h: Tweak comments.
22900
22901 2010-02-19  Bruno Haible  <bruno@clisp.org>
22902
22903         Make it easier to find modules. New gnulib-tool option '--find'.
22904         * gnulib-tool: New option --find.
22905         (func_usage): Document it.
22906         (func_sanitize_modulelist): New function, extracted from
22907         func_all_modules.
22908         (func_all_modules): Invoke it.
22909         * doc/gnulib-tool.texi (Which modules?): New node.
22910
22911 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
22912
22913         * lib/sys_select.in.h: Provide select replacement even if
22914         sys/select.h exists on a system, for Interix.
22915
22916 2010-02-18  Jim Meyering  <meyering@redhat.com>
22917
22918         init.sh: don't use $(...) just yet
22919         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
22920         to accommodate e.g., Solaris' /bin/sh.
22921
22922 2010-02-17  Bruno Haible  <bruno@clisp.org>
22923
22924         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
22925         Reported by Ludovic Courtès <ludo@gnu.org>.
22926
22927 2010-02-16  Simon Josefsson  <simon@josefsson.org>
22928
22929         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
22930         linking with -lintl.
22931
22932 2010-02-17  Simon Josefsson  <simon@josefsson.org>
22933
22934         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
22935         if not provided by the system's netdb.h.  Reported by
22936         ludo@gnu.org (Ludovic Courtès).
22937
22938 2010-02-15  Jim Meyering  <meyering@redhat.com>
22939
22940         init.sh: improve portability and efficiency
22941         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
22942         "dummy" in a for loop.
22943         Use '!', not '^' to select the complement of a character set used
22944         in a "case" statement.
22945         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
22946         Suggestions from Eric Blake.
22947
22948         init.sh: automatically accommodate programs with the .exe suffix
22949         Automatically arrange for an invocation of "prog" to execute the
22950         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
22951         may use the simpler "prog", yet still work when built on a system
22952         that requires specifying the added suffix.
22953         Do this by constructing a function named "prog" that invokes
22954         "prog.exe" for each .exe file in selected directories.
22955         * tests/init.sh (find_exe_basenames_): New function.
22956         (create_exe_shim_functions_): New function.
22957         (path_prepend_): Use it.
22958
22959         maint.mk: mark syntax-check sc_*.m rules as .PHONY
22960         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
22961         "make -t syntax-check" doesn't create a ton of sc_*.m files.
22962
22963 2010-02-14  Jim Meyering  <meyering@redhat.com>
22964
22965         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
22966         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
22967         (sc_prohibit_hash_pjw_without_use): New rule.
22968
22969         maint.mk: allow the default upload destination dir to be overridden
22970         * top/maint.mk (upload_dest_dir_): Define with a default that
22971         preserves the status quo.
22972         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
22973         Reported by Peter Simons.
22974
22975         maint.mk: prohibit inclusion of "hash.h" without_use
22976         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
22977
22978 2010-02-10  Jim Meyering  <meyering@redhat.com>
22979
22980         maint.mk: prohibit inclusion of "ignore-value.h" without_use
22981         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
22982
22983 2010-02-09  Eric Blake  <ebb9@byu.net>
22984         and Bruno Haible  <bruno@clisp.org>
22985
22986         obstack-printf-posix: ensure declaration
22987         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
22988         extracted from gl_FUNC_OBSTACK_PRINTF.
22989         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
22990         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
22991         Likewise.
22992         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
22993         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
22994         0.
22995
22996 2010-02-08  Bruno Haible  <bruno@clisp.org>
22997
22998         gnulib-tool: Fix typo in 2010-02-07 commit.
22999         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
23000         Reported by Eric Blake.
23001
23002 2010-02-07  Bruno Haible  <bruno@clisp.org>
23003
23004         gnulib-tool: Fix up caching patches.
23005         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
23006         option --no-cache. Use associative arrays when supported by the shell.
23007         (sed_comments): New variable.
23008         (modcache): Renamed from do_cache.
23009         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
23010         abbreviate unnecessarily.
23011         (have_associative): New variable.
23012         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
23013         way also for ksh and zsh.
23014         (func_init_sed_convert_to_cache_statements): New function, extracted
23015         from func_cache_lookup_module. Add support for associative arrays.
23016         Don't set the c_MODULE_cached variable here. Ignore all lines before
23017         the first field header. Remove only the final newline, not all trailing
23018         newlines. Support empty fields correctly. Limit the use of 'eval' to
23019         assignments.
23020         (func_get_description, func_get_status, func_get_notice,
23021         func_get_applicability, func_get_filelist, func_get_dependencies,
23022         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
23023         func_get_automake_snippet, func_get_include_directive,
23024         func_get_link_directive, func_get_license, func_get_maintainer):
23025         Update documentation. List the unoptimized code first. Add support for
23026         associative arrays. Limit the use of 'eval' to assignments.
23027         (func_get_applicability): Undo stylistic pessimisations.
23028         (func_get_automake_snippet, func_get_include_directive): Reduce code
23029         duplication.
23030         (func_modules_transitive_closure, func_modules_add_dummy,
23031         func_modules_notice, func_modules_to_filelist, func_add_file,
23032         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
23033         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
23034         func_create_testdir, func_create_megatestdir): Update documentation.
23035
23036 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23037
23038         * gnulib-tool (func_cache_lookup_module): Store the module name
23039         belonging to the cache variable; error out if two different
23040         module names map to the same cache variable name.
23041
23042 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23043
23044         gnulib-tool: Make caching optional.
23045         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
23046         Update matching short versions of --no-changelog.
23047         (func_usage): Update.
23048         (sed_extract_cache_prog): Renamed from ...
23049         (sed_extract_prog): ... this; revert to old extraction script.
23050         (func_get_description, func_get_status)
23051         (func_get_notice, func_get_applicability, func_get_filelist)
23052         (func_get_dependencies, func_get_autoconf_early_snippet)
23053         (func_get_autoconf_snippet, func_get_automake_snippet)
23054         (func_get_include_directive, func_get_link_directive)
23055         (func_get_license, func_get_maintainer): If $do_cache is false,
23056         use old, non-caching extraction scripts.
23057         Suggestion by Bruno Haible.
23058
23059 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23060
23061         gnulib-tool: cache module metainformation.
23062         * gnulib-tool (sed_extract_prog): Match newline before each
23063         header, and rewrite header to a shell variable suffix.
23064         (func_cache_var, func_cache_lookup_module): New functions,
23065         to turn a module name into a cache variable prefix, and to
23066         look up and cache module metainformation.
23067         (func_get_description, func_get_status)
23068         (func_get_notice, func_get_applicability, func_get_filelist)
23069         (func_get_dependencies, func_get_autoconf_early_snippet)
23070         (func_get_autoconf_snippet, func_get_automake_snippet)
23071         (func_get_include_directive, func_get_link_directive)
23072         (func_get_license, func_get_maintainer): Use
23073         func_cache_lookup_module.
23074
23075 2010-02-07  Bruno Haible  <bruno@clisp.org>
23076
23077         fnctl: Fix missing dependency.
23078         * modules/fcntl (Depends-on): Add getdtablesize.
23079         Reported by John W. Eaton <jwe@gnu.org>.
23080
23081 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23082
23083         Argp: fix recognition of short alias options.
23084
23085         * lib/argp-parse.c (convert_options): Fix improper use of
23086         `|' between character values.
23087         * tests/test-argp.c (group1_option): New alias option
23088         --read (-r).
23089         (group1_parser): Special handling for 'r'.
23090         (test15): New test case.
23091         (test_fun): Add test15.
23092         * tests/test-argp-2.sh: Update expected --help and --usage
23093         outputs.
23094
23095 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
23096
23097         * tests/test-argp.c: Fix indentation.
23098
23099 2010-02-04  Eric Blake  <ebb9@byu.net>
23100
23101         gettimeofday: expose type of second argument
23102         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
23103         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
23104         * tests/test-gettimeofday.c: Use it to silence warning.
23105         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
23106         the issue.
23107
23108 2010-02-03  Jim Meyering  <meyering@redhat.com>
23109
23110         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
23111         * lib/regcomp.c (TYPE_SIGNED): Define.
23112         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
23113
23114         regcomp.c: avoid a new -Wshadow warning
23115         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
23116
23117 2010-02-01  Jim Meyering  <meyering@redhat.com>
23118
23119         removing useless parentheses in cpp #define directives
23120         For motivation, see commit c0221df4, "define STREQ(a,b)
23121         consistently, removing useless parentheses"
23122         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
23123         * lib/mountlist.c (MNT_IGNORE): Likewise.
23124         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
23125
23126 2010-02-01  Eric Blake  <ebb9@byu.net>
23127
23128         sys_time: use link-warning
23129         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
23130         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
23131         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
23132         * modules/sys_time (Depends-on): Add warn-on-use.
23133         (Makefile.am): Always build replacement.
23134         (configure.ac): Update substitutions.
23135         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
23136         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
23137         bother with SYS_TIME_H.
23138         * modules/gettimeofday (configure.ac): Declare indicator.
23139         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
23140         in use.
23141
23142         closein-tests: silence compiler warning
23143         * tests/test-closein.c (main): Ignore fread result.
23144         * modules/closein-tests (Depends-on): Add ignore-value.
23145
23146         tests: silence warning about system return
23147         * tests/test-areadlink-with-size.c (main): Ignore system result.
23148         * tests/test-areadlink.c (main): Likewise.
23149         * tests/test-areadlinkat-with-size.c (main): Likewise.
23150         * tests/test-areadlinkat.c (main): Likewise.
23151         * tests/test-canonicalize-lgpl.c (main): Likewise.
23152         * tests/test-canonicalize.c (main): Likewise.
23153         * tests/test-chown.c (main): Likewise.
23154         * tests/test-fchownat.c (main): Likewise.
23155         * tests/test-fdutimensat.c (main): Likewise.
23156         * tests/test-fstatat.c (main): Likewise.
23157         * tests/test-futimens.c (main): Likewise.
23158         * tests/test-lchown.c (main): Likewise.
23159         * tests/test-link.c (main): Likewise.
23160         * tests/test-linkat.c (main): Likewise.
23161         * tests/test-lstat.c (main): Likewise.
23162         * tests/test-mkdir.c (main): Likewise.
23163         * tests/test-mkdirat.c (main): Likewise.
23164         * tests/test-mkfifo.c (main): Likewise.
23165         * tests/test-mkfifoat.c (main): Likewise.
23166         * tests/test-mknod.c (main): Likewise.
23167         * tests/test-readlink.c (main): Likewise.
23168         * tests/test-remove.c (main): Likewise.
23169         * tests/test-rename.c (main): Likewise.
23170         * tests/test-renameat.c (main): Likewise.
23171         * tests/test-rmdir.c (main): Likewise.
23172         * tests/test-symlink.c (main): Likewise.
23173         * tests/test-symlinkat.c (main): Likewise.
23174         * tests/test-unlink.c (main): Likewise.
23175         * tests/test-unlinkat.c (main): Likewise.
23176         * tests/test-utimens.c (main): Likewise.
23177         * tests/test-utimensat.c (main): Likewise.
23178         * modules/areadlink-tests (Depends-on): Add ignore-value.
23179         * modules/areadlink-with-size-tests (Depends-on): Likewise.
23180         * modules/areadlinkat-tests (Depends-on): Likewise.
23181         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
23182         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
23183         * modules/canonicalize-tests (Depends-on): Likewise.
23184         * modules/chown-tests (Depends-on): Likewise.
23185         * modules/fdutimensat-tests (Depends-on): Likewise.
23186         * modules/futimens-tests (Depends-on): Likewise.
23187         * modules/lchown-tests (Depends-on): Likewise.
23188         * modules/link-tests (Depends-on): Likewise.
23189         * modules/linkat-tests (Depends-on): Likewise.
23190         * modules/lstat-tests (Depends-on): Likewise.
23191         * modules/mkdir-tests (Depends-on): Likewise.
23192         * modules/mkfifo-tests (Depends-on): Likewise.
23193         * modules/mkfifoat-tests (Depends-on): Likewise.
23194         * modules/mknod-tests (Depends-on): Likewise.
23195         * modules/openat-tests (Depends-on): Likewise.
23196         * modules/readlink-tests (Depends-on): Likewise.
23197         * modules/remove-tests (Depends-on): Likewise.
23198         * modules/rename-tests (Depends-on): Likewise.
23199         * modules/renameat-tests (Depends-on): Likewise.
23200         * modules/rmdir-tests (Depends-on): Likewise.
23201         * modules/symlink-tests (Depends-on): Likewise.
23202         * modules/symlinkat-tests (Depends-on): Likewise.
23203         * modules/unlink-tests (Depends-on): Likewise.
23204         * modules/utimens-tests (Depends-on): Likewise.
23205         * modules/utimensat-tests (Depends-on): Likewise.
23206
23207 2010-01-31  Bruno Haible  <bruno@clisp.org>
23208
23209         Perform the same test for many <math.h> functions.
23210         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
23211         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
23212         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
23213         of gl_MATHFUNC.
23214         * modules/acos (configure.ac): Likewise.
23215         * modules/asin (configure.ac): Likewise.
23216         * modules/atan (configure.ac): Likewise.
23217         * modules/atan2 (configure.ac): Likewise.
23218         * modules/cbrt (configure.ac): Likewise.
23219         * modules/copysign (configure.ac): Likewise.
23220         * modules/cos (configure.ac): Likewise.
23221         * modules/cosh (configure.ac): Likewise.
23222         * modules/erf (configure.ac): Likewise.
23223         * modules/erfc (configure.ac): Likewise.
23224         * modules/exp (configure.ac): Likewise.
23225         * modules/fmod (configure.ac): Likewise.
23226         * modules/hypot (configure.ac): Likewise.
23227         * modules/j0 (configure.ac): Likewise.
23228         * modules/j1 (configure.ac): Likewise.
23229         * modules/jn (configure.ac): Likewise.
23230         * modules/lgamma (configure.ac): Likewise.
23231         * modules/log (configure.ac): Likewise.
23232         * modules/log10 (configure.ac): Likewise.
23233         * modules/log1p (configure.ac): Likewise.
23234         * modules/pow (configure.ac): Likewise.
23235         * modules/remainder (configure.ac): Likewise.
23236         * modules/sin (configure.ac): Likewise.
23237         * modules/sinh (configure.ac): Likewise.
23238         * modules/tan (configure.ac): Likewise.
23239         * modules/tanh (configure.ac): Likewise.
23240         * modules/y0 (configure.ac): Likewise.
23241         * modules/y1 (configure.ac): Likewise.
23242         * modules/yn (configure.ac): Likewise.
23243         Suggested by Paolo Bonzini.
23244
23245 2010-01-31  Bruno Haible  <bruno@clisp.org>
23246
23247         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
23248
23249 2010-01-31  Bruno Haible  <bruno@clisp.org>
23250
23251         Work around getdelim() bug on FreeBSD 8.0.
23252         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
23253         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
23254         not work.
23255         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
23256         is 1.
23257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
23258         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
23259         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
23260         a non-zero size.
23261         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
23262
23263 2010-01-31  Bruno Haible  <bruno@clisp.org>
23264
23265         Work around getline() bug on FreeBSD 8.0.
23266         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
23267         and a non-zero size.
23268         * tests/test-getline.c (main): Likewise.
23269         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
23270         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
23271
23272 2010-01-28  Eric Blake  <ebb9@byu.net>
23273
23274         regex: fix build failure
23275         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
23276         platforms.
23277
23278 2010-01-28  Jim Meyering  <meyering@redhat.com>
23279
23280         regex: do not ignore memory allocation failure
23281         * lib/regex_internal.c (create_cd_newstate): Detect
23282         re_node_set_init_copy failure.   Extracted from glibc commit
23283         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23284
23285         regex: sync more white-space changes from libc
23286         * lib/regex_internal.c: White-space only changes.
23287         * lib/regexec.c: Likewise.
23288
23289         regex: add many uses of __attribute_warn_unused_result__
23290         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
23291         * lib/regexec.c: Likewise.
23292         Extracted from a messy glibc commit.
23293
23294         regcomp.c: spelling and merge-artifact from glibc
23295         * lib/regcomp.c: Merge remainder of glibc's
23296         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23297
23298         regcomp.c: sync white-space changes from glibc
23299         * lib/regcomp.c: Merge to accommodate white space
23300         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
23301
23302         regcomp.c: do not ignore internal return values
23303         * lib/regcomp.c: Do not ignore internal return values.
23304         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
23305         but without its white-space changes and spelling fixes.
23306
23307         regex_internal.h: define __attribute_warn_unused_result__
23308         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
23309
23310         maint: add a syntax-check rule to check for vulnerable Makefile.in
23311         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
23312
23313 2010-01-27  Jim Meyering  <meyering@redhat.com>
23314
23315         ncftpput-ftp: clean up spaces
23316         * build-aux/ncftpput-ftp: Make Copyright line consistent.
23317         Remove trailing blanks.
23318
23319 2010-01-27  Simon Josefsson  <simon@josefsson.org>
23320
23321         * build-aux/git-version-gen: Fix copyright statement.
23322         * build-aux/gnupload: Likewise.
23323         * tests/test-arcfour.c: Likewise.
23324         * tests/test-arctwo.c: Likewise.
23325         * tests/test-count-one-bits.c: Likewise.
23326         * tests/test-crc.c: Likewise.
23327         * tests/test-des.c: Likewise.
23328         * tests/test-gc-arcfour.c: Likewise.
23329         * tests/test-gc-arctwo.c: Likewise.
23330         * tests/test-gc-des.c: Likewise.
23331         * tests/test-gc-hmac-md5.c: Likewise.
23332         * tests/test-gc-hmac-sha1.c: Likewise.
23333         * tests/test-gc-md2.c: Likewise.
23334         * tests/test-gc-md4.c: Likewise.
23335         * tests/test-gc-md5.c: Likewise.
23336         * tests/test-gc-pbkdf2-sha1.c: Likewise.
23337         * tests/test-gc-rijndael.c: Likewise.
23338         * tests/test-gc-sha1.c: Likewise.
23339         * tests/test-gc.c: Likewise.
23340         * tests/test-gethostname.c: Likewise.
23341         * tests/test-gettimeofday.c: Likewise.
23342         * tests/test-hash.c: Likewise.
23343         * tests/test-hmac-md5.c: Likewise.
23344         * tests/test-hmac-sha1.c: Likewise.
23345         * tests/test-md2.c: Likewise.
23346         * tests/test-md4.c: Likewise.
23347         * tests/test-md5.c: Likewise.
23348         * tests/test-memchr.c: Likewise.
23349         * tests/test-memchr2.c: Likewise.
23350         * tests/test-memcmp.c: Likewise.
23351         * tests/test-memmem.c: Likewise.
23352         * tests/test-memrchr.c: Likewise.
23353         * tests/test-rawmemchr.c: Likewise.
23354         * tests/test-read-file.c: Likewise.
23355         * tests/test-rijndael.c: Likewise.
23356         * tests/test-sockets.c: Likewise.
23357         * tests/test-strchrnul.c: Likewise.
23358         * tests/test-strstr.c: Likewise.
23359         * tests/test-strtod.c: Likewise.
23360         * build-aux/ncftpput-ftp: Likewise.
23361
23362 2010-01-26  Eric Blake  <ebb9@byu.net>
23363
23364         ignore-value: update recommended header name
23365         * modules/ignore-value (Include): Only use <> for headers that
23366         exist in glibc.
23367
23368 2010-01-26  Jim Meyering  <meyering@redhat.com>
23369
23370         test-userspec.c: avoid compiler warnings
23371         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
23372         and "initialization discards qualifiers..." warnings.
23373         Put the first "uid" in its own scope, and make char* members "const".
23374
23375 2010-01-25  Bruno Haible  <bruno@clisp.org>
23376
23377         gnulib-tool: Make warning diagnostics consistent.
23378         * gnulib-tool (func_warning): New function.
23379         Use it everywhere where gnulib-tool produces output to stderr and it is
23380         not a fatal error.
23381
23382 2010-01-25  Bruno Haible  <bruno@clisp.org>
23383
23384         Fix test dependencies.
23385         * modules/xstrtol-tests (Depends-on): Add inttypes.
23386         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
23387
23388 2010-01-25 Pádraig Brady <P@draigBrady.com>
23389
23390         syntax-check: detect incorrect boolean macro values in config.h
23391         * modules/maintainer-makefile (configure.ac): Parameterize the location
23392         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
23393         The logic is from Eric Blake and the location indicated by Jim Meyering.
23394         Note the more natural CONFIG_HEADER name is prohibited by automake
23395         for backwards compatibility reasons.
23396         * top/maint.mk (sc_Wundef_boolean): New rule.
23397
23398 2010-01-25  Jim Meyering  <meyering@redhat.com>
23399
23400         bootstrap: detect MacOS 10.6's shasum, too
23401         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
23402         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
23403
23404 2010-01-23  Jim Meyering  <meyering@redhat.com>
23405
23406         xstrtoll: new module
23407         * modules/xstrtoll: New file.
23408         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
23409         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
23410         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
23411         ./configure fails if you use this module and lack "long long".
23412         * modules/xstrtoll-tests: New module.
23413         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
23414         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
23415         new init.sh-based test framework.
23416
23417 2010-01-24  Bruno Haible  <bruno@clisp.org>
23418
23419         Tests for module 'yn'.
23420         * modules/yn-tests: New file.
23421         * tests/test-yn.c: New file.
23422
23423         Tests for module 'y1'.
23424         * modules/y1-tests: New file.
23425         * tests/test-y1.c: New file.
23426
23427         Tests for module 'y0'.
23428         * modules/y0-tests: New file.
23429         * tests/test-y0.c: New file.
23430
23431         Tests for module 'tanh'.
23432         * modules/tanh-tests: New file.
23433         * tests/test-tanh.c: New file.
23434
23435         Tests for module 'tan'.
23436         * modules/tan-tests: New file.
23437         * tests/test-tan.c: New file.
23438
23439         Tests for module 'sqrt'.
23440         * modules/sqrt-tests: New file.
23441         * tests/test-sqrt.c: New file.
23442
23443         Tests for module 'sinh'.
23444         * modules/sinh-tests: New file.
23445         * tests/test-sinh.c: New file.
23446
23447         Tests for module 'sin'.
23448         * modules/sin-tests: New file.
23449         * tests/test-sin.c: New file.
23450
23451         Tests for module 'rint'.
23452         * modules/rint-tests: New file.
23453         * tests/test-rint.c: New file.
23454
23455         Tests for module 'remainder'.
23456         * modules/remainder-tests: New file.
23457         * tests/test-remainder.c: New file.
23458
23459         Tests for module 'pow'.
23460         * modules/pow-tests: New file.
23461         * tests/test-pow.c: New file.
23462
23463         Tests for module 'nextafter'.
23464         * modules/nextafter-tests: New file.
23465         * tests/test-nextafter.c: New file.
23466
23467         Tests for module 'modf'.
23468         * modules/modf-tests: New file.
23469         * tests/test-modf.c: New file.
23470
23471         Tests for module 'logb'.
23472         * modules/logb-tests: New file.
23473         * tests/test-logb.c: New file.
23474
23475         Tests for module 'log1p'.
23476         * modules/log1p-tests: New file.
23477         * tests/test-log1p.c: New file.
23478
23479         Tests for module 'log10'.
23480         * modules/log10-tests: New file.
23481         * tests/test-log10.c: New file.
23482
23483         Tests for module 'log'.
23484         * modules/log-tests: New file.
23485         * tests/test-log.c: New file.
23486
23487         Tests for module 'lgamma'.
23488         * modules/lgamma-tests: New file.
23489         * tests/test-lgamma.c: New file.
23490
23491         Tests for module 'ldexp'.
23492         * modules/ldexp-tests: New file.
23493         * tests/test-ldexp.c: New file.
23494
23495         Tests for module 'jn'.
23496         * modules/jn-tests: New file.
23497         * tests/test-jn.c: New file.
23498
23499         Tests for module 'j1'.
23500         * modules/j1-tests: New file.
23501         * tests/test-j1.c: New file.
23502
23503         Tests for module 'j0'.
23504         * modules/j0-tests: New file.
23505         * tests/test-j0.c: New file.
23506
23507         Tests for module 'hypot'.
23508         * modules/hypot-tests: New file.
23509         * tests/test-hypot.c: New file.
23510
23511         Tests for module 'fmod'.
23512         * modules/fmod-tests: New file.
23513         * tests/test-fmod.c: New file.
23514
23515         Tests for module 'fabs'.
23516         * modules/fabs-tests: New file.
23517         * tests/test-fabs.c: New file.
23518
23519         Tests for module 'exp'.
23520         * modules/exp-tests: New file.
23521         * tests/test-exp.c: New file.
23522
23523         Tests for module 'erfc'.
23524         * modules/erfc-tests: New file.
23525         * tests/test-erfc.c: New file.
23526
23527         Tests for module 'erf'.
23528         * modules/erf-tests: New file.
23529         * tests/test-erf.c: New file.
23530
23531         Tests for module 'cosh'.
23532         * modules/cosh-tests: New file.
23533         * tests/test-cosh.c: New file.
23534
23535         Tests for module 'cos'.
23536         * modules/cos-tests: New file.
23537         * tests/test-cos.c: New file.
23538
23539         Tests for module 'copysign'.
23540         * modules/copysign-tests: New file.
23541         * tests/test-copysign.c: New file.
23542
23543         Tests for module 'cbrt'.
23544         * modules/cbrt-tests: New file.
23545         * tests/test-cbrt.c: New file.
23546
23547         Tests for module 'atan2'.
23548         * modules/atan2-tests: New file.
23549         * tests/test-atan2.c: New file.
23550
23551         Tests for module 'atan'.
23552         * modules/atan-tests: New file.
23553         * tests/test-atan.c: New file.
23554
23555         Tests for module 'asin'.
23556         * modules/asin-tests: New file.
23557         * tests/test-asin.c: New file.
23558
23559         Tests for module 'acos'.
23560         * modules/acos-tests: New file.
23561         * tests/test-acos.c: New file.
23562
23563 2010-01-24  Bruno Haible  <bruno@clisp.org>
23564
23565         Fix tests for common <math.h> functions.
23566         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
23567         code snippet that references the function pointer, rather than merely
23568         calling the function. Substitute the FUNC_LIBM variable.
23569         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
23570         * modules/acos (configure.ac): Likewise.
23571         * modules/asin (configure.ac): Likewise.
23572         * modules/atan (configure.ac): Likewise.
23573         * modules/atan2 (configure.ac): Likewise.
23574         * modules/cbrt (configure.ac): Likewise.
23575         * modules/copysign (configure.ac): Likewise.
23576         * modules/cos (configure.ac): Likewise.
23577         * modules/cosh (configure.ac): Likewise.
23578         * modules/erf (configure.ac): Likewise.
23579         * modules/erfc (configure.ac): Likewise.
23580         * modules/exp (configure.ac): Likewise.
23581         * modules/fabs (configure.ac): Likewise.
23582         * modules/fmod (configure.ac): Likewise.
23583         * modules/hypot (configure.ac): Likewise.
23584         * modules/j0 (configure.ac): Likewise.
23585         * modules/j1 (configure.ac): Likewise.
23586         * modules/jn (configure.ac): Likewise.
23587         * modules/ldexp (configure.ac): Likewise.
23588         * modules/lgamma (configure.ac): Likewise.
23589         * modules/log (configure.ac): Likewise.
23590         * modules/log10 (configure.ac): Likewise.
23591         * modules/log1p (configure.ac): Likewise.
23592         * modules/logb (configure.ac): Likewise.
23593         * modules/modf (configure.ac): Likewise.
23594         * modules/nextafter (configure.ac): Likewise.
23595         * modules/pow (configure.ac): Likewise.
23596         * modules/remainder (configure.ac): Likewise.
23597         * modules/rint (configure.ac): Likewise.
23598         * modules/sin (configure.ac): Likewise.
23599         * modules/sinh (configure.ac): Likewise.
23600         * modules/tan (configure.ac): Likewise.
23601         * modules/tanh (configure.ac): Likewise.
23602         * modules/y0 (configure.ac): Likewise.
23603         * modules/y1 (configure.ac): Likewise.
23604         * modules/yn (configure.ac): Likewise.
23605
23606 2010-01-24  Bruno Haible  <bruno@clisp.org>
23607
23608         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
23609         * tests/test-acosl.c (x): New variable.
23610         (main): Store argument in x and fetch it from x.
23611         * tests/test-asinl.c (x): New variable.
23612         (main): Store argument in x and fetch it from x.
23613         * tests/test-atanl.c (x): New variable.
23614         (main): Store argument in x and fetch it from x.
23615         * tests/test-cosl.c (x): New variable.
23616         (main): Store argument in x and fetch it from x.
23617         * tests/test-expl.c (x): New variable.
23618         (main): Store argument in x and fetch it from x.
23619         * tests/test-logl.c (x): New variable.
23620         (main): Store argument in x and fetch it from x.
23621         * tests/test-sinl.c (x): New variable.
23622         (main): Store argument in x and fetch it from x.
23623         * tests/test-sqrtl.c (x): New variable.
23624         (main): Store argument in x and fetch it from x.
23625         * tests/test-tanl.c (x): New variable.
23626         (main): Store argument in x and fetch it from x.
23627
23628 2010-01-24  Bruno Haible  <bruno@clisp.org>
23629
23630         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
23631         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
23632         assignments to the initial TESTS_ENVIRONMENT.
23633         * doc/gnulib.texi (Unit test modules): Document it.
23634         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
23635         TESTS_ENVIRONMENT.
23636         * modules/btowc-tests (Makefile.am): Likewise.
23637         * modules/c-stack-tests (Makefile.am): Likewise.
23638         * modules/c-strcase-tests (Makefile.am): Likewise.
23639         * modules/copy-file-tests (Makefile.am): Likewise.
23640         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
23641         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
23642         * modules/mbrtowc-tests (Makefile.am): Likewise.
23643         * modules/mbscasecmp-tests (Makefile.am): Likewise.
23644         * modules/mbscasestr-tests (Makefile.am): Likewise.
23645         * modules/mbschr-tests (Makefile.am): Likewise.
23646         * modules/mbscspn-tests (Makefile.am): Likewise.
23647         * modules/mbsinit-tests (Makefile.am): Likewise.
23648         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
23649         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
23650         * modules/mbspbrk-tests (Makefile.am): Likewise.
23651         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
23652         * modules/mbsrchr-tests (Makefile.am): Likewise.
23653         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
23654         * modules/mbsspn-tests (Makefile.am): Likewise.
23655         * modules/mbsstr-tests (Makefile.am): Likewise.
23656         * modules/nl_langinfo-tests (Makefile.am): Likewise.
23657         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
23658         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
23659         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
23660         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
23661         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
23662         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
23663         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
23664         * modules/wcrtomb-tests (Makefile.am): Likewise.
23665         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
23666         * modules/wcsrtombs-tests (Makefile.am): Likewise.
23667         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
23668         assignments from TESTS_ENVIRONMENT.
23669         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
23670         augmentation.
23671         * modules/argp-version-etc-tests (Makefile.am): Likewise.
23672         * modules/atexit-tests (Makefile.am): Likewise.
23673         * modules/binary-io-tests (Makefile.am): Likewise.
23674         * modules/closein-tests (Makefile.am): Likewise.
23675         * modules/dprintf-posix-tests (Makefile.am): Likewise.
23676         * modules/exclude-tests (Makefile.am): Likewise.
23677         * modules/fflush-tests (Makefile.am): Likewise.
23678         * modules/fpending-tests (Makefile.am): Likewise.
23679         * modules/fprintf-posix-tests (Makefile.am): Likewise.
23680         * modules/freadahead-tests (Makefile.am): Likewise.
23681         * modules/freadptr-tests (Makefile.am): Likewise.
23682         * modules/freadseek-tests (Makefile.am): Likewise.
23683         * modules/fseek-tests (Makefile.am): Likewise.
23684         * modules/fseeko-tests (Makefile.am): Likewise.
23685         * modules/ftell-tests (Makefile.am): Likewise.
23686         * modules/ftello-tests (Makefile.am): Likewise.
23687         * modules/idpriv-drop-tests (Makefile.am): Likewise.
23688         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
23689         * modules/lseek-tests (Makefile.am): Likewise.
23690         * modules/parse-duration-tests (Makefile.am): Likewise.
23691         * modules/perror-tests (Makefile.am): Likewise.
23692         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
23693         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
23694         * modules/pipe-tests (Makefile.am): Likewise.
23695         * modules/pread-tests (Makefile.am): Likewise.
23696         * modules/printf-posix-tests (Makefile.am): Likewise.
23697         * modules/select-tests (Makefile.am): Likewise.
23698         * modules/sigpipe-tests (Makefile.am): Likewise.
23699         * modules/tsearch-tests (Makefile.am): Likewise.
23700         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
23701         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
23702         * modules/uniname/uniname-tests (Makefile.am): Likewise.
23703         * modules/uniwidth/width-tests (Makefile.am): Likewise.
23704         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
23705         * modules/version-etc-tests (Makefile.am): Likewise.
23706         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
23707         * modules/vprintf-posix-tests (Makefile.am): Likewise.
23708         * modules/xalloc-die-tests (Makefile.am): Likewise.
23709         * modules/xprintf-posix-tests (Makefile.am): Likewise.
23710         * modules/xstrtoimax-tests (Makefile.am): Likewise.
23711         * modules/xstrtol-tests (Makefile.am): Likewise.
23712         * modules/xstrtoumax-tests (Makefile.am): Likewise.
23713         * modules/yesno-tests (Makefile.am): Likewise.
23714         Suggested by Jim Meyering.
23715
23716 2010-01-24  Bruno Haible  <bruno@clisp.org>
23717
23718         More documentation.
23719         * doc/gnulib.texi (Writing modules): New chapter.
23720         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
23721         the new chapter.
23722
23723 2010-01-24  Jim Meyering  <meyering@redhat.com>
23724
23725         maint.mk: do not prepend "./" after filtering
23726         * top/maint.mk (_prepend_srcdir_prefix): New variable
23727         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
23728         "./" when $(srcdir) is ".".
23729
23730         define STREQ(a,b) consistently, removing useless parentheses
23731         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
23732         since the only risk is that "a" or "b" contains an unparenthesized
23733         comma, but if either did that, STREQ would have 3 or more arguments.
23734         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
23735         * lib/fts.c (STREQ): Remove unnecessary parentheses.
23736         * lib/hash-triple.c (STREQ): Likewise.
23737         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
23738         * lib/getugroups.c (STREQ): Likewise.
23739
23740 2010-01-23  Jim Meyering  <meyering@redhat.com>
23741
23742         maint.mk: fix syntax-check in a non-srcdir build directory
23743         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
23744         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
23745
23746 2010-01-22  Jim Meyering  <meyering@redhat.com>
23747
23748         userspec: add unit tests
23749         * tests/test-userspec.c: New file.
23750         * modules/userspec-tests: Likewise.
23751
23752 2010-01-21  Jim Meyering  <meyering@redhat.com>
23753
23754         maint.mk: handle source file names containing "." robustly
23755         * top/maint.mk (_dot_escaped_srcdir): Define.
23756         (VC_LIST): Use it in LHS of sed substitution.
23757
23758 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
23759
23760         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
23761         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
23762         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
23763         from a non-srcdir build.
23764
23765 2010-01-20  Eric Blake  <ebb9@byu.net>
23766
23767         warn-on-use: use instead of link-warning
23768         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
23769         * modules/unistd (Depends-on, Makefile.am): Likewise.
23770         * modules/arpa_inet (Depends-on): Replace link-warning with
23771         warn-on-use.
23772         (Makefile.am): Update rules accordingly.
23773         * modules/ctype (Depends-on, Makefile.am): Likewise.
23774         * modules/dirent (Depends-on, Makefile.am): Likewise.
23775         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
23776         * modules/inttypes (Depends-on, Makefile.am): Likewise.
23777         * modules/langinfo (Depends-on, Makefile.am): Likewise.
23778         * modules/locale (Depends-on, Makefile.am): Likewise.
23779         * modules/math (Depends-on, Makefile.am): Likewise.
23780         * modules/search (Depends-on, Makefile.am): Likewise.
23781         * modules/signal (Depends-on, Makefile.am): Likewise.
23782         * modules/spawn (Depends-on, Makefile.am): Likewise.
23783         * modules/stdlib (Depends-on, Makefile.am): Likewise.
23784         * modules/string (Depends-on, Makefile.am): Likewise.
23785         * modules/strings (Depends-on, Makefile.am): Likewise.
23786         * modules/sys_file (Depends-on, Makefile.am): Likewise.
23787         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
23788         * modules/sys_select (Depends-on, Makefile.am): Likewise.
23789         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
23790         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
23791         * modules/sys_times (Depends-on, Makefile.am): Likewise.
23792         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
23793         * modules/wchar (Depends-on, Makefile.am): Likewise.
23794         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
23795         should be poisoned.
23796         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
23797         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
23798         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
23799         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23800         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
23801         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23802         * m4/math_h.m4 (gl_MATH_H): Likewise.
23803         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23804         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23805         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23806         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23807         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23808         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23809         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
23810         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
23811         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
23812         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23813         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23814         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23815         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23817         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23818         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23819         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
23820         GL_LINK_WARNING.
23821         * lib/ctype.in.h: Likewise.
23822         * lib/dirent.in.h: Likewise.
23823         * lib/fcntl.in.h: Likewise.
23824         * lib/inttypes.in.h: Likewise.
23825         * lib/langinfo.in.h: Likewise.
23826         * lib/locale.in.h: Likewise.
23827         * lib/math.in.h: Likewise.
23828         * lib/search.in.h: Likewise.
23829         * lib/signal.in.h: Likewise.
23830         * lib/spawn.in.h: Likewise.
23831         * lib/stdio.in.h: Likewise.
23832         * lib/stdlib.in.h: Likewise.
23833         * lib/string.in.h: Likewise.
23834         * lib/strings.in.h: Likewise.
23835         * lib/sys_file.in.h: Likewise.
23836         * lib/sys_ioctl.in.h: Likewise.
23837         * lib/sys_select.in.h: Likewise.
23838         * lib/sys_socket.in.h: Likewise.
23839         * lib/sys_stat.in.h: Likewise.
23840         * lib/sys_times.in.h: Likewise.
23841         * lib/sys_utsname.in.h: Likewise.
23842         * lib/unistd.in.h: Likewise.
23843         * lib/wchar.in.h: Likewise.
23844
23845 2010-01-20  Bruno Haible  <bruno@clisp.org>
23846
23847         Avoid duplicate -lm.
23848         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
23849         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
23850         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
23851         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
23852         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
23853         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
23854         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
23855         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
23856         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
23857         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
23858         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
23859         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
23860         Reported by Paolo Bonzini.
23861
23862 2010-01-19  Bruno Haible  <bruno@clisp.org>
23863
23864         langinfo, nl_langinfo: Relicense under LGPLv2+.
23865         * modules/langinfo (License): Change to LGPLv2+.
23866         * modules/nl_langinfo (License): Likewise.
23867         Patch by David Lutterkort <lutter@redhat.com>.
23868
23869 2010-01-19  Bruno Haible  <bruno@clisp.org>
23870
23871         Avoid compilation error with cc on OSF/1 5.1.
23872         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
23873         statement, not before.
23874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23875
23876 2010-01-18  Bruno Haible  <bruno@clisp.org>
23877
23878         Avoid a link error due to the __printf__ symbol.
23879         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
23880         and 2.6.x.
23881         (__format__, __printf__): Remove definitions.
23882         * lib/argp-fmtstream.h: Likewise.
23883         * lib/argp.h: Likewise.
23884         * lib/error.h: Likewise.
23885         * lib/vasnprintf.h: Likewise.
23886         * lib/xprintf.h: Likewise.
23887         * lib/xvasprintf.h: Likewise.
23888         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23889
23890 2010-01-18  Bruno Haible  <bruno@clisp.org>
23891
23892         Tests for module 'tanl'.
23893         * modules/tanl-tests: New file.
23894         * tests/test-tanl.c: New file.
23895
23896         Tests for module 'sqrtl'.
23897         * modules/sqrtl-tests: New file.
23898         * tests/test-sqrtl.c: New file.
23899
23900         Tests for module 'sinl'.
23901         * modules/sinl-tests: New file.
23902         * tests/test-sinl.c: New file.
23903
23904         Tests for module 'logl'.
23905         * modules/logl-tests: New file.
23906         * tests/test-logl.c: New file.
23907
23908         Tests for module 'expl'.
23909         * modules/expl-tests: New file.
23910         * tests/test-expl.c: New file.
23911
23912         Tests for module 'cosl'.
23913         * modules/cosl-tests: New file.
23914         * tests/test-cosl.c: New file.
23915
23916         Tests for module 'atanl'.
23917         * modules/atanl-tests: New file.
23918         * tests/test-atanl.c: New file.
23919
23920         Tests for module 'asinl'.
23921         * modules/asinl-tests: New file.
23922         * tests/test-asinl.c: New file.
23923
23924         Tests for module 'acosl'.
23925         * modules/acosl-tests: New file.
23926         * tests/test-acosl.c: New file.
23927
23928         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23929         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
23930         tanl): Use the standard gnulib idiom.
23931         * lib/cosl.c: Don't include trigl.c and sincosl.c.
23932         * lib/sinl.c: Likewise.
23933         * lib/tanl.c: Don't include trigl.c.
23934         (kernel_tanl): Make static.
23935         * lib/sincosl.c: Include trigl.h first.
23936         * lib/trigl.c: Likewise.
23937         * m4/acosl.m4: New file.
23938         * m4/asinl.m4: New file.
23939         * m4/atanl.m4: New file.
23940         * m4/cosl.m4: New file.
23941         * m4/expl.m4: New file.
23942         * m4/logl.m4: New file.
23943         * m4/sinl.m4: New file.
23944         * m4/sqrtl.m4: New file.
23945         * m4/tanl.m4: New file.
23946         * m4/mathl.m4: Remove file.
23947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
23948         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
23949         Don't initialize GNULIB_MATHL.
23950         * modules/acosl: New file.
23951         * modules/asinl: New file.
23952         * modules/atanl: New file.
23953         * modules/cosl: New file.
23954         * modules/expl: New file.
23955         * modules/logl: New file.
23956         * modules/sinl: New file.
23957         * modules/sqrtl: New file.
23958         * modules/tanl: New file.
23959         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
23960         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
23961         substitute GNULIB_MATHL.
23962         * modules/mathl: Rewritten.
23963         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
23964         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
23965         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
23966         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
23967         * doc/posix-functions/expl.texi: Mention the 'expl' module.
23968         * doc/posix-functions/logl.texi: Mention the 'logl' module.
23969         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
23970         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
23971         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
23972
23973 2010-01-18  Bruno Haible  <bruno@clisp.org>
23974
23975         sqrt: Make gl_FUNC_SQRT requirable.
23976         * m4/sqrt.m4: New file.
23977         * modules/sqrt (Files): Add it.
23978         (configure.ac): Invoke gl_FUNC_SQRT.
23979
23980 2010-01-18  Bruno Haible  <bruno@clisp.org>
23981
23982         New modules for common <math.h> functions.
23983         * m4/mathfunc.m4: New file.
23984         * modules/acos: New file.
23985         * modules/asin: New file.
23986         * modules/atan: New file.
23987         * modules/atan2: New file.
23988         * modules/cbrt: New file.
23989         * modules/copysign: New file.
23990         * modules/cos: New file.
23991         * modules/cosh: New file.
23992         * modules/erf: New file.
23993         * modules/erfc: New file.
23994         * modules/exp: New file.
23995         * modules/fabs: New file.
23996         * modules/fmod: New file.
23997         * modules/hypot: New file.
23998         * modules/j0: New file.
23999         * modules/j1: New file.
24000         * modules/jn: New file.
24001         * modules/ldexp: New file.
24002         * modules/lgamma: New file.
24003         * modules/log: New file.
24004         * modules/log10: New file.
24005         * modules/log1p: New file.
24006         * modules/logb: New file.
24007         * modules/modf: New file.
24008         * modules/nextafter: New file.
24009         * modules/pow: New file.
24010         * modules/remainder: New file.
24011         * modules/rint: New file.
24012         * modules/sin: New file.
24013         * modules/sinh: New file.
24014         * modules/sqrt: New file.
24015         * modules/tan: New file.
24016         * modules/tanh: New file.
24017         * modules/y0: New file.
24018         * modules/y1: New file.
24019         * modules/yn: New file.
24020         * doc/posix-functions/acos.texi: Mention the 'acos' module.
24021         * doc/posix-functions/asin.texi: Mention the 'asin' module.
24022         * doc/posix-functions/atan.texi: Mention the 'atan' module.
24023         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
24024         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
24025         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
24026         * doc/posix-functions/cos.texi: Mention the 'cos' module.
24027         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
24028         * doc/posix-functions/erf.texi: Mention the 'erf' module.
24029         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
24030         * doc/posix-functions/exp.texi: Mention the 'exp' module.
24031         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
24032         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
24033         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
24034         * doc/posix-functions/j0.texi: Mention the 'j0' module.
24035         * doc/posix-functions/j1.texi: Mention the 'j1' module.
24036         * doc/posix-functions/jn.texi: Mention the 'jn' module.
24037         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
24038         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
24039         * doc/posix-functions/log.texi: Mention the 'log' module.
24040         * doc/posix-functions/log10.texi: Mention the 'log10' module.
24041         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
24042         * doc/posix-functions/logb.texi: Mention the 'logb' module.
24043         * doc/posix-functions/modf.texi: Mention the 'modf' module.
24044         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
24045         * doc/posix-functions/pow.texi: Mention the 'pow' module.
24046         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
24047         * doc/posix-functions/rint.texi: Mention the 'rint' module.
24048         * doc/posix-functions/sin.texi: Mention the 'sin' module.
24049         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
24050         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
24051         * doc/posix-functions/tan.texi: Mention the 'tan' module.
24052         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
24053         * doc/posix-functions/y0.texi: Mention the 'y0' module.
24054         * doc/posix-functions/y1.texi: Mention the 'y1' module.
24055         * doc/posix-functions/yn.texi: Mention the 'yn' module.
24056
24057 2010-01-18  Jim Meyering  <meyering@redhat.com>
24058
24059         ignore-value: relax license to LGPLv2+
24060         * modules/ignore-value (License): Relax to LGPLv2+.
24061
24062         getdate: don't leak when TZ contains two or more '"'s
24063         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
24064         double quote in TZ after the first one.
24065
24066         readtokens: do not leak internal token_lengths buffer
24067         * lib/readtokens.c (readtokens): Free the local, lengths,
24068         when the supplied "token_lengths" parameter is NULL.
24069
24070 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24071
24072         Fix a couple of missing LIBTHREAD link failures on AIX.
24073         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
24074         $(LIBTHREAD).
24075         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
24076
24077         Link test-poll against INET_PTON_LIB.
24078         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
24079         for inet_pton on Solaris 10.
24080
24081 2010-01-17  Bruno Haible  <bruno@clisp.org>
24082
24083         unistdio/*-sprintf: Fix typo in module description.
24084         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
24085         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
24086         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
24087         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
24088         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
24089         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
24090         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
24091         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24092
24093 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24094
24095         gnulib-tool: fix filelist for AIX, HP-UX ksh.
24096         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
24097         variables in shell case patterns, for AIX and HP-UX ksh.
24098
24099         Split large sed scripts, for HP-UX sed.
24100         * modules/stdio: Split sed scripts around 50 sed commands,
24101         to avoid HP-UX limit of 99 commands, in the near future.
24102         * modules/string: Likewise.
24103         * modules/unistd: Likewise.
24104
24105         gnulib-tool: avoid writing in the current directory.
24106         * gnulib-tool (func_emit_lib_Makefile_am)
24107         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
24108         not in the current directory, so concurrent gnulib-tool
24109         instances do not interfere.
24110
24111 2010-01-16  Jim Meyering  <meyering@redhat.com>
24112
24113         doc: update users.txt
24114         * users.txt: Add grep.
24115         (diffutils, gzip): Update URLs.
24116
24117 2010-01-12  Bruno Haible  <bruno@clisp.org>
24118
24119         posix_spawn: Avoid test failure on Cygwin.
24120         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
24121         characters.
24122         Reported by Simon Josefsson.
24123
24124 2010-01-12  Bruno Haible  <bruno@clisp.org>
24125
24126         * tests/test-cond.c (main): When skipping the test, show the reason.
24127
24128 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24129
24130         * lib/striconv.c (str_cd_iconv): Avoid if before free.
24131
24132 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24133
24134         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
24135         VC_LIST_ALWAYS_EXCLUDE_REGEX.
24136
24137 2010-01-12  Eric Blake  <ebb9@byu.net>
24138
24139         build: guarantee AS_VAR_IF
24140         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
24141         (gl_AS_VAR_IF): Move...
24142         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
24143         Reported by Simon Josefsson.
24144
24145 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24146
24147         * lib/stdio.in.h: Fix typo.
24148
24149 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24150
24151         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
24152         libgpg-error.
24153
24154 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24155
24156         * tests/test-xalloc-die.sh: Use $EXEEXT.
24157
24158 2010-01-12  Simon Josefsson  <simon@josefsson.org>
24159             Bruno Haible  <bruno@clisp.org>
24160
24161         getlogin, getlogin_r: Avoid test failure.
24162         * tests/test-getlogin.c: Include <stdio.h>.
24163         (main): Skip the test when the function fails because stdin is not a
24164         tty.
24165         * tests/test-getlogin_r.c: Include <stdio.h>.
24166         (main): Skip the test when the function fails because stdin is not a
24167         tty.
24168
24169 2010-01-11  Eric Blake  <ebb9@byu.net>
24170
24171         tests: avoid more large file warnings
24172         * tests/test-fflush.c: Avoid warning about ftell use.
24173         * tests/test-fseek.c: Avoid warning about fseek use.
24174
24175 2010-01-10  Bruno Haible  <bruno@clisp.org>
24176
24177         nproc: Work better on Linux when /proc and /sys are not mounted.
24178         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
24179         as lower bound when, on glibc/Linux systems,
24180         sysconf (_SC_NPROCESSORS_CONF) returns 1.
24181         Suggested by Pádraig Brady <P@draigbrady.com>.
24182         Reported by Dmitry V. Levin <ldv@altlinux.org>.
24183
24184         nproc: Refactor.
24185         * lib/nproc.c (num_processors_via_affinity_mask): New function,
24186         extracted from num_processors.
24187         (num_processors): Call it.
24188
24189 2010-01-11  Jim Meyering  <meyering@redhat.com>
24190
24191         utimecmp: avoid new warning from upcoming gcc-4.5.0
24192         * lib/utimecmp.c (BILLION): Define using #define rather than an
24193         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
24194
24195 2010-01-11  Eric Blake  <ebb9@byu.net>
24196
24197         math: add portability warnings for classification macros
24198         * modules/math (Depends-on): Add warn-on-use.
24199         (Makefile.am): Provide new substitutions.
24200         * m4/math_h.m4 (gl_MATH_H): Require inline.
24201         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
24202         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
24203         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
24204         implement warnings.
24205
24206         unistd: warn on use of environ without module
24207         * modules/unistd (Depends-on): Add warn-on-use.
24208         (Makefile.am): Provide new substitutions.
24209         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
24210         * lib/unistd.in.h (environ): Wrap with a warning helper function.
24211
24212         stdio: warn on suspicious uses
24213         * modules/stdio (Depends-on): Add warn-on-use.
24214         (Makefile.am): Provide new substitutions.
24215         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
24216         fseeko.
24217         * lib/stdio.in.h (gets): Always warn on use.
24218         (fseek, ftell): Adjust when warnings are issued, and honor
24219         _GL_NO_LARGE_FILES as a way to silence the warning.
24220         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
24221         any warning about large file offsets.
24222         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
24223         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
24224         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
24225         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
24226         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
24227         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
24228         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
24229         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
24230
24231         warn-on-use: new module
24232         * modules/warn-on-use: New file.
24233         * build-aux/warn-on-use.h: Likewise.
24234         * m4/warn-on-use.m4: Likewise.
24235         * MODULES.html.sh (Support for building): Mention it.
24236
24237 2010-01-10  Bruno Haible  <bruno@clisp.org>
24238
24239         Tests for module 'unistr/u32-strdup'.
24240         * modules/unistr/u32-strdup-tests: New file.
24241         * tests/unistr/test-u32-strdup.c: New file.
24242
24243         Tests for module 'unistr/u16-strdup'.
24244         * modules/unistr/u16-strdup-tests: New file.
24245         * tests/unistr/test-u16-strdup.c: New file.
24246
24247         Tests for module 'unistr/u8-strdup'.
24248         * modules/unistr/u8-strdup-tests: New file.
24249         * tests/unistr/test-u8-strdup.c: New file.
24250         * tests/unistr/test-strdup.h: New file.
24251
24252         Tests for module 'unistr/u32-strncmp'.
24253         * modules/unistr/u32-strncmp-tests: New file.
24254         * tests/unistr/test-u32-strncmp.c: New file.
24255
24256         Tests for module 'unistr/u16-strncmp'.
24257         * modules/unistr/u16-strncmp-tests: New file.
24258         * tests/unistr/test-u16-strncmp.c: New file.
24259
24260         Tests for module 'unistr/u8-strncmp'.
24261         * modules/unistr/u8-strncmp-tests: New file.
24262         * tests/unistr/test-u8-strncmp.c: New file.
24263         * tests/unistr/test-strncmp.h: New file.
24264
24265         Tests for module 'unistr/u32-strcoll'.
24266         * modules/unistr/u32-strcoll-tests: New file.
24267         * tests/unistr/test-u32-strcoll.c: New file.
24268
24269         Tests for module 'unistr/u16-strcoll'.
24270         * modules/unistr/u16-strcoll-tests: New file.
24271         * tests/unistr/test-u16-strcoll.c: New file.
24272
24273         Tests for module 'unistr/u8-strcoll'.
24274         * modules/unistr/u8-strcoll-tests: New file.
24275         * tests/unistr/test-u8-strcoll.c: New file.
24276
24277         Tests for module 'unistr/u32-strcmp'.
24278         * modules/unistr/u32-strcmp-tests: New file.
24279         * tests/unistr/test-u32-strcmp.c: New file.
24280         * tests/unistr/test-u32-strcmp.h: New file.
24281
24282         Tests for module 'unistr/u16-strcmp'.
24283         * modules/unistr/u16-strcmp-tests: New file.
24284         * tests/unistr/test-u16-strcmp.c: New file.
24285         * tests/unistr/test-u16-strcmp.h: New file.
24286
24287         Tests for module 'unistr/u8-strcmp'.
24288         * modules/unistr/u8-strcmp-tests: New file.
24289         * tests/unistr/test-u8-strcmp.c: New file.
24290         * tests/unistr/test-u8-strcmp.h: New file.
24291         * tests/unistr/test-strcmp.h: New file.
24292
24293         Tests for module 'unistr/u32-strncat'.
24294         * modules/unistr/u32-strncat-tests: New file.
24295         * tests/unistr/test-u32-strncat.c: New file.
24296
24297         Tests for module 'unistr/u16-strncat'.
24298         * modules/unistr/u16-strncat-tests: New file.
24299         * tests/unistr/test-u16-strncat.c: New file.
24300
24301         Tests for module 'unistr/u8-strncat'.
24302         * modules/unistr/u8-strncat-tests: New file.
24303         * tests/unistr/test-u8-strncat.c: New file.
24304         * tests/unistr/test-strncat.h: New file.
24305
24306         Tests for module 'unistr/u32-strcat'.
24307         * modules/unistr/u32-strcat-tests: New file.
24308         * tests/unistr/test-u32-strcat.c: New file.
24309
24310         Tests for module 'unistr/u16-strcat'.
24311         * modules/unistr/u16-strcat-tests: New file.
24312         * tests/unistr/test-u16-strcat.c: New file.
24313
24314         Tests for module 'unistr/u8-strcat'.
24315         * modules/unistr/u8-strcat-tests: New file.
24316         * tests/unistr/test-u8-strcat.c: New file.
24317         * tests/unistr/test-strcat.h: New file.
24318
24319         Tests for module 'unistr/u32-stpncpy'.
24320         * modules/unistr/u32-stpncpy-tests: New file.
24321         * tests/unistr/test-u32-stpncpy.c: New file.
24322
24323         Tests for module 'unistr/u16-stpncpy'.
24324         * modules/unistr/u16-stpncpy-tests: New file.
24325         * tests/unistr/test-u16-stpncpy.c: New file.
24326
24327         Tests for module 'unistr/u8-stpncpy'.
24328         * modules/unistr/u8-stpncpy-tests: New file.
24329         * tests/unistr/test-u8-stpncpy.c: New file.
24330         * tests/unistr/test-stpncpy.h: New file.
24331
24332         Tests for module 'unistr/u32-strncpy'.
24333         * modules/unistr/u32-strncpy-tests: New file.
24334         * tests/unistr/test-u32-strncpy.c: New file.
24335
24336         Tests for module 'unistr/u16-strncpy'.
24337         * modules/unistr/u16-strncpy-tests: New file.
24338         * tests/unistr/test-u16-strncpy.c: New file.
24339
24340         Tests for module 'unistr/u8-strncpy'.
24341         * modules/unistr/u8-strncpy-tests: New file.
24342         * tests/unistr/test-u8-strncpy.c: New file.
24343         * tests/unistr/test-strncpy.h: New file.
24344
24345         Tests for module 'unistr/u32-stpcpy'.
24346         * modules/unistr/u32-stpcpy-tests: New file.
24347         * tests/unistr/test-u32-stpcpy.c: New file.
24348
24349         Tests for module 'unistr/u16-stpcpy'.
24350         * modules/unistr/u16-stpcpy-tests: New file.
24351         * tests/unistr/test-u16-stpcpy.c: New file.
24352
24353         Tests for module 'unistr/u8-stpcpy'.
24354         * modules/unistr/u8-stpcpy-tests: New file.
24355         * tests/unistr/test-u8-stpcpy.c: New file.
24356         * tests/unistr/test-stpcpy.h: New file.
24357
24358         Tests for module 'unistr/u32-strcpy'.
24359         * modules/unistr/u32-strcpy-tests: New file.
24360         * tests/unistr/test-u32-strcpy.c: New file.
24361
24362         Tests for module 'unistr/u16-strcpy'.
24363         * modules/unistr/u16-strcpy-tests: New file.
24364         * tests/unistr/test-u16-strcpy.c: New file.
24365
24366         Tests for module 'unistr/u8-strcpy'.
24367         * modules/unistr/u8-strcpy-tests: New file.
24368         * tests/unistr/test-u8-strcpy.c: New file.
24369         * tests/unistr/test-strcpy.h: New file.
24370
24371         Tests for module 'unistr/u32-strnlen'.
24372         * modules/unistr/u32-strnlen-tests: New file.
24373         * tests/unistr/test-u32-strnlen.c: New file.
24374
24375         Tests for module 'unistr/u16-strnlen'.
24376         * modules/unistr/u16-strnlen-tests: New file.
24377         * tests/unistr/test-u16-strnlen.c: New file.
24378
24379         Tests for module 'unistr/u8-strnlen'.
24380         * modules/unistr/u8-strnlen-tests: New file.
24381         * tests/unistr/test-u8-strnlen.c: New file.
24382         * tests/unistr/test-strnlen.h: New file.
24383
24384         Tests for module 'unistr/u32-strlen'.
24385         * modules/unistr/u32-strlen-tests: New file.
24386         * tests/unistr/test-u32-strlen.c: New file.
24387
24388         Tests for module 'unistr/u16-strlen'.
24389         * modules/unistr/u16-strlen-tests: New file.
24390         * tests/unistr/test-u16-strlen.c: New file.
24391
24392         Tests for module 'unistr/u8-strlen'.
24393         * modules/unistr/u8-strlen-tests: New file.
24394         * tests/unistr/test-u8-strlen.c: New file.
24395
24396         Tests for module 'unistr/u32-prev'.
24397         * modules/unistr/u32-prev-tests: New file.
24398         * tests/unistr/test-u32-prev.c: New file.
24399
24400         Tests for module 'unistr/u16-prev'.
24401         * modules/unistr/u16-prev-tests: New file.
24402         * tests/unistr/test-u16-prev.c: New file.
24403
24404         Tests for module 'unistr/u8-prev'.
24405         * modules/unistr/u8-prev-tests: New file.
24406         * tests/unistr/test-u8-prev.c: New file.
24407
24408         Tests for module 'unistr/u32-next'.
24409         * modules/unistr/u32-next-tests: New file.
24410         * tests/unistr/test-u32-next.c: New file.
24411
24412         Tests for module 'unistr/u16-next'.
24413         * modules/unistr/u16-next-tests: New file.
24414         * tests/unistr/test-u16-next.c: New file.
24415
24416         Tests for module 'unistr/u8-next'.
24417         * modules/unistr/u8-next-tests: New file.
24418         * tests/unistr/test-u8-next.c: New file.
24419
24420         Tests for module 'unistr/u32-strmbtouc'.
24421         * modules/unistr/u32-strmbtouc-tests: New file.
24422         * tests/unistr/test-u32-strmbtouc.c: New file.
24423
24424         Tests for module 'unistr/u16-strmbtouc'.
24425         * modules/unistr/u16-strmbtouc-tests: New file.
24426         * tests/unistr/test-u16-strmbtouc.c: New file.
24427
24428         Tests for module 'unistr/u8-strmbtouc'.
24429         * modules/unistr/u8-strmbtouc-tests: New file.
24430         * tests/unistr/test-u8-strmbtouc.c: New file.
24431
24432         Tests for module 'unistr/u32-strmblen'.
24433         * modules/unistr/u32-strmblen-tests: New file.
24434         * tests/unistr/test-u32-strmblen.c: New file.
24435
24436         Tests for module 'unistr/u16-strmblen'.
24437         * modules/unistr/u16-strmblen-tests: New file.
24438         * tests/unistr/test-u16-strmblen.c: New file.
24439
24440         Tests for module 'unistr/u8-strmblen'.
24441         * modules/unistr/u8-strmblen-tests: New file.
24442         * tests/unistr/test-u8-strmblen.c: New file.
24443
24444         Tests for module 'unistr/u32-cpy-alloc'.
24445         * modules/unistr/u32-cpy-alloc-tests: New file.
24446         * tests/unistr/test-u32-cpy-alloc.c: New file.
24447
24448         Tests for module 'unistr/u16-cpy-alloc'.
24449         * modules/unistr/u16-cpy-alloc-tests: New file.
24450         * tests/unistr/test-u16-cpy-alloc.c: New file.
24451
24452         Tests for module 'unistr/u8-cpy-alloc'.
24453         * modules/unistr/u8-cpy-alloc-tests: New file.
24454         * tests/unistr/test-u8-cpy-alloc.c: New file.
24455         * tests/unistr/test-cpy-alloc.h: New file.
24456
24457         Tests for module 'unistr/u32-mbsnlen'.
24458         * modules/unistr/u32-mbsnlen-tests: New file.
24459         * tests/unistr/test-u32-mbsnlen.c: New file.
24460
24461         Tests for module 'unistr/u16-mbsnlen'.
24462         * modules/unistr/u16-mbsnlen-tests: New file.
24463         * tests/unistr/test-u16-mbsnlen.c: New file.
24464
24465         Tests for module 'unistr/u8-mbsnlen'.
24466         * modules/unistr/u8-mbsnlen-tests: New file.
24467         * tests/unistr/test-u8-mbsnlen.c: New file.
24468
24469         Tests for module 'unistr/u32-chr'.
24470         * modules/unistr/u32-chr-tests: New file.
24471         * tests/unistr/test-u32-chr.c: New file.
24472
24473         Tests for module 'unistr/u16-chr'.
24474         * modules/unistr/u16-chr-tests: New file.
24475         * tests/unistr/test-u16-chr.c: New file.
24476
24477         Tests for module 'unistr/u8-chr'.
24478         * modules/unistr/u8-chr-tests: New file.
24479         * tests/unistr/test-u8-chr.c: New file.
24480         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
24481
24482         Tests for module 'unistr/u32-cmp2'.
24483         * modules/unistr/u32-cmp2-tests: New file.
24484         * tests/unistr/test-u32-cmp2.c: New file.
24485
24486         Tests for module 'unistr/u16-cmp2'.
24487         * modules/unistr/u16-cmp2-tests: New file.
24488         * tests/unistr/test-u16-cmp2.c: New file.
24489
24490         Tests for module 'unistr/u8-cmp2'.
24491         * modules/unistr/u8-cmp2-tests: New file.
24492         * tests/unistr/test-u8-cmp2.c: New file.
24493         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
24494
24495         Tests for module 'unistr/u32-cmp'.
24496         * modules/unistr/u32-cmp-tests: New file.
24497         * tests/unistr/test-u32-cmp.c: New file.
24498
24499         Tests for module 'unistr/u16-cmp'.
24500         * modules/unistr/u16-cmp-tests: New file.
24501         * tests/unistr/test-u16-cmp.c: New file.
24502
24503         Tests for module 'unistr/u8-cmp'.
24504         * modules/unistr/u8-cmp-tests: New file.
24505         * tests/unistr/test-u8-cmp.c: New file.
24506         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
24507
24508         Tests for module 'unistr/u32-set'.
24509         * modules/unistr/u32-set-tests: New file.
24510         * tests/unistr/test-u32-set.c: New file.
24511
24512         Tests for module 'unistr/u16-set'.
24513         * modules/unistr/u16-set-tests: New file.
24514         * tests/unistr/test-u16-set.c: New file.
24515
24516         Tests for module 'unistr/u8-set'.
24517         * modules/unistr/u8-set-tests: New file.
24518         * tests/unistr/test-u8-set.c: New file.
24519         * tests/unistr/test-set.h: New file.
24520
24521         Tests for module 'unistr/u32-move'.
24522         * modules/unistr/u32-move-tests: New file.
24523         * tests/unistr/test-u32-move.c: New file.
24524
24525         Tests for module 'unistr/u16-move'.
24526         * modules/unistr/u16-move-tests: New file.
24527         * tests/unistr/test-u16-move.c: New file.
24528
24529         Tests for module 'unistr/u8-move'.
24530         * modules/unistr/u8-move-tests: New file.
24531         * tests/unistr/test-u8-move.c: New file.
24532         * tests/unistr/test-move.h: New file.
24533
24534         Tests for module 'unistr/u32-cpy'.
24535         * modules/unistr/u32-cpy-tests: New file.
24536         * tests/unistr/test-u32-cpy.c: New file.
24537
24538         Tests for module 'unistr/u16-cpy'.
24539         * modules/unistr/u16-cpy-tests: New file.
24540         * tests/unistr/test-u16-cpy.c: New file.
24541
24542         Tests for module 'unistr/u8-cpy'.
24543         * modules/unistr/u8-cpy-tests: New file.
24544         * tests/unistr/test-u8-cpy.c: New file.
24545         * tests/unistr/test-cpy.h: New file.
24546
24547 2010-01-09  Bruno Haible  <bruno@clisp.org>
24548
24549         Tests for module 'unistr/u32-uctomb'.
24550         * modules/unistr/u32-uctomb-tests: New file.
24551         * tests/unistr/test-u32-uctomb.c: New file.
24552
24553         Tests for module 'unistr/u16-uctomb'.
24554         * modules/unistr/u16-uctomb-tests: New file.
24555         * tests/unistr/test-u16-uctomb.c: New file.
24556
24557         Tests for module 'unistr/u8-uctomb'.
24558         * modules/unistr/u8-uctomb-tests: New file.
24559         * tests/unistr/test-u8-uctomb.c: New file.
24560
24561         Tests for module 'unistr/u32-mbtoucr'.
24562         * modules/unistr/u32-mbtoucr-tests: New file.
24563         * tests/unistr/test-u32-mbtoucr.c: New file.
24564
24565         Tests for module 'unistr/u16-mbtoucr'.
24566         * modules/unistr/u16-mbtoucr-tests: New file.
24567         * tests/unistr/test-u16-mbtoucr.c: New file.
24568
24569         Tests for module 'unistr/u8-mbtoucr'.
24570         * modules/unistr/u8-mbtoucr-tests: New file.
24571         * tests/unistr/test-u8-mbtoucr.c: New file.
24572
24573         Tests for module 'unistr/u32-mbtouc'.
24574         * modules/unistr/u32-mbtouc-tests: New file.
24575         * tests/unistr/test-u32-mbtouc.c: New file.
24576
24577         Tests for module 'unistr/u16-mbtouc'.
24578         * modules/unistr/u16-mbtouc-tests: New file.
24579         * tests/unistr/test-u16-mbtouc.c: New file.
24580
24581         Tests for module 'unistr/u8-mbtouc'.
24582         * modules/unistr/u8-mbtouc-tests: New file.
24583         * tests/unistr/test-u8-mbtouc.c: New file.
24584
24585         Tests for module 'unistr/u32-mbtouc-unsafe'.
24586         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
24587         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
24588         * tests/unistr/test-u32-mbtouc.h: New file.
24589
24590         Tests for module 'unistr/u16-mbtouc-unsafe'.
24591         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
24592         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
24593         * tests/unistr/test-u16-mbtouc.h: New file.
24594
24595         Tests for module 'unistr/u8-mbtouc-unsafe'.
24596         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
24597         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
24598         * tests/unistr/test-u8-mbtouc.h: New file.
24599
24600         Tests for module 'unistr/u32-mblen'.
24601         * modules/unistr/u32-mblen-tests: New file.
24602         * tests/unistr/test-u32-mblen.c: New file.
24603
24604         Tests for module 'unistr/u16-mblen'.
24605         * modules/unistr/u16-mblen-tests: New file.
24606         * tests/unistr/test-u16-mblen.c: New file.
24607
24608         Tests for module 'unistr/u8-mblen'.
24609         * modules/unistr/u8-mblen-tests: New file.
24610         * tests/unistr/test-u8-mblen.c: New file.
24611
24612         Tests for module 'unistr/u32-to-u16'.
24613         * modules/unistr/u32-to-u16-tests: New file.
24614         * tests/unistr/test-u32-to-u16.c: New file.
24615
24616         Tests for module 'unistr/u32-to-u8'.
24617         * modules/unistr/u32-to-u8-tests: New file.
24618         * tests/unistr/test-u32-to-u8.c: New file.
24619
24620         Tests for module 'unistr/u16-to-u32'.
24621         * modules/unistr/u16-to-u32-tests: New file.
24622         * tests/unistr/test-u16-to-u32.c: New file.
24623
24624         Tests for module 'unistr/u16-to-u8'.
24625         * modules/unistr/u16-to-u8-tests: New file.
24626         * tests/unistr/test-u16-to-u8.c: New file.
24627
24628         Tests for module 'unistr/u8-to-u32'.
24629         * modules/unistr/u8-to-u32-tests: New file.
24630         * tests/unistr/test-u8-to-u32.c: New file.
24631
24632         Tests for module 'unistr/u8-to-u16'.
24633         * modules/unistr/u8-to-u16-tests: New file.
24634         * tests/unistr/test-u8-to-u16.c: New file.
24635
24636         Tests for module 'unistr/u32-check'.
24637         * modules/unistr/u32-check-tests: New file.
24638         * tests/unistr/test-u32-check.c: New file.
24639
24640         Tests for module 'unistr/u16-check'.
24641         * modules/unistr/u16-check-tests: New file.
24642         * tests/unistr/test-u16-check.c: New file.
24643
24644         Tests for module 'unistr/u8-check'.
24645         * modules/unistr/u8-check-tests: New file.
24646         * tests/unistr/test-u8-check.c: New file.
24647
24648         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
24649         (category_equals): New function.
24650         (main): Add more tests.
24651         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
24652
24653         * tests/unictype/test-bidi_byname.c (main): Add more tests.
24654
24655 2010-01-10  Bruno Haible  <bruno@clisp.org>
24656
24657         unistr/u*-strcoll: Try harder to distinguish different strings.
24658         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
24659         compare s1 and s2 to see if they are different.
24660
24661 2010-01-10  Bruno Haible  <bruno@clisp.org>
24662
24663         unistr/u*-stpncpy: Fix the return value.
24664         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
24665         description of the return value consistent with stpncpy in glibc.
24666         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
24667         written non-NUL unit.
24668
24669 2010-01-10  Bruno Haible  <bruno@clisp.org>
24670
24671         unistr/u*-next: Add missing dependencies.
24672         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
24673         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
24674         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
24675
24676 2010-01-10  Bruno Haible  <bruno@clisp.org>
24677
24678         unistr/u8-mbsnlen: Fix return value for incomplete character.
24679         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
24680         u8_mblen.
24681         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
24682         Remove unistr/u8-mblen.
24683         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
24684         u16_mblen.
24685         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
24686         Remove unistr/u16-mblen.
24687
24688 2010-01-10  Bruno Haible  <bruno@clisp.org>
24689
24690         wchar: Fix compilation error when <wchar.h> is used from coreutils.
24691         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
24692         Reported by Brian Gough <bjg@gnu.org> and
24693         Chris Clayton <chris2553@googlemail.com> via
24694         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
24695
24696 2010-01-09  Bruno Haible  <bruno@clisp.org>
24697
24698         unistr/u16-to-u32: Reject invalid input.
24699         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
24700         u16_mbtouc.
24701         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
24702         Remove unistr/u16-mbtouc.
24703
24704         unistr/u16-to-u8: Reject invalid input.
24705         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
24706         u16_mbtouc.
24707         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
24708         Remove unistr/u16-mbtouc.
24709
24710         unistr/u8-to-u32: Reject invalid input.
24711         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
24712         u8_mbtouc.
24713         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
24714         Remove unistr/u8-mbtouc.
24715
24716         unistr/u8-to-u16: Reject invalid input.
24717         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
24718         u8_mbtouc.
24719         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
24720         Remove unistr/u8-mbtouc.
24721
24722 2010-01-09  Bruno Haible  <bruno@clisp.org>
24723
24724         Tests for module 'getlogin'.
24725         * modules/getlogin-tests: New file.
24726         * tests/test-getlogin.c: New file.
24727
24728         New module 'getlogin'.
24729         * lib/unistd.in.h (getlogin): New declaration.
24730         * lib/getlogin.c: New file.
24731         * m4/getlogin.m4: New file.
24732         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
24733         HAVE_GETLOGIN.
24734         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
24735         HAVE_GETLOGIN.
24736         * modules/getlogin: New file.
24737         * doc/posix-functions/getlogin.texi: Mention the new module.
24738         Reported by John W. Eaton <jwe@gnu.org>.
24739
24740 2010-01-09  Bruno Haible  <bruno@clisp.org>
24741
24742         getlogin_r: Support for native Windows.
24743         * lib/getlogin_r.c: Include <windows.h>
24744         (getlogin_r): Implement for native Windows.
24745         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
24746         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
24747         via John W. Eaton <jwe@gnu.org>.
24748
24749 2010-01-09  Bruno Haible  <bruno@clisp.org>
24750
24751         getlogin_r: Small fixes.
24752         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
24753         succeeds.
24754         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
24755         before testing whether getlogin_r is declared. No need to set
24756         HAVE_DECL_GETLOGIN_R to 1.
24757         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
24758
24759 2010-01-09  Bruno Haible  <bruno@clisp.org>
24760
24761         * lib/unistd.in.h (getlogin_r): Add comment.
24762
24763 2010-01-09  Bruno Haible  <bruno@clisp.org>
24764
24765         Tests for module 'getlogin_r'.
24766         * modules/getlogin_r-tests: New file.
24767         * tests/test-getlogin_r.c: New file.
24768
24769 2010-01-09  Jim Meyering  <meyering@redhat.com>
24770
24771         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
24772         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
24773         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
24774
24775 2010-01-08  Simon Josefsson  <simon@josefsson.org>
24776
24777         * lib/dup2.c (rpl_dup2): Improve comment.
24778
24779 2010-01-08  Eric Blake  <ebb9@byu.net>
24780
24781         maint.mk: allow packages to add makefile @@ exceptions
24782         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
24783         (sc_makefile_check): Rename...
24784         (sc_makefile_at_at_check): ...to this, and use hook.
24785
24786         dup2: work around mingw bug
24787         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
24788         Reported by Simon Josefsson.
24789
24790 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
24791
24792         glob: Fix C++ compilation.
24793         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
24794         C++.
24795
24796 2010-01-07  Bruno Haible  <bruno@clisp.org>
24797
24798         Fix indentation of wctype.in.h, broken since 2007-01-06.
24799         * lib/wctype.in.h: Fix indentation of preprocessor directives.
24800
24801 2010-01-07  Bruno Haible  <bruno@clisp.org>
24802
24803         mbslen: Avoid collision with system function.
24804         * lib/string.in.h [MirBSD]: Include <wchar.h>.
24805         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
24806         * m4/mbslen.m4: New file.
24807         * modules/mbslen (Files): Add it.
24808         (configure.ac): Invoke gl_MBSLEN.
24809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
24810         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
24811         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
24812         via Ian Beckwith <ianb@erislabs.net>.
24813
24814 2010-01-07  Bruno Haible  <bruno@clisp.org>
24815
24816         dirent: Document the last fix.
24817         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
24818
24819 2010-01-07  Bruno Haible  <bruno@clisp.org>
24820
24821         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
24822         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
24823         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
24824         va_list are defined.
24825         * doc/posix-headers/stdio.texi: Document the bug of missing types.
24826         Reported by Eric Blake.
24827
24828 2010-01-07  Bruno Haible  <bruno@clisp.org>
24829
24830         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
24831         * modules/xlist (Depends-on): Add 'list',
24832         * modules/xoset (Depends-on): Add 'oset'.
24833         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24834
24835 2010-01-07  Bruno Haible  <bruno@clisp.org>
24836
24837         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
24838         * doc/posix-functions/strncasecmp.texi: Likewise.
24839
24840 2010-01-07  Bruno Haible  <bruno@clisp.org>
24841
24842         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
24843
24844 2010-01-07  John W. Eaton  <jwe@octave.org>
24845
24846         wctype: allow C++ use
24847         * lib/wctype.in.h: Add extern "C" block for C++.
24848
24849 2010-01-06  Eric Blake  <ebb9@byu.net>
24850
24851         maint.mk: detect incorrect GFDL usage
24852         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
24853
24854 2010-01-06  Jim Meyering  <meyering@redhat.com>
24855         and Eric Blake  <ebb9@byu.net>
24856
24857         maint.mk: ignore multi-line copyright in NEWS
24858         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
24859
24860 2010-01-06  Eric Blake  <ebb9@byu.net>
24861
24862         select: add missing dependency
24863         * modules/select-tests (Depends-on): Move sockets dependency...
24864         * modules/select (Depends-on): ...here.
24865         Reported by Ian Beckwith.
24866
24867         doc: regenerate INSTALL
24868         * doc/INSTALL: Reflect recent autoconf update.
24869         * doc/INSTALL.ISO: Likewise.
24870         * doc/INSTALL.UTF-8: Likewise.
24871
24872         pread: fix compilation on glibc
24873         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
24874         Reported by Ralf Wildenhues.
24875
24876         dirent: fix test failure
24877         * lib/dirent.in.h (includes): Guarantee ino_t.
24878         Reported by Ralf Wildenhues.
24879
24880 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
24881
24882         linkat, renameat: avoid bad free
24883         * lib/at-func2.c (at_func2): Fix typo.
24884         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
24885
24886 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24887
24888         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
24889         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
24890         to avoid failure of symlink test later.
24891
24892 2010-01-06  Eric Blake  <ebb9@byu.net>
24893
24894         stdio, unistd: guarantee ssize_t
24895         * lib/unistd.in.h (includes): Ensure that types required by POSIX
24896         2008 are exposed when needed.
24897         * lib/stdio.in.h (includes): Likewise.
24898         Reported by Ralf Wildenhues.
24899
24900 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
24901
24902         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
24903         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
24904         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
24905
24906 2010-01-06  Jim Meyering  <meyering@redhat.com>
24907
24908         readtokens: this module *does* require xalloc.h
24909         It uses only functions that were omitted by the old syntax-check rule.
24910         * lib/readtokens.c: Include "xalloc.h" once again.
24911         * modules/readtokens (Depends-on): Add xalloc.
24912         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
24913
24914 2010-01-05  Eric Blake  <ebb9@byu.net>
24915
24916         maint: support 'make announcement' from a VPATH build
24917         * top/maint.mk (announcement): Look for correct NEWS file.
24918
24919 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
24920
24921         utimens (fdutimens): ignore a negative FD, per contract
24922         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
24923         when we have a valid file descriptor.  Otherwise, using a brand
24924         new glibc (with just-patched futimens that now fails with EBADF)
24925         would cause this function to fail with ENOSYS.
24926         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
24927         See also http://bugzilla.redhat.com/552320.
24928
24929 2010-01-05  Eric Blake  <ebb9@byu.net>
24930
24931         strcase: document what it provides
24932         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
24933         gnulib module.
24934         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
24935         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
24936
24937 2010-01-05  Jim Meyering  <meyering@redhat.com>
24938
24939         maint: remove useless inclusions of "xalloc.h"
24940         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
24941         * lib/readtokens.c: Likewise.
24942         * lib/same.c: Likewise.
24943         * modules/getloadavg (Depends-on): Remove xalloc.
24944         * modules/readtokens: Likewise.
24945         * modules/same: Likewise.
24946
24947         maint.mk: include 4 more function names in alloca.h-checking regexp
24948         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
24949         regexp.  Before, we would give a false-positive (saying alloca.h
24950         is included unnecessarily) when the only uses involved omitted symbols.
24951
24952         xalloc.h: use consistent formatting
24953         * lib/xalloc.h: Move declarations to start in the first column.
24954
24955 2010-01-05  Eric Blake  <ebb9@byu.net>
24956
24957         mkdir: avoid xalloc
24958         * lib/mkdir.c (includes): Drop unused header.
24959         Reported by John W. Eaton.
24960
24961 2010-01-04  Jim Meyering  <meyering@redhat.com>
24962
24963         nl_langinfo: avoid configure-time syntax error
24964         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
24965         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
24966         the empty string.  Don't let that provoke a shell syntax error.
24967
24968         regcomp, regexec, fnmatch: avoid array bounds read error
24969         * lib/regcomp.c (build_equiv_class): From glibc:
24970         Use only the low 24 bits of a findidx return value as an index
24971         into the weights array.  Patch by Ulrich Drepper:
24972         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
24973         * lib/regexec.c (check_node_accept_bytes): Likewise.
24974         * lib/fnmatch_loop.c (FCT): Likewise.
24975
24976         regcomp: skip collseq lookup when there are no rules
24977         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
24978         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
24979
24980         regcomp: recognize ill-formed { } expressions
24981         * lib/regcomp.c (parse_dup_op): From glibc:
24982         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
24983
24984         regcomp: fix typo in comment
24985         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
24986         s/satisfy/satisfies/.
24987
24988         regcomp: sync from glibc: remove dead store
24989         * lib/regcomp.c (duplicate_node_closure): Remove useless
24990         search_duplicated_node call and dead store.
24991
24992         regcomp: sync from glibc; always use nl_langinfo
24993         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
24994         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
24995         * modules/regex (Depends-on): Add nl_langinfo.
24996
24997 2010-01-04  Eric Blake  <ebb9@byu.net>
24998
24999         fdopendir: fix configure test
25000         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
25001
25002 2010-01-01  Bruno Haible  <bruno@clisp.org>
25003
25004         wchar: Remove unused configure check.
25005         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
25006
25007 2010-01-01  Eric Blake  <ebb9@byu.net>
25008
25009         headers: make check of system header explicit
25010         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
25011         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
25012         ourselves.
25013         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
25014         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25015         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
25016         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
25017         internals.
25018         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
25019         missing.
25020         Suggested by Bruno Haible.
25021
25022 2010-01-01  Jim Meyering  <meyering@redhat.com>
25023
25024         ChangeLog: tweak to eliminate unnecessary copyright line
25025         * ChangeLog: Remove a copyright line that was mistakenly updated
25026         by today's update-copyright run.  Reported by Eric Blake.
25027
25028         test-update-copyright: don't let envvar setting cause test failure
25029         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25030
25031 2010-01-01  Bruno Haible  <bruno@clisp.org>
25032
25033         localename: Avoid gcc warning.
25034         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
25035         function if it is not used.
25036
25037 2010-01-01  Jim Meyering  <meyering@redhat.com>
25038
25039         update nearly all FSF copyright year lists to include 2010
25040         Use the same procedure as for 2009, outlined in
25041         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
25042
25043         version-etc: set COPYRIGHT_YEAR to 2010
25044         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
25045
25046 2009-12-31  Eric Blake  <ebb9@byu.net>
25047
25048         doc: correct availability of cygwin 1.5.x getopt
25049         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
25050         variables.
25051         * doc/posix-functions/opterr.texi (opterr): Likewise.
25052         * doc/posix-functions/optind.texi (optind): Likewise.
25053         * doc/posix-functions/optopt.texi (optopt): Likewise.
25054         * doc/posix-functions/tzname.texi (tzname): Likewise.
25055
25056         openat: update maintainer
25057         * modules/openat (Maintainer): Add myself.
25058
25059         utimens: avoid shadowing warning
25060         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
25061         buffers into one, to avoid shadowing, as well as avoiding a
25062         redundant stat.
25063         Reported by Jim Meyering.
25064
25065         test-dup2: avoid compiler warning
25066         * tests/test-dup2.c (is_inheritable): Only define if used.
25067
25068 2010-01-01  Bruno Haible  <bruno@clisp.org>
25069
25070         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
25071         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
25072         defined, use wctomb instead of wcrtomb.
25073
25074 2010-01-01  Bruno Haible  <bruno@clisp.org>
25075
25076         iconv: Reject native Solaris iconv.
25077         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
25078         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
25079
25080 2009-12-31  Bruno Haible  <bruno@clisp.org>
25081
25082         * tests/test-signal.c (main): Remove test of 'SIG'.
25083
25084 2009-12-31  Bruno Haible  <bruno@clisp.org>
25085
25086         spawn: Fix incomplete fix.
25087         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25088         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25089         warnings for GNULIB_POSIXCHECK again.
25090         Reported by Eric Blake.
25091
25092 2009-12-31  Bruno Haible  <bruno@clisp.org>
25093
25094         Avoid namespace pollution on glibc systems.
25095         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
25096         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
25097         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
25098         glibc systems.
25099
25100 2009-12-31  Bruno Haible  <bruno@clisp.org>
25101
25102         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
25103         (gl_REPLACE_WCHAR_H): Turn into a no-op.
25104         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
25105         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
25106         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
25107         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
25108         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
25109
25110 2009-12-31  Bruno Haible  <bruno@clisp.org>
25111
25112         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
25113         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
25114         afterwards.
25115
25116 2009-12-31  Bruno Haible  <bruno@clisp.org>
25117
25118         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
25119         SYS_UTSNAME_H.
25120
25121 2009-12-31  Bruno Haible  <bruno@clisp.org>
25122
25123         spawn: Fix misapplied patch.
25124         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
25125         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
25126         warnings for GNULIB_POSIXCHECK.
25127
25128 2009-12-31  Bruno Haible  <bruno@clisp.org>
25129
25130         times: Update after sys_times changed.
25131         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
25132         * modules/times (Files): Add it.
25133         (configure.ac): Invoke gl_FUNC_TIMES.
25134
25135 2009-12-31  Bruno Haible  <bruno@clisp.org>
25136
25137         Use AC_C_INLINE where necessary.
25138         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
25139         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
25140         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
25141         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
25142         * m4/mbfile.m4 (gl_MBFILE): Likewise.
25143         * m4/mbiter.m4 (gl_MBITER): Likewise.
25144         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25145         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25146         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
25147         * modules/u64 (configure.ac): Likewise.
25148
25149 2009-12-31  Bruno Haible  <bruno@clisp.org>
25150
25151         Use AC_C_INLINE instead of module 'inline' where possible.
25152         * modules/inline (Description): Clarify purpose.
25153         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
25154         * modules/count-one-bits (Depends-on): Remove inline.
25155         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
25156         * modules/openat (Depends-on): Remove inline.
25157         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
25158         instead of depending on module 'inline'.
25159         * modules/filevercmp (Depends-on, configure.ac): Likewise.
25160         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
25161         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
25162         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
25163         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
25164         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
25165         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
25166         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
25167         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
25168         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
25169         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
25170         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
25171         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
25172         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
25173         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
25174         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
25175         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
25176         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
25177         Likewise.
25178         * modules/unictype/property-ascii-hex-digit (Depends-on,
25179         configure.ac): Likewise.
25180         * modules/unictype/property-bidi-arabic-digit (Depends-on,
25181         configure.ac): Likewise.
25182         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
25183         configure.ac): Likewise.
25184         * modules/unictype/property-bidi-block-separator (Depends-on,
25185         configure.ac): Likewise.
25186         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
25187         configure.ac): Likewise.
25188         * modules/unictype/property-bidi-common-separator (Depends-on,
25189         configure.ac): Likewise.
25190         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
25191         Likewise.
25192         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
25193         configure.ac): Likewise.
25194         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
25195         configure.ac): Likewise.
25196         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
25197         configure.ac): Likewise.
25198         * modules/unictype/property-bidi-european-digit (Depends-on,
25199         configure.ac): Likewise.
25200         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
25201         configure.ac): Likewise.
25202         * modules/unictype/property-bidi-left-to-right (Depends-on,
25203         configure.ac): Likewise.
25204         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
25205         configure.ac): Likewise.
25206         * modules/unictype/property-bidi-other-neutral (Depends-on,
25207         configure.ac): Likewise.
25208         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
25209         Likewise.
25210         * modules/unictype/property-bidi-segment-separator (Depends-on,
25211         configure.ac): Likewise.
25212         * modules/unictype/property-bidi-whitespace (Depends-on,
25213         configure.ac): Likewise.
25214         * modules/unictype/property-combining (Depends-on, configure.ac):
25215         Likewise.
25216         * modules/unictype/property-composite (Depends-on, configure.ac):
25217         Likewise.
25218         * modules/unictype/property-currency-symbol (Depends-on,
25219         configure.ac): Likewise.
25220         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
25221         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
25222         Likewise.
25223         * modules/unictype/property-default-ignorable-code-point (Depends-on,
25224         configure.ac): Likewise.
25225         * modules/unictype/property-deprecated (Depends-on, configure.ac):
25226         Likewise.
25227         * modules/unictype/property-diacritic (Depends-on, configure.ac):
25228         Likewise.
25229         * modules/unictype/property-extender (Depends-on, configure.ac):
25230         Likewise.
25231         * modules/unictype/property-format-control (Depends-on, configure.ac):
25232         Likewise.
25233         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
25234         Likewise.
25235         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
25236         Likewise.
25237         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
25238         Likewise.
25239         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
25240         Likewise.
25241         * modules/unictype/property-hyphen (Depends-on, configure.ac):
25242         Likewise.
25243         * modules/unictype/property-id-continue (Depends-on, configure.ac):
25244         Likewise.
25245         * modules/unictype/property-id-start (Depends-on, configure.ac):
25246         Likewise.
25247         * modules/unictype/property-ideographic (Depends-on, configure.ac):
25248         Likewise.
25249         * modules/unictype/property-ids-binary-operator (Depends-on,
25250         configure.ac): Likewise.
25251         * modules/unictype/property-ids-trinary-operator (Depends-on,
25252         configure.ac): Likewise.
25253         * modules/unictype/property-ignorable-control (Depends-on,
25254         configure.ac): Likewise.
25255         * modules/unictype/property-iso-control (Depends-on, configure.ac):
25256         Likewise.
25257         * modules/unictype/property-join-control (Depends-on, configure.ac):
25258         Likewise.
25259         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
25260         Likewise.
25261         * modules/unictype/property-line-separator (Depends-on, configure.ac):
25262         Likewise.
25263         * modules/unictype/property-logical-order-exception (Depends-on,
25264         configure.ac): Likewise.
25265         * modules/unictype/property-lowercase (Depends-on, configure.ac):
25266         Likewise.
25267         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
25268         * modules/unictype/property-non-break (Depends-on, configure.ac):
25269         Likewise.
25270         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
25271         Likewise.
25272         * modules/unictype/property-numeric (Depends-on, configure.ac):
25273         Likewise.
25274         * modules/unictype/property-other-alphabetic (Depends-on,
25275         configure.ac): Likewise.
25276         * modules/unictype/property-other-default-ignorable-code-point
25277         (Depends-on, configure.ac): Likewise.
25278         * modules/unictype/property-other-grapheme-extend (Depends-on,
25279         configure.ac): Likewise.
25280         * modules/unictype/property-other-id-continue (Depends-on,
25281         configure.ac): Likewise.
25282         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
25283         Likewise.
25284         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
25285         Likewise.
25286         * modules/unictype/property-other-math (Depends-on, configure.ac):
25287         Likewise.
25288         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
25289         Likewise.
25290         * modules/unictype/property-paired-punctuation (Depends-on,
25291         configure.ac): Likewise.
25292         * modules/unictype/property-paragraph-separator (Depends-on,
25293         configure.ac): Likewise.
25294         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
25295         Likewise.
25296         * modules/unictype/property-pattern-white-space (Depends-on,
25297         configure.ac): Likewise.
25298         * modules/unictype/property-private-use (Depends-on, configure.ac):
25299         Likewise.
25300         * modules/unictype/property-punctuation (Depends-on, configure.ac):
25301         Likewise.
25302         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
25303         Likewise.
25304         * modules/unictype/property-radical (Depends-on, configure.ac):
25305         Likewise.
25306         * modules/unictype/property-sentence-terminal (Depends-on,
25307         configure.ac): Likewise.
25308         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
25309         Likewise.
25310         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
25311         * modules/unictype/property-terminal-punctuation (Depends-on,
25312         configure.ac): Likewise.
25313         * modules/unictype/property-titlecase (Depends-on, configure.ac):
25314         Likewise.
25315         * modules/unictype/property-unassigned-code-value (Depends-on,
25316         configure.ac): Likewise.
25317         * modules/unictype/property-unified-ideograph (Depends-on,
25318         configure.ac): Likewise.
25319         * modules/unictype/property-uppercase (Depends-on, configure.ac):
25320         Likewise.
25321         * modules/unictype/property-variation-selector (Depends-on,
25322         configure.ac): Likewise.
25323         * modules/unictype/property-white-space (Depends-on, configure.ac):
25324         Likewise.
25325         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
25326         Likewise.
25327         * modules/unictype/property-xid-start (Depends-on, configure.ac):
25328         Likewise.
25329         * modules/unictype/property-zero-width (Depends-on, configure.ac):
25330         Likewise.
25331         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
25332         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
25333         Likewise.
25334
25335 2009-12-31  Bruno Haible  <bruno@clisp.org>
25336
25337         Remove unnecessary AC_C_INLINE invocation.
25338         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
25339         since 2009-08-21.
25340
25341 2009-12-31  Jim Meyering  <meyering@redhat.com>
25342
25343         maint.mk: don't require explicit gpg_key_ID in cfg.mk
25344         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
25345         With this change, we can all remove the gpg_key_ID = ... definition
25346         from our respective cfg.mk files.
25347
25348         maint.mk: create announcement template in ~/, not in /tmp
25349         * top/maint.mk (emit_upload_commands): Adjust.
25350         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
25351         Remove temporary file, .ci-msg.
25352
25353 2009-12-31  Eric Blake  <ebb9@byu.net>
25354
25355         link-warning: always build headers with link warnings
25356         * modules/arpa_inet (Makefile.am): Always build replacement
25357         header.
25358         * modules/ctype (Makefile.am): Likewise.
25359         * modules/dirent (Makefile.am): Likewise.
25360         * modules/inttypes (Makefile.am): Likewise.
25361         * modules/langinfo (Makefile.am): Likewise.
25362         * modules/locale (Makefile.am): Likewise.
25363         * modules/spawn (Makefile.am): Likewise.
25364         * modules/sys_file (Makefile.am): Likewise.
25365         * modules/sys_ioctl (Makefile.am): Likewise.
25366         * modules/sys_select (Makefile.am): Likewise.
25367         * modules/sys_socket (Makefile.am): Likewise.
25368         * modules/sys_times (Makefile.am): Likewise.
25369         * modules/sys_utsname (Makefile.am): Likewise.
25370         * modules/sys_wait (Makefile.am): Likewise.
25371         * modules/wchar (Makefile.am): Likewise.
25372         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
25373         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
25374         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
25375         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
25376         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
25377         Likewise.
25378         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
25379         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
25380         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
25381         Likewise.
25382         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
25383         Likewise.
25384         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
25385         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
25386         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
25387         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25388         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25389         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25390         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25391         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
25392         (gl_WCHAR_H_DEFAULTS): Likewise.
25393
25394 2009-12-31  Eric Blake  <ebb9@byu.net>
25395
25396         signal, spawn: use link warnings
25397         * lib/signal.in.h (sigset_t): Make unconditional.
25398         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
25399         (sigpending, sigprocmask, sigaction): Add link warnings.
25400         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
25401         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
25402         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
25403         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
25404         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
25405         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
25406         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
25407         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
25408         (posix_spawn_file_actions_destroy)
25409         (posix_spawn_file_actions_addopen)
25410         (posix_spawn_file_actions_addclose)
25411         (posix_spawn_file_actions_adddup2): Likewise.
25412         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
25413         * tests/test-signal.c (main): Enhance test.
25414
25415         spawn: improve wrapper support
25416         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
25417         (gl_SPAWN_H_DEFAULTS): New defaults.
25418         * modules/spawn (Makefile.am): Substitute them.
25419         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
25420         Only declare if missing or broken.
25421
25422         sys_times, sys_utsname: use include_next
25423         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
25424         header.
25425         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
25426         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
25427         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
25428         * modules/sys_times (Depends-on): Add include_next.
25429         (Makefile.am): Substitute additional values.
25430         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
25431         * lib/sys_times.in.h (includes): Include native header, if
25432         available.
25433         * lib/sys_utsname.in.h (includes): Likewise.
25434         * tests/test-sys_times.c (main): Enhance test.
25435
25436         fdutimensat: revert prior patch
25437         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
25438         utimens.h.
25439         Reported by Bruno Haible.
25440
25441 2009-12-30  Eric Blake  <ebb9@byu.net>
25442
25443         sys_wait: drop link-warning dependency
25444         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
25445         link-warning efforts.
25446         * lib/sys_wait.in.h: Likewise.
25447
25448         fdutimensat: remove bogus dependency
25449         * modules/fdutimensat (Depends-on): Drop inline.
25450
25451         unistd: fix typo
25452         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
25453
25454 2009-12-30  Bruno Haible  <bruno@clisp.org>
25455
25456         Fix compilation error with Solaris cc.
25457         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
25458         * lib/unicase/u16-is-invariant.c: Likewise.
25459         * lib/unicase/u32-is-invariant.c: Likewise.
25460         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
25461
25462 2009-12-30  Bruno Haible  <bruno@clisp.org>
25463
25464         Fix test crash.
25465         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
25466         locales.
25467         Reported by Simon Josefsson <simon@josefsson.org>.
25468
25469 2009-12-30  Bruno Haible  <bruno@clisp.org>
25470
25471         Fix compilation error on most platforms.
25472         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
25473         Reported by Simon Josefsson <simon@josefsson.org>
25474         and Nelson H. F. Beebe <beebe@math.utah.edu>.
25475
25476 2009-12-30  Eric Blake  <ebb9@byu.net>
25477
25478         futimens, utimensat: work around ntfs-3g bug
25479         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
25480         a ctime bug is present, and expand workaround to cover ntfs-3g.
25481         * lib/utimens.c (fdutimens, lutimens): Likewise.
25482         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
25483         (validate_timespec): Adjust return value.
25484         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
25485         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25486         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
25487
25488 2009-12-29  Eric Blake  <ebb9@byu.net>
25489
25490         link-warning: make usage consistent
25491         * modules/ctype (Depends-on): Add link-warning.
25492         (Makefile.am): Update rules accordingly.
25493         * modules/langinfo (Depends-on, Makefile.am): Likewise.
25494         * modules/locale (Depends-on, Makefile.am): Likewise.
25495         * modules/sys_file (Makefile.am): Likewise.
25496         * modules/getopt-posix (Makefile.am): Delete unused link warning
25497         efforts.
25498         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
25499         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
25500         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
25501         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
25502
25503         stdio: remove unused variables
25504         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
25505         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
25506         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
25507
25508         tests: test more substitute headers
25509         * modules/ctype-tests: New file.
25510         * modules/dirent-tests: Likewise.
25511         * modules/spawn-tests: Likewise.
25512         * modules/sys_file-tests: Likewise.
25513         * modules/sys_ioctl-tests: Likewise.
25514         * modules/sys_wait-tests: Likewise.
25515         * tests/test-ctype.c: Likewise.
25516         * tests/test-dirent.c: Likewise.
25517         * tests/test-spawn.c: Likewise.
25518         * tests/test-sys_file.c: Likewise.
25519         * tests/test-sys_ioctl.c: Likewise.
25520         * tests/test-sys_wait.c: Likewise.
25521         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
25522         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
25523         whether or not flock is in use.
25524
25525         tests: remove License section from module
25526         * modules/arpa_inet-tests: Remove unneeded section.
25527         * modules/byteswap-tests: Likewise.
25528         * modules/ceilf-tests: Likewise.
25529         * modules/ceill-tests: Likewise.
25530         * modules/crypto/des-tests: Likewise.
25531         * modules/crypto/gc-arcfour-tests: Likewise.
25532         * modules/crypto/gc-arctwo-tests: Likewise.
25533         * modules/crypto/gc-des-tests: Likewise.
25534         * modules/crypto/gc-hmac-md5-tests: Likewise.
25535         * modules/crypto/gc-hmac-sha1-tests: Likewise.
25536         * modules/crypto/gc-md2-tests: Likewise.
25537         * modules/crypto/gc-md4-tests: Likewise.
25538         * modules/crypto/gc-md5-tests: Likewise.
25539         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
25540         * modules/crypto/gc-rijndael-tests: Likewise.
25541         * modules/crypto/gc-sha1-tests: Likewise.
25542         * modules/crypto/gc-tests: Likewise.
25543         * modules/crypto/md2-tests: Likewise.
25544         * modules/crypto/md4-tests: Likewise.
25545         * modules/fcntl-h-tests: Likewise.
25546         * modules/floorf-tests: Likewise.
25547         * modules/floorl-tests: Likewise.
25548         * modules/frexp-nolibm-tests: Likewise.
25549         * modules/frexp-tests: Likewise.
25550         * modules/frexpl-nolibm-tests: Likewise.
25551         * modules/frexpl-tests: Likewise.
25552         * modules/getaddrinfo-tests: Likewise.
25553         * modules/inttypes-tests: Likewise.
25554         * modules/isfinite-tests: Likewise.
25555         * modules/isinf-tests: Likewise.
25556         * modules/ldexpl-tests: Likewise.
25557         * modules/locale-tests: Likewise.
25558         * modules/math-tests: Likewise.
25559         * modules/netdb-tests: Likewise.
25560         * modules/netinet_in-tests: Likewise.
25561         * modules/printf-frexp-tests: Likewise.
25562         * modules/printf-frexpl-tests: Likewise.
25563         * modules/priv-set-tests: Likewise.
25564         * modules/random_r-tests: Likewise.
25565         * modules/round-tests: Likewise.
25566         * modules/roundf-tests: Likewise.
25567         * modules/roundl-tests: Likewise.
25568         * modules/search-tests: Likewise.
25569         * modules/select-tests: Likewise.
25570         * modules/signal-tests: Likewise.
25571         * modules/stdbool-tests: Likewise.
25572         * modules/stddef-tests: Likewise.
25573         * modules/stdint-tests: Likewise.
25574         * modules/stdio-tests: Likewise.
25575         * modules/stdlib-tests: Likewise.
25576         * modules/string-tests: Likewise.
25577         * modules/strings-tests: Likewise.
25578         * modules/sys_select-tests: Likewise.
25579         * modules/sys_socket-tests: Likewise.
25580         * modules/sys_stat-tests: Likewise.
25581         * modules/sys_time-tests: Likewise.
25582         * modules/sys_utsname-tests: Likewise.
25583         * modules/sysexits-tests: Likewise.
25584         * modules/time-tests: Likewise.
25585         * modules/trunc-tests: Likewise.
25586         * modules/truncf-tests: Likewise.
25587         * modules/truncl-tests: Likewise.
25588         * modules/tsearch-tests: Likewise.
25589         * modules/unistd-tests: Likewise.
25590         * modules/wchar-tests: Likewise.
25591         * modules/wctype-tests: Likewise.
25592
25593         tests: fix license on several tests
25594         * tests/test-des.c: Update to GPLv3+.
25595         * tests/test-flock.c: Likewise.
25596         * tests/test-fsync.c: Likewise.
25597         * tests/test-futimens.h: Likewise.
25598         * tests/test-gc-arcfour.c: Likewise.
25599         * tests/test-gc-arctwo.c: Likewise.
25600         * tests/test-gc-des.c: Likewise.
25601         * tests/test-gc-hmac-md5.c: Likewise.
25602         * tests/test-gc-hmac-sha1.c: Likewise.
25603         * tests/test-gc-md2.c: Likewise.
25604         * tests/test-gc-md4.c: Likewise.
25605         * tests/test-gc-md5.c: Likewise.
25606         * tests/test-gc-pbkdf2-sha1.c: Likewise.
25607         * tests/test-gc-rijndael.c: Likewise.
25608         * tests/test-gc-sha1.c: Likewise.
25609         * tests/test-gc.c: Likewise.
25610         * tests/test-getcwd.c: Likewise.
25611         * tests/test-link.c: Likewise.
25612         * tests/test-link.h: Likewise.
25613         * tests/test-lutimens.h: Likewise.
25614         * tests/test-md2.c: Likewise.
25615         * tests/test-md4.c: Likewise.
25616         * tests/test-mkdir.h: Likewise.
25617         * tests/test-rename.c: Likewise.
25618         * tests/test-rename.h: Likewise.
25619         * tests/test-safe-alloc.c: Likewise.
25620         * tests/test-utimens-common.h: Likewise.
25621         * tests/test-utimens.h: Likewise.
25622
25623         maint: sync license texts
25624         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
25625         * doc/gpl-3.0.texi: Revert copyright year update.
25626         * doc/lgpl-3.0.texi: Likewise.
25627
25628 2009-12-29  Jim Meyering  <meyering@redhat.com>
25629
25630         update nearly all FSF copyright year lists to include 2009
25631         The files named by the following are exempted:
25632             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
25633               test -f "$dst" && { echo "$dst"; continue; }
25634               test -d "$dst" || continue
25635               echo "$dst"/$(basename "$src")
25636             done > exempt
25637             git ls-files tests/unictype >> exempt
25638         In the remaining files, convert to all-interval notation if
25639         - there is already at least one year interval like 2000-2003
25640         - the file is maintained by me
25641         - the file is in lib/uni*/, where that style already prevails
25642         Otherwise, use update-copyright's default.
25643
25644 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25645         and Eric Blake  <ebb9@byu.net>
25646
25647         tests: don't require debug system() to pass
25648         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
25649         * tests/test-rmdir.h (test_rmdir_func): Likewise.
25650         * tests/test-unlink.h (test_unlink_func): Likewise.
25651         * tests/test-fstatat.c (main): ...into callers.
25652         * tests/test-lstat.c (main): Likewise.
25653         * tests/test-rmdir.c (main): Likewise.
25654         * tests/test-unlink.c (main): Likewise.
25655         * tests/test-unlinkat.c (main): Likewise.
25656         * tests/test-areadlink-with-size.c (main): Don't require a
25657         debug-only system call to pass, aiding cross-testing to mingw.
25658         * tests/test-areadlink.c (main): Likewise.
25659         * tests/test-areadlinkat-with-size.c (main): Likewise.
25660         * tests/test-areadlinkat.c (main): Likewise.
25661         * tests/test-canonicalize-lgpl.c (main): Likewise.
25662         * tests/test-canonicalize.c (main): Likewise.
25663         * tests/test-chown.c (main): Likewise.
25664         * tests/test-fchownat.c (main): Likewise.
25665         * tests/test-lchown.c (main): Likewise.
25666         * tests/test-fdutimensat.c (main): Likewise.
25667         * tests/test-futimens.c (main): Likewise.
25668         * tests/test-link.c (main): Likewise.
25669         * tests/test-linkat.c (main): Likewise.
25670         * tests/test-mkdir.c (main): Likewise.
25671         * tests/test-mkdirat.c (main): Likewise.
25672         * tests/test-mkfifo.c (main): Likewise.
25673         * tests/test-mkfifoat.c (main): Likewise.
25674         * tests/test-mknod.c (main): Likewise.
25675         * tests/test-readlink.c (main): Likewise.
25676         * tests/test-remove.c (main): Likewise.
25677         * tests/test-rename.c (main): Likewise.
25678         * tests/test-renameat.c (main): Likewise.
25679         * tests/test-symlink.c (main): Likewise.
25680         * tests/test-symlinkat.c (main): Likewise.
25681         * tests/test-utimens.c (main): Likewise.
25682         * tests/test-utimensat.c (main): Likewise.
25683
25684 2009-12-29  Simon Josefsson  <simon@josefsson.org>
25685
25686         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
25687         on $(UNUSED_PARAMETER_H) to avoid build failure.
25688
25689 2009-12-28  Jim Meyering  <meyering@redhat.com>
25690
25691         update-copyright: you may specify a max. line length other than 72
25692         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
25693
25694         maint: use consistent FSF copyright line syntax
25695         * lib/posixtm.c: Add missing comma in FSF copyright line.
25696         * lib/posixtm.h: Likewise.
25697         * lib/getugroups.c: Add missing ", Inc.".
25698
25699         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
25700         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
25701         FSF copyright line.  Remove trailing blanks.
25702
25703 2009-12-28  Eric Blake  <ebb9@byu.net>
25704
25705         test-dup2: reduce dependencies
25706         * modules/cloexec (Configure.ac): Set witness.
25707         * modules/dup2-tests (Depends-on): Drop cloexec.
25708         * tests/test-dup2.c (main): Skip portion of test if cloexec module
25709         not present.
25710         Suggested by Bruno Haible.
25711
25712 2009-12-26  Bruno Haible  <bruno@clisp.org>
25713
25714         Remove an unneeded dependency.
25715         * modules/fseterr (Depends-on): Remove dup2.
25716
25717 2009-12-26  Eric Blake  <ebb9@byu.net>
25718
25719         tests: use macros.h in more places
25720         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
25721         (ASSERT_STREAM): Provide default of stderr.
25722         * tests/test-dirent-safer.c: Include macros.h, using alternate
25723         stream for assertions.
25724         * tests/test-dup-safer.c: Likewise.
25725         * tests/test-freopen-safer.c: Likewise.
25726         * tests/test-getopt.c: Likewise.
25727         * tests/test-openat-safer.c: Likewise.
25728         * tests/test-pipe.c: Likewise.
25729         * tests/test-popen-safer.c: Likewise.
25730         * modules/dirent-safer-tests (Files): Include macros.h.
25731         * modules/unistd-safer-tests (Files): Likewise.
25732         * modules/freopen-safer-tests (Files): Likewise.
25733         * modules/getopt-posix-tests (Files): Likewise.
25734         * modules/openat-safer-tests (Files): Likewise.
25735         * modules/pipe-tests (Files): Likewise.
25736
25737 2009-12-26  Bruno Haible  <bruno@clisp.org>
25738
25739         javacomp: Portability fix.
25740         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
25741         that it also works on Solaris.
25742
25743 2009-12-26  Bruno Haible  <bruno@clisp.org>
25744
25745         localename: Fix storage allocation of gl_locale_name_thread's result.
25746         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
25747         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
25748         all platforms that have 'uselocale'.
25749         (gl_locale_name_thread_unsafe): New function, extracted from
25750         gl_locale_name_thread.
25751         (gl_locale_name_thread): Call struniq on all platforms that have
25752         'uselocale'.
25753         * tests/test-localename.c (test_locale_name_thread): Check that the
25754         resulting strings are permanently allocated.
25755         * modules/localename-tests (Depends-on): Add strdup.
25756
25757 2009-12-26  Bruno Haible  <bruno@clisp.org>
25758
25759         * tests/test-localename.c (categories): Fill in the strings.
25760
25761 2009-12-26  Jim Meyering  <meyering@redhat.com>
25762
25763         isdir: complete the removal of m4/isdir.m4
25764         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
25765
25766         isdir: clean up, since at least grep still uses it
25767         * lib/isdir.c: Include "isdir.h".
25768         (S_ISDIR): Remove now-unneeded definition.
25769         * modules/isdir (Files): Add lib/isdir.h.
25770         * lib/isdir.h: New file, with declaration.
25771         * m4/isdir.m4: Remove file -- unneeded.
25772
25773 2009-12-25  Bruno Haible  <bruno@clisp.org>
25774
25775         selinux-h: Make generated .h files standalone.
25776         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
25777         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
25778         * lib/se-selinux.in.h: Likewise.
25779         * modules/selinux-h (Depends-on): Add unused-parameter.
25780         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
25781         selinux/selinux.h and selinux/context.h.
25782         Suggested by Eric Blake.
25783
25784 2009-12-25  Bruno Haible  <bruno@clisp.org>
25785
25786         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
25787         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
25788         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
25789         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
25790         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
25791
25792 2009-12-24  Bruno Haible  <bruno@clisp.org>
25793
25794         openat: Fix warning.
25795         * lib/openat-proc.c: Include <unistd.h>.
25796
25797 2009-12-24  Bruno Haible  <bruno@clisp.org>
25798
25799         New module 'unused-parameter'.
25800         * build-aux/unused-parameter.h: New file, extracted from earlier
25801         gnulib-common.m4.
25802         * modules/unused-parameter: New file.
25803         * lib/unistr.h: Include unused-parameter.h.
25804         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
25805         _GL_UNUSED.
25806         * modules/unistr/base (Depends-on): Add unused-parameter.
25807
25808 2009-12-24  Bruno Haible  <bruno@clisp.org>
25809
25810         Add missing dependencies to 'extensions' module.
25811         * m4/extensions.m4: Add comment.
25812         * modules/accept4 (Depends-on): Add extensions.
25813         * modules/dup3 (Depends-on): Likewise.
25814         * modules/fcntl (Depends-on): Likewise.
25815         * modules/futimens (Depends-on): Likewise.
25816         * modules/mknod (Depends-on): Likewise.
25817         * modules/pipe2 (Depends-on): Likewise.
25818         * modules/stat-time (Depends-on): Likewise.
25819         * modules/strcasestr-simple (Depends-on): Likewise.
25820         * modules/strsignal (Depends-on): Likewise.
25821         * modules/utimensat (Depends-on): Likewise.
25822         * modules/localcharset (Depends-on): Likewise. Needed because of
25823         gl_FCNTL_O_FLAGS.
25824         * modules/wcrtomb (Depends-on): Likewise. Needed because of
25825         AC_TYPE_MBSTATE_T.
25826         * modules/wcsnrtombs (Depends-on): Likewise.
25827         * modules/wcsrtombs (Depends-on): Likewise.
25828
25829 2009-12-24  Bruno Haible  <bruno@clisp.org>
25830
25831         binary-io: Avoid gcc warning due to SET_BINARY.
25832         * lib/binary-io.h (SET_BINARY): Cast the result to void.
25833         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
25834
25835 2009-12-24  Bruno Haible  <bruno@clisp.org>
25836
25837         Avoid future namespace pollution on glibc systems.
25838         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
25839         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
25840         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
25841         glibc systems.
25842
25843 2009-12-24  Bruno Haible  <bruno@clisp.org>
25844
25845         Refactor common macros used in tests.
25846         * tests/macros.h: New file.
25847         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
25848         and/or <stdlib.h>, if appropriate.
25849         (ASSERT, SIZEOF): Remove macros.
25850         * tests/test-areadlink-with-size.c: Likewise.
25851         * tests/test-areadlinkat.c: Likewise.
25852         * tests/test-areadlinkat-with-size.c: Likewise.
25853         * tests/test-argmatch.c: Likewise.
25854         * tests/test-argv-iter.c: Likewise.
25855         * tests/test-array-mergesort.c: Likewise.
25856         * tests/test-array_list.c: Likewise.
25857         * tests/test-array_oset.c: Likewise.
25858         * tests/test-avltree_list.c: Likewise.
25859         * tests/test-avltree_oset.c: Likewise.
25860         * tests/test-avltreehash_list.c: Likewise.
25861         * tests/test-base64.c: Likewise.
25862         * tests/test-binary-io.c: Likewise.
25863         * tests/test-bitrotate.c: Likewise.
25864         * tests/test-btowc.c: Likewise.
25865         * tests/test-byteswap.c: Likewise.
25866         * tests/test-c-ctype.c: Likewise.
25867         * tests/test-c-stack.c: Likewise.
25868         * tests/test-c-strcasecmp.c: Likewise.
25869         * tests/test-c-strcasestr.c: Likewise.
25870         * tests/test-c-strncasecmp.c: Likewise.
25871         * tests/test-c-strstr.c: Likewise.
25872         * tests/test-canonicalize-lgpl.c: Likewise.
25873         * tests/test-canonicalize.c: Likewise.
25874         * tests/test-carray_list.c: Likewise.
25875         * tests/test-ceilf1.c: Likewise.
25876         * tests/test-ceilf2.c: Likewise.
25877         * tests/test-ceill.c: Likewise.
25878         * tests/test-chown.c: Likewise.
25879         * tests/test-cloexec.c: Likewise.
25880         * tests/test-copy-acl.c: Likewise.
25881         * tests/test-copy-file.c: Likewise.
25882         * tests/test-count-one-bits.c: Likewise.
25883         * tests/test-dprintf-posix.c: Likewise.
25884         * tests/test-dup2.c: Likewise.
25885         * tests/test-dup3.c: Likewise.
25886         * tests/test-duplocale.c: Likewise.
25887         * tests/test-fbufmode.c: Likewise.
25888         * tests/test-fchdir.c: Likewise.
25889         * tests/test-fchownat.c: Likewise.
25890         * tests/test-fcntl-safer.c: Likewise.
25891         * tests/test-fcntl.c: Likewise.
25892         * tests/test-fdopendir.c: Likewise.
25893         * tests/test-fdutimensat.c: Likewise.
25894         * tests/test-fflush2.c: Likewise.
25895         * tests/test-file-has-acl.c: Likewise.
25896         * tests/test-filevercmp.c: Likewise.
25897         * tests/test-flock.c: Likewise.
25898         * tests/test-floorf1.c: Likewise.
25899         * tests/test-floorf2.c: Likewise.
25900         * tests/test-floorl.c: Likewise.
25901         * tests/test-fnmatch.c: Likewise.
25902         * tests/test-fopen.h: Likewise.
25903         * tests/test-fpending.c: Likewise.
25904         * tests/test-fprintf-posix.c: Likewise.
25905         * tests/test-fpurge.c: Likewise.
25906         * tests/test-freadable.c: Likewise.
25907         * tests/test-freadahead.c: Likewise.
25908         * tests/test-freading.c: Likewise.
25909         * tests/test-freadptr.c: Likewise.
25910         * tests/test-freadptr2.c: Likewise.
25911         * tests/test-freadseek.c: Likewise.
25912         * tests/test-freopen.c: Likewise.
25913         * tests/test-frexp.c: Likewise.
25914         * tests/test-frexpl.c: Likewise.
25915         * tests/test-fseek.c: Likewise.
25916         * tests/test-fseeko.c: Likewise.
25917         * tests/test-fstatat.c: Likewise.
25918         * tests/test-fstrcmp.c: Likewise.
25919         * tests/test-fsync.c: Likewise.
25920         * tests/test-ftell.c: Likewise.
25921         * tests/test-ftello.c: Likewise.
25922         * tests/test-func.c: Likewise.
25923         * tests/test-futimens.c: Likewise.
25924         * tests/test-fwritable.c: Likewise.
25925         * tests/test-fwriting.c: Likewise.
25926         * tests/test-getcwd.c: Likewise.
25927         * tests/test-getdate.c: Likewise.
25928         * tests/test-getdelim.c: Likewise.
25929         * tests/test-getdtablesize.c: Likewise.
25930         * tests/test-getgroups.c: Likewise.
25931         * tests/test-getline.c: Likewise.
25932         * tests/test-getndelim2.c: Likewise.
25933         * tests/test-glob.c: Likewise.
25934         * tests/test-hash.c: Likewise.
25935         * tests/test-i-ring.c: Likewise.
25936         * tests/test-iconv-utf.c: Likewise.
25937         * tests/test-iconv.c: Likewise.
25938         * tests/test-idpriv-drop.c: Likewise.
25939         * tests/test-idpriv-droptemp.c: Likewise.
25940         * tests/test-inet_ntop.c: Likewise.
25941         * tests/test-inet_pton.c: Likewise.
25942         * tests/test-isblank.c: Likewise.
25943         * tests/test-isfinite.c: Likewise.
25944         * tests/test-isinf.c: Likewise.
25945         * tests/test-isnan.c: Likewise.
25946         * tests/test-isnand.h: Likewise.
25947         * tests/test-isnanf.h: Likewise.
25948         * tests/test-isnanl.h: Likewise.
25949         * tests/test-lchown.c: Likewise.
25950         * tests/test-ldexpl.c: Likewise.
25951         * tests/test-link.c: Likewise.
25952         * tests/test-linkat.c: Likewise.
25953         * tests/test-linked_list.c: Likewise.
25954         * tests/test-linkedhash_list.c: Likewise.
25955         * tests/test-localename.c: Likewise.
25956         * tests/test-lseek.c: Likewise.
25957         * tests/test-lstat.c: Likewise.
25958         * tests/test-mbmemcasecmp.c: Likewise.
25959         * tests/test-mbmemcasecoll.c: Likewise.
25960         * tests/test-mbrtowc.c: Likewise.
25961         * tests/test-mbscasecmp.c: Likewise.
25962         * tests/test-mbscasestr1.c: Likewise.
25963         * tests/test-mbscasestr2.c: Likewise.
25964         * tests/test-mbscasestr3.c: Likewise.
25965         * tests/test-mbscasestr4.c: Likewise.
25966         * tests/test-mbschr.c: Likewise.
25967         * tests/test-mbscspn.c: Likewise.
25968         * tests/test-mbsinit.c: Likewise.
25969         * tests/test-mbsncasecmp.c: Likewise.
25970         * tests/test-mbsnrtowcs.c: Likewise.
25971         * tests/test-mbspbrk.c: Likewise.
25972         * tests/test-mbspcasecmp.c: Likewise.
25973         * tests/test-mbsrchr.c: Likewise.
25974         * tests/test-mbsrtowcs.c: Likewise.
25975         * tests/test-mbsspn.c: Likewise.
25976         * tests/test-mbsstr1.c: Likewise.
25977         * tests/test-mbsstr2.c: Likewise.
25978         * tests/test-mbsstr3.c: Likewise.
25979         * tests/test-memchr.c: Likewise.
25980         * tests/test-memchr2.c: Likewise.
25981         * tests/test-memcmp.c: Likewise.
25982         * tests/test-memmem.c: Likewise.
25983         * tests/test-memrchr.c: Likewise.
25984         * tests/test-mkdir.c: Likewise.
25985         * tests/test-mkdirat.c: Likewise.
25986         * tests/test-mkfifo.c: Likewise.
25987         * tests/test-mkfifoat.c: Likewise.
25988         * tests/test-mknod.c: Likewise.
25989         * tests/test-nanosleep.c: Likewise.
25990         * tests/test-nl_langinfo.c: Likewise.
25991         * tests/test-obstack-printf.c: Likewise.
25992         * tests/test-open.c: Likewise.
25993         * tests/test-openat.c: Likewise.
25994         * tests/test-pipe-filter-gi1.c: Likewise.
25995         * tests/test-pipe-filter-gi2-main.c: Likewise.
25996         * tests/test-pipe-filter-ii1.c: Likewise.
25997         * tests/test-pipe-filter-ii2-main.c: Likewise.
25998         * tests/test-pipe2.c: Likewise.
25999         * tests/test-popen.h: Likewise.
26000         * tests/test-posixtm.c: Likewise.
26001         * tests/test-pread.c: Likewise.
26002         * tests/test-printf-frexp.c: Likewise.
26003         * tests/test-printf-frexpl.c: Likewise.
26004         * tests/test-printf-posix.c: Likewise.
26005         * tests/test-priv-set.c: Likewise.
26006         * tests/test-quotearg.c: Likewise.
26007         * tests/test-random_r.c: Likewise.
26008         * tests/test-rawmemchr.c: Likewise.
26009         * tests/test-rbtree_list.c: Likewise.
26010         * tests/test-rbtree_oset.c: Likewise.
26011         * tests/test-rbtreehash_list.c: Likewise.
26012         * tests/test-readlink.c: Likewise.
26013         * tests/test-remove.c: Likewise.
26014         * tests/test-rename.c: Likewise.
26015         * tests/test-renameat.c: Likewise.
26016         * tests/test-rmdir.c: Likewise.
26017         * tests/test-round1.c: Likewise.
26018         * tests/test-roundf1.c: Likewise.
26019         * tests/test-roundl.c: Likewise.
26020         * tests/test-safe-alloc.c: Likewise.
26021         * tests/test-sameacls.c: Likewise.
26022         * tests/test-set-mode-acl.c: Likewise.
26023         * tests/test-setenv.c: Likewise.
26024         * tests/test-sigaction.c: Likewise.
26025         * tests/test-signbit.c: Likewise.
26026         * tests/test-sleep.c: Likewise.
26027         * tests/test-snprintf-posix.c: Likewise.
26028         * tests/test-snprintf.c: Likewise.
26029         * tests/test-sprintf-posix.c: Likewise.
26030         * tests/test-stat-time.c: Likewise.
26031         * tests/test-stat.c: Likewise.
26032         * tests/test-strcasestr.c: Likewise.
26033         * tests/test-strchrnul.c: Likewise.
26034         * tests/test-strerror.c: Likewise.
26035         * tests/test-striconv.c: Likewise.
26036         * tests/test-striconveh.c: Likewise.
26037         * tests/test-striconveha.c: Likewise.
26038         * tests/test-strsignal.c: Likewise.
26039         * tests/test-strstr.c: Likewise.
26040         * tests/test-strtod.c: Likewise.
26041         * tests/test-strverscmp.c: Likewise.
26042         * tests/test-symlink.c: Likewise.
26043         * tests/test-symlinkat.c: Likewise.
26044         * tests/test-trunc1.c: Likewise.
26045         * tests/test-trunc2.c: Likewise.
26046         * tests/test-truncf1.c: Likewise.
26047         * tests/test-truncf2.c: Likewise.
26048         * tests/test-truncl.c: Likewise.
26049         * tests/test-uname.c: Likewise.
26050         * tests/test-unlink.c: Likewise.
26051         * tests/test-unlinkat.c: Likewise.
26052         * tests/test-unsetenv.c: Likewise.
26053         * tests/test-usleep.c: Likewise.
26054         * tests/test-utimens.c: Likewise.
26055         * tests/test-utimensat.c: Likewise.
26056         * tests/test-vasnprintf-posix.c: Likewise.
26057         * tests/test-vasnprintf-posix2.c: Likewise.
26058         * tests/test-vasnprintf.c: Likewise.
26059         * tests/test-vasprintf-posix.c: Likewise.
26060         * tests/test-vasprintf.c: Likewise.
26061         * tests/test-vdprintf-posix.c: Likewise.
26062         * tests/test-vfprintf-posix.c: Likewise.
26063         * tests/test-vprintf-posix.c: Likewise.
26064         * tests/test-vsnprintf-posix.c: Likewise.
26065         * tests/test-vsnprintf.c: Likewise.
26066         * tests/test-vsprintf-posix.c: Likewise.
26067         * tests/test-wcrtomb.c: Likewise.
26068         * tests/test-wcsnrtombs.c: Likewise.
26069         * tests/test-wcsrtombs.c: Likewise.
26070         * tests/test-wctype.c: Likewise.
26071         * tests/test-wcwidth.c: Likewise.
26072         * tests/test-xfprintf-posix.c: Likewise.
26073         * tests/test-xmemdup0.c: Likewise.
26074         * tests/test-xprintf-posix.c: Likewise.
26075         * tests/test-xvasprintf.c: Likewise.
26076         * tests/unicase/test-locale-language.c: Likewise.
26077         * tests/unicase/test-mapping-part1.h: Likewise.
26078         * tests/unicase/test-predicate-part1.h: Likewise.
26079         * tests/unicase/test-u8-casecmp.c: Likewise.
26080         * tests/unicase/test-u8-casecoll.c: Likewise.
26081         * tests/unicase/test-u8-casefold.c: Likewise.
26082         * tests/unicase/test-u8-is-cased.c: Likewise.
26083         * tests/unicase/test-u8-is-casefolded.c: Likewise.
26084         * tests/unicase/test-u8-is-lowercase.c: Likewise.
26085         * tests/unicase/test-u8-is-titlecase.c: Likewise.
26086         * tests/unicase/test-u8-is-uppercase.c: Likewise.
26087         * tests/unicase/test-u8-tolower.c: Likewise.
26088         * tests/unicase/test-u8-totitle.c: Likewise.
26089         * tests/unicase/test-u8-toupper.c: Likewise.
26090         * tests/unicase/test-u16-casecmp.c: Likewise.
26091         * tests/unicase/test-u16-casecoll.c: Likewise.
26092         * tests/unicase/test-u16-casefold.c: Likewise.
26093         * tests/unicase/test-u16-is-cased.c: Likewise.
26094         * tests/unicase/test-u16-is-casefolded.c: Likewise.
26095         * tests/unicase/test-u16-is-lowercase.c: Likewise.
26096         * tests/unicase/test-u16-is-titlecase.c: Likewise.
26097         * tests/unicase/test-u16-is-uppercase.c: Likewise.
26098         * tests/unicase/test-u16-tolower.c: Likewise.
26099         * tests/unicase/test-u16-totitle.c: Likewise.
26100         * tests/unicase/test-u16-toupper.c: Likewise.
26101         * tests/unicase/test-u32-casecmp.c: Likewise.
26102         * tests/unicase/test-u32-casecoll.c: Likewise.
26103         * tests/unicase/test-u32-casefold.c: Likewise.
26104         * tests/unicase/test-u32-is-cased.c: Likewise.
26105         * tests/unicase/test-u32-is-casefolded.c: Likewise.
26106         * tests/unicase/test-u32-is-lowercase.c: Likewise.
26107         * tests/unicase/test-u32-is-titlecase.c: Likewise.
26108         * tests/unicase/test-u32-is-uppercase.c: Likewise.
26109         * tests/unicase/test-u32-tolower.c: Likewise.
26110         * tests/unicase/test-u32-totitle.c: Likewise.
26111         * tests/unicase/test-u32-toupper.c: Likewise.
26112         * tests/unicase/test-ulc-casecmp.c: Likewise.
26113         * tests/unicase/test-ulc-casecoll.c: Likewise.
26114         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
26115         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
26116         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
26117         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
26118         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
26119         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
26120         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
26121         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
26122         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
26123         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
26124         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
26125         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
26126         * tests/unictype/test-bidi_byname.c: Likewise.
26127         * tests/unictype/test-bidi_name.c: Likewise.
26128         * tests/unictype/test-bidi_of.c: Likewise.
26129         * tests/unictype/test-bidi_test.c: Likewise.
26130         * tests/unictype/test-block_list.c: Likewise.
26131         * tests/unictype/test-block_of.c: Likewise.
26132         * tests/unictype/test-block_test.c: Likewise.
26133         * tests/unictype/test-categ_and.c: Likewise.
26134         * tests/unictype/test-categ_and_not.c: Likewise.
26135         * tests/unictype/test-categ_byname.c: Likewise.
26136         * tests/unictype/test-categ_name.c: Likewise.
26137         * tests/unictype/test-categ_none.c: Likewise.
26138         * tests/unictype/test-categ_of.c: Likewise.
26139         * tests/unictype/test-categ_or.c: Likewise.
26140         * tests/unictype/test-categ_test_withtable.c: Likewise.
26141         * tests/unictype/test-combining.c: Likewise.
26142         * tests/unictype/test-decdigit.c: Likewise.
26143         * tests/unictype/test-digit.c: Likewise.
26144         * tests/unictype/test-mirror.c: Likewise.
26145         * tests/unictype/test-numeric.c: Likewise.
26146         * tests/unictype/test-pr_byname.c: Likewise.
26147         * tests/unictype/test-pr_test.c: Likewise.
26148         * tests/unictype/test-predicate-part1.h: Likewise.
26149         * tests/unictype/test-scripts.c: Likewise.
26150         * tests/unictype/test-sy_c_ident.c: Likewise.
26151         * tests/unictype/test-sy_java_ident.c: Likewise.
26152         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
26153         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
26154         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
26155         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
26156         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
26157         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
26158         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
26159         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
26160         * tests/uninorm/test-canonical-decomposition.c: Likewise.
26161         * tests/uninorm/test-compat-decomposition.c: Likewise.
26162         * tests/uninorm/test-composition.c: Likewise.
26163         * tests/uninorm/test-decomposing-form.c: Likewise.
26164         * tests/uninorm/test-decomposition.c: Likewise.
26165         * tests/uninorm/test-u8-nfc.c: Likewise.
26166         * tests/uninorm/test-u8-nfd.c: Likewise.
26167         * tests/uninorm/test-u8-nfkc.c: Likewise.
26168         * tests/uninorm/test-u8-nfkd.c: Likewise.
26169         * tests/uninorm/test-u8-normcmp.c: Likewise.
26170         * tests/uninorm/test-u8-normcoll.c: Likewise.
26171         * tests/uninorm/test-u16-nfc.c: Likewise.
26172         * tests/uninorm/test-u16-nfd.c: Likewise.
26173         * tests/uninorm/test-u16-nfkc.c: Likewise.
26174         * tests/uninorm/test-u16-nfkd.c: Likewise.
26175         * tests/uninorm/test-u16-normcmp.c: Likewise.
26176         * tests/uninorm/test-u16-normcoll.c: Likewise.
26177         * tests/uninorm/test-u32-nfc.c: Likewise.
26178         * tests/uninorm/test-u32-nfd.c: Likewise.
26179         * tests/uninorm/test-u32-nfkc.c: Likewise.
26180         * tests/uninorm/test-u32-nfkd.c: Likewise.
26181         * tests/uninorm/test-u32-normalize-big.c: Likewise.
26182         * tests/uninorm/test-u32-normcmp.c: Likewise.
26183         * tests/uninorm/test-u32-normcoll.c: Likewise.
26184         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
26185         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
26186         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
26187         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
26188         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
26189         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
26190         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
26191         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
26192         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
26193         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
26194         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
26195         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
26196         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
26197         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
26198         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
26199         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
26200         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
26201         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
26202         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
26203         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
26204         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
26205         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
26206         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
26207         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
26208         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
26209         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
26210         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
26211         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
26212         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
26213         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
26214         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
26215         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
26216         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
26217         * tests/uniwidth/test-u8-strwidth.c: Likewise.
26218         * tests/uniwidth/test-u8-width.c: Likewise.
26219         * tests/uniwidth/test-u16-strwidth.c: Likewise.
26220         * tests/uniwidth/test-u16-width.c: Likewise.
26221         * tests/uniwidth/test-u32-strwidth.c: Likewise.
26222         * tests/uniwidth/test-u32-width.c: Likewise.
26223         * tests/uniwidth/test-uc_width.c: Likewise.
26224         * tests/uniwidth/test-uc_width2.c: Likewise.
26225         * modules/acl-tests (Files): Add tests/macros.h.
26226         * modules/areadlink-tests (Files): Likewise.
26227         * modules/areadlink-with-size-tests (Files): Likewise.
26228         * modules/areadlinkat-tests (Files): Likewise.
26229         * modules/areadlinkat-with-size-tests (Files): Likewise.
26230         * modules/argmatch-tests (Files): Likewise.
26231         * modules/argv-iter-tests (Files): Likewise.
26232         * modules/array-list-tests (Files): Likewise.
26233         * modules/array-mergesort-tests (Files): Likewise.
26234         * modules/array-oset-tests (Files): Likewise.
26235         * modules/avltree-list-tests (Files): Likewise.
26236         * modules/avltree-oset-tests (Files): Likewise.
26237         * modules/avltreehash-list-tests (Files): Likewise.
26238         * modules/base64-tests (Files): Likewise.
26239         * modules/binary-io-tests (Files): Likewise.
26240         * modules/bitrotate-tests (Files): Likewise.
26241         * modules/btowc-tests (Files): Likewise.
26242         * modules/byteswap-tests (Files): Likewise.
26243         * modules/c-ctype-tests (Files): Likewise.
26244         * modules/c-stack-tests (Files): Likewise.
26245         * modules/c-strcase-tests (Files): Likewise.
26246         * modules/c-strcasestr-tests (Files): Likewise.
26247         * modules/c-strstr-tests (Files): Likewise.
26248         * modules/canonicalize-lgpl-tests (Files): Likewise.
26249         * modules/canonicalize-tests (Files): Likewise.
26250         * modules/carray-list-tests (Files): Likewise.
26251         * modules/ceilf-tests (Files): Likewise.
26252         * modules/ceill-tests (Files): Likewise.
26253         * modules/chown-tests (Files): Likewise.
26254         * modules/cloexec-tests (Files): Likewise.
26255         * modules/copy-file-tests (Files): Likewise.
26256         * modules/count-one-bits-tests (Files): Likewise.
26257         * modules/dprintf-posix-tests (Files): Likewise.
26258         * modules/dup2-tests (Files): Likewise.
26259         * modules/dup3-tests (Files): Likewise.
26260         * modules/duplocale-tests (Files): Likewise.
26261         * modules/fbufmode-tests (Files): Likewise.
26262         * modules/fchdir-tests (Files): Likewise.
26263         * modules/fcntl-safer-tests (Files): Likewise.
26264         * modules/fcntl-tests (Files): Likewise.
26265         * modules/fdopendir-tests (Files): Likewise.
26266         * modules/fdutimensat-tests (Files): Likewise.
26267         * modules/fflush-tests (Files): Likewise.
26268         * modules/filevercmp-tests (Files): Likewise.
26269         * modules/flock-tests (Files): Likewise.
26270         * modules/floorf-tests (Files): Likewise.
26271         * modules/floorl-tests (Files): Likewise.
26272         * modules/fnmatch-tests (Files): Likewise.
26273         * modules/fopen-safer-tests (Files): Likewise.
26274         * modules/fopen-tests (Files): Likewise.
26275         * modules/fpending-tests (Files): Likewise.
26276         * modules/fprintf-posix-tests (Files): Likewise.
26277         * modules/fpurge-tests (Files): Likewise.
26278         * modules/freadable-tests (Files): Likewise.
26279         * modules/freadahead-tests (Files): Likewise.
26280         * modules/freading-tests (Files): Likewise.
26281         * modules/freadptr-tests (Files): Likewise.
26282         * modules/freadseek-tests (Files): Likewise.
26283         * modules/freopen-tests (Files): Likewise.
26284         * modules/frexp-nolibm-tests (Files): Likewise.
26285         * modules/frexp-tests (Files): Likewise.
26286         * modules/frexpl-nolibm-tests (Files): Likewise.
26287         * modules/frexpl-tests (Files): Likewise.
26288         * modules/fseek-tests (Files): Likewise.
26289         * modules/fseeko-tests (Files): Likewise.
26290         * modules/fstrcmp-tests (Files): Likewise.
26291         * modules/fsync-tests (Files): Likewise.
26292         * modules/ftell-tests (Files): Likewise.
26293         * modules/ftello-tests (Files): Likewise.
26294         * modules/func-tests (Files): Likewise.
26295         * modules/futimens-tests (Files): Likewise.
26296         * modules/fwritable-tests (Files): Likewise.
26297         * modules/fwriting-tests (Files): Likewise.
26298         * modules/getcwd-tests (Files): Likewise.
26299         * modules/getdate-tests (Files): Likewise.
26300         * modules/getdelim-tests (Files): Likewise.
26301         * modules/getdtablesize-tests (Files): Likewise.
26302         * modules/getgroups-tests (Files): Likewise.
26303         * modules/getline-tests (Files): Likewise.
26304         * modules/getndelim2-tests (Files): Likewise.
26305         * modules/glob-tests (Files): Likewise.
26306         * modules/hash-tests (Files): Likewise.
26307         * modules/i-ring-tests (Files): Likewise.
26308         * modules/iconv-tests (Files): Likewise.
26309         * modules/iconv_open-utf-tests (Files): Likewise.
26310         * modules/idpriv-drop-tests (Files): Likewise.
26311         * modules/idpriv-droptemp-tests (Files): Likewise.
26312         * modules/inet_ntop-tests (Files): Likewise.
26313         * modules/inet_pton-tests (Files): Likewise.
26314         * modules/isblank-tests (Files): Likewise.
26315         * modules/isfinite-tests (Files): Likewise.
26316         * modules/isinf-tests (Files): Likewise.
26317         * modules/isnan-tests (Files): Likewise.
26318         * modules/isnand-nolibm-tests (Files): Likewise.
26319         * modules/isnand-tests (Files): Likewise.
26320         * modules/isnanf-nolibm-tests (Files): Likewise.
26321         * modules/isnanf-tests (Files): Likewise.
26322         * modules/isnanl-nolibm-tests (Files): Likewise.
26323         * modules/isnanl-tests (Files): Likewise.
26324         * modules/lchown-tests (Files): Likewise.
26325         * modules/ldexpl-tests (Files): Likewise.
26326         * modules/link-tests (Files): Likewise.
26327         * modules/linkat-tests (Files): Likewise.
26328         * modules/linked-list-tests (Files): Likewise.
26329         * modules/linkedhash-list-tests (Files): Likewise.
26330         * modules/localename-tests (Files): Likewise.
26331         * modules/lseek-tests (Files): Likewise.
26332         * modules/lstat-tests (Files): Likewise.
26333         * modules/mbmemcasecmp-tests (Files): Likewise.
26334         * modules/mbmemcasecoll-tests (Files): Likewise.
26335         * modules/mbrtowc-tests (Files): Likewise.
26336         * modules/mbscasecmp-tests (Files): Likewise.
26337         * modules/mbscasestr-tests (Files): Likewise.
26338         * modules/mbschr-tests (Files): Likewise.
26339         * modules/mbscspn-tests (Files): Likewise.
26340         * modules/mbsinit-tests (Files): Likewise.
26341         * modules/mbsncasecmp-tests (Files): Likewise.
26342         * modules/mbsnrtowcs-tests (Files): Likewise.
26343         * modules/mbspbrk-tests (Files): Likewise.
26344         * modules/mbspcasecmp-tests (Files): Likewise.
26345         * modules/mbsrchr-tests (Files): Likewise.
26346         * modules/mbsrtowcs-tests (Files): Likewise.
26347         * modules/mbsspn-tests (Files): Likewise.
26348         * modules/mbsstr-tests (Files): Likewise.
26349         * modules/memchr-tests (Files): Likewise.
26350         * modules/memchr2-tests (Files): Likewise.
26351         * modules/memcmp-tests (Files): Likewise.
26352         * modules/memmem-tests (Files): Likewise.
26353         * modules/memrchr-tests (Files): Likewise.
26354         * modules/mkdir-tests (Files): Likewise.
26355         * modules/mkfifo-tests (Files): Likewise.
26356         * modules/mkfifoat-tests (Files): Likewise.
26357         * modules/mknod-tests (Files): Likewise.
26358         * modules/nanosleep-tests (Files): Likewise.
26359         * modules/nl_langinfo-tests (Files): Likewise.
26360         * modules/obstack-printf-tests (Files): Likewise.
26361         * modules/open-tests (Files): Likewise.
26362         * modules/openat-tests (Files): Likewise.
26363         * modules/pipe-filter-gi-tests (Files): Likewise.
26364         * modules/pipe-filter-ii-tests (Files): Likewise.
26365         * modules/pipe2-tests (Files): Likewise.
26366         * modules/popen-safer-tests (Files): Likewise.
26367         * modules/popen-tests (Files): Likewise.
26368         * modules/posixtm-tests (Files): Likewise.
26369         * modules/pread-tests (Files): Likewise.
26370         * modules/printf-frexp-tests (Files): Likewise.
26371         * modules/printf-frexpl-tests (Files): Likewise.
26372         * modules/printf-posix-tests (Files): Likewise.
26373         * modules/priv-set-tests (Files): Likewise.
26374         * modules/quotearg-tests (Files): Likewise.
26375         * modules/random_r-tests (Files): Likewise.
26376         * modules/rawmemchr-tests (Files): Likewise.
26377         * modules/rbtree-list-tests (Files): Likewise.
26378         * modules/rbtree-oset-tests (Files): Likewise.
26379         * modules/rbtreehash-list-tests (Files): Likewise.
26380         * modules/readlink-tests (Files): Likewise.
26381         * modules/remove-tests (Files): Likewise.
26382         * modules/rename-tests (Files): Likewise.
26383         * modules/renameat-tests (Files): Likewise.
26384         * modules/rmdir-tests (Files): Likewise.
26385         * modules/round-tests (Files): Likewise.
26386         * modules/roundf-tests (Files): Likewise.
26387         * modules/roundl-tests (Files): Likewise.
26388         * modules/safe-alloc-tests (Files): Likewise.
26389         * modules/setenv-tests (Files): Likewise.
26390         * modules/sigaction-tests (Files): Likewise.
26391         * modules/signbit-tests (Files): Likewise.
26392         * modules/sleep-tests (Files): Likewise.
26393         * modules/snprintf-posix-tests (Files): Likewise.
26394         * modules/snprintf-tests (Files): Likewise.
26395         * modules/sprintf-posix-tests (Files): Likewise.
26396         * modules/stat-tests (Files): Likewise.
26397         * modules/stat-time-tests (Files): Likewise.
26398         * modules/strcasestr-tests (Files): Likewise.
26399         * modules/strchrnul-tests (Files): Likewise.
26400         * modules/strerror-tests (Files): Likewise.
26401         * modules/striconv-tests (Files): Likewise.
26402         * modules/striconveh-tests (Files): Likewise.
26403         * modules/striconveha-tests (Files): Likewise.
26404         * modules/strsignal-tests (Files): Likewise.
26405         * modules/strstr-tests (Files): Likewise.
26406         * modules/strtod-tests (Files): Likewise.
26407         * modules/strverscmp-tests (Files): Likewise.
26408         * modules/symlink-tests (Files): Likewise.
26409         * modules/symlinkat-tests (Files): Likewise.
26410         * modules/trunc-tests (Files): Likewise.
26411         * modules/truncf-tests (Files): Likewise.
26412         * modules/truncl-tests (Files): Likewise.
26413         * modules/uname-tests (Files): Likewise.
26414         * modules/unicase/cased-tests (Files): Likewise.
26415         * modules/unicase/ignorable-tests (Files): Likewise.
26416         * modules/unicase/locale-language-tests (Files): Likewise.
26417         * modules/unicase/tolower-tests (Files): Likewise.
26418         * modules/unicase/totitle-tests (Files): Likewise.
26419         * modules/unicase/toupper-tests (Files): Likewise.
26420         * modules/unicase/u8-casecmp-tests (Files): Likewise.
26421         * modules/unicase/u8-casecoll-tests (Files): Likewise.
26422         * modules/unicase/u8-casefold-tests (Files): Likewise.
26423         * modules/unicase/u8-is-cased-tests (Files): Likewise.
26424         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
26425         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
26426         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
26427         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
26428         * modules/unicase/u8-tolower-tests (Files): Likewise.
26429         * modules/unicase/u8-totitle-tests (Files): Likewise.
26430         * modules/unicase/u8-toupper-tests (Files): Likewise.
26431         * modules/unicase/u16-casecmp-tests (Files): Likewise.
26432         * modules/unicase/u16-casecoll-tests (Files): Likewise.
26433         * modules/unicase/u16-casefold-tests (Files): Likewise.
26434         * modules/unicase/u16-is-cased-tests (Files): Likewise.
26435         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
26436         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
26437         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
26438         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
26439         * modules/unicase/u16-tolower-tests (Files): Likewise.
26440         * modules/unicase/u16-totitle-tests (Files): Likewise.
26441         * modules/unicase/u16-toupper-tests (Files): Likewise.
26442         * modules/unicase/u32-casecmp-tests (Files): Likewise.
26443         * modules/unicase/u32-casecoll-tests (Files): Likewise.
26444         * modules/unicase/u32-casefold-tests (Files): Likewise.
26445         * modules/unicase/u32-is-cased-tests (Files): Likewise.
26446         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
26447         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
26448         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
26449         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
26450         * modules/unicase/u32-tolower-tests (Files): Likewise.
26451         * modules/unicase/u32-totitle-tests (Files): Likewise.
26452         * modules/unicase/u32-toupper-tests (Files): Likewise.
26453         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
26454         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
26455         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
26456         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
26457         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
26458         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
26459         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
26460         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
26461         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
26462         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
26463         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
26464         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
26465         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
26466         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
26467         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
26468         * modules/unictype/bidicategory-name-tests (Files): Likewise.
26469         * modules/unictype/bidicategory-of-tests (Files): Likewise.
26470         * modules/unictype/bidicategory-test-tests (Files): Likewise.
26471         * modules/unictype/block-list-tests (Files): Likewise.
26472         * modules/unictype/block-of-tests (Files): Likewise.
26473         * modules/unictype/block-test-tests (Files): Likewise.
26474         * modules/unictype/category-C-tests (Files): Likewise.
26475         * modules/unictype/category-Cc-tests (Files): Likewise.
26476         * modules/unictype/category-Cf-tests (Files): Likewise.
26477         * modules/unictype/category-Cn-tests (Files): Likewise.
26478         * modules/unictype/category-Co-tests (Files): Likewise.
26479         * modules/unictype/category-Cs-tests (Files): Likewise.
26480         * modules/unictype/category-L-tests (Files): Likewise.
26481         * modules/unictype/category-Ll-tests (Files): Likewise.
26482         * modules/unictype/category-Lm-tests (Files): Likewise.
26483         * modules/unictype/category-Lo-tests (Files): Likewise.
26484         * modules/unictype/category-Lt-tests (Files): Likewise.
26485         * modules/unictype/category-Lu-tests (Files): Likewise.
26486         * modules/unictype/category-M-tests (Files): Likewise.
26487         * modules/unictype/category-Mc-tests (Files): Likewise.
26488         * modules/unictype/category-Me-tests (Files): Likewise.
26489         * modules/unictype/category-Mn-tests (Files): Likewise.
26490         * modules/unictype/category-N-tests (Files): Likewise.
26491         * modules/unictype/category-Nd-tests (Files): Likewise.
26492         * modules/unictype/category-Nl-tests (Files): Likewise.
26493         * modules/unictype/category-No-tests (Files): Likewise.
26494         * modules/unictype/category-P-tests (Files): Likewise.
26495         * modules/unictype/category-Pc-tests (Files): Likewise.
26496         * modules/unictype/category-Pd-tests (Files): Likewise.
26497         * modules/unictype/category-Pe-tests (Files): Likewise.
26498         * modules/unictype/category-Pf-tests (Files): Likewise.
26499         * modules/unictype/category-Pi-tests (Files): Likewise.
26500         * modules/unictype/category-Po-tests (Files): Likewise.
26501         * modules/unictype/category-Ps-tests (Files): Likewise.
26502         * modules/unictype/category-S-tests (Files): Likewise.
26503         * modules/unictype/category-Sc-tests (Files): Likewise.
26504         * modules/unictype/category-Sk-tests (Files): Likewise.
26505         * modules/unictype/category-Sm-tests (Files): Likewise.
26506         * modules/unictype/category-So-tests (Files): Likewise.
26507         * modules/unictype/category-Z-tests (Files): Likewise.
26508         * modules/unictype/category-Zl-tests (Files): Likewise.
26509         * modules/unictype/category-Zp-tests (Files): Likewise.
26510         * modules/unictype/category-Zs-tests (Files): Likewise.
26511         * modules/unictype/category-and-not-tests (Files): Likewise.
26512         * modules/unictype/category-and-tests (Files): Likewise.
26513         * modules/unictype/category-byname-tests (Files): Likewise.
26514         * modules/unictype/category-name-tests (Files): Likewise.
26515         * modules/unictype/category-none-tests (Files): Likewise.
26516         * modules/unictype/category-of-tests (Files): Likewise.
26517         * modules/unictype/category-or-tests (Files): Likewise.
26518         * modules/unictype/category-test-withtable-tests (Files): Likewise.
26519         * modules/unictype/combining-class-tests (Files): Likewise.
26520         * modules/unictype/ctype-alnum-tests (Files): Likewise.
26521         * modules/unictype/ctype-alpha-tests (Files): Likewise.
26522         * modules/unictype/ctype-blank-tests (Files): Likewise.
26523         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
26524         * modules/unictype/ctype-digit-tests (Files): Likewise.
26525         * modules/unictype/ctype-graph-tests (Files): Likewise.
26526         * modules/unictype/ctype-lower-tests (Files): Likewise.
26527         * modules/unictype/ctype-print-tests (Files): Likewise.
26528         * modules/unictype/ctype-punct-tests (Files): Likewise.
26529         * modules/unictype/ctype-space-tests (Files): Likewise.
26530         * modules/unictype/ctype-upper-tests (Files): Likewise.
26531         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
26532         * modules/unictype/decimal-digit-tests (Files): Likewise.
26533         * modules/unictype/digit-tests (Files): Likewise.
26534         * modules/unictype/mirror-tests (Files): Likewise.
26535         * modules/unictype/numeric-tests (Files): Likewise.
26536         * modules/unictype/property-alphabetic-tests (Files): Likewise.
26537         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
26538         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
26539         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
26540         Likewise.
26541         * modules/unictype/property-bidi-block-separator-tests (Files):
26542         Likewise.
26543         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
26544         Likewise.
26545         * modules/unictype/property-bidi-common-separator-tests (Files):
26546         Likewise.
26547         * modules/unictype/property-bidi-control-tests (Files): Likewise.
26548         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
26549         Likewise.
26550         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
26551         Likewise.
26552         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
26553         Likewise.
26554         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
26555         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
26556         Likewise.
26557         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
26558         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
26559         Likewise.
26560         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
26561         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
26562         * modules/unictype/property-bidi-segment-separator-tests (Files):
26563         Likewise.
26564         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
26565         * modules/unictype/property-byname-tests (Files): Likewise.
26566         * modules/unictype/property-combining-tests (Files): Likewise.
26567         * modules/unictype/property-composite-tests (Files): Likewise.
26568         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
26569         * modules/unictype/property-dash-tests (Files): Likewise.
26570         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
26571         * modules/unictype/property-default-ignorable-code-point-tests (Files):
26572         Likewise.
26573         * modules/unictype/property-deprecated-tests (Files): Likewise.
26574         * modules/unictype/property-diacritic-tests (Files): Likewise.
26575         * modules/unictype/property-extender-tests (Files): Likewise.
26576         * modules/unictype/property-format-control-tests (Files): Likewise.
26577         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
26578         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
26579         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
26580         * modules/unictype/property-hex-digit-tests (Files): Likewise.
26581         * modules/unictype/property-hyphen-tests (Files): Likewise.
26582         * modules/unictype/property-id-continue-tests (Files): Likewise.
26583         * modules/unictype/property-id-start-tests (Files): Likewise.
26584         * modules/unictype/property-ideographic-tests (Files): Likewise.
26585         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
26586         * modules/unictype/property-ids-trinary-operator-tests (Files):
26587         Likewise.
26588         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
26589         * modules/unictype/property-iso-control-tests (Files): Likewise.
26590         * modules/unictype/property-join-control-tests (Files): Likewise.
26591         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
26592         * modules/unictype/property-line-separator-tests (Files): Likewise.
26593         * modules/unictype/property-logical-order-exception-tests (Files):
26594         Likewise.
26595         * modules/unictype/property-lowercase-tests (Files): Likewise.
26596         * modules/unictype/property-math-tests (Files): Likewise.
26597         * modules/unictype/property-non-break-tests (Files): Likewise.
26598         * modules/unictype/property-not-a-character-tests (Files): Likewise.
26599         * modules/unictype/property-numeric-tests (Files): Likewise.
26600         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
26601         * modules/unictype/property-other-default-ignorable-code-point-tests
26602         (Files): Likewise.
26603         * modules/unictype/property-other-grapheme-extend-tests (Files):
26604         Likewise.
26605         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
26606         * modules/unictype/property-other-id-start-tests (Files): Likewise.
26607         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
26608         * modules/unictype/property-other-math-tests (Files): Likewise.
26609         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
26610         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
26611         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
26612         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
26613         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
26614         * modules/unictype/property-private-use-tests (Files): Likewise.
26615         * modules/unictype/property-punctuation-tests (Files): Likewise.
26616         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
26617         * modules/unictype/property-radical-tests (Files): Likewise.
26618         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
26619         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
26620         * modules/unictype/property-space-tests (Files): Likewise.
26621         * modules/unictype/property-terminal-punctuation-tests (Files):
26622         Likewise.
26623         * modules/unictype/property-test-tests (Files): Likewise.
26624         * modules/unictype/property-titlecase-tests (Files): Likewise.
26625         * modules/unictype/property-unassigned-code-value-tests (Files):
26626         Likewise.
26627         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
26628         * modules/unictype/property-uppercase-tests (Files): Likewise.
26629         * modules/unictype/property-variation-selector-tests (Files): Likewise.
26630         * modules/unictype/property-white-space-tests (Files): Likewise.
26631         * modules/unictype/property-xid-continue-tests (Files): Likewise.
26632         * modules/unictype/property-xid-start-tests (Files): Likewise.
26633         * modules/unictype/property-zero-width-tests (Files): Likewise.
26634         * modules/unictype/scripts-tests (Files): Likewise.
26635         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
26636         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
26637         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
26638         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
26639         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
26640         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
26641         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
26642         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
26643         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
26644         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
26645         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
26646         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
26647         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
26648         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
26649         * modules/uninorm/composition-tests (Files): Likewise.
26650         * modules/uninorm/decomposing-form-tests (Files): Likewise.
26651         * modules/uninorm/decomposition-tests (Files): Likewise.
26652         * modules/uninorm/filter-tests (Files): Likewise.
26653         * modules/uninorm/nfc-tests (Files): Likewise.
26654         * modules/uninorm/nfd-tests (Files): Likewise.
26655         * modules/uninorm/nfkc-tests (Files): Likewise.
26656         * modules/uninorm/nfkd-tests (Files): Likewise.
26657         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
26658         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
26659         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
26660         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
26661         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
26662         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
26663         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
26664         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
26665         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
26666         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
26667         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
26668         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
26669         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
26670         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
26671         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
26672         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
26673         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
26674         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
26675         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
26676         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
26677         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
26678         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
26679         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
26680         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
26681         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
26682         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
26683         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
26684         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
26685         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
26686         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
26687         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
26688         * modules/uniwidth/u8-width-tests (Files): Likewise.
26689         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
26690         * modules/uniwidth/u16-width-tests (Files): Likewise.
26691         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
26692         * modules/uniwidth/u32-width-tests (Files): Likewise.
26693         * modules/uniwidth/width-tests (Files): Likewise.
26694         * modules/unlink-tests (Files): Likewise.
26695         * modules/unsetenv-tests (Files): Likewise.
26696         * modules/usleep-tests (Files): Likewise.
26697         * modules/utimens-tests (Files): Likewise.
26698         * modules/utimensat-tests (Files): Likewise.
26699         * modules/vasnprintf-posix-tests (Files): Likewise.
26700         * modules/vasnprintf-tests (Files): Likewise.
26701         * modules/vasprintf-posix-tests (Files): Likewise.
26702         * modules/vasprintf-tests (Files): Likewise.
26703         * modules/vdprintf-posix-tests (Files): Likewise.
26704         * modules/vfprintf-posix-tests (Files): Likewise.
26705         * modules/vprintf-posix-tests (Files): Likewise.
26706         * modules/vsnprintf-posix-tests (Files): Likewise.
26707         * modules/vsnprintf-tests (Files): Likewise.
26708         * modules/vsprintf-posix-tests (Files): Likewise.
26709         * modules/wcrtomb-tests (Files): Likewise.
26710         * modules/wcsnrtombs-tests (Files): Likewise.
26711         * modules/wcsrtombs-tests (Files): Likewise.
26712         * modules/wctype-tests (Files): Likewise.
26713         * modules/wcwidth-tests (Files): Likewise.
26714         * modules/xmemdup0-tests (Files): Likewise.
26715         * modules/xprintf-posix-tests (Files): Likewise.
26716         * modules/xvasprintf-tests (Files): Likewise.
26717
26718 2009-12-24  Eric Blake  <ebb9@byu.net>
26719
26720         test-nanosleep: fix typo
26721         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
26722         patch.
26723         Reported by Bruno Haible.
26724
26725 2009-12-24  Bruno Haible  <bruno@clisp.org>
26726
26727         Reduce namespace pollution on glibc systems.
26728         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
26729         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
26730         systems.
26731         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
26732         <getopt.h> on glibc systems.
26733         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
26734         systems.
26735         * lib/fcntl.c: Include <unistd.h> here instead.
26736
26737 2009-12-24  Bruno Haible  <bruno@clisp.org>
26738
26739         * lib/stdlib.in.h (includes): Fix typo in today's commit.
26740
26741 2009-12-24  Eric Blake  <ebb9@byu.net>
26742
26743         tests: add signature checks
26744         * tests/signature.h (SIGNATURE_CHECK): New file.
26745         * modules/atexit-tests (Files): Use it.
26746         * modules/btowc-tests (Files): Likewise.
26747         * modules/canonicalize-lgpl-tests (Files): Likewise.
26748         * modules/ceilf-tests (Files): Likewise.
26749         * modules/ceill-tests (Files): Likewise.
26750         * modules/chown-tests (Files): Likewise.
26751         * modules/dprintf-posix-tests (Files): Likewise.
26752         * modules/dup2-tests (Files): Likewise.
26753         * modules/dup3-tests (Files): Likewise.
26754         * modules/duplocale-tests (Files): Likewise.
26755         * modules/fchdir-tests (Files): Likewise.
26756         * modules/fcntl-tests (Files): Likewise.
26757         * modules/fdopendir-tests (Files): Likewise.
26758         * modules/fflush-tests (Files): Likewise.
26759         * modules/flock-tests (Files): Likewise.
26760         * modules/floorf-tests (Files): Likewise.
26761         * modules/floorl-tests (Files): Likewise.
26762         * modules/fnmatch-tests (Files): Likewise.
26763         * modules/fopen-tests (Files): Likewise.
26764         * modules/fprintf-posix-tests (Files): Likewise.
26765         * modules/freopen-tests (Files): Likewise.
26766         * modules/frexp-nolibm-tests (Files): Likewise.
26767         * modules/frexp-tests (Files): Likewise.
26768         * modules/frexpl-nolibm-tests (Files): Likewise.
26769         * modules/frexpl-tests (Files): Likewise.
26770         * modules/fseek-tests (Files): Likewise.
26771         * modules/fseeko-tests (Files): Likewise.
26772         * modules/fsync-tests (Files): Likewise.
26773         * modules/ftell-tests (Files): Likewise.
26774         * modules/ftello-tests (Files): Likewise.
26775         * modules/futimens-tests (Files): Likewise.
26776         * modules/getaddrinfo-tests (Files): Likewise.
26777         * modules/getcwd-tests (Files): Likewise.
26778         * modules/getdelim-tests (Files): Likewise.
26779         * modules/getdtablesize-tests (Files): Likewise.
26780         * modules/getgroups-tests (Files): Likewise.
26781         * modules/gethostname-tests (Files): Likewise.
26782         * modules/getline-tests (Files): Likewise.
26783         * modules/getopt-posix-tests (Files): Likewise.
26784         * modules/gettimeofday-tests (Files): Likewise.
26785         * modules/glob-tests (Files): Likewise.
26786         * modules/iconv-tests (Files): Likewise.
26787         * modules/inet_ntop-tests (Files): Likewise.
26788         * modules/inet_pton-tests (Files): Likewise.
26789         * modules/isblank-tests (Files): Likewise.
26790         * modules/lchown-tests (Files): Likewise.
26791         * modules/ldexpl-tests (Files): Likewise.
26792         * modules/link-tests (Files): Likewise.
26793         * modules/linkat-tests (Files): Likewise.
26794         * modules/lseek-tests (Files): Likewise.
26795         * modules/lstat-tests (Files): Likewise.
26796         * modules/mbrtowc-tests (Files): Likewise.
26797         * modules/mbsinit-tests (Files): Likewise.
26798         * modules/mbsnrtowcs-tests (Files): Likewise.
26799         * modules/mbsrtowcs-tests (Files): Likewise.
26800         * modules/memchr-tests (Files): Likewise.
26801         * modules/memcmp-tests (Files): Likewise.
26802         * modules/memmem-tests (Files): Likewise.
26803         * modules/memrchr-tests (Files): Likewise.
26804         * modules/mkdir-tests (Files): Likewise.
26805         * modules/mkfifo-tests (Files): Likewise.
26806         * modules/mkfifoat-tests (Files): Likewise.
26807         * modules/mknod-tests (Files): Likewise.
26808         * modules/nanosleep-tests (Files): Likewise.
26809         * modules/nl_langinfo-tests (Files): Likewise.
26810         * modules/obstack-printf-tests (Files): Likewise.
26811         * modules/open-tests (Files): Likewise.
26812         * modules/openat-tests (Files): Likewise.
26813         * modules/perror-tests (Files): Likewise.
26814         * modules/pipe2-tests (Files): Likewise.
26815         * modules/poll-tests (Files): Likewise.
26816         * modules/popen-tests (Files): Likewise.
26817         * modules/posix_spawn-tests (Files): Likewise.
26818         * modules/posix_spawnp-tests (Files): Likewise.
26819         * modules/pread-tests (Files): Likewise.
26820         * modules/printf-posix-tests (Files): Likewise.
26821         * modules/pty-tests (Files): Likewise.
26822         * modules/random_r-tests (Files): Likewise.
26823         * modules/rawmemchr-tests (Files): Likewise.
26824         * modules/readlink-tests (Files): Likewise.
26825         * modules/remove-tests (Files): Likewise.
26826         * modules/rename-tests (Files): Likewise.
26827         * modules/renameat-tests (Files): Likewise.
26828         * modules/rmdir-tests (Files): Likewise.
26829         * modules/round-tests (Files): Likewise.
26830         * modules/roundf-tests (Files): Likewise.
26831         * modules/roundl-tests (Files): Likewise.
26832         * modules/select-tests (Files): Likewise.
26833         * modules/setenv-tests (Files): Likewise.
26834         * modules/sigaction-tests (Files): Likewise.
26835         * modules/sleep-tests (Files): Likewise.
26836         * modules/snprintf-posix-tests (Files): Likewise.
26837         * modules/snprintf-tests (Files): Likewise.
26838         * modules/sprintf-posix-tests (Files): Likewise.
26839         * modules/stat-tests (Files): Likewise.
26840         * modules/strcasestr-tests (Files): Likewise.
26841         * modules/strchrnul-tests (Files): Likewise.
26842         * modules/strerror-tests (Files): Likewise.
26843         * modules/strsignal-tests (Files): Likewise.
26844         * modules/strstr-tests (Files): Likewise.
26845         * modules/strtod-tests (Files): Likewise.
26846         * modules/strverscmp-tests (Files): Likewise.
26847         * modules/symlink-tests (Files): Likewise.
26848         * modules/symlinkat-tests (Files): Likewise.
26849         * modules/times-tests (Files): Likewise.
26850         * modules/trunc-tests (Files): Likewise.
26851         * modules/truncf-tests (Files): Likewise.
26852         * modules/truncl-tests (Files): Likewise.
26853         * modules/tsearch-tests (Files): Likewise.
26854         * modules/uname-tests (Files): Likewise.
26855         * modules/unlink-tests (Files): Likewise.
26856         * modules/unsetenv-tests (Files): Likewise.
26857         * modules/usleep-tests (Files): Likewise.
26858         * modules/utimensat-tests (Files): Likewise.
26859         * modules/vasprintf-tests (Files): Likewise.
26860         * modules/vdprintf-posix-tests (Files): Likewise.
26861         * modules/vfprintf-posix-tests (Files): Likewise.
26862         * modules/vprintf-posix-tests (Files): Likewise.
26863         * modules/vsnprintf-posix-tests (Files): Likewise.
26864         * modules/vsnprintf-tests (Files): Likewise.
26865         * modules/vsprintf-posix-tests (Files): Likewise.
26866         * modules/wcrtomb-tests (Files): Likewise.
26867         * modules/wcsnrtombs-tests (Files): Likewise.
26868         * modules/wcsrtombs-tests (Files): Likewise.
26869         * modules/wcwidth-tests (Files): Likewise.
26870         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
26871         * tests/test-isinf.c (isinf): Likewise.
26872         * tests/test-isnan.c (isnan): Likewise.
26873         * tests/test-signbit.c (signbit): Likewise.
26874         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
26875         declaration, either as macro or with correct signature.
26876         (select): Ensure function under test is declared with correct
26877         signature in correct header.
26878         * tests/test-atexit.c (atexit): Likewise.
26879         * tests/test-btowc.c (btowc): Likewise.
26880         * tests/test-canonicalize-lgpl.c (realpath)
26881         (canonicalize_file_name): Likewise.
26882         * tests/test-ceilf1.c (ceilf): Likewise.
26883         * tests/test-ceill.c (ceill): Likewise.
26884         * tests/test-chown.c (chown): Likewise.
26885         * tests/test-dprintf-posix.c (dprintf): Likewise.
26886         * tests/test-dup2.c (dup2): Likewise.
26887         * tests/test-dup3.c (dup3): Likewise.
26888         * tests/test-duplocale.c (duplocale): Likewise.
26889         * tests/test-fchdir.c (fchdir): Likewise.
26890         * tests/test-fchownat.c (fchownat): Likewise.
26891         * tests/test-fcntl.c (fcntl): Likewise.
26892         * tests/test-fdopendir.c (fdopendir): Likewise.
26893         * tests/test-fflush.c (fflush): Likewise.
26894         * tests/test-flock.c (flock): Likewise.
26895         * tests/test-floorf1.c (floorf): Likewise.
26896         * tests/test-floorl.c (floorl): Likewise.
26897         * tests/test-fnmatch.c (fnmatch): Likewise.
26898         * tests/test-fopen.c (fopen): Likewise.
26899         * tests/test-fprintf-posix.c (fprintf): Likewise.
26900         * tests/test-freopen.c (freopen): Likewise.
26901         * tests/test-frexp.c (frexp): Likewise.
26902         * tests/test-frexpl.c (frexpl): Likewise.
26903         * tests/test-fseek.c (fseek): Likewise.
26904         * tests/test-fseeko.c (fseeko): Likewise.
26905         * tests/test-fstatat.c (fstatat): Likewise.
26906         * tests/test-fsync.c (fsync): Likewise.
26907         * tests/test-ftell.c (ftell): Likewise.
26908         * tests/test-ftello.c (ftello): Likewise.
26909         * tests/test-futimens.c (futimens): Likewise.
26910         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
26911         (gai_strerror): Likewise.
26912         * tests/test-getcwd.c (getcwd): Likewise.
26913         * tests/test-getdelim.c (getdelim): Likewise.
26914         * tests/test-getdtablesize.c (getdtablesize): Likewise.
26915         * tests/test-getgroups.c (getgroups): Likewise.
26916         * tests/test-gethostname.c (gethostname): Likewise.
26917         * tests/test-getline.c (getline): Likewise.
26918         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
26919         Likewise.
26920         * tests/test-gettimeofday.c (gettimeofday): Likewise.
26921         * tests/test-glob.c (glob, globfree): Likewise.
26922         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
26923         * tests/test-inet_ntop.c (inet_ntop): Likewise.
26924         * tests/test-inet_pton.c (inet_pton): Likewise.
26925         * tests/test-isblank.c (isblank): Likewise.
26926         * tests/test-lchown.c (lchown): Likewise.
26927         * tests/test-ldexpl.c (ldexpl): Likewise.
26928         * tests/test-link.c (link): Likewise.
26929         * tests/test-linkat.c (linkat): Likewise.
26930         * tests/test-lseek.c (lseek): Likewise.
26931         * tests/test-lstat.c (lstat): Likewise.
26932         * tests/test-mbrtowc.c (mbrtowc): Likewise.
26933         * tests/test-mbsinit.c (mbsinit): Likewise.
26934         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
26935         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
26936         * tests/test-memchr.c (memchr): Likewise.
26937         * tests/test-memcmp.c (memcmp): Likewise.
26938         * tests/test-memmem.c (memmem): Likewise.
26939         * tests/test-memrchr.c (memrchr): Likewise.
26940         * tests/test-mkdir.c (mkdir): Likewise.
26941         * tests/test-mkdirat.c (mkdirat): Likewise.
26942         * tests/test-mkfifo.c (mkfifo): Likewise.
26943         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
26944         * tests/test-mknod.c (mknod): Likewise.
26945         * tests/test-nanosleep.c (nanosleep): Likewise.
26946         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
26947         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
26948         Likewise.
26949         * tests/test-open.c (open): Likewise.
26950         * tests/test-openat.c (openat): Likewise.
26951         * tests/test-perror.c (perror): Likewise.
26952         * tests/test-pipe2.c (pipe2): Likewise.
26953         * tests/test-poll.c (poll): Likewise.
26954         * tests/test-popen.c (popen, pclose): Likewise.
26955         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
26956         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
26957         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
26958         (posix_spawn_file_actions_destroy)
26959         (posix_spawn_file_actions_addclose)
26960         (posix_spawn_file_actions_addopen)
26961         (posix_spawn_file_actions_adddup2): Likewise.
26962         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
26963         * tests/test-pread.c (pread): Likewise.
26964         * tests/test-printf-posix.c (printf): Likewise.
26965         * tests/test-pty.c (openpty, forkpty): Likewise.
26966         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
26967         (random_r): Likewise.
26968         * tests/test-rawmemchr.c (rawmemchr): Likewise.
26969         * tests/test-readlink.c (readlink): Likewise.
26970         * tests/test-remove.c (remove): Likewise.
26971         * tests/test-rename.c (rename): Likewise.
26972         * tests/test-renameat.c (renameat): Likewise.
26973         * tests/test-rmdir.c (rmdir): Likewise.
26974         * tests/test-round1.c (round): Likewise.
26975         * tests/test-roundf1.c (roundf): Likewise.
26976         * tests/test-roundl.c (roundl): Likewise.
26977         * tests/test-setenv.c (setenv): Likewise.
26978         * tests/test-sigaction.c (sigaction): Likewise.
26979         * tests/test-sleep.c (sleep): Likewise.
26980         * tests/test-snprintf.c (snprintf): Likewise.
26981         * tests/test-sprintf-posix.c (sprintf): Likewise.
26982         * tests/test-stat.c (stat): Likewise.
26983         * tests/test-stpncpy.c (stpncpy): Likewise.
26984         * tests/test-strcasestr.c (strcasestr): Likewise.
26985         * tests/test-strchrnul.c (strchrnul): Likewise.
26986         * tests/test-strerror.c (strerror): Likewise.
26987         * tests/test-strsignal.c (strsignal): Likewise.
26988         * tests/test-strstr.c (strstr): Likewise.
26989         * tests/test-strtod.c (strtod): Likewise.
26990         * tests/test-strverscmp.c (strverscmp): Likewise.
26991         * tests/test-symlink.c (symlink): Likewise.
26992         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
26993         * tests/test-times.c (times): Likewise.
26994         * tests/test-trunc1.c (trunc): Likewise.
26995         * tests/test-truncf1.c (truncf): Likewise.
26996         * tests/test-truncl.c (truncl): Likewise.
26997         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
26998         Likewise.
26999         * tests/test-uname.c (uname): Likewise.
27000         * tests/test-unlink.c (unlink): Likewise.
27001         * tests/test-unlinkat.c (unlinkat): Likewise.
27002         * tests/test-unsetenv.c (unsetenv): Likewise.
27003         * tests/test-usleep.c (usleep): Likewise.
27004         * tests/test-utimensat.c (utimensat): Likewise.
27005         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
27006         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
27007         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
27008         * tests/test-vprintf-posix.c (vprintf): Likewise.
27009         * tests/test-vsnprintf.c (vsnprintf): Likewise.
27010         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
27011         * tests/test-wcrtomb.c (wcrtomb): Likewise.
27012         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
27013         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
27014         * tests/test-wcwidth.c (wcwidth): Likewise.
27015
27016         build: pull in conditional headers during GNULIB_POSIXCHECK
27017         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
27018         definitions from any conditionally-included headers.
27019         * lib/stdlib.in.h (includes): Likewise.
27020         * lib/unistd.in.h (includes): Likewise.
27021
27022 2009-12-24  Bruno Haible  <bruno@clisp.org>
27023
27024         * tests/test-argv-iter.c: Include header file being tested immediately
27025         after config.h.
27026         * tests/test-base64.c: Likewise.
27027         * tests/test-flock.c: Likewise.
27028         * tests/test-fsync.c: Likewise.
27029         * tests/test-getdate.c: Likewise.
27030         * tests/test-getndelim2.c: Likewise.
27031         * tests/test-isfinite.c: Likewise.
27032         * tests/test-isinf.c: Likewise.
27033         * tests/test-strerror.c: Likewise.
27034         * tests/test-strsignal.c: Likewise.
27035
27036 2009-12-23  Eric Blake  <ebb9@byu.net>
27037
27038         unistd: work around cygwin bug
27039         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
27040         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
27041         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
27042
27043 2009-12-23  Bruno Haible  <bruno@clisp.org>
27044
27045         localename: More tests.
27046         * tests/test-localename.c (SIZEOF): New macro.
27047         (categories): New variable.
27048         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
27049         test_locale_name_default): Add test w.r.t. thread locale.
27050         (test_locale_name_thread): New function.
27051         (main): Invoke it.
27052
27053         localename: Make aware of thread locale.
27054         * lib/localename.h (gl_locale_name_thread): New declaration.
27055         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
27056         behaviour with respect to thread locale.
27057         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
27058         <langinfo.h>, glthread/lock.h.
27059         (SIZE_BITS): New macro.
27060         (string_hash): New function.
27061         (struct hash_node): New type.
27062         (HASH_TABLE_SIZE): New macro.
27063         (struniq_hash_table, struniq_lock): New variables.
27064         (struniq): New function.
27065         (gl_locale_name_thread): New function.
27066         (gl_locale_name): Invoke it.
27067         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
27068         * modules/localename (Depends-on): Add lock.
27069         Reported by Mike Gran <spk121@yahoo.com>.
27070
27071 2009-12-23  Eric Blake  <ebb9@byu.net>
27072
27073         va-args: new module
27074         * modules/va-args: New file.
27075         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
27076         * MODULES.html.sh (Core language properties): Mention it.
27077
27078         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
27079         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
27080         named alias for __attribute__((__unused__)).
27081         * lib/chown.c: Update client.
27082         * lib/fchmodat.c: Likewise.
27083         * lib/fts.c: Likewise.
27084         * lib/getdate.y: Likewise.
27085         * lib/getgroups.c: Likewise.
27086         * lib/getopt.c: Likewise.
27087         * lib/getugroups.c: Likewise.
27088         * lib/mkdir.c: Likewise.
27089         * lib/mkfifo.c: Likewise.
27090         * lib/mkfifoat.c: Likewise.
27091         * lib/mknod.c: Likewise.
27092         * lib/mknodat.c: Likewise.
27093         * lib/readlink.c: Likewise.
27094         * lib/se-context.in.h: Likewise.
27095         * lib/se-selinux.in.h: Likewise.
27096         * lib/sockets.c: Likewise.
27097         * lib/symlink.c: Likewise.
27098         * lib/symlinkat.c: Likewise.
27099         * lib/unicodeio.c: Likewise.
27100         * lib/unistr.h: Likewise.
27101         * tests/test-areadlink.c: Likewise.
27102         * tests/test-areadlinkat.c: Likewise.
27103         * tests/test-filenamecat.c: Likewise.
27104         * tests/test-fseeko.c: Likewise.
27105         * tests/test-ftello.c: Likewise.
27106         * tests/test-getdate.c: Likewise.
27107         * tests/test-getgroups.c: Likewise.
27108         * tests/test-gethostname.c: Likewise.
27109         * tests/test-quotearg.c: Likewise.
27110         * tests/test-version-etc.c: Likewise.
27111         * tests/test-xalloc-die.c: Likewise.
27112         * tests/test-xfprintf-posix.c: Likewise.
27113         * tests/test-xprintf-posix.c: Likewise.
27114         * tests/test-xvasprintf.c: Likewise.
27115
27116         tests: avoid compiler warnings
27117         * tests/test-fcntl.c (main): Delete unused parameters.
27118         * tests/test-freopen-safer.c (main): Likewise.
27119         * tests/test-xalloc-die.c (main): Mark unused parameters.
27120         * tests/test-fseeko.c (main): Likewise.
27121         * tests/test-ftello.c (main): Likewise.
27122         * tests/test-nanosleep.c (main): Avoid declaration warning.
27123         * tests/test-sleep.c (main): Likewise.
27124         * tests/test-unsetenv.c (main): Silence warning about string
27125         literal.
27126         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
27127
27128 2009-12-23  Bruno Haible  <bruno@clisp.org>
27129
27130         * tests/test-localename.c (test_locale_name): New function, extracted
27131         from main. Also test mixed situations.
27132         (test_locale_name_posix, test_locale_name_environ,
27133         test_locale_name_default): New functions.
27134         (main): Invoke them all.
27135         * modules/localename-tests (configure.ac): Test for newlocale.
27136
27137 2009-12-23  Bruno Haible  <bruno@clisp.org>
27138
27139         unistd: Ensure getcwd gets declared before being overridden.
27140         * lib/unistd.in.h: Conditionally include <io.h>.
27141
27142 2009-12-22  Bruno Haible  <bruno@clisp.org>
27143
27144         wchar: Diagnose broken combination of glibc and gcc versions and flags.
27145         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
27146         (gl_WCHAR_H): Invoke it.
27147         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
27148         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
27149         Reported by Karl Berry <karl@freefriends.org>.
27150
27151 2009-12-22  Eric Blake  <ebb9@byu.net>
27152
27153         math, unistd: avoid redundant includes
27154         * lib/math.in.h (isnan): No need to re-include <math.h>.
27155         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
27156
27157         getsubopt: work around cygwin bug
27158         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
27159         avoid conflicting with system getsubopt.
27160         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
27161         bug.
27162
27163         getopt: synchronize from glibc
27164         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
27165         parameter order.  Adjust all callers.
27166         (_getopt_internal_r, main): Adjust quoting in error messages.
27167         Drop considerations for outdated POSIX 1003.2 error message.
27168         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
27169         callers.
27170         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
27171
27172         test-getopt: test stderr behavior
27173         * modules/getopt-posix-tests (Depends-on): Add dup2.
27174         * tests/test-getopt.c (ASSERT): Avoid stderr.
27175         (main): Move stderr to a temporary file.
27176         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
27177         Instead, add parameter to inform caller if output occurred.
27178         (test_getopt): Adjust all existing tests to expect silence, and
27179         add new tests of leading ":".
27180         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27181         glibc shortcomings with leading "-:" or "+:" in optstring.
27182         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27183         Likewise.
27184         * doc/posix-functions/getopt.texi (getopt): Likewise.
27185
27186         test-getopt: enhance test
27187         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
27188         supports optind=0.
27189         * tests/test-getopt.c (OPTIND_MIN): Move...
27190         * tests/test-getopt.h (OPTIND_MIN): ...here.
27191         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
27192         Require that optind=0 works, since modern BSD supports it in
27193         addition to optreset, and since coreutils expects it.
27194         (test_getopt_long_only): New test.
27195         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
27196         glibc shortcomings with 'W;', and enforcement of optind=0.
27197         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
27198         Likewise.
27199
27200 2009-12-21  Bruno Haible  <bruno@clisp.org>
27201
27202         localename: Improvements for MacOS X and Cygwin.
27203         * lib/localename.h (gl_locale_name_environ): New declaration.
27204         * lib/localename.c (gl_locale_name_environ): New function, extracted from
27205         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
27206         (gl_locale_name_posix): Invoke it.
27207         (gl_locale_name_default): Add comments. Use Windows native API also on
27208         Cygwin.
27209
27210 2009-12-21  Bruno Haible  <bruno@clisp.org>
27211
27212         Update list of Win32 locale ids.
27213         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
27214         (LANG_SAMI): Renamed from LANG_SAAMI.
27215         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
27216         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
27217         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
27218         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
27219         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
27220         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
27221         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
27222         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
27223         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
27224         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
27225         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
27226         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
27227         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
27228         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
27229         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
27230         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
27231         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
27232         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
27233         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
27234         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
27235         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
27236         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
27237         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
27238         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
27239         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
27240         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
27241         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
27242         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
27243         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
27244         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
27245         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
27246         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
27247         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
27248         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
27249         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
27250         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
27251         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
27252         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
27253         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
27254         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
27255         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
27256         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
27257         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
27258         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
27259         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
27260         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
27261         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
27262         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
27263         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
27264         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
27265         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
27266         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
27267         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
27268         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
27269         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
27270         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
27271         Add more languages and countries for Sami, Sorbian. Add more countries
27272         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
27273         for Pashto. Change country for Syriac, Tswana.
27274
27275 2009-12-21  Eric Blake  <ebb9@byu.net>
27276
27277         test-utimens: avoid spurious failure
27278         * tests/test-chown.h (nap): Factor...
27279         * tests/nap.h: ...into new file.
27280         * tests/test-lchown.h (nap): Avoid duplication.
27281         * tests/test-utimens-common.h (nap): Use shared implementation,
27282         necessary on file systems with 1-second resolution.
27283         * modules/chown-tests (Files): Include new file.
27284         * modules/fdutimensat-tests (Files): Likewise.
27285         * modules/futimens-tests (Files): Likewise.
27286         * modules/lchown-tests (Files): Likewise.
27287         * modules/openat-tests (Files): Likewise.
27288         * modules/utimens-tests (Files): Likewise.
27289         * modules/utimensat-tests (Files): Likewise.
27290
27291 2009-12-19  Eric Blake  <ebb9@byu.net>
27292
27293         futimens, utimensat: work around Linux bug
27294         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
27295         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
27296         * lib/utimensat.c (rpl_utimensat): Work around it.
27297         * lib/futimens.c (rpl_futimens): Adjust comment.
27298
27299         utimens: work around Linux ctime bug
27300         * lib/utimens.c (detect_ctime_bug): New helper function.
27301         (update_timespec): Differentiate between workaround needed for
27302         this bug vs. what is needed for systems that lack utimensat.
27303         (fdutimens, lutimens): Work around bug.
27304
27305         utimens: check for ctime update
27306         * tests/test-utimens-common.h (check_ctime): Define.
27307         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
27308         * tests/test-futimens.h (test_futimens): Likewise.
27309         * tests/test-lutimens.h (test_lutimens): Likewise.
27310         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27311         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
27312
27313 2009-12-19  Bruno Haible  <bruno@clisp.org>
27314
27315         dprintf-posix: Check against memory leak fixed on 2009-12-15.
27316         * tests/test-dprintf-posix2.sh: New file.
27317         * tests/test-dprintf-posix2.c: New file.
27318         * modules/dprintf-posix-tests (Files): Add them.
27319         (configure.ac): Check for getrlimit and setrlimit.
27320         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27321
27322 2009-12-19  Bruno Haible  <bruno@clisp.org>
27323
27324         fprintf-posix: Check against memory leak fixed on 2009-12-15.
27325         * tests/test-fprintf-posix3.sh: New file.
27326         * tests/test-fprintf-posix3.c: New file.
27327         * modules/fprintf-posix-tests (Files): Add them.
27328         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
27329
27330 2009-12-19  Eric Blake  <ebb9@byu.net>
27331
27332         dirfd: fix prototype
27333         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
27334         * lib/dirfd.c (dirfd): Likewise.
27335
27336         canonicalize: reduce memory usage
27337         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
27338         allocation to size.
27339         Reported by Solar Designer <solar@openwall.com>.
27340
27341 2009-12-19  Bruno Haible  <bruno@clisp.org>
27342
27343         New module attribute 'Applicability'.
27344         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
27345         * gnulib-tool: New option --extract-applicability.
27346         (func_usage): Document it.
27347         (sed_extract_prog): Recognize it.
27348         (func_get_applicability): New function.
27349         (func_import): Generalize handling of 'link-warning' module.
27350         * modules/link-warning (Applicability): New section.
27351         * modules/arg-nonnull (Applicability): New section.
27352         Repoted by Simon Josefsson <simon@josefsson.org>.
27353
27354 2009-12-19  Bruno Haible  <bruno@clisp.org>
27355
27356         fflush: tweak
27357         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
27358         * lib/fseeko.c (rpl_fseeko): Likewise.
27359
27360 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
27361
27362         * lib/gl_list.h: Fix typo in comment.
27363
27364 2009-12-16  Eric Blake  <ebb9@byu.net>
27365
27366         fcntl: use to simplify other modules
27367         * modules/cloexec (Depends-on): Add fcntl.
27368         * modules/fchdir (Depends-on): Likewise.
27369         * modules/fd-safer-flag (Depends-on): Likewise.
27370         * modules/unistd-safer (Depends-on): Likewise.
27371         * modules/dup3 (configure.ac): Set module indicator.
27372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
27373         missing.
27374         * lib/fchdir.c (_gl_register_dup): Fix comment.
27375         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
27376         * lib/dup-safer.c (dup_safer): Likewise.
27377         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
27378         * lib/dup3.c (dup3): Likewise.
27379         * tests/test-fchdir.c (main): Enhance test.
27380         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
27381
27382         fcntl: port portions of fcntl to mingw
27383         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
27384         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
27385         replacement for mingw.
27386         * modules/fcntl (Description): Update.
27387         (Depends-on): Add dup2.
27388         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
27389         * modules/fcntl-h (Makefile.am): Substitute it.
27390         * lib/fcntl.in.h (fcntl): Update declaration.
27391         (F_DUPFD, F_GETFD): New macros, when needed.
27392         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
27393         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
27394         * tests/test-fcntl.c (check_flags, main): Enhance test for items
27395         we now guarantee.
27396
27397         fcntl: work around cygwin bug in F_DUPFD
27398         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
27399         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
27400         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
27401         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
27402         * doc/posix-functions/fcntl.texi (fcntl): Document it.
27403
27404         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
27405         * modules/fcntl (Files): List new files.
27406         (configure.ac): Run a test.
27407         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
27408         * lib/fcntl.c (rpl_fcntl): Likewise.
27409         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
27410         (gl_FCNTL_H): Always replace fcntl.h.
27411         * modules/fcntl-h (Makefile.am): Substitute witnesses.
27412         * lib/fcntl.in.h (fcntl): Declare replacement.
27413         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
27414         needed, plus a witness.
27415         * doc/posix-functions/fcntl.texi (fcntl): Document this.
27416         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
27417         * tests/test-fcntl.c: New file.
27418         * modules/fcntl-tests: Likewise.
27419
27420         binary-io: avoid potential compilation warning
27421         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
27422         directives.
27423
27424         fflush: avoid compilation error on NetBSD
27425         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
27426         between off_t and fpos_t, since the latter is sometimes a struct.
27427         * lib/fseeko.c (rpl_fseeko): Likewise.
27428         Reported by Alexander Nasonov <alnsn@yandex.ru>.
27429
27430 2009-12-15  Eric Blake  <ebb9@byu.net>
27431
27432         fcntl-h, stdio, sys_ioctl: fix declarations
27433         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
27434         function must not take arguments.
27435         * lib/sys_ioctl.in.h (ioctl): Likewise.
27436         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
27437         (open): Add a link warning.
27438
27439 2009-12-15  Jim Meyering  <meyering@redhat.com>
27440
27441         areadlink, areadlink-with-size: relax license to LGPLv2+
27442         * modules/areadlink (License): Relax to LGPLv2+.
27443         * modules/areadlink-with-size (License): Likewise.
27444
27445 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
27446             Bruno Haible  <bruno@clisp.org>
27447
27448         *printf: Fix memory leak.
27449         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
27450         * lib/vfprintf.c (vfprintf): Likewise.
27451         * lib/dprintf.c (dprintf): Likewise.
27452         * lib/vdprintf.c (vdprintf): Likewise.
27453
27454 2009-12-14  Eric Blake  <ebb9@byu.net>
27455
27456         accept4: adjust module dependencies
27457         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
27458
27459         utimens: one more try at avoiding compiler warning
27460         * lib/utimens.c (lutimens): Lower scope of result.
27461
27462 2009-12-13  Bruno Haible  <bruno@clisp.org>
27463
27464         Move the malloc checking from module 'list' to new module 'xlist'.
27465         * modules/xlist: New file.
27466         * lib/gl_xlist.h: New file.
27467         * lib/gl_xlist.c: New file.
27468         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
27469         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
27470         gl_list_add_last, gl_list_add_before, gl_list_add_after,
27471         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
27472         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
27473         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
27474         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
27475         gl_sortedlist_nx_add): New declarations.
27476         (struct gl_list_implementation): Rename and change methods accordingly.
27477         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
27478         (gl_list_nx_create): Renamed from gl_list_create.
27479         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27480         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27481         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27482         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27483         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27484         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27485         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27486         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27487         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
27488         gl_list_create_empty.
27489         (gl_list_nx_create): Renamed from gl_list_create.
27490         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
27491         (gl_list_nx_set_at): Renamed from gl_list_set_at.
27492         (gl_list_nx_add_first): Renamed from gl_list_add_first.
27493         (gl_list_nx_add_last): Renamed from gl_list_add_last.
27494         (gl_list_nx_add_before): Renamed from gl_list_add_before.
27495         (gl_list_nx_add_after): Renamed from gl_list_add_after.
27496         (gl_list_nx_add_at): Renamed from gl_list_add_at.
27497         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
27498         * lib/gl_array_list.c: Don't include xalloc.h.
27499         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
27500         NULL upon out-of-memory.
27501         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
27502         out-of-memory.
27503         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
27504         Change return type to 'int'.
27505         (gl_array_nx_set_at): Renamed from gl_array_set_at.
27506         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27507         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
27508         upon out-of-memory.
27509         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
27510         upon out-of-memory.
27511         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
27512         upon out-of-memory.
27513         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
27514         upon out-of-memory.
27515         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
27516         out-of-memory.
27517         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
27518         Update.
27519         (gl_array_list_implementation): Update.
27520         * lib/gl_carray_list.c: Don't include xalloc.h.
27521         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
27522         Return NULL upon out-of-memory.
27523         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
27524         out-of-memory.
27525         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
27526         Change return type to 'int'.
27527         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
27528         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
27529         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
27530         upon out-of-memory.
27531         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
27532         upon out-of-memory.
27533         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
27534         out-of-memory.
27535         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
27536         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
27537         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
27538         Update.
27539         (gl_carray_list_implementation): Update.
27540         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
27541         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
27542         gl_linked_create_empty. Return NULL upon out-of-memory.
27543         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
27544         out-of-memory.
27545         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
27546         Change return type to 'int'. Return -1 upon out-of-memory.
27547         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
27548         out-of-memory.
27549         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
27550         upon out-of-memory.
27551         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
27552         upon out-of-memory.
27553         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
27554         NULL upon out-of-memory.
27555         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
27556         upon out-of-memory.
27557         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
27558         out-of-memory.
27559         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
27560         Update.
27561         * lib/gl_linked_list.c: Don't include xalloc.h.
27562         (gl_linked_list_implementation): Update.
27563         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
27564         (add_to_bucket): Change return type to 'int'.
27565         (gl_linkedhash_list_implementation): Update.
27566         * lib/gl_anytree_list1.h (free_subtree): New function.
27567         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
27568         gl_tree_create_empty. Return NULL upon out-of-memory.
27569         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
27570         Change return type to 'int'. Return -1 upon out-of-memory.
27571         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
27572         out-of-memory.
27573         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
27574         (gl_tree_remove_node): New function, moved here from
27575         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
27576         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
27577         Update.
27578         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
27579         malloc, not xmalloc. Return NULL upon out-of-memory.
27580         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27581         out-of-memory.
27582         (gl_tree_remove_node_from_tree): New function, extracted from
27583         gl_tree_remove_node.
27584         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27585         upon out-of-memory.
27586         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27587         out-of-memory.
27588         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27589         upon out-of-memory.
27590         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27591         upon out-of-memory.
27592         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27593         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
27594         not xmalloc. Return NULL upon out-of-memory.
27595         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
27596         out-of-memory.
27597         (gl_tree_remove_node_from_tree): New function, extracted from
27598         gl_tree_remove_node.
27599         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
27600         upon out-of-memory.
27601         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
27602         out-of-memory.
27603         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
27604         upon out-of-memory.
27605         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
27606         upon out-of-memory.
27607         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
27608         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
27609         gl_anytree_list1.h before gl_anyavltree_list2.h.
27610         (gl_avltree_list_implementation): Update.
27611         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
27612         gl_anytree_list1.h before gl_anyavltree_list2.h.
27613         (gl_rbtree_list_implementation): Update.
27614         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
27615         Change return type to 'int'. Return -1 upon out-of-memory. Use
27616         __builtin_expect.
27617         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
27618         (gl_avltreehash_list_implementation): Update.
27619         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
27620         (gl_rbtreehash_list_implementation): Update.
27621         * modules/array-list (Depends-on): Remove xalloc.
27622         * modules/carray-list (Depends-on): Likewise.
27623         * modules/linked-list (Depends-on): Likewise.
27624         * modules/linkedhash-list (Depends-on): Likewise.
27625         * modules/avltree-list (Depends-on): Likewise.
27626         * modules/rbtree-list (Depends-on): Likewise.
27627         * modules/avltreehash-list (Depends-on): Likewise.
27628         * modules/rbtreehash-list (Depends-on): Likewise.
27629
27630         * modules/xsublist: New file.
27631         * lib/gl_xsublist.h: New file.
27632         * lib/gl_xsublist.c: New file.
27633         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
27634         (gl_sublist_nx_create): New declaration.
27635         * lib/gl_sublist.c: Don't include xalloc.h.
27636         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
27637         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
27638         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
27639         Change return type to 'int'. Return -1 upon out-of-memory.
27640         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
27641         upon out-of-memory.
27642         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
27643         NULL upon out-of-memory.
27644         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
27645         upon out-of-memory.
27646         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
27647         NULL upon out-of-memory.
27648         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
27649         NULL upon out-of-memory.
27650         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
27651         upon out-of-memory.
27652         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
27653         (gl_sublist_list_implementation): Update.
27654         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
27655         upon out-of-memory.
27656         * modules/sublist (Depends-on): Remove xalloc.
27657
27658         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
27659         * tests/test-carray_list.c: Likewise.
27660         * tests/test-linked_list.c: Likewise.
27661         * tests/test-linkedhash_list.c: Likewise.
27662         * tests/test-avltree_list.c: Likewise.
27663         * tests/test-rbtree_list.c: Likewise.
27664         * tests/test-avltreehash_list.c: Likewise.
27665         * tests/test-rbtreehash_list.c: Likewise.
27666         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
27667         * modules/carray-list-tests (Makefile.am): Likewise.
27668         * modules/linked-list-tests (Makefile.am): Likewise.
27669         * modules/linkedhash-list-tests (Makefile.am): Likewise.
27670         * modules/avltree-list-tests (Makefile.am): Likewise.
27671         * modules/rbtree-list-tests (Makefile.am): Likewise.
27672         * modules/avltreehash-list-tests (Makefile.am): Likewise.
27673         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
27674
27675         * NEWS: Mention the changes.
27676
27677         * lib/clean-temp.c: Include gl_xlist.h.
27678         * modules/clean-temp (Depends-on): Add xlist.
27679
27680         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
27681         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
27682
27683         * tests/test-array_oset.c: Include gl_xlist.h.
27684         * modules/array-oset-tests (Depends-on): Add xlist.
27685
27686         Reported by José E. Marchesi <jemarch@gnu.org>.
27687
27688 2009-12-13  Bruno Haible  <bruno@clisp.org>
27689
27690         Move the malloc checking from module 'oset' to new module 'xoset'.
27691         * modules/xoset: New file.
27692         * lib/gl_xoset.h: New file.
27693         * lib/gl_xoset.c: New file.
27694         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
27695         declarations.
27696         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
27697         (struct gl_oset_implementation): Rename and change methods accordingly.
27698         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
27699         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27700         'int'. Mark as __warn_unused_result__.
27701         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
27702         gl_oset_create_empty.
27703         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
27704         'int'.
27705         * lib/gl_array_oset.c: Don't include xalloc.h.
27706         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
27707         malloc, not xmalloc.
27708         (grow): Change return type to 'int'. Don't call xalloc_die.
27709         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
27710         to 'int'.
27711         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
27712         'int'.
27713         (gl_array_oset_implementation): Update.
27714         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
27715         gl_tree_create_empty.
27716         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
27717         'int'.
27718         * lib/gl_avltree_oset.c: Don't include xalloc.h.
27719         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27720         xmalloc.
27721         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27722         not xmalloc.
27723         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27724         xmalloc.
27725         (gl_avltree_oset_implementation): Update.
27726         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
27727         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
27728         xmalloc.
27729         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
27730         not xmalloc.
27731         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
27732         xmalloc.
27733         (gl_rbtree_oset_implementation): Update.
27734         * modules/array-oset (Depends-on): Remove xalloc.
27735         * modules/avltree-oset (Depends-on): Likewise.
27736         * modules/rbtree-oset (Depends-on): Likewise.
27737         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
27738         * tests/test-avltree_oset.c: Likewise.
27739         * tests/test-rbtree_oset.c: Likewise.
27740         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
27741         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
27742         * modules/rbtree-oset-tests (Makefile.am): Likewise.
27743         * NEWS: Mention the change.
27744
27745 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
27746
27747         maint.mk: allow a project to override release-prep commands
27748         * top/maint.mk (alpha, beta, stable): Move release-preparatory
27749         commands into a new rule.
27750         (release-prep): New rule.
27751         (release-prep-hook): New overridable variable.
27752
27753 2009-12-13  Bruno Haible  <bruno@clisp.org>
27754
27755         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
27756
27757 2009-12-13  Jim Meyering  <meyering@redhat.com>
27758
27759         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
27760         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
27761
27762 2009-12-12  Bruno Haible  <bruno@clisp.org>
27763
27764         duplocale: Tweak.
27765         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
27766
27767 2009-12-12  Karl Berry  <karl@gnu.org>
27768
27769         * config/srclist.txt (strtoll.c): tab changes, no more sync.
27770
27771 2009-12-12  Bruno Haible  <bruno@clisp.org>
27772
27773         * m4/po.m4: Undo incorrect untabification.
27774
27775 2009-12-12  Bruno Haible  <bruno@clisp.org>
27776
27777         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
27778         * modules/c-strtod (Depends-on): Add locale.
27779         * modules/c-strtold (Depends-on): Likewise.
27780
27781 2009-12-12  Bruno Haible  <bruno@clisp.org>
27782
27783         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
27784
27785 2009-12-11  Eric Blake  <ebb9@byu.net>
27786
27787         setenv: relax requirement in light of POSIX ruling
27788         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
27789         not NULL.
27790         * tests/test-setenv.c (main): Relax test.
27791         * tests/test-unsetenv.c (main): Likewise.
27792         * doc/posix-functions/setenv.texi (setenv): Document this.
27793         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
27794
27795 2009-12-11  Bruno Haible  <bruno@clisp.org>
27796
27797         New module 'fd-safer-flag'.
27798         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
27799         * lib/dup-safer.c (dup_safer_flag): Remove function.
27800         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
27801         * lib/fd-safer.c (fd_safer_flag): Remove function.
27802         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
27803         * modules/cloexec (configure.ac): Drop indicator macro.
27804         * modules/fd-safer-flag: New file.
27805         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
27806         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
27807         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
27808
27809 2009-12-11  Bruno Haible  <bruno@clisp.org>
27810
27811         Tests for module 'nl_langinfo'.
27812         * modules/nl_langinfo-tests: New file.
27813         * tests/test-nl_langinfo.sh: New file.
27814         * tests/test-nl_langinfo.c: New file.
27815
27816         New module 'nl_langinfo'.
27817         * lib/nl_langinfo.c: New file.
27818         * m4/nl_langinfo.m4: New file.
27819         * modules/nl_langinfo: New file.
27820         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
27821
27822 2009-12-11  Bruno Haible  <bruno@clisp.org>
27823
27824         Tests for module 'langinfo'.
27825         * modules/langinfo-tests: New file.
27826         * tests/test-langinfo.c: New file.
27827
27828         New module 'langinfo'.
27829         * lib/langinfo.in.h: New file.
27830         * m4/langinfo_h.m4: New file.
27831         * modules/langinfo: New file.
27832         * doc/posix-headers/langinfo.texi: Mention the new module.
27833
27834 2009-12-11  Bruno Haible  <bruno@clisp.org>
27835
27836         * lib/config.charset: Untabify.
27837
27838 2009-12-11  Bruno Haible  <bruno@clisp.org>
27839
27840         * modules/unistd-safer (configure.ac): Drop indicator macro.
27841
27842 2009-12-11  Bruno Haible  <bruno@clisp.org>
27843
27844         Move pipe2-safer code to its own file.
27845         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
27846         * lib/pipe-safer.c (pipe2_safer): Remove function.
27847         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
27848         (Makefile.am): Add it to lib_SOURCES.
27849
27850 2009-12-10  Bruno Haible  <bruno@clisp.org>
27851
27852         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
27853
27854 2009-12-10  Bruno Haible  <bruno@clisp.org>
27855
27856         Declare which arguments expect non-NULL values, for GCC and clang.
27857         * build-aux/arg-nonnull.h: New file.
27858         * modules/arg-nonnull: New file.
27859         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
27860         (inet_ntop, inet_pton): Use it.
27861         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
27862         (closedir, dirfd, opendir, scandir, alphasort): Use it.
27863         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
27864         (open, openat): Use it.
27865         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
27866         (fnmatch): Use it.
27867         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
27868         (getopt, getopt_long, getopt_long_only): Use it.
27869         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
27870         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
27871         Use it.
27872         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
27873         (iconv_open): Use it.
27874         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
27875         (strtoimax, strtoumax): Use it.
27876         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
27877         (duplocale): Use it.
27878         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
27879         (frexp, frexpl): Use it.
27880         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
27881         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
27882         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
27883         (tsearch, tfind, tdelete, twalk): Use it.
27884         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
27885         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
27886         sigpending): Use it.
27887         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
27888         (posix_spawn, posix_spawnp, posix_spawnattr_init,
27889         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
27890         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
27891         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
27892         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
27893         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
27894         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
27895         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
27896         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
27897         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
27898         Use it.
27899         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
27900         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
27901         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
27902         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
27903         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
27904         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
27905         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
27906         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
27907         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
27908         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
27909         strtoull, unsetenv): Use it.
27910         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
27911         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
27912         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
27913         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
27914         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
27915         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
27916         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
27917         (strcasecmp, strncasecmp): Use it.
27918         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
27919         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
27920         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
27921         rpl_setsockopt): Use it.
27922         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
27923         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
27924         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
27925         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
27926         (gettimeofday): Use it.
27927         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
27928         (times): Use it.
27929         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
27930         (uname): Use it.
27931         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
27932         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
27933         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
27934         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
27935         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
27936         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
27937         unlinkat, write): Use it.
27938         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
27939         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
27940         * lib/argv-iter.h: Include arg-nonnull.h.
27941         (_ATTRIBUTE_NONNULL_): Remove macro.
27942         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
27943         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
27944         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
27945         optimization.
27946         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
27947         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
27948         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
27949         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
27950         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
27951         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
27952         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
27953         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
27954         * modules/arpa_inet (Depends-on): Add arg-nonnull.
27955         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
27956         * modules/dirent (Depends-on): Add arg-nonnull.
27957         (Makefile.am): Insert arg-nonnull.h into dirent.h.
27958         * modules/fcntl-h (Depends-on): Add arg-nonnull.
27959         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
27960         * modules/fnmatch (Depends-on): Add arg-nonnull.
27961         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
27962         * modules/getopt-posix (Depends-on): Add arg-nonnull.
27963         (Makefile.am): Insert arg-nonnull.h into getopt.h.
27964         * modules/glob (Depends-on): Add arg-nonnull.
27965         (Makefile.am): Insert arg-nonnull.h into glob.h.
27966         * modules/iconv_open (Depends-on): Add arg-nonnull.
27967         (Makefile.am): Insert arg-nonnull.h into iconv.h.
27968         * modules/inttypes (Depends-on): Add arg-nonnull.
27969         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
27970         * modules/locale (Depends-on): Add arg-nonnull.
27971         (Makefile.am): Insert arg-nonnull.h into locale.h.
27972         * modules/math (Depends-on): Add arg-nonnull.
27973         (Makefile.am): Insert arg-nonnull.h into math.h.
27974         * modules/netdb (Depends-on): Add arg-nonnull.
27975         (Makefile.am): Insert arg-nonnull.h into netdb.h.
27976         * modules/search (Depends-on): Add arg-nonnull.
27977         (Makefile.am): Insert arg-nonnull.h into search.h.
27978         * modules/signal (Depends-on): Add arg-nonnull.
27979         (Makefile.am): Insert arg-nonnull.h into signal.h.
27980         * modules/spawn (Depends-on): Add arg-nonnull.
27981         (Makefile.am): Insert arg-nonnull.h into spawn.h.
27982         * modules/stdio (Depends-on): Add arg-nonnull.
27983         (Makefile.am): Insert arg-nonnull.h into stdio.h.
27984         * modules/stdlib (Depends-on): Add arg-nonnull.
27985         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
27986         * modules/string (Depends-on): Add arg-nonnull.
27987         (Makefile.am): Insert arg-nonnull.h into string.h.
27988         * modules/strings (Depends-on): Add arg-nonnull.
27989         (Makefile.am): Insert arg-nonnull.h into strings.h.
27990         * modules/sys_socket (Depends-on): Add arg-nonnull.
27991         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
27992         * modules/sys_stat (Depends-on): Add arg-nonnull.
27993         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
27994         * modules/sys_time (Depends-on): Add arg-nonnull.
27995         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
27996         * modules/sys_times (Depends-on): Add arg-nonnull.
27997         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
27998         * modules/sys_utsname (Depends-on): Add arg-nonnull.
27999         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
28000         * modules/time (Depends-on): Add arg-nonnull.
28001         (Makefile.am): Insert arg-nonnull.h into time.h.
28002         * modules/unistd (Depends-on): Add arg-nonnull.
28003         (Makefile.am): Insert arg-nonnull.h into unistd.h.
28004         * modules/wchar (Depends-on): Add arg-nonnull.
28005         (Makefile.am): Insert arg-nonnull.h into wchar.h.
28006         * modules/argv-iter (Depends-on): Add arg-nonnull.
28007         * tests/test-canonicalize.c (null_ptr): New function.
28008         (main): Use it.
28009         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
28010         (main): Use it.
28011         * tests/test-memmem.c (null_ptr): New function.
28012         (main): Use it.
28013         Reported by Jim Meyering.
28014
28015 2009-12-10  Bruno Haible  <bruno@clisp.org>
28016
28017         Use spaces for indentation, not tabs.
28018         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28019         * m4/*.m4: Untabify.
28020         * build-aux/*.h: Untabify.
28021         * tests/**/*.[hc]: Untabify.
28022         * README: New section "Indent with spaces, not TABs", based on
28023         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
28024         * NEWS: Mention the change.
28025
28026 2009-12-10  Bruno Haible  <bruno@clisp.org>
28027
28028         pty test: Fix link error.
28029         * modules/pty-tests (Makefile.am): Add the default LDADD value to
28030         test_pty_LDADD.
28031
28032 2009-12-07  Simon Josefsson  <simon@josefsson.org>
28033
28034         * modules/pty: New file.
28035         * modules/pty-tests: New file.
28036         * m4/pty.m4: New file.
28037         * tests/test-pty.c: New file.
28038         * doc/glibc-headers/pty.texi: Modified.
28039         * doc/glibc-functions/forkpty.texi: Modified.
28040         * doc/glibc-functions/openpty.texi: Modified.
28041
28042 2009-12-10  Bruno Haible  <bruno@clisp.org>
28043
28044         Avoid syntax error in C++ mode.
28045         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
28046
28047 2009-12-10  Bruno Haible  <bruno@clisp.org>
28048
28049         Use sed with option -e.
28050         * gnulib-tool (func_version, func_emit_copyright_notice,
28051         func_emit_initmacro_end, func_import, func_create_testdir): Pass
28052         option -e to sed.
28053         * modules/link-warning (Makefile.am): Likewise.
28054
28055 2009-12-10  Jim Meyering  <meyering@redhat.com>
28056
28057         mgetgroups: do not write bytes beyond end of malloc'd buffer
28058         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
28059         username, we call getgroups with a one-element-shorter buffer,
28060         but still told it the length was original, max_n_groups.
28061
28062 2009-12-09  Eric Blake  <ebb9@byu.net>
28063
28064         cloexec: relax license
28065         * modules/cloexec (Maintainer): Add myself.
28066         (License): Use LGPL, not GPL.
28067
28068         link-warning: optimize generation
28069         * modules/link-warning (Makefile.am): Reduce process usage.
28070
28071 2009-12-09  Bruno Haible  <bruno@clisp.org>
28072
28073         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
28074         workaround was added on 2009-11-17.
28075
28076 2009-12-09  Jim Meyering  <meyering@redhat.com>
28077             Bruno Haible  <bruno@clisp.org>
28078
28079         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
28080         * modules/link-warning (Makefile.am): Make the comment-removing sed
28081         command more robust in the face of bootstrap-prepended comment lines.
28082
28083 2009-12-09  Bruno Haible  <bruno@clisp.org>
28084
28085         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
28086         most one group.
28087
28088 2009-12-09  Simon Josefsson <simon@josefsson.org>
28089             Bruno Haible  <bruno@clisp.org>
28090
28091         * build-aux/link-warning.h: Add copyright notice.
28092         * modules/link-warning (Makefile.am): Generate link-warning.h from
28093         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
28094         * NEWS: Mention change in link-warning module.
28095         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
28096         * modules/dirent (Makefile.am): Add dependency to dirent.h.
28097         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
28098         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
28099         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
28100         * modules/math (Makefile.am): Add dependency to math.h.
28101         * modules/search (Makefile.am): Add dependency to search.h.
28102         * modules/signal (Makefile.am): Add dependency to signal.h.
28103         * modules/spawn (Makefile.am): Add dependency to spawn.h.
28104         * modules/stdio (Makefile.am): Add dependency to stdio.h.
28105         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
28106         * modules/string (Makefile.am): Add dependency to string.h.
28107         * modules/strings (Makefile.am): Add dependency to strings.h.
28108         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
28109         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
28110         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
28111         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
28112         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
28113         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
28114         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
28115         * modules/unistd (Makefile.am): Add dependency to unistd.h.
28116         * modules/wchar (Makefile.am): Add dependency to wchar.h.
28117
28118 2009-12-09  Bruno Haible  <bruno@clisp.org>
28119
28120         fchdir: Optimize away rpl_fstat when possible.
28121         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
28122         REPLACE_OPEN_DIRECTORY.
28123         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
28124
28125 2009-12-09  Bruno Haible  <bruno@clisp.org>
28126
28127         * lib/fchdir.c: Update comment.
28128
28129 2009-12-09  Bruno Haible  <bruno@clisp.org>
28130
28131         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
28132
28133 2009-12-08  Eric Blake  <ebb9@byu.net>
28134
28135         fchdir: avoid memory leak on re-registration.
28136         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
28137
28138 2009-12-08  Jim Meyering  <meyering@redhat.com>
28139
28140         init.sh: avoid Solaris 10 /bin/sh portability problem
28141         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
28142         sourced script:
28143           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
28144           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
28145           bar
28146         tests/init.sh relied on that, accepting a --set-path=DIR argument,
28147         and two tests used that idiom.
28148         * tests/init.sh: Update suggested usage comments.
28149         (path_prepend_): New function, to be used in place
28150         of the --src-path=DIR option.
28151         (setup_): Move PATH-prepending code into path_prepend_.
28152         * tests/test-pread.sh: Adapt to new usage.
28153         * tests/test-xalloc-die.sh: Likewise.
28154
28155 2009-12-08  Simon Josefsson  <simon@josefsson.org>
28156
28157         * doc/gnulib.texi (Glibc pty.h): Add.
28158         * doc/glibc-functions/forkpty.texi: Add.
28159         * doc/glibc-functions/openpty.texi: Add.
28160         Suggested by Bruno Haible.
28161
28162 2009-12-08  Eric Blake  <ebb9@byu.net>
28163
28164         fchdir: fix logic bugs
28165         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
28166         * tests/test-fchdir.c (main): Enhance test.
28167         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
28168         is in use.
28169
28170         dup2: fix logic bugs
28171         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
28172         REPLACE_DUP2 to decide when rpl_dup2 is needed.
28173         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
28174         exists.
28175         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
28176
28177 2009-12-07  Eric Blake  <ebb9@byu.net>
28178
28179         unlink: fix m4 detection
28180         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
28181
28182         unistd-safer: add unit test
28183         * modules/unistd-safer-tests: New file.
28184         * tests/test-dup-safer.c: Likewise.
28185         * tests/test-cloexec.c (setmode): Avoid compiler warning.
28186         * tests/test-dup2.c (setmode): Likewise.
28187         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
28188
28189         cloexec: preserve text vs. binary across dup_cloexec
28190         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
28191         mode.
28192         * modules/dup2-tests (Depends-on): Add binary-io.
28193         * modules/cloexec-tests (Depends-on): Likewise.
28194         * tests/test-dup2.c (setmode, is_mode): New helpers.
28195         (main): Add tests that translation mode is preserved.
28196         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
28197         Reported by Bruno Haible.
28198
28199         mgetgroups: reduce duplicate listings
28200         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
28201         resulting array.
28202         * tests/test-chown.h (test_chown): Simplify client.
28203         * tests/test-lchown.h (test_lchown): Likewise.
28204
28205 2009-12-06  Bruno Haible  <bruno@clisp.org>
28206
28207         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
28208         value.
28209
28210 2009-12-06  Bruno Haible  <bruno@clisp.org>
28211
28212         * lib/progname.c: Include stdio.h, stdlib.h.
28213         (set_program_name): Reject a NULL argument.
28214
28215 2009-12-05  Eric Blake  <ebb9@byu.net>
28216
28217         pipe2-safer: new module
28218         * modules/pipe2-safer: New file.
28219         * lib/unistd-safer.h (pipe2_safer): New prototype.
28220         * lib/unistd--.h (pipe2): New wrapper.
28221         * lib/pipe-safer.c (pipe2_safer): New function.
28222         * modules/pipe (Depends-on): Add pipe2-safer.
28223         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
28224
28225         stdlib-safer: preserve cloexec flag for mkostemp[s]
28226         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
28227         fd_safer_flag.
28228
28229         unistd-safer: allow preservation of cloexec status via flag
28230         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
28231         prototypes.
28232         * lib/dup-safer.c (dup_safer_flag): New function.
28233         * lib/fd-safer.c (fd_safer_flag): Likewise.
28234         * modules/cloexec (configure.ac): Set witness.
28235
28236         test-dup2: enhance test
28237         * modules/dup2-tests (Depends-on): Add cloexec.
28238         * tests/test-dup2.c (main): Enhance test.
28239
28240         cloexec: add dup_cloexec
28241         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
28242         header and comments.
28243         * lib/cloexec.c (set_cloexec_flag): Add comments.
28244         (dup_cloexec): New function, with mingw implementation borrowed
28245         from...
28246         * lib/w32spawn.h (dup_noinherit): ...here.
28247         * modules/execute (Depends-on): Add cloexec.
28248         * modules/pipe (Depends-on): Likewise.
28249         * modules/cloexec (Depends-on): Add dup2.
28250         * modules/cloexec-tests (Files): New file.
28251         * tests/test-cloexec.c: Likewise.
28252
28253         test-xalloc-die: fix test for mingw
28254         * modules/xalloc-die-tests (Files): Add tests/init.sh.
28255         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
28256         directory and .exe suffix off argv[0] output.
28257
28258         test-fseeko: fix test for mingw
28259         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
28260         than undefining fseek, so test will pass on mingw.
28261
28262 2009-12-05  Bruno Haible  <bruno@clisp.org>
28263
28264         * lib/progname.h (set_program_name): Clarify specification.
28265         * lib/progname.c (set_program_name): Likewise.
28266         Reported by Jim Meyering.
28267
28268 2009-12-05  Jim Meyering  <meyering@redhat.com>
28269
28270         maint.mk: backslash-escape parens in default regexp
28271         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
28272         backslash-escape the literal parentheses.
28273
28274         maint.mk: news-date-check: use grep -E
28275         * top/maint.mk (today): Define a Make variable, not a...
28276         (news-date-check): ...shell variable.
28277         (news-date-regexp): Use the Make variable.
28278         Use grep's -E option.  Change the failing diagnostic to mention
28279         the variable, $(news-date-regexp).
28280
28281 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
28282
28283         maintainer-makefile: allow customization of NEWS entry format
28284         * top/maint.mk (news-date-regexp): New overridable variable.
28285         (news-date-check): Use it.
28286
28287 2009-12-04  Eric Blake  <ebb9@byu.net>
28288
28289         mgetgroups: add xgetgroups, and avoid ENOSYS failures
28290         * lib/mgetgroups.h (xgetgroups): New prototype.
28291         * lib/mgetgroups.c (xgetgroups): New wrapper.
28292         (mgetgroups): Handle ENOSYS.
28293         * modules/mgetgroups (Depends-on): Add realloc.
28294         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
28295
28296         mgetgroups: avoid argument promotion issues with -1
28297         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
28298         for invalid gid_t.
28299         * tests/test-chown.h (getegid, test_chown): Likewise.
28300         * tests/test-lchown.h (getegid, test_lchown): Likewise.
28301
28302 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
28303
28304         exclude: Fix header file problems.
28305         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
28306
28307 2009-12-01  Jim Meyering  <meyering@redhat.com>
28308
28309         fts: fts_open: do not let an empty string cause immediate failure
28310         This is required in support of GNU rm, for which the command
28311         "rm A '' B" must process and remove both A and B, in spite of
28312         the empty string argument.
28313         * lib/fts.c (fts_open): Do not let the presence of an empty string
28314         cause fts_open to fail immediately.  Most fts-using tools must be
28315         able to process all arguments, in order, and can be expected to
28316         diagnose such arguments themselves.
28317
28318 2009-11-30  Eric Blake  <ebb9@byu.net>
28319
28320         utimens: fix compilation error
28321         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
28322         Declare variable at right scope.
28323
28324 2009-11-29  Jim Meyering  <meyering@redhat.com>
28325
28326         bootstrap: handle perl-5.11's changed --version output
28327         * build-aux/bootstrap (get_version): Handle perl separately,
28328         since perl-5.11's --version output is different.
28329
28330 2009-11-28  Jim Meyering  <meyering@redhat.com>
28331
28332         userspec: depend on the inttostr module, too
28333         * modules/userspec (Depends-on): Add inttostr.
28334
28335         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
28336         * lib/userspec.c (parse_with_separator): Do not accept a user ID
28337         number of MAXUID when it evaluates to (uid_t) -1.
28338         Likewise for group ID.  Reported by Matt McCutchen in
28339         <http://savannah.gnu.org/bugs/?28113>
28340
28341         userspec: reformat to use spaces, not TABs
28342         * lib/userspec.c: Expand TABs to spaces.
28343         Add Emacs' "indent-tabs-mode: nil" hint.
28344
28345 2009-11-27  Eric Blake  <ebb9@byu.net>
28346
28347         getopt-gnu: flush out another BSD bug
28348         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
28349         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
28350         flush out BSD bug.
28351         * tests/test-getopt.h (test_getopt): End lists with NULL.
28352         * tests/test-getopt_long.h (test_getopt_long): Likewise.
28353         (test_getopt_long_posix): Enhance test.
28354         * modules/getopt-posix-tests (Depends-on): Add stdbool.
28355         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
28356         getopt-gnu.
28357         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
28358         Likewise.
28359
28360 2009-11-27  Simon Josefsson  <simon@josefsson.org>
28361
28362         * modules/idpriv-droptemp-tests (Notice): Fix text.
28363
28364 2009-11-27  Jim Meyering  <meyering@redhat.com>
28365
28366         test-xalloc-die: avoid spurious failure due to libtool argv difference
28367         In a libtool-enabled project, this test would fail due to a difference
28368         in the emitted program name, e.g.,
28369         -test-xalloc-die: memory exhausted
28370         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
28371         Use program to avoid that.
28372         * modules/xalloc-die-tests (Depends-on): Add progname.
28373         * tests/test-xalloc-die.c: Include progname.h".
28374         (program_name): Remove decl.
28375         (main): Call set_program_name.
28376         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
28377
28378 2009-11-26  Richard Jones  <rjones@redhat.com>
28379
28380         w32sock: leave win32 error in place.
28381         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
28382
28383 2009-11-26  Eric Blake  <ebb9@byu.net>
28384
28385         init.sh: suggest to use skip_ and fail_ functions in comments
28386         * tests/init.sh: Add a sentence.
28387
28388 2009-11-25  Bruno Haible  <bruno@clisp.org>
28389
28390         init.sh: add documentation in comments
28391         * tests/init.sh: Add some developer and user documentation.
28392
28393 2009-11-26  Jim Meyering  <meyering@redhat.com>
28394
28395         init.sh: accommodate even those who specify bogus srcdir manually
28396         * tests/init.sh: Normally, srcdir is guaranteed by automake and
28397         configure-time tests to be sanitized, so that there is no need to
28398         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
28399         (with no double quotes) suffices.  However, since tests may be
28400         invoked manually, and since you may explicitly set srcdir to the
28401         name of a directory containing spaces, do quote its uses here.
28402         * tests/test-pread.sh: Likewise.
28403         Suggested by Bruno Haible.
28404
28405         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
28406         * tests/test-pread.sh: Write no data into the pipe, because
28407         test-pread actually reads none.  This avoids a diagnostic,
28408         "bash: echo: write error: Broken pipe", that arises in the unusual
28409         event something is ignoring SIGPIPE, and might be interpreted
28410         as some sort of failure.  Reported by Bruno Haible.
28411
28412 2009-11-25  Jim Meyering  <meyering@redhat.com>
28413
28414         test-pread: cover failure with ESPIPE and EINVAL
28415         * tests/test-pread.c (main): Test for failure, too.
28416         * tests/test-pread.sh: Invoke with stdin on a pipe.
28417         Suggested by Eric Blake.
28418
28419         pread: improvement and fix
28420         * modules/pread (Depends-on): Depend on lseek, for portability to
28421         e.g., mingw.  Suggested by Eric Blake.
28422         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
28423
28424         unistd.in.h: correct declaration of pread
28425         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
28426         Reported by Richard W.M. Jones.
28427
28428         test-pread.sh: distribute the test script
28429         * modules/pread-tests (Files): Include test-pread.sh.
28430
28431         test-pread.sh: clean up
28432         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
28433         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
28434         That is unnecessary, since it's always ".".
28435         Suggestion from Eric Blake.
28436
28437         test-pread.sh: make executable
28438         * tests/test-pread.sh: Set executable bit.
28439         Reported by Eric Blake.
28440
28441         correct typo in test-pread.sh
28442         * tests/test-pread.sh: Add #! line.
28443
28444         test pread
28445         * tests/test-pread.c: New file.
28446         * tests/test-pread.sh: Likewise.
28447         * modules/pread-tests: Likewise.
28448
28449         pread: new module
28450         * modules/pread: New file.
28451         * lib/unistd.in.h (pread): Define/declare.
28452         * lib/pread.c (pread): New file.
28453         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
28454         * modules/unistd (Makefile.am): Substitute witnesses.
28455         * doc/posix-functions/pread.texi (pread): Update.
28456         * MODULES.html.sh: Add pread.
28457
28458 2009-11-25  Jim Meyering  <meyering@redhat.com>
28459
28460         tests/init.sh: new file to be used via most *.sh tests
28461         * tests/init.sh: New file.
28462
28463 2009-11-25  Eric Blake  <ebb9@byu.net>
28464
28465         utimens: work around older Linux failure with symlinks
28466         * lib/utimens.c (lutimensat_works_really): New variable.
28467         (fdutimens, lutimens): Use it to manage kernels that support
28468         nanosecond times on files, but not on symlinks.
28469         Reported by OndÅ™ej Vašík.
28470
28471         utimes: fix configure grammar
28472         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
28473
28474 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
28475
28476         regex: Fix fastmap for multibyte character ranges.
28477         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
28478         characters when a multibyte character range is included.
28479
28480 2009-11-22  Andy Wingo  <wingo@pobox.com>
28481
28482         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
28483         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
28484
28485 2009-11-24  Bruno Haible  <bruno@clisp.org>
28486
28487         doc: Most *_l functions exist in MacOS X 10.5.
28488         * doc/posix-functions/duplocale.texi: Update platforms list.
28489         * doc/posix-functions/freelocale.texi: Likewise.
28490         * doc/posix-functions/newlocale.texi: Likewise.
28491         * doc/posix-functions/uselocale.texi: Likewise.
28492         * doc/posix-functions/isalnum_l.texi: Likewise.
28493         * doc/posix-functions/isalpha_l.texi: Likewise.
28494         * doc/posix-functions/isblank_l.texi: Likewise.
28495         * doc/posix-functions/iscntrl_l.texi: Likewise.
28496         * doc/posix-functions/isdigit_l.texi: Likewise.
28497         * doc/posix-functions/isgraph_l.texi: Likewise.
28498         * doc/posix-functions/islower_l.texi: Likewise.
28499         * doc/posix-functions/isprint_l.texi: Likewise.
28500         * doc/posix-functions/ispunct_l.texi: Likewise.
28501         * doc/posix-functions/isspace_l.texi: Likewise.
28502         * doc/posix-functions/isupper_l.texi: Likewise.
28503         * doc/posix-functions/iswalnum_l.texi: Likewise.
28504         * doc/posix-functions/iswalpha_l.texi: Likewise.
28505         * doc/posix-functions/iswblank_l.texi: Likewise.
28506         * doc/posix-functions/iswcntrl_l.texi: Likewise.
28507         * doc/posix-functions/iswctype_l.texi: Likewise.
28508         * doc/posix-functions/iswdigit_l.texi: Likewise.
28509         * doc/posix-functions/iswgraph_l.texi: Likewise.
28510         * doc/posix-functions/iswlower_l.texi: Likewise.
28511         * doc/posix-functions/iswprint_l.texi: Likewise.
28512         * doc/posix-functions/iswpunct_l.texi: Likewise.
28513         * doc/posix-functions/iswspace_l.texi: Likewise.
28514         * doc/posix-functions/iswupper_l.texi: Likewise.
28515         * doc/posix-functions/iswxdigit_l.texi: Likewise.
28516         * doc/posix-functions/isxdigit_l.texi: Likewise.
28517         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
28518         * doc/posix-functions/strcasecmp_l.texi: Likewise.
28519         * doc/posix-functions/strcoll_l.texi: Likewise.
28520         * doc/posix-functions/strfmon_l.texi: Likewise.
28521         * doc/posix-functions/strftime_l.texi: Likewise.
28522         * doc/posix-functions/strncasecmp_l.texi: Likewise.
28523         * doc/posix-functions/strxfrm_l.texi: Likewise.
28524         * doc/posix-functions/tolower_l.texi: Likewise.
28525         * doc/posix-functions/toupper_l.texi: Likewise.
28526         * doc/posix-functions/towctrans_l.texi: Likewise.
28527         * doc/posix-functions/towlower_l.texi: Likewise.
28528         * doc/posix-functions/towupper_l.texi: Likewise.
28529         * doc/posix-functions/wcscoll_l.texi: Likewise.
28530         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
28531         * doc/posix-functions/wctrans_l.texi: Likewise.
28532         * doc/posix-functions/wctype_l.texi: Likewise.
28533         * doc/glibc-functions/strptime_l.texi: Likewise.
28534         * doc/glibc-functions/strtod_l.texi: Likewise.
28535         * doc/glibc-functions/strtof_l.texi: Likewise.
28536         * doc/glibc-functions/strtol_l.texi: Likewise.
28537         * doc/glibc-functions/strtold_l.texi: Likewise.
28538         * doc/glibc-functions/strtoll_l.texi: Likewise.
28539         * doc/glibc-functions/strtoul_l.texi: Likewise.
28540         * doc/glibc-functions/strtoull_l.texi: Likewise.
28541         * doc/glibc-functions/wcsftime_l.texi: Likewise.
28542         * doc/glibc-functions/wcstod_l.texi: Likewise.
28543         * doc/glibc-functions/wcstof_l.texi: Likewise.
28544         * doc/glibc-functions/wcstol_l.texi: Likewise.
28545         * doc/glibc-functions/wcstold_l.texi: Likewise.
28546         * doc/glibc-functions/wcstoll_l.texi: Likewise.
28547         * doc/glibc-functions/wcstoul_l.texi: Likewise.
28548         * doc/glibc-functions/wcstoull_l.texi: Likewise.
28549
28550 2009-11-24  Bruno Haible  <bruno@clisp.org>
28551
28552         duplocale: Fix logic bug.
28553         * lib/duplocale.c: Don't include <langinfo.h>.
28554         (_NL_LOCALE_NAME): Remove macro.
28555         (rpl_duplocale): Use setlocale instead of nl_langinfo.
28556         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
28557
28558 2009-11-23  Jim Meyering  <meyering@redhat.com>
28559
28560         test-update-copyright: don't hard-code /usr/bin/perl
28561         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
28562         perl to print the current year.  Gilles Espinasse reported that
28563         the replaced use of perl was hard-coded as /usr/bin/perl.
28564
28565 2009-11-23  Bruno Haible  <bruno@clisp.org>
28566
28567         duplocale: Add support for glibc 2.3.x.
28568         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
28569
28570 2009-11-22  Bruno Haible  <bruno@clisp.org>
28571
28572         vasnprintf: Tiny optimization.
28573         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
28574         MacOS X.
28575
28576 2009-11-22  Bruno Haible  <bruno@clisp.org>
28577
28578         Tests for module 'duplocale'.
28579         * modules/duplocale-tests: New file.
28580         * tests/test-duplocale.c: New file.
28581
28582         New module 'duplocale'.
28583         * m4/duplocale.m4: New file.
28584         * lib/locale.in.h (duplocale): New declaration.
28585         * lib/duplocale.c: New file.
28586         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
28587         gl_LOCALE_H_DEFAULTS): New macros.
28588         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
28589         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
28590         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
28591         REPLACE_DUPLOCALE.
28592         * modules/duplocale: New file.
28593         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
28594
28595 2009-11-22  Bruno Haible  <bruno@clisp.org>
28596
28597         * modules/locale-tests (configure.ac): Test for newlocale function.
28598         * tests/test-locale.c: When the system has extended locale functions,
28599         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
28600
28601         locale: Make locale_t available when possible.
28602         * lib/locale.in.h: Include <xlocale.h> when it exists.
28603         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
28604         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
28605         * modules/locale (Depends-on): Add extensions.
28606         (Makefile.am): Also substitute HAVE_XLOCALE_H.
28607         * doc/posix-headers/locale.texi: Document the problem with locale_t.
28608
28609 2009-11-22  Bruno Haible  <bruno@clisp.org>
28610
28611         Add comments.
28612         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
28613         invocation.
28614         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
28615         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
28616         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
28617
28618 2009-11-22  Bruno Haible  <bruno@clisp.org>
28619
28620         error: account for the possibility of freopen (stdout).
28621         * lib/error.c: Include <unistd.h>.
28622         (flush_stdout): New function, extracted from error and error_at_line.
28623         Determine stdout's fd dynamically.
28624         (error, error_at_line): Invoke flush_stdout.
28625         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
28626         * modules/error (Depends-on): Add unistd.
28627
28628 2009-11-22  Bruno Haible  <bruno@clisp.org>
28629
28630         diffseq: Add comment.
28631         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
28632
28633 2009-11-22  Jim Meyering  <meyering@redhat.com>
28634
28635         c-stack: avoid defining an unused static function
28636         * lib/c-stack.c (find_stack_direction): Do not define this function
28637         when it will not be used.
28638
28639         diffseq: avoid spurious gcc warnings
28640         * lib/diffseq.h (IF_LINT2): Define.
28641         (compareseq): Use it to initialize two members of "part".
28642         This avoids two used-uninitialized warnings.
28643
28644 2009-11-21  Jim Meyering  <meyering@redhat.com>
28645
28646         c-stack: avoid "ignoring return value of `write'" warning
28647         * lib/c-stack.c: Include "ignore-value.h".
28648         (die): Explicitly ignore each write return value.
28649         * modules/c-stack (Depends-on): Add ignore-value.
28650
28651 2009-11-21  Bruno Haible  <bruno@clisp.org>
28652
28653         diffseq: reduce scope of variable 'best'.
28654         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
28655         variable, earlier used for two different purposes.
28656
28657 2009-11-21  Jim Meyering  <meyering@redhat.com>
28658
28659         diffseq: remove useless assignment to "best"
28660         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
28661         assignment.  At that point "best" is already guaranteed to be zero.
28662
28663 2009-11-20  Eric Blake  <ebb9@byu.net>
28664
28665         build: mention ftp redirector in release announcements
28666         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
28667         values that used to come from cfg.mk; mention FTP redirect URL.
28668         * build-aux/announce-gen: Mention the mirror list.
28669         Suggested by Karl Berry.
28670
28671         nanosleep: improve port to mingw
28672         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
28673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
28674         LIB_NANOSLEEP, but only when needed.
28675         * modules/select (Link): Document LIBSOCKET.
28676         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
28677         enough.
28678
28679         nanosleep: work around cygwin bug
28680         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
28681         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
28682         bug.
28683         (getnow): Delete, not needed.
28684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
28685         LIB_CLOCK_GETTIME.
28686         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
28687         clock-time, gettime.
28688         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
28689         bug.
28690         * modules/nanosleep-tests: New test.
28691         * tests/test-nanosleep.c: New file.
28692
28693         sleep: work around cygwin bug
28694         * lib/sleep.c (rpl_sleep): Work around the bug.
28695         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
28696         (gl_PREREQ_SLEEP): Delete unused macro.
28697         * modules/sleep (Depends-on): Add verify.
28698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
28699         * modules/unistd (Makefile.am): Substitute witness.
28700         * lib/unistd.in.h (sleep): Update prototype.
28701         * doc/posix-functions/sleep.texi (sleep): Document the bug.
28702         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
28703         * modules/sleep-tests (Depends-on): Check for alarm.
28704
28705 2009-11-20  Jim Meyering  <meyering@redhat.com>
28706
28707         maint.mk: improve sc_prohibit_magic_number_exit
28708         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
28709         so it does not match uses like System.exit(1).
28710         Add comments showing how to correct all offenders.
28711
28712 2009-11-19  Eric Blake  <ebb9@byu.net>
28713
28714         xalloc-die-tests: add missing library
28715         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
28716
28717         test-xvasprintf: silence compiler warnings
28718         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
28719         empty string from gcc.
28720
28721 2009-11-19  Jim Meyering  <meyering@redhat.com>
28722
28723         xfreopen: new module, from coreutils
28724         * modules/xfreopen: New module.
28725         * lib/xfreopen.c: New file.
28726         * lib/xfreopen.h: New file.
28727         * MODULES.html.sh (File stream based Input/Output"): Add it.
28728
28729 2009-11-19  Eric Blake  <ebb9@byu.net>
28730
28731         manywarnings: depend on warnings
28732         * modules/manywarnings (Depends-on): Add warnings.
28733
28734         build: avoid compiler warnings
28735         * lib/select.c (rpl_select): Delete unused variable.
28736         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
28737
28738 2009-11-18  Eric Blake  <ebb9@byu.net>
28739
28740         tests: avoid false negative with --with-packager
28741         * tests/test-version-etc.sh: Discard packager information.
28742         * tests/test-argp-version-etc-1.sh: Likewise.
28743         Reported by Mike Frysinger.
28744
28745         utimens: fix regression on Solaris
28746         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
28747         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
28748         can only change fd timestamps via futimesat.  Instead, use an
28749         additional witness macro to avoid BSD bug.
28750         Reported by Jim Meyering.
28751
28752 2009-11-17  Eric Blake  <ebb9@byu.net>
28753
28754         usleep: use it to simplify tests
28755         * modules/stat-time-tests (Depends-on): Add usleep.
28756         (configure.ac): Drop usleep check.
28757         * modules/chown-tests (Depends-on, configure.ac): Likewise.
28758         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
28759         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
28760         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
28761         * modules/openat-tests (Depends-on, configure.ac): Likewise.
28762         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
28763         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
28764         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
28765         Likewise.
28766         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
28767         * tests/test-lchown.h (nap): Likewise.
28768         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
28769         * tests/test-stat-time.c (nap): Likewise.
28770         * tests/test-utimens-common.h (nap): Update comments.
28771
28772         usleep: new module
28773         * modules/usleep: New file.
28774         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
28775         * lib/usleep.c (usleep): Likewise.
28776         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
28777         * modules/unistd (Makefile.am): Substitute witnesses.
28778         * lib/unistd.in.h (usleep): Add declaration.
28779         * doc/pastposix-functions/usleep.texi (usleep): Document this.
28780         * MODULES.html.sh (Date and time): Likewise.
28781         * modules/usleep-tests (Depends-on): New test.
28782         * tests/test-usleep.c: New file.
28783
28784         chown: work around OpenBSD bug
28785         * lib/chown.c (rpl_chown): Work around the bug.
28786         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
28787         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
28788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
28789         * modules/chown (Depends-on): Add stdbool.
28790         * modules/lchown (Depends-on): Likewise.
28791         * doc/posix-functions/chown.texi (chown): Document the bug.
28792         * doc/posix-functions/lchown.texi (lchown): Likewise.
28793         * tests/test-lchown.h (test_chown): Relax test.
28794
28795         mkstemp: avoid conflict with C++ keyword template
28796         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
28797         * lib/mkostemp.c (mkostemp): Likewise.
28798         * lib/mkostemps.c (mkostemps): Likewise.
28799         * lib/mkstemp.c (mkstemp): Likewise.
28800         * lib/mkstemps.c (mkstemps): Likewise.
28801
28802         xalloc-die-tests: optimize
28803         * tests/test-xalloc-die.sh: Reduce number of processes.
28804
28805 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28806
28807         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
28808         patch from ludo@gnu.org (Ludovic Courtès).
28809
28810 2009-11-17  Jim Meyering  <meyering@redhat.com>
28811
28812         version-etc: use proper license string
28813         * modules/version-etc (License): Use LGPL, not LGPLv3+.
28814         * modules/version-etc-fsf: Likewise.
28815
28816 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28817
28818         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
28819         printed to stdout.  Deal with EOL differences.
28820
28821 2009-11-17  Eric Blake  <ebb9@byu.net>
28822
28823         unsetenv: work around Solaris bug
28824         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
28825         * lib/unsetenv.c (rpl_unsetenv): Work around it.
28826         Reported by Jim Meyering.
28827
28828         vasnprintf: avoid compiler warnings
28829         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
28830         variables.
28831         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
28832
28833 2009-11-17  Simon Josefsson  <simon@josefsson.org>
28834
28835         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
28836         settings since xalloc-die is no longer the self test,
28837         xalloc-die.sh is.
28838
28839 2009-11-17  Jim Meyering  <meyering@redhat.com>
28840
28841         test-xalloc-die.sh: make the code agree with the commit log
28842         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
28843         at the end, just in case you happen to have a test-xalloc-die
28844         program in some other PATH directory.
28845
28846         test-xalloc-die.sh: fix a portability bug
28847         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
28848         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
28849         Otherwise, argv[0] (as often seen in diagnostics) would be too
28850         system-dependent, sometimes with, and sometimes without the leading "./".
28851
28852         version-etc-fsf: relax license to LGPLv3+
28853         * modules/version-etc-fsf (License): Relax license.
28854
28855 2009-11-16  Eric Blake  <ebb9@byu.net>
28856
28857         xalloc-die-tests: avoid printing null pointer
28858         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
28859         shell script.
28860         * tests/test-xalloc-die.c (program_name): Declare.
28861         * tests/test-xalloc-die.sh (tmpfiles): New file.
28862
28863         setenv, unsetenv: work around various bugs
28864         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
28865         (setenv) [HAVE_SETENV]: Work around bugs.
28866         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
28867         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
28868         for bugs.
28869         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
28870         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
28871         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
28872         * modules/stdlib (Makefile.am): Update substitutions.
28873         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
28874         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
28875         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
28876         * modules/setenv-tests: New test.
28877         * modules/unsetenv-tests: Likewise.
28878         * tests/test-setenv.c: New file.
28879         * tests/test-unsetenv.c: Likewise.
28880
28881 2009-11-16  Jim Meyering  <meyering@redhat.com>
28882
28883         version-etc: relax license to LGPLv3+
28884         * modules/version-etc (License): Relax license.
28885
28886         better AC_REQUIRE expanded-before-required-warning avoidance
28887         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
28888         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
28889         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
28890         which is no longer needed.
28891
28892 2009-11-16  Eric Blake  <ebb9@byu.net>
28893
28894         test-freading: clean up temporary file
28895         * tests/test-freading.c (main): Remove file on success, and use
28896         ASSERT more liberally.
28897         Reported by Jim Meyering.
28898
28899 2009-11-16  Jim Meyering  <meyering@redhat.com>
28900
28901         avoid new AC_REQUIRE expanded-before-required warnings
28902         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
28903         merely using it.
28904         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
28905         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
28906
28907 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28908
28909         * tests/test-xalloc-die.c: New file.
28910         * modules/xalloc-die-tests: New file.
28911         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
28912         XFAIL_TESTS so it can be appended by modules.
28913
28914 2009-11-15  Simon Josefsson  <simon@josefsson.org>
28915
28916         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
28917         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
28918
28919 2009-11-14  Eric Blake  <ebb9@byu.net>
28920
28921         fnmatch: avoid compiler warning
28922         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
28923         to silence compiler warning about mismatch signedness in ?:.
28924         Reported by Robert Millan.
28925
28926         intprops: add double-inclusion guard
28927         * lib/intprops.h: Allow idempotent includes.
28928         Suggested by Bruce Korb.
28929
28930         openat: detect Solaris fchownat bug
28931         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
28932         penalizing glibc chownat when only lchownat is broken.
28933         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
28934         trailing slash bugs.
28935         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
28936         * modules/openat-tests (Files): Include more files.
28937         (Depends-on): Add mgetgroups, sleep, stat-time.
28938         (configure.ac): Add additional checks.
28939         (Makefile.am): Build new test.
28940         * tests/test-fchownat.c: New file.
28941
28942         lchown: detect Solaris and FreeBSD bug
28943         * lib/lchown.c (rpl_lchown): Work around bug.
28944         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
28945         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28946         * modules/unistd (Makefile.am): Populate it.
28947         * lib/unistd.in.h (lchown): Update declaration.
28948         * doc/posix-functions/lchown.texi (lchown): Document the bug.
28949         * modules/lchown-tests: New file.
28950         * tests/test-lchown.h (test_lchown): Likewise.
28951         * tests/test-lchown.c (main): Likewise.
28952
28953         chown: detect Solaris and FreeBSD bug
28954         * lib/chown.c (rpl_chown): Work around bug.
28955         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
28956         (gl_PREREQ_CHOWN): Delete.
28957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
28958         * modules/unistd (Makefile.am): Populate it.
28959         * lib/unistd.in.h (chown): Update declaration.
28960         * lib/lchown.c (chown): Update client.
28961         * modules/lchown (Depends-on): Add lstat.
28962         * doc/posix-functions/chown.texi (chown): Document the bug.
28963         * doc/posix-functions/getgroups.texi (getgroups): Document
28964         getgroups pitfall.
28965         * modules/chown-tests: New file.
28966         * tests/test-chown.h (test_chown): Likewise.
28967         * tests/test-chown.c (main): Likewise.
28968
28969 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
28970
28971         gnulib-tool: correctly detect absence of m4 directories
28972         * gnulib-tool: Avoid extra newline on data passed to wc -l.
28973
28974 2009-11-14  Jim Meyering  <meyering@redhat.com>
28975
28976         maint.mk: Prohibit inclusion of "xalloc.h" without use.
28977         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
28978
28979 2009-11-14  John W. Eaton  <jwe@gnu.org>
28980
28981         strftime.h: wrap funtion declaration in extern "C" block
28982         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
28983
28984 2009-11-13  Eric Blake  <ebb9@byu.net>
28985
28986         getgroups: avoid compiler warning
28987         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
28988
28989         getgroups: work around FreeBSD bug
28990         * lib/getgroups.c (rpl_getgroups): Work around the bug.
28991         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
28992         * doc/posix-functions/getgroups.texi (getgroups): Document it.
28993         * tests/test-getgroups.c (main): Fix buffer overrun.
28994
28995         getgroups: avoid compilation failure
28996         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
28997         * modules/getgroups (Depends-on): Add stdint.
28998
28999 2009-11-13  Jim Meyering  <meyering@redhat.com>
29000
29001         test-getgroups: avoid compilation failure
29002         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
29003
29004 2009-11-13  Eric Blake  <ebb9@byu.net>
29005
29006         mgetgroups: new module, taken from coreutils
29007         * modules/mgetgroups: New file.
29008         * lib/mgetgroups.h: Likewise.
29009         * lib/mgetgroups.c (mgetgroups): Likewise.
29010         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
29011         * MODULES.html.sh (Users and groups): Mention it.
29012
29013         getgroups: don't expose GETGROUPS_T to user
29014         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
29015         an element at a time if GETGROUPS_T is wrong size.
29016         * lib/getugroups.h (getugroups): Change signature.
29017         * lib/unistd.in.h (getgroups): Likewise.
29018         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
29019         signature needs fixing.
29020         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
29021         AC_TYPE_GETGROUPS.
29022         * modules/group-member (Depends-on): Add getgroups.
29023         * lib/group-member.c (group_info, get_group_info): Use gid_t.
29024         (group_member): Rely on getgroups replacement.
29025         * lib/getugroups.c (getugroups): Use gid_t.
29026         * tests/test-getgroups.c (main): Likewise.
29027         * NEWS: Mention the signature change.
29028         * doc/posix-functions/getgroups.texi (getgroups): Mention the
29029         problem with signature.
29030         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
29031         GETGROUPS_T is still useful for setgroups.
29032
29033         getgroups, getugroups: provide stubs for mingw
29034         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
29035         * lib/getugroups.c (getugroups): Likewise.
29036         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
29037         function.  Modernize replacement scheme.
29038         (gl_PREREQ_GETGROUPS): Delete.
29039         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
29040         * modules/getgroups (configure.ac): Declare witness.
29041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
29042         * modules/unistd (Depends-on): Substitute witness.
29043         * lib/unistd.in.h (getgroups): Declare replacement.
29044
29045         getgroups: avoid calling exit
29046         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
29047         drop xalloc.
29048         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
29049         dependencies.
29050         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
29051         exiting, in the rare case of malloc failure.
29052
29053         getgroups: fix logic error
29054         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
29055         has more than 20 groups.
29056         * modules/getgroups-tests: New test.
29057         * tests/test-getgroups.c: New file.
29058
29059 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29060
29061         * tests/test-base64.c: Improve.
29062
29063 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29064
29065         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
29066         Blake <ebb9@byu.net>.
29067
29068 2009-11-13  Simon Josefsson  <simon@josefsson.org>
29069
29070         * tests/test-xvasprintf.c: Add %s%s related checks.
29071
29072 2009-11-12  Eric Blake  <ebb9@byu.net>
29073
29074         version-etc: match standards.texi style
29075         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
29076         and use <> only for URLs.
29077
29078 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
29079
29080         fts: do not fail on a submount during traversal
29081         * lib/fts.c (fts_build): Read the stat info again after opening
29082         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
29083         Original report at http://bugzilla.redhat.com/501848.
29084
29085 2009-11-12  Jim Meyering  <meyering@redhat.com>
29086
29087         bootstrap: sync from coreutils
29088         * build-aux/bootstrap (bootstrap_epilogue): New function.
29089         Use git_modules_config in one more place.  This make bootstrap's
29090         --gnulib-srcdir option more useful for testing.
29091
29092         bootstrap: generalize autoheader check
29093         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
29094         AC_CONFIG_HEADERS.
29095
29096 2009-11-11  Eric Blake  <ebb9@byu.net>
29097
29098         mkfifoat: use new modules for Solaris and BSD bugs
29099         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
29100         * lib/mkfifoat.c (mknodat): Split...
29101         * lib/mknodat.c (mknodat): ...into new file.
29102         * modules/mkfifoat (Files): Ship new file.
29103         (Depends-on): Add mkfifo, mknod.
29104         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
29105         (Depends-on): Add symlink.
29106         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
29107         redundant with test_mkfifo.h.
29108         (do_mkfifoat, do_mknodat): New helpers.
29109
29110         mknod: new module
29111         * modules/mknod: New file.
29112         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
29113         * lib/mknod.c (mknod): Likewise.
29114         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29115         defaults.
29116         * modules/sys_stat (Makefile.am): Substitute them.
29117         * lib/sys_stat.in.h (mknod): Declare replacement.
29118         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29119         Document it.
29120         * doc/posix-functions/mknod.texi (mknod): Likewise.
29121         * modules/mknod-tests: New test.
29122         * tests/test-mknod.c: Likewise.
29123
29124         mkfifo: new module
29125         * modules/mkfifo: New file.
29126         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
29127         * lib/mkfifo.c (mkfifo): Likewise.
29128         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
29129         defaults.
29130         * modules/sys_stat (Makefile.am): Substitute them.
29131         * lib/sys_stat.in.h (mkfifo): Declare replacement.
29132         * MODULES.html.sh (Support for systems lacking POSIX:2008):
29133         Document it.
29134         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
29135         * modules/mkfifo-tests: New test.
29136         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
29137         from test-mkfifoat.c.
29138         * tests/test-mkfifo.c: New file.
29139
29140         readlink: detect FreeBSD bug
29141         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
29142         slash on symlink.
29143         * doc/posix-functions/readlink.texi (readlink): Document the bug.
29144         * tests/test-readlink.h (test_readlink): Enhance test.
29145
29146         symlink: detect FreeBSD bug
29147         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
29148         slash on symlink.
29149         * doc/posix-functions/symlink.texi (symlink): Document the bug.
29150         * tests/test-symlink.h (test_symlink): Enhance test.
29151
29152 2009-11-10  Eric Blake  <ebb9@byu.net>
29153
29154         link: detect FreeBSD bug
29155         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
29156         symlink.
29157         * doc/posix-functions/link.texi (link): Document the bug.
29158         * tests/test-link.h (test_link): Enhance test.
29159         * tests/test-linkat.c (main): Update caller.
29160
29161         unlink, remove: detect FreeBSD bug
29162         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
29163         slash on symlink.
29164         * doc/posix-functions/unlink.texi (unlink): Document the bug.
29165         * doc/posix-functions/remove.texi (remove): Likewise.
29166         * tests/test-unlink.h (test_unlink): Enhance test.
29167         * tests/test-remove.c (main): Likewise.
29168
29169 2009-11-09  Eric Blake  <ebb9@byu.net>
29170
29171         rename: detect FreeBSD bug
29172         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
29173         slash on symlink.
29174         * modules/renameat-tests (Depends-on): Add filenamecat.
29175         * tests/test-rename.h (test_rename): Allow one more errno.
29176         * tests/test-renameat.c (main): Likewise.
29177         * doc/posix-functions/rename.texi (rename): Document the bug.
29178
29179         open: detect FreeBSD bug
29180         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
29181         symlink.
29182         * doc/posix-functions/open.texi (open): Document the bug.
29183         * doc/posix-functions/utimes.texi (utimes): Likewise.
29184         * tests/test-open.h (test_open): Add parameters, and test symlink
29185         handling.
29186         * tests/test-open.c (main): Adjust caller.
29187         * tests/test-fcntl-safer.c (main): Likewise.
29188         * modules/open-tests (Depends-on): Add stdbool, symlink.
29189         * modules/fcntl-safer-tests (Depends-on): Likewise.
29190         * tests/test-openat.c (main): Add test-open tests.
29191
29192         stat: detect FreeBSD bug
29193         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
29194         symlink.
29195         * doc/posix-functions/stat.texi (stat): Document the bug.
29196         * tests/test-stat.h (test_stat_func): Add argument.
29197         * tests/test-stat.c (main): Adjust caller.
29198         * tests/test-fstatat.c (main): Likewise.
29199         * modules/stat-tests (Depends-on): Add stdbool, symlink.
29200         Reported by Jim Meyering.
29201
29202 2009-11-09  James Youngman  <jay@gnu.org>
29203
29204         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
29205         * lib/strftime.c: Correct placement of #include "ignore-value.h".
29206
29207 2009-11-08  Jim Meyering  <meyering@redhat.com>
29208
29209         utimens: remove invalid futimesat call
29210         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
29211         It used the file descriptor of the target file as the DIR_FD
29212         parameter and NULL as the file name.  That caused failure with
29213         errno == EFAULT on FreeBSD-8.0-rc2
29214
29215 2009-11-07  Eric Blake  <ebb9@byu.net>
29216
29217         fflush, freadseek: use fseeko, not fseek
29218         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
29219         (clear_ungetc_buffer): Avoid potential problems on large files.
29220         * lib/freadseek.c (freadseek): Likewise.
29221         * modules/freadseek (Depends-on): Add fseeko.
29222         * modules/fseek (configure.ac): Set a witness.
29223         * tests/test-fflush.c (main): Use fseeko.
29224         * tests/test-fpurge.c (fseek): Disable link warning.
29225         * tests/test-freadable.c (fseek): Likewise.
29226         * tests/test-freading.c (fseek): Likewise.
29227         * tests/test-fseeko.c (fseek): Likewise.
29228         * tests/test-ftell.c (fseek): Likewise.
29229         * tests/test-ftello.c (fseek): Likewise.
29230         * tests/test-fwritable.c (fseek): Likewise.
29231         * tests/test-fwriting.c (fseek): Likewise.
29232
29233 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29234
29235         * modules/memchr (Depends-on): Drop getpagesize dependency.
29236
29237 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29238
29239         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
29240         Reported by Ludovic Courtès.
29241         * build-aux/pmccabe2html: Improve example usage.
29242         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
29243
29244 2009-11-06  Jim Meyering  <meyering@redhat.com>
29245
29246         do-release-commit-and-tag: New module.
29247         Automate the release-commit and tag process.
29248         * build-aux/do-release-commit-and-tag: New script, from coreutils.
29249         * modules/do-release-commit-and-tag: New file.
29250         * MODULES.html.sh (Support for maintaining and releasing): Add it.
29251
29252 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29253
29254         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
29255         because test-select.c uses inet_pton.
29256
29257 2009-11-06  Simon Josefsson  <simon@josefsson.org>
29258
29259         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
29260         GETADDRINFO_LIB.  Bump serial number.
29261         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
29262         Suggested by Eric Blake <ebb9@byu.net>.
29263
29264 2009-11-05  Eric Blake  <ebb9@byu.net>
29265
29266         strtod: detect darwin bug
29267         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
29268         Reported by Leo Davis.
29269
29270         freopen-safer: new module
29271         * modules/freopen-safer: New module.
29272         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
29273         * lib/freopen-safer.c (freopen_safer): New file.
29274         * lib/stdio-safer.h (freopen_safer): New declaration.
29275         * lib/stdio--.h (freopen): New override.
29276         * MODULES.html.sh (File stream based Input/Output): Mention it.
29277         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
29278         freopen-safer module.
29279         * doc/posix-functions/stderr.texi (stderr): Likewise.
29280         * doc/posix-functions/stdin.texi (stdin): Likewise.
29281         * doc/posix-functions/stdout.texi (stdout): Likewise.
29282         * modules/freopen-safer-tests: New test.
29283         * tests/test-reopen-safer.c: New file.
29284
29285 2009-11-05  Jim Meyering  <meyering@redhat.com>
29286
29287         maint.mk: Prohibit inclusion of "close-stream.h" without use.
29288         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
29289
29290 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29291
29292         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
29293
29294 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29295
29296         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
29297
29298 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29299
29300         Fix link error.
29301         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29302         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29303
29304 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29305
29306         * tests/test-func.c: Also test value of __func__.
29307
29308 2009-11-05  Simon Josefsson  <simon@josefsson.org>
29309
29310         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
29311         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
29312
29313 2009-11-05  Bruno Haible  <bruno@clisp.org>
29314
29315         Fix link error.
29316         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
29317         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
29318         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
29319
29320 2009-11-05  Bruno Haible  <bruno@clisp.org>
29321
29322         Tests for module 'inet_pton'.
29323         * modules/inet_pton-tests: New file.
29324         * tests/test-inet_pton.c: New file.
29325
29326 2009-11-05  Bruno Haible  <bruno@clisp.org>
29327
29328         Tests for module 'inet_ntop'.
29329         * modules/inet_ntop-tests: New file.
29330         * tests/test-inet_ntop.c: New file.
29331
29332 2009-11-04  Eric Blake  <ebb9@byu.net>
29333
29334         stdlib-safer: wrap all mkstemp variants
29335         * modules/mkostemp (configure.ac): Set witness.
29336         * modules/mkostemps (configure.ac): Likewise.
29337         * modules/mkstemps (configure.ac): Likewise.
29338         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
29339         (mkstemps_safer): Wrap more functions.
29340         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
29341         wrapping.
29342         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
29343         (mkstemps_safer): Implement the wrappers.
29344
29345         mkstemps, mkostemps: new modules
29346         * modules/mkostemps: New module.
29347         * modules/mkstemps: Likewise.
29348         * lib/mkostemps.c (mkostemps): New file.
29349         * lib/mkstemps.c (mkstemps): Likewise.
29350         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
29351         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
29352         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
29353         * modules/stdlib (Makefile.am): Substitute them.
29354         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
29355         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
29356         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
29357         * doc/gnulib.texi (Glibc stdlib.h): Include them.
29358         * MODULES.html.sh (File system functions): Mention them.
29359
29360         tempname: resync from glibc
29361         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
29362         same values for __GT_FILE as glibc.  Abort even when assertions
29363         are disabled.
29364         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
29365         match its value otherwise.  Allow idempotent inclusion.
29366         * lib/mkdtemp.c (mkdtemp): Adjust caller.
29367         * lib/mkostemp.c (mkostemp): Likewise.
29368         * lib/mkstemp.c (mkstemp): Likewise.
29369         * lib/tmpfile.c (tmpfile): Likewise.
29370         * NEWS: Document this.
29371
29372         utimens: fix use of futimens on older Linux
29373         * lib/utimens.c (fdutimens): Use updated, rather than original,
29374         timespec to avoid bug in older Linux kernel.
29375         Reported by Simon Josefsson.
29376
29377 2009-11-04  Bruno Haible  <bruno@clisp.org>
29378
29379         Make num_processors more flexible and consistent.
29380         * lib/nproc.h (enum nproc_query): New type.
29381         (num_processors): Add a 'query' argument.
29382         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
29383         (num_processors): Add a 'query' argument. Test the value of the
29384         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
29385         mingw, count the number of CPUs available for the current process.
29386         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
29387         Check for sched_getaffinity and sched_getaffinity_np.
29388         * modules/nproc (Depends-on): Add c-ctype, extensions.
29389         * NEWS: Mention the change.
29390
29391 2009-11-03  Bruno Haible  <bruno@clisp.org>
29392
29393         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
29394
29395 2009-11-03  Jim Meyering  <meyering@redhat.com>
29396
29397         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
29398         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
29399         if it is defined.
29400
29401 2009-11-02  Eric Blake  <ebb9@byu.net>
29402
29403         mktime, timegm: share common declaration
29404         * lib/mktime-internal.h: New file.
29405         * lib/mktime.c: Use it rather than open-coding a declaration.
29406         * lib/timegm.c: Likewise.
29407         * modules/mktime (Files): Ship it.
29408         * modules/timegm (Files): Likewise.
29409         Suggested by Bruno Haible.
29410
29411         test-update-copyright: update test to match script changes
29412         * tests/test-update-copyright.sh: Avoid hard-coding perl
29413         location.  Don't update *.bak created by earlier runs.
29414
29415 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
29416             Simon Josefsson  <simon@josefsson.org>
29417             Bruno Haible  <bruno@clisp.org>
29418
29419         Fix link error on Solaris 8.
29420         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
29421         also in libnsl. Define also INET_PTON_LIB.
29422         * modules/inet_pton (Link): New section.
29423
29424 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29425             Bruno Haible  <bruno@clisp.org>
29426
29427         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
29428         * modules/inet_ntop (Link): New section.
29429         Reported by Boyan Kasarov <bkasarov@gmail.com>.
29430
29431 2009-11-02  Eric Blake  <ebb9@byu.net>
29432
29433         maint: avoid compiler warnings in m4 macros
29434         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
29435         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
29436
29437 2009-11-02  Simon Josefsson  <simon@josefsson.org>
29438
29439         * m4/pmccabe2html.m4: Remove file.
29440         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
29441         function.  Change maintainer.
29442         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
29443         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
29444         Courtès).
29445
29446 2009-10-31  Eric Blake  <ebb9@byu.net>
29447
29448         fseeko: fix m4 regression
29449         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
29450         regression from 2009-10-27.
29451         Reported by Ralf Wildenhues.
29452
29453 2009-10-31  Jim Meyering  <meyering@redhat.com>
29454
29455         inttostr: aesthetics and improved (compile-time) safety
29456         Define inttype_is_signed rather than inttype_is_unsigned,
29457         since the sole use is via "#if inttype_is_signed".
29458         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
29459         inttype_is_unsigned.
29460         * lib/offtostr.c (inttype_is_signed): Likewise.
29461         * lib/uinttostr.c (inttype_is_signed): Likewise.
29462         * lib/umaxtostr.c (inttype_is_signed): Likewise.
29463         * lib/inttostr.c (inttostr): Use verify to cross-check the
29464         inttype_is_signed value and the signedness of the actual type.
29465         * modules/inttostr (Depends-on): Add verify.
29466
29467 2009-10-30  Eric Blake  <ebb9@byu.net>
29468
29469         build: avoid compiler warnings
29470         * lib/fchmodat.c (lchmod): Mark unused variables.
29471         * lib/getopt.c (_getopt_initialize): Likewise.
29472         * lib/mktime.c (__mktime_internal): Provide prototype.
29473         * lib/inttostr.c (inttostr): Avoid compiler warning even with
29474         older gcc that do not understand #pragma GCC diagnostic.
29475         * lib/uinttostr.c (inttype_is_unsigned): Define.
29476         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
29477
29478 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
29479
29480         stat: fix compilation on AIX
29481         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
29482         only see struct stat64.
29483
29484 2009-10-30  Eric Blake  <ebb9@byu.net>
29485
29486         exclude: make more robust
29487         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
29488         rather than masking a coding bug.
29489         Suggested by Bruno Haible.
29490
29491 2009-10-30  Jim Meyering  <meyering@redhat.com>
29492
29493         perl scripts: remove #!/usr/bin/perl in favor of more portable...
29494         Rather than putting #!/usr/bin/perl on the first line,
29495         start with a variant of what's recommended by "man perlrun" that
29496         invokes the first "perl" program from your shell's search path.
29497         * build-aux/gitlog-to-changelog: Replace #!... as above.
29498         Add a "Local Variables" perl mode setting.
29499         Prompted by a patch from Ludovic Courtès.
29500         Improved by Eric Blake.
29501         * build-aux/useless-if-before-free: Likewise.
29502         * build-aux/announce-gen: Likewise.
29503         * build-aux/update-copyright: Likewise.
29504
29505 2009-10-29  Eric Blake  <ebb9@byu.net>
29506
29507         filenamecat-lgpl: adjust clients
29508         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
29509         filenamecat.
29510         * modules/renameat (Depends-on): Likewise.
29511
29512         filenamecat: split into filenamecat-lgpl
29513         * modules/filenamecat-lgpl: New module.
29514         * modules/filenamecat (Files): Move library-safe files into
29515         filenamecat-lgpl.
29516         (Depends-on): Add filenamecat-lgpl.
29517         (configure.ac): Declare witness.
29518         * lib/filenamecat.h (file_name_concat): Only declare when using
29519         GPL module.
29520         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
29521         Move...
29522         * lib/filenamecat-lgpl.c: ...into new file.
29523         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
29524         (gl_FILE_NAME_CONCAT): Use it.
29525         * MODULES.html.sh (File system functions): Mention new module.
29526
29527         argp: avoid memory leak
29528         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
29529         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
29530         base_name, since the latter malloc()s and can call exit().
29531         Leak introduced 2006-07-03.
29532
29533         dirname-lgpl: adjust clients that don't need full dirname
29534         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
29535         * modules/filenamecat (Depends-on): Likewise.
29536         * modules/linkat (Depends-on): Likewise.
29537         * modules/mkancesdirs (Depends-on): Likewise.
29538         * modules/mkdir (Depends-on): Likewise.
29539         * modules/openat (Depends-on): Likewise.
29540         * modules/savewd (Depends-on): Likewise.
29541         * modules/rename (Depends-on): Likewise.
29542         (License): Relax license.
29543         * modules/mkdir-tests (Depends-on): Drop progname.
29544         (Makefile.am): Delete unneeded LDADD.
29545         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
29546
29547         dirname: split into dirname-lgpl
29548         * modules/dirname-lgpl: New module.
29549         * modules/dirname (Files): Move library-safe files into
29550         dirname-lgpl.
29551         (Depends-on): Add dirname-lgpl.
29552         (configure.ac): Declare witness.
29553         * modules/double-slash-root (License): Relax license.
29554         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
29555         module.
29556         * lib/dirname.c (dir_len, mdir_name): Move...
29557         * lib/dirname-lgpl.c: ...into new file.
29558         * lib/basename.c (last_component, base_len): Move...
29559         * lib/basename-lgpl.c: ...into new file.
29560         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
29561         (gl_DIRNAME): Use it.
29562         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
29563         Mention new module.
29564         * modules/dirname-tests (Depends-on): Add progname.
29565         * tests/test-dirname.c (program_name): Delete.
29566
29567         mkdir: make safe for libraries
29568         * modules/mkdir (Depends-on): Drop xalloc.
29569         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
29570         exit.
29571
29572         tests: avoid some compiler warnings
29573         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
29574         literals.
29575         * tests/test-memchr.c (main): Avoid type mismatch.
29576         * tests/test-arpa_inet.c (main): Avoid unused parameters.
29577         * tests/test-base64.c (main): Likewise.
29578         * tests/test-getdelim.c (main): Likewise.
29579         * tests/test-gethostname.c (main): Likewise.
29580         * tests/test-getline.c (main): Likewise.
29581         * tests/test-netinet_in.c (main): Likewise.
29582         * tests/test-select.c (open_server_socket, main): Likewise.
29583         * tests/test-select-stdin.c (main): Likewise.
29584         * tests/test-sockets.c (main): Likewise.
29585         * tests/test-strsignal.c (main): Likewise.
29586         * tests/test-sys_select.c (main): Likewise.
29587         * tests/test-sys_socket.c (main): Likewise.
29588         * tests/test-u64.c (main): Likewise.
29589         * tests/test-xfprintf-posix.c (main): Likewise.
29590         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
29591
29592         sockets: avoid compiler warning
29593         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
29594
29595         maint: detect usage(1) and other suspicious exits
29596         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
29597
29598 2009-10-29  Jim Meyering  <meyering@redhat.com>
29599
29600         timespec: long-to-int truncation could make timespec_cmp malfunction
29601         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
29602         a multiple of 2^32 nanoseconds as no difference.
29603
29604 2009-10-28  Jim Meyering  <meyering@redhat.com>
29605
29606         fprintftime: wrap macro code argument in "do {...} while(0)"
29607         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
29608         cpy macro must be a statement that can be followed by a semicolon.
29609         Now that the else clause contains a comment and is hence longer
29610         than one line, I require curly braces.  That in turn requires
29611         that we wrap this code block in the standard do...while(0).
29612
29613         fprintftime: remove stray semicolon from previous change
29614         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
29615
29616         fprintftime: avoid a warning about ignored fwrite return value
29617         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
29618         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
29619         that is unsafe.
29620         * modules/fprintftime (Depends-on): Add ignore-value.
29621
29622         exclude: avoid an unwarranted warning
29623         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
29624
29625 2009-10-27  Eric Blake  <ebb9@byu.net>
29626
29627         fseek: avoid compilation failure when fflush is replaced
29628         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
29629         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
29630         module is in use.
29631         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
29632         module is not in use; since REPLACE_FSEEK worked otherwise.
29633         (GNULIB_FTELLO): Likewise for ftell.
29634         Reported by Ian Beckwith and others.
29635
29636 2009-10-27  Bruno Haible  <bruno@clisp.org>
29637
29638         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29639         Reported by Jim Meyering.
29640
29641 2009-10-27  Jim Meyering  <jim@meyering.net>
29642             Bruno Haible  <bruno@clisp.org>
29643
29644         Avoid warning despite dropping the return value of fwrite.
29645         * lib/unicodeio.c: Include ignore-value.h.
29646         (fwrite_success_callback): Explicitly ignore fwrite's return value.
29647         * modules/unicodeio (Depends-on): Add ignore-value.
29648
29649 2009-10-26  Eric Blake  <ebb9@byu.net>
29650
29651         areadlinkat: fix fallback path
29652         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
29653         pointer and zero.
29654
29655 2009-10-22  Pádraig Brady  <P@draigBrady.com>
29656
29657         Use a better IO block size for modern systems
29658         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
29659         * lib/md2.c: Likewise.
29660         * lib/md4.c: Likewise.
29661         * lib/md5.c: Likewise.
29662         * lib/sha1.c: Likewise.
29663         * lib/sha256.c: Likewise.
29664         * lib/sha512.c: Likewise.
29665
29666 2009-10-22  Eric Blake  <ebb9@byu.net>
29667
29668         tests: avoid several compiler warnings
29669         * tests/test-getcwd.c (main): Avoid buffer underflow.
29670         * tests/test-getdate.c (main): String literals are not safe with
29671         putenv, so use setenv.  Declare unused argument.
29672         * modules/getdate-tests (Depends-on): Add setenv.
29673         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
29674         problems with string literals in char *.
29675         * tests/test-hash.c (main): Avoid shadowing declaration.
29676         (insert_new): Treat string literals as char const *.
29677         * tests/test-getopt.h (test_getopt): Likewise.
29678         (getopt_loop): Alter types to minimize casting elsewhere.
29679         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
29680         (test_getopt_long_posix): Likewise.
29681         (do_getopt_long): Add wrapper to minimize casting.
29682         * tests/test-atexit.c (clear_temp_file): Use void.
29683         * tests/test-areadlink-with-size.c (main): Declare unused
29684         arguments.
29685         * tests/test-areadlink.c (main): Likewise.
29686         * tests/test-areadlinkat-with-size.c (main): Likewise.
29687         * tests/test-areadlinkat.c (main): Likewise.
29688         * tests/test-canonicalize-lgpl.c (main): Likewise.
29689         * tests/test-canonicalize.c (main): Likewise.
29690         * tests/test-dirent-safer.c (main): Likewise.
29691         * tests/test-dirname.c (main): Likewise.
29692         * tests/test-dup2.c (main): Likewise.
29693         * tests/test-fchdir.c (main): Likewise.
29694         * tests/test-fcntl-h.c (main): Likewise.
29695         * tests/test-fcntl-safer.c (main): Likewise.
29696         * tests/test-fdopendir.c (main): Likewise.
29697         * tests/test-fdutimensat.c (main): Likewise.
29698         * tests/test-fflush.c (main): Likewise.
29699         * tests/test-filenamecat.c (main): Likewise.
29700         * tests/test-filevercmp.c (main): Likewise.
29701         * tests/test-fopen-safer.c (main): Likewise.
29702         * tests/test-fopen.c (main): Likewise.
29703         * tests/test-fpending.c (main): Likewise.
29704         * tests/test-fpurge.c (main): Likewise.
29705         * tests/test-freading.c (main): Likewise.
29706         * tests/test-fstatat.c (main): Likewise.
29707         * tests/test-fsync.c (main): Likewise.
29708         * tests/test-futimens.c (main): Likewise.
29709         * tests/test-getndelim2.c (main): Likewise.
29710         * tests/test-gettimeofday.c (main): Likewise.
29711         * tests/test-getopt.c (main): Likewise.
29712         * tests/test-i-ring.c (main): Likewise.
29713         * tests/test-inttypes.c (main): Likewise.
29714         * tests/test-link.c (main): Likewise.
29715         * tests/test-lstat.c (main): Likewise.
29716         * tests/test-math.c (main): Likewise.
29717         * tests/test-md5.c (main): Likewise.
29718         * tests/test-memchr2.c (main): Likewise.
29719         * tests/test-memrchr.c (main): Likewise.
29720         * tests/test-mkdir.c (main): Likewise.
29721         * tests/test-mkdirat.c (main): Likewise.
29722         * tests/test-mkfifoat.c (main): Likewise.
29723         * tests/test-open.c (main): Likewise.
29724         * tests/test-openat-safer.c (main): Likewise.
29725         * tests/test-openat.c (main): Likewise.
29726         * tests/test-quotearg.c (main): Likewise.
29727         * tests/test-rawmemchr.c (main): Likewise.
29728         * tests/test-readlink.c (main): Likewise.
29729         * tests/test-remove.c (main): Likewise.
29730         * tests/test-rename.c (main): Likewise.
29731         * tests/test-renameat.c (main): Likewise.
29732         * tests/test-rmdir.c (main): Likewise.
29733         * tests/test-sha1.c (main): Likewise.
29734         * tests/test-signal.c (main): Likewise.
29735         * tests/test-sigaction.c (main): Likewise.
29736         * tests/test-stat.c (main): Likewise.
29737         * tests/test-stat-time.c (main): Likewise.
29738         * tests/test-stddef.c (main): Likewise.
29739         * tests/test-stdint.c (main): Likewise.
29740         * tests/test-stdio.c (main): Likewise.
29741         * tests/test-stdlib.c (main): Likewise.
29742         * tests/test-strchrnul.c (main): Likewise.
29743         * tests/test-strerror.c (main): Likewise.
29744         * tests/test-string.c (main): Likewise.
29745         * tests/test-strtod.c (main): Likewise.
29746         * tests/test-strverscmp.c (main): Likewise.
29747         * tests/test-symlink.c (main): Likewise.
29748         * tests/test-symlinkat.c (main): Likewise.
29749         * tests/test-sys_stat.c (main): Likewise.
29750         * tests/test-sys_time.c (main): Likewise.
29751         * tests/test-time.c (main): Likewise.
29752         * tests/test-unistd.c (main): Likewise.
29753         * tests/test-unlink.c (main): Likewise.
29754         * tests/test-unlinkat.c (main): Likewise.
29755         * tests/test-utimens.c (main): Likewise.
29756         * tests/test-utimensat.c (main): Likewise.
29757         * tests/test-version-etc.c (main): Likewise.
29758         * tests/test-wchar.c (main): Likewise.
29759         * tests/test-wctype.c (main): Likewise.
29760         * tests/test-xprintf-posix.c (main): Likewise.
29761         * tests/test-posixtm.c (main): Likewise.
29762         (STREQ): Delete unused macro.
29763         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
29764         shadowed variables.
29765         * tests/test-memchr.c (main): Likewise.
29766
29767 2009-10-21  Eric Blake  <ebb9@byu.net>
29768
29769         areadlinkat: avoid failure on older glibc
29770         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
29771         rather than mis-comparing 0 against FUNC_RESULT of char*.
29772
29773 2009-10-21  Bruno Haible  <bruno@clisp.org>
29774
29775         * modules/stpncpy (License): Relicense under LGPLv2+.
29776         Reported by David Lutterkort <lutter@redhat.com>.
29777
29778 2009-10-20  Eric Blake  <ebb9@byu.net>
29779
29780         utimensat: work around Solaris 9 bug
29781         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
29782         has trailing slash bugs.
29783         * tests/test-lutimens.h (test_lutimens): Enhance test.
29784         * tests/test-utimens.h (test_utimens): Likewise.
29785         * doc/posix-functions/utime.texi (utime): Enhance documentation.
29786         * doc/posix-functions/utimes.texi (utimes): Likewise.
29787         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29788         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
29789         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
29790         * doc/posix-functions/futimens.texi (futimens): Likewise.
29791
29792         fdutimensat: new module
29793         * modules/fdutimensat: New file.
29794         * lib/fdutimensat.c (fdutimensat): Likewise.
29795         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
29796         * MODULES.html.sh (File system functions): Mention module.
29797         * modules/fdutimensat-tests: New test.
29798         * tests/test-fdutimensat.c: Likewise.
29799
29800         doc: regenerate INSTALL
29801         * doc/INSTALL: Reflect recent autoconf update.
29802         * doc/INSTALL.ISO: Likewise.
29803         * doc/INSTALL.UTF-8: Likewise.
29804
29805 2009-10-20  Pádraig Brady  <P@draigBrady.com>
29806
29807         acl: warn if ACL support is not detected
29808         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
29809
29810 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
29811
29812         * lib/nproc.h: Add extern "C" block for C++.
29813
29814 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
29815             Bruno Haible  <bruno@clisp.org>
29816
29817         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
29818         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
29819         * doc/posix-functions/isalpha.texi: Likewise.
29820         * doc/posix-functions/isblank.texi: Likewise.
29821         * doc/posix-functions/iscntrl.texi: Likewise.
29822         * doc/posix-functions/isdigit.texi: Likewise.
29823         * doc/posix-functions/isgraph.texi: Likewise.
29824         * doc/posix-functions/islower.texi: Likewise.
29825         * doc/posix-functions/isprint.texi: Likewise.
29826         * doc/posix-functions/ispunct.texi: Likewise.
29827         * doc/posix-functions/isspace.texi: Likewise.
29828         * doc/posix-functions/isupper.texi: Likewise.
29829         * doc/posix-functions/isxdigit.texi: Likewise.
29830
29831 2009-10-18  Bruno Haible  <bruno@clisp.org>
29832
29833         Tests for module 'isblank'.
29834         * modules/isblank-tests: New file.
29835         * tests/test-isblank.c: New file.
29836
29837         New module 'isblank'.
29838         * lib/isblank.c: New file.
29839         * m4/isblank.m4: New file.
29840         * modules/isblank: New file.
29841         * doc/posix-functions/isblank.texi: Mention the new module.
29842
29843 2009-10-18  Bruno Haible  <bruno@clisp.org>
29844
29845         New module 'ctype'.
29846         * lib/ctype.in.h: New file.
29847         * m4/ctype.m4: New file.
29848         * modules/ctype: New file.
29849         * doc/posix-headers/ctype.texi: Mention the new module.
29850
29851 2009-10-18  Jim Meyering  <meyering@redhat.com>
29852
29853         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
29854         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
29855         right after its initialization, rather than farther down.
29856         Keeping these in close proximity makes it easier to ensure
29857         that each such variable is initialized.  E.g.,
29858
29859             LIB_CLOCK_GETTIME=
29860             AC_SUBST([LIB_CLOCK_GETTIME])
29861
29862         This change also increments these serial numbers.
29863         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
29864         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29866
29867 2009-10-18  Bruno Haible  <bruno@clisp.org>
29868
29869         Don't let environment variables perturb build.
29870         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
29871         (gl_PREREQ_GETHRXTIME): ... not here.
29872
29873 2009-10-18  Bruno Haible  <bruno@clisp.org>
29874
29875         Avoid symlink attack in localcharset module.
29876         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
29877         (O_NOFOLLOW): Define fallback.
29878         (get_charset_aliases): Don't open the file if it is a symbolic link.
29879         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
29880         gl_FCNTL_H.
29881         (gl_FCNTL_H): Require it.
29882         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
29883         * modules/localcharset (Files): Add m4/fcntl_h.m4.
29884         Reported by Fergal Glynn <fglynn@veracode.com>.
29885
29886 2009-10-18  Bruno Haible  <bruno@clisp.org>
29887
29888         Implement nproc for mingw.
29889         * lib/nproc.c: Include <windows.h>
29890         (num_processors): On native Windows platforms, try GetSystemInfo.
29891
29892 2009-10-18  Bruno Haible  <bruno@clisp.org>
29893
29894         Implement nproc for IRIX.
29895         * lib/nproc.c: Include <sys/sysmp.h>.
29896         (num_processors): On IRIX systems, try sysmp.
29897         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
29898
29899 2009-10-18  Bruno Haible  <bruno@clisp.org>
29900
29901         Implement nproc for HP-UX.
29902         * lib/nproc.c: Include <sys/pstat.h>
29903         (num_processors): On HP-UX systems, try pstat_getdynamic.
29904         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
29905         pstat_getdynamic.
29906
29907 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
29908             Bruno Haible  <bruno@clisp.org>
29909
29910         Implement nproc for NetBSD, OpenBSD.
29911         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
29912         (ARRAY_SIZE): New macro.
29913         (num_processors): On BSD systems, try sysctl of HW_NCPU.
29914         * m4/nproc.m4: New file.
29915         * modules/nproc (Files): Add m4/nproc.m4.
29916         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
29917         (Makefile.am): Instead, augment lib_SOURCES.
29918
29919 2009-10-18  Bruno Haible  <bruno@clisp.org>
29920
29921         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
29922         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
29923         sys/param.h.
29924
29925 2009-10-16  Eric Blake  <ebb9@byu.net>
29926
29927         utimensat: new module
29928         * modules/utimensat: New file.
29929         * lib/utimensat.c (utimensat): Likewise.
29930         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
29931         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
29932         so we can work around Linux bugs.
29933         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
29934         * modules/sys_stat (Makefile.am): Substitute them.
29935         * lib/sys_stat.in.h (utimensat): Declare it.
29936         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
29937         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
29938         * modules/utimensat-tests: New test.
29939         * tests/test-utimensat.c: Likewise.
29940
29941         utimens: let lutimens work on non-symlinks
29942         * lib/utimens.c (lutimens): Fall back to utimens rather than
29943         failing with ENOSYS, when file is not a symlink.
29944         (utimens): Reduce redirection.
29945         * tests/test-lutimens.h (test_lutimens): Update test to cover
29946         non-symlinks.
29947         * tests/test-utimens.h (test_utimens): Update test to cover
29948         symlinks.
29949         * tests/test-utimens.c (main): Update caller.
29950
29951         utimens: cache whether utimensat syscall works
29952         * lib/utimens.c (utimensat_works_really): New cache variable.
29953         (fdutimens, lutimens): Use it to avoid failing syscall.
29954
29955         test-stat-time, test-utimens: improve portability
29956         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
29957         ext4 on alpha, and for cygwin.
29958         * tests/test-utimens-common.h: New file.
29959         (nap): Factor delays into single function.
29960         * tests/test-lutimens.h (test_lutimens): Use new header.
29961         * tests/test-futimens.h (test_futimens): Likewise.
29962         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
29963         timestamps to occur from same machine, as was done previously for
29964         test_utimens.
29965         * modules/utimens-tests (Files): Ship new file.
29966         * modules/futimens-tests (Files): Likewise.
29967         Reported in part by Jim Meyering.
29968
29969         sys_stat: sort replacement declarations
29970         * lib/sys_stat.in.h: Sort declarations.
29971         * lib/futimens.c (futimens): Fix typo.
29972
29973 2009-10-15  Jim Meyering  <meyering@redhat.com>
29974
29975         don't let environment settings perturb build
29976         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
29977         could cause a configure-time and/or build-time malfunction.
29978         Typically, a configure-time function-in-library test is performed
29979         via code like this:
29980
29981           LIB_VAR=
29982           AC_SUBST([LIB_VAR])
29983           prefix_saved_LIBS=$LIBS
29984             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
29985                        [test "$ac_cv_search_FUNC" = "none required" ||
29986                         LIB_VAR=$ac_cv_search_FUNC])
29987           LIBS=$prefix_saved_LIBS
29988
29989         However, in each of the files affected by this change, the LIB_VAR=
29990         initialization was omitted.  Thus, when set in the environment, its
29991         value would propagate into generated Makefiles when FUNC is not found
29992         in LIB_NAME.
29993         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
29994         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29995         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29996
29997 2009-10-14  Eric Blake  <ebb9@byu.net>
29998
29999         fchdir: avoid infinite recursion in mingw
30000         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
30001         recursing.
30002
30003         test-stat-time: port to mingw
30004         * tests/test-stat-time.c (force_unlink): Return a value.
30005         (test_ctime) [W32]: Fix compilation error.
30006         (nap): Don't call usleep with too large an argument.  Use
30007         force_unlink.
30008         * doc/pastposix-functions/usleep.texi (usleep): Document the
30009         portability issue.
30010
30011 2009-10-13  Jim Meyering  <meyering@redhat.com>
30012
30013         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
30014         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
30015         * modules/pipe-filter-ii: Likewise.
30016         * modules/sys_socket-tests: Likewise.
30017         * modules/tsearch-tests: Likewise.
30018         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
30019         (check): Depend on it.
30020
30021 2009-10-12  Eric Blake  <ebb9@byu.net>
30022
30023         utimens-tests: port to NFS file systems
30024         * tests/test-utimens.h (test_utimens): Refactor utimecmp
30025         comparisons to avoid spurious failures from timestamp drift
30026         between NFS machines.
30027
30028 2009-10-12  Eric Blake  <ebb9@byu.net>
30029
30030         stat-time-tests: minor cleanups
30031         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
30032         * tests/test-stat-time.c (nap): Separate assignment from call.
30033         Suggested by Paolo Bonzini and Bruno Haible.
30034
30035         sys_stat: guarantee struct timespec
30036         * lib/sys_stat.in.h (includes): Always include <time.h>
30037         * modules/sys_stat (Depends-on): Add time.
30038         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
30039         mode_t permission values.
30040         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
30041         get at subsecond timestamps.
30042
30043 2009-10-10  Eric Blake  <ebb9@byu.net>
30044
30045         futimens: new module
30046         * modules/futimens: New file.
30047         * lib/futimens.c (futimens): Likewise.
30048         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
30049         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
30050         we can work around Linux bugs.
30051         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
30052         * modules/sys_stat (Makefile.am): Substitute them.
30053         * lib/sys_stat.in.h (futimens): Declare it.
30054         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30055         * doc/posix-functions/futimens.texi (futimens): Likewise.
30056         * modules/futimens-tests: New test.
30057         * tests/test-futimens.c: Likewise.
30058
30059         utimens: introduce fdutimens
30060         * lib/utimens.h (fdutimens): New prototype.
30061         * lib/utimens.c (gl_futimens): Move guts...
30062         (fdutimens): ...to new interface.
30063         * tests/test-utimens.c (do_fdutimens): Use it.
30064
30065         utimens: add UTIME_NOW and UTIME_OMIT support
30066         * lib/utimens.c (validate_timespec, update_timespec): New helper
30067         functions.
30068         (gl_futimens, lutimens): Use them.
30069         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
30070         stdbool, sys_stat.
30071         (Link): Mention resulting library dependency.
30072         * modules/utimecmp (Link): Likewise.
30073         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
30074         (Makefile.am): Pick up library dependency.
30075         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
30076         definition.
30077         * tests/test-sys_stat.c: Test the definitions.
30078         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
30079         * NEWS: Document library dependency.
30080
30081         utimecmp: support symlink timestamps
30082         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
30083         hashing when possible.  Use pathconf when available.
30084         (SYSCALL_RESOLUTION): Recognize tighter resolution.
30085         * modules/utimecmp (Depends-on): Add lstat.
30086
30087         utimens: add lutimens interface
30088         * lib/utimens.c (lutimens): New function.
30089         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
30090         * lib/utimens.h (lutimens): Declare new interface.
30091         * tests/test-utimens.c (main): Enhance test.
30092         * tests/test-lutimens.h (test_lutimens): New file.
30093         * modules/utimens-tests (Files): Distribute it.
30094         (Depends-on): Add symlink.
30095         (configure.ac): Check for usleep.
30096
30097         utimens: validate futimens usage
30098         * lib/utimens.c (gl_futimens): Require valid fd up front, using
30099         fewer syscalls on failure later on.  Avoid compiler warning on
30100         mingw.
30101         * modules/utimens (Depends-on): Add dup2.
30102
30103         utimens: add test
30104         * modules/utimens-tests: New test.
30105         * tests/test-utimens.h: New file.
30106         * tests/test-futimens.h: Likewise.
30107         * tests/test-utimens.c: Likewise.
30108
30109         doc: mention timestamp portability issues
30110         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
30111         instead.
30112         * doc/posix-functions/utime.texi (utime): Likewise.
30113         * doc/posix-functions/utimes.texi (utimes): Likewise.
30114         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
30115         instead.
30116         * doc/posix-functions/futimens.texi (futimens): Mention utimens
30117         module.
30118         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
30119         Mention weakness with symlink timestamps.
30120         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
30121         to utimensat/futimens instead.
30122         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
30123
30124         test-dup2: enhance test
30125         * tests/test-dup2.c (main): Also check AT_FDCWD.
30126
30127         test-stat-time: avoid more spurious failures
30128         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
30129         xfs; and avoid race if the two timestamps cross quantization edge.
30130
30131         relocatable: prefer 'file system' over 'filesystem'
30132         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
30133         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
30134         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
30135         * doc/relocatable.texi (Enabling Relocatability): Likewise.
30136         * lib/relocatable.c (compute_curr_prefix): Likewise.
30137
30138 2009-10-10  Jim Meyering  <meyering@redhat.com>
30139
30140         stat-time-tests: check for the usleep function
30141         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
30142
30143 2009-10-10  Bruno Haible  <bruno@clisp.org>
30144
30145         * modules/xnanosleep: Put the Link section after the Include section.
30146
30147 2009-10-09  Eric Blake  <ebb9@byu.net>
30148
30149         dup2: work around FreeBSD 6.1 bug
30150         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
30151         * doc/posix-functions/dup2.texi (dup2): Document it.
30152         Reported by Nelson H. F. Beebe and Jim Meyering.
30153
30154         test-stat-time: port to buggy NFS clients
30155         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
30156         (test_ctime): Also skip test if mtime and ctime are skewed.
30157
30158         maint: prefer 'file system' over 'filesystem'
30159         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30160         * doc/posix-functions/lstat.texi (lstat): Likewise.
30161         * lib/file-has-acl.c (file_has_acl): Likewise.
30162         * lib/fwriteerror.c [TEST]: Likewise.
30163         * tests/test-areadlink.h (test_areadlink): Likewise.
30164         * tests/test-areadlinkat-with-size.c (main): Likewise.
30165         * tests/test-areadlinkat.c (main): Likewise.
30166         * tests/test-canonicalize-lgpl.c (main): Likewise.
30167         * tests/test-canonicalize.c (main): Likewise.
30168         * tests/test-fstatat.c (main): Likewise.
30169         * tests/test-linkat.c (main): Likewise.
30170         * tests/test-lstat.h (test_lstat_func): Likewise.
30171         * tests/test-mkdir.h (test_mkdir): Likewise.
30172         * tests/test-readlink.h (test_readlink): Likewise.
30173         * tests/test-remove.c (main): Likewise.
30174         * tests/test-rename.h (test_rename): Likewise.
30175         * tests/test-renameat.c (main): Likewise.
30176         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30177         * tests/test-symlink.h (test_symlink): Likewise.
30178         * tests/test-symlinkat.c (main): Likewise.
30179         * tests/test-unlink.h (test_unlink_func): Likewise.
30180         * tests/test-unlinkat.c (main): Likewise.
30181
30182         maint: make realtime library usage explicit
30183         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
30184         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
30185         * modules/settime (Link): Likewise.
30186         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
30187
30188         test-stat-time: speed up execution
30189         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
30190         warning on mingw.
30191         (nap): New helper function.
30192         (prepare_test): Use it to reduce sleep time.
30193         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
30194         execution.
30195         * modules/stat-time-tests (configure.ac): Check for usleep.
30196
30197 2009-10-09  Jim Meyering  <meyering@redhat.com>
30198
30199         selinux-h: always use getfilecon wrappers
30200         * lib/getfilecon.c: New file.
30201         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
30202         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
30203         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
30204         (fgetfilecon): Provide a stub.
30205         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
30206         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
30207         file unconditionally.
30208         When <selinux/selinux.h> is found, arrange to use wrappers.
30209         * modules/selinux-h (Files): Add getfilecon.c.
30210         (Makefile.am): Substitute include-next-related bits
30211         into the now-always-generated selinux/selinux.h file.
30212         * doc/glibc-functions/lgetfilecon.texi: New file.
30213         * doc/glibc-functions/fgetfilecon.texi: New file.
30214         * doc/glibc-functions/getfilecon.texi: New file.
30215         * doc/glibc-functions/getfilecon-desc.texi: New file.
30216         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
30217         which to pull in the new files.
30218         * MODULES.html.sh (Misc): Add selinux-h.
30219
30220 2009-10-08  Jim Meyering  <meyering@redhat.com>
30221
30222         unistd: fix comment typo
30223         * lib/unistd.in.h (euidaccess): Fix a comment typo.
30224
30225 2009-10-08  Eric Blake  <ebb9@byu.net>
30226
30227         areadlink: use SIZE_MAX consistently
30228         * modules/areadlink (Depends-on): Add stdint.
30229         * modules/areadlink-with-size (Depends-on): Likewise.
30230         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
30231         gives NULL; drop sys/types, since unistd gives size_t; and add
30232         stdint for SIZE_MAX.
30233         (SIZE_MAX): Rely on headers.
30234         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
30235         and add stdint.
30236         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
30237         (SIZE_MAX): Likewise.
30238         (INITIAL_BUF_SIZE): Turn into enum.
30239         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
30240
30241 2009-10-08  Jim Meyering  <meyering@redhat.com>
30242
30243         areadlinkat: avoid compilation failure
30244         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
30245         Fix typo in comment.
30246
30247 2009-10-07  Eric Blake  <ebb9@byu.net>
30248
30249         areadlinkat-with-size: new module
30250         * modules/areadlinkat-with-size: New module.
30251         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
30252         * lib/areadlink.h (areadlinkat): Declare it.
30253         * MODULES.html.sh (File system functions): Mention it.
30254         * modules/areadlinkat-with-size-tests: New test.
30255         * tests/test-areadlinkat-with-size.c: New file.
30256
30257         xreadlinkat: new module
30258         * modules/xreadlinkat: New module.
30259         * lib/xreadlinkat.c (xreadlinkat): New file.
30260         * lib/xreadlink.h (xreadlinkat): Declare it.
30261         * MODULES.html.sh (File system functions): Mention it.
30262
30263         areadlinkat: new module
30264         * lib/at-func.c (FUNC_FAIL): New define.
30265         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
30266         * modules/areadlinkat: New module.
30267         * lib/linkat.c (areadlinkat): Move...
30268         * lib/areadlinkat.c (areadlinkat): ...to new file.
30269         * lib/areadlink.h (areadlinkat): Declare it.
30270         * modules/linkat (Depends-on): Add areadlinkat.
30271         * MODULES.html.sh (File system functions): Mention it.
30272         * modules/areadlinkat-tests: New test.
30273         * tests/test-areadlinkat.c: New file.
30274
30275         areadlink, areadlink-with-size: add tests
30276         * modules/areadlink-tests: New test.
30277         * modules/areadlink-with-size-tests: Likewise.
30278         * tests/test-areadlink.h: New file.
30279         * tests/test-areadlink.c: Likewise.
30280         * tests/test-areadlink-with-size.c: Likewise.
30281
30282         maint: minor cleanups
30283         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
30284         _UNUSED_PARAMETER_ instead.
30285         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
30286         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
30287         * modules/linkat-tests (Files): Distribute test-link.h.
30288
30289         openat, utimens: whitespace cleanup
30290         * lib/openat.c: Prefer space throughout, rather than mix of 8
30291         spaces vs. tabs.
30292         * lib/at-func.c: Likewise.
30293         * lib/utimens.c: Likewise.
30294
30295         openat: avoid using wrong fd
30296         * lib/openat.c (openat_permissive): Reject user's fd if saving the
30297         working directory chooses same fd.
30298         * lib/at-func.c (AT_FUNC_NAME): Likewise.
30299
30300         mkdir, mkdirat: fix cygwin 1.5.x bug
30301         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
30302         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
30303         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
30304         bug.
30305         (gl_PREREQ_MKDIR): Delete unused macro.
30306         * modules/mkdir (Files): Track file rename.
30307         (configure.ac): Update macro name.
30308         * modules/openat (Depends-on): Add mkdir.
30309         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
30310
30311         mkdir, mkdirat: add tests
30312         * modules/mkdir-tests: New test.
30313         * tests/test-mkdir.h: New file.
30314         * tests/test-mkdir.c: Likewise.
30315         * tests/test-mkdirat.c: Likewise.
30316         * modules/openat-tests (Files): Add new files.
30317         (Makefile.am): Run new test.
30318
30319 2009-10-06  Eric Blake  <ebb9@byu.net>
30320
30321         doc: tweak *at function documentation
30322         * doc/posix-functions/faccessat.texi (faccessat): Mention
30323         known issue with replacement.
30324         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
30325         * doc/posix-functions/linkat.texi (linkat): Likewise.
30326         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
30327         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
30328         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30329         * doc/posix-functions/renameat.texi (renameat): Likewise.
30330         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
30331
30332         openat: fix GNU/Hurd bug in unlinkat
30333         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
30334         broken.
30335         * doc/posix-functions/unlink.texi (unlink): Document this.
30336         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
30337
30338         fdopendir: fix GNU/Hurd bug
30339         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
30340         allowing non-directory fds.
30341         * lib/fdopendir.c (rpl_fdopendir): Work around it.
30342         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
30343         * modules/dirent (Makefile.am): Substitute it.
30344         * lib/dirent.in.h (fdopendir): Declare replacement.
30345         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
30346         * tests/test-fdopendir.c (main): Test something other than
30347         /dev/null, since on Hurd that behaves like a directory.
30348
30349         test-symlink: port to GNU/Hurd
30350         * tests/test-symlink.h (test_symlink): Relax expected errno.
30351
30352         doc: tweak more cygwin information
30353         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
30354         now compatible with glibc.
30355         * doc/posix-functions/getopt.texi (getopt): Likewise.
30356
30357         getopt-gnu: add another test
30358         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
30359         guarantee behavior relied on by m4.
30360         * tests/test-getopt.c (main): Use it.
30361         * modules/getopt-posix-tests (Depends-on): Add setenv.
30362         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
30363
30364         getopt: fix compilation on darwin
30365         * lib/getopt.in.h (includes): Leave breadcrumbs during system
30366         include.
30367         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
30368         Reported by Ludovic Courtès.
30369
30370 2009-10-06  Bruno Haible  <bruno@clisp.org>
30371
30372         * modules/size_max (Description): Discourage its use.
30373         Reported by Simon Josefsson.
30374
30375 2009-10-06  Jim Meyering  <meyering@redhat.com>
30376
30377         linkat: avoid compilation failure
30378         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
30379
30380 2009-10-05  Eric Blake  <ebb9@byu.net>
30381
30382         linkat: support Linux 2.6.17
30383         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
30384         linkat on Linux, but allow cache variable override.
30385         * lib/linkat.c (rpl_linkat): Define override.
30386         * modules/linkat (Depends-on): Add symlinkat.
30387         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
30388         * modules/unistd (Makefile.am): Substitute it.
30389         * lib/unistd.in.h (linkat): Declare replacement.
30390         Reported by Pádraig Brady.
30391
30392         quotearg: port test to systems with C.UTF-8 locale
30393         * tests/test-quotearg.c (struct result_strings): Add another
30394         member, differentiating between C.ASCII and C.UTF-8 handling.
30395         (compare_strings): Add parameter.
30396         (main): Adjust all callers.
30397
30398         getopt: avoid clash with FreeBSD _getopt_internal
30399         * lib/getopt.in.h (_getopt_internal): Override the name.
30400         * lib/getopt_int.h (includes): Pick up any overrides.
30401         Reported by Reuben Thomas.
30402
30403         hash: allow C89 compilation
30404         * lib/hash.c (check_tuning): Move declaration before statement.
30405         Reported by Reuben Thomas.
30406
30407 2009-10-05  Karl Berry  <karl@gnu.org>
30408
30409         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
30410
30411 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
30412             Bruno Haible  <bruno@clisp.org>
30413
30414         * lib/uname.c (uname): Use a table-driven algorithm to compute
30415         Windows NT versions.
30416
30417 2009-10-04  Bruno Haible  <bruno@clisp.org>
30418
30419         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
30420         program_invocation_short_name.
30421         * modules/progname (configure.ac): Test for presence of
30422         program_invocation_short_name.
30423         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
30424
30425 2009-10-04  Bruno Haible  <bruno@clisp.org>
30426
30427         * lib/progname.c (set_program_name): Fix comment.
30428         Reported by Jim Meyering.
30429
30430 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30431             Bruno Haible  <bruno@clisp.org>
30432
30433         * lib/uname.c: Include <string.h>.
30434         (uname): Do only one call to GetVersionEx in the common case.
30435
30436 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
30437             Bruno Haible  <bruno@clisp.org>
30438
30439         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
30440         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
30441         (uname): Add support for Windows CE and various non-x86 CPU types.
30442
30443 2009-10-03  Bruno Haible  <bruno@clisp.org>
30444
30445         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
30446         invocation to tests/configure.ac.
30447         Reported by Ian Beckwith <ianb@erislabs.net>.
30448
30449 2009-10-02  Eric Blake  <ebb9@byu.net>
30450
30451         fchdir: avoid compiler warning
30452         * lib/fchdir.c (canonicalize_file_name)
30453         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
30454
30455         test-open: support mingw errno values
30456         * tests/test-open.h (test_open): Relax test.
30457         * tests/test-fopen.h (test_fopen): Likewise.
30458         * tests/test-openat-safer.c (main): Likewise.
30459
30460         open: fix opening directory on mingw
30461         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
30462
30463         test-open: on GNU/Hurd, /dev/null is a directory
30464         * tests/test-fopen.h (main): Rename...
30465         (test_fopen): ...to this.  Use a guaranteed non-directory when
30466         confirming open behavior on trailing slash.
30467         * tests/test-openat-safer.c (main): Likewise.
30468         * tests/test-open.h (main): Likewise....
30469         (test_open): ...to this.
30470         * tests/test-fopen.c (main): Adjust caller.
30471         * tests/test-fopen-safer.c (main): Likewise.
30472         * tests/test-open.c (main): Likewise.
30473         * tests/test-fcntl-safer.c (main): Likewise.
30474         Reported by Samuel Thibault.
30475
30476         rename, fchdir: don't ignore chdir failure
30477         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
30478         * lib/rename.c (rpl_rename) [W32]: Likewise.
30479         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
30480         an empty destination directory if source cannot be renamed,
30481         although there is still possibility for failure.
30482         * doc/posix-functions/rename.texi (rename): Document the race.
30483         Reported by Jim Meyering.
30484
30485         maint: cleanup whitespace in recent commits
30486         * lib/rename.c (rpl_rename): Remove tabs.
30487         * tests/test-link.h (test_link): Likewise.
30488         * lib/fchdir.c (get_name): Likewise.
30489         Reported by Jim Meyering.
30490
30491 2009-10-02  Ben Pfaff  <blp@gnu.org>
30492
30493         relocatable-prog-wrapper: Add missing dependency on
30494         double-slash-root.
30495         * modules/relocatable-prog-wrapper: Add dependency.
30496         Reported by Ian Beckwith <ianb@erislabs.net>.
30497
30498 2009-10-02  Eric Blake  <ebb9@byu.net>
30499
30500         renameat: fix Solaris bugs
30501         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
30502         needed fixing.
30503         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
30504         * modules/stdio (Makefile.am): Substitute it.
30505         * lib/stdio.in.h (renameat): Declare replacement.
30506         * lib/renameat.c (rpl_renameat): Implement fix.
30507
30508         renameat: new module
30509         * modules/renameat: New file.
30510         * lib/renameat.c (renameat): Likewise.
30511         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
30512         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30513         * modules/stdio (Makefile.am): Substitute them.
30514         * lib/stdio.in.h (renameat): Declare it.
30515         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30516         * doc/posix-functions/renameat.texi (renameat): Likewise.
30517         * modules/renameat-tests: New test.
30518         * tests/test-renameat.c: Likewise.
30519
30520         rename: fix mingw bugs
30521         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
30522         directory overwrite bugs.
30523
30524         rename: fix another cygwin 1.5 bug
30525         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
30526         checks.
30527         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
30528         unnecessary cygwin workarounds.  Also work around bug with moving
30529         full directory onto an empty one.
30530         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
30531
30532         rename-dest-slash: merge into rename module
30533         * modules/rename-dest-slash (Status): Mark obsolete.
30534         (Depends-on): Add rename.
30535         (Files): Let rename do it all.
30536         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
30537         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
30538         * m4/rename-dest-slash.m4: ...so this file can be deleted.
30539         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
30540         * lib/rename.c (rpl_rename): Update comments.
30541
30542         rename: fix cygwin 1.5.x bugs
30543         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
30544         * lib/rename.c (rpl_rename): Work around them.
30545         * modules/rename (Depends-on): Add same-inode.
30546
30547         rename: fix Solaris 10 bug
30548         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30549         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
30550         was the only bug.
30551
30552         rename: fix Solaris 9 bug
30553         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
30554         on non-directory.  Avoid calling exit.
30555         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
30556         strdup.
30557         * modules/rename-tests (Depends-on): Drop lstat.
30558         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
30559         (gl_PREREQ_RENAME): Delete unused macro.
30560
30561         rename-dest-slash: fix NetBSD bug
30562         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
30563         links.
30564         * modules/rename-dest-slash (Depends-on): Add same-inode.
30565
30566         rename-tests: new test, exposes several platform bugs
30567         * modules/rename-tests: New file.
30568         * tests/test-rename.h: Likewise.
30569         * tests/test-rename.c: Likewise.
30570         * doc/posix-functions/rename.texi (rename): Improve documentation,
30571         including bugs that will eventually be fixed in gnulib.
30572
30573 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
30574
30575         * lib/uname.c: Include <stdlib.h>
30576         (uname): Assume version info is available.
30577
30578 2009-10-02  Jim Meyering  <meyering@redhat.com>
30579
30580         gnu-web-doc-update: correct --help output
30581         * build-aux/gnu-web-doc-update: Make --help output relevant.
30582
30583         gnu-web-doc-update: add standard options
30584         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
30585
30586         gnu-web-doc-update: New module.
30587         Use this script to automatically update the on-line web documentation
30588         for your GNU project at http://www.gnu.org/software/$pkg/manual/
30589         * modules/gnu-web-doc-update: New file, from coreutils.
30590         * build-aux/gnu-web-doc-update: New script.
30591
30592 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
30593
30594         link: LoadLibrary is not needed.
30595         * lib/link.c: Use GetModuleHandle.
30596
30597 2009-10-01  Eric Blake  <ebb9@byu.net>
30598
30599         getopt: bump serial number
30600         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
30601         change.
30602
30603         tests: tighten link, rmdir, and remove tests
30604         * tests/test-link.h (includes): No need to use <config.h> here.
30605         Clean up if directory hard link was created, otherwise test for
30606         trailing '.'.
30607         * tests/test-linkat.c (main): Simplify.
30608         * tests/test-remove.c (main): Enhance test for trailing '.'.
30609         * tests/test-rmdir.h (test_rmdir_func): Likewise.
30610
30611 2009-10-01  Jim Meyering  <meyering@redhat.com>
30612
30613         maint.mk: requiring "make major" was annoying, for a "minor" release.
30614         What is intended is "stable", to contrast with alpha and beta,
30615         so require "make stable", not "make major".
30616         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
30617         (get_tool_versions): Likewise.
30618         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
30619
30620 2009-09-30  Ben Pfaff  <blp@gnu.org>
30621
30622         Fix broken build of replacement for Windows tmpfile().
30623         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
30624         flags argument added along with the 'mkostemp' module.
30625
30626 2009-09-28  Bruno Haible  <bruno@clisp.org>
30627
30628         Avoid identifier clash with POSIX function 'remove' defined as a macro.
30629         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
30630         to 'remove_elt'.
30631         (gl_list_remove): Update.
30632         * lib/gl_list.c (gl_list_remove): Update.
30633         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
30634         to 'remove_elt'.
30635         (gl_oset_remove): Update.
30636         * lib/gl_list.c (gl_oset_remove): Update.
30637         Reported by Eric Blake.
30638
30639 2009-09-28  Eric Blake  <ebb9@byu.net>
30640
30641         doc: mention yet more cygwin 1.7 status
30642         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
30643         cygwin.
30644         * doc/glibc-functions/execvpe.texi (execvpe): New file.
30645         * doc/gnulib.texi (Glibc unistd.h): Mention it.
30646
30647         argp: fix test failure
30648         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
30649         that are not upper-case.  Pass correct range to tolower.
30650
30651 2009-09-27  Jim Meyering  <meyering@redhat.com>
30652
30653         test-yesno: work around sparc-dash here-document infelicity
30654         Without this change, the literal \177 byte in a here document
30655         would make dash 0.5.5.1-3 access uninitialized memory.
30656         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
30657         Instead, use a marker, "@", and filter through tr to create the desired
30658         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
30659
30660 2009-09-27  Bruno Haible  <bruno@clisp.org>
30661
30662         Disable untested support for new flavours of ACLs on AIX.
30663         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
30664         progress.
30665         * lib/set-mode-acl.c (qset_acl): Likewise.
30666
30667 2008-12-07  Bruno Haible  <bruno@clisp.org>
30668
30669         Add support for new flavours of ACLs on AIX. (Untested.)
30670         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
30671         (file_has_acl): Add support for newer AIX.
30672         * lib/set-mode-acl.c (qset_acl): Likewise.
30673         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
30674         Rainer Tammer <tammer@tammer.net>.
30675
30676 2009-09-26  Eric Blake  <ebb9@byu.net>
30677
30678         argp: fix compilation of getopt
30679         * lib/getopt.in.h (includes): Use different guard than glibc.
30680         Reported by Sergey Poznyakoff.
30681
30682         doc: mention more cygwin 1.7 status
30683         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
30684         bug.
30685         * doc/posix-functions/execl.texi (execl): Likewise.
30686         * doc/posix-functions/execle.texi (execle): Likewise.
30687         * doc/posix-functions/execlp.texi (execlp): Likewise.
30688         * doc/posix-functions/execv.texi (execv): Likewise.
30689         * doc/posix-functions/execve.texi (execve): Likewise.
30690         * doc/posix-functions/execvp.texi (execvp): Likewise.
30691         * doc/glibc-functions/canonicalize_file_name.texi
30692         (canonicalize_file_name): Cygwin 1.7 now provides this.
30693         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
30694         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
30695         on AT_SYMLINK_NOFOLLOW.
30696
30697 2009-09-24  Eric Blake  <ebb9@byu.net>
30698
30699         test-linkat: make test more robust
30700         * tests/test-linkat.c (main): Avoid collision with EEXIST.
30701
30702         getopt: fix inclusion guards for cygwin
30703         * modules/getopt-posix (Depends-on): Add include-next.
30704         (Makefile.am): Substitute more items in replacement header.
30705         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
30706         <getopt.h>.
30707         * lib/getopt.in.h (includes): Use split inclusion guard, and
30708         prefer <getopt.h> over include <unistd.h> when one is present.
30709         (option): Also override name of 'struct option'.
30710
30711         same-inode: revert prior change; it is not yet ready
30712         * NEWS: Undo mention of this change.
30713         * lib/same-inode.h (same-inode.h): Undo tri-state change.
30714         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30715         * lib/cycle-check.c (cycle_check): Likewise.
30716         * lib/same.c (same_name): Likewise.
30717         * lib/at-func2.c (at_func2): Likewise.
30718
30719 2009-09-23  Eric Blake  <ebb9@byu.net>
30720
30721         linkat: new module
30722         * modules/linkat: New file.
30723         * lib/at-func2.c (at_func2): Likewise.
30724         * lib/linkat.c (linkat): Likewise.
30725         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
30726         * lib/openat-priv.h (at_func2): Add declaration.
30727         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30728         * modules/unistd (Makefile.am): Substitute them.
30729         * lib/unistd.in.h (linkat): Declare it.
30730         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30731         * doc/posix-functions/linkat.texi (linkat): Likewise.
30732         * doc/posix-functions/link.texi (link): Tweak wording.
30733         * tests/test-link.c (main): Move guts...
30734         * tests/test-link.h (test_link): ...into new file.
30735         * modules/linkat-tests: New test.
30736         * tests/test-linkat.c: Likewise.
30737         * modules/link-tests (Files): Ship new file.
30738         (Depends-on): Add stdbool.
30739
30740         dirname: add library-safe mdir_name
30741         * lib/dirname.h (mdir_name): New prototype.
30742         * lib/dirname.c (dir_name): Move guts...
30743         (mdir_name): ...to new function that avoids xalloc_die.
30744
30745         fchdir: another mingw fix
30746         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
30747         * lib/fchdir.c (get_name): New helper method; skips canonicalize
30748         on mingw (where it has not yet been ported), and make it optional
30749         elsewhere.
30750         (_gl_register_fd): Use it.
30751
30752         same-inode: make SAME_INODE tri-state, to port to mingw
30753         * NEWS: Mention this change.
30754         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
30755         st_ino always being 0.
30756         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
30757         * lib/cycle-check.c (cycle_check): Likewise.
30758         * lib/same.c (same_name): Likewise.
30759
30760         lstat: avoid mingw compilation error
30761         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
30762         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
30763         lstat ourselves.
30764         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
30765         was adequate.
30766         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
30767         the checks for lstat.
30768         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
30769
30770         link: fix test failure on Solaris 9
30771         * lib/link.c (rpl_link): Don't assume link will catch bogus
30772         trailing slash on source.
30773
30774         test-symlinkat: enhance test
30775         * tests/test-readlink.c (main): Move guts...
30776         * tests/test-readlink.h (test_readlink): ...into new file.
30777         * tests/test-symlink.c (main): Move guts...
30778         * tests/test-symlink.h (test_symlink): ...into new file.
30779         * tests/test-symlinkat.c (main): Use new files for further
30780         coverage.
30781         (do_symlink, do_readlink): New helper functions.
30782         * modules/symlink-tests (Files): Ship new file.
30783         (Depends-on): Add stdbool.
30784         * modules/readlink-tests (Files): Ship new file.
30785         (Depends-on): Add stdbool.
30786         * modules/symlinkat-tests (Files): Use new files.
30787
30788 2009-09-23  Eric Blake  <ebb9@byu.net>
30789
30790         readlink: document portability issue with symlink length
30791         * doc/posix-functions/lstat.texi (lstat): Mention that some file
30792         systems have bogus st_size on symlinks, and mention the
30793         areadlink-with-size module.
30794         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
30795         * doc/posix-functions/readlink.texi (readlink): Mention the
30796         areadlink module, and ERANGE failure.
30797         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
30798         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
30799
30800         readlink: fix Solaris 9 bug with trailing slash
30801         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
30802         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
30803         * doc/posix-functions/readlink.texi (readlink): Document this.
30804         * modules/readlink-tests: New test.
30805         * tests/test-readlink.c: Likewise.
30806
30807         readlink: fix cygwin 1.5.x bug with return type
30808         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
30809         * lib/unistd.in.h (readlink): Use ssize_t.
30810         * lib/readlink.c (readlink): Likewise.
30811         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30812         * modules/unistd (Makefile.am): Substitute it.
30813         * lib/unistd.in.h (readlink): Declare replacement.
30814         * doc/posix-functions/readlink.texi (readlink): Document this.
30815
30816         symlink: use throughout gnulib
30817         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
30818         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
30819         symlink is not used.
30820         * modules/symlinkat (Depends-on): Add symlink.
30821         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
30822         * modules/canonicalize-tests (Depends-on): Likewise.
30823         * modules/lstat-tests (Depends-on): Likewise.
30824         * modules/openat-tests (Depends-on): Likewise.
30825         * modules/remove-tests (Depends-on): Likewise.
30826         * modules/rmdir-tests (Depends-on): Likewise.
30827         * modules/unlink-tests (Depends-on): Likewise.
30828         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
30829         * tests/test-canonicalize.c (symlink): Likewise.
30830         * tests/test-fstatat.c (symlink): Likewise.
30831         * tests/test-lstat.c (symlink): Likewise.
30832         * tests/test-remove.c (symlink): Likewise.
30833         * tests/test-rmdir.c (symlink): Likewise.
30834         * tests/test-unlink.c (symlink): Likewise.
30835         * tests/test-unlinkat.c (symlink): Likewise.
30836
30837         symlink: new module, for Solaris 9 bug
30838         * modules/symlink: New file.
30839         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
30840         * lib/symlink.c: Likewise.
30841         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
30842         * modules/unistd (Makefile.am): Substitute them.
30843         * lib/unistd.in.h (symlink): Declare replacement.
30844         * MODULES.html.sh (File system functions): Mention it.
30845         * doc/posix-functions/symlink.texi (symlink): Likewise.
30846         * modules/symlink-tests: New test.
30847         * tests/test-symlink.c: Likewise.
30848
30849 2009-09-23  Bruno Haible  <bruno@clisp.org>
30850
30851         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
30852         when needed.
30853         Test case: gnulib-tool --import --with-tests atexit inttypes.
30854         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
30855
30856 2009-09-23  Bruno Haible  <bruno@clisp.org>
30857
30858         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
30859         subcommand, not in a subshell.
30860
30861 2009-09-22  Eric Blake  <ebb9@byu.net>
30862
30863         unistd: sort replacement declarations
30864         * lib/unistd.in.h: Sort declarations.
30865
30866         open, openat: minor optimization
30867         * lib/open.c (open): If open succeeded, len is non-zero.
30868         * lib/openat.c (rpl_openat): Likewise.
30869
30870         link-follow: ensure correct result
30871         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
30872         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
30873         distinguish between possible failures.
30874
30875 2009-09-21  Eric Blake  <ebb9@byu.net>
30876
30877         fts: avoid compiler warning
30878         * lib/fts.c (dirent_inode_sort_may_be_useful)
30879         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
30880
30881 2009-09-19  Bruno Haible  <bruno@clisp.org>
30882
30883         * lib/progreloc.c (canonicalize_file_name): New declaration.
30884
30885 2009-09-19  Eric Blake  <ebb9@byu.net>
30886
30887         link: fix quoting
30888         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
30889
30890         openat: fix openat bugs on Solaris 9
30891         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
30892         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
30893         * modules/openat (Depends-on): Add open.
30894         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
30895         * modules/fcntl-h (Makefile.am): Substitute it.
30896         * lib/fcntl.in.h (openat): Declare replacement.
30897         * doc/posix-functions/openat.texi (openat): Document this.
30898
30899         openat: move fstatat and unlinkat into correct files
30900         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
30901         compiled.
30902         * lib/openat.c (fstatat, unlinkat): Move...
30903         * lib/fstatat.c (fstatat): ...into correct files.
30904         * lib/unlinkat.c (unlinkat): Likewise.
30905
30906         openat: fix unlinkat bugs on Solaris 9
30907         * lib/unlinkat.c (unlinkat): New file.
30908         * modules/openat (Depends-on): Add unlink.
30909         (Files): Distribute it.
30910         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
30911         trailing slash behavior is broken.
30912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
30913         * modules/unistd (Makefile.am): Substitute it.
30914         * lib/unistd.in.h (unlinkat): Declare replacement.
30915         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
30916
30917         openat: fix fstatat bugs on Solaris 9
30918         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
30919         stat.
30920         * doc/posix-functions/fstatat.texi (fstatat): Document this.
30921
30922         test-unlinkat: enhance test, to expose Solaris 9 bug
30923         * tests/test-unlink.c (main): Factor guts...
30924         * tests/test-unlink.h (test_rmdir_func): ...into new file.
30925         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
30926         * tests/test-rmdir.c (main): Adjust caller.
30927         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
30928         (unlinker): New helper function.
30929         (rmdirat): Enhance check.
30930         * modules/rmdir-tests (Depends-on): Add stdbool.
30931         * modules/unlink-tests (Depends-on): Likewise.
30932         (Files): Add test-unlink.h.
30933         * modules/openat-tests (Files): Likewise.
30934         (Depends-on): Add unlinkdir.
30935
30936         test-fstatat: new test, to expose Solaris 9 bugs
30937         * tests/test-stat.c (main): Factor guts...
30938         * tests/test-stat.h (test_stat_func): ...into new file.
30939         * tests/test-lstat.c (main): Factor guts...
30940         * tests/test-lstat.h (test_lstat_func): ...into new file.
30941         * tests/test-fstatat.c: New file.
30942         * modules/stat-tests (Files): Add test-stat.h.
30943         * modules/lstat-tests (Files): Add test-lstat.h.
30944         (Depends-on): Add stdbool.
30945         * modules/openat-tests (Depends-on): Add pathmax.
30946         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
30947         (Makefile.am): Run new test.
30948
30949         remove: new module, for mingw and Solaris 9 bugs
30950         * modules/remove: New file.
30951         * lib/remove.c: Likewise.
30952         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
30953         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
30954         * modules/stdio (Makefile.am): Use them.
30955         * lib/stdio.in.h (remove): Declare replacement.
30956         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30957         * doc/posix-functions/remove.texi (remove): Likewise.
30958         * modules/remove-tests: New test.
30959         * tests/test-remove.c: Likewise.
30960
30961         unlink: new module, for Solaris 9 bug
30962         * modules/unlink: New file.
30963         * lib/unlink.c: Likewise.
30964         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
30965         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
30966         * modules/unistd (Makefile.am): Use them.
30967         * lib/unistd.in.h (stat): Declare replacement.
30968         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
30969         * doc/posix-functions/unlink.texi (unlink): Likewise.
30970         * modules/unlink-tests: New test.
30971         * tests/test-unlink.c: Likewise.
30972
30973         lstat: fix Solaris 9 bug
30974         * lib/lstat.c (lstat): Also check for trailing slash on
30975         non-symlink, non-directories.  Use stat module to simplify logic.
30976         * doc/posix-functions/lstat.texi (lstat): Document it.
30977         * modules/lstat-tests (Depends-on): Add errno, same-inode.
30978         (configure.ac): Check for symlink.
30979         * tests/test-lstat.c (main): Add more tests.
30980
30981         stat: add as dependency to other modules
30982         * modules/chown (Depends-on): Add stat.
30983         * modules/euidaccess (Depends-on): Likewise.
30984         * modules/fchdir (Depends-on): Likewise.
30985         * modules/isdir (Depends-on): Likewise.
30986         * modules/link (Depends-on): Likewise.
30987         * modules/lstat (Depends-on): Likewise.
30988         * modules/mkdir-p (Depends-on): Likewise.
30989         * modules/modechange (Depends-on): Likewise.
30990         * modules/open (Depends-on): Likewise.
30991         * modules/readlink (Depends-on): Likewise.
30992         * modules/same (Depends-on): Likewise.
30993
30994         stat: fix Solaris 9 bug
30995         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
30996         slash.
30997         * lib/stat.c (rpl_stat): Work around it.
30998         * doc/posix-functions/stat.texi (stat): Update documentation.
30999
31000         stat: new module, for mingw bug
31001         * modules/stat: New file.
31002         * lib/stat.c: Likewise.
31003         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31004         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31005         * modules/sys_stat (Makefile.am): Use them.
31006         * lib/sys_stat.in.h (stat): Declare replacement.
31007         * lib/openat.c (fstatat): Deal with lstat and stat being function
31008         macros.
31009         * modules/openat (Depends-on): Add inline.
31010         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
31011         * doc/posix-functions/stat.texi (stat): Likewise.
31012         * modules/stat-tests: New test.
31013         * tests/test-stat.c: Likewise.
31014
31015 2009-09-19  Jim Meyering  <meyering@redhat.com>
31016
31017         syntax-check: detect unnecessary inclusion of canonicalize.h
31018         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
31019
31020 2009-09-19  Eric Blake  <ebb9@byu.net>
31021
31022         canonicalize-lgpl: adjust clients to use correct header
31023         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31024         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
31025         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
31026         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
31027         * lib/progreloc.c (includes): Likewise.
31028
31029 2009-09-19  Jim Meyering  <meyering@redhat.com>
31030
31031         test-posixtm.c: correct a comment
31032         * tests/test-posixtm.c: Correct first-line comment.
31033         Spotted by Eric Blake.
31034
31035 2009-09-16  Jim Meyering  <meyering@redhat.com>
31036
31037         posixtm-tests: make T const-correct; add a test case
31038         * tests/test-posixtm.c (T): Declare const.
31039         Add a test for -(2^31+1).
31040         Remove useless can-succeed-only-in-2002 test.
31041
31042         posixtm-tests: adjust the sole failing test
31043         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
31044         expected output matches what mktime now produces.  Cross-checked via
31045         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
31046
31047         posixtm: move #ifdef'd tests into a new module
31048         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
31049         * tests/test-posixtm.c: ... this new file.
31050         * modules/posixtm-tests: New module.
31051
31052 2009-09-19  Eric Blake  <ebb9@byu.net>
31053
31054         openat: simplify use of at-func.c
31055         * lib/at-func.c (includes): Include prerequisites here, to
31056         simplify requirements on client files.
31057         * lib/openat-priv.h: Add double-inclusion guard.
31058         * lib/faccessat.c (includes): Simplify.
31059         * lib/fchmodat.c (includes): Likewise.
31060         * lib/fchownat.c (includes): Likewise.
31061         * lib/mkdirat.c (includes): Likewise.
31062         * lib/mkfifoat.c (includes): Likewise.
31063         * lib/symlinkat.c (includes): Likewise.
31064
31065         openat: allow return of fd 0
31066         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
31067         * modules/save-cwd (Depends-on): Replace fcntl-safer with
31068         unistd-safer.
31069         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
31070         <fcntl.h>; this module does not leak fds.
31071         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
31072         must be allowed to return 0, leaving openat_safer to add the
31073         safety.
31074         (openat_permissive): Avoid writing to just-opened fd 2 if
31075         restoring the current directory fails.
31076         * lib/openat-die.c (openat_restore_fail): Add comment.
31077         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
31078         (save_cwd): Guarantee safe fd, but without use of open_safer.
31079         * tests/test-openat.c: New test.
31080         * modules/openat-tests (Files, Makefile.am): Distribute and build
31081         new file.
31082
31083         relocatable-prog-wrapper: fix build
31084         * modules/relocatable-prog-wrapper (Files): Update name of
31085         canonicalize m4 file, broken on 2009-09-17.
31086         Reported by emad hajjar <aleppos@hotmail.com>.
31087
31088 2009-09-19  Bruno Haible  <bruno@clisp.org>
31089
31090         * lib/safe-alloc.h: Use the standard header with GPL copyright.
31091         * lib/safe-alloc.c: Likewise.
31092         Reported by Ian Beckwith <ianb@erislabs.net>.
31093
31094 2009-09-18  Bruno Haible  <bruno@clisp.org>
31095
31096         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
31097         Reported by <erobles@sensacd.com.mx>.
31098
31099 2009-09-17  Eric Blake  <ebb9@byu.net>
31100
31101         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
31102         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
31103         slashes when checking if last component is missing.
31104         * tests/test-canonicalize.c (main): Test this.
31105
31106         canonicalize, canonicalize-lgpl: honor // if distinct from /
31107         * modules/canonicalize (Files): Add double-slash-root.m4.
31108         * modules/canonicalize-lgpl (Files): Likewise.
31109         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
31110         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
31111         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
31112         fallback definition.
31113         (canonicalize_filename_mode): Use it to protect //.
31114         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
31115         (__realpath): Likewise.
31116         * tests/test-canonicalize.c (main): Test this.
31117         * tests/test-canonicalize-lgpl.c (main): Likewise.
31118         * modules/canonicalize-tests (Depends-on): Add same-inode.
31119         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
31120
31121         canonicalize-lgpl: fix glibc bug with trailing slash
31122         * m4/canonicalize-lgpl.m4: Move contents...
31123         * m4/canonicalize.m4: ...here.
31124         (gl_CANONICALIZE_LGPL): Factor realpath check...
31125         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
31126         glibc 2.3.5 bug, fixed 2005-04-27.
31127         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
31128         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
31129         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
31130         * modules/canonicalize-lgpl (Files): Manage file rename.
31131         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31132         * modules/stdlib (Makefile.am): Substitute witness.
31133         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
31134         is needed.
31135         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
31136         replacement is required.
31137         * lib/canonicalize.c (canonicalize_file_name): Likewise.
31138         * doc/glibc-functions/canonicalize_file_name.texi
31139         (canonicalize_file_name): Document this.
31140         * doc/posix-functions/realpath.texi (realpath): Likewise.
31141
31142         canonicalize-lgpl: reject non-directory with trailing slash
31143         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
31144         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
31145         catches failures in glibc 2.3.5.
31146         * tests/test-canonicalize.c (main): Likewise.
31147
31148         canonicalize-lgpl: use native realpath if it works
31149         * lib/canonicalize-lgpl.c (realpath): Guard with
31150         FUNC_REALPATH_WORKS.
31151         * lib/stdlib.in.h (realpath): Make declaration optional based on
31152         HAVE_REALPATH.
31153         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
31154         native realpath works.
31155         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
31156         * modules/stdlib (Makefile.am): Substitute witness.
31157
31158         canonicalize, canonicalize-lgpl: use <stdlib.h>
31159         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
31160         (Include): Mention <stdlib.h>.
31161         (configure.ac): Mention functions we provide.
31162         * modules/canonicalize (configure.ac): Likewise.
31163         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
31164         realpath if canonicalize_file_name is missing.
31165         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
31166         * modules/stdlib (Makefile.am): Substitute witnesses.
31167         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
31168         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
31169         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
31170         * NEWS: Document this.
31171         * doc/glibc-functions/canonicalize_file_name.texi
31172         (canonicalize_file_name): Likewise.
31173         * doc/posix-functions/realpath.texi (realpath): Likewise.
31174         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
31175
31176         test-canonicalize: consolidate into single C program
31177         * tests/test-canonicalize.sh: Delete; move setup into...
31178         * tests/test-canonicalize.c (main): ...the program, making it
31179         easier to run in debugger.  Add some tests.
31180         * modules/canonicalize-tests (Files): Remove unused file.
31181         (Depends-on): Add progname.
31182         (configure.ac, Makefile.am): Simplify.
31183
31184         test-canonicalize-lgpl: consolidate into single C program
31185         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
31186         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
31187         easier to run in debugger.  Add some tests.
31188         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
31189         (configure.ac, Makefile.am): Simplify.
31190
31191         canonicalize: avoid resolvepath
31192         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
31193         unnecessary checks.
31194         * lib/canonicalize.c (includes): Simplify.
31195         (canonicalize_file_name): Drop resolvepath implementation.
31196         * modules/canonicalize (Depends-on): Drop filenamecat.
31197
31198         canonicalize: don't lose errno
31199         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
31200         over calls to free.
31201
31202         canonicalize: simplify errno handling
31203         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
31204         assignment.
31205
31206         canonicalize, canonicalize-lgpl: update module dependencies
31207         * modules/canonicalize (Depends-on): Add extensions, lstat,
31208         pathmax, stdlib.
31209         (Files): Drop pathmax.h.
31210         (configure.ac): Adjust macro name.
31211         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
31212         lstat, stdlib, sys_stat.
31213         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
31214         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
31215         extensions.
31216         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
31217         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
31218         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
31219         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
31220         declaration, if available.
31221         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
31222         we can rely on the readlink module.
31223         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
31224         (includes): Use <unistd.h> unconditionally.
31225
31226 2009-09-17  Eric Blake  <ebb9@byu.net>
31227
31228         maint: make Include sections of modules consistent
31229         * modules/alloca: Use only header name; no need to list #include.
31230         * modules/alloca-opt: Likewise.
31231         * modules/arpa_inet: Likewise.
31232         * modules/canon-host: Likewise.
31233         * modules/configmake: Likewise.
31234         * modules/dirent: Likewise.
31235         * modules/eealloc: Likewise.
31236         * modules/environ: Likewise.
31237         * modules/fchdir: Likewise.
31238         * modules/fcntl: Likewise.
31239         * modules/fcntl-h: Likewise.
31240         * modules/gethrxtime: Likewise.
31241         * modules/gettime: Likewise.
31242         * modules/ignore-value: Likewise.
31243         * modules/inet_ntop: Likewise.
31244         * modules/inet_pton: Likewise.
31245         * modules/inttypes: Likewise.
31246         * modules/isnand-nolibm: Likewise.
31247         * modules/isnanf-nolibm: Likewise.
31248         * modules/mbchar: Likewise.
31249         * modules/mbfile: Likewise.
31250         * modules/mbiter: Likewise.
31251         * modules/mbuiter: Likewise.
31252         * modules/netdb: Likewise.
31253         * modules/netinet_in: Likewise.
31254         * modules/nproc: Likewise.
31255         * modules/pagealign_alloc: Likewise.
31256         * modules/poll: Likewise.
31257         * modules/printf-frexp: Likewise.
31258         * modules/pthread: Likewise.
31259         * modules/putenv: Likewise.
31260         * modules/random_r: Likewise.
31261         * modules/relocatable-prog: Likewise.
31262         * modules/search: Likewise.
31263         * modules/select: Likewise.
31264         * modules/selinux-h: Likewise.
31265         * modules/settime: Likewise.
31266         * modules/signal: Likewise.
31267         * modules/size_max: Likewise.
31268         * modules/socklen: Likewise.
31269         * modules/ssize_t: Likewise.
31270         * modules/stdarg: Likewise.
31271         * modules/stdbool: Likewise.
31272         * modules/stddef: Likewise.
31273         * modules/stdint: Likewise.
31274         * modules/stdio: Likewise.
31275         * modules/stdlib: Likewise.
31276         * modules/string: Likewise.
31277         * modules/strings: Likewise.
31278         * modules/sys_file: Likewise.
31279         * modules/sys_ioctl: Likewise.
31280         * modules/sys_select: Likewise.
31281         * modules/sys_socket: Likewise.
31282         * modules/sys_stat: Likewise.
31283         * modules/sys_time: Likewise.
31284         * modules/sys_times: Likewise.
31285         * modules/sys_utsname: Likewise.
31286         * modules/sys_wait: Likewise.
31287         * modules/sysexits: Likewise.
31288         * modules/time: Likewise.
31289         * modules/times: Likewise.
31290         * modules/tmpfile: Likewise.
31291         * modules/trim: Likewise.
31292         * modules/unistd: Likewise.
31293         * modules/wchar: Likewise.
31294         * modules/wctype: Likewise.
31295
31296 2009-09-17  Bruno Haible  <bruno@clisp.org>
31297
31298         Make getdate.y compile on QNX and NetBSD 5 / i386.
31299         * m4/getdate.m4 (gl_GETDATE): Conditionally define
31300         TIME_T_FITS_IN_LONG_INT.
31301         * lib/getdate.y (long_time_t): New type.
31302         (relative_time): Change type of 'seconds' field to long_time_t.
31303         (get_date): Update types of local variables. Check against overflow
31304         during conversion from long_time_t to time_t.
31305         Reported by Matt Kraai <kraai@ftbfs.org>
31306         and Hasso Tepper <hasso@netbsd.org>.
31307
31308 2009-09-17  Bruno Haible  <bruno@clisp.org>
31309
31310         * modules/COPYING: Update copyright years.
31311         * modules/README: Likeiwse.
31312         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
31313         Reported by Ian Beckwith <ianb@erislabs.net>.
31314
31315 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31316
31317         * users.txt: Update references for gnuit package.
31318
31319 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
31320
31321         * m4/getdelim.m4: Fix typo in copyright line.
31322
31323 2009-09-17  Bruno Haible  <bruno@clisp.org>
31324
31325         * lib/atoll.c: Use the standard header with GPL copyright.
31326         * lib/argz.in.h: Likewise.
31327         * lib/glob.c: Likewise.
31328         * lib/glob-libc.h: Likewise.
31329         * lib/random_r.c: Likewise.
31330         * lib/siglist.h: Likewise.
31331         * lib/strsignal.c: Likewise.
31332         Reported by Ian Beckwith <ianb@erislabs.net>.
31333
31334 2009-09-17  Eric Blake  <ebb9@byu.net>
31335
31336         rmdir: ensure correct dependency order
31337         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
31338
31339 2009-09-17  Bruno Haible  <bruno@clisp.org>
31340
31341         Disable assertion that fails on NetBSD 5 / i386.
31342         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
31343         Reported by Sam Steingold <sds@gnu.org>
31344         and Hasso Tepper <hasso@netbsd.org>.
31345
31346 2009-09-16  Eric Blake  <ebb9@byu.net>
31347
31348         unlinkdir: port to mingw
31349         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
31350         on which no one can unlink a directory.
31351
31352         stdlib: sort witness names
31353         * modules/stdlib (Makefile.am): Sort replacements.
31354         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
31355         * lib/stdlib.in.h: Likewise.
31356
31357         parse-duration-tests: avoid link failure
31358         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
31359         LIBINTL.
31360         Reported by Tom G. Christensen.
31361
31362         openat-tests: ensure unlinkat behaves like rmdir
31363         * tests/test-rmdir.c (main): Factor guts...
31364         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
31365         * modules/rmdir-tests (Files): Ship new file.
31366         * modules/openat-tests: New test.
31367         * tests/test-unlinkat.c: Likewise.
31368
31369         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
31370         * modules/rmdir-errno (Status, Notice): Now obsolete.
31371
31372         rmdir: work around cygwin 1.5.x and mingw bugs
31373         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
31374         * lib/rmdir.c (rmdir): Work around it.
31375         * modules/rmdir (Status, Notice): No longer obsolete.
31376         (Files): Add dos.m4.
31377         (Depends-on): Add unistd.
31378         (configure.ac): Set witnesses.
31379         (License): Relax to LGPLv2+.
31380         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
31381         * modules/unistd (Makefile.am): Substitute witnesses.
31382         * lib/unistd.in.h (rmdir): Declare replacement.
31383         * doc/posix-functions/rmdir.texi (rmdir): Document this.
31384         * modules/rmdir-tests: New tests.
31385         * tests/test-rmdir.c: Likewise.
31386
31387 2009-09-15  Eric Blake  <ebb9@byu.net>
31388
31389         fchdir: improve use of replacement functions
31390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
31391         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
31392         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
31393         REPLACE_CLOSEDIR.
31394         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
31395         * modules/sys_stat (Makefile.am): Substitute correct witness.
31396         * modules/dirent (Makefile.am): Likewise.
31397         * modules/unistd (Makefile.am): Likewise.
31398         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
31399         * lib/unistd.in.h (dup): Likewise.
31400         * lib/sys_stat.in.h (fstat): Likewise.
31401
31402         maint: ignore gnulib-tool temp files
31403         * .gitignore: Ignore files created during gnulib-tool --test.
31404
31405 2009-09-13  Jim Meyering  <meyering@redhat.com>
31406
31407         posixtm: don't reject a time that specify "60" as the number of seconds
31408         * lib/posixtm.c (posixtime): The code to reject invalid dates
31409         would also reject a time specified with the .60 suffix.
31410         But POSIX allows that, in order to accommodate leap seconds.
31411         So don't reject it.
31412         (main): Adjust tests accordingly.
31413         * modules/posixtm (Depends-on): Add stpcpy.
31414
31415 2009-09-11  Jim Meyering  <meyering@redhat.com>
31416
31417         announce-gen: include [$release_type] in emitted Subject:
31418         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
31419         e.g., [stable] in the emitted Subject: line.
31420
31421 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31422
31423         Remove obsolete macros from several modules.
31424         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
31425         obsolete Autoconf macros with their modern counterparts.
31426         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
31427         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
31428         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
31429         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31430         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
31431         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
31432         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
31433         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
31434         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
31435         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
31436         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
31437         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
31438         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
31439         * m4/sockets.m4 (gl_SOCKETS): Likewise.
31440         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
31441         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
31442         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31443         * m4/time_r.m4 (gl_TIME_R): Likewise.
31444         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
31445         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
31446         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31447
31448         Fix copyright header in build-aux scripts.
31449         * build-aux/git-version-gen: Fix copyright header to match GPLv3
31450         recommendation.
31451         * build-aux/ncftpput-ftp: Likewise.
31452         * build-aux/update-copyright: Likewise.
31453
31454 2009-09-09  Eric Blake  <ebb9@byu.net>
31455
31456         test-link: allow Linux choice of errno
31457         * tests/test-link.c (main): Relax test for alternate error.
31458
31459         strndup: fix improper m4 caching
31460         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
31461         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
31462         (gl_PREREQ_STRNDUP): Delete.
31463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
31464         * modules/string (Makefile.am): Substitute it.
31465         * lib/string.in.h (strndup): Modernize prototype.
31466
31467         getcwd: port to mingw
31468         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
31469         different from the POSIX assumptions made throughout the getcwd
31470         module; fortunately, the mingw getcwd does not need replacement.
31471         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
31472         * modules/getcwd-tests: New test.
31473         * tests/test-getcwd.c: Likewise.
31474
31475         link: fix platform bugs
31476         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
31477         * lib/link.c (link): Work around them.  Fix related mingw bug.
31478         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
31479         * modules/unistd (Makefile.am): Substitute it.
31480         * lib/unistd.in.h (link): Declare replacement.
31481         * doc/posix-functions/link.texi (link): Document this.
31482         * modules/link (Depends-on): Add strdup-posix, sys_stat.
31483
31484         test-link: consolidate into single C program, test more cases
31485         * tests/test-link.sh: Delete.
31486         * tests/test-link.c: Test more error conditions.  Exposes bugs on
31487         at least Cygwin and Solaris.
31488         * modules/link-tests (Files): Remove unused file.
31489         (Depends-on): Add errno, sys_stat.
31490         (Makefile.am): Simplify.
31491
31492 2009-09-08  Bruno Haible  <bruno@clisp.org>
31493
31494         Work around towlower, towupper bug on mingw.
31495         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
31496         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
31497         * doc/posix-functions/towlower.texi: Mention the mingw bug.
31498         * doc/posix-functions/towupper.texi: Likewise.
31499         Reported by Eric Blake.
31500
31501 2009-09-08  Jim Meyering  <meyering@redhat.com>
31502
31503         build: don't try to run autoheader if we don't use it
31504         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
31505         is not used in configure.ac.
31506
31507 2009-09-08  Eric Blake  <ebb9@byu.net>
31508
31509         euidaccess: fix compilation error
31510         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
31511
31512         rawmemchr: relax license
31513         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
31514         okay.
31515         Reported by Jim Meyering.
31516
31517         mkfifoat: new module
31518         * modules/mkfifoat: New file.
31519         * lib/mkfifoat.c: Likewise.
31520         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
31521         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
31522         * modules/sys_stat (Makefile.am): Use them.
31523         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
31524         * MODULES.html.sh (File system functions): Mention module.
31525         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
31526         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
31527         * modules/mkfifoat-tests: New test.
31528         * tests/test-mkfifoat.c: Likewise.
31529
31530         strchrnul: relax license
31531         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
31532         okay.
31533         Reported by Jim Meyering.
31534
31535 2009-09-08  Eric Blake  <ebb9@byu.net>
31536
31537         fstatat: fix compilation on Solaris
31538         * lib/fstatat.c (includes): Add fcntl.h.
31539         Reported by Pádraig Brady.
31540
31541 2009-09-07  Eric Blake  <ebb9@byu.net>
31542
31543         rename: modernize replacement
31544         * modules/rename (Depends-on): Add stdio.
31545         (configure.ac): Declare witness.
31546         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
31547         stdio take care of replacement.
31548         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
31549         * modules/stdio (Makefile.am): Substitute them.
31550         * lib/stdio.in.h (rename): Declare replacement.
31551         * lib/rename.c (includes): Allow cross-compilation to non-windows
31552         machines.
31553         * doc/posix-functions/rename.texi (rename): Improve
31554         documentation.
31555
31556         stdio: sort witness names
31557         * modules/stdio (Makefile.am): Sort replacements.
31558         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
31559         * lib/stdio.in.h: Likewise.
31560
31561         getcwd: minor cleanups
31562         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
31563         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
31564
31565         openat: provide more convenience names
31566         * modules/faccessat (configure.ac): Add C witness.
31567         * lib/unistd.in.h (readlinkat): Fix typo.
31568         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
31569         convenience wrappers.
31570         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
31571         wrappers in syntax checks.
31572
31573 2009-09-06  Eric Blake  <ebb9@byu.net>
31574
31575         doc: fix comments in recent patches
31576         * lib/faccessat.c: Mention correct function.
31577         * lib/fchmodat.c: Likewise.
31578         * lib/fchownat.c: Likewise.
31579         * lib/symlinkat.c: Likewise.
31580         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
31581         constants.
31582
31583         faccessat, symlinkat: continue cleanup of previous patch
31584         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
31585         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31586         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
31587         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
31588         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
31589         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
31590         set.
31591
31592 2009-09-06  Bruno Haible  <bruno@clisp.org>
31593
31594         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
31595         (fstatat): Declare if GNULIB_FSTATAT is set.
31596         (mkdirat): Declare if GNULIB_MKDIRAT is set.
31597         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
31598         (unlinkat): Declare if GNULIB_UNLINKAT is set.
31599         * modules/fcntl-h (Files): Remove m4/openat.m4.
31600         * modules/sys_stat (Files): Remove m4/openat.m4.
31601         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
31602         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
31603         * modules/unistd (Files): Remove m4/openat.m4.
31604         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
31605         GNULIB_OPENAT.
31606         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
31607         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
31608         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
31609         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
31610         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
31611         gl_OPENAT_DEFAULTS.
31612         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
31613         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
31614         Don't require gl_OPENAT_DEFAULTS.
31615         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
31616         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
31617         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
31618         (gl_OPENAT_DEFAULTS): Remove macro.
31619
31620 2009-09-06  Bruno Haible  <bruno@clisp.org>
31621
31622         * modules/openat (configure.ac): Remove unneeded witness.
31623
31624 2009-09-06  Bruno Haible  <bruno@clisp.org>
31625
31626         Set errno to ENOSYS when a function is entirely unsupported.
31627         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
31628         EOPNOTSUPP.
31629         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
31630         * modules/chown (Depends-on): Remove errno.
31631
31632 2009-09-06  Bruno Haible  <bruno@clisp.org>
31633
31634         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
31635
31636 2009-09-06  Bruno Haible  <bruno@clisp.org>
31637
31638         * lib/sys_stat.in.h: Fix preprocessor command indentation.
31639
31640 2009-09-06  Ben Pfaff  <blp@gnu.org>
31641             Bruno Haible  <bruno@clisp.org>
31642
31643         Work around a glibc bug in strtok_r.
31644         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
31645         Undefine if UNDEFINE_STRTOK_R is set.
31646         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
31647         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31648         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
31649         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
31650         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
31651         UNDEFINE_STRTOK_R.
31652         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
31653
31654 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31655
31656         exclude: minor fix
31657         * lib/exclude.c: Include wctype.h
31658
31659 2009-09-06  Akim Demaille  <demaille@gostai.com>
31660
31661         bootstrap: improve error message
31662         * build-aux/bootstrap (find_tool): Upon failure, report the list
31663         of candidates.
31664         Honor the initial value of the envvar.
31665
31666 2009-09-05  Eric Blake  <ebb9@byu.net>
31667
31668         symlinkat: new module
31669         * modules/symlinkat: New file.
31670         * lib/symlinkat.c: Likewise.
31671         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
31672         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
31673         * modules/unistd (Makefile.am): Use them.
31674         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
31675         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
31676         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
31677         * MODULES.html.sh (File system functions): Mention module.
31678         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
31679         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
31680         * modules/symlinkat-tests: New test.
31681         * tests/test-symlinkat.c: Likewise.
31682
31683         test-openat-safer: add more checks
31684         * tests/test-openat-safer.c (main): Check more code paths.
31685
31686 2009-09-05  Jim Meyering  <meyering@redhat.com>
31687
31688         syntax-check: detect unnecessary inclusion of openat.h
31689         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
31690
31691 2009-09-05  Bruno Haible  <bruno@clisp.org>
31692
31693         Support towlower, towupper.
31694         * doc/posix-functions/towlower.texi: Mention module wctype.
31695         * doc/posix-functions/towupper.texi: Likewise.
31696         * lib/wctype.in.h (towlower, towupper): New functions.
31697         * tests/test-wctype.c: Include stdio.h, stdlib.h.
31698         (ASSERT): New macro.
31699         (e): New variable.
31700         (main): Test also towlower, towupper. Test WEOF argument.
31701         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
31702
31703 2009-09-05  Bruno Haible  <bruno@clisp.org>
31704
31705         Fix conversion behaviour when the input is invalid.
31706         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
31707         mark occurring in first pass of indirect conversion.
31708         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
31709         input.
31710         Found by clang's static analyzer.
31711
31712 2009-09-05  Bruno Haible  <bruno@clisp.org>
31713
31714         * tests/test-striconveh.c (main): Test indirect conversion on platforms
31715         where direct conversion is possible.
31716
31717 2009-09-04  Eric Blake  <ebb9@byu.net>
31718
31719         openat: fail with ENOENT on empty name
31720         * lib/openat-proc.c (openat_proc_name): Special-case the empty
31721         buffer.
31722
31723         link-follow: fix logic bug in prior patch
31724         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
31725         reversed sense of yes and no in prior patch.  Avoid confusing
31726         compilation failure with desired semantics.
31727
31728         link-follow: accomodate mingw and cross-compilation
31729         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
31730         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
31731         cross-compilation results to -1, to make linkat easier to
31732         implement when cross-compiling.  Trivially support mingw.
31733         * modules/link-follow (configure.ac): Call new name.
31734         * NEWS: Mention this.
31735
31736 2009-09-03  Eric Blake  <ebb9@byu.net>
31737
31738         faccessat: compile replacement
31739         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
31740         needed.
31741
31742         fts: fix compilation error
31743         * lib/fts.c (includes): Re-add "openat.h", for
31744         openat_needs_fchdir.
31745
31746         faccessat: new module
31747         * modules/faccessat: New file.
31748         * lib/faccessat.c: Likewise.
31749         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
31750         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
31751         * modules/unistd (Makefile.am): Use it.
31752         * lib/unistd.in.h (faccessat): Declare it.
31753         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
31754         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
31755         * MODULES.html.sh (File system functions): Mention it.
31756         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
31757         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
31758
31759         euidaccess: prefer POSIX over non-standard implementation
31760         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
31761         * lib/euidaccess.c (euidaccess): Use it if available.
31762
31763         openat: make template easier to use
31764         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
31765         AT_FUNC_F2 to be undefined.
31766         (VALIDATE_FLAG): New macro; use it to reject bad flags.
31767         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
31768         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
31769         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
31770         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
31771         Likewise.
31772         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
31773         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
31774         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
31775         Likewise.
31776
31777         openat: declare in POSIX headers
31778         * NEWS: Mention this.
31779         * modules/openat (configure.ac): Declare witnesses.
31780         (Depends-on): Add fcntl-h, sys_stat, unistd.
31781         (Include): Mention correct headers.
31782         * modules/fcntl-h (Depends-on): Add link-warning.
31783         (Files): Add openat.m4.
31784         (Makefile.am): Substitute witnesses.
31785         * modules/sys_stat (Files, Makefile.am): Likewise.
31786         * modules/unistd (Files, Makefile.am): Likewise.
31787         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
31788         (gl_OPENAT_DEFAULTS): New macro.
31789         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
31790         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
31791         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
31792         (SYS_STAT_H): Remove unused variable.
31793         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
31794         * lib/fcntl--.h (includes): Remove unneeded header.
31795         * lib/openat-safer.c (includes): Likewise.
31796         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
31797         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
31798         appropriate headers.
31799         (__OPENAT_PREFIX): Delete.
31800         * lib/fcntl.in.h (openat): Provide declaration.
31801         (AT_FDCWD): Fix Solaris bug.
31802         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
31803         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
31804         * lib/fchmodat.c (includes):  Adjust to find declaration.
31805         * lib/fchownat.c (includes): Likewise.
31806         * lib/mkdirat.c (includes): Likewise.
31807         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
31808         still visible.
31809
31810 2009-09-02  Eric Blake  <ebb9@byu.net>
31811
31812         errno: use consistently
31813         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
31814         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
31815         * lib/canonicalize.c (ELOOP): Likewise.
31816         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
31817         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
31818         * lib/lchown.c (EOPNOTSUPP): Likewise.
31819         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
31820         * lib/savewd.c (ESTALE): Likewise.
31821         * lib/settime.c (ENOSYS): Likewise.
31822         * lib/utimens.c (ENOSYS): Likewise.
31823         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
31824         * lib/chdir-safer.c (ELOOP): Likewise.
31825         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
31826         * modules/c-stack (Depends-on): Add errno.
31827         * modules/canonicalize (Depends-on): Likewise.
31828         * modules/chdir-safer (Depends-on): Likewise.
31829         * modules/fdopendir (Depends-on): Likewise.
31830         * modules/inet_ntop (Depends-on): Likewise.
31831         * modules/inet_pton (Depends-on): Likewise.
31832         * modules/lchown (Depends-on): Likewise.
31833         * modules/openat (Depends-on): Likewise.
31834         * modules/savewd (Depends-on): Likewise.
31835         * modules/settime (Depends-on): Likewise.
31836         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
31837
31838         fts: avoid leaking fds
31839         * modules/fts (Depends-on): Add cloexec.
31840         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
31841         flag.
31842
31843         fts: make directory fds more robust
31844         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
31845         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
31846
31847         backupfile, chdir-long, fts, savedir: make safer
31848         * lib/backupfile.c (includes): Use "dirent--.h", since
31849         numbered_backup can write to stderr during readdir.
31850         * lib/savedir.c (includes): Likewise.
31851         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
31852         emulation can write to stderr on failure.
31853         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
31854         * lib/getcwd.c: Document why opendir_safer is unused.
31855         * lib/glob.c: Likewise.
31856         * lib/scandir.c: Likewise.
31857         * lib/openat-proc.c: Likewise, for open_safer.
31858         * modules/backupfile (Depends-on): Add dirent-safer.
31859         * modules/savedir (Depends-on): Likewise.
31860         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
31861         * modules/chdir-long (Depends-on): Add openat-safer.
31862
31863         openat-safer: new module
31864         * modules/openat-safer: New file.
31865         * lib/openat-safer.c: Likewise.
31866         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
31867         * lib/fcntl-safer.h (openat_safer): Declare.
31868         * lib/fcntl--.h (openat): Override.
31869         * MODULES.html.sh (File descriptor based I/O): Mention it.
31870         * lib/openat.h: Add double-inclusion guards.
31871         * lib/openat.c (includes): Only include "fcntl-safer.h", not
31872         "fcntl--.h", so we can implement openat.
31873         * modules/openat-safer-tests: New test.
31874         * tests/test-openat-safer.c: New file.
31875
31876         dirent-safer: new module
31877         * modules/dirent-safer: New file.
31878         * lib/dirent--.h: Likewise.
31879         * lib/dirent-safer.h: Likewise.
31880         * lib/opendir-safer.c: Likewise.
31881         * m4/dirent-safer.m4: Likewise.
31882         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
31883         * modules/dirent-safer-tests: New test.
31884         * tests/test-dirent-safer.c: New file.
31885         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
31886
31887         fdopendir: optimize on mingw
31888         * lib/unistd.in.h (_gl_directory_name): New prototype.
31889         * lib/fchdir.c (_gl_directory_name): Implement it.
31890         (fchdir): Use it to simplify implementation.
31891         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
31892         fchdir, when available, to avoid calling [f]chdir().
31893
31894         fdopendir: split into its own module
31895         * lib/openat.c (fdopendir): Move...
31896         * lib/fdopendir.c: ...into new file.
31897         * modules/fdopendir: New module.
31898         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
31899         * modules/openat (Depends-on): Add fdopendir.
31900         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
31901         fdopendir here.
31902         * modules/savedir (Depends-on): Only need fdopendir, not full
31903         openat.
31904         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
31905         * lib/openat.h (fdopendir): Drop prototype.
31906         * lib/dirent.in.h (fdopendir): Provide prototype.
31907         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
31908         * modules/dirent (Makefile.am): Substitute them.
31909         * MODULES.html.sh (File system functions): Mention it.
31910         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
31911         * modules/fdopendir-tests: New file.
31912         * tests/test-fdopendir.c: Likewise.
31913
31914         fchdir: use more consistent macro convention
31915         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
31916         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
31917         REPLACE_FCHDIR, rather than relying on config.h macros.
31918         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
31919         inside a single make-time REPLACE_FCHDIR block, rather than using
31920         the config.h FCHDIR_REPLACEMENT.
31921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
31922         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
31923         Manage fstat replacement.
31924         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
31925         REPLACE_FCHDIR.
31926         * modules/sys_stat (Files): Add m4/unistd_h.m4.
31927         (Makefile.am): Substitute REPLACE_FCHDIR.
31928         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
31929         FCHDIR_REPLACEMENT.
31930         * lib/dup-safer.c (dup_safer): Likewise.
31931         * lib/dup2.c (rpl_dup2): Likewise.
31932         * lib/dup3.c (rpl_dup3): Likewise.
31933         * lib/open.c (rpl_open): Likewise.
31934
31935         fchdir: simplify error handling, and support dup3
31936         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
31937         stdbool, malloc-posix, realloc-posix.
31938         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
31939         (ensure_dirs_slot): Return false on allocation failure.
31940         (rpl_dup2): Delete.
31941         (_gl_register_dup): New function.
31942         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
31943         (_gl_register_fd): Close fd on allocation failure.
31944         * lib/fcntl.in.h (_gl_register_fd): Update signature.
31945         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
31946         prototype.
31947         (rpl_dup2_fchdir): Delete prototype.
31948         * lib/open.c (open): Update caller.
31949         * lib/dup2.c (dup2): Track fchdir metadata.
31950         * lib/dup3.c (dup3): Likewise.
31951         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
31952         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
31953
31954 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31955
31956         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
31957         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
31958         don't pass arguments to AC_OUTPUT.
31959
31960 2009-09-02  Bruno Haible  <bruno@clisp.org>
31961
31962         * modules/mkdtemp (License): Relicense under LGPLv2+.
31963         Reported by Paolo Bonzini.
31964
31965 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31966
31967         Replace uses of obsolete autoconf macros in Jim's modules.
31968         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
31969         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
31970         can evoke a warning from autoconf when run with -Wobsolete
31971         enabled.  They were declared obsolete for good reasons (see
31972         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
31973         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
31974         should not continue using the deprecated macros.
31975         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
31976         obsolete Autoconf macros with modern counterparts.
31977         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
31978         * m4/dos.m4 (gl_AC_DOS): Likewise.
31979         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
31980         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
31981         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
31982         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
31983         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31984         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
31985         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
31986         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
31987         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31988         Likewise.
31989         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
31990         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
31991         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
31992         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
31993         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
31994         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
31995
31996 2009-09-01  Eric Blake  <ebb9@byu.net>
31997
31998         fchdir: fix off-by-one bug in previous patch
31999         * lib/fchdir.c (rpl_fstat): Use correct bounds.
32000         (_gl_unregister_fd): Delete useless if.
32001
32002 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
32003
32004         maint.mk: sort the list of syntax-check rules
32005         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
32006         easier to get a sense of progress when the rules are run sequentially
32007         and take a long time.
32008
32009 2009-09-01  Simon Josefsson  <simon@josefsson.org>
32010
32011         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
32012         * modules/netinet_in: Likewise.
32013         * modules/sys_file: Likewise.
32014         * modules/sys_ioctl: Likewise.
32015         * modules/sys_select: Likewise.
32016         * modules/sys_socket: Likewise.
32017         * modules/sys_stat: Likewise.
32018         * modules/sys_time: Likewise.
32019         * modules/sys_times: Likewise.
32020         * modules/sys_utsname: Likewise.
32021         * modules/sys_wait: Likewise.
32022
32023 2009-09-01  Jim Meyering  <meyering@redhat.com>
32024
32025         fts: help ensure that return values are not ignored
32026         * lib/fts_.h (__GNUC_PREREQ): Define.
32027         (__attribute_warn_unused_result__): Define.
32028         (fts_children, fts_close, fts_open, fts_read): Declare with
32029         __attribute_warn_unused_result__.
32030
32031         fts: fts_close now fails also when closing a dir file descriptor fails
32032         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
32033         and propagate to caller, along with errno.
32034
32035         announce-gen: correct formatting in --help output
32036         * build-aux/announce-gen (usage): Move the one-line description in
32037         --help output "up", to where it belongs, just after Usage:.
32038
32039 2009-08-31  Eric Blake  <ebb9@byu.net>
32040
32041         fchdir: port to mingw
32042         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
32043         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
32044         opened, then use a substitute.
32045         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
32046         replacement.
32047         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
32048         (_gl_register_fd): No need to check stat if open already filters
32049         all directories.
32050         (fchdir): Fix error condition to match POSIX.
32051         * modules/fchdir (Depends-on): Add sys_stat.
32052         * doc/posix-functions/open.texi (open): Document the limitation.
32053         * modules/fchdir-tests: New file.
32054         * tests/test-fchdir.c: Likewise.
32055
32056         canonicalize: allow cross-testing from cygwin to mingw
32057         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
32058         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
32059         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
32060         Likewise.
32061         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
32062         target does not support symlinks.
32063         * tests/test-canonicalize-lgpl.sh: Likewise.
32064
32065         chown: avoid compilation warning on mingw
32066         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
32067         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
32068         mingw.
32069         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
32070         * modules/chown (Depends-on): Add errno.
32071
32072 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
32073
32074         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
32075         command.
32076
32077 2009-08-31  Jim Meyering  <meyering@redhat.com>
32078
32079         canonicalize: remove useless initialization
32080         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
32081         initialization of local, "end".
32082
32083 2009-08-30  Bruno Haible  <bruno@clisp.org>
32084
32085         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
32086         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
32087         ENOSYS.
32088
32089 2009-08-30  Bruno Haible  <bruno@clisp.org>
32090
32091         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
32092         /usr/xpg4/bin/tr when it exists.
32093         * tests/test-pipe-filter-gi1.sh: Likewise.
32094
32095 2009-08-30  Bruno Haible  <bruno@clisp.org>
32096
32097         Work around deficient /usr/bin/id program on Solaris.
32098         * tests/test-file-has-acl.sh (ID): New variable.
32099         * tests/test-set-mode-acl.sh (ID): Likewise.
32100         * tests/test-copy-acl.sh (ID): Likewise.
32101         * tests/test-copy-file.sh (ID): Likewise.
32102
32103 2009-08-30  Bruno Haible  <bruno@clisp.org>
32104
32105         New module 'xstriconveh'.
32106         * lib/xstriconveh.h: New file.
32107         * lib/xstriconveh.c: New file.
32108         * modules/xstriconveh: New file.
32109
32110 2009-08-30  Bruno Haible  <bruno@clisp.org>
32111
32112         Make it easier to use mem_cd_iconveh.
32113         * lib/striconveh.h (iconveh_t): New type.
32114         (iconveh_open, iconveh_close): New declarations.
32115         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32116         with a single 'const iconveh_t *' argument.
32117         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
32118         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
32119         with a single 'const iconveh_t *' argument.
32120         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
32121         * tests/test-striconveh.c (main): Update.
32122         * NEWS: Mention the change.
32123
32124 2009-08-30  Bruno Haible  <bruno@clisp.org>
32125
32126         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
32127         problem.
32128
32129 2009-08-30  Bruno Haible  <bruno@clisp.org>
32130
32131         Work around iconv_open problem on Solaris.
32132         * lib/iconv_open-solaris.gperf: New file.
32133         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
32134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
32135         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
32136         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
32137         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
32138         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
32139
32140 2009-08-29  Jim Meyering  <meyering@redhat.com>
32141
32142         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
32143         * top/maint.mk (cvs-check): Remove target; it was just an alias
32144         to the better-named vc-diff-check.
32145         (maintainer-distcheck): Remove rule.  It was used only from
32146         the (alpha/beta/major) target, and all of its commands but one
32147         were coreutils-specific.
32148         (vc-dist): Remove rule.
32149         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
32150         Run vc-diff-check, not vc-dist.
32151         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
32152
32153 2009-08-27  Bruno Haible  <bruno@clisp.org>
32154
32155         * tests/test-bitrotate.c (main): Remove test that uses a shift count
32156         of 0.
32157
32158 2009-08-27  Bruno Haible  <bruno@clisp.org>
32159
32160         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
32161         compilers.
32162         * doc/func.texi: Document the SunPRO C bug.
32163
32164 2009-08-27  Bruno Haible  <bruno@clisp.org>
32165
32166         Fix link error on Solaris.
32167         * tests/test-parse-duration.c (xstrdup): Remove function.
32168
32169 2009-08-26  Pádraig Brady  <P@draigbrady.com>
32170
32171         ignore-value: handle pointer types, too
32172         * lib/ignore-value.h (__attribute__): Remove definition.
32173         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
32174         of a more concise and more-often effective "(void) i" statement.
32175         (ignore_ptr): New function to suppress warnings from functions that
32176         return pointers, and to make it explicit that one function doesn't
32177         handle all cases.
32178
32179 2009-08-25  Bruno Haible  <bruno@clisp.org>
32180
32181         dup2: work around a Linux bug.
32182         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
32183         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
32184         * doc/posix-functions/dup2.texi: Mention the Linux bug.
32185         Reported by Simon Josefsson.
32186
32187 2009-08-25  Jim Meyering  <meyering@redhat.com>
32188
32189         libguestfs uses gnulib
32190         * users.txt: Add libguestfs.
32191
32192 2009-08-24  Eric Blake  <ebb9@byu.net>
32193
32194         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
32195         * lib/pipe2.c (includes): Add binary-io.h.
32196         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
32197
32198 2009-08-24  Bruno Haible  <bruno@clisp.org>
32199
32200         Tolerate declared but missing accept4 syscall.
32201         * lib/accept4.c (accept4): Invoke original accept4 function first, if
32202         available.
32203         * lib/sys_socket.in.h (accept4): If the function is already present,
32204         override it.
32205         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
32206         * modules/accept4 (Makefile.am): Compile accept4.c always.
32207         Reported by Paolo Bonzini and Eric Blake.
32208
32209 2009-08-23  Bruno Haible  <bruno@clisp.org>
32210
32211         New module 'accept4'.
32212         * lib/sys_socket.in.h (accept4): New declaration.
32213         * lib/accept4.c: New file.
32214         * m4/accept4.m4: New file.
32215         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
32216         GNULIB_ACCEPT4, HAVE_ACCEPT4.
32217         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
32218         HAVE_ACCEPT4.
32219         * modules/accept4: New file.
32220         * doc/glibc-functions/accept4.texi: Mention the new module.
32221
32222 2009-08-24  Jim Meyering  <meyering@redhat.com>
32223
32224         progname: also set global program_invocation_name, when possible
32225         Before this change, a libtool-enabled program that calls glibc's
32226         error function would report the program name as
32227         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
32228         * modules/progname (configure.ac): Check for a declaration of
32229         program_invocation_name.
32230         * lib/progname.c:  Include <errno.h>.
32231         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
32232         Set program_invocation_name.
32233
32234 2009-08-23  Bruno Haible  <bruno@clisp.org>
32235
32236         * lib/dup3.c: Include <string.h>.
32237
32238 2009-08-23  Bruno Haible  <bruno@clisp.org>
32239
32240         * lib/dup3.c (dup3): Test only once whether the system actually exists.
32241         * lib/pipe2.c (pipe2): Likewise.
32242         Suggested by Eric Blake.
32243
32244 2009-08-23  Bruno Haible  <bruno@clisp.org>
32245
32246         Tolerate declared but missing dup3 syscall.
32247         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
32248         * lib/unistd.in.h (dup3): If the function is already present,
32249         override it.
32250         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
32251         * modules/dup3 (Makefile.am): Compile dup3.c always.
32252         Reported by Paolo Bonzini.
32253
32254 2009-08-23  Bruno Haible  <bruno@clisp.org>
32255
32256         Tolerate declared but missing pipe2 syscall.
32257         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
32258         available.
32259         * lib/unistd.in.h (pipe2): If the function is already present,
32260         override it.
32261         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
32262         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
32263         Reported by Paolo Bonzini.
32264
32265 2009-08-23  Bruno Haible  <bruno@clisp.org>
32266
32267         * lib/pipe2.c (pipe2): Move #ifs inside function.
32268
32269 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32270
32271         quotearg: document limitations of quote_these_too
32272         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
32273         those limitations are created.
32274         * lib/quotearg.h (set_char_quoting): Document that digits and
32275         letters that are special after backslash are not permitted.
32276         (quotearg_char): Cross-reference set_char_quoting documentation.
32277
32278 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
32279
32280         quotearg: implement custom_quoting_style
32281         * lib/quotearg.c: (struct quoting_options): Add left_quote and
32282         right_quote fields.
32283         (set_custom_quoting): New public function.
32284         (quotearg_buffer_restyled): Add left_quote and right_quote
32285         arguments, handle them very much like locale quoting, and update
32286         all uses.
32287         (quotearg_n_custom): New public function.
32288         (quotearg_n_custom_mem): New public function.
32289         (quotearg_custom): New public function.
32290         (quotearg_custom_mem): New public function.
32291         * lib/quotearg.h: Prototype and document new public functions.
32292         (enum quoting_style): For escape_quoting_style and
32293         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
32294         ignored even though they're otherwise like c_quoting_style.
32295         Add custom_quoting_style member and document with comparison to
32296         clocale_quoting_style.
32297         * tests/test-quotearg.c (custom_quotes): New array.
32298         (custom_results): New array.
32299         (main): Extend to test custom quoting.
32300
32301 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32302
32303         quotearg: fix right quote escaping when it's in quote_these_too
32304         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
32305         quote, be sure to prepend only one backslash.
32306         * tests/test-quotearg.c (use_quote_double_quotes): New function.
32307         (main): Test it.
32308
32309 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
32310
32311         quotearg-tests: test escaping of embedded locale quotes
32312         * tests/test-quotearg.c (struct result_strings): Add member for
32313         new input.
32314         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
32315         (inputs): Add new input.
32316         (results_g): Add expected results.
32317         (flag_results): Likewise.
32318         (locale_results): Likewise.
32319         (compare_strings): Check those.
32320
32321 2009-08-23  Bruno Haible  <bruno@clisp.org>
32322
32323         Tests for module 'dup3'.
32324         * modules/dup3-tests: New file.
32325         * tests/test-dup3.c: New file.
32326
32327         New module 'dup3'.
32328         * lib/unistd.in.h (dup3): New declaration.
32329         * lib/dup3.c: New file.
32330         * m4/dup3.m4: New file.
32331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
32332         HAVE_DUP3.
32333         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
32334         * modules/dup3: New file.
32335         * doc/glibc-functions/dup3.texi: Mention the new module.
32336
32337 2009-08-23  Bruno Haible  <bruno@clisp.org>
32338
32339         Tweak the dup2 test.
32340         * tests/test-dup2.c (main): Create the test file empty. Verify that an
32341         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
32342         the test file is still empty. Fix argument order of lseek.
32343
32344 2009-08-23  Bruno Haible  <bruno@clisp.org>
32345
32346         Avoid test link errors when the modules getopt-gnu, gettext are used.
32347         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
32348         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32349
32350 2009-08-23  Bruno Haible  <bruno@clisp.org>
32351
32352         Fix getdtablesize() on mingw.
32353         * lib/getdtablesize.c (getdtablesize): Implement differently.
32354         * lib/unistd.in.h (getdtablesize): Improve comment.
32355
32356 2009-08-23  Bruno Haible  <bruno@clisp.org>
32357
32358         New module 'mkostemp'.
32359         Based on Ulrich Drepper's 2007-08-10 change in glibc.
32360         * lib/stdlib.in.h (mksotemp): New declaration.
32361         * lib/mkostemp.c: New file, from glibc with modifications.
32362         * lib/tempname.h (GT_FILE): Remove outdated comment.
32363         (gen_tempname): Add flags argument.
32364         * lib/tempname.c (__GT_BIGFILE): Remove macro.
32365         (__GT_FILE): Map to 1.
32366         (small_open, large_open): Remove macros.
32367         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
32368         * lib/mkstemp.c (mkstemp): Update.
32369         * lib/mkdtemp.c (mkdtemp): Likewise.
32370         * m4/mkostemp.m4: New file.
32371         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
32372         HAVE_MKOSTEMP.
32373         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
32374         HAVE_MKOSTEMP.
32375         * modules/mkostemp: New file, based on modules/mkstemp.
32376         * doc/glibc-functions/mkostemp.texi: Mention the new module.
32377         * NEWS: Mention the change.
32378
32379 2009-08-23  Bruno Haible  <bruno@clisp.org>
32380
32381         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
32382         Reported by Eric Blake.
32383
32384 2009-08-23  Bruno Haible  <bruno@clisp.org>
32385
32386         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
32387         Reported by Eric Blake.
32388
32389 2009-08-23  Bruno Haible  <bruno@clisp.org>
32390
32391         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
32392         * modules/pipe2 (Depends-on): Likewise.
32393
32394 2009-08-23  Eric Blake  <ebb9@byu.net>
32395
32396         fcntl-h: add O_TTY_INIT support
32397         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
32398         * tests/test-fcntl-h.c (o): Test it.
32399         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32400
32401         fcntl-h: rename from fcntl, in preparation for fcntl(2)
32402         * modules/fcntl: Move <fcntl.h> header replacement...
32403         * modules/fcntl-h: ...to new name, so as not to collide with
32404         like-named function.
32405         * tests/test-fcntl.c: Rename...
32406         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
32407         * modules/fcntl-tests: Rename...
32408         * modules/fcntl-h-tests: ...to this.  Update test file name.
32409         * modules/chdir-long (Depends-on): Update clients.
32410         * modules/chdir-safer (Depends-on): Likewise.
32411         * modules/fcntl-safer (Depends-on): Likewise.
32412         * modules/fts (Depends-on): Likewise.
32413         * modules/mkancesdirs (Depends-on): Likewise.
32414         * modules/mkdir-p (Depends-on): Likewise.
32415         * modules/open (Depends-on): Likewise.
32416         * modules/savewd (Depends-on): Likewise.
32417         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
32418         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
32419
32420 2009-08-22  Bruno Haible  <bruno@clisp.org>
32421
32422         * modules/binary-io (License): Relicense under LGPL.
32423         * modules/pipe2 (License): Likewise.
32424
32425 2009-08-22  Bruno Haible  <bruno@clisp.org>
32426
32427         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
32428         return value.
32429         * lib/pipe-filter-gi.c (filter_init): Likewise.
32430         Reported by Eric Blake.
32431
32432 2009-08-22  Bruno Haible  <bruno@clisp.org>
32433
32434         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
32435         * modules/pipe (Depends-on): Add pipe2.
32436
32437 2009-08-22  Bruno Haible  <bruno@clisp.org>
32438
32439         Tests for module 'pipe2'.
32440         * modules/pipe2-tests: New file.
32441         * tests/test-pipe2.c: New file.
32442
32443         New module 'pipe2'.
32444         * lib/unistd.in.h (pipe2): New declaration.
32445         * lib/pipe2.c: New file.
32446         * m4/pipe2.m4: New file.
32447         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
32448         HAVE_PIPE2.
32449         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
32450         * modules/pipe2: New file.
32451         * doc/glibc-functions/pipe2.texi: Mention the new module.
32452
32453 2009-08-22  Bruno Haible  <bruno@clisp.org>
32454
32455         Reference some new glibc functions.
32456         * doc/glibc-functions/accept4.texi: New file.
32457         * doc/glibc-functions/dup3.texi: New file.
32458         * doc/glibc-functions/mkostemp.texi: New file.
32459         * doc/glibc-functions/pipe2.texi: New file.
32460         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
32461         (Glibc sys/socket.h): Refer to accept4.
32462         (Glibc unistd.h): Refer to dup3, pipe2.
32463         Reported by Eric Blake.
32464
32465 2009-08-22  Jim Meyering  <meyering@redhat.com>
32466             Bruno Haible  <bruno@clisp.org>
32467
32468         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
32469         This makes it so packages using automake-1.11's silent-rules option
32470         can print e.g., a single "GEN    configmake.h" line, rather than
32471         the 30+ statements that perform the job.  If you want to see the
32472         actual commands, you can still run "make V=1".
32473         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
32474         so that make output is abbreviated when those variables are defined
32475         appropriately.
32476         * modules/argz: Likewise.
32477         * modules/arpa_inet: Likewise.
32478         * modules/byteswap: Likewise.
32479         * modules/configmake: Likewise.
32480         * modules/dirent: Likewise.
32481         * modules/errno: Likewise.
32482         * modules/fcntl: Likewise.
32483         * modules/float: Likewise.
32484         * modules/fnmatch: Likewise.
32485         * modules/getopt-posix: Likewise.
32486         * modules/glob: Likewise.
32487         * modules/iconv_open: Likewise.
32488         * modules/inttypes: Likewise.
32489         * modules/localcharset: Likewise.
32490         * modules/locale: Likewise.
32491         * modules/math: Likewise.
32492         * modules/netdb: Likewise.
32493         * modules/netinet_in: Likewise.
32494         * modules/poll: Likewise.
32495         * modules/posix_spawnp-tests: Likewise.
32496         * modules/sched: Likewise.
32497         * modules/search: Likewise.
32498         * modules/selinux-h: Likewise.
32499         * modules/signal: Likewise.
32500         * modules/spawn: Likewise.
32501         * modules/stdarg: Likewise.
32502         * modules/stdbool: Likewise.
32503         * modules/stddef: Likewise.
32504         * modules/stdint: Likewise.
32505         * modules/stdio: Likewise.
32506         * modules/stdlib: Likewise.
32507         * modules/string: Likewise.
32508         * modules/strings: Likewise.
32509         * modules/sys_file: Likewise.
32510         * modules/sys_ioctl: Likewise.
32511         * modules/sys_select: Likewise.
32512         * modules/sys_socket: Likewise.
32513         * modules/sys_stat: Likewise.
32514         * modules/sys_time: Likewise.
32515         * modules/sys_times: Likewise.
32516         * modules/sys_utsname: Likewise.
32517         * modules/sys_wait: Likewise.
32518         * modules/sysexits: Likewise.
32519         * modules/time: Likewise.
32520         * modules/unistd: Likewise.
32521         * modules/wchar: Likewise.
32522         * modules/wctype: Likewise.
32523
32524 2009-08-22  Jim Meyering  <meyering@redhat.com>
32525
32526         announce-gen: detect write failure
32527         * build-aux/announce-gen: Add Coda at end.
32528         Remove equivalent-but-more-verbose block at top.
32529
32530 2009-08-19  Akim Demaille  <demaille@gostai.com>
32531
32532         bootstrap: --help to stdout.
32533         * bootstrap (usage): Don't send --help to stderr.
32534         Use a here doc instead of a long string.
32535
32536 2009-08-21  Eric Blake  <ebb9@byu.net>
32537
32538         test-popen-safer: split from test-popen
32539         * tests/test-popen.c (main): Move...
32540         * tests/test-popen.h: ...into new file.
32541         * tests/test-popen-safer2.c: New file.
32542         * modules/popen-tests (Files): Add test-popen.h.
32543         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
32544         Suggested by Bruno Haible.
32545
32546         test-fcntl-safer: split from test-open
32547         * tests/test-open.c (main): Move...
32548         * tests/test-open.h: ...into new file.
32549         * tests/test-fcntl-safer.c: New file.
32550         * modules/open-tests (Files): Add test-open.h.
32551         * modules/fcntl-safer-tests: New file.
32552         Suggested by Bruno Haible.
32553
32554         test-fopen-safer: split from test-fopen
32555         * tests/test-fopen.c (main): Move...
32556         * tests/test-fopen.h: ...into new file.
32557         * tests/test-fopen-safer.c: New file.
32558         * modules/fopen-tests (Files): Add test-fopen.h.
32559         * modules/fopen-safer-tests: New file.
32560         Suggested by Bruno Haible.
32561
32562 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32563
32564         popen-safer: test O_CLOEXEC at run-time.
32565         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
32566
32567 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
32568
32569         fcntl: move more flags to the header
32570         * lib/cloexec.c: Do not define FD_CLOEXEC here.
32571         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
32572         * lib/fcntl.in.h: Do both things here.
32573
32574 2009-08-21  Jim Meyering  <meyering@redhat.com>
32575
32576         consistently remove $@-t before redirecting to it
32577         * modules/argz: Remove $@-t and $@ before redirecting to the former.
32578         * modules/alloca-opt: Likewise.
32579         * modules/byteswap: Likewise.
32580         * modules/fnmatch: Likewise.
32581         * modules/getopt-posix: Likewise.
32582         * modules/glob: Likewise.
32583         * modules/poll: Likewise.
32584         * modules/posix_spawnp-tests: Likewise.
32585         * modules/sys_socket: Likewise.
32586         * modules/sysexits: Likewise.
32587
32588 2009-08-21  Eric Blake  <ebb9@byu.net>
32589
32590         popen: simplify access to original popen
32591         * lib/popen.c (rpl_popen): No need to worry about popen being a
32592         macro.
32593         Reported by Bruno Haible.
32594
32595 2009-08-20  Eric Blake  <ebb9@byu.net>
32596
32597         build: avoid some compiler warnings
32598         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
32599         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
32600         type.
32601         (new_exclude_segment, excluded_file_pattern_p)
32602         (excluded_file_name_p): Reduce scope.
32603         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
32604         old-style declaration.
32605
32606 2009-08-20  Simon Josefsson  <simon@josefsson.org>
32607
32608         * tests/test-exclude1.sh: Handle Windows EOL.
32609         * tests/test-exclude2.sh: Likewise.
32610         * tests/test-exclude3.sh: Likewise.
32611         * tests/test-exclude4.sh: Likewise.
32612         * tests/test-exclude5.sh: Likewise.
32613         * tests/test-exclude6.sh: Likewise.
32614         * tests/test-exclude7.sh: Likewise.
32615
32616 2009-08-19  Akim Demaille  <demaille@gostai.com>
32617
32618         bootstrap: find sha1sum when named gsha1sum.
32619         * bootstrap (find_tool): New.
32620         ($SHA1SUM): New.
32621         Use it.
32622
32623 2009-08-20  Jim Meyering  <meyering@redhat.com>
32624
32625         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
32626         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
32627         expression that converts "." in a file name to "\." in the resulting
32628         regexp.  Start with a dummy statement, so that prior shell variable
32629         definitions are expanded portably.  Reported by Simon Josefsson.
32630
32631 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
32632
32633         Fix polling for writeability of a screen buffer.
32634         * lib/poll.c: Distinguish input and screen buffers for the
32635         Win32 implementation.
32636         * lib/select.c: Likewise.
32637
32638 2009-08-19  Eric Blake  <ebb9@byu.net>
32639
32640         popen-safer: prevent popen from clobbering std descriptors
32641         * modules/popen-safer: New file.
32642         * lib/popen-safer.c: Likewise.
32643         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
32644         * lib/stdio--.h (popen): Provide override.
32645         * lib/stdio-safer.h (popen_safer): Provide declaration.
32646         * tests/test-popen.c (includes): Partially test this.
32647         * modules/popen-safer-tests: New file, for more tests.
32648         * tests/test-popen-safer.c: Likewise.
32649         * MODULES.html.sh (file stream based Input/Output): Mention it.
32650
32651         tests: test some of the *-safer modules
32652         * modules/fopen-safer (Depends-on): Add fopen.
32653         * modules/fcntl-safer (Depends-on): Add fcntl.
32654         * modules/stdlib-safer (Depends-on): Add stdlib.
32655         (configure.ac): Set indicator.
32656         * modules/unistd-safer (configure.ac): Likewise.
32657         * modules/tmpfile-safer (configure.ac): Likewise.
32658         (Depends-on): Add tmpfile.
32659         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
32660         active.
32661         * tests/test-fopen.c (includes): Test safer versions when they are
32662         in use.
32663         * tests/test-open.c (includes): Likewise.
32664
32665         popen: fix cygwin 1.5 bug when stdin closed
32666         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
32667         * modules/popen: New file.
32668         * modules/popen-tests: Likewise.
32669         * tests/test-popen.c: Likewise.
32670         * m4/popen.m4: Likewise.
32671         * lib/popen.c: Likewise.
32672         * lib/stdio.in.h (popen): New declaration.
32673         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
32674         * modules/stdio (Makefile.am): Likewise.
32675         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
32676
32677 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
32678
32679         maint.mk: give full control over update-copyright exclusions
32680         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
32681         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
32682         (update-copyright): Don't force inclusion of top-level
32683         ChangeLog.  Don't force exclusion of all COPYING files, but make
32684         them the default exclusion instead.
32685
32686 2009-08-16  Bruno Haible  <bruno@clisp.org>
32687
32688         Fix test failures on Solaris 10.
32689         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
32690         tests when Solaris iconv() is used.
32691         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
32692         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
32693         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
32694         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
32695         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
32696
32697 2009-08-16  Bruno Haible  <bruno@clisp.org>
32698
32699         Fix test failures on Solaris 10.
32700         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
32701         'tr' program and pass it as first argument.
32702         * tests/test-pipe-filter-gi1.sh: Likewise.
32703         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
32704         program as first argument.
32705         * tests/test-pipe-filter-gi1.c (main): Likewise.
32706
32707 2009-08-16  Eric Blake  <ebb9@byu.net>
32708
32709         fpurge: fix previous commits
32710         * modules/fpurge (Makefile.am): Make replacement conditional,
32711         partially reverting 2007-04-29 change; missed in previous
32712         attempt.
32713         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
32714         is missing.
32715
32716 2009-08-16  Bruno Haible  <bruno@clisp.org>
32717
32718         Clarify fpurge's effect on the file position.
32719         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
32720         * tests/test-fpurge.c (main): Make a second pass for checking the file
32721         position.
32722
32723 2009-08-16  Bruno Haible  <bruno@clisp.org>
32724
32725         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
32726         declaration of fpurge is missing.
32727         * tests/test-fpurge.c (main): Check that the file has not more contents
32728         than expected. Close the file before removing it.
32729
32730 2009-08-15  Eric Blake  <ebb9@byu.net>
32731
32732         fpurge: don't wrap working cygwin implementation
32733         * lib/fpurge.c (fpurge): Fix comment typo.
32734         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
32735         1.7 to avoid replacement.
32736         * tests/test-fpurge.c (main): Enhance test.
32737
32738 2009-08-15  Eric Blake  <ebb9@byu.net>
32739         and Jim Meyering  <meyering@redhat.com>
32740
32741         test-update-copyright: skip if perl is insufficient
32742         * tests/test-update-copyright.sh: Failure to run maintainer tool
32743         should not cause testsuite failure on cygwin 1.5.
32744
32745 2009-08-14  Eric Blake  <ebb9@byu.net>
32746
32747         doc: mention more functions added in cygwin 1.7.0
32748         * doc/posix-headers/limits.texi (limits.h): Update for recent
32749         cygwin additions.
32750         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
32751         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
32752         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
32753         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
32754         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
32755
32756 2009-08-14  Eric Blake  <ebb9@byu.net>
32757
32758         maint.mk: simplify update-copyright rule
32759         * top/maint.mk (update-copyright-local): Delete, and document how
32760         to do it in cfg.mk instead.
32761         (update-copyright-exclude-regexp): Delete, and document how to do
32762         it in .x-update-copyright instead.
32763         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
32764         exclude ChangeLog.
32765
32766 2009-08-14  Bruno Haible  <bruno@clisp.org>
32767
32768         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
32769
32770 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32771
32772         maint.mk: support update-copyright-env
32773         * top/maint.mk (update-copyright-env): Define place-holder.
32774         (update-copyright): Expand $(update-copyright-env) before
32775         invoking update-copyright.
32776
32777 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32778
32779         update-copyright: implement forced reformatting
32780         * build-aux/update-copyright: Implement and document
32781         UPDATE_COPYRIGHT_FORCE.
32782         * tests/test-update-copyright.sh: Test it.
32783
32784 2009-08-14  Eric Blake  <ebb9@byu.net>
32785         and Bruno Haible  <bruno@clisp.org>
32786
32787         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
32788         * tests/test-locale.c: Revert previous patch related to NULL.
32789         * tests/test-stdio.c: Likewise.
32790         * tests/test-stdlib.c: Likewise.
32791         * tests/test-string.c: Likewise.
32792         * tests/test-unistd.c: Likewise.
32793         * modules/time-tests (Depends-on): Add verify.
32794         * modules/wchar-tests (Depends-on): Likewise.
32795         * tests/test-time.c: Test for NULL compliance.
32796         * tests/test-wchar.c: Likewise.
32797         * modules/locale (Depends-on): Add stddef.
32798         * modules/stdio (Depends-on): Likewise.
32799         * modules/stdlib (Depends-on): Likewise.
32800         * modules/string (Depends-on): Likewise.
32801         * modules/time (Depends-on): Likewise.
32802         * modules/unistd (Depends-on): Likewise.
32803         * modules/wchar (Depends-on): Likewise.
32804         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
32805         * lib/stdlib.in.h (includes): Likewise.
32806         * lib/string.in.h (includes): Likewise.
32807         * lib/time.in.h (includes): Likewise.
32808         * lib/unistd.in.h (includes): Likewise.
32809         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
32810         replaced.
32811         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
32812         * m4/stddef_h.m4: New file.
32813         * modules/stddef: Likewise.
32814         * lib/stddef.in.h: Likewise.
32815         * modules/stddef-tests: Likewise.
32816         * tests/test-stddef.c: Likewise.
32817         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
32818         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
32819         * doc/posix-headers/locale.texi (locale.h): Likewise.
32820         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
32821         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
32822         * doc/posix-headers/string.texi (string.h): Likewise.
32823         * doc/posix-headers/time.texi (time.h): Likewise.
32824         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
32825         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
32826
32827 2009-08-14  Eric Blake  <ebb9@byu.net>
32828
32829         doc: improve git diff of texinfo files
32830         * .gitattributes: Add rule for *.texi files, with hint on how to
32831         use it.
32832         Copied from m4, and based on a report by Bruno Haible.
32833
32834 2009-08-14  Bruno Haible  <bruno@clisp.org>
32835
32836         Disable multithread support by default on Cygwin 1.5.x for real.
32837         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
32838
32839 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
32840
32841         update-copyright: much ado about intervals
32842         * build-aux/update-copyright: Implement and document
32843         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
32844         of copyright year intervals.
32845         Also, document UPDATE_COPYRIGHT_YEAR.
32846         * tests/test-update-copyright.sh: Test it.
32847
32848         update-copyright: convert 2-digit to 4-digit years
32849         * build-aux/update-copyright: Implement and document.
32850         * tests/test-update-copyright.sh: Update.
32851
32852 2009-08-14  Jim Meyering  <meyering@redhat.com>
32853
32854         test-exclude: avoid coreutils "make check" failure
32855         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
32856         just as in test-argmatch.c.
32857
32858 2009-08-13  Eric Blake  <ebb9@byu.net>
32859
32860         test-dup2: fix bad assumption
32861         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
32862         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
32863
32864         test-version-etc: fix CRLF portability issue
32865         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
32866         recognize \r.
32867         * tests/test-argp-version-etc-1.sh: Likewise.
32868
32869         getopt: update client modules
32870         * modules/argp (Depends-on): Use getopt-gnu.
32871         * modules/git-merge-changelog (Depends-on): Likewise.
32872         * modules/long-options (Depends-on): Likewise.
32873         * modules/xstrtol (Depends-on): Likewise.
32874
32875 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32876
32877         * tests/test-version-etc.sh: Don't fail on different
32878         project/version.  Don't fail on CRLF differences.  Rewrite to use
32879         multiple -e instead of multiple sed forks, suggested by Eric Blake
32880         <ebb9@byu.net>.
32881         * tests/test-argp-version-etc-1.sh: Likewise.
32882
32883 2009-08-13  Simon Josefsson  <simon@josefsson.org>
32884
32885         * tests/test-version-etc.sh: Don't fail on different
32886         project/version.
32887
32888 2009-08-12  Bruno Haible  <bruno@clisp.org>
32889
32890         Tests for modules 'getopt-posix', 'getopt-gnu'.
32891         * modules/getopt-posix-tests: New file.
32892         * tests/test-getopt.c: New file.
32893         * tests/test-getopt.h: New file.
32894         * tests/test-getopt_long.h: New file.
32895
32896         New modules 'getopt-posix', 'getopt-gnu'.
32897         * modules/getopt-gnu: New file, renamed from modules/getopt.
32898         * modules/getopt-posix: New file.
32899         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
32900         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
32901         (gl_GETOPT): Remove macro.
32902         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
32903         Disable the test against BSD systems that declare optreset. Test
32904         against mingw bug. Test against lack of support of optional arguments
32905         on many platforms.
32906         * doc/glibc-headers/getopt.texi: Update module name and list of
32907         relevant platforms.
32908         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
32909         'getopt-gnu' and more portability problems.
32910         * NEWS: Mention the changes.
32911
32912 2009-08-12  Bruno Haible  <bruno@clisp.org>
32913
32914         Ensure that optarg etc. get declared by <unistd.h>.
32915         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
32916         AC_USE_SYSTEM_EXTENSIONS.
32917         * modules/getopt (Depends-on): Add 'extensions'.
32918
32919 2009-08-12  Bruno Haible  <bruno@clisp.org>
32920
32921         Avoid test link errors.
32922         * modules/pipe-filter-ii-tests (Makefile.am): Define
32923         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
32924         * modules/pipe-filter-gi-tests (Makefile.am): Define
32925         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
32926         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
32927
32928 2009-08-12  Bruno Haible  <bruno@clisp.org>
32929
32930         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
32931         gl_GETOPT_SUBSTITUTE before.
32932         (gl_GETOPT): Use it.
32933         * m4/argp.m4 (gl_ARGP): Update.
32934         Reported by Sergey Poznyakoff.
32935
32936         * m4/getopt.m4: Reorder macros.
32937         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
32938         (gl_GETOPT_SUBSTITUTE): Remove macro.
32939
32940 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32941
32942         Minor improvement in gitlog-to-changelog
32943
32944         * build-aux/gitlog-to-changelog: New option `--format' makes
32945         output format string configurable.
32946
32947 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32948
32949         Optimize exclude: use hash tables for non-wildcard patterns.
32950
32951         * lib/exclude.c: Include hash.h and mbuiter.h
32952         (struct exclude_pattern, exclude_segment): New data types.
32953         (struct exclude): Rewrite.
32954         (fnmatch_pattern_has_wildcards): New function.
32955         (new_exclude_segment, free_exclude_segment): New functions.
32956         (excluded_file_pattern_p, excluded_file_name_p): New functions.
32957         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
32958         * lib/exclude.h (is_fnmatch_pattern): New prototype.
32959         * modules/exclude: Depend on hash and mbuiter.
32960
32961         * modules/exclude-tests: New file.
32962         * tests/test-exclude.c: New file.
32963         * tests/test-exclude1.sh: New file.
32964         * tests/test-exclude2.sh: New file.
32965         * tests/test-exclude3.sh: New file.
32966         * tests/test-exclude4.sh: New file.
32967         * tests/test-exclude5.sh: New file.
32968         * tests/test-exclude6.sh: New file.
32969         * tests/test-exclude7.sh: New file.
32970
32971 2009-08-12  Bruno Haible  <bruno@clisp.org>
32972
32973         Ensure that getopt() gets declared by <unistd.h>.
32974         * lib/unistd.in.h: Conditionally include getopt.h.
32975         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
32976         Set GNULIB_UNISTD_H_GETOPT.
32977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32978         GNULIB_UNISTD_H_GETOPT.
32979         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
32980
32981 2009-08-12  Bruno Haible  <bruno@clisp.org>
32982
32983         Clarify logic.
32984         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
32985         gl_replace_getopt instead of GETOPT_H.
32986
32987 2009-08-12  Bruno Haible  <bruno@clisp.org>
32988
32989         * m4/getopt.m4: Add comments.
32990
32991 2009-08-12  Bruno Haible  <bruno@clisp.org>
32992
32993         Disable multithread support by default on Cygwin 1.5.x.
32994         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
32995         set gl_use_threads=no if not specified otherwise.
32996
32997 2009-08-11  Bruno Haible  <bruno@clisp.org>
32998
32999         Avoid compilation error on NetBSD 5.0.
33000         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
33001         * tests/test-stdio.c: Likewise.
33002         * tests/test-stdlib.c: Likewise.
33003         * tests/test-string.c: Likewise.
33004         * tests/test-unistd.c: Likewise.
33005         Reported by Greg Troxel <gdt@ir.bbn.com>
33006         at <https://savannah.gnu.org/support/?106973>.
33007
33008 2009-08-11  Bruno Haible  <bruno@clisp.org>
33009
33010         * modules/dup2-tests (Depends-on): Remove close.
33011
33012         Undo 2009-07-19 commit.
33013         * modules/acl-tests (Depends-on): Remove close.
33014         * modules/binary-io-tests (Depends-on): Likewise.
33015         * modules/closein-tests (Depends-on): Likewise.
33016         * modules/flock-tests (Depends-on): Likewise.
33017         * modules/fsync-tests (Depends-on): Likewise.
33018         * modules/lseek-tests (Depends-on): Likewise.
33019         * modules/pipe-tests (Depends-on): Likewise.
33020         * modules/posix_spawn-tests (Depends-on): Likewise.
33021         * modules/posix_spawnp-tests (Depends-on): Likewise.
33022         * modules/stat-time-tests (Depends-on): Likewise.
33023         * modules/yesno-tests (Depends-on): Likewise.
33024
33025 2009-08-10  Bruno Haible  <bruno@clisp.org>
33026
33027         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
33028
33029 2009-08-10  Bruno Haible  <bruno@clisp.org>
33030
33031         Fix a gcc warning.
33032         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
33033
33034 2009-08-10  Bruno Haible  <bruno@clisp.org>
33035
33036         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
33037         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
33038         not only the first time.
33039         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
33040         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
33041         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
33042         is 1, not only the the first time.
33043
33044 2009-08-10  Bruno Haible  <bruno@clisp.org>
33045
33046         Make it possible to use module 'gethostname' without module 'close'.
33047         * lib/unistd.in.h (close): Evoke a link error only if
33048         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33049         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33050         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33051         * modules/unistd (Makefile.am): Substitute
33052         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33053         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
33054         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
33055         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33056         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33057         * modules/sys_ioctl (Makefile.am): Substitute
33058         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33059         * modules/socket (configure.ac): On native Windows, set
33060         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
33061         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
33062         Reported by Sam Steingold <sds@gnu.org>.
33063
33064 2009-08-10  Bruno Haible  <bruno@clisp.org>
33065
33066         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
33067         * modules/ioctl (configure.ac): Likewise.
33068
33069 2009-08-10  Bruno Haible  <bruno@clisp.org>
33070
33071         Avoid collision between gnulib wrapper and libintl wrapper.
33072         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
33073         already defined in intl/printf.c.
33074         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
33075         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
33076
33077 2009-08-09  Bruno Haible  <bruno@clisp.org>
33078
33079         Make <sys/select.h> really self-contained, also on Solaris 10.
33080         * lib/sys_select.in.h: Include <string.h>.
33081         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
33082         Solaris 10 problem.
33083         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
33084         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
33085         Reported by Jim Meyering.
33086
33087 2009-08-09  Bruno Haible  <bruno@clisp.org>
33088
33089         Avoid warnings from 'aclocal' that are due to a use of macro name
33090         AM_XGETTEXT_OPTION that is not defined in automake.
33091         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
33092         automake.
33093         * modules/error (configure.ac): Likewise.
33094         * modules/propername (configure.ac): Likewise.
33095         * modules/vasprintf (configure.ac): Likewise.
33096         * modules/verror (configure.ac): Likewise.
33097         * modules/xprintf (configure.ac): Likewise.
33098         * modules/xvasprintf (configure.ac): Likewise.
33099
33100 2009-08-08  Bruno Haible  <bruno@clisp.org>
33101
33102         Avoid compilation error in C++ mode.
33103         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
33104         Reported by Sam Steingold <sds@gnu.org>.
33105
33106 2009-08-08  Bruno Haible  <bruno@clisp.org>
33107
33108         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
33109         for the various Unix platforms.
33110         * doc/posix-headers/limits.texi: Update platforms list regarding
33111         HOST_NAME_MAX.
33112         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
33113
33114 2009-08-07  Jim Meyering  <meyering@redhat.com>
33115
33116         selinux-at: fix typo in a comment
33117         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
33118         Spotted by Paolo Bonzini.
33119
33120         selinux-at: remove redundant m4 code, add documentation
33121         * modules/selinux-at (configure.ac): Remove redundant code.
33122         LIB_SELINUX is already set via the dependent module, selinux-h.
33123         (Include): Add quotes around selinux-at.h.
33124         * lib/selinux-at.h: Add documentation.
33125         Reported by Bruno Haible in
33126         http://marc.info/?l=gnulib-bug&m=124958988300749
33127
33128 2009-08-07  Bruno Haible  <bruno@clisp.org>
33129
33130         Avoid link error on MacOS X 10.3 and 10.4.
33131         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
33132         on non-ELF systems.
33133         * lib/argp-pv.c (argp_program_version): Likewise.
33134         Reported by Simon Josefsson.
33135
33136 2009-08-07  Simon Josefsson  <simon@josefsson.org>
33137
33138         * tests/test-version-etc.sh: Use $EXEEXT.
33139
33140 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
33141
33142         update-copyright: update documentation to point to maint.mk
33143         * build-aux/update-copyright: Here.
33144
33145 2009-08-06  Jim Meyering  <meyering@redhat.com>
33146
33147         maint.mk: support update-copyright-local
33148         * top/maint.mk (update-copyright-local): Define place-holder.
33149         (update-copyright): Depend on $(update-copyright-local).
33150
33151 2009-08-06  Jim Meyering  <meyering@redhat.com>
33152
33153         selinux-at: new module
33154         Initially written for coreutils, this module will soon be
33155         used by findutils, too.
33156         * MODULES.html.sh [Misc]: Add selinux-at.
33157         * lib/selinux-at.h: New file, from coreutils.
33158         * lib/selinux-at.c: Likewise.
33159         * modules/selinux-at: Likewise.
33160         (License): Change from LGPL to GPL, since it depends
33161         on the GPL'd openat module.
33162
33163         doc: update README
33164         * README: Remove references to cogito.
33165         Remove cvs-repo-updating instructions from 2007.
33166         Don't imply that CVS is better if you have limited disk space.
33167
33168 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33169
33170         update-copyright: support C-style comments
33171         * build-aux/update-copyright: Implement and document.
33172         * tests/test-update-copyright.sh: Test.
33173
33174 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33175
33176         update-copyright: support omitted "(C)"
33177         * build-aux/update-copyright: Implement and document.  Also,
33178         allow variable whitespace before "(C)".
33179         * tests/test-update-copyright.sh: Test.
33180
33181 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33182
33183         update-copyright: don't trip on non-FSF copyright statements
33184         * build-aux/update-copyright: Fix so that the first correctly
33185         formatted FSF copyright statement is recognized no matter what
33186         appears before it.  Update documentation.
33187         * tests/test-update-copyright.sh: Test that.
33188
33189 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33190
33191         update-copyright: clean up code a little
33192         * build-aux/update-copyright: Append "_re" to the name of any
33193         variable holding a regular expression.
33194         Replace "old" and "new" with "stmt" in variable names.
33195         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
33196         handled correctly.
33197         Format code more consistently.
33198
33199 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
33200
33201         update-copyright-tests: improve portability
33202         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
33203         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
33204
33205 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33206
33207         update-copyright: support @copyright{} and &copy;
33208         * build-aux/update-copyright: Implement and document.
33209         * tests/test-update-copyright.sh: Test.
33210
33211 2009-08-04  Jim Meyering  <meyering@redhat.com>
33212
33213         update-copyright-tests: correctly test EOL=\r\n handling
33214         * tests/test-update-copyright.sh: Put \r at the end of some lines
33215         for the dos-eol tests.  Based on a patch by Joel E. Denny.
33216
33217         maint.mk: make update-copyright exclusion list more configurable
33218         * top/maint.mk (update-copyright): Default to excluding COPYING,
33219         but allow an override, in case someone does want to update that file.
33220
33221         maint.mk: don't update copyright date in COPYING
33222         * top/maint.mk (update-copyright): Exclude COPYING.
33223
33224         maint.mk: add a copyright-updating rule
33225         * top/maint.mk (update-copyright): New rule.
33226         Derived from coreutils/Makefile.am.
33227
33228         update-copyright: rename some variables
33229         * build-aux/update-copyright: Rename a few variables for clarity.
33230         Tweak syntax.  List Joel E. Denny as coauthor.
33231
33232 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
33233
33234         update-copyright: fix bug for 2-digit last year and add tests
33235         * build-aux/update-copyright: Fix bug.
33236         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
33237         specified.
33238         * modules/update-copyright-tests: New
33239         * tests/test-update-copyright.sh: New.
33240
33241 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33242
33243         update-copyright: handle leading tabs in line prefix
33244         * build-aux/update-copyright: Count leading tabs as 8 spaces
33245         when computing margin.  This helps with the formatting of
33246         ChangeLogs, for example.
33247         Fix documentation a little.
33248
33249 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33250
33251         update-copyright: support EOL=\r\n
33252         * build-aux/update-copyright: Implement that.
33253
33254 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
33255
33256         update-copyright: automatically format copyright statements
33257         * build-aux/update-copyright: Implement that.
33258         Also, be a little more predictable and safer by always failing
33259         when the full copyright format is not perfectly recognized as an
33260         unbroken whole.  Discussed at
33261         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
33262         Rewrite documentation.
33263
33264 2009-08-03  Bruno Haible  <bruno@clisp.org>
33265
33266         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
33267
33268 2009-08-02  Bruno Haible  <bruno@clisp.org>
33269
33270         Tests for module 'uname'.
33271         * modules/uname-tests: New file.
33272         * tests/test-uname.c: New file.
33273
33274         New module 'uname'.
33275         * lib/uname.c: New file.
33276         * m4/uname.m4: New file.
33277         * modules/uname: New file.
33278         * doc/posix-functions/uname.texi: Mention the new module.
33279
33280 2009-08-02  Bruno Haible  <bruno@clisp.org>
33281
33282         Tests for module 'sys_utsname'.
33283         * modules/sys_utsname-tests: New file.
33284         * tests/test-sys_utsname.c: New file.
33285
33286         New module 'sys_utsname'.
33287         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
33288         * m4/sys_utsname_h.m4: New file.
33289         * modules/sys_utsname: New file.
33290         * doc/posix-headers/sys_utsname.texi: Mention the new module.
33291
33292 2009-08-02  Bruno Haible  <bruno@clisp.org>
33293
33294         Implicitly initialize the sockets library.
33295         * lib/gethostname.c: Include sockets.h.
33296         (rpl_gethostname): Invoke gl_sockets_startup.
33297         * lib/socket.c: Include sockets.h.
33298         (rpl_socket): Invoke gl_sockets_startup.
33299         * modules/gethostname (Depends-on): Add sockets.
33300         * modules/socket (Depends-on): Likewise.
33301         * tests/test-poll.c: Don't include sockets.h.
33302         (main): Don't invoke gl_sockets_startup.
33303         * tests/test-select.c: Don't include sockets.h.
33304         (main): Don't invoke gl_sockets_startup.
33305
33306 2009-08-02  Bruno Haible  <bruno@clisp.org>
33307
33308         Allow multiple calls to gl_sockets_startup.
33309         * lib/sockets.c (initialized_sockets_version): New variable.
33310         (gl_sockets_startup): Do nothing if already called for this or a higher
33311         version.
33312         (gl_sockets_cleanup): Reset initialized_sockets_version.
33313
33314 2009-08-03  Simon Josefsson  <simon@josefsson.org>
33315
33316         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
33317         different project/version.
33318
33319 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
33320             Bruno Haible  <bruno@clisp.org>
33321
33322         Tests for module 'pipe-filter-gi'.
33323         * modules/pipe-filter-gi-tests: New file.
33324         * tests/test-pipe-filter-gi1.sh: New file.
33325         * tests/test-pipe-filter-gi1.c: New file.
33326         * tests/test-pipe-filter-gi2.sh: New file.
33327         * tests/test-pipe-filter-gi2-main.c: New file.
33328         * tests/test-pipe-filter-gi2-child.c: New file.
33329
33330         New module 'pipe-filter-gi'.
33331         * lib/pipe-filter-gi.c: New file.
33332         * modules/pipe-filter-gi: New file.
33333
33334 2009-08-02  Bruno Haible  <bruno@clisp.org>
33335             Paolo Bonzini  <bonzini@gnu.org>
33336
33337         Tests for module 'pipe-filter-ii'.
33338         * modules/pipe-filter-ii-tests: New file.
33339         * tests/test-pipe-filter-ii1.sh: New file.
33340         * tests/test-pipe-filter-ii1.c: New file.
33341         * tests/test-pipe-filter-ii2.sh: New file.
33342         * tests/test-pipe-filter-ii2-main.c: New file.
33343         * tests/test-pipe-filter-ii2-child.c: New file.
33344
33345         New module 'pipe-filter-ii'.
33346         * lib/pipe-filter.h: New file.
33347         * lib/pipe-filter-ii.c: New file.
33348         * lib/pipe-filter-aux.h: New file.
33349         * modules/pipe-filter-ii: New file.
33350
33351 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33352
33353         * lib/gc-libgcrypt.c: Change copyright to FSF.
33354         * lib/gc-gnulib.c: Likewise.
33355
33356 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
33357
33358         * lib/gethostname.c: Include limits.h.
33359
33360 2009-08-02  Simon Josefsson  <simon@josefsson.org>
33361             Bruno Haible  <bruno@clisp.org>
33362
33363         Ensure HOST_NAME_MAX as part of the gethostname module.
33364         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
33365         define also HOST_NAME_MAX.
33366         * tests/test-gethostname.c: Include <limits.h>.
33367         (main): Check also HOST_NAME_MAX.
33368         * doc/posix-headers/limits.texi: Document the mingw problem.
33369
33370 2009-08-02  Bruno Haible  <bruno@clisp.org>
33371
33372         * lib/gethostname.c (gethostname): Fix handling of large len argument.
33373         Add comments.
33374
33375 2009-03-31  Simon Josefsson  <simon@josefsson.org>
33376
33377         * lib/gethostname.c: Add Windows wrapper.
33378         * m4/gethostname.m4: Look for gethostname in -lws2_32.
33379         * modules/gethostname: Depend on sys_socket & errno, for also
33380         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
33381         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
33382
33383 2009-07-31  Jim Meyering  <meyering@redhat.com>
33384
33385         getloadavg: fix symbol name in comment
33386         * lib/getloadavg.c: Correct a typo I introduced when adding
33387         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
33388         Matt Kraai spotted the problem.
33389
33390 2009-07-29  Matt Kraai  <mkraai@beckman.com>
33391
33392         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
33393         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
33394         code also if ! defined N_NAME_POINTER.
33395         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
33396         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
33397         but the n_name member is a 12-byte array.
33398
33399 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
33400
33401         update-copyright: generalize comment handling
33402         * build-aux/update-copyright: Handle copyright statements
33403         within more comment styles.
33404         Document usage.
33405         Report any file with an external copyright holder or parse failure.
33406
33407 2009-07-29  Jim Meyering  <meyering@redhat.com>
33408
33409         mktime: correct setting of REPLACE_MKTIME
33410         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
33411
33412         update-copyright: new module
33413         * modules/update-copyright: New file.
33414         * build-aux/update-copyright: New file.
33415         * MODULES.html.sh (maint+release support): Add update-copyright.
33416
33417 2009-07-27  Bruno Haible  <bruno@clisp.org>
33418
33419         Fix compilation error when <ctime> is used and mktime is replaced.
33420         * lib/time.in.h (mktime): New declaration.
33421         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
33422         REPLACE_MKTIME instead of defining mktime in config.h.
33423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
33424         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
33425         Reported by Ross McFarland <rwmcfa1@neces.com>.
33426
33427 2009-07-27  Bruno Haible  <bruno@clisp.org>
33428
33429         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
33430         Reported by Matt Kraai <mkraai@beckman.com>.
33431
33432 2009-07-25  Jim Meyering  <meyering@redhat.com>
33433
33434         maint.mk: avoid warnings about missing files
33435         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
33436         diagnostic when .prev-version does not exist.
33437         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
33438         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
33439         nonexistent cfg.mk.
33440         Suggestions from Simon Josefsson.
33441
33442 2009-07-25  Bruno Haible  <bruno@clisp.org>
33443
33444         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
33445         defined as macros. Needed on QNX 6.4.1.
33446         Reported by Matt Kraai <mkraai@beckman.com>.
33447
33448 2009-07-23  Jim Meyering  <meyering@redhat.com>
33449
33450         maint.mk: invoke "make dist" with a working value of XZ_OPT
33451         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
33452
33453 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
33454
33455         Make fseeko.c compile on QNX.
33456         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
33457
33458 2009-07-22  Peter Simons  <simons@cryp.to>
33459
33460         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
33461         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
33462         * lib/md4.h: Likewise.
33463         * lib/md5.h: Likewise.
33464         * lib/sha1.h: Likewise.
33465         * lib/sha256.h: Likewise.
33466         * lib/sha512.h: Likewise.
33467
33468         tests-sha1: don't assign literal string to 'char *' variable
33469         * tests/test-sha1.c (main): Declare locals with "const" to match
33470         attributes of the right hand side.
33471
33472 2009-07-21  Eric Blake  <ebb9@byu.net>
33473
33474         dup2: fix more mingw problems
33475         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
33476         fd to itself.
33477         * doc/posix-functions/dup2.texi (dup2): Document the bug.
33478         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
33479         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
33480         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
33481         care of mingw bugs.
33482
33483 2009-07-21  Jim Meyering  <meyering@redhat.com>
33484
33485         vc-list-files: avoid failure when /bin/sh is dash
33486         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
33487         On some Debian based systems, /bin/sh is a symlink to dash, and running
33488         this command would omit the "/" following each 'tests' prefix:
33489           dash -x build-aux/vc-list-files -C . tests
33490         That is because bash and dash work differently:
33491           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
33492           bash ok
33493           dash odd
33494
33495 2009-07-21  Eric Blake  <ebb9@byu.net>
33496
33497         dup2-tests: test previous patch
33498         * modules/dup2-tests: New file.
33499         * tests/test-dup2.c: Likewise.
33500         * tests/test-open.c (main): Avoid unspecified behavior.
33501         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
33502         test.
33503
33504         dup2: work around mingw and cygwin 1.5 bug
33505         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
33506         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
33507         * modules/unistd (Makefile.am): Substitute it.
33508         * lib/unistd.in.h (dup2): Declare the replacement.
33509         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
33510         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
33511         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
33512         * modules/execute (Depends-on): Add dup2.
33513         * modules/fseterr (Depends-on): Likewise.
33514         * modules/pipe (Depends-on): Likewise.
33515         * modules/posix_spawn-internal (Depends-on): Likewise.
33516
33517 2009-07-21  Bruno Haible  <bruno@clisp.org>
33518
33519         * modules/.gitattributes: New file.
33520
33521 2009-07-20  Bruno Haible  <bruno@clisp.org>
33522
33523         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
33524         (main): Use it.
33525
33526 2009-07-20  Eric Blake  <ebb9@byu.net>
33527
33528         test-pipe: make a bit more robust.
33529         * tests/test-pipe.c (myerr): Allow error messages regardless of
33530         what we do to stderr.
33531         (test_pipe): Rearrange to avoid deadlock.
33532         (child_main): Try a larger read, to ensure we avoided deadlock.
33533         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
33534         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
33535         if misused.
33536
33537 2009-07-19  Jim Meyering  <meyering@redhat.com>
33538
33539         fts: avoid false-positive cycle-detection
33540         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
33541         for each new command line argument.
33542
33543 2009-07-19  Bruno Haible  <bruno@clisp.org>
33544
33545         Fix build error on mingw with the modules sys_select and unistd.
33546         * modules/acl-tests (Depends-on): Add close.
33547         * modules/binary-io-tests (Depends-on): Likewise.
33548         * modules/closein-tests (Depends-on): Likewise.
33549         * modules/flock-tests (Depends-on): Likewise.
33550         * modules/fsync-tests (Depends-on): Likewise.
33551         * modules/lseek-tests (Depends-on): Likewise.
33552         * modules/pipe-tests (Depends-on): Likewise.
33553         * modules/posix_spawn-tests (Depends-on): Likewise.
33554         * modules/posix_spawnp-tests (Depends-on): Likewise.
33555         * modules/stat-time-tests (Depends-on): Likewise.
33556         * modules/yesno-tests (Depends-on): Likewise.
33557
33558 2009-07-19  Bruno Haible  <bruno@clisp.org>
33559
33560         Unify conditionals.
33561         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
33562         macros, not at the compiler macros.
33563         * lib/pipe.c: Likewise.
33564         * lib/execute.c: Likewise.
33565         * lib/spawni.c: Likewise.
33566
33567 2009-07-19  Bruno Haible  <bruno@clisp.org>
33568
33569         Fix handling of closed stdin/stdout/stderr on mingw.
33570         * lib/w32spawn.h: Include unistd.h.
33571         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
33572         file descriptor with O_NOINHERIT flag.
33573         (fd_safer_noinherit): New function, based on fd-safer.c.
33574         (dup_safer_noinherit): New function, based on dup-safer.c.
33575         (undup_safer_noinherit): New function.
33576         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
33577         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
33578         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
33579         instead of fd_safer.
33580         * tests/test-pipe.c: Include <windows.h>.
33581         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
33582         result.
33583
33584         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
33585         from main.
33586         (test_pipe): Pass an extra argument for disambiguation.
33587         (main): Invoke parent_main or child_main.
33588
33589         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
33590         consistently.
33591
33592 2009-07-18  Eric Blake  <ebb9@byu.net>
33593
33594         test-pipe: fix mingw build
33595         * tests/test-pipe.c (main): Avoid fcntl on mingw.
33596
33597 2009-07-18  Bruno Haible  <bruno@clisp.org>
33598
33599         * modules/pipe-tests (Makefile.am): Fix typo.
33600
33601 2009-07-18  Eric Blake  <ebb9@byu.net>
33602
33603         error: fix mingw build
33604         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
33605         Reported by Bruno Haible.
33606
33607         error: avoid undefined use of stdout
33608         * lib/error.c (error, error_at_line): Check that fd 1 is open
33609         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
33610         is handling faults and the close_stdout module wants to report the
33611         detection of closed stdout as an error.
33612
33613 2009-07-17  Eric Blake  <ebb9@byu.net>
33614
33615         pipe: be robust in face of closed fds
33616         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
33617         should cause child to misbehave.
33618         * modules/pipe-tests: New module.
33619         * tests/test-pipe.c: New file.
33620         * tests/test-pipe.sh: New file.
33621         Reported by Akim Demaille.
33622
33623 2009-07-14  Bruno Haible  <bruno@clisp.org>
33624
33625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
33626         Reported by anonymous kc.
33627
33628 2009-07-07  Jim Meyering  <meyering@redhat.com>
33629
33630         maint.mk: don't look for translatable strings in *.m4 or *.mk
33631         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
33632         when searching for translatable strings.
33633
33634 2009-07-05  Jim Meyering  <meyering@redhat.com>
33635
33636         remove superfluous parentheses in STREQ definition
33637         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
33638         * lib/getugroups.c (STREQ): Likewise.
33639         * lib/fnmatch.c (STREQ): Likewise.
33640         Spotted by Bruno Haible.
33641
33642 2009-07-04  Jim Meyering  <meyering@redhat.com>
33643
33644         argv-iter: new module
33645         * MODULES.html.sh: Add argv-iter.
33646         * lib/argv-iter.c, lib/argv-iter.h: New files.
33647         * modules/argv-iter: New file.
33648         * modules/argv-iter-tests: New file.
33649         * tests/test-argv-iter.c: Test it.
33650
33651 2009-07-04  Bruno Haible  <bruno@clisp.org>
33652
33653         Fix assertion.
33654         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
33655         contains more exact copies of a given entry than file2, leave the extra
33656         copies unpaired rather than aborting.
33657         Reported by Eric Blake.
33658
33659 2009-07-02  Bruno Haible  <bruno@clisp.org>
33660
33661         Speedup git-merge-changelog for git cherry-pick.
33662         * lib/git-merge-changelog.c (struct entries_mapping): New type.
33663         (entries_mapping_get): New function, extracted from compute_mapping.
33664         (entries_mapping_reverse_get): New function.
33665         (compute_mapping): Add a 'full' argument. Return the result in a
33666         'struct entries_mapping'.
33667         (main): Update. Access the mappings through entries_mapping_get.
33668         Reported by Eric Blake.
33669
33670 2009-07-02  Bruno Haible  <bruno@clisp.org>
33671
33672         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
33673         best_i.
33674
33675 2009-07-02  Bruno Haible  <bruno@clisp.org>
33676
33677         Speed up approximate search for matching ChangeLog entries.
33678         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
33679         argument. Call fstrcmp_bounded instead of fstrcmp.
33680         (compute_mapping, try_split_merged_entry, main): Update callers.
33681
33682 2009-07-02  Bruno Haible  <bruno@clisp.org>
33683
33684         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
33685
33686 2009-06-30  Bruno Haible  <bruno@clisp.org>
33687
33688         Reduce the number of uc_is_cased calls.
33689         * lib/unicase.h (casing_suffix_context_t): Add
33690         'first_char_except_ignorable' field.
33691         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
33692         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
33693         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
33694         Update initializer.
33695         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
33696         case-ignorable characters.
33697         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
33698         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
33699         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
33700         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
33701         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
33702
33703 2009-06-30  Bruno Haible  <bruno@clisp.org>
33704
33705         Tests for module 'unicase/ignorable'.
33706         * modules/unicase/ignorable-tests: New file.
33707         * tests/unicase/test-ignorable.c: New file, generated by
33708         gen-uni-tables.
33709
33710         Tests for module 'unicase/cased'.
33711         * modules/unicase/cased-tests: New file.
33712         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
33713         * tests/unicase/test-predicate-part1.h: New file, derived from
33714         tests/unictype/test-predicate-part1.h.
33715         * tests/unicase/test-predicate-part2.h: New file, same as
33716         tests/unictype/test-predicate-part2.h.
33717
33718         Fix evaluation of "Before C" condition of FINAL_SIGMA.
33719         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
33720         (output_casing_properties): New function.
33721         (main): Call it.
33722         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
33723         * lib/unicase/cased.c: Include unictype/bitmap.h.
33724         (uc_is_cased): Define through a bitmap lookup.
33725         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
33726         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
33727         (uc_is_case_ignorable): Define through a bitmap lookup.
33728         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
33729         lib/unictype/bitmap.h.
33730         (Depends-on): Add inline. Clean up.
33731         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
33732         lib/unictype/bitmap.h.
33733         (Depends-on): Add inline. Clean up.
33734         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
33735         recognition.
33736         * tests/unicase/test-u16-tolower.c (main): Likewise.
33737         * tests/unicase/test-u32-tolower.c (main): Likewise.
33738
33739 2009-06-30  Bruno Haible  <bruno@clisp.org>
33740
33741         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
33742         * lib/unicase/u16-casemap.c: Likewise.
33743         * lib/unicase/u32-casemap.c: Likewise.
33744
33745 2009-06-29  Bruno Haible  <bruno@clisp.org>
33746
33747         Define u32_casefold as a wrapper around u32_ct_casefold.
33748         * lib/unicase/u32-casefold.c: Update.
33749         * modules/unicase/u32-casefold (Depends-on): Add
33750         unicase/u32-ct-casefold, unicase/empty-prefix-context,
33751         unicase/empty-suffix-context. Clean up.
33752
33753         Define u16_casefold as a wrapper around u16_ct_casefold.
33754         * lib/unicase/u16-casefold.c: Update.
33755         * modules/unicase/u16-casefold (Depends-on): Add
33756         unicase/u16-ct-casefold, unicase/empty-prefix-context,
33757         unicase/empty-suffix-context. Clean up.
33758
33759         Define u8_casefold as a wrapper around u8_ct_casefold.
33760         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
33761         * lib/unicase/u8-casefold.c: Update.
33762         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
33763         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33764
33765         Define u32_totitle as a wrapper around u32_ct_totitle.
33766         * lib/unicase/u32-totitle.c: Update.
33767         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
33768         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33769
33770         Define u16_totitle as a wrapper around u16_ct_totitle.
33771         * lib/unicase/u16-totitle.c: Update.
33772         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
33773         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33774
33775         Define u8_totitle as a wrapper around u8_ct_totitle.
33776         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
33777         functions.
33778         (FUNC): Delegate to U_CT_TOTITLE.
33779         * lib/unicase/u8-totitle.c: Update.
33780         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
33781         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
33782
33783         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
33784         invocation.
33785         * modules/unicase/u32-tolower (Depends-on): Add
33786         unicase/empty-prefix-context, unicase/empty-suffix-context.
33787
33788         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
33789         invocation.
33790         * modules/unicase/u16-tolower (Depends-on): Add
33791         unicase/empty-prefix-context, unicase/empty-suffix-context.
33792
33793         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
33794         * modules/unicase/u8-tolower (Depends-on): Add
33795         unicase/empty-prefix-context, unicase/empty-suffix-context.
33796
33797         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
33798         invocation.
33799         * modules/unicase/u32-toupper (Depends-on): Add
33800         unicase/empty-prefix-context, unicase/empty-suffix-context.
33801
33802         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
33803         invocation.
33804         * modules/unicase/u16-toupper (Depends-on): Add
33805         unicase/empty-prefix-context, unicase/empty-suffix-context.
33806
33807         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
33808         * modules/unicase/u8-toupper (Depends-on): Add
33809         unicase/empty-prefix-context, unicase/empty-suffix-context.
33810
33811         New module 'unicase/u32-ct-casefold'.
33812         * lib/unicase/u32-ct-casefold.c: New file.
33813         * modules/unicase/u32-ct-casefold: New file.
33814
33815         New module 'unicase/u16-ct-casefold'.
33816         * lib/unicase/u16-ct-casefold.c: New file.
33817         * modules/unicase/u16-ct-casefold: New file.
33818
33819         New module 'unicase/u8-ct-casefold'.
33820         * lib/unicase/u8-ct-casefold.c: New file.
33821         * lib/unicase/u-ct-casefold.h: New file, derived from
33822         lib/unicase/u-casefold.h.
33823         * modules/unicase/u8-ct-casefold: New file.
33824
33825         New module 'unicase/u32-ct-totitle'.
33826         * lib/unicase/u32-ct-totitle.c: New file.
33827         * modules/unicase/u32-ct-totitle: New file.
33828
33829         New module 'unicase/u16-ct-totitle'.
33830         * lib/unicase/u16-ct-totitle.c: New file.
33831         * modules/unicase/u16-ct-totitle: New file.
33832
33833         New module 'unicase/u8-ct-totitle'.
33834         * lib/unicase/u8-ct-totitle.c: New file.
33835         * lib/unicase/u-ct-totitle.h: New file, derived from
33836         lib/unicase/u-totitle.h.
33837         * modules/unicase/u8-ct-totitle: New file.
33838
33839         New module 'unicase/u32-ct-tolower'.
33840         * lib/unicase/u32-ct-tolower.c: New file.
33841         * modules/unicase/u32-ct-tolower: New file.
33842
33843         New module 'unicase/u16-ct-tolower'.
33844         * lib/unicase/u16-ct-tolower.c: New file.
33845         * modules/unicase/u16-ct-tolower: New file.
33846
33847         New module 'unicase/u8-ct-tolower'.
33848         * lib/unicase/u8-ct-tolower.c: New file.
33849         * modules/unicase/u8-ct-tolower: New file.
33850
33851         New module 'unicase/u32-ct-toupper'.
33852         * lib/unicase/u32-ct-toupper.c: New file.
33853         * modules/unicase/u32-ct-toupper: New file.
33854
33855         New module 'unicase/u16-ct-toupper'.
33856         * lib/unicase/u16-ct-toupper.c: New file.
33857         * modules/unicase/u16-ct-toupper: New file.
33858
33859         New module 'unicase/u8-ct-toupper'.
33860         * lib/unicase/u8-ct-toupper.c: New file.
33861         * modules/unicase/u8-ct-toupper: New file.
33862
33863         Add context arguments to u*_casemap functions.
33864         * lib/unicase/unicasemap.h: Include unicase.h.
33865         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
33866         suffix_context arguments.
33867         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
33868         functions.
33869         (FUNC): Add prefix_context and suffix_context arguments. Use
33870         uc_is_cased and uc_is_case_ignorable.
33871         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
33872         * lib/unicase/u16-casemap.c: Likewise.
33873         * lib/unicase/u32-casemap.c: Likewise.
33874         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
33875         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33876         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
33877         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33878         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
33879         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
33880
33881         New module 'unicase/u32-suffix-context'.
33882         * lib/unicase/u32-suffix-context.c: New file.
33883         * modules/unicase/u32-suffix-context: New file.
33884
33885         New module 'unicase/u16-suffix-context'.
33886         * lib/unicase/u16-suffix-context.c: New file.
33887         * modules/unicase/u16-suffix-context: New file.
33888
33889         New module 'unicase/u8-suffix-context'.
33890         * lib/unicase/u8-suffix-context.c: New file.
33891         * lib/unicase/u-suffix-context.h: New file.
33892         * modules/unicase/u8-suffix-context: New file.
33893
33894         New module 'unicase/empty-suffix-context'.
33895         * lib/unicase/empty-suffix-context.c: New file.
33896         * modules/unicase/empty-suffix-context: New file.
33897
33898         New module 'unicase/u32-prefix-context'.
33899         * lib/unicase/u32-prefix-context.c: New file.
33900         * modules/unicase/u32-prefix-context: New file.
33901
33902         New module 'unicase/u16-prefix-context'.
33903         * lib/unicase/u16-prefix-context.c: New file.
33904         * modules/unicase/u16-prefix-context: New file.
33905
33906         New module 'unicase/u8-prefix-context'.
33907         * lib/unicase/u8-prefix-context.c: New file.
33908         * lib/unicase/u-prefix-context.h: New file.
33909         * lib/unicase/context.h: New file.
33910         * modules/unicase/u8-prefix-context: New file.
33911
33912         New module 'unicase/empty-prefix-context'.
33913         * lib/unicase/empty-prefix-context.c: New file.
33914         * modules/unicase/empty-prefix-context: New file.
33915
33916         New module 'unicase/ignorable'.
33917         * lib/unicase/ignorable.c: New file.
33918         * modules/unicase/ignorable: New file.
33919
33920         New module 'unicase/cased'.
33921         * lib/unicase/caseprop.h: New file.
33922         * lib/unicase/cased.c: New file.
33923         * modules/unicase/cased: New file.
33924
33925         New functions for case mapping of substrings.
33926         * lib/unicase.h (casing_prefix_context_t): New type.
33927         (unicase_empty_prefix_context): New variable.
33928         (u8_casing_prefix_context, u16_casing_prefix_context,
33929         u32_casing_prefix_context, u8_casing_prefixes_context,
33930         u16_casing_prefixes_context, u32_casing_prefixes_context): New
33931         declarations.
33932         (casing_suffix_context_t): New type.
33933         (unicase_empty_suffix_context): New variable.
33934         (u8_casing_suffix_context, u16_casing_suffix_context,
33935         u32_casing_suffix_context, u8_casing_suffixes_context,
33936         u16_casing_suffixes_context, u32_casing_suffixes_context,
33937         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
33938         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
33939         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
33940         declarations.
33941
33942 2009-06-28  Jim Meyering  <meyering@redhat.com>
33943
33944         boostrap: indent only with spaces
33945         * build-aux/bootstrap: Indent only with spaces, never TABs.
33946
33947         bootstrap: split long lines
33948         * build-aux/bootstrap: Keep line length < 80.
33949
33950         bootstrap: sync from coreutils
33951         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
33952         just as autoreconf does.  Verify a list of prerequisite
33953         package-name,version-number pairs if defined in bootstrap.conf.
33954         Refer to README-prereq, if prerequisites are not satisfied.
33955
33956 2009-06-27  Eric Blake  <ebb9@byu.net>
33957
33958         tests: add test for bogus NULL definition
33959         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
33960         * tests/test-stdlib.c: Likewise.
33961         * tests/test-string.c: Likewise.
33962         * tests/test-locale.c: Likewise.
33963         * tests/test-unistd.c: Likewise.
33964         * modules/stdio-tests (Depends-on): Add verify.
33965         * modules/stdlib-tests (Depends-on): Likewise.
33966         * modules/string-tests (Depends-on): Likewise.
33967         * modules/locale-tests (Depends-on): Likewise.
33968         * modules/unistd-tests (Depends-on): Likewise.
33969
33970 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
33971
33972         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
33973         self-explaining comment.
33974         * m4/selinux-selinux-h: Update serial.
33975         (gl_LIBSELINUX): New macro, adding a warning for missing development
33976         packages to code extracted from...
33977         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
33978         Add warning for missing development packages here, too.
33979
33980 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
33981
33982         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
33983
33984 2009-06-25  Eric Blake  <ebb9@byu.net>
33985
33986         version-etc: fix regression
33987         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
33988         gcc.
33989         (version_etc): Use it, to catch bugs with trailing NULL.
33990         * lib/version-etc.c (version_etc_arn): Delete unused argument.
33991         (version_etc_va): Fix logic bug.
33992         * modules/version-etc-tests: Add test.
33993         * tests/test-version-etc.c: New file.
33994         * tests/test-version-etc.sh: Likewise.
33995
33996 2009-06-25  Sam Steingold  <sds@gnu.org>
33997
33998         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
33999         mbtowc declaration.
34000
34001 2009-06-25  Eric Blake  <ebb9@byu.net>
34002
34003         fpurge: migrate into <stdio.h>
34004         * lib/fpurge.h: Delete...
34005         * lib/stdio.in.h (fpurge): ...and declare here, instead.
34006         * lib/fpurge.c (fpurge): Change declaring header.
34007         * modules/fpurge (Files): Drop deleted file.
34008         (Depends-on): Add stdio.
34009         (configure.ac): Set witness.
34010         * modules/stdio (Makefile.am): Support fpurge macros.
34011         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
34012         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
34013         * lib/fflush.c: Update client.
34014         * tests/test-fpurge.c: Likewise.
34015         * NEWS: Mention the change.
34016
34017 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34018
34019         * lib/argp-version-etc.c (program_authors): Add const
34020         qualifier.
34021         * lib/version-etc.c: Fix typos in the comments.
34022         * modules/argp-version-etc: Depends on version-etc.
34023
34024 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34025
34026         argp-version-etc: new module.
34027
34028         * lib/argp-version-etc.c: New file.
34029         * lib/argp-version-etc.h: New file.
34030         * modules/argp-version-etc: New file.
34031         * modules/argp-version-etc-tests: New file.
34032         * tests/test-argp-version-etc.c: New test.
34033         * tests/test-argp-version-etc-1.sh: New test.
34034
34035 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
34036
34037         Provide additional interfaces and documentation for version-etc
34038         module.
34039
34040         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
34041         interfaces.
34042         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
34043         prototypes.
34044
34045 2009-06-24  Bruno Haible  <bruno@clisp.org>
34046
34047         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
34048         HAVE_LIB${NAME} macro.
34049         Reported by Sam Steingold <sds@gnu.org>.
34050
34051 2009-06-23  Simon Josefsson  <simon@josefsson.org>
34052
34053         * modules/hash-tests (test_hash_LDADD): Link to libintl when
34054         needed.
34055
34056 2009-06-21  Bruno Haible  <bruno@clisp.org>
34057
34058         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
34059         work.
34060         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
34061         together with LIB${NAME}, LTLIB${NAME}.
34062         Reported by Sam Steingold <sds@gnu.org>.
34063
34064 2009-06-20  Jim Meyering  <meyering@redhat.com>
34065
34066         tests: make sc_require_test_exit_idiom more generic
34067         * top/maint.mk (Exit_witness_file): New overridable variable.
34068         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
34069         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
34070
34071 2009-06-19  Jim Meyering  <meyering@redhat.com>
34072
34073         hash: reverse order of src/dst parameters in an internal interface
34074         * lib/hash.c (transfer_entries): Reverse order of parameters to
34075         put DST before SRC.  Adjust callers.
34076
34077         tests: test-hash: avoid wholesale duplication
34078         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
34079         Instead, use a loop and add a single conditional.
34080
34081         tests: test-hash: allow seed selection via a command line argument
34082         * tests/test-hash.c (get_seed): New function.
34083         (main): Use it.
34084
34085 2009-06-19  Eric Blake  <ebb9@byu.net>
34086
34087         hash: avoid memory leak on allocation failure
34088         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
34089         failure.  Factor repeated algorithm...
34090         (transfer_entries): ...into new helper routine.
34091         (hash_delete): React to hash_rehash return value.
34092
34093         hash: reduce memory pressure in hash_rehash no-op case
34094         * lib/hash.c (next_prime): Avoid overflow.
34095         (hash_initialize): Factor bucket size computation...
34096         (compute_bucket_size): ...into new helper function.
34097         (hash_rehash): Use new function and open coding to reduce memory
34098         pressure, and avoid a memory leak in USE_OBSTACK code.
34099         Reported by Jim Meyering.
34100
34101 2009-06-18  Eric Blake  <ebb9@byu.net>
34102
34103         hash: make rotation more obvious
34104         * modules/hash (Depends-on): Add bitrotate and stdint.
34105         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
34106         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
34107         (SIZE_MAX): Rely on headers for definition.
34108         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
34109         (raw_hasher): Use rotr_sz.
34110         Suggested by Jim Meyering.
34111
34112         hash: fix memory leak in last patch
34113         * lib/hash.c (hash_rehash): Avoid memory leak.
34114
34115         hash: avoid no-op rehashing
34116         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
34117
34118         hash: provide default callback functions
34119         * lib/hash.c (raw_hasher, raw_comparator): New functions.
34120         (hash_initialize): Use them as defaults.
34121         * tests/test-hash.c (main): Test this.
34122
34123         hash: minor optimization
34124         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
34125         when possible.
34126         (hash_initialize): Document this promise.
34127         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
34128         * tests/test-hash.c (hash_compare_strings): Test this.
34129
34130 2009-06-18  Bruno Haible  <bruno@clisp.org>
34131
34132         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
34133         going to be replaced anyway.
34134
34135 2009-06-18  Bruno Haible  <bruno@clisp.org>
34136
34137         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
34138         in one place.
34139         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
34140         be replaced anyway.
34141
34142 2009-06-18  Eric Blake  <ebb9@byu.net>
34143
34144         hash: check for resize before insertion
34145         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
34146         threshold before insertion, so that a pathological hash_rehash
34147         that fills every bucket can still trigger another rehash.
34148
34149 2009-06-18  Jim Meyering  <meyering@redhat.com>
34150
34151         hash-tests: add a loop around the small tests
34152         * tests/test-hash.c (main): Repeat small tests with selected
34153         small initial table sizes.
34154
34155 2009-06-17  Eric Blake  <ebb9@byu.net>
34156
34157         hash: minor cleanups
34158         * lib/hash.h (hash_entry): Make opaque, by moving...
34159         * lib/hash.c (hash_entry): ...here.
34160         (hash_insert): Clarify restrictions on what can be inserted.
34161         (hash_get_next): Clarify when it is safe to remove an element
34162         during traversal.
34163         (check_tuning): Skip verification when tuning is known safe.
34164         (hash_initialize): Clarify restrictions on tuning.
34165
34166 2009-06-17  Jim Meyering  <jim@meyering.net>
34167         and Eric Blake  <ebb9@byu.net>
34168
34169         hash-tests: new module
34170         * modules/hash-tests: New file.
34171         * tests/test-hash.c: New file.
34172
34173 2009-06-17  Eric Blake  <ebb9@byu.net>
34174
34175         strstr-simple: document new module
34176         * MODULES.html.sh: Document new module.
34177
34178         strstr, strcasestr: replace on platforms with broken memchr
34179         * modules/strstr: Split into...
34180         * modules/strstr-simple: ...new module that does not care about
34181         performance, but does care about glibc bug.
34182         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
34183         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
34184         if platform memchr is broken, per Debian bug 521737.
34185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
34186         memchr.
34187         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
34188         * doc/posix-functions/strstr.texi (strstr): Document the fix.
34189         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
34190         * modules/mountlist (Depends-on): Add strstr-simple.
34191         * modules/gen-uni-tables (Depends-on): Likewise.
34192         * modules/argz (Depends-on): Add strstr.
34193
34194 2009-06-17  Bruno Haible  <bruno@clisp.org>
34195
34196         * modules/posix_spawn-internal (Depends-on): Add errno.
34197
34198 2009-06-17  Bruno Haible  <bruno@clisp.org>
34199
34200         Define missing ESTALE on Interix 3.5.
34201         * lib/errno.in.h (ESTALE): Assign a value if missing.
34202         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
34203         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
34204         missing.
34205         * doc/posix-headers/errno.texi: Mention the Interix bug.
34206         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
34207
34208 2009-06-15  Eric Blake  <ebb9@byu.net>
34209
34210         memchr, memchr2: add valgrind exception
34211         * lib/memchr.valgrind: New file.
34212         * lib/memchr2.valgrind: New file.
34213         * modules/memchr (Files): Distribute valgrind file.
34214         * modules/memchr2 (Files): Likewise.
34215
34216         docs: memchr is no longer obsolete
34217         * MODULES.html.sh: Move memchr from obsolete to string.h section.
34218         * lib/string.in.h (memchr): Simplify logic.
34219
34220 2009-06-14  Jim Meyering  <meyering@redhat.com>
34221
34222         link-follow: fix the "checking..." message to not mention trailing slash
34223         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
34224         never considered trailing slashes.
34225
34226 2009-06-14  Bruno Haible  <bruno@clisp.org>
34227
34228         * m4/memchr.m4: Mention also the bug on IA-64.
34229         * doc/posix-functions/memchr.texi: Likewise.
34230
34231 2009-06-12  Eric Blake  <ebb9@byu.net>
34232
34233         memchr: detect broken x86_64 and alpha implementations
34234         * modules/memchr-tests (Depends-on): Move mmap detection...
34235         * modules/memchr (Depends-on): ...here.
34236         (configure.ac): Set indicator.
34237         * lib/string.in.h (memchr): Declare replacement.
34238         * modules/string (Makefile.am): Trigger replacement.
34239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
34240         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
34241         bugs.
34242         * doc/posix-functions/memchr.texi (memchr): Document the bug.
34243         * modules/getpagesize (License): Relax license.
34244
34245 2009-06-11  Bruno Haible  <bruno@clisp.org>
34246
34247         * lib/idpriv.h: Add more references.
34248
34249 2009-06-08  Bruno Haible  <bruno@clisp.org>
34250
34251         Tests for module 'idpriv-droptemp'.
34252         * modules/idpriv-droptemp-tests: New file.
34253         * tests/test-idpriv-droptemp.sh: New file.
34254         * tests/test-idpriv-droptemp.su.sh: New file.
34255         * tests/test-idpriv-droptemp.c: New file.
34256
34257         New module 'idpriv-droptemp'.
34258         * lib/idpriv-droptemp.c: New file.
34259         * modules/idpriv-droptemp: New file.
34260
34261 2009-06-08  Bruno Haible  <bruno@clisp.org>
34262
34263         Tests for module 'idpriv-drop'.
34264         * modules/idpriv-drop-tests: New file.
34265         * tests/test-idpriv-drop.sh: New file.
34266         * tests/test-idpriv-drop.su.sh: New file.
34267         * tests/test-idpriv-drop.c: New file.
34268
34269         New module 'idpriv-drop'.
34270         * lib/idpriv.h: New file.
34271         * lib-idpriv-drop.c: New file.
34272         * m4/idpriv.m4: New file.
34273         * modules/idpriv-drop: New file.
34274
34275 2009-06-08  Bruno Haible  <bruno@clisp.org>
34276
34277         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
34278         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
34279         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
34280         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
34281         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
34282         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
34283         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
34284
34285 2009-06-08  Eric Blake  <ebb9@byu.net>
34286
34287         test-strstr: use memory fence, when possible
34288         * tests/test-strstr.c (main): Use memory fence, in order to be
34289         more likely to trigger Debian bug 521737.
34290         * modules/strstr-tests (Files): Pull in additional files.
34291
34292         memchr: no longer obsolete, for wider field testing
34293         * modules/memchr (Status, Notice): Delete, this module is no
34294         longer obsolete.
34295         * modules/vasnprintf (Depends-on): Add memchr.
34296
34297 2009-06-07  Jim Meyering  <meyering@redhat.com>
34298
34299         hash: declare some functions with the warn_unused_result attribute
34300         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
34301
34302 2009-06-07  Bruno Haible  <bruno@clisp.org>
34303
34304         * tests/test-alignof.c: Don't test int64_t if it does not exist.
34305         Reported by Eric Blake.
34306
34307 2009-06-06  Eric Blake  <ebb9@byu.net>
34308
34309         test-alignof: fix typo with long double
34310         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
34311         compiler error.
34312
34313 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
34314
34315         Escape non-texinfo { and }s.
34316         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
34317         markup error.
34318
34319 2009-06-04  Jim Meyering  <meyering@redhat.com>
34320
34321         gitlog-to-changelog: don't infloop on an empty commit log
34322         * build-aux/gitlog-to-changelog: Warn about an empty log message.
34323         Reported by Boris Petersen <transacid@centerim.org>.
34324
34325 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
34326
34327         version-etc: extend for packagers
34328         Add three new configure options, intended for packagers:
34329           --with-packager="packager name"
34330           --with-packager-version="packager-specific version"
34331           --with-packager-bug-reports="packager bug reporting"
34332         An example with coreutils:
34333           $ ./configure \
34334             --with-packager=Gentoo \
34335             --with-packager-bug-report=http://bugs.gentoo.org/ \
34336             --with-packager-version="patchset 1.6"
34337           $ ./src/ls --version | head -n2
34338           ls (GNU coreutils) 7.1-dirty
34339           Packaged by Gentoo (patchset 1.6)
34340         Note that the bug reporting info via --help doesn't show up because
34341         coreutils uses its own custom emit_bug_reporting_address() implementation
34342         in src/system.h.  If it didn't, it'd look like:
34343           $ ./src/ls --help | tail -n4
34344           Report bugs to <bug-coreutils@gnu.org>.
34345           Report Gentoo bugs to <http://bugs.gentoo.org/>.
34346           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
34347           General help using GNU software: <http://www.gnu.org/gethelp/>.
34348         * lib/version-etc.c: Print new information, if provided.
34349         * m4/version-etc.m4: New file.
34350         * modules/version-etc (Files): Add m4/version-etc.m4.
34351         (configure.ac): Add gl_VERSION_ETC.
34352
34353 2009-05-31  Bruno Haible  <bruno@clisp.org>
34354
34355         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
34356         and 'int64_t'.
34357         * modules/alignof-tests (Dependencies): Add stdint.
34358         Reported by Eric Blake.
34359
34360 2009-05-31  Bruno Haible  <bruno@clisp.org>
34361
34362         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
34363         restriction due to compiler bugs.
34364         Reported by Eric Blake.
34365
34366 2009-05-31  Simon Josefsson  <simon@josefsson.org>
34367             Bruno Haible  <bruno@clisp.org>
34368
34369         Fix test-alignof failure.
34370         * lib/alignof.h (alignof_slot): New macro.
34371         (alignof_type): New macro, with the same semantics as the previous
34372         'alignof'.
34373         (alignof): Alias to alignof_slot.
34374         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
34375         check that the results are usable as constant expressions.
34376
34377 2009-05-31  Bruno Haible  <bruno@clisp.org>
34378
34379         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
34380         * tests/test-memchr.c (main): Check that memchr does not read past the
34381         first occurrence of the byte.
34382         * tests/test-strstr.c (main): Update comment.
34383         Suggested by Eric Blake.
34384
34385 2009-05-30  Bruno Haible  <bruno@clisp.org>
34386
34387         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
34388         detail how to use dumpbin.
34389         Reported by David Byron <dbyron@dbyron.com>.
34390
34391 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34392
34393         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
34394
34395 2009-06-02  Simon Josefsson  <simon@josefsson.org>
34396
34397         * m4/manywarnings.m4: Add GCC 4.4 warnings.
34398
34399 2009-05-28  Bruno Haible  <bruno@clisp.org>
34400
34401         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
34402         build-aux/ files.
34403
34404 2009-05-28  Simon Josefsson  <simon@josefsson.org>
34405
34406         * gnulib-tool (func_import): Transform license on build-aux/ files too.
34407
34408 2009-05-27  Simon Josefsson  <simon@josefsson.org>
34409
34410         * gnulib-tool (sed_transform_main_lib_file)
34411         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
34412         regexps.
34413
34414 2009-05-26  Simon Josefsson  <simon@josefsson.org>
34415
34416         * tests/test-strstr.c: Add another self-test.
34417         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
34418         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
34419
34420 2009-05-23  Bruno Haible  <bruno@clisp.org>
34421
34422         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
34423         change.
34424
34425 2009-05-21  Bruno Haible  <bruno@clisp.org>
34426
34427         Simplify use of mode_t varargs.
34428         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
34429         uses 'mode_t' or 'int'.
34430         * lib/openat.c (openat): Likewise.
34431         * lib/open-safer.c (open_safer): Likewise.
34432         * m4/mode_t.m4: New file.
34433         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
34434         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
34435         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
34436         * modules/open (Files): Add m4/mode_t.m4.
34437         * modules/openat (Files): Likewise.
34438         * modules/fcntl-safer (Files): Likewise.
34439         Suggested by Eric Blake.
34440
34441 2009-05-21  Pádraig Brady  <P@draigbrady.com>
34442
34443         * doc/glibc-functions/fallocate.texi: New file.
34444         * doc/gnulib.texi: Include it.
34445
34446 2009-05-21  Eric Blake  <ebb9@byu.net>
34447             Bruno Haible  <bruno@clisp.org>
34448
34449         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
34450         invocations.
34451         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
34452
34453 2009-05-21  Eric Blake  <ebb9@byu.net>
34454             Bruno Haible  <bruno@clisp.org>
34455
34456         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
34457         include_next. Fix of 2008-11-20 commit.
34458         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
34459         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
34460         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
34461         NEXT_MATH_H.
34462         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
34463         instead of NEXT_MATH_H.
34464
34465 2009-05-21  Bruno Haible  <bruno@clisp.org>
34466
34467         Avoid redefinition warnings for SIZE_MAX.
34468         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
34469         Reported by Simon Josefsson.
34470
34471 2009-05-21  Bruno Haible  <bruno@clisp.org>
34472
34473         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
34474         AC_CACHE_VAL.
34475
34476 2009-05-20  Bruno Haible  <bruno@clisp.org>
34477
34478         Make zeroptr.h work on mingw.
34479         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
34480         mprotect.
34481         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
34482         * modules/memchr2-tests (configure.ac): Likewise.
34483         * modules/memcmp-tests (configure.ac): Likewise.
34484         * modules/memmem-tests (configure.ac): Likewise.
34485         * modules/memrchr-tests (configure.ac): Likewise.
34486         Reported by Simon Josefsson.
34487
34488 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34489
34490         * tests/test-glob.c: Include string.h for strcmp prototype.
34491
34492 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34493
34494         * modules/getdelim (Depends-on): Add explicit stdint, although it
34495         was implicitly already pulled in via realloc-posix.
34496         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
34497
34498 2009-05-20  Simon Josefsson  <simon@josefsson.org>
34499
34500         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
34501         G. Christensen" <tgc@jupiterrise.com>.
34502         * m4/sys_socket_h.m4: Check for sa_family_t.
34503         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
34504         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
34505         * tests/test-sys_socket.c: Check that sa_family_t works.
34506
34507 2009-05-18  Eric Blake  <ebb9@byu.net>
34508
34509         maint.mk: allow gnulib_dir in VPATH build
34510         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
34511
34512 2009-05-15  Jim Meyering  <meyering@redhat.com>
34513
34514         maint.mk: Give gnulib_dir a default definition.
34515         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
34516         Thus, most packages no longer need to specify this variable in cfg.mk
34517
34518 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
34519
34520         rename.m4: fix typos that would make non-mingw cross-configure fail
34521         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
34522
34523 2009-05-13  Eric Blake  <ebb9@byu.net>
34524
34525         mmap-anon: avoid out-of-order autoconf expansion
34526         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
34527         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
34528         * modules/memchr-tests (Depends-on): Add extensions.
34529         * modules/memchr2-tests (Depends-on): Add extensions.
34530         * modules/memcmp-tests (Depends-on): Add extensions.
34531         * modules/memmem-tests (Depends-on): Add extensions.
34532         * modules/memrchr-tests (Depends-on): Add extensions.
34533
34534 2009-05-13  Bruno Haible  <bruno@clisp.org>
34535
34536         Make some tests ISO C 99 compliant.
34537         * tests/zerosize-ptr.h: New file.
34538         * tests/test-memchr.c: Include zerosize-ptr.h.
34539         (main): Use a zero-size object pointer instead of NULL.
34540         * tests/test-memchr2.c: Include zerosize-ptr.h.
34541         (main): Use a zero-size object pointer instead of NULL.
34542         * tests/test-memcmp.c: Include zerosize-ptr.h.
34543         (main): Use a zero-size object pointer instead of NULL.
34544         * tests/test-memmem.c: Include zerosize-ptr.h.
34545         (main): Use a zero-size object pointer instead of NULL.
34546         * tests/test-memrchr.c: Include zerosize-ptr.h.
34547         (main): Use a zero-size object pointer instead of NULL.
34548         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
34549         m4/mmap-anon.m4.
34550         (Depends-on): Add getpagesize.
34551         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34552         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
34553         m4/mmap-anon.m4.
34554         (Depends-on): Add getpagesize.
34555         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34556         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
34557         m4/mmap-anon.m4.
34558         (Depends-on): Add getpagesize.
34559         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34560         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
34561         m4/mmap-anon.m4.
34562         (Depends-on): Add getpagesize.
34563         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34564         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
34565         m4/mmap-anon.m4.
34566         (Depends-on): Add getpagesize.
34567         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
34568
34569 2009-05-12  Bruno Haible  <bruno@clisp.org>
34570
34571         Tests for module 'alignof'.
34572         * modules/alignof-tests: New file.
34573         * tests/test-alignof.c: New file.
34574
34575 2009-05-12  Bruno Haible  <bruno@clisp.org>
34576
34577         Fix alignof macro.
34578         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
34579         vendor compilers that are always correct.
34580
34581 2009-05-12  Bruno Haible  <bruno@clisp.org>
34582
34583         Make the MAP_ANONYMOUS detection work on HP-UX 11.
34584         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
34585         not whether its fully works.
34586
34587 2009-05-12  Bruno Haible  <bruno@clisp.org>
34588
34589         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
34590
34591 2009-05-12  Jim Meyering  <meyering@redhat.com>
34592
34593         * top/maint.mk: Adjust backslash alignment.
34594
34595 2009-05-11  Simon Josefsson  <simon@josefsson.org>
34596
34597         * top/maint.mk: Make $(srcdir)/build-aux configurable.
34598
34599 2009-05-11  Eric Blake  <ebb9@byu.net>
34600
34601         argp: avoid undefined behavior
34602         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
34603         macros.
34604
34605 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34606
34607         * tests/test-vc-list-files-git.sh: Do git config of user.email and
34608         user.name to prevent git commit from complaining.
34609
34610 2009-05-10  Bruno Haible  <bruno@clisp.org>
34611
34612         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
34613         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
34614         it rewrites every file name only once.
34615         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
34616
34617 2009-05-08  Bruno Haible  <bruno@clisp.org>
34618
34619         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
34620         instead of 'max'.
34621
34622 2009-05-08  Simon Josefsson  <simon@josefsson.org>
34623
34624         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
34625         sockaddr_storage test.
34626
34627 2009-05-07  Simon Josefsson  <simon@josefsson.org>
34628
34629         * modules/sys_socket (Makefile.am): Substitute
34630         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
34631         * m4/sys_socket_h.m4: Check for sockaddr_storage.
34632         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
34633         * tests/test-sys_socket.c: Check sockaddr_storage.
34634
34635 2009-05-08  Bruno Haible  <bruno@clisp.org>
34636
34637         New module 'alignof'.
34638         * lib/alignof.h: New file.
34639         * modules/alignof: New file.
34640
34641 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34642             Bruno Haible  <bruno@clisp.org>
34643
34644         Fix test-file-has-acl on FreeBSD.
34645         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
34646         mask is implicitly added.
34647         * tests/test-file-has-acl.c: Include <signal.h>.
34648         (main): Terminate the test after 5 seconds.
34649         * modules/acl-tests (configure.ac): Check for alarm function.
34650
34651 2009-05-04  Bruno Haible  <bruno@clisp.org>
34652
34653         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
34654         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
34655         * modules/errno (configure.ac): Drop AC_REQUIRE.
34656         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
34657         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
34658
34659 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34660
34661         * modules/glob-tests: New module.
34662         * tests/test-glob.c: Add.
34663
34664 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34665
34666         * modules/fnmatch-tests: New module.
34667         * tests/test-fnmatch.c: Add.
34668
34669 2009-05-04  Eric Blake  <ebb9@byu.net>
34670
34671         maint: make the new no-submodule-changes rule VPATH-safe
34672         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
34673
34674 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34675             Bruno Haible  <bruno@clisp.org>
34676
34677         acl: Fix infinite loop on FreeBSD.
34678         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
34679         of return value from acl_get_entry.
34680         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
34681         Likewise.
34682
34683 2009-05-03  Bruno Haible  <bruno@clisp.org>
34684
34685         * lib/acl-internal.h (acl_entries): Clarify return value.
34686         * lib/acl_entries.c (acl_entries): Likewise.
34687
34688 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34689
34690         Bug fix in acl module.
34691         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
34692
34693 2009-05-03  Bruno Haible  <bruno@clisp.org>
34694
34695         Create gperf-generated file in the source dir, not in the build dir.
34696         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
34697         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
34698         * modules/unicase/locale-language (unicase/locale-languages.h):
34699         Likewise.
34700         * modules/unicase/special-casing (unicase/special-casing-table.h):
34701         Likewise.
34702         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
34703         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
34704         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
34705         Reported by Ralf Wildenhues.
34706
34707 2009-05-03  Bruno Haible  <bruno@clisp.org>
34708
34709         * modules/fnmatch (Description, configure.ac): Taken from
34710         fnmatch-posix.
34711         * modules/fnmatch-posix: Turn into a symbolic reference to the
34712         'fnmatch' module, and deprecate.
34713         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
34714
34715 2009-05-03  Bruno Haible  <bruno@clisp.org>
34716
34717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
34718         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
34719         Reported by Ralf Wildenhues.
34720
34721 2009-05-04  Simon Josefsson  <simon@josefsson.org>
34722
34723         * m4/fnmatch.m4: Fix fnmatch re-define.
34724
34725 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
34726
34727         priv-set: new module and tests; adapt write-any-file
34728         * lib/priv-set.c: New file.
34729         * lib/priv-set.h: New file.
34730         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
34731         * lib/write-any-file.c: Simplify by using priv-set module.
34732         * m4/priv-set.m4: New file.
34733         * modules/priv-set: New file.
34734         * modules/unlinkdir: Add dependency on priv-set module.
34735         * modules/write-any-file: Likewise.
34736
34737         Tests for module 'priv-set'.
34738         * modules/priv-set-tests: New file.
34739         * tests/test-priv-set.c: New file.
34740
34741 2009-05-03  Jim Meyering  <meyering@redhat.com>
34742             Bruno Haible  <bruno@clisp.org>
34743
34744         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
34745         use the converted UTF-8 variant of the name instead.
34746
34747 2009-05-03  Jim Meyering  <meyering@redhat.com>
34748
34749         tests: tighten some getdate tests
34750         * tests/test-getdate.c (main): Tighten tests: require equality,
34751         not just greater than.  Set TZ envvar to UTC0.
34752
34753 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
34754
34755         getdate: correctly interpret "next monday" when run on a Monday
34756         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
34757         that e.g., "next tues" (when run on a tuesday) results in a date
34758         that is one week in the future, and not today's date.
34759         I.e., add a week when the wday is the same as the current one.
34760         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
34761         and earlier by Martin Bernreuther and Jan Minář.
34762         * tests/test-getdate.c (main): Check that "next DAY" is always in
34763         the future and that "last DAY" is always in the past.
34764
34765 2009-05-02  Jim Meyering  <meyering@redhat.com>
34766
34767         build: ensure that a release build fails when a submodule is unclean
34768         * top/maint.mk (no-submodule-changes): New rule.
34769         (alpha beta major): Depend on it.
34770
34771 2009-05-02  Bruno Haible  <bruno@clisp.org>
34772
34773         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
34774         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
34775         shell variable gl_fnmatch_required to detect which variant is
34776         requested.
34777         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
34778         gl_FUNC_FNMATCH_POSIX.
34779         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
34780         exclude fnmatch-posix.
34781
34782 2009-05-02  Bruno Haible  <bruno@clisp.org>
34783
34784         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
34785         * modules/mbsrtowcs (License): Change to LGPLv2+.
34786         * modules/strnlen1 (License): Likewise.
34787         Reported by Simon Josefsson.
34788
34789 2009-05-02  Bruno Haible  <bruno@clisp.org>
34790
34791         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
34792         "cross".
34793         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
34794         gnulib-tool was called with option --source-base=lib.
34795
34796 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34797
34798         Use automake *-local hooks without commands, for extensibility.
34799         * modules/localcharset (Makefile.am): Rename install-exec-local
34800         rule to install-exec-localcharset, and make it a prerequisite of
34801         install-exec-local.  Likewise, rename the uninstall-local rule to
34802         uninstall-localcharset, and make it a prerequisite of the former.
34803
34804 2009-05-01  Bruno Haible  <bruno@clisp.org>
34805
34806         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
34807         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34808         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
34809         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
34810         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
34811         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34812         m4/locale-zh.m4, m4/codeset.m4.
34813
34814         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
34815         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
34816         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
34817         m4/locale-zh.m4.
34818
34819         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
34820         REPLACE_WCRTOMB if mbstate_t must be replaced.
34821         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
34822         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
34823
34824 2009-05-01  Bruno Haible  <bruno@clisp.org>
34825
34826         Avoid compiler warnings when redefining macros defined by <libintl.h>.
34827         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
34828         dngettext, dcngettext, textdomain, bindtextdomain,
34829         bind_textdomain_codeset): Undefine before redefining.
34830
34831 2009-04-30  Bruno Haible  <bruno@clisp.org>
34832
34833         Fix bug introduced on 2009-04-25.
34834         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
34835         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
34836         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
34837         is defined.
34838         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
34839         is defined.
34840         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
34841         is defined.
34842         Reported by Elbert_Pol <elbert.pol@gmail.com>.
34843
34844 2009-04-28  Bruno Haible  <bruno@clisp.org>
34845
34846         Comment tweaks.
34847         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
34848         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
34849         * lib/unicase.h (u*_casexfrm): Likewise.
34850         Reported by Paolo Bonzini.
34851
34852 2009-04-28  Bruno Haible  <bruno@clisp.org>
34853
34854         Fix a compilation error.
34855         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
34856         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
34857         Reported by Jim Meyering.
34858
34859 2009-04-27  Bruno Haible  <bruno@clisp.org>
34860
34861         New module 'libunistring'.
34862         * modules/libunistring: New file.
34863         * m4/libunistring.m4: New file.
34864         * MODULES.html.sh (Unicode string functions): Add it.
34865
34866 2009-04-27  Eric Blake  <ebb9@byu.net>
34867
34868         maint.mk: allow package-specific header to provide <config.h>
34869         * top/maint.mk (sc_require_config_h): New variable.
34870         (sc_require_config_h, sc_require_config_h_first): Use it.
34871
34872 2009-04-27  Simon Josefsson  <simon@josefsson.org>
34873
34874         * top/maint.mk (sc_avoid_if_before_free): Except
34875         useless-if-before-free script.
34876
34877 2009-04-27  Eric Blake  <ebb9@byu.net>
34878
34879         maintainer-makefile: depend on all required helper scripts
34880         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
34881         useless-if-before-free.
34882         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
34883         version, rather than assuming gnulib checkout is available.
34884         Reported by Simen Josefsson.
34885
34886 2009-04-26  Bruno Haible  <bruno@clisp.org>
34887
34888         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
34889         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
34890         "../" or "..".
34891
34892 2009-04-26  Bruno Haible  <bruno@clisp.org>
34893
34894         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
34895         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
34896         AC_LIB_HAVE_LINKFLAGS.
34897
34898 2009-04-26  Bruno Haible  <bruno@clisp.org>
34899
34900         Simplify calling convention of u*_conv_from_encoding.
34901         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
34902         u32_conv_from_encoding): Expect a resultbuf argument and return the
34903         result directly as a pointer.
34904         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
34905         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
34906         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
34907         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
34908         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
34909         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34910         Update.
34911         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
34912         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
34913         * lib/vasnprintf.c (VASNPRINTF): Update.
34914         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
34915         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
34916         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
34917         * NEWS: Mention the change.
34918
34919 2009-04-26  Bruno Haible  <bruno@clisp.org>
34920
34921         Simplify calling convention of u*_conv_to_encoding.
34922         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
34923         u32_conv_to_encoding): Expect a resultbuf argument and return the
34924         result directly as a pointer.
34925         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34926         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
34927         freeing scaled_offsets if mem_iconveha failed.
34928         * lib/unicase/u-casexfrm.h (FUNC): Update.
34929         * lib/uninorm/u-normxfrm.h (FUNC): Update.
34930         * lib/vasnprintf.c (VASNPRINTF): Update.
34931         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
34932         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
34933         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
34934         * NEWS: Mention the change.
34935
34936 2009-04-26  Bruno Haible  <bruno@clisp.org>
34937
34938         Avoid test failures on AIX and OSF/1.
34939         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
34940         malloc(0).
34941         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
34942         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
34943         Likewise.
34944         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
34945         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
34946         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
34947         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
34948         * doc/posix-functions/malloc.texi: Document the portability problem
34949         related to malloc(0).
34950
34951 2009-04-26  Bruno Haible  <bruno@clisp.org>
34952
34953         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
34954         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
34955         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
34956
34957 2009-04-25  Bruno Haible  <bruno@clisp.org>
34958
34959         Avoid link error when creating a namespace clean library.
34960         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
34961         as macro with arguments if already defined as an alias.
34962         * lib/signbitf.c (gl_signbitf): Don't undefine.
34963         * lib/signbitd.c (gl_signbitd): Don't undefine.
34964         * lib/signbitl.c (gl_signbitl): Don't undefine.
34965
34966 2009-04-25  Jim Meyering  <meyering@redhat.com>
34967
34968         vc-list-files: fix another quoting bug
34969         * build-aux/vc-list-files: Avoid sed backslash expansion
34970         of pathological directory names.
34971
34972 2009-04-25  Eric Blake  <ebb9@byu.net>
34973
34974         vc-list-files: fix shell quoting error
34975         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
34976         timestamp.
34977
34978 2009-04-25  Jim Meyering  <meyering@redhat.com>
34979
34980         vc-list-files: restore lost functionality with subdir argument
34981         * build-aux/vc-list-files: When given a non-"." sub-directory
34982         argument, substitute the $dir/ prefix back onto each resulting name.
34983         Otherwise, coreutils' root_tests check would fail.
34984
34985 2009-04-24  Eric Blake  <ebb9@byu.net>
34986
34987         vc-list-files: ignore git symlinks
34988         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
34989         than ls-files, to ignore git symlinks.
34990
34991         maint.mk: import improvements from m4
34992         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
34993         (move_if_change): Delete unused macro.
34994         (news-date-check, vc-diff-check): Support VPATH builds.
34995         (announcement): Likewise.  Split --bootstrap-tools list...
34996         (boostrap-tools): ...into separate list, which can be overridden
34997         in cfg.mk.
34998         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
34999         requiring dependency on useless-if-before-free module.
35000         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
35001         Support VPATH builds.
35002
35003 2009-04-24  Jim Meyering  <meyering@redhat.com>
35004
35005         maint.mk: remove coreutils-specific rules and variables
35006         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
35007         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
35008         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
35009
35010         maint.mk: remove obsolete rule
35011         * top/maint.mk (rel-check): Remove rule.
35012         (WGET, WGETFLAGS): Remove now-unused variables.
35013
35014 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35015
35016         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
35017         consistency.
35018
35019         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
35020         '$(PATH_SEPARATOR)' instead of ':'.
35021
35022 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35023
35024         * lib/getopt1.c (main): Use 'const' for static array.
35025
35026 2009-04-24  Simon Josefsson  <simon@josefsson.org>
35027
35028         * top/maint.mk: Sync with coreutils.
35029         * NEWS: Explain incompatibilities.
35030
35031 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35032             Bruno Haible  <bruno@clisp.org>
35033
35034         Fix cross-compilation results.
35035         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
35036         statement, as third argument of AC_TRY_RUN.
35037         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
35038         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
35039         Likewise.
35040         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
35041         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
35042         Likewise.
35043         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
35044         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
35045         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
35046
35047 2009-04-20  Bruno Haible  <bruno@clisp.org>
35048
35049         Avoid test failure on mingw.
35050         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
35051
35052 2009-04-20  Bruno Haible  <bruno@clisp.org>
35053
35054         Avoid compilation error on mingw.
35055         * modules/localename-tests (Depends-on): Add locale.
35056
35057 2009-04-19  Bruno Haible  <bruno@clisp.org>
35058
35059         Support for building a shared library on Windows platforms.
35060         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
35061         (main): Test the presence of UNINORM_NFC here.
35062         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
35063         (main): Test the presence of UNINORM_NFD here.
35064         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
35065         (main): Test the presence of UNINORM_NFKC here.
35066         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
35067         (main): Test the presence of UNINORM_NFKD here.
35068
35069 2009-04-19  Bruno Haible  <bruno@clisp.org>
35070
35071         Avoid a compiler warning.
35072         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
35073         Change type of variable 'sequence'.
35074
35075 2009-04-19  Bruno Haible  <bruno@clisp.org>
35076
35077         * modules/configmake (Makefile.am): When the contents of configmake.h
35078         does not change, arrange to preserve its modification time.
35079
35080 2009-04-17  Simon Josefsson  <simon@josefsson.org>
35081
35082         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
35083         gettext domain.
35084
35085 2009-04-16  Jim Meyering  <meyering@redhat.com>
35086
35087         useless-if-before-free: improve conversion code
35088         * build-aux/useless-if-before-free: Adjust code-in-comment to match
35089         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
35090
35091 2009-04-14  Bruno Haible  <bruno@clisp.org>
35092
35093         * modules/fcntl (Depends-on): Add extensions.
35094         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
35095
35096 2009-04-12  Ben Pfaff  <blp@gnu.org>
35097
35098         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
35099         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
35100
35101 2009-03-20  Ben Pfaff  <blp@gnu.org>
35102
35103         Make rename replace existing destinations on Windows.
35104         * m4/rename.m4: Add test for Mingw.
35105         * lib/rename.c: Add rename replacement that uses MoveFileEx with
35106         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
35107         * doc/posix-functions/rename.texi: Document.
35108
35109 2009-04-10  Bruno Haible  <bruno@clisp.org>
35110
35111         New include file "iconveh.h".
35112         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
35113         * lib/striconveh.h: Include it.
35114         (enum iconv_ilseq_handler): Remove definition.
35115         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
35116         striconveh.h.
35117         * lib/striconveha.c: Include striconveh.h.
35118         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
35119         * modules/striconveh (Files): Add lib/iconveh.h.
35120         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
35121         lib/striconveh.h.
35122
35123 2009-04-10  Bruno Haible  <bruno@clisp.org>
35124
35125         * lib/uniconv.h: Update comment.
35126
35127 2009-04-10  Bruno Haible  <bruno@clisp.org>
35128
35129         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
35130         always.
35131         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
35132         * lib/unistr/u16-mbtouc-aux.c: Likewise.
35133         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
35134         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
35135         "unistring-notinline.h", so that the function gets defined always.
35136         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
35137         * lib/unistr/u8-uctomb.c: Likewise.
35138         * lib/unistr/u16-mbtouc.c: Likewise.
35139         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
35140         * lib/unistr/u16-uctomb.c: Likewise.
35141         * lib/unistr/u32-mbtouc.c: Likewise.
35142         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
35143         * lib/unistr/u32-uctomb.c: Likewise.
35144
35145 2009-04-10  Bruno Haible  <bruno@clisp.org>
35146
35147         Mark 'utime' obsolete.
35148         * modules/utime (Status, Notice): New sections.
35149         Suggested by Jim Meyering.
35150
35151         Fix cross-compile guess for utime test.
35152         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
35153         autoconf.
35154         * doc/posix-functions/utime.texi: Give more precisions.
35155         Reported by Jan <ipif@ymail.com>.
35156
35157 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
35158
35159         filevercmp: correct today's change
35160         * lib/filevercmp.c: Also handle coreutils' test inputs.
35161         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
35162
35163         Fix regression in 'filevercmp' module. Thanks Sven Joachim
35164         for reporting it.
35165         * lib/filevercmp.c: Special handle for "", "." and "..".
35166         * tests/test-filevercmp.c: Enlarge the set suite.
35167
35168 2009-04-07  Jim Meyering  <meyering@redhat.com>
35169
35170         useless-if-before-free: show how to remove braced useless free, too
35171         * build-aux/useless-if-before-free: still only in a comment, though.
35172
35173 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
35174
35175         maint.mk: import changes to syntax-check macros from coreutils
35176         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
35177         Use them in the relevant macros.
35178
35179 2009-04-06  Bruno Haible  <bruno@clisp.org>
35180
35181         Fix unportable use of bit-fields.
35182         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
35183         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
35184         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
35185
35186 2009-04-06  Bruno Haible  <bruno@clisp.org>
35187
35188         Avoid test failures on AIX and OSF/1.
35189         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
35190         that malloc(0) = NULL.
35191         * tests/unicase/test-u8-tolower.c (check): Likewise.
35192         * tests/unicase/test-u8-totitle.c (check): Likewise.
35193         * tests/unicase/test-u8-toupper.c (check): Likewise.
35194         * tests/unicase/test-u16-casefold.c (check): Likewise.
35195         * tests/unicase/test-u16-tolower.c (check): Likewise.
35196         * tests/unicase/test-u16-totitle.c (check): Likewise.
35197         * tests/unicase/test-u16-toupper.c (check): Likewise.
35198         * tests/unicase/test-u32-casefold.c (check): Likewise.
35199         * tests/unicase/test-u32-tolower.c (check): Likewise.
35200         * tests/unicase/test-u32-totitle.c (check): Likewise.
35201         * tests/unicase/test-u32-toupper.c (check): Likewise.
35202         * tests/uninorm/test-u8-nfc.c (check): Likewise.
35203         * tests/uninorm/test-u8-nfd.c (check): Likewise.
35204         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
35205         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
35206         * tests/uninorm/test-u16-nfc.c (check): Likewise.
35207         * tests/uninorm/test-u16-nfd.c (check): Likewise.
35208         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
35209         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
35210         * tests/uninorm/test-u32-nfc.c (check): Likewise.
35211         * tests/uninorm/test-u32-nfd.c (check): Likewise.
35212         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
35213         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
35214
35215 2009-04-05  Bruno Haible  <bruno@clisp.org>
35216
35217         Work around an autoconf limitation.
35218         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
35219         comment line if it would be longer than 3 KB.
35220
35221 2009-04-05  Bruno Haible  <bruno@clisp.org>
35222
35223         Avoid test failure with libiconv-1.13.
35224         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
35225         of the expected test results.
35226
35227 2009-04-05  Bruno Haible  <bruno@clisp.org>
35228
35229         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
35230         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
35231         that it should be installed.
35232
35233 2009-04-05  Bruno Haible  <bruno@clisp.org>
35234
35235         * gnulib-tool: New option --copy-file.
35236         (func_usage): Document it.
35237         (func_dest_tmpfilename): Moved out of func_import.
35238         (func_add_file, func_update_file): New functions, extracted from
35239         func_import.
35240         (func_import): Update.
35241
35242 2009-04-05  Karl Berry  <karl@gnu.org>
35243
35244         * README: prominently mention gnulib-tool.
35245         Rearrange sections so getting the code is near the top.
35246
35247 2009-04-05  Bruno Haible  <bruno@clisp.org>
35248
35249         * lib/unicase.h: Mention u*_cmp2.
35250         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35251         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
35252         * lib/unicase/ulc-casecmp.c: Likewise.
35253         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
35254         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
35255         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
35256         unistr/u8-cmp.
35257         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
35258         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
35259         unistr/u16-cmp.
35260         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
35261         unistr/u32-cmp.
35262
35263         * lib/uninorm.h: Mention u*_cmp2.
35264         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
35265         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
35266         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
35267         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
35268         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
35269         unistr/u8-cmp.
35270         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
35271         unistr/u16-cmp.
35272         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
35273         unistr/u32-cmp.
35274
35275         New module 'unistr/u32-cmp2'.
35276         * lib/unistr/u32-cmp2.c: New file.
35277         * modules/unistr/u32-cmp2: New file.
35278
35279         New module 'unistr/u16-cmp2'.
35280         * lib/unistr/u16-cmp2.c: New file.
35281         * modules/unistr/u16-cmp2: New file.
35282
35283         New module 'unistr/u8-cmp2'.
35284         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
35285         * lib/unistr/u8-cmp2.c: New file.
35286         * lib/unistr/u-cmp2.h: New file.
35287         * modules/unistr/u8-cmp2: New file.
35288
35289 2009-04-05  Bruno Haible  <bruno@clisp.org>
35290
35291         * lib/unictype.h (uc_property_is_valid): New macro.
35292         * tests/unictype/test-pr_byname.c (main): Use it.
35293
35294         * lib/unistr.h: Doc fixes.
35295         * lib/uniconv.h: Doc fixes.
35296         * lib/unictype.h: Doc fixes.
35297
35298 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
35299
35300         Port coreutils 7.2 to Solaris 8.
35301
35302         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
35303         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
35304         for Solaris 8.  This is a bit of a hack, as it means it's the
35305         caller's responsibility to add -lnsl if needed, but most likely it
35306         won't be needed since only getaddrinfo uses this and getaddrinfo
35307         isn't needed on Solaris 8.
35308
35309         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
35310         problem to Solaris 8 encountered with coreutils 7.2, which
35311         resulted in a message "fnmatch.c:292: warning: passing argument 4
35312         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
35313         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
35314
35315 2009-04-03  Simon Josefsson  <simon@josefsson.org>
35316
35317         * m4/ld-version-script.m4: Add FIXME comment.
35318
35319 2009-04-02  Simon Josefsson  <simon@josefsson.org>
35320
35321         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
35322         SOVERSION variable.
35323
35324 2009-04-02  Bruno Haible  <bruno@clisp.org>
35325
35326         * Makefile (info, html, dvi, pdf): Combine the rules.
35327         Suggested by Jim Meyering.
35328
35329 2009-04-01  Bruno Haible  <bruno@clisp.org>
35330
35331         * Makefile (info, html, dvi, pdf): New targets.
35332         Reported by Reuben Thomas <rrt@sc3d.org>.
35333
35334 2009-04-01  Bruno Haible  <bruno@clisp.org>
35335
35336         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
35337         can be put into PATH.
35338         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
35339
35340 2009-04-01  Bruno Haible  <bruno@clisp.org>
35341
35342         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
35343
35344 2009-04-01  Bruno Haible  <bruno@clisp.org>
35345
35346         Rename module 'visibility'.
35347         * modules/lib-symbol-visibility: Renamed from modules/visibility.
35348         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
35349         * doc/gnulib.texi: Update.
35350         * MODULES.html.sh (Misc): Update.
35351         * NEWS: Mention the change.
35352
35353 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35354
35355         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
35356         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
35357         Eric Blake <ebb9@byu.net> for review.
35358         * MODULES.html.sh: Add lib-msvc-compat.
35359         * doc/gnulib.texi: Link to new section.
35360         * m4/ld-output-def.m4: New file.
35361         * doc/ld-output-def.texi: New file.
35362
35363 2009-04-01  Simon Josefsson  <simon@josefsson.org>
35364
35365         Rename ld-version-script to lib-symbol-versions.  Suggested by
35366         Bruno Haible <bruno@clisp.org>.
35367         * modules/ld-version-script: Renamed to lib-symbol-versions.
35368         * doc/ld-version-script.texi: Fix module name.
35369         * MODULES.html.sh: Add lib-symbol-versions.
35370
35371 2009-03-31  Simon Josefsson  <simon@josefsson.org>
35372
35373         * modules/u64-tests: New file.
35374         * tests/test-u64.c: New file.
35375
35376 2009-03-04  Simon Josefsson  <simon@josefsson.org>
35377
35378         * MODULES.html.sh: Mention u64.
35379         * modules/u64: New module.
35380         * modules/crypto/sha512: Depend on u64 module instead of providing
35381         u64.h.
35382
35383 2009-03-27  Eric Blake  <ebb9@byu.net>
35384
35385         test-strerror: make debugging EAI_SYSTEM easier
35386         * modules/getaddrinfo-tests (Depends-on): Add strerror.
35387         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
35388         failure was EAI_SYSTEM.
35389
35390 2009-03-25  Bruno Haible  <bruno@clisp.org>
35391
35392         Fix a problem with --enable-relocatable on Solaris 7.
35393         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
35394         since 2008-02-24.
35395
35396 2009-03-25  Eric Blake  <ebb9@byu.net>
35397
35398         test-sockets: avoid gcc warning
35399         * tests/test-sockets.c (main): Silence compiler warning.
35400
35401 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
35402
35403         New modules nproc, pthread, contributed by Glen Lenker.
35404
35405         * MODULES.html.sh: Add pthread, nproc.
35406         * lib/nproc.c: New file.
35407         * lib/nproc.h: New file.
35408         * lib/pthread.in.h: New file.
35409         * m4/pthread.m4: New file.
35410         * modules/nproc: New file.
35411         * modules/pthread: New file.
35412
35413 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35414
35415         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
35416         New variable.
35417
35418 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
35419
35420         filevercmp: handle simple~ and numbered.~3~ backup suffixes
35421         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
35422         * tests/test-filevercmp.c: Add tests for backup suffixes.
35423
35424 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35425
35426         * modules/stdlib (Depends-on): Add stdint, needed when defining
35427         struct random_data on, for example, HP-UX 10.20.  Reported by
35428         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35429
35430 2009-03-24  Simon Josefsson  <simon@josefsson.org>
35431
35432         * lib/readline.c (readline): Call fflush on stdout after printing
35433         prompt.
35434
35435 2009-03-20  Bruno Haible  <bruno@clisp.org>
35436
35437         Remove dependency from 'close' module to -lws2_32 on native Windows.
35438         * lib/close-hook.h: New file.
35439         * lib/close-hook.c: New file.
35440         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
35441         w32sock.h.
35442         (_gl_close_fd_maybe_socket): Remove function.
35443         (rpl_close): Invoke execute_all_close_hooks instead of
35444         _gl_close_fd_maybe_socket.
35445         * lib/sockets.c: Include close-hook.h, w32sock.h.
35446         (close_fd_maybe_socket): New function, essentially from lib/close.c.
35447         (close_sockets_hook): New variable.
35448         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
35449         (gl_sockets_cleanup): Unregister it.
35450         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
35451         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
35452         * modules/close-hook: New file.
35453         * modules/close (Files): Remove lib/w32sock.h.
35454         (Depends-on): Add close-hook.
35455         (Link): Remove section.
35456         * modules/sockets (Files): Add lib/w32sock.h.
35457         (Depends-on): Add close-hook.
35458         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
35459         invocation.
35460         * NEWS: Mention that LIB_CLOSE is gone.
35461
35462 2009-03-23  Eric Blake  <ebb9@byu.net>
35463
35464         signal-tests: test previous patch
35465         * tests/test-signal.c: New file.
35466         * modules/signal-tests: Likewise.
35467
35468         signal.h: always support 'volatile sig_atomic_t'
35469         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
35470         (gl_SIGNAL_H_DEFAULTS): Add a default.
35471         * modules/signal (Makefile.am): Substitute if needed.
35472         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
35473         users can blindly add volatile.
35474         * doc/posix-headers/signal.texi (signal.h): Document it.
35475         Reported by Matthew Woehlke.
35476
35477 2009-03-23  Jim Meyering  <meyering@redhat.com>
35478
35479         pathmax: PATH_MAX: use pathconf only when available
35480         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
35481         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
35482         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
35483         This avoids a link failure in a PSP cross-compilation environment
35484         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
35485
35486         * lib/vasnprintf.c (divide): Fix typo in comment.
35487
35488 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35489
35490         * gnulib-tool (func_filter_filelist): Fix comment.
35491
35492 2009-03-20  Bruno Haible  <bruno@clisp.org>
35493
35494         Make sockets.h self-contained.
35495         * lib/sockets.c: Include sockets.h first.
35496         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
35497
35498 2009-03-19  Eric Blake  <ebb9@byu.net>
35499
35500         doc: mention more functions added in cygwin 1.7.0
35501         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
35502         addition.
35503         * doc/posix-functions/log2f.texi: Likewise.
35504
35505 2009-03-19  Jim Meyering  <meyering@redhat.com>
35506
35507         fsusage: avoid syntax error due to statement-before-declaration
35508         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
35509         after all declarations.  Reported by Matthew Woehlke in
35510         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
35511
35512 2009-03-18  Eric Blake  <ebb9@byu.net>
35513
35514         build-aux/compile: sync from automake
35515         * build-aux/compile: New file, from automake.
35516         * config/srclist.txt: Mention build-aux/compile.
35517
35518 2009-03-17  Bruno Haible  <bruno@clisp.org>
35519
35520         * lib/git-merge-changelog.c: Fix typo in comment.
35521         Reported by Reuben Thomas <rrt@sc3d.org>.
35522
35523 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
35524
35525         * m4/regex.m4: update and improve help for
35526         --without-included-regex.
35527
35528 2009-03-17  Simon Josefsson  <simon@josefsson.org>
35529
35530         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
35531         failure on missing include files.
35532
35533 2009-03-17  Eric Blake  <ebb9@byu.net>
35534
35535         doc: mention more functions added in cygwin 1.7.0
35536         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
35537         addition.
35538         * doc/posix-functions/fwscanf.texi: Likewise.
35539         * doc/posix-functions/swprintf.texi: Likewise.
35540         * doc/posix-functions/swscanf.texi: Likewise.
35541         * doc/posix-functions/vfwprintf.texi: Likewise.
35542         * doc/posix-functions/vfwscanf.texi: Likewise.
35543         * doc/posix-functions/vswprintf.texi: Likewise.
35544         * doc/posix-functions/vswscanf.texi: Likewise.
35545         * doc/posix-functions/vwprintf.texi: Likewise.
35546         * doc/posix-functions/vwscanf.texi: Likewise.
35547         * doc/posix-functions/wcscasecmp.texi: Likewise.
35548         * doc/posix-functions/wcsdup.texi: Likewise.
35549         * doc/posix-functions/wcsftime.texi: Likewise.
35550         * doc/posix-functions/wcsncasecmp.texi: Likewise.
35551         * doc/posix-functions/wprintf.texi: Likewise.
35552         * doc/posix-functions/wscanf.texi: Likewise.
35553         * doc/glibc-functions/gethostbyname2.texi: Likewise.
35554
35555 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35556
35557         maint.mk: really add $(AM_MAKEFLAGS)
35558         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
35559         was inadvertently omitted in the last commit.
35560         Spotted by Bruno Haible.
35561
35562         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
35563         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
35564         $(AM_MAKEFLAGS)' rather than plain `make'.
35565
35566         gnulib-tool: execute $MAKE not make
35567         * gnulib-tool: Default $MAKE to 'make'.
35568         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
35569         than make.  Initialize $MAKE in the do-autobuild script.
35570
35571         gnulib-tool: use $MAKE not make in generated files
35572         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
35573         make, in generated files.  Initialize $MAKE in the do-autobuild
35574         script.
35575
35576         * top/GNUmakefile (_have-git-version-gen): Fix typo.
35577
35578         GNUmakefile: disable parallelism only for multiple, recursive targets
35579         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
35580         additions in the Makefile.
35581         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
35582         by Automake.
35583         (.NOTPARALLEL): Only disable parallel builds if multiple targets
35584         are listed on the command line and at least one of them is
35585         listed in $(ALL_RECURSIVE_TARGETS).
35586
35587 2009-03-14  Bruno Haible  <bruno@clisp.org>
35588
35589         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
35590         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
35591         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
35592         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
35593         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
35594         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
35595         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
35596         unistr/u8-uctomb.
35597         * modules/unistr/u8-strchr (Depends-on): Likewise.
35598         * modules/unistr/u8-strrchr (Depends-on): Likewise.
35599         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
35600         unistr/u16-uctomb.
35601         * modules/unistr/u16-strchr (Depends-on): Likewise.
35602         * modules/unistr/u16-strrchr (Depends-on): Likewise.
35603
35604 2009-03-12  Bruno Haible  <bruno@clisp.org>
35605
35606         Work around select() bug on Interix 3.5.
35607         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
35608         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
35609         * m4/select.m4: New file.
35610         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
35611         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
35612         * modules/select (Files): Add m4/select.m4.
35613         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
35614         * modules/nanosleep (Depends-on): Add select.
35615         * modules/poll (Depends-on): Likewise.
35616         * doc/posix-functions/select.texi: Mention the Interix bug.
35617         Reported by Markus Duft <mduft@gentoo.org>.
35618
35619         * lib/select.c: Renamed from lib/winsock-select.c.
35620         * modules/select (Files): Add lib/select.c, remove
35621         lib/winsock-select.c.
35622         (configure.ac): Update.
35623
35624 2009-03-12  Jim Meyering  <meyering@redhat.com>
35625
35626         avoid gcc warnings about unused macro definitions
35627         * lib/readtokens.c (STREQ): Remove unused definition.
35628         * lib/xmalloc.c (SIZE_MAX): Likewise.
35629         * lib/openat-die.c (N_): Likewise.
35630         * lib/mountlist.c (SIZE_MAX): Remove definition.
35631         Instead, include <stdint.h>.
35632         * lib/readutmp.c: Likewise.
35633         * modules/readutmp (Depends-on): Add stdint.
35634         * modules/mountlist (Depends-on): Add stdint.
35635         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
35636
35637 2009-03-10  Bruno Haible  <bruno@clisp.org>
35638
35639         Tests for module 'mbmemcasecoll'.
35640         * modules/mbmemcasecoll-tests: New file.
35641         * tests/test-mbmemcasecoll1.sh: New file.
35642         * tests/test-mbmemcasecoll2.sh: New file.
35643         * tests/test-mbmemcasecoll3.sh: New file.
35644         * tests/test-mbmemcasecoll.c: New file.
35645
35646         New module 'mbmemcasecoll'.
35647         * lib/mbmemcasecoll.h: New file.
35648         * lib/mbmemcasecoll.c: New file.
35649         * modules/mbmemcasecoll: New file.
35650
35651         * tests/test-mbmemcasecmp.h: New file, extracted from
35652         tests/test-mbmemcasecmp.c.
35653         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
35654         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
35655         (main): Update.
35656         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
35657
35658 2009-03-09  Bruno Haible  <bruno@clisp.org>
35659
35660         Tests for module 'mbmemcasecmp'.
35661         * modules/mbmemcasecmp-tests: New file.
35662         * tests/test-mbmemcasecmp1.sh: New file.
35663         * tests/test-mbmemcasecmp2.sh: New file.
35664         * tests/test-mbmemcasecmp3.sh: New file.
35665         * tests/test-mbmemcasecmp.c: New file.
35666
35667         New module 'mbmemcasecmp'.
35668         * lib/mbmemcasecmp.h: New file.
35669         * lib/mbmemcasecmp.c: New file.
35670         * modules/mbmemcasecmp: New file.
35671
35672 2009-03-09  Bruno Haible  <bruno@clisp.org>
35673
35674         Tests for module 'unicase/ulc-casecoll'.
35675         * modules/unicase/ulc-casecoll-tests: New file.
35676         * tests/unicase/test-ulc-casecoll1.sh: New file.
35677         * tests/unicase/test-ulc-casecoll2.sh: New file.
35678         * tests/unicase/test-ulc-casecoll.c: New file.
35679
35680         New module 'unicase/ulc-casecoll'.
35681         * lib/unicase.h (ulc_casecoll): New declaration.
35682         * lib/unicase/ulc-casecoll.c: New file.
35683         * modules/unicase/ulc-casecoll: New file.
35684
35685         New module 'unicase/ulc-casexfrm'.
35686         * lib/unicase.h (ulc_casexfrm): New declaration.
35687         * lib/unicase/ulc-casexfrm.c: New file.
35688         * modules/unicase/ulc-casexfrm: New file.
35689
35690 2009-03-09  Bruno Haible  <bruno@clisp.org>
35691
35692         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
35693         invocations.
35694
35695         * m4/mbscasecmp.m4: Remove file.
35696         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
35697         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
35698
35699         * m4/mbscasestr.m4: Remove file.
35700         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
35701         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
35702
35703         * m4/mbschr.m4: Remove file.
35704         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
35705         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
35706
35707         * m4/mbscspn.m4: Remove file.
35708         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
35709         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
35710
35711         * m4/mbslen.m4: Remove file.
35712         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
35713         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
35714
35715         * m4/mbsncasecmp.m4: Remove file.
35716         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
35717         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
35718
35719         * m4/mbsnlen.m4: Remove file.
35720         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
35721         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
35722
35723         * m4/mbspbrk.m4: Remove file.
35724         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
35725         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
35726
35727         * m4/mbspcasecmp.m4: Remove file.
35728         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
35729         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
35730
35731         * m4/mbsrchr.m4: Remove file.
35732         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
35733         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
35734
35735         * m4/mbssep.m4: Remove file.
35736         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
35737         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
35738
35739         * m4/mbsspn.m4: Remove file.
35740         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
35741         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
35742
35743         * m4/mbsstr.m4: Remove file.
35744         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
35745         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
35746
35747         * m4/mbstok_r.m4: Remove file.
35748         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
35749         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
35750
35751         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
35752
35753         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
35754         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
35755
35756         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
35757
35758 2009-03-08  Bruno Haible  <bruno@clisp.org>
35759
35760         Tests for module 'unicase/ulc-casecmp'.
35761         * modules/unicase/ulc-casecmp-tests: New file.
35762         * tests/unicase/test-ulc-casecmp1.sh: New file.
35763         * tests/unicase/test-ulc-casecmp2.sh: New file.
35764         * tests/unicase/test-ulc-casecmp.c: New file.
35765
35766         New module 'unicase/ulc-casecmp'.
35767         * lib/unicase.h (ulc_casecmp): New declaration.
35768         * lib/unicase/ulc-casecmp.c: New file.
35769         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
35770         'const SRC_UNIT *'.
35771         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
35772         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
35773         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
35774         * modules/unicase/ulc-casecmp: New file.
35775
35776         Tests for module 'unicase/u32-is-cased'.
35777         * modules/unicase/u32-is-cased-tests: New file.
35778         * tests/unicase/test-u32-is-cased.c: New file.
35779
35780         Tests for module 'unicase/u16-is-cased'.
35781         * modules/unicase/u16-is-cased-tests: New file.
35782         * tests/unicase/test-u16-is-cased.c: New file.
35783
35784         Tests for module 'unicase/u8-is-cased'.
35785         * modules/unicase/u8-is-cased-tests: New file.
35786         * tests/unicase/test-u8-is-cased.c: New file.
35787         * tests/unicase/test-is-cased.h: New file.
35788
35789         New module 'unicase/u32-is-cased'.
35790         * lib/unicase/u32-is-cased.c: New file.
35791         * modules/unicase/u32-is-cased: New file.
35792
35793         New module 'unicase/u16-is-cased'.
35794         * lib/unicase/u16-is-cased.c: New file.
35795         * modules/unicase/u16-is-cased: New file.
35796
35797         New module 'unicase/u8-is-cased'.
35798         * lib/unicase/u8-is-cased.c: New file.
35799         * lib/unicase/u-is-cased.h: New file.
35800         * modules/unicase/u8-is-cased: New file.
35801
35802         Tests for module 'unicase/u32-is-casefolded'.
35803         * modules/unicase/u32-is-casefolded-tests: New file.
35804         * tests/unicase/test-u32-is-casefolded.c: New file.
35805
35806         Tests for module 'unicase/u16-is-casefolded'.
35807         * modules/unicase/u16-is-casefolded-tests: New file.
35808         * tests/unicase/test-u16-is-casefolded.c: New file.
35809
35810         Tests for module 'unicase/u8-is-casefolded'.
35811         * modules/unicase/u8-is-casefolded-tests: New file.
35812         * tests/unicase/test-u8-is-casefolded.c: New file.
35813         * tests/unicase/test-is-casefolded.h: New file.
35814
35815         New module 'unicase/u32-is-casefolded'.
35816         * lib/unicase/u32-is-casefolded.c: New file.
35817         * modules/unicase/u32-is-casefolded: New file.
35818
35819         New module 'unicase/u16-is-casefolded'.
35820         * lib/unicase/u16-is-casefolded.c: New file.
35821         * modules/unicase/u16-is-casefolded: New file.
35822
35823         New module 'unicase/u8-is-casefolded'.
35824         * lib/unicase/u8-is-casefolded.c: New file.
35825         * modules/unicase/u8-is-casefolded: New file.
35826
35827         Tests for module 'unicase/u32-is-titlecase'.
35828         * modules/unicase/u32-is-titlecase-tests: New file.
35829         * tests/unicase/test-u32-is-titlecase.c: New file.
35830
35831         Tests for module 'unicase/u16-is-titlecase'.
35832         * modules/unicase/u16-is-titlecase-tests: New file.
35833         * tests/unicase/test-u16-is-titlecase.c: New file.
35834
35835         Tests for module 'unicase/u8-is-titlecase'.
35836         * modules/unicase/u8-is-titlecase-tests: New file.
35837         * tests/unicase/test-u8-is-titlecase.c: New file.
35838         * tests/unicase/test-is-titlecase.h: New file.
35839
35840         New module 'unicase/u32-is-titlecase'.
35841         * lib/unicase/u32-is-titlecase.c: New file.
35842         * modules/unicase/u32-is-titlecase: New file.
35843
35844         New module 'unicase/u16-is-titlecase'.
35845         * lib/unicase/u16-is-titlecase.c: New file.
35846         * modules/unicase/u16-is-titlecase: New file.
35847
35848         New module 'unicase/u8-is-titlecase'.
35849         * lib/unicase/u8-is-titlecase.c: New file.
35850         * modules/unicase/u8-is-titlecase: New file.
35851
35852         Tests for module 'unicase/u32-is-lowercase'.
35853         * modules/unicase/u32-is-lowercase-tests: New file.
35854         * tests/unicase/test-u32-is-lowercase.c: New file.
35855
35856         Tests for module 'unicase/u16-is-lowercase'.
35857         * modules/unicase/u16-is-lowercase-tests: New file.
35858         * tests/unicase/test-u16-is-lowercase.c: New file.
35859
35860         Tests for module 'unicase/u8-is-lowercase'.
35861         * modules/unicase/u8-is-lowercase-tests: New file.
35862         * tests/unicase/test-u8-is-lowercase.c: New file.
35863         * tests/unicase/test-is-lowercase.h: New file.
35864
35865         New module 'unicase/u32-is-lowercase'.
35866         * lib/unicase/u32-is-lowercase.c: New file.
35867         * modules/unicase/u32-is-lowercase: New file.
35868
35869         New module 'unicase/u16-is-lowercase'.
35870         * lib/unicase/u16-is-lowercase.c: New file.
35871         * modules/unicase/u16-is-lowercase: New file.
35872
35873         New module 'unicase/u8-is-lowercase'.
35874         * lib/unicase/u8-is-lowercase.c: New file.
35875         * modules/unicase/u8-is-lowercase: New file.
35876
35877         Tests for module 'unicase/u32-is-uppercase'.
35878         * modules/unicase/u32-is-uppercase-tests: New file.
35879         * tests/unicase/test-u32-is-uppercase.c: New file.
35880
35881         Tests for module 'unicase/u16-is-uppercase'.
35882         * modules/unicase/u16-is-uppercase-tests: New file.
35883         * tests/unicase/test-u16-is-uppercase.c: New file.
35884
35885         Tests for module 'unicase/u8-is-uppercase'.
35886         * modules/unicase/u8-is-uppercase-tests: New file.
35887         * tests/unicase/test-u8-is-uppercase.c: New file.
35888         * tests/unicase/test-is-uppercase.h: New file.
35889
35890         New module 'unicase/u32-is-uppercase'.
35891         * lib/unicase/u32-is-uppercase.c: New file.
35892         * modules/unicase/u32-is-uppercase: New file.
35893
35894         New module 'unicase/u16-is-uppercase'.
35895         * lib/unicase/u16-is-uppercase.c: New file.
35896         * modules/unicase/u16-is-uppercase: New file.
35897
35898         New module 'unicase/u8-is-uppercase'.
35899         * lib/unicase/u8-is-uppercase.c: New file.
35900         * modules/unicase/u8-is-uppercase: New file.
35901
35902         New module 'unicase/u32-is-invariant'.
35903         * lib/unicase/u32-is-invariant.c: New file.
35904         * modules/unicase/u32-is-invariant: New file.
35905
35906         New module 'unicase/u16-is-invariant'.
35907         * lib/unicase/u16-is-invariant.c: New file.
35908         * modules/unicase/u16-is-invariant: New file.
35909
35910         New module 'unicase/u8-is-invariant'.
35911         * lib/unicase/u8-is-invariant.c: New file.
35912         * lib/unicase/invariant.h: New file.
35913         * lib/unicase/u-is-invariant.h: New file.
35914         * modules/unicase/u8-is-invariant: New file.
35915
35916         Tests for module 'unicase/u32-casecoll'.
35917         * modules/unicase/u32-casecoll-tests: New file.
35918         * tests/unicase/test-u32-casecoll.c: New file.
35919
35920         Tests for module 'unicase/u16-casecoll'.
35921         * modules/unicase/u16-casecoll-tests: New file.
35922         * tests/unicase/test-u16-casecoll.c: New file.
35923
35924         Tests for module 'unicase/u8-casecoll'.
35925         * modules/unicase/u8-casecoll-tests: New file.
35926         * tests/unicase/test-u8-casecoll.c: New file.
35927
35928         New module 'unicase/u32-casecoll'.
35929         * lib/unicase/u32-casecoll.c: New file.
35930         * modules/unicase/u32-casecoll: New file.
35931
35932         New module 'unicase/u16-casecoll'.
35933         * lib/unicase/u16-casecoll.c: New file.
35934         * modules/unicase/u16-casecoll: New file.
35935
35936         New module 'unicase/u8-casecoll'.
35937         * lib/unicase/u8-casecoll.c: New file.
35938         * lib/unicase/u-casecoll.h: New file.
35939         * modules/unicase/u8-casecoll: New file.
35940
35941         New module 'unicase/u32-casexfrm'.
35942         * lib/unicase/u32-casexfrm.c: New file.
35943         * modules/unicase/u32-casexfrm: New file.
35944
35945         New module 'unicase/u16-casexfrm'.
35946         * lib/unicase/u16-casexfrm.c: New file.
35947         * modules/unicase/u16-casexfrm: New file.
35948
35949         New module 'unicase/u8-casexfrm'.
35950         * lib/unicase/u8-casexfrm.c: New file.
35951         * lib/unicase/u-casexfrm.h: New file.
35952         * modules/unicase/u8-casexfrm: New file.
35953
35954         Tests for module 'unicase/u32-casecmp'.
35955         * modules/unicase/u32-casecmp-tests: New file.
35956         * tests/unicase/test-u32-casecmp.c: New file.
35957
35958         Tests for module 'unicase/u16-casecmp'.
35959         * modules/unicase/u16-casecmp-tests: New file.
35960         * tests/unicase/test-u16-casecmp.c: New file.
35961
35962         Tests for module 'unicase/u8-casecmp'.
35963         * modules/unicase/u8-casecmp-tests: New file.
35964         * tests/unicase/test-u8-casecmp.c: New file.
35965         * tests/unicase/test-casecmp.h: New file.
35966
35967         New module 'unicase/u32-casecmp'.
35968         * lib/unicase/u32-casecmp.c: New file.
35969         * modules/unicase/u32-casecmp: New file.
35970
35971         New module 'unicase/u16-casecmp'.
35972         * lib/unicase/u16-casecmp.c: New file.
35973         * modules/unicase/u16-casecmp: New file.
35974
35975         New module 'unicase/u8-casecmp'.
35976         * lib/unicase/u8-casecmp.c: New file.
35977         * lib/unicase/u-casecmp.h: New file.
35978         * modules/unicase/u8-casecmp: New file.
35979
35980         Tests for module 'unicase/u32-casefold'.
35981         * modules/unicase/u32-casefold-tests: New file.
35982         * tests/unicase/test-u32-casefold.c: New file.
35983
35984         Tests for module 'unicase/u16-casefold'.
35985         * modules/unicase/u16-casefold-tests: New file.
35986         * tests/unicase/test-u16-casefold.c: New file.
35987
35988         Tests for module 'unicase/u8-casefold'.
35989         * modules/unicase/u8-casefold-tests: New file.
35990         * tests/unicase/test-u8-casefold.c: New file.
35991
35992         New module 'unicase/u32-casefold'.
35993         * lib/unicase/u32-casefold.c: New file.
35994         * modules/unicase/u32-casefold: New file.
35995
35996         New module 'unicase/u16-casefold'.
35997         * lib/unicase/u16-casefold.c: New file.
35998         * modules/unicase/u16-casefold: New file.
35999
36000         New module 'unicase/u8-casefold'.
36001         * lib/unicase/u8-casefold.c: New file.
36002         * lib/unicase/u-casefold.h: New file.
36003         * modules/unicase/u8-casefold: New file.
36004
36005         New module 'unicase/tocasefold'.
36006         * lib/unicase/casefold.h: New file.
36007         * lib/unicase/tocasefold.c: New file.
36008         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
36009         * modules/unicase/tocasefold: New file.
36010
36011         Tests for module 'unicase/u32-totitle'.
36012         * modules/unicase/u32-totitle-tests: New file.
36013         * tests/unicase/test-u32-totitle.c: New file.
36014
36015         Tests for module 'unicase/u16-totitle'.
36016         * modules/unicase/u16-totitle-tests: New file.
36017         * tests/unicase/test-u16-totitle.c: New file.
36018
36019         Tests for module 'unicase/u8-totitle'.
36020         * modules/unicase/u8-totitle-tests: New file.
36021         * tests/unicase/test-u8-totitle.c: New file.
36022
36023         New module 'unicase/u32-totitle'.
36024         * lib/unicase/u32-totitle.c: New file.
36025         * modules/unicase/u32-totitle: New file.
36026
36027         New module 'unicase/u16-totitle'.
36028         * lib/unicase/u16-totitle.c: New file.
36029         * modules/unicase/u16-totitle: New file.
36030
36031         New module 'unicase/u8-totitle'.
36032         * lib/unicase/u8-totitle.c: New file.
36033         * lib/unicase/u-totitle.h: New file.
36034         * modules/unicase/u8-totitle: New file.
36035
36036         Tests for module 'unicase/u32-tolower'.
36037         * modules/unicase/u32-tolower-tests: New file.
36038         * tests/unicase/test-u32-tolower.c: New file.
36039
36040         Tests for module 'unicase/u16-tolower'.
36041         * modules/unicase/u16-tolower-tests: New file.
36042         * tests/unicase/test-u16-tolower.c: New file.
36043
36044         Tests for module 'unicase/u8-tolower'.
36045         * modules/unicase/u8-tolower-tests: New file.
36046         * tests/unicase/test-u8-tolower.c: New file.
36047
36048         New module 'unicase/u32-tolower'.
36049         * lib/unicase/u32-tolower.c: New file.
36050         * modules/unicase/u32-tolower: New file.
36051
36052         New module 'unicase/u16-tolower'.
36053         * lib/unicase/u16-tolower.c: New file.
36054         * modules/unicase/u16-tolower: New file.
36055
36056         New module 'unicase/u8-tolower'.
36057         * lib/unicase/u8-tolower.c: New file.
36058         * modules/unicase/u8-tolower: New file.
36059
36060         Tests for module 'unicase/u32-toupper'.
36061         * modules/unicase/u32-toupper-tests: New file.
36062         * tests/unicase/test-u32-toupper.c: New file.
36063
36064         Tests for module 'unicase/u16-toupper'.
36065         * modules/unicase/u16-toupper-tests: New file.
36066         * tests/unicase/test-u16-toupper.c: New file.
36067
36068         Tests for module 'unicase/u8-toupper'.
36069         * modules/unicase/u8-toupper-tests: New file.
36070         * tests/unicase/test-u8-toupper.c: New file.
36071
36072         New module 'unicase/u32-toupper'.
36073         * lib/unicase/u32-toupper.c: New file.
36074         * modules/unicase/u32-toupper: New file.
36075
36076         New module 'unicase/u16-toupper'.
36077         * lib/unicase/u16-toupper.c: New file.
36078         * modules/unicase/u16-toupper: New file.
36079
36080         New module 'unicase/u8-toupper'.
36081         * lib/unicase/u8-toupper.c: New file.
36082         * modules/unicase/u8-toupper: New file.
36083
36084         New module 'unicase/u32-casemap'.
36085         * lib/unicase/u32-casemap.c: New file.
36086         * modules/unicase/u32-casemap: New file.
36087
36088         New module 'unicase/u16-casemap'.
36089         * lib/unicase/u16-casemap.c: New file.
36090         * modules/unicase/u16-casemap: New file.
36091
36092         New module 'unicase/u8-casemap'.
36093         * lib/unicase/unicasemap.h: New file.
36094         * lib/unicase/u8-casemap.c: New file.
36095         * lib/unicase/u-casemap.h: New file.
36096         * modules/unicase/u8-casemap: New file.
36097
36098         New module 'unicase/special-casing'.
36099         * lib/unicase/special-casing.h: New file.
36100         * lib/unicase/special-casing.c: New file.
36101         * lib/unicase/special-casing-table.gperf: New file, generated by
36102         gen-uni-tables.c.
36103         * modules/unicase/special-casing: New file.
36104
36105         Tests for module 'unicase/locale-language'.
36106         * modules/unicase/locale-language-tests: New file.
36107         * tests/unicase/test-locale-language.sh: New file.
36108         * tests/unicase/test-locale-language.c: New file.
36109
36110         New module 'unicase/locale-language'.
36111         * lib/unicase/locale-language.c: New file.
36112         * lib/unicase/locale-languages.gperf: New file.
36113         * modules/unicase/locale-language: New file.
36114
36115         Generate more tables for case conversion and case folding.
36116         * lib/gen-uni-tables.c (SCC_*): New enum items.
36117         (struct special_casing_rule): New type.
36118         (casing_rules, num_casing_rules, allocated_casing_rules): New
36119         variables.
36120         (add_casing_rule, fill_casing_rules): New functions.
36121         (struct casefold_rule): New type.
36122         (casefolding_rules, num_casefolding_rules,
36123         allocated_casefolding_rules): New variables.
36124         (fill_casefolding_rules): New function.
36125         (unicode_casefold): New variable.
36126         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
36127         sort_casing_rules, output_casing_rules): New functions.
36128         (main): Accept to more arguments: SpecialCasing.txt and
36129         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
36130         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
36131         Output mapping for casefolding.
36132
36133         * lib/unicase.h: Include stdbool.h, uninorm.h.
36134         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
36135         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
36136         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
36137         arguments.
36138         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
36139         resultp arguments.
36140         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
36141         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
36142         resultp arguments.
36143         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
36144         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
36145         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
36146         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
36147         declarations.
36148         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
36149
36150 2009-03-08  Bruno Haible  <bruno@clisp.org>
36151
36152         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36153         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
36154         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
36155         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36156
36157 2009-03-07  Bruno Haible  <bruno@clisp.org>
36158
36159         Adjust u*_normcmp, u*_normcoll API.
36160         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
36161         u16_normcoll, u32_normcoll): Change failure conventions.
36162         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
36163         errno and return -1.
36164         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
36165
36166 2009-03-07  Bruno Haible  <bruno@clisp.org>
36167
36168         Tests for module 'uninorm/u32-normcoll'.
36169         * modules/uninorm/u32-normcoll-tests: New file.
36170         * tests/uninorm/test-u32-normcoll.c: New file.
36171
36172         Tests for module 'uninorm/u16-normcoll'.
36173         * modules/uninorm/u16-normcoll-tests: New file.
36174         * tests/uninorm/test-u16-normcoll.c: New file.
36175
36176         Tests for module 'uninorm/u8-normcoll'.
36177         * modules/uninorm/u8-normcoll-tests: New file.
36178         * tests/uninorm/test-u8-normcoll.c: New file.
36179
36180 2009-03-07  Bruno Haible  <bruno@clisp.org>
36181
36182         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
36183         tests/uninorm/test-u32-normcmp.c.
36184         * tests/uninorm/test-u32-normcmp.c: Include it.
36185         (test_nonascii): New function, extracted from main. Add some more
36186         tests.
36187         (main): Invoke test_ascii and test_nonascii.
36188         * modules/uninorm/u32-normcmp-tests (Files): Add
36189         tests/uninorm/test-u32-normcmp.h.
36190         (Depends-on): Remove uninorm/u32-normcmp.
36191
36192         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
36193         tests/uninorm/test-u16-normcmp.c.
36194         * tests/uninorm/test-u16-normcmp.c: Include it.
36195         (test_nonascii): New function, extracted from main. Add some more
36196         tests.
36197         (main): Invoke test_ascii and test_nonascii.
36198         * modules/uninorm/u16-normcmp-tests (Files): Add
36199         tests/uninorm/test-u16-normcmp.h.
36200         (Depends-on): Remove uninorm/u16-normcmp.
36201
36202         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
36203         tests/uninorm/test-u8-normcmp.c.
36204         * tests/uninorm/test-u8-normcmp.c: Include it.
36205         (test_nonascii): New function, extracted from main. Add some more
36206         tests.
36207         (main): Invoke test_ascii and test_nonascii.
36208         * modules/uninorm/u8-normcmp-tests (Files): Add
36209         tests/uninorm/test-u8-normcmp.h.
36210         (Depends-on): Remove uninorm/u8-normcmp.
36211
36212 2009-03-07  Bruno Haible  <bruno@clisp.org>
36213
36214         New module 'uninorm/u32-normcoll'.
36215         * lib/uninorm/u32-normcoll.c: New file.
36216         * modules/uninorm/u32-normcoll: New file.
36217
36218         New module 'uninorm/u16-normcoll'.
36219         * lib/uninorm/u16-normcoll.c: New file.
36220         * modules/uninorm/u16-normcoll: New file.
36221
36222         New module 'uninorm/u8-normcoll'.
36223         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
36224         declarations.
36225         * lib/uninorm/u8-normcoll.c: New file.
36226         * lib/uninorm/u-normcoll.h: New file.
36227         * modules/uninorm/u8-normcoll: New file.
36228
36229         New module 'uninorm/u32-normxfrm'.
36230         * lib/uninorm/u32-normxfrm.c: New file.
36231         * modules/uninorm/u32-normxfrm: New file.
36232
36233         New module 'uninorm/u16-normxfrm'.
36234         * lib/uninorm/u16-normxfrm.c: New file.
36235         * modules/uninorm/u16-normxfrm: New file.
36236
36237         New module 'uninorm/u8-normxfrm'.
36238         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
36239         declarations.
36240         * lib/uninorm/u8-normxfrm.c: New file.
36241         * lib/uninorm/u-normxfrm.h: New file.
36242         * modules/uninorm/u8-normxfrm: New file.
36243
36244 2009-03-07  Bruno Haible  <bruno@clisp.org>
36245
36246         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
36247         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
36248         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
36249
36250 2009-03-07  Bruno Haible  <bruno@clisp.org>
36251
36252         New module 'memxfrm'.
36253         * lib/memxfrm.h: New file.
36254         * lib/memxfrm.c: New file.
36255         * modules/memxfrm: New file.
36256
36257 2009-03-07  Bruno Haible  <bruno@clisp.org>
36258
36259         New module 'memcmp2'.
36260         * lib/memcmp2.h: New file.
36261         * lib/memcmp2.c: New file.
36262         * modules/memcmp2: New file.
36263
36264 2009-03-07  Bruno Haible  <bruno@clisp.org>
36265
36266         Tests for module 'uninorm/decomposing-form'.
36267         * modules/uninorm/decomposing-form-tests: New file.
36268         * tests/uninorm/test-decomposing-form.c: New file.
36269
36270         New module 'uninorm/decomposing-form'.
36271         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
36272         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
36273         Add 'decomposing_variant' field.
36274         * lib/uninorm/decomposing-form.c: New file.
36275         * lib/uninorm/nfc.c (uninorm_nfc): Update.
36276         * lib/uninorm/nfd.c (uninorm_nfd): Update.
36277         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
36278         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
36279         * modules/uninorm/decomposing-form: New file.
36280         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
36281         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
36282
36283 2009-03-07  Bruno Haible  <bruno@clisp.org>
36284
36285         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
36286         strings.
36287
36288 2009-03-06  Bruno Haible  <bruno@clisp.org>
36289
36290         Tests for module 'uninorm/u32-normcmp'.
36291         * tests/uninorm/test-u32-normcmp.c: New file.
36292         * modules/uninorm/u32-normcmp-tests: New file.
36293
36294         Tests for module 'uninorm/u16-normcmp'.
36295         * tests/uninorm/test-u16-normcmp.c: New file.
36296         * modules/uninorm/u16-normcmp-tests: New file.
36297
36298         Tests for module 'uninorm/u8-normcmp'.
36299         * tests/uninorm/test-u8-normcmp.c: New file.
36300         * modules/uninorm/u8-normcmp-tests: New file.
36301
36302         New module 'uninorm/u32-normcmp'.
36303         * lib/uninorm/u32-normcmp.c: New file.
36304         * modules/uninorm/u32-normcmp: New file.
36305
36306         New module 'uninorm/u16-normcmp'.
36307         * lib/uninorm/u16-normcmp.c: New file.
36308         * modules/uninorm/u16-normcmp: New file.
36309
36310         New module 'uninorm/u8-normcmp'.
36311         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
36312         declarations.
36313         * lib/uninorm/u8-normcmp.c: New file.
36314         * lib/uninorm/u-normcmp.h: New file.
36315         * modules/uninorm/u8-normcmp: New file.
36316
36317 2009-03-06  Bruno Haible  <bruno@clisp.org>
36318
36319         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
36320         Reported by Eric Blake.
36321
36322 2009-03-06  Eric Blake  <ebb9@byu.net>
36323             Bruno Haible  <bruno@clisp.org>
36324
36325         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
36326         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
36327         condition.
36328         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36329         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
36330         condition.
36331         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
36332
36333 2009-03-06  Eric Blake  <ebb9@byu.net>
36334
36335         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
36336         to avoid compiler warnings.
36337         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
36338
36339 2009-03-05  Bruno Haible  <bruno@clisp.org>
36340
36341         * tests/test-ftell.c (main): Disable test beyond end of file on
36342         FreeMiNT.
36343         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36344
36345 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
36346
36347         * lib/filevercmp.c: Move hidden files up in ordering.
36348         * tests/test-filevercmp.c: Add tests for hidden files.
36349
36350 2009-03-04  Bruno Haible  <bruno@clisp.org>
36351
36352         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
36353         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
36354         AM_CFLAGS.
36355         Reported by Simon Josefsson.
36356
36357 2009-03-03  Bruno Haible  <bruno@clisp.org>
36358
36359         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
36360         Reported by Simon Josefsson.
36361
36362         * doc/ld-version-script.texi: Update node reference.
36363
36364 2009-03-03  Bruno Haible  <bruno@clisp.org>
36365
36366         * modules/visibility (License): Change to 'unlimited'.
36367         Suggested by Simon Josefsson.
36368
36369 2009-03-03  Jim Meyering  <meyering@redhat.com>
36370
36371         unlinkdir: cannot_unlink_dir may modify process state
36372         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
36373         it's neither thread-safe nor appropriate for use in a library.
36374
36375 2009-03-03  Eric Blake  <ebb9@byu.net>
36376
36377         test-closein: silence test under Darwin
36378         * tests/test-closein.sh: Ignore stderr from cat, since we don't
36379         care if it dies from EPIPE or EBADF.
36380
36381 2009-03-03  Bruno Haible  <bruno@clisp.org>
36382
36383         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
36384         earlier.
36385         * doc/visibility.texi: Fix @node and @section.
36386
36387 2009-03-03  Simon Josefsson  <simon@josefsson.org>
36388
36389         * doc/gnulib.texi: Link to sections for ld version script and
36390         visibility.
36391         * doc/visibility.texi: Add @node and @section.
36392         * modules/ld-version-script: New module.
36393         * m4/ld-version-script.m4: New file.
36394         * doc/ld-version-script.texi: New file.
36395
36396 2009-03-02  David Lutterkort  <lutter@redhat.com>
36397
36398         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
36399         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36400
36401 2009-03-02  Bruno Haible  <bruno@clisp.org>
36402
36403         * doc/visibility.texi: Mention libtool's -export-symbols option.
36404
36405 2009-03-02  Jim Meyering  <meyering@redhat.com>
36406
36407         announce-gen: new option: --no-print-checksums
36408         * build-aux/announce-gen (usage): Describe it.
36409         (print_checksums): Print a newline here, not in the [*] footnote.
36410         (main): Honor it.
36411
36412 2009-03-01  Bruno Haible  <bruno@clisp.org>
36413
36414         Use socklen_t in the native Windows replacements prototypes.
36415         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
36416         instead of 'int'.
36417         * lib/getsockopt.c (rpl_getsockopt): Likewise.
36418         * lib/setsockopt.c (rpl_setsockopt): Likewise.
36419         * modules/getsockopt (Depends-on): Add socklen.
36420         * modules/setsockopt (Depends-on): Add socklen.
36421
36422 2009-03-01  Bruno Haible  <bruno@clisp.org>
36423
36424         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
36425         least 4.2.
36426
36427 2009-03-01  Eric Blake  <ebb9@byu.net>
36428             Bruno Haible  <bruno@clisp.org>
36429
36430         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
36431         error messages.
36432         * lib/wait-process.c (wait_subprocess): Omit error message about
36433         deadly signal sent to the child of termsigp != NULL.
36434
36435 2009-03-01  Eric Blake  <ebb9@byu.net>
36436
36437         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
36438
36439 2009-03-01  Bruno Haible  <bruno@clisp.org>
36440
36441         Avoid a gcc warning.
36442         * tests/test-sched.c (b): Make global.
36443         Reported by Eric Blake.
36444
36445 2009-01-19  Martin Lambers  <marlam@marlam.de>
36446
36447         Provide POSIX semantics for socket timeout options on W32.
36448         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
36449         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
36450         * modules/setsockopt: Depend on sys_time module for struct timeval.
36451         * modules/getsockopt: Depend on sys_time module for struct timeval.
36452
36453 2009-03-01  Simon Josefsson  <simon@josefsson.org>
36454
36455         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
36456         __USE_GNU, for consistency with netdb.in.h.
36457         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36458
36459 2009-03-01  Bruno Haible  <bruno@clisp.org>
36460
36461         More support for FreeMiNT.
36462         * lib/fseeko.c (rpl_fseeko): Complete last commit.
36463         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36464
36465 2009-03-01  Bruno Haible  <bruno@clisp.org>
36466
36467         More support for FreeMiNT.
36468         * lib/fpurge.c (fpurge): Correct last commit.
36469         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36470
36471 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36472
36473         Fix unportable awk script in vc-list-files.
36474         * build-aux/vc-list-files: In the replacement awk script, use
36475         substr with a second argument of 1, not zero.
36476         Report by Simon Josefsson.
36477
36478 2009-02-28  Bruno Haible  <bruno@clisp.org>
36479
36480         More support for FreeMiNT.
36481         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
36482         to FreeMiNT today.
36483         * lib/fwriting.c (fwriting): Likewise.
36484         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
36485
36486 2009-02-28  Bruno Haible  <bruno@clisp.org>
36487
36488         * tests/test-freadseek.c (main): Disable test beyond end of file on
36489         FreeMiNT.
36490         * tests/test-ftello.c (main): Likewise.
36491         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
36492
36493 2009-02-28  Bruno Haible  <bruno@clisp.org>
36494
36495         Add tentative support for FreeMiNT.
36496         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
36497         * lib/fpurge.c (fpurge): Likewise.
36498         * lib/freadable.c (freadable): Likewise.
36499         * lib/freading.c (freading): Likewise.
36500         * lib/freadptr.c (freadptr): Likewise.
36501         * lib/freadseek.c (freadptrinc): Likewise.
36502         * lib/fseeko.c (rpl_fseeko): Likewise.
36503         * lib/fseterr.c (fseterr): Likewise.
36504         * lib/fwritable.c (fwritable): Likewise.
36505         * lib/fwriting.c (fwriting): Likewise.
36506         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
36507         Hourihane.
36508         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
36509
36510 2009-02-28  Bruno Haible  <bruno@clisp.org>
36511
36512         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
36513         SIGCHLD.
36514         Reported by Jim Meyering.
36515
36516 2009-02-28  Bruno Haible  <bruno@clisp.org>
36517
36518         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
36519         Mention the results of these tests on various platforms.
36520         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
36521         order.
36522         * doc/posix-functions/printf.texi: Likewise.
36523         * doc/posix-functions/snprintf.texi: Likewise.
36524         * doc/posix-functions/sprintf.texi: Likewise.
36525         * doc/posix-functions/vfprintf.texi: Likewise.
36526         * doc/posix-functions/vprintf.texi: Likewise.
36527         * doc/posix-functions/vsnprintf.texi: Likewise.
36528         * doc/posix-functions/vsprintf.texi: Likewise.
36529         * doc/glibc-functions/obstack_printf.texi: Likewise.
36530         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
36531
36532 2009-02-28  Bruno Haible  <bruno@clisp.org>
36533
36534         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
36535         Reported by Loïc Minier <lool@dooz.org>.
36536
36537 2009-02-27  Bruno Haible  <bruno@clisp.org>
36538
36539         * gnulib-tool (func_import): Make the sed expression used to create the
36540         sed script for updating the .gitignore file POSIX compliant.
36541         Reported by Eric Blake.
36542
36543 2009-02-27  Bruno Haible  <bruno@clisp.org>
36544
36545         * gnulib-tool (sed): Don't alias as "sed --posix".
36546         Reported by Eric Blake.
36547
36548 2009-02-27  Bruno Haible  <bruno@clisp.org>
36549
36550         Avoid test link errors.
36551         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
36552         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
36553         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
36554         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
36555         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36556
36557 2009-02-27  Bruno Haible  <bruno@clisp.org>
36558
36559         Avoid spurious "(cached)" in configure output.
36560         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
36561         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
36562         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
36563         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
36564         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
36565         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
36566         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
36567         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
36568         Reported by Eric Blake.
36569
36570 2009-02-27  Eric Blake  <ebb9@byu.net>
36571
36572         printf: fix regression in previous patch
36573         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
36574
36575 2009-02-27  Bruno Haible  <bruno@clisp.org>
36576
36577         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
36578         value.
36579         * lib/stdint.in.h: Likewise.
36580         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
36581
36582 2009-02-27  Eric Blake  <ebb9@byu.net>
36583
36584         doc: mention more functions added in cygwin 1.7.0
36585         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
36586         addition.
36587         * doc/posix-functions/open_wmemstream.texi: Likewise.
36588         * doc/posix-functions/wcsnlen.texi: Likewise.
36589         * doc/posix-functions/wcsnrtombs.texi: Likewise.
36590         * doc/posix-functions/wcstod.texi: Likewise.
36591         * doc/posix-functions/wcstof.texi: Likewise.
36592         * doc/posix-functions/wcstoimax.texi: Likewise.
36593         * doc/posix-functions/wcstok.texi: Likewise.
36594         * doc/posix-functions/wcstoumax.texi: Likewise.
36595
36596         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
36597         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
36598         * doc/posix-functions/fprintf.texi: Update.
36599         * doc/posix-functions/printf.texi: Update.
36600         * doc/posix-functions/snprintf.texi: Update.
36601         * doc/posix-functions/sprintf.texi: Update.
36602         * doc/posix-functions/vfprintf.texi: Update.
36603         * doc/posix-functions/vprintf.texi: Update.
36604         * doc/posix-functions/vsnprintf.texi: Update.
36605         * doc/posix-functions/vsprintf.texi: Update.
36606         * doc/glibc-functions/obstack_printf.texi: Update.
36607         * doc/glibc-functions/obstack_vprintf.texi: Update.
36608
36609 2009-02-26  Eric Blake  <ebb9@byu.net>
36610
36611         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
36612         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
36613         compilation bug by using runtime conversion.
36614         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
36615         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
36616         * modules/ceill-tests (Files): Use nan.h.
36617         * modules/floorl-tests (Files): Likewise.
36618         * modules/frexpl-tests (Files): Likewise.
36619         * modules/isnanl-tests (Files): Likewise.
36620         * modules/ldexpl-tests (Files): Likewise.
36621         * modules/roundl-tests (Files): Likewise.
36622         * modules/truncl-tests (Files): Likewise.
36623         * tests/test-ceill.c (main): Use a working NaN.
36624         * tests/test-floorl.c (main): Likewise.
36625         * tests/test-frexpl.c (main): Likewise.
36626         * tests/test-isnan.c (test_long_double): Likewise.
36627         * tests/test-isnanl.h (main): Likewise.
36628         * tests/test-ldexpl.h (main): Likewise.
36629         * tests/test-roundl.h (main): Likewise.
36630         * tests/test-truncl.h (main): Likewise.
36631         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
36632
36633 2009-02-26  Eric Blake  <ebb9@byu.net>
36634             Bruno Haible  <bruno@clisp.org>
36635
36636         Work around a *printf bug with %ls on Solaris.
36637         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
36638         precision is specified, sprintf stops converting the wide string
36639         argument when the number of bytes that have been produced by this
36640         conversion equals or exceeds the precision.
36641         * doc/posix-functions/fprintf.texi: Update.
36642         * doc/posix-functions/printf.texi: Update.
36643         * doc/posix-functions/snprintf.texi: Update.
36644         * doc/posix-functions/sprintf.texi: Update.
36645         * doc/posix-functions/vfprintf.texi: Update.
36646         * doc/posix-functions/vprintf.texi: Update.
36647         * doc/posix-functions/vsnprintf.texi: Update.
36648         * doc/posix-functions/vsprintf.texi: Update.
36649         * doc/glibc-functions/obstack_printf.texi: Update.
36650         * doc/glibc-functions/obstack_vprintf.texi: Update.
36651
36652 2009-02-26  Eric Blake  <ebb9@byu.net>
36653
36654         stdlib: favor compiler check of random.h
36655         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
36656         to avoid an ObjC random.h installed by Swarm.
36657
36658 2009-02-26  Bruno Haible  <bruno@clisp.org>
36659
36660         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
36661         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
36662         Reported by Gary V. Vaughan <gary@gnu.org>.
36663
36664 2009-02-26  Bruno Haible  <bruno@clisp.org>
36665
36666         Fix *printf behaviour regarding the %ls directive.
36667         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
36668         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
36669         NEED_PRINTF_DIRECTIVE_LS.
36670         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
36671         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
36672         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
36673         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
36674         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
36675         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
36676         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
36677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
36678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
36679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
36680         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
36681         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
36682         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
36683         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
36684         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
36685         * doc/posix-functions/fprintf.texi: Update.
36686         * doc/posix-functions/printf.texi: Update.
36687         * doc/posix-functions/snprintf.texi: Update.
36688         * doc/posix-functions/sprintf.texi: Update.
36689         * doc/posix-functions/vfprintf.texi: Update.
36690         * doc/posix-functions/vprintf.texi: Update.
36691         * doc/posix-functions/vsnprintf.texi: Update.
36692         * doc/posix-functions/vsprintf.texi: Update.
36693         * doc/glibc-functions/obstack_printf.texi: Update.
36694         * doc/glibc-functions/obstack_vprintf.texi: Update.
36695         Reported by Eric Blake.
36696
36697 2009-02-25  Bruno Haible  <bruno@clisp.org>
36698
36699         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
36700         with known value.
36701         Reported by Gary V. Vaughan <gary@gnu.org>.
36702
36703 2009-02-25  Bruno Haible  <bruno@clisp.org>
36704
36705         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
36706         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
36707         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
36708         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
36709         Reported by Gary V. Vaughan <gary@gnu.org>.
36710
36711 2009-02-25  Bruno Haible  <bruno@clisp.org>
36712
36713         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
36714         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
36715         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
36716         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
36717         Reported by Gary V. Vaughan <gary@gnu.org>.
36718
36719 2009-02-25  Eric Blake  <ebb9@byu.net>
36720
36721         tests: skip fseek/ftell tests if ungetc is broken
36722         * m4/ungetc.m4: New file.
36723         * modules/fseek-tests: Split test, so ungetc dependency is
36724         separate from rest of test.
36725         * modules/fseeko-tests: Likewise.
36726         * modules/ftell-tests: Likewise.
36727         * modules/ftello-tests: Likewise.
36728         * tests/test-fseek.c (main): Isolate ungetc dependency.
36729         * tests/test-fseeko.c (main): Likewise.
36730         * tests/test-ftell.c (main): Likewise.
36731         * tests/test-ftello.c (main): Likewise.
36732         * tests/test-fseek2.sh: New file.
36733         * tests/test-fseeko2.sh: Likewise.
36734         * tests/test-ftell2.sh: Likewise.
36735         * tests/test-ftello2.sh: Likewise.
36736
36737 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
36738
36739         test-getaddrinfo: fix usage of skip return code 77
36740         * tests/test-gettaddrinfo.c: Return skip code 77 only
36741         for first occurance of skip (4x77 is not 77)
36742
36743 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
36744
36745         strtod: avoid C99 decl-after-statement
36746         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
36747
36748 2009-02-24  Eric Blake  <ebb9@byu.net>
36749
36750         strtod: detect HP-UX 11.31 bug
36751         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
36752         Reported by Gary V. Vaughan.
36753
36754 2009-02-23  Bruno Haible  <bruno@clisp.org>
36755
36756         Fix invalid read past end of memory block.
36757         * lib/vasnprintf.c (DCHAR_SET): Define.
36758         (local_wcslen): Define only when needed.
36759         (local_strnlen, local_wcsnlen): New functions.
36760         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
36761         directives that involve a conversion ourselves.
36762         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
36763         wcsnlen, mbrtowc, wcrtomb.
36764         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
36765         * tests/test-vasprintf-posix.c (test_function): Likewise.
36766         * tests/test-snprintf-posix.h (test_function): Likewise.
36767         * tests/test-sprintf-posix.h (test_function): Likewise.
36768         Reported by Ben Pfaff <blp@cs.stanford.edu>.
36769
36770 2009-02-22  Bruno Haible  <bruno@clisp.org>
36771
36772         Implement new clarified decomposition of Hangul syllables.
36773         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
36774         of type LTV, return only a pairwise decomposition.
36775         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
36776         Likewise.
36777         * tests/uninorm/test-decomposition.c (main): Updated expected result.
36778         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
36779         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
36780
36781 2009-02-22  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
36784         zero-length results and shrink excess allocated memory.
36785         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
36786         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
36787         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
36788         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
36789         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
36790         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
36791         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
36792         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
36793         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
36794         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
36795         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
36796         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
36797
36798 2009-02-21  Bruno Haible  <bruno@clisp.org>
36799
36800         * doc/gnulib.texi: Include safe-alloc.texi earlier.
36801         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
36802         spaces after a period. Put a space between a macro name and its
36803         argument list. Trivial rewordings.
36804         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
36805         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
36806         (main): Return 0 explicitly.
36807
36808 2009-02-21  Bruno Haible  <bruno@clisp.org>
36809
36810         Tests for module 'uninorm/filter'.
36811         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
36812         * modules/uninorm/filter-tests: New file.
36813
36814         New module 'uninorm/filter'.
36815         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
36816         uninorm_filter_flush, uninorm_filter_free): New declarations.
36817         * lib/uninorm/uninorm-filter.c: New file.
36818         * modules/uninorm/filter: New file.
36819
36820 2009-02-21  Bruno Haible  <bruno@clisp.org>
36821
36822         Tests for module 'uninorm/nfkc'.
36823         * tests/uninorm/test-nfkc.c: New file.
36824         * tests/uninorm/test-u8-nfkc.c: New file.
36825         * tests/uninorm/test-u16-nfkc.c: New file.
36826         * tests/uninorm/test-u32-nfkc.c: New file.
36827         * tests/uninorm/test-u32-nfkc-big.sh: New file.
36828         * tests/uninorm/test-u32-nfkc-big.c: New file.
36829         * modules/uninorm/nfkc-tests: New file.
36830
36831         New module 'uninorm/nfkc'.
36832         * lib/uninorm/nfkc.c: New file.
36833         * modules/uninorm/nfkc: New file.
36834
36835         Tests for module 'uninorm/nfkd'.
36836         * tests/uninorm/test-nfkd.c: New file.
36837         * tests/uninorm/test-u8-nfkd.c: New file.
36838         * tests/uninorm/test-u16-nfkd.c: New file.
36839         * tests/uninorm/test-u32-nfkd.c: New file.
36840         * tests/uninorm/test-u32-nfkd-big.sh: New file.
36841         * tests/uninorm/test-u32-nfkd-big.c: New file.
36842         * modules/uninorm/nfkd-tests: New file.
36843
36844         New module 'uninorm/nfkd'.
36845         * lib/uninorm/nfkd.c: New file.
36846         * modules/uninorm/nfkd: New file.
36847
36848         Tests for module 'uninorm/nfc'.
36849         * tests/uninorm/test-nfc.c: New file.
36850         * tests/uninorm/test-u8-nfc.c: New file.
36851         * tests/uninorm/test-u16-nfc.c: New file.
36852         * tests/uninorm/test-u32-nfc.c: New file.
36853         * tests/uninorm/test-u32-nfc-big.sh: New file.
36854         * tests/uninorm/test-u32-nfc-big.c: New file.
36855         * modules/uninorm/nfc-tests: New file.
36856
36857         New module 'uninorm/nfc'.
36858         * lib/uninorm/nfc.c: New file.
36859         * modules/uninorm/nfc: New file.
36860
36861         Tests for module 'uninorm/nfd'.
36862         * tests/uninorm/test-nfd.c: New file.
36863         * tests/uninorm/test-u8-nfd.c: New file.
36864         * tests/uninorm/test-u16-nfd.c: New file.
36865         * tests/uninorm/test-u32-nfd.c: New file.
36866         * tests/uninorm/test-u32-nfd-big.sh: New file.
36867         * tests/uninorm/test-u32-nfd-big.c: New file.
36868         * tests/uninorm/test-u32-normalize-big.h: New file.
36869         * tests/uninorm/test-u32-normalize-big.c: New file.
36870         * tests/uninorm/NormalizationTest.txt: New file, created from
36871         Unicode 5.1.0 NormalizationTest.txt.
36872         * modules/uninorm/nfd-tests: New file.
36873
36874         New module 'uninorm/nfd'.
36875         * lib/uninorm/nfd.c: New file.
36876         * modules/uninorm/nfd: New file.
36877
36878         New module 'uninorm/u32-normalize'.
36879         * lib/uninorm/u32-normalize.c: New file.
36880         * modules/uninorm/u32-normalize: New file.
36881
36882         New module 'uninorm/u16-normalize'.
36883         * lib/uninorm/u16-normalize.c: New file.
36884         * modules/uninorm/u16-normalize: New file.
36885
36886         New module 'uninorm/u8-normalize'.
36887         * lib/uninorm/u8-normalize.c: New file.
36888         * lib/uninorm/normalize-internal.h: New file.
36889         * lib/uninorm/u-normalize-internal.h: New file.
36890         * modules/uninorm/u8-normalize: New file.
36891
36892         New module 'uninorm/decompose-internal'.
36893         * lib/uninorm/decompose-internal.c: New file.
36894         * modules/uninorm/decompose-internal: New file.
36895
36896         Tests for module 'uninorm/composition'.
36897         * tests/uninorm/test-composition.c: New file.
36898         * modules/uninorm/composition-tests: New file.
36899
36900         New module 'uninorm/composition'.
36901         * lib/uninorm/composition.c: New file.
36902         * lib/uninorm/composition-table.gperf: New file, generated by
36903         gen-uni-tables.
36904         * modules/uninorm/composition: New file.
36905
36906         Tests for module 'uninorm/compat-decomposition'.
36907         * tests/uninorm/test-compat-decomposition.c: New file.
36908         * modules/uninorm/compat-decomposition-tests: New file.
36909
36910         New module 'uninorm/compat-decomposition'.
36911         * lib/uninorm/decompose-internal.h: New file.
36912         * lib/uninorm/compat-decomposition.c: New file.
36913         * modules/uninorm/compat-decomposition: New file.
36914
36915         Tests for module 'uninorm/canonical-decomposition'.
36916         * tests/uninorm/test-canonical-decomposition.c: New file.
36917         * modules/uninorm/canonical-decomposition-tests: New file.
36918
36919         New module 'uninorm/canonical-decomposition'.
36920         * lib/uninorm/canonical-decomposition.c: New file.
36921         * modules/uninorm/canonical-decomposition: New file.
36922
36923         Tests for module 'uninorm/decomposition'.
36924         * tests/uninorm/test-decomposition.c: New file.
36925         * modules/uninorm/decomposition-tests: New file.
36926
36927         New module 'uninorm/decomposition'.
36928         * lib/uninorm/decomposition.c: New file.
36929         * modules/uninorm/decomposition: New file.
36930
36931         New module 'uninorm/decomposition-table'.
36932         * lib/uninorm/decomposition-table.h: New file.
36933         * lib/uninorm/decomposition-table.c: New file.
36934         * lib/uninorm/decomposition-table1.h: New file, generated by
36935         gen-uni-tables.
36936         * lib/uninorm/decomposition-table2.h: New file, generated by
36937         gen-uni-tables.
36938         * modules/uninorm/decomposition-table: New file.
36939
36940         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
36941         (UC_DECOMP_*): New enumeration items.
36942         (get_decomposition): New function.
36943         (struct decomp_table): New type.
36944         (output_decomposition, output_decomposition_tables): New functions.
36945         (unicode_composition_exclusions): New variable.
36946         (fill_composition_exclusions, debug_output_composition_tables): New
36947         functions.
36948         (main): Accept one more argument. Invoke fill_composition_exclusions.
36949         Output decomposition and composition tables.
36950
36951         New module 'uninorm/base'.
36952         * lib/uninorm.h: New file.
36953         * lib/unictype.h: Update comment.
36954         * modules/uninorm/base: New file.
36955
36956 2009-02-21  David Lutterkort  <lutter@redhat.com>
36957
36958         Tests for module 'safe-alloc'.
36959         * tests/test-safe-alloc.c: New file.
36960         * modules/safe-alloc-tests: New file.
36961
36962         New module 'safe-alloc'.
36963         * lib/safe-alloc.h: New file.
36964         * lib/safe-alloc.c: New file.
36965         * m4/safe-alloc.m4: New file.
36966         * modules/safe-alloc: New file.
36967         * doc/safe-alloc.texi: New file.
36968         * doc/gnulib.texi: Include it.
36969         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
36970         safe-alloc.
36971
36972 2009-02-18  Bruno Haible  <bruno@clisp.org>
36973
36974         Fix link error on non-glibc systems.
36975         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
36976         variable.
36977         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
36978
36979 2009-02-18  Jim Meyering  <meyering@redhat.com>
36980
36981         fts: avoid used-uninitialized error due to recent change
36982         * lib/fts.c (fts_read): Guard uses of the new member,
36983         parent->fts_n_dirs_remaining, since it's not relevant for
36984         the parent of a directory specified on the command-line.
36985
36986 2009-02-17  James Youngman  <jay@gnu.org>
36987             Bruno Haible  <bruno@clisp.org>
36988
36989         * m4/include_next.m4: Reformulate comment.
36990
36991 2009-02-16  Jim Meyering  <meyering@redhat.com>
36992
36993         fts: add #if guards so that the fts_lgpl module still builds
36994         * lib/fts.c: Guard just-added hash-table-using parts with
36995         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
36996         Reported by Simon Josefsson.
36997
36998 2009-02-15  Bruno Haible  <bruno@clisp.org>
36999
37000         * modules/array-mergesort-tests: New file.
37001         * tests/test-array-mergesort.c: New file.
37002
37003         New module 'array-mergesort'.
37004         * modules/array-mergesort: New file.
37005         * lib/array-mergesort.h: New file.
37006
37007 2009-02-15  Bruno Haible  <bruno@clisp.org>
37008
37009         Fix 2009-02-07 commit.
37010         * lib/gen-uni-tables.c (output_predicate, output_category,
37011         output_combclass, output_bidi_category, output_decimal_digit,
37012         output_digit, output_numeric, output_mirror, output_scripts,
37013         output_ident_category, output_simple_mapping): Fix format directives.
37014         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
37015
37016 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
37017
37018         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
37019         fixes are available from IBM.
37020
37021 2009-02-13  Jim Meyering  <meyering@redhat.com>
37022
37023         fts: arrange not to stat non-directories in more cases
37024         This makes GNU find (when it doesn't need to stat each file)
37025         *much* more efficient at traversing reiserfs file systems.
37026         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
37027         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
37028         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
37029         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
37030         (leaf_optimization_applies): New function.
37031         (LCO_hash, LCO_compare): New helper functions.
37032         (link_count_optimize_ok): New function.
37033         (fts_stat): Initialize new member (if dir).
37034         (fts_read): Decrement parent's fts_n_dirs_remaining count if
37035         we've just stat'ed a directory.  Skip the stat call when possible.
37036         ---
37037         Note this AFS-related exchange:
37038         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
37039         and note find's pioctl call in find/fstype.c.
37040         But that is necessary only if you want to enable the
37041         optimization for AFS, and for now, I don't.
37042
37043         fts: move a function definition "up" (no semantic change)
37044         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
37045         "up" to precede upcoming use of a related function.
37046
37047 2009-02-11  Jim Meyering  <meyering@redhat.com>
37048
37049         fts: correct internal computation of nlinks (optimization-related)
37050         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
37051         whether the current entry is a directory, so don't test it.
37052
37053 2009-02-10  Bruno Haible  <bruno@clisp.org>
37054
37055         Tests for module 'uniwbrk/ulc-wordbreaks'.
37056         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
37057         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
37058         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
37059
37060         Tests for module 'uniwbrk/u32-wordbreaks'.
37061         * modules/uniwbrk/u32-wordbreaks-tests: New file.
37062         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
37063
37064         Tests for module 'uniwbrk/u16-wordbreaks'.
37065         * modules/uniwbrk/u16-wordbreaks-tests: New file.
37066         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
37067
37068         Tests for module 'uniwbrk/u8-wordbreaks'.
37069         * modules/uniwbrk/u8-wordbreaks-tests: New file.
37070         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
37071
37072 2009-02-10  Bruno Haible  <bruno@clisp.org>
37073
37074         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
37075         property.
37076         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
37077         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
37078         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
37079
37080 2009-02-10  Simon Josefsson  <simon@josefsson.org>
37081
37082         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
37083         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
37084
37085 2009-02-10  Bruno Haible  <bruno@clisp.org>
37086
37087         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
37088         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
37089         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
37090         * lib/unilbrk/u8-possible-linebreaks.c: Update.
37091         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
37092         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
37093
37094 2009-02-09  Simon Josefsson  <simon@josefsson.org>
37095
37096         * lib/sockets.h (gl_fd_to_handle): New function.
37097
37098         * tests/test-sockets.c: Call gl_fd_to_handle.
37099
37100 2009-02-09  Bruno Haible  <bruno@clisp.org>
37101
37102         * doc/havelib.texi: Document the conventions on bi-arch systems.
37103
37104 2009-02-08  Bruno Haible  <bruno@clisp.org>
37105
37106         Document the AC_LIB_LINKFLAGS macro.
37107         * doc/havelib.texi: New file, mostly written on 2005-05-24.
37108         * doc/gnulib.texi: Include it.
37109
37110 2009-02-08  Bruno Haible  <bruno@clisp.org>
37111
37112         Fix wrong order of sections, compared to TOC.
37113         * doc/gnulib.texi: Include relocatable-maint.texi after the
37114         "Regular expressions" node, not before.
37115
37116 2009-02-08  Bruno Haible  <bruno@clisp.org>
37117
37118         Tests for module 'unicase/totitle'.
37119         * modules/unicase/totitle-tests: New file.
37120
37121         Tests for module 'unicase/tolower'.
37122         * modules/unicase/tolower-tests: New file.
37123
37124         Tests for module 'unicase/toupper'.
37125         * modules/unicase/toupper-tests: New file.
37126         * tests/unicase/test-mapping-part1.h: New file.
37127         * tests/unicase/test-mapping-part2.h: New file.
37128
37129         New module 'unicase/totitle'.
37130         * modules/unicase/totitle: New file.
37131         * lib/unicase/totitle.c: New file.
37132
37133         New module 'unicase/tolower'.
37134         * modules/unicase/tolower: New file.
37135         * lib/unicase/tolower.c: New file.
37136
37137         New module 'unicase/toupper'.
37138         * modules/unicase/toupper: New file.
37139         * lib/unicase/toupper.c: New file.
37140         * lib/unicase/simple-mapping.h: New file.
37141
37142         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
37143         (mapping_table): New structure.
37144         (output_simple_mapping): New function.
37145         (main): Invoke output_simple_mapping_test and output_simple_mapping.
37146         * modules/gen-uni-tables (Description): Update.
37147         * lib/unicase/toupper.h: New file, automatically generated by
37148         gen-uni-tables.
37149         * lib/unicase/tolower.h: New file, automatically generated by
37150         gen-uni-tables.
37151         * lib/unicase/totitle.h: New file, automatically generated by
37152         gen-uni-tables.
37153         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
37154         gen-uni-tables.
37155         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
37156         gen-uni-tables.
37157         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
37158         gen-uni-tables.
37159
37160         New module 'unicase/base'.
37161         * modules/unicase/base: New file.
37162         * lib/unicase.h: New file.
37163
37164 2009-02-08  Bruno Haible  <bruno@clisp.org>
37165
37166         New module 'uniwbrk/ulc-wordbreaks'.
37167         * modules/uniwbrk/ulc-wordbreaks: New file.
37168         * lib/uniwbrk/ulc-wordbreaks.c: New file.
37169
37170         New module 'uniwbrk/u32-wordbreaks'.
37171         * modules/uniwbrk/u32-wordbreaks: New file.
37172         * lib/uniwbrk/u32-wordbreaks.c: New file.
37173
37174         New module 'uniwbrk/u16-wordbreaks'.
37175         * modules/uniwbrk/u16-wordbreaks: New file.
37176         * lib/uniwbrk/u16-wordbreaks.c: New file.
37177
37178         New module 'uniwbrk/u8-wordbreaks'.
37179         * modules/uniwbrk/u8-wordbreaks: New file.
37180         * lib/uniwbrk/u8-wordbreaks.c: New file.
37181         * lib/uniwbrk/u-wordbreaks.h: New file.
37182
37183         New module 'uniwbrk/table'.
37184         * modules/uniwbrk/table: New file.
37185         * lib/uniwbrk/wbrktable.h: New file.
37186         * lib/uniwbrk/wbrktable.c: New file.
37187
37188         New module 'uniwbrk/wordbreak-property'.
37189         * modules/uniwbrk/wordbreak-property: New file.
37190         * lib/uniwbrk/wordbreak-property.c: New file.
37191
37192         * lib/gen-uni-tables.c (WBP_*): New enum items.
37193         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
37194         (unicode_org_wbp): New variable.
37195         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
37196         New functions.
37197         (wbp_table): New structure.
37198         (output_wbp, output_wbrk_tables): New functions.
37199         (main): Accept additional argument. Invoke fill_org_wbp,
37200         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
37201         output_wbrk_tables.
37202         * modules/gen-uni-tables (Description): Update.
37203         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
37204         gen-uni-tables.
37205
37206         New module 'uniwbrk/base'.
37207         * modules/uniwbrk/base: New file.
37208         * lib/uniwbrk.h: New file.
37209
37210 2009-02-08  Bruno Haible  <bruno@clisp.org>
37211
37212         Update to Unicode 5.1.0.
37213         * lib/gen-uni-tables.c (is_property_alphabetic): Include
37214         U+2185..U+2188.
37215         (is_property_default_ignorable_code_point): Don't include characters
37216         of category Cc or Cs and not-a-characters.
37217         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
37218         U+0D79, U+109E, U+109F, U+A60C.
37219         * lib/unictype/bidi_of.h: Regenerated.
37220         * lib/unictype/blocks.h: Regenerated.
37221         * lib/unictype/categ_C.h: Regenerated.
37222         * lib/unictype/categ_Cf.h: Regenerated.
37223         * lib/unictype/categ_Cn.h: Regenerated.
37224         * lib/unictype/categ_L.h: Regenerated.
37225         * lib/unictype/categ_Ll.h: Regenerated.
37226         * lib/unictype/categ_Lm.h: Regenerated.
37227         * lib/unictype/categ_Lo.h: Regenerated.
37228         * lib/unictype/categ_Lu.h: Regenerated.
37229         * lib/unictype/categ_M.h: Regenerated.
37230         * lib/unictype/categ_Mc.h: Regenerated.
37231         * lib/unictype/categ_Me.h: Regenerated.
37232         * lib/unictype/categ_Mn.h: Regenerated.
37233         * lib/unictype/categ_N.h: Regenerated.
37234         * lib/unictype/categ_Nd.h: Regenerated.
37235         * lib/unictype/categ_Nl.h: Regenerated.
37236         * lib/unictype/categ_No.h: Regenerated.
37237         * lib/unictype/categ_P.h: Regenerated.
37238         * lib/unictype/categ_Pd.h: Regenerated.
37239         * lib/unictype/categ_Pe.h: Regenerated.
37240         * lib/unictype/categ_Pf.h: Regenerated.
37241         * lib/unictype/categ_Pi.h: Regenerated.
37242         * lib/unictype/categ_Po.h: Regenerated.
37243         * lib/unictype/categ_Ps.h: Regenerated.
37244         * lib/unictype/categ_S.h: Regenerated.
37245         * lib/unictype/categ_Sk.h: Regenerated.
37246         * lib/unictype/categ_Sm.h: Regenerated.
37247         * lib/unictype/categ_So.h: Regenerated.
37248         * lib/unictype/categ_of.h: Regenerated.
37249         * lib/unictype/combining.h: Regenerated.
37250         * lib/unictype/ctype_alnum.h: Regenerated.
37251         * lib/unictype/ctype_alpha.h: Regenerated.
37252         * lib/unictype/ctype_graph.h: Regenerated.
37253         * lib/unictype/ctype_lower.h: Regenerated.
37254         * lib/unictype/ctype_print.h: Regenerated.
37255         * lib/unictype/ctype_punct.h: Regenerated.
37256         * lib/unictype/ctype_upper.h: Regenerated.
37257         * lib/unictype/decdigit.h: Regenerated.
37258         * lib/unictype/digit.h: Regenerated.
37259         * lib/unictype/mirror.h: Regenerated.
37260         * lib/unictype/numeric.h: Regenerated.
37261         * lib/unictype/pr_alphabetic.h: Regenerated.
37262         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
37263         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
37264         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
37265         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
37266         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
37267         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
37268         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
37269         * lib/unictype/pr_combining.h: Regenerated.
37270         * lib/unictype/pr_dash.h: Regenerated.
37271         * lib/unictype/pr_decimal_digit.h: Regenerated.
37272         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
37273         * lib/unictype/pr_deprecated.h: Regenerated.
37274         * lib/unictype/pr_diacritic.h: Regenerated.
37275         * lib/unictype/pr_extender.h: Regenerated.
37276         * lib/unictype/pr_format_control.h: Regenerated.
37277         * lib/unictype/pr_grapheme_base.h: Regenerated.
37278         * lib/unictype/pr_grapheme_extend.h: Regenerated.
37279         * lib/unictype/pr_grapheme_link.h: Regenerated.
37280         * lib/unictype/pr_id_continue.h: Regenerated.
37281         * lib/unictype/pr_id_start.h: Regenerated.
37282         * lib/unictype/pr_ideographic.h: Regenerated.
37283         * lib/unictype/pr_ignorable_control.h: Regenerated.
37284         * lib/unictype/pr_lowercase.h: Regenerated.
37285         * lib/unictype/pr_math.h: Regenerated.
37286         * lib/unictype/pr_numeric.h: Regenerated.
37287         * lib/unictype/pr_other_alphabetic.h: Regenerated.
37288         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
37289         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
37290         * lib/unictype/pr_other_id_continue.h: Regenerated.
37291         * lib/unictype/pr_other_lowercase.h: Regenerated.
37292         * lib/unictype/pr_other_math.h: Regenerated.
37293         * lib/unictype/pr_punctuation.h: Regenerated.
37294         * lib/unictype/pr_sentence_terminal.h: Regenerated.
37295         * lib/unictype/pr_soft_dotted.h: Regenerated.
37296         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
37297         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
37298         * lib/unictype/pr_unified_ideograph.h: Regenerated.
37299         * lib/unictype/pr_uppercase.h: Regenerated.
37300         * lib/unictype/pr_xid_continue.h: Regenerated.
37301         * lib/unictype/pr_xid_start.h: Regenerated.
37302         * lib/unictype/pr_zero_width.h: Regenerated.
37303         * lib/unictype/scripts.h: Regenerated.
37304         * lib/unictype/scripts_byname.gperf: Regenerated.
37305         * lib/unictype/sy_java_ident.h: Regenerated.
37306         * lib/unilbrk/lbrkprop1.h: Regenerated.
37307         * lib/unilbrk/lbrkprop2.h: Regenerated.
37308         * tests/unictype/test-categ_C.c: Regenerated.
37309         * tests/unictype/test-categ_Cf.c: Regenerated.
37310         * tests/unictype/test-categ_Cn.c: Regenerated.
37311         * tests/unictype/test-categ_L.c: Regenerated.
37312         * tests/unictype/test-categ_Ll.c: Regenerated.
37313         * tests/unictype/test-categ_Lm.c: Regenerated.
37314         * tests/unictype/test-categ_Lo.c: Regenerated.
37315         * tests/unictype/test-categ_Lu.c: Regenerated.
37316         * tests/unictype/test-categ_M.c: Regenerated.
37317         * tests/unictype/test-categ_Mc.c: Regenerated.
37318         * tests/unictype/test-categ_Me.c: Regenerated.
37319         * tests/unictype/test-categ_Mn.c: Regenerated.
37320         * tests/unictype/test-categ_N.c: Regenerated.
37321         * tests/unictype/test-categ_Nd.c: Regenerated.
37322         * tests/unictype/test-categ_Nl.c: Regenerated.
37323         * tests/unictype/test-categ_No.c: Regenerated.
37324         * tests/unictype/test-categ_P.c: Regenerated.
37325         * tests/unictype/test-categ_Pd.c: Regenerated.
37326         * tests/unictype/test-categ_Pe.c: Regenerated.
37327         * tests/unictype/test-categ_Pf.c: Regenerated.
37328         * tests/unictype/test-categ_Pi.c: Regenerated.
37329         * tests/unictype/test-categ_Po.c: Regenerated.
37330         * tests/unictype/test-categ_Ps.c: Regenerated.
37331         * tests/unictype/test-categ_S.c: Regenerated.
37332         * tests/unictype/test-categ_Sk.c: Regenerated.
37333         * tests/unictype/test-categ_Sm.c: Regenerated.
37334         * tests/unictype/test-categ_So.c: Regenerated.
37335         * tests/unictype/test-ctype_alnum.c: Regenerated.
37336         * tests/unictype/test-ctype_alpha.c: Regenerated.
37337         * tests/unictype/test-ctype_graph.c: Regenerated.
37338         * tests/unictype/test-ctype_lower.c: Regenerated.
37339         * tests/unictype/test-ctype_print.c: Regenerated.
37340         * tests/unictype/test-ctype_punct.c: Regenerated.
37341         * tests/unictype/test-ctype_upper.c: Regenerated.
37342         * tests/unictype/test-decdigit.h: Regenerated.
37343         * tests/unictype/test-digit.h: Regenerated.
37344         * tests/unictype/test-numeric.h: Regenerated.
37345         * tests/unictype/test-pr_alphabetic.c: Regenerated.
37346         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
37347         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
37348         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
37349         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
37350         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
37351         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
37352         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
37353         * tests/unictype/test-pr_combining.c: Regenerated.
37354         * tests/unictype/test-pr_dash.c: Regenerated.
37355         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
37356         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
37357         * tests/unictype/test-pr_deprecated.c: Regenerated.
37358         * tests/unictype/test-pr_diacritic.c: Regenerated.
37359         * tests/unictype/test-pr_extender.c: Regenerated.
37360         * tests/unictype/test-pr_format_control.c: Regenerated.
37361         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
37362         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
37363         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
37364         * tests/unictype/test-pr_id_continue.c: Regenerated.
37365         * tests/unictype/test-pr_id_start.c: Regenerated.
37366         * tests/unictype/test-pr_ideographic.c: Regenerated.
37367         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
37368         * tests/unictype/test-pr_lowercase.c: Regenerated.
37369         * tests/unictype/test-pr_math.c: Regenerated.
37370         * tests/unictype/test-pr_numeric.c: Regenerated.
37371         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
37372         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
37373         Regenerated.
37374         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
37375         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
37376         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
37377         * tests/unictype/test-pr_other_math.c: Regenerated.
37378         * tests/unictype/test-pr_punctuation.c: Regenerated.
37379         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
37380         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
37381         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
37382         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
37383         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
37384         * tests/unictype/test-pr_uppercase.c: Regenerated.
37385         * tests/unictype/test-pr_xid_continue.c: Regenerated.
37386         * tests/unictype/test-pr_xid_start.c: Regenerated.
37387         * tests/unictype/test-pr_zero_width.c: Regenerated.
37388
37389         Update to Unicode 5.1.0.
37390         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
37391         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
37392         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
37393         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
37394         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
37395         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
37396         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
37397         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
37398         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
37399         (nonspacing_table_ind): Update.
37400         * tests/uniwidth/test-uc_width2.sh: Update expected result.
37401
37402         Update to Unicode 5.1.0.
37403         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
37404         code transform.
37405         * lib/uniname/uniname.c (unicode_character_name,
37406         unicode_name_character): Add the range 0x1Fxxx to the code transform.
37407         * lib/uniname/uninames.h: Regenerated.
37408         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
37409
37410 2009-02-07  Bruno Haible  <bruno@clisp.org>
37411
37412         Merge gen-ctype and gen-lbrk into a single program.
37413         * lib/gen-uni-tables.c: New file, incorporating
37414         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
37415         Add directory prefixes to the names of the generated files.
37416         * lib/unictype/gen-ctype.c: Remove file.
37417         * lib/unilbrk/gen-lbrk.c: Remove file.
37418         * modules/gen-uni-tables: New file.
37419         * modules/unictype/gen-ctype: Remove file.
37420         * modules/unilbrk/gen-lbrk: Remove file.
37421
37422 2009-02-07  Bruno Haible  <bruno@clisp.org>
37423
37424         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
37425
37426         New module 'unistr/u32-strcoll'.
37427         * modules/unistr/u32-strcoll: New file.
37428         * lib/unistr/u32-strcoll.c: New file.
37429
37430         New module 'unistr/u16-strcoll'.
37431         * modules/unistr/u16-strcoll: New file.
37432         * lib/unistr/u16-strcoll.c: New file.
37433
37434         New module 'unistr/u8-strcoll'.
37435         * modules/unistr/u8-strcoll: New file.
37436         * lib/unistr/u8-strcoll.c: New file.
37437         * lib/unistr/u-strcoll.h: New file.
37438
37439 2009-02-07  Bruno Haible  <bruno@clisp.org>
37440
37441         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
37442         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37443         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
37444         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
37445         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
37446         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
37447
37448 2009-02-07  Bruno Haible  <bruno@clisp.org>
37449
37450         Make 64-bit clean.
37451         * lib/unictype/gen-ctype.c (output_predicate, output_category,
37452         output_combclass, output_bidi_category, output_decimal_digit,
37453         output_digit, output_numeric, output_mirror, output_scripts,
37454         output_ident_category): Use proper width specifier in format strings.
37455
37456 2009-02-07  Bruno Haible  <bruno@clisp.org>
37457
37458         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
37459         failure behaviour.
37460
37461 2009-02-07  Jim Meyering  <meyering@redhat.com>
37462
37463         regex: avoid compilation failure with upcoming gcc-4.4
37464         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
37465         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
37466         "... error: integer overflow in preprocessor expression".
37467
37468 2009-02-05  Ben Pfaff  <blp@gnu.org>
37469
37470         Fix link errors on Windows when close module is used.
37471         * modules/close: Add $(LIB_CLOSE) to Link section.
37472         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
37473         $(LIB_CLOSE) on Windows.
37474
37475 2009-02-05  Jim Meyering  <meyering@redhat.com>
37476
37477         still avoid unused-parameter warnings, but do it cleanly
37478         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
37479         (get_fs_usage): Cast to void instead.
37480         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
37481         (dev_from_mount_options, read_file_system_list): Cast to void.
37482         Prompted by Bruno Haible.
37483
37484 2009-02-04  Jim Meyering  <meyering@redhat.com>
37485
37486         fsusage.c: correct copyright year
37487         * lib/fsusage.c: Reflect year in which the change is pushed into
37488
37489         avoid misc. warnings
37490         * lib/fsusage.c (UNUSED_PARAM): Define.
37491         (get_fs_usage): Mark parameter "disk" as unused.
37492         * lib/getugroups.c (getgrent): Use "void" in prototype.
37493         * lib/mountlist.c: Mark unused parameters.
37494         (read_file_system_list): Declare a local with "const".
37495         * lib/nanosleep.c (getnow): Declare static.
37496         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
37497
37498         dirfd: set errno upon failure
37499         * lib/dirfd.c: Include <errno.h>.
37500         Set errno to ENOTSUP when returning -1.
37501         * modules/dirfd (Depends-on): Add errno.
37502         Suggested by John Kodis <kodis@comcast.net>.
37503
37504 2009-02-01  Bruno Haible  <bruno@clisp.org>
37505
37506         Don't assume sizeof (long) >= sizeof (void *).
37507         * lib/memcmp.c: Include stdint.h.
37508         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
37509         srcp2 to 'const byte *'.
37510         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
37511         types to uintptr_t.
37512         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
37513         * modules/memcmp (Depends-on): Add stdint.
37514         Reported by Ozkan Sezer <sezeroz@gmail.com>.
37515
37516 2009-01-30  Eric Blake  <ebb9@byu.net>
37517
37518         fix more require-before-expand issues
37519         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
37520         expand, AC_PROG_AWK.
37521         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
37522
37523 2009-01-28  Eric Blake  <ebb9@byu.net>
37524
37525         version-etc: use consistent URL formatting
37526         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
37527         Improve formatting.  Use fputs for string without %.
37528
37529 2009-01-28  Jim Meyering  <meyering@redhat.com>
37530
37531         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
37532         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
37533         "underquoted definition of NAME" from autoconf-2.59.
37534
37535 2009-01-28  Bruno Haible  <bruno@clisp.org>
37536
37537         * doc/gnulib.texi: Add "Obsolete modules" to index.
37538
37539 2009-01-28  Jim Meyering  <meyering@redhat.com>
37540
37541         useless-if-before-free: recognize more variants
37542         * build-aux/useless-if-before-free: Also recognize e.g.,
37543         if (NULL != p) free (p);
37544
37545 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
37546
37547         test-getaddrinfo: skip (don't fail) this test when there's no network
37548         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
37549         on the presumption that it means you lack network access.
37550
37551 2009-01-26  Jim Meyering  <meyering@redhat.com>
37552
37553         fflush: avoid warnings on modern systems
37554         * lib/fflush.c (rpl_fflush): Move declarations of locals,
37555         pos and result, into scopes where they're used.
37556
37557 2009-01-26  Eric Blake  <ebb9@byu.net>
37558
37559         Silence warning reintroduced by recent extensions patch.
37560         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
37561         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
37562         autoconf.
37563
37564         Backport improved autoconf semantics of AC_DEFUN_ONCE.
37565         * m4/00gnulib.m4: New file.
37566         * gnulib-tool (func_get_filelist): Always use it.
37567         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
37568         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
37569
37570 2009-01-25  Bruno Haible  <bruno@clisp.org>
37571
37572         Make test-quotearg work on MacOS X and AIX.
37573         * tests/test-quotearg.sh: New file.
37574         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
37575         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
37576         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
37577         include <libintl.h>.
37578         (fake_locale): Remove variable.
37579         (gettext, dgettext, dcgettext): Remove functions.
37580         (main): Instead of setting a fake locale, set a real locale. Call
37581         textdomain and bindtextdomain.
37582         * modules/quotearg-tests (Files): Add the new files.
37583         (Depends-on): Add gettext, setenv, unsetenv.
37584         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
37585         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
37586         Augment TESTS_ENVIRONMENT.
37587
37588 2009-01-25  Bruno Haible  <bruno@clisp.org>
37589
37590         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
37591         fr_FR.ISO8859-1 locale on MacOS X.
37592         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
37593         ja_JP.eucJP locale on MacOS X.
37594         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
37595         zh_CN.GB18030 locale on MacOS X.
37596
37597 2009-01-25  Bruno Haible  <bruno@clisp.org>
37598
37599         Avoid link errors on MacOS X 10.3.
37600         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
37601         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
37602
37603 2009-01-25  Bruno Haible  <bruno@clisp.org>
37604
37605         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37606         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
37607         * modules/pipe (Files): Remove m4/posix_spawn.m4.
37608         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37609         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
37610         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37611         posix_spawnattr_init, posix_spawnattr_setsigmask,
37612         posix_spawnattr_setflags, posix_spawnattr_destroy.
37613
37614         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
37615         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
37616         * modules/execute (Files): Remove m4/posix_spawn.m4.
37617         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
37618         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
37619         posix_spawnattr_init, posix_spawnattr_setsigmask,
37620         posix_spawnattr_setflags, posix_spawnattr_destroy.
37621
37622 2009-01-25  Bruno Haible  <bruno@clisp.org>
37623
37624         * lib/glthread/threadlib.c: Include <stdlib.h>.
37625
37626 2009-01-25  Bruno Haible  <bruno@clisp.org>
37627
37628         * lib/glthread/threadlib.c (dummy): New declaration.
37629
37630 2009-01-25  Bruno Haible  <bruno@clisp.org>
37631
37632         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
37633         multibyte characters also for the GB18030 encoding. Don't crash when
37634         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
37635
37636 2009-01-25  Bruno Haible  <bruno@clisp.org>
37637
37638         Avoid redefining 'struct random_data' on OSF/1 5.1.
37639         * lib/stdlib.in.h: Include <random.h> if it exists.
37640         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
37641         HAVE_RANDOM_H. Include <random.h> when testing whether
37642         'struct random_data' exists.
37643         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
37644
37645 2009-01-25  Bruno Haible  <bruno@clisp.org>
37646
37647         Don't install charset.alias on MacOS X >= 10.3.
37648         * lib/localcharset.c (DARWIN7): New macro.
37649         (get_charset_aliases): Hardcode the result for Darwin7.
37650         * modules/localcharset (install-exec-local): Don't install
37651         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
37652
37653 2009-01-25  Bruno Haible  <bruno@clisp.org>
37654
37655         Don't install charset.alias on mingw and Cygwin.
37656         * modules/localcharset (install-exec-local): Don't install
37657         charset.alias on mingw and Cygwin, if the file does not yet exist.
37658         The result for these platforms is hardcoded in localcharset.c.
37659
37660 2009-01-25  Bruno Haible  <bruno@clisp.org>
37661
37662         Make it possible again to use AC_GNU_SOURCE together with gnulib.
37663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
37664         before requiring AC_USE_SYSTEM_EXTENSIONS.
37665
37666 2009-01-25  Jim Meyering  <meyering@redhat.com>
37667
37668         c-strtod: avoid warnings
37669         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
37670         "assignment discards qualifiers from pointer target type" warnings.
37671
37672 2009-01-24  Bruno Haible  <bruno@clisp.org>
37673
37674         Add support for non-UTF-8 locales on MacOS X.
37675         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
37676         canonical encodings. For Darwin 7 and newer, don't map traditional
37677         encodings to UTF-8.
37678         Reported by Vincent Lefevre <vincent@vinc17.org>
37679         at <http://savannah.gnu.org/bugs/?25235>.
37680
37681 2009-01-24  Bruno Haible  <bruno@clisp.org>
37682
37683         * doc/gnulib.texi (Obsolete modules): New section.
37684         Reported by Mike Frysinger <vapier@gentoo.org>.
37685
37686 2009-01-24  Bruno Haible  <bruno@clisp.org>
37687
37688         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
37689         (%.dvi): New rule.
37690
37691 2009-01-24  Bruno Haible  <bruno@clisp.org>
37692
37693         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
37694         Reported by Eric Blake.
37695
37696 2009-01-24  Bruno Haible  <bruno@clisp.org>
37697
37698         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
37699         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
37700         Reported by Gary V. Vaughan <gary@gnu.org>.
37701
37702 2009-01-24  Bruno Haible  <bruno@clisp.org>
37703
37704         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
37705
37706 2009-01-23  Bruno Haible  <bruno@clisp.org>
37707
37708         Make c-strtod, c-strtold usable in libraries.
37709         * lib/c-strtod.c: Include string.h instead of xalloc.h.
37710         (C_STRTOD): Call strdup instead of xstrdup.
37711         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
37712         * modules/c-strtold (Depends-on): Likewise.
37713         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
37714         * NEWS: Mention the change.
37715         Reported by Michael Gold <mgold@ncf.ca>.
37716
37717 2009-01-23  Jim Meyering  <meyering@redhat.com>
37718
37719         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
37720         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
37721         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
37722
37723 2009-01-23  Simon Josefsson  <simon@josefsson.org>
37724
37725         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
37726         GNU CoreUtils.
37727         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
37728         * modules/version-etc (Description): Update.
37729
37730 2009-01-22  Bruno Haible  <bruno@clisp.org>
37731
37732         Cache the C locale object.
37733         * lib/c-strtod.c (c_locale_cache): New variable.
37734         (c_locale): New function.
37735         (C_STRTOD): Use it, and don't call freelocale.
37736         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
37737         Suggested by Paolo Bonzini.
37738
37739 2009-01-21  Bruno Haible  <bruno@clisp.org>
37740
37741         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
37742         conditions other than overflow.
37743
37744 2009-01-21  Bruno Haible  <bruno@clisp.org>
37745
37746         * lib/c-strtod.c: Include errno.h.
37747         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
37748         value from STRTOD_L and STRTOD.
37749
37750 2009-01-21  Bruno Haible  <bruno@clisp.org>
37751         and Jim Meyering  <meyering@redhat.com>
37752
37753         nanosleep: skip configure test (fail it) for apple universal builds
37754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
37755         universal builds, assume that nanosleep does not work.
37756         * modules/nanosleep (Depends-on): Add multiarch.
37757
37758         mktime: skip configure test (fail it) for apple universal builds
37759         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
37760         universal builds, assume that mktime does not work.
37761         * modules/mktime (Depends-on): Add multiarch.
37762
37763 2009-01-21  Eric Blake  <ebb9@byu.net>
37764
37765         multiarch: avoid expand-before-require warning
37766         * modules/multiarch (configure.ac): Require, rather than expand,
37767         gl_MULTIARCH.
37768         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
37769         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
37770         enforce that all clients require it.  Partial reversion of
37771         2008-12-29 patch.
37772
37773         error: avoid expand-before-require warning
37774         * modules/errno (configure.ac): Require, rather than expand,
37775         gl_HEADER_ERRNO_H.
37776         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
37777         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
37778         enforce that all clients require it.
37779
37780         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
37781         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
37782         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
37783         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
37784
37785 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
37786
37787         Revert:
37788         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37789
37790         regex: do not depend on obsolete modules.
37791         * modules/regex: Remove memcmp and memmove.
37792
37793 2009-01-20  Bruno Haible  <bruno@clisp.org>
37794
37795         Make the 'link' module link on Windows NT 4.
37796         * lib/link.c (_WIN32_WINNT): Don't define.
37797         (CreateHardLinkFuncType): New type.
37798         (CreateHardLinkFunc, initialized): New variables.
37799         (initialize): New function.
37800         (link): Invoke CreateHardLink indirectly through the function pointer.
37801
37802 2009-01-20  Bruno Haible  <bruno@clisp.org>
37803
37804         Fix compilation failure on mingw.
37805         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
37806
37807 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
37808
37809         * doc/c-strtod.texi: Mention a couple of restrictions.
37810
37811 2009-01-20  Jim Meyering  <meyering@redhat.com>
37812
37813         gettimeofday: move more declarations out of functions
37814         * lib/gettimeofday.c: Move extern declarations of tzset and
37815         gmtime out of containing functions.  Prompted by Bruno Haible.
37816
37817 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
37818
37819         regex: do not depend on obsolete modules.
37820         * modules/regex: Remove memcmp and memmove.
37821
37822 2009-01-19  Bruno Haible  <bruno@clisp.org>
37823
37824         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37825         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
37826         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37827         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
37828         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
37829
37830 2009-01-19  Bruno Haible  <bruno@clisp.org>
37831
37832         * tests/test-link.c: Include <errno.h>.
37833         (main): Exit with code 77 when a hard link cannot be created due to
37834         the file system.
37835         * tests/test-link.sh: Skip test when a hard link cannot be created due
37836         to the file system.
37837         Suggested by Eric Blake.
37838
37839 2009-01-19  Martin Lambers  <marlam@marlam.de>
37840
37841         * modules/link-tests: New file.
37842         * tests/test-link.sh: New file.
37843         * tests/test-link.c: New file.
37844
37845 2009-01-19  Eric Blake  <ebb9@byu.net>
37846
37847         doc: mention another function added in cygwin 1.7.0
37848         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
37849         Another new function in cygwin 1.7.
37850
37851 2009-01-19  Bruno Haible  <bruno@clisp.org>
37852
37853         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
37854         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
37855         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
37856         gl_BIGENDIAN, not AC_C_BIGENDIAN.
37857         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37858         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
37859         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
37860         * m4/md4.m4 (gl_MD4): Likewise.
37861         * m4/md5.m4 (gl_MD5): Likewise.
37862         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
37863         * m4/sha1.m4 (gl_SHA1): Likewise.
37864         * m4/sha256.m4 (gl_SHA256): Likewise.
37865         * m4/sha512.m4 (gl_SHA512): Likewise.
37866
37867 2009-01-19  Bruno Haible  <bruno@clisp.org>
37868
37869         * modules/uniname/uniname-tests (Depends-on): Add progname.
37870         * tests/uniname/test-uninames.c: Include progname.h.
37871         (main): Call set_program_name.
37872
37873         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
37874         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
37875         (main): Call set_program_name.
37876
37877         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
37878         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
37879         (main): Call set_program_name.
37880
37881         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
37882         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
37883         (main): Call set_program_name.
37884
37885         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
37886         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
37887         (main): Call set_program_name.
37888
37889         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
37890         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
37891         (main): Call set_program_name.
37892
37893         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
37894         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
37895         (main): Call set_program_name.
37896
37897         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
37898         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
37899         (main): Call set_program_name.
37900
37901         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
37902         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
37903         (main): Call set_program_name.
37904
37905 2009-01-19  Eric Blake  <ebb9@byu.net>
37906
37907         test-unistd: test previous patch
37908         * tests/test-unistd.c: Test *_FILENO macros.
37909
37910         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
37911         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37912         Guarantee a definition.
37913         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
37914         * modules/unistd-safer (Depends-on): Add dependency on unistd.
37915         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
37916         * lib/dup-safer.c (STDERR_FILENO): Likewise.
37917         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37918         Likewise.
37919         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
37920         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
37921         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
37922         Likewise.
37923         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
37924         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
37925         (STDERR_FILENO): Likewise.
37926         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
37927         (STDERR_FILENO): Likewise.
37928         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
37929         (STDERR_FILENO): Likewise.
37930         Reported by Elbert Pol.
37931
37932 2009-01-19  Eric Blake  <ebb9@byu.net>
37933
37934         doc: mention more functions added in cygwin 1.7.0
37935         * doc/posix-functions/abort.texi (abort): Update wording related
37936         to cygwin.
37937         * doc/posix-functions/daylight.texi (daylight): Likewise.
37938         * doc/posix-functions/optarg.texi (optarg): Likewise.
37939         * doc/posix-functions/optarg.texi (opterr): Likewise.
37940         * doc/posix-functions/optarg.texi (optind): Likewise.
37941         * doc/posix-functions/optarg.texi (optopt): Likewise.
37942         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
37943         worked in 1.5.x, and was withdrawn in 1.7.
37944         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
37945         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
37946         cygwin versions.
37947         * doc/posix-functions/perror.texi (perror): Likewise.
37948         * doc/posix-functions/printf.texi (printf): Likewise.
37949         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
37950         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
37951         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
37952         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
37953         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
37954         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
37955         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
37956         Likewise.
37957         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
37958         Likewise.
37959         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
37960         this function.
37961         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
37962         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
37963         Likewise.
37964         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
37965         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
37966         * doc/posix-functions/confstr.texi (confstr): Likewise.
37967         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
37968         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
37969         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
37970         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
37971         * doc/posix-functions/fputws.texi (fputws): Likewise.
37972         * doc/posix-functions/fwide.texi (fwide): Likewise.
37973         * doc/posix-functions/getwc.texi (getwc): Likewise.
37974         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
37975         * doc/posix-functions/putwc.texi (putwc): Likewise.
37976         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
37977         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
37978         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
37979         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
37980         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
37981         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
37982         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
37983         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
37984         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
37985         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
37986         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
37987
37988 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
37989
37990         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
37991         * lib/ioctl.c: Include <sys/ioctl.h>.
37992
37993 2009-01-19  Simon Josefsson  <simon@josefsson.org>
37994
37995         * modules/getdate-tests (Depends-on): Add progname.
37996         * tests/test-getdate.c: Use progname module, to avoid link errors
37997         on non-glibc systems.
37998
37999 2009-01-18  Simon Josefsson  <simon@josefsson.org>
38000
38001         * modules/filenamecat-tests (Depends-on): Add progname.
38002         * modules/fstrcmp-tests (Depends-on): Likewise.
38003
38004         * tests/test-filenamecat.c: Use progname module, to avoid link
38005         errors on non-glibc systems.
38006         * tests/test-fstrcmp.c: Likewise.
38007
38008 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
38009
38010         gettimeofday: avoid warning: nested extern declaration of 'localtime'
38011         * lib/gettimeofday.c: Move extern declaration out of function.
38012
38013 2009-01-18  Bruno Haible  <bruno@clisp.org>
38014
38015         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
38016         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
38017         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
38018
38019 2009-01-18  Bruno Haible  <bruno@clisp.org>
38020
38021         * lib/strftime.c (MEMPCPY): Remove unused macro.
38022         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
38023
38024 2009-01-18  Martin Lambers  <marlam@marlam.de>
38025
38026         New module 'link'.
38027         * lib/unistd.in.h (link): New declaration.
38028         * lib/link.c: New file.
38029         * m4/link.m4: New file.
38030         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
38031         HAVE_LINK.
38032         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
38033         * modules/link: New file.
38034         * doc/posix-functions/link.texi: Mention the new module.
38035
38036 2009-01-18  Bruno Haible  <bruno@clisp.org>
38037
38038         * tests/test-avltree_list.c (main): Call set_program_name.
38039         * tests/test-avltree_oset.c (main): Likewise.
38040         * tests/test-obstack-printf.c: Include progname.h.
38041         (main): Call set_program_name.
38042         * tests/test-quotearg.c: Include progname.h.
38043         (main): Call set_program_name.
38044         * tests/test-xmemdup0.c: Include progname.h.
38045         (main): Call set_program_name.
38046
38047 2009-01-18  Bruno Haible  <bruno@clisp.org>
38048
38049         New module 'alphasort'.
38050         * lib/dirent.in.h (alphasort): New declaration.
38051         * lib/alphasort.c: New file, from glibc with modifications.
38052         * m4/alphasort.m4: New file.
38053         * modules/alphasort: New file.
38054         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
38055         HAVE_ALPHASORT.
38056         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
38057         HAVE_ALPHASORT.
38058         * doc/posix-functions/alphasort.texi: Mention the new module and the
38059         portability problems.
38060
38061 2009-01-18  Bruno Haible  <bruno@clisp.org>
38062
38063         New module 'scandir'.
38064         * lib/dirent.in.h (scandir): New declaration.
38065         * lib/scandir.c: New file, from glibc with modifications.
38066         * m4/scandir.m4: New file.
38067         * modules/scandir: New file.
38068         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
38069         HAVE_SCANDIR.
38070         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
38071         HAVE_SCANDIR.
38072         * doc/posix-functions/scandir.texi: Mention the new module and the
38073         portability problems.
38074
38075 2009-01-17  Bruno Haible  <bruno@clisp.org>
38076
38077         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
38078         Update documentation.
38079         (func_remove_suffix): Escape all dots in the suffix. Update
38080         documentation.
38081         (func_filter_filelist): Update documentation.
38082         Reported by Ralf Wildenhues.
38083
38084 2009-01-17  Bruno Haible  <bruno@clisp.org>
38085
38086         * modules/dprintf-posix-tests: New file.
38087         * tests/test-dprintf-posix.sh: New file.
38088         * tests/test-dprintf-posix.c: New file.
38089
38090         New modules 'dprintf', 'dprintf-posix'.
38091         * lib/stdio.in.h (dprintf): New declaration.
38092         * lib/dprintf.c: New file.
38093         * m4/dprintf.m4: New file.
38094         * m4/dprintf-posix.m4: New file.
38095         * modules/dprintf: New file.
38096         * modules/dprintf-posix: New file.
38097         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
38098         HAVE_DPRINTF, REPLACE_DPRINTF.
38099         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
38100         HAVE_DPRINTF, REPLACE_DPRINTF.
38101         * doc/posix-functions/dprintf.texi: Mention the new modules.
38102
38103 2009-01-17  Bruno Haible  <bruno@clisp.org>
38104
38105         * modules/vdprintf-posix-tests: New file.
38106         * tests/test-vdprintf-posix.sh: New file.
38107         * tests/test-vdprintf-posix.c: New file.
38108
38109         New modules 'vdprintf', 'vdprintf-posix'.
38110         * lib/stdio.in.h (vdprintf): New declaration.
38111         * lib/vdprintf.c: New file.
38112         * m4/vdprintf.m4: New file.
38113         * m4/vdprintf-posix.m4: New file.
38114         * modules/vdprintf: New file.
38115         * modules/vdprintf-posix: New file.
38116         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
38117         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38118         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
38119         HAVE_VDPRINTF, REPLACE_VDPRINTF.
38120         * doc/posix-functions/vdprintf.texi: Mention the new modules.
38121
38122 2009-01-17  Bruno Haible  <bruno@clisp.org>
38123
38124         Fix replacement of fopen on mingw.
38125         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
38126         mingw.
38127
38128 2009-01-17  Bruno Haible  <bruno@clisp.org>
38129
38130         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
38131         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
38132
38133 2009-01-17  Bruno Haible  <bruno@clisp.org>
38134
38135         Avoid test-fflush2.sh failure on mingw.
38136         * tests/test-fflush2.c: Include binary-io.h.
38137         (main): Put standard input into binary mode.
38138         * modules/fflush-tests (Depends-on): Add binary-io.
38139
38140 2009-01-17  Bruno Haible  <bruno@clisp.org>
38141
38142         * lib/wchar.in.h: In another particular situation, include only the
38143         system's <wchar.h> file.
38144         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
38145         Reported by Albert Chin-A-Young <china@thewrittenword.com>
38146         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
38147
38148 2009-01-17  Bruno Haible  <bruno@clisp.org>
38149
38150         Support for stripping executables in --enable-relocatable.
38151         * build-aux/install-reloc: Expect one more argument, or an environment
38152         variable RELOC_STRIP_PROG. If set, strip the destination program and
38153         its wrapper.
38154         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
38155         RELOC_STRIP_PROG.
38156         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
38157         to set RELOCATABLE_STRIP.
38158         * NEWS: Mention the new Makefile requirement.
38159
38160 2009-01-17  Bruno Haible  <bruno@clisp.org>
38161
38162         * build-aux/install-reloc: Remove debugging information left over by
38163         C compiler on MacOS X.
38164
38165 2009-01-17  Bruno Haible  <bruno@clisp.org>
38166
38167         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
38168         * lib/progreloc.c (find_executable): Fix type of pointer passed to
38169         _NSGetExecutablePath.
38170
38171 2009-01-16  Jim Meyering  <meyering@redhat.com>
38172
38173         strerror: avoid warnings about discarding "const"
38174         * lib/strerror.c (rpl_strerror): Instead of returning a const
38175         string from each and every "case", use a variable, and add a single
38176         cast after the switch.
38177
38178 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
38179
38180         * lib/arpa_inet.in.h: Add extern "C" block for C++.
38181
38182 2009-01-16  Bruno Haible  <bruno@clisp.org>
38183
38184         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
38185         array initializer syntax that also works in C++ mode.
38186         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38187
38188 2009-01-16  Jim Meyering  <meyering@redhat.com>
38189
38190         poll: suppress a warning
38191         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
38192         to ignore "...unsigned expression < 0 is always false" warnings.
38193
38194 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
38195
38196         poll: remove declarations of unused variables
38197         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
38198         sockbuf and optlen.
38199
38200 2009-01-15  Bruno Haible  <bruno@clisp.org>
38201
38202         Make fflush-after-ungetc POSIX compliant on BSD systems.
38203         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
38204         (clear_ungetc_buffer): Implement also for other systems.
38205         (rpl_fflush): On glibc systems, invoke
38206         clear_ungetc_buffer_preserving_position. Otherwise, invoke
38207         clear_ungetc_buffer after fetching the stream's position, not before.
38208
38209 2009-01-15  Bruno Haible  <bruno@clisp.org>
38210
38211         Make fflush-after-ungetc POSIX compliant on glibc systems.
38212         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
38213         after ungetc.
38214         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
38215         (rpl_fflush): On glibc systems, simply call the system's fflush
38216         function after clearing the ungetc buffer.
38217         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
38218         Instead, lseek only to the end of file, then use the system's fseeko
38219         for the rest. On glibc systems, reset the EOF indicator bit.
38220
38221 2009-01-15  Jim Meyering  <meyering@redhat.com>
38222
38223         openmp.m4: revert quote-adding change, for portability to older autoconf
38224         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
38225         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
38226         Simon Josefsson noticed the problem when using autoconf-2.61.
38227
38228 2009-01-15  Bruno Haible  <bruno@clisp.org>
38229
38230         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
38231         * tests/test-fflush2.c (ASSERT): Always fail.
38232         (main): Add two tests for fflush() after ungetc(), taking into account
38233         the Austin Group's clarification.
38234         Suggested by Eric Blake.
38235
38236 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
38237
38238         mktime.m4: remove K&R-style function prototypes
38239         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
38240         for the Sun C++ compiler.
38241
38242 2009-01-14  Bruno Haible  <bruno@clisp.org>
38243
38244         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
38245         while including <wchar.h>.
38246         * lib/wchar.in.h: In two particular situations on HP-UX, include only
38247         the system's <wchar.h> file.
38248         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
38249
38250 2009-01-14  Bruno Haible  <bruno@clisp.org>
38251
38252         * m4/csharp.m4: Don't mention gettext on the serial number line.
38253         * m4/csharpexec.m4: Likewise.
38254         * m4/eaccess.m4: Likewise.
38255         * m4/javaexec.m4: Likewise.
38256         * m4/sig_atomic_t.m4: Likewise.
38257         * m4/tmpdir.m4: Likewise.
38258         * m4/intldir.m4: Bump gettext version.
38259         * m4/lib-ld.m4: Likewise.
38260
38261 2009-01-14  Bruno Haible  <bruno@clisp.org>
38262
38263         * lib/progname.c (set_program_name): Add more comments.
38264         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
38265
38266 2009-01-14  Simon Josefsson  <simon@josefsson.org>
38267
38268         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
38269         were sys/stat.h does not define it.
38270
38271 2009-01-14  Jim Meyering  <meyering@redhat.com>
38272
38273         many *.m4 files: improve m4 quoting
38274         99% of this change was performed by running the following commands:
38275         git ls-files | grep '\.m4$' | xargs perl -pi \
38276           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
38277           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38278           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
38279           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
38280         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
38281         The remainder were to add Copyright dates, increment serial numbers,
38282         undo some changes in comments, exclude m4/intl.m4, and add quotes
38283         around the "1" in ",1" where the unusual spacing prohibited the
38284         above regexps from doing the job.  For more details, see
38285         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
38286         * m4/acl.m4: Modified.
38287         * m4/afs.m4: Likewise.
38288         * m4/alloca.m4: Likewise.
38289         * m4/argp.m4: Likewise.
38290         * m4/argz.m4: Likewise.
38291         * m4/atexit.m4: Likewise.
38292         * m4/bison-i18n.m4: Likewise.
38293         * m4/bison.m4: Likewise.
38294         * m4/byteswap.m4: Likewise.
38295         * m4/c-stack.m4: Likewise.
38296         * m4/c-strtod.m4: Likewise.
38297         * m4/calloc.m4: Likewise.
38298         * m4/canonicalize-lgpl.m4: Likewise.
38299         * m4/chown.m4: Likewise.
38300         * m4/clock_time.m4: Likewise.
38301         * m4/codeset.m4: Likewise.
38302         * m4/copy-file.m4: Likewise.
38303         * m4/csharp.m4: Likewise.
38304         * m4/csharpcomp.m4: Likewise.
38305         * m4/csharpexec.m4: Likewise.
38306         * m4/d-ino.m4: Likewise.
38307         * m4/d-type.m4: Likewise.
38308         * m4/dirfd.m4: Likewise.
38309         * m4/double-slash-root.m4: Likewise.
38310         * m4/eaccess.m4: Likewise.
38311         * m4/eealloc.m4: Likewise.
38312         * m4/environ.m4: Likewise.
38313         * m4/errno_h.m4: Likewise.
38314         * m4/euidaccess.m4: Likewise.
38315         * m4/execute.m4: Likewise.
38316         * m4/fatal-signal.m4: Likewise.
38317         * m4/fchdir.m4: Likewise.
38318         * m4/fcntl_h.m4: Likewise.
38319         * m4/fileblocks.m4: Likewise.
38320         * m4/filenamecat.m4: Likewise.
38321         * m4/findprog.m4: Likewise.
38322         * m4/flexmember.m4: Likewise.
38323         * m4/fnmatch.m4: Likewise.
38324         * m4/fopen.m4: Likewise.
38325         * m4/fpending.m4: Likewise.
38326         * m4/fprintf-posix.m4: Likewise.
38327         * m4/free.m4: Likewise.
38328         * m4/frexp.m4: Likewise.
38329         * m4/frexpl.m4: Likewise.
38330         * m4/fsusage.m4: Likewise.
38331         * m4/ftruncate.m4: Likewise.
38332         * m4/gc-camellia.m4: Likewise.
38333         * m4/gc-random.m4: Likewise.
38334         * m4/gc.m4: Likewise.
38335         * m4/getaddrinfo.m4: Likewise.
38336         * m4/getcwd-abort-bug.m4: Likewise.
38337         * m4/getcwd-path-max.m4: Likewise.
38338         * m4/getdate.m4: Likewise.
38339         * m4/getdomainname.m4: Likewise.
38340         * m4/getgroups.m4: Likewise.
38341         * m4/gethostname.m4: Likewise.
38342         * m4/gethrxtime.m4: Likewise.
38343         * m4/getline.m4: Likewise.
38344         * m4/getloadavg.m4: Likewise.
38345         * m4/getndelim2.m4: Likewise.
38346         * m4/getpass.m4: Likewise.
38347         * m4/gettext.m4: Likewise.
38348         * m4/gettime.m4: Likewise.
38349         * m4/gettimeofday.m4: Likewise.
38350         * m4/gnulib-common.m4: Likewise.
38351         * m4/group-member.m4: Likewise.
38352         * m4/host-os.m4: Likewise.
38353         * m4/iconv.m4: Likewise.
38354         * m4/iconv_open.m4: Likewise.
38355         * m4/inet_ntop.m4: Likewise.
38356         * m4/inet_pton.m4: Likewise.
38357         * m4/inline.m4: Likewise.
38358         * m4/intldir.m4: Likewise.
38359         * m4/intlmacosx.m4: Likewise.
38360         * m4/intmax.m4: Likewise.
38361         * m4/intmax_t.m4: Likewise.
38362         * m4/inttypes.m4: Likewise.
38363         * m4/inttypes_h.m4: Likewise.
38364         * m4/inttypes-pri.m4: Likewise.
38365         * m4/isapipe.m4: Likewise.
38366         * m4/isnand.m4: Likewise.
38367         * m4/isnanf.m4: Likewise.
38368         * m4/isnanl.m4: Likewise.
38369         * m4/javacomp.m4: Likewise.
38370         * m4/javaexec.m4: Likewise.
38371         * m4/jm-winsz1.m4: Likewise.
38372         * m4/jm-winsz2.m4: Likewise.
38373         * m4/lchown.m4: Likewise.
38374         * m4/lcmessage.m4: Likewise.
38375         * m4/ldexpl.m4: Likewise.
38376         * m4/lib-ld.m4: Likewise.
38377         * m4/lib-link.m4: Likewise.
38378         * m4/libsigsegv.m4: Likewise.
38379         * m4/link-follow.m4: Likewise.
38380         * m4/localcharset.m4: Likewise.
38381         * m4/locale-fr.m4: Likewise.
38382         * m4/locale-ja.m4: Likewise.
38383         * m4/locale-tr.m4: Likewise.
38384         * m4/locale-zh.m4: Likewise.
38385         * m4/lock.m4: Likewise.
38386         * m4/longlong.m4: Likewise.
38387         * m4/ls-mntd-fs.m4: Likewise.
38388         * m4/lstat.m4: Likewise.
38389         * m4/malloc.m4: Likewise.
38390         * m4/mathl.m4: Likewise.
38391         * m4/mbrtowc.m4: Likewise.
38392         * m4/mbstate_t.m4: Likewise.
38393         * m4/mbswidth.m4: Likewise.
38394         * m4/memchr.m4: Likewise.
38395         * m4/memcmp.m4: Likewise.
38396         * m4/memcpy.m4: Likewise.
38397         * m4/memmem.m4: Likewise.
38398         * m4/memmove.m4: Likewise.
38399         * m4/mempcpy.m4: Likewise.
38400         * m4/memrchr.m4: Likewise.
38401         * m4/memset.m4: Likewise.
38402         * m4/minmax.m4: Likewise.
38403         * m4/mkdir-slash.m4: Likewise.
38404         * m4/mkdtemp.m4: Likewise.
38405         * m4/mktime.m4: Likewise.
38406         * m4/mmap-anon.m4: Likewise.
38407         * m4/mountlist.m4: Likewise.
38408         * m4/nanosleep.m4: Likewise.
38409         * m4/nls.m4: Likewise.
38410         * m4/nocrash.m4: Likewise.
38411         * m4/open.m4: Likewise.
38412         * m4/openat.m4: Likewise.
38413         * m4/openmp.m4: Likewise.
38414         * m4/pathmax.m4: Likewise.
38415         * m4/perl.m4: Likewise.
38416         * m4/physmem.m4: Likewise.
38417         * m4/pipe.m4: Likewise.
38418         * m4/po.m4: Likewise.
38419         * m4/poll.m4: Likewise.
38420         * m4/posixtm.m4: Likewise.
38421         * m4/posixver.m4: Likewise.
38422         * m4/printf-frexp.m4: Likewise.
38423         * m4/printf-frexpl.m4: Likewise.
38424         * m4/printf-posix.m4: Likewise.
38425         * m4/printf-posix-rpl.m4: Likewise.
38426         * m4/printf.m4: Likewise.
38427         * m4/progtest.m4: Likewise.
38428         * m4/putenv.m4: Likewise.
38429         * m4/readline.m4: Likewise.
38430         * m4/readlink.m4: Likewise.
38431         * m4/readutmp.m4: Likewise.
38432         * m4/realloc.m4: Likewise.
38433         * m4/regex.m4: Likewise.
38434         * m4/relocatable.m4: Likewise.
38435         * m4/relocatable-lib.m4: Likewise.
38436         * m4/rename-dest-slash.m4: Likewise.
38437         * m4/rename.m4: Likewise.
38438         * m4/rmdir-errno.m4: Likewise.
38439         * m4/rmdir.m4: Likewise.
38440         * m4/roundf.m4: Likewise.
38441         * m4/roundl.m4: Likewise.
38442         * m4/rpmatch.m4: Likewise.
38443         * m4/save-cwd.m4: Likewise.
38444         * m4/selinux-selinux-h.m4: Likewise.
38445         * m4/setenv.m4: Likewise.
38446         * m4/settime.m4: Likewise.
38447         * m4/sig2str.m4: Likewise.
38448         * m4/sig_atomic_t.m4: Likewise.
38449         * m4/signalblocking.m4: Likewise.
38450         * m4/signbit.m4: Likewise.
38451         * m4/sigpipe.m4: Likewise.
38452         * m4/sockets.m4: Likewise.
38453         * m4/sockpfaf.m4: Likewise.
38454         * m4/st_dm_mode.m4: Likewise.
38455         * m4/stat-time.m4: Likewise.
38456         * m4/stdbool.m4: Likewise.
38457         * m4/stdint.m4: Likewise.
38458         * m4/stdint_h.m4: Likewise.
38459         * m4/stpcpy.m4: Likewise.
38460         * m4/stpncpy.m4: Likewise.
38461         * m4/strcase.m4: Likewise.
38462         * m4/strchrnul.m4: Likewise.
38463         * m4/strcspn.m4: Likewise.
38464         * m4/strdup.m4: Likewise.
38465         * m4/strftime.m4: Likewise.
38466         * m4/strndup.m4: Likewise.
38467         * m4/strnlen.m4: Likewise.
38468         * m4/strpbrk.m4: Likewise.
38469         * m4/strptime.m4: Likewise.
38470         * m4/strsep.m4: Likewise.
38471         * m4/strtod.m4: Likewise.
38472         * m4/strtoimax.m4: Likewise.
38473         * m4/strtok_r.m4: Likewise.
38474         * m4/strtol.m4: Likewise.
38475         * m4/strtoll.m4: Likewise.
38476         * m4/strtoul.m4: Likewise.
38477         * m4/strtoull.m4: Likewise.
38478         * m4/strtoumax.m4: Likewise.
38479         * m4/strverscmp.m4: Likewise.
38480         * m4/threadlib.m4: Likewise.
38481         * m4/timegm.m4: Likewise.
38482         * m4/tm_gmtoff.m4: Likewise.
38483         * m4/tmpdir.m4: Likewise.
38484         * m4/tmpfile.m4: Likewise.
38485         * m4/tzset.m4: Likewise.
38486         * m4/uintmax_t.m4: Likewise.
38487         * m4/unlinkdir.m4: Likewise.
38488         * m4/unlocked-io.m4: Likewise.
38489         * m4/uptime.m4: Likewise.
38490         * m4/userspec.m4: Likewise.
38491         * m4/utimbuf.m4: Likewise.
38492         * m4/utime.m4: Likewise.
38493         * m4/utimes-null.m4: Likewise.
38494         * m4/utimes.m4: Likewise.
38495         * m4/vararrays.m4: Likewise.
38496         * m4/vasnprintf.m4: Likewise.
38497         * m4/vfprintf-posix.m4: Likewise.
38498         * m4/vprintf-posix.m4: Likewise.
38499         * m4/wait-process.m4: Likewise.
38500         * m4/wchar_t.m4: Likewise.
38501         * m4/wint_t.m4: Likewise.
38502         * m4/write-any-file.m4: Likewise.
38503         * m4/yield.m4: Likewise.
38504
38505 2009-01-13  Bruno Haible  <bruno@clisp.org>
38506
38507         Avoid test-copy-file.sh failures when ACL support insufficient.
38508         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
38509         TESTS_ENVIRONMENT.
38510         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
38511         Reported by Jim Meyering.
38512
38513 2009-01-13  Bruno Haible  <bruno@clisp.org>
38514
38515         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
38516         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
38517         * modules/unistdio/u8-printf-parse (Files): Likewise.
38518         * modules/unistdio/u32-printf-parse (Files): Likewise.
38519         * modules/unistdio/ulc-printf-parse (Files): Likewise.
38520
38521 2009-01-13  Simon Josefsson  <simon@josefsson.org>
38522
38523         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
38524         and m4/inttypes_h.m4 too.
38525
38526 2009-01-12  Eric Blake  <ebb9@byu.net>
38527
38528         tests: IRIX 6.2 cc can't compile -0.0 into .data
38529         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
38530         rather than at compile-time.
38531         * tests/test-floorl.c (minus_zero): Likewise.
38532         * tests/test-frexpl.c (minus_zero): Likewise.
38533         * tests/test-isnan.c (minus_zerol): Likewise.
38534         * tests/test-isnanl.h (minus_zero): Likewise.
38535         * tests/test-ldexpl.c (minus_zero): Likewise.
38536         * tests/test-roundl.c (minus_zero): Likewise.
38537         * tests/test-signbit.c (minus_zerol): Likewise.
38538         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
38539         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
38540         * tests/test-truncl.c (minus_zero): Likewise.
38541         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
38542         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
38543         Reported by Tom G. Christensen and Nelson H. F. Beebe.
38544
38545 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38546
38547         regex: fix glibc bug 9697
38548         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
38549         handling.
38550
38551 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38552
38553         regex: fix glibc bug 697
38554         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
38555         being NULL also if there are no backreferences.
38556
38557 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
38558
38559         regex: merge glibc changes
38560         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
38561         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
38562         re_string_skip_chars, re_string_reconstruct): Likewise.
38563         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
38564
38565 2009-01-07  Jim Meyering  <meyering@redhat.com>
38566
38567         poll: filter through cppi
38568         * lib/poll.c: Indent cpp directives to reflect nesting.
38569
38570 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
38571
38572         poll: don't return uninitialized
38573         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
38574
38575 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
38576
38577         avoid compile failure on AIX 6.1
38578         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
38579         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
38580
38581 2009-01-04  Jim Meyering  <meyering@redhat.com>
38582
38583         remove duplicate inclusion of <stdio.h>
38584         * tests/test-fprintf-posix.c: Likewise.
38585         * tests/test-printf-posix.c: Likewise.
38586         * tests/test-snprintf-posix.c: Likewise.
38587         * tests/test-sprintf-posix.c: Likewise.
38588         * tests/test-vasprintf-posix.c: Likewise.
38589         * tests/test-vfprintf-posix.c: Likewise.
38590         * tests/test-vprintf-posix.c: Likewise.
38591         * tests/test-vsnprintf-posix.c: Likewise.
38592         * tests/test-vsprintf-posix.c: Likewise.
38593
38594 2009-01-03  Jim Meyering  <meyering@redhat.com>
38595
38596         gnulib-tool: fix sed-based filtering
38597         * gnulib-tool (func_filter_filelist): Remove extra backslash
38598         in sed_fff_filter definition.
38599
38600 2009-01-02  Jim Meyering  <meyering@redhat.com>
38601
38602         strftime: avoid compilation failure on Solaris 2.6
38603         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
38604         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
38605         Don't #define mbrlen or mbsinit, since now they're guaranteed to
38606         be available.  Reported by Tom G. Christensen.  Details in
38607         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
38608
38609 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38610             Bruno Haible  <bruno@clisp.org>
38611
38612         Speed up gnulib-tool by doing more string processing through shell
38613         built-ins.
38614         * gnulib-tool (fast_func_append): New variable.
38615         (func_remove_prefix, func_remove_suffix): New functions.
38616         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
38617         (func_filter_filelist): New function.
38618         (func_get_dependencies): Use func_remove_suffix instead of sed.
38619         (func_get_automake_snippet): Use func_filter_filelist instead of a
38620         subshell and sed invocation.
38621
38622 2009-01-01  Bruno Haible  <bruno@clisp.org>
38623
38624         Fix a security bug.
38625         * gnulib-tool (func_import, import, update): Don't allow the characters
38626         '"', '$', '`', '\' in macro arguments that become part of commands that
38627         are evaluated.
38628
38629 2009-01-01  Bruno Haible  <bruno@clisp.org>
38630
38631         * gnulib-tool (func_reset_sigpipe): Add more comments.
38632
38633 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38634
38635         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
38636         func_emit_tests_Makefile_am, func_import): Abort loops early if we
38637         already know the answer.
38638
38639 2009-01-01  Jim Meyering  <meyering@redhat.com>
38640
38641         * lib/version-etc.c (version_etc_va): Update copyright year.
38642
38643 2008-12-30  Bruno Haible  <bruno@clisp.org>
38644
38645         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
38646         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
38647         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
38648
38649 2008-12-29  Eric Blake  <ebb9@byu.net>
38650
38651         multiarch: avoid autoconf AC_REQUIRE bug
38652         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
38653         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
38654         2.63 and older.
38655         Reported by Bruno Haible, and analyzed in
38656         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
38657
38658 2008-12-29  Bruno Haible  <bruno@clisp.org>
38659
38660         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
38661         files in subdirectories correctly.
38662         Reported by Ralf Wildenhues.
38663
38664 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38665
38666         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
38667         rather than 'join FILE -', for Solaris join.
38668
38669 2008-12-29  Bruno Haible  <bruno@clisp.org>
38670
38671         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
38672         quoting.
38673         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
38674         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
38675         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
38676         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
38677         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
38678         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
38679         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
38680         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
38681         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
38682         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
38683         * m4/nls.m4 (AM_NLS): Likewise.
38684         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
38685         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
38686         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
38687         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
38688         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
38689         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
38690         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
38691         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
38692         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
38693         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38694         * m4/xsize.m4 (gl_XSIZE): Likewise.
38695         Suggested by Jim Meyering.
38696
38697 2008-11-17  Bruce Korb  <bkorb@gnu.org>
38698
38699         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
38700         * lib/parse-duration.c: use a switch instead of cascading if's.
38701
38702 2008-12-29  Eric Blake  <ebb9@byu.net>
38703
38704         wchar.h: supply WEOF on Irix 5.3
38705         * lib/wchar.in.h (wint_t): Also supply WEOF.
38706         * lib/wctype.in.h (wint_t): Likewise.
38707         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
38708         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
38709         Reported by Tom G. Christensen.
38710
38711 2008-12-26  Bruno Haible  <bruno@clisp.org>
38712
38713         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
38714         i486, i586, i686.
38715
38716 2008-12-26  Bruno Haible  <bruno@clisp.org>
38717
38718         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
38719
38720 2008-12-26  Bruno Haible  <bruno@clisp.org>
38721
38722         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
38723         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
38724         not __STDC_CONSTANT_MACROS.
38725         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
38726
38727 2008-12-25  Bruno Haible  <bruno@clisp.org>
38728
38729         Add support for universal builds to vasnprintf.
38730         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
38731         universal builds, guess no.
38732         * modules/vasnprintf-posix (Depends-on): Add multiarch.
38733         * modules/vasprintf-posix (Depends-on): Likewise.
38734         * modules/fprintf-posix (Depends-on): Likewise.
38735         * modules/vfprintf-posix (Depends-on): Likewise.
38736         * modules/snprintf-posix (Depends-on): Likewise.
38737         * modules/vsnprintf-posix (Depends-on): Likewise.
38738         * modules/sprintf-posix (Depends-on): Likewise.
38739         * modules/vsprintf-posix (Depends-on): Likewise.
38740         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
38741         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
38742         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
38743         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
38744         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
38745         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
38746         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
38747
38748         Add support for universal builds to <inttypes.h>.
38749         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
38750         _SCNu64_PREFIX): In Apple
38751         universal builds, define directly, using _LP64.
38752         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
38753         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
38754         * modules/inttypes (Depends-on): Add multiarch.
38755         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38756
38757         Add support for universal builds to <stdint.h>.
38758         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
38759         universal builds, define directly, using _LP64.
38760         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
38761         Apple universal builds, don't test for the size and suffix of ptrdiff_t
38762         and size_t.
38763         * modules/stdint (Depends-on): Add multiarch.
38764         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
38765
38766         New module 'multiarch'.
38767         * modules/multiarch: New file.
38768         * m4/multiarch.m4: New file.
38769
38770 2008-12-25  Bruno Haible  <bruno@clisp.org>
38771
38772         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
38773
38774 2008-12-25  Bruno Haible  <bruno@clisp.org>
38775
38776         * modules/btowc (License): Relicense under LGPLv2+.
38777         * modules/mbsinit (License): Likewise.
38778         * modules/mbrtowc (License): Likewise.
38779         * modules/wcrtomb (License): Likewise.
38780         * modules/streq (License): Likewise.
38781         Reported by David Lutterkort <lutter@redhat.com>.
38782
38783 2008-12-23  Bruno Haible  <bruno@clisp.org>
38784
38785         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
38786
38787 2008-12-23  Bruno Haible  <bruno@clisp.org>
38788
38789         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
38790         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
38791         GETADDRINFO_LIB, not in LIBS.
38792         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
38793         * modules/canon-host (Link): Likewise.
38794         * NEWS: Mention the change.
38795         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
38796         GETADDRINFO_LIB.
38797
38798 2008-12-22  Bruno Haible  <bruno@clisp.org>
38799
38800         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
38801         * doc/posix-functions/iswalpha_l.texi: Likewise.
38802         * doc/posix-functions/iswblank_l.texi: Likewise.
38803         * doc/posix-functions/iswcntrl_l.texi: Likewise.
38804         * doc/posix-functions/iswctype_l.texi: Likewise.
38805         * doc/posix-functions/iswdigit_l.texi: Likewise.
38806         * doc/posix-functions/iswgraph_l.texi: Likewise.
38807         * doc/posix-functions/iswlower_l.texi: Likewise.
38808         * doc/posix-functions/iswprint_l.texi: Likewise.
38809         * doc/posix-functions/iswpunct_l.texi: Likewise.
38810         * doc/posix-functions/iswspace_l.texi: Likewise.
38811         * doc/posix-functions/iswupper_l.texi: Likewise.
38812         * doc/posix-functions/iswxdigit_l.texi: Likewise.
38813         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
38814         * doc/posix-functions/open_wmemstream.texi: Likewise.
38815         * doc/posix-functions/swscanf.texi: Likewise.
38816         * doc/posix-functions/towctrans_l.texi: Likewise.
38817         * doc/posix-functions/towlower.texi: Likewise.
38818         * doc/posix-functions/towlower_l.texi: Likewise.
38819         * doc/posix-functions/towupper.texi: Likewise.
38820         * doc/posix-functions/towupper_l.texi: Likewise.
38821         * doc/posix-functions/vfwprintf.texi: Likewise.
38822         * doc/posix-functions/vfwscanf.texi: Likewise.
38823         * doc/posix-functions/vswscanf.texi: Likewise.
38824         * doc/posix-functions/vwprintf.texi: Likewise.
38825         * doc/posix-functions/vwscanf.texi: Likewise.
38826         * doc/posix-functions/wcpcpy.texi: Likewise.
38827         * doc/posix-functions/wcpncpy.texi: Likewise.
38828         * doc/posix-functions/wcscasecmp.texi: Likewise.
38829         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
38830         * doc/posix-functions/wcscoll_l.texi: Likewise.
38831         * doc/posix-functions/wcsdup.texi: Likewise.
38832         * doc/posix-functions/wcsncasecmp.texi: Likewise.
38833         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
38834         * doc/posix-functions/wcsnlen.texi: Likewise.
38835         * doc/posix-functions/wcsnrtombs.texi: Likewise.
38836         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
38837         * doc/posix-functions/wctrans_l.texi: Likewise.
38838         * doc/posix-functions/wctype_l.texi: Likewise.
38839         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
38840         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
38841         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
38842         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
38843         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
38844         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
38845         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
38846         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
38847         * doc/glibc-functions/wcschrnul.texi: Likewise.
38848         * doc/glibc-functions/wcsftime_l.texi: Likewise.
38849         * doc/glibc-functions/wcstod_l.texi: Likewise.
38850         * doc/glibc-functions/wcstof_l.texi: Likewise.
38851         * doc/glibc-functions/wcstol_l.texi: Likewise.
38852         * doc/glibc-functions/wcstold_l.texi: Likewise.
38853         * doc/glibc-functions/wcstoll_l.texi: Likewise.
38854         * doc/glibc-functions/wcstoq.texi: Likewise.
38855         * doc/glibc-functions/wcstoul_l.texi: Likewise.
38856         * doc/glibc-functions/wcstoull_l.texi: Likewise.
38857         * doc/glibc-functions/wcstouq.texi: Likewise.
38858         * doc/glibc-functions/wmempcpy.texi: Likewise.
38859
38860 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
38861             Eric Blake  <ebb9@byu.net>
38862             Paolo Bonzini  <bonzini@gnu.org>
38863             Bruno Haible  <bruno@clisp.org>
38864
38865         Make c-stack work on Haiku.
38866         * lib/c-stack.c (SA_ONSTACK): Define fallback.
38867         (c_stack_action): Use SA_ONSTACK flag.
38868
38869 2008-12-22  Bruno Haible  <bruno@clisp.org>
38870
38871         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
38872
38873 2008-12-22  Bruno Haible  <bruno@clisp.org>
38874
38875         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
38876         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
38877         being overridden.
38878         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
38879         New macros.
38880         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
38881         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
38882         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
38883         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
38884
38885 2008-12-22  Bruno Haible  <bruno@clisp.org>
38886
38887         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
38888         from test code.
38889
38890 2008-12-22  Eric Blake  <ebb9@byu.net>
38891
38892         Avoid gcc warnings on cygwin.
38893         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
38894         Avoid unused variable.
38895         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
38896         Likewise.
38897
38898 2008-12-22  Bruno Haible  <bruno@clisp.org>
38899
38900         Remove HAVE_MBRTOWC conditionals.
38901         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
38902         (mbscasecmp): Assume mbrtowc function.
38903         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
38904         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
38905         * lib/mbschr.c: Include mbuiter.h unconditionally.
38906         (mbschr): Assume mbrtowc function.
38907         * lib/mbscspn.c: Include mbuiter.h unconditionally.
38908         (mbscspn): Assume mbrtowc function.
38909         * lib/mbslen.c: Include mbuiter.h unconditionally.
38910         (mbslen): Assume mbrtowc function.
38911         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
38912         (mbsncasecmp): Assume mbrtowc function.
38913         * lib/mbsnlen.c: Include mbiter.h unconditionally.
38914         (mbsnlen): Assume mbrtowc function.
38915         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
38916         (mbspbrk): Assume mbrtowc function.
38917         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
38918         (mbspcasecmp): Assume mbrtowc function.
38919         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
38920         (mbsrchr): Assume mbrtowc function.
38921         * lib/mbssep.c: Include mbuiter.h unconditionally.
38922         (mbssep): Assume mbrtowc function.
38923         * lib/mbsspn.c: Include mbuiter.h unconditionally.
38924         (mbsspn): Assume mbrtowc function.
38925         * lib/mbsstr.c: Include mbuiter.h unconditionally.
38926         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
38927         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
38928         (mbstok_r): Assume mbrtowc function.
38929         * lib/propername.c: Include mbuiter.h unconditionally.
38930         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
38931         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
38932         (trim2): Assume mbrtowc function.
38933         * lib/mbswidth.c (mbsinit): Remove fallback definition.
38934         (mbsnwidth): Assume mbrtowc function.
38935         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
38936         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
38937         fallback definitions.
38938         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
38939
38940 2008-12-22  Bruno Haible  <bruno@clisp.org>
38941
38942         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
38943
38944 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
38945
38946         * modules/regex: Request emulations for the mb*/wc* functions we need.
38947         * m4/regex.m4: Don't look for those functions here.
38948         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
38949
38950 2008-12-22  Bruno Haible  <bruno@clisp.org>
38951
38952         * modules/fnmatch (Depends-on): Remove duplicated dependency.
38953
38954 2008-12-21  Bruno Haible  <bruno@clisp.org>
38955
38956         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
38957         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
38958         (Include): Remove conditionalization.
38959         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
38960         (Include): Remove conditionalization.
38961         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
38962         (Include): Remove conditionalization.
38963         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
38964         * m4/mbfile.m4 (gl_MBFILE): Likewise.
38965         * NEWS: Mention the change.
38966         Reported by Alan Hourihane <alanh@fairlite.co.uk>
38967         via Sergey Poznyakoff <gray@gnu.org.ua>.
38968
38969 2008-12-21  Bruno Haible  <bruno@clisp.org>
38970
38971         * MODULES.html.sh (Extended multibyte and wide character utilities
38972         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
38973         wcrtomb, wcsrtombs.
38974         (Support for systems lacking POSIX:2008): Add accept, bind, close,
38975         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
38976         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
38977         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
38978
38979 2008-12-21  Bruno Haible  <bruno@clisp.org>
38980
38981         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
38982
38983 2008-12-21  Bruno Haible  <bruno@clisp.org>
38984
38985         * modules/wcsnrtombs-tests: New file.
38986         * tests/test-wcsnrtombs1.sh: New file.
38987         * tests/test-wcsnrtombs2.sh: New file.
38988         * tests/test-wcsnrtombs3.sh: New file.
38989         * tests/test-wcsnrtombs4.sh: New file.
38990         * tests/test-wcsnrtombs.c: New file.
38991
38992         New module 'wcsnrtombs'.
38993         * lib/wchar.in.h (wcsnrtombs): New declaration.
38994         * lib/wcsnrtombs.c: New file.
38995         * lib/wcsrtombs-state.c: New file.
38996         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
38997         (internal_state): Remove variable.
38998         * m4/wcsnrtombs.m4: New file.
38999         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
39000         compilation units.
39001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
39002         HAVE_WCSNRTOMBS.
39003         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
39004         HAVE_WCSNRTOMBS.
39005         * modules/wcsnrtombs: New file.
39006         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
39007         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
39008
39009 2008-12-21  Bruno Haible  <bruno@clisp.org>
39010
39011         * modules/wcsrtombs-tests: New file.
39012         * tests/test-wcsrtombs1.sh: New file.
39013         * tests/test-wcsrtombs2.sh: New file.
39014         * tests/test-wcsrtombs3.sh: New file.
39015         * tests/test-wcsrtombs4.sh: New file.
39016         * tests/test-wcsrtombs.c: New file.
39017
39018         New module 'wcsrtombs'.
39019         * lib/wchar.in.h (wcsrtombs): New declaration.
39020         * lib/wcsrtombs.c: New file.
39021         * m4/wcsrtombs.m4: New file.
39022         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
39023         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39024         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
39025         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
39026         * modules/wcsrtombs: New file.
39027         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
39028         bugs.
39029
39030 2008-12-21  Bruno Haible  <bruno@clisp.org>
39031
39032         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
39033         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
39034         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
39035         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
39036         if not correct.
39037         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
39038         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
39039         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39040         m4/locale-zh.m4, m4/codeset.m4.
39041         * doc/posix-functions/wcrtomb.texi: Document the bug.
39042
39043 2008-12-21  Bruno Haible  <bruno@clisp.org>
39044
39045         Work around a btowc() bug on IRIX 6.5.
39046         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
39047         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
39048         REPLACE_WTOBC if not.
39049         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
39050         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
39051         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
39052
39053 2008-12-21  Bruno Haible  <bruno@clisp.org>
39054
39055         * modules/wcrtomb-tests: New file.
39056         * tests/test-wcrtomb.sh: New file.
39057         * tests/test-wcrtomb.c: New file.
39058
39059         New module 'wcrtomb'.
39060         * lib/wchar.in.h (wcrtomb): New declaration.
39061         * lib/wcrtomb.c: New file.
39062         * m4/wcrtomb.m4: New file.
39063         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
39064         HAVE_WCRTOMB.
39065         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
39066         HAVE_WCRTOMB.
39067         * modules/wcrtomb: New file.
39068         * doc/posix-functions/wcrtomb.texi: Mention the new module.
39069
39070 2008-12-21  Bruno Haible  <bruno@clisp.org>
39071
39072         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
39073         * modules/mbsrtowcs (Files): Likewise.
39074         * modules/wctob (Files): Likewise.
39075         * modules/c-strcase-tests (Files): Likewise.
39076         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39077         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39078         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39079         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39080         * modules/vasnprintf-posix-tests (Files): Likewise.
39081
39082 2008-12-21  William Pursell  <bill.pursell@gmail.com>
39083
39084         gitlog-to-changelog: pass all command-line arguments to git-log
39085         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
39086         it is sometimes convenient to filter the commits in various ways.
39087         gitlog-to-changelog only allows --since to specify a start date,
39088         but git-log itself supports many other filtering mechanisms.
39089         At the moment, I want to filter by branch name.  Rather than
39090         adding a --branch option to gitlog-to-changelog, it seems more
39091         flexible to simply pass all options directly to git-log and let
39092         git do the work.  Notice that this effectively makes --since a
39093         redundant option for gitlog-to-changelog, but removing it would
39094         require current usage to change since calls would then require
39095         an additional '--'.
39096
39097 2008-12-21  Bruno Haible  <bruno@clisp.org>
39098
39099         * modules/mbsnrtowcs-tests: New file.
39100         * tests/test-mbsnrtowcs1.sh: New file.
39101         * tests/test-mbsnrtowcs2.sh: New file.
39102         * tests/test-mbsnrtowcs3.sh: New file.
39103         * tests/test-mbsnrtowcs4.sh: New file.
39104         * tests/test-mbsnrtowcs.c: New file.
39105
39106         New module 'mbsnrtowcs'.
39107         * lib/wchar.in.h (mbsnrtowcs): New declaration.
39108         * lib/mbsnrtowcs.c: New file.
39109         * lib/mbsrtowcs-state.c: New file.
39110         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
39111         (internal_state): Remove variable.
39112         * m4/mbsnrtowcs.m4: New file.
39113         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
39114         compilation units.
39115         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
39116         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39117         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
39118         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
39119         * modules/mbsnrtowcs: New file.
39120         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
39121         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
39122         portability problem.
39123
39124 2008-12-21  Bruno Haible  <bruno@clisp.org>
39125
39126         Work around mbsrtowcs bug.
39127         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
39128         (gl_FUNC_MBSRTOWCS): Invoke it.
39129         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39130         m4/locale-zh.m4.
39131         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
39132
39133 2008-12-21  Bruno Haible  <bruno@clisp.org>
39134
39135         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
39136
39137 2008-12-21  Bruno Haible  <bruno@clisp.org>
39138
39139         Update doc for AIX.
39140         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
39141         16-bit wchar_t type.
39142         * doc/posix-functions/btowc.texi: Likewise.
39143         * doc/posix-functions/fgetwc.texi: Likewise.
39144         * doc/posix-functions/fgetws.texi: Likewise.
39145         * doc/posix-functions/fputwc.texi: Likewise.
39146         * doc/posix-functions/fputws.texi: Likewise.
39147         * doc/posix-functions/fwide.texi: Likewise.
39148         * doc/posix-functions/fwprintf.texi: Likewise.
39149         * doc/posix-functions/fwscanf.texi: Likewise.
39150         * doc/posix-functions/getwchar.texi: Likewise.
39151         * doc/posix-functions/getwc.texi: Likewise.
39152         * doc/posix-functions/iswalnum.texi: Likewise.
39153         * doc/posix-functions/iswalpha.texi: Likewise.
39154         * doc/posix-functions/iswblank.texi: Likewise.
39155         * doc/posix-functions/iswcntrl.texi: Likewise.
39156         * doc/posix-functions/iswctype.texi: Likewise.
39157         * doc/posix-functions/iswdigit.texi: Likewise.
39158         * doc/posix-functions/iswgraph.texi: Likewise.
39159         * doc/posix-functions/iswlower.texi: Likewise.
39160         * doc/posix-functions/iswprint.texi: Likewise.
39161         * doc/posix-functions/iswpunct.texi: Likewise.
39162         * doc/posix-functions/iswspace.texi: Likewise.
39163         * doc/posix-functions/iswupper.texi: Likewise.
39164         * doc/posix-functions/iswxdigit.texi: Likewise.
39165         * doc/posix-functions/mbrtowc.texi: Likewise.
39166         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39167         * doc/posix-functions/mbstowcs.texi: Likewise.
39168         * doc/posix-functions/mbtowc.texi: Likewise.
39169         * doc/posix-functions/putwchar.texi: Likewise.
39170         * doc/posix-functions/putwc.texi: Likewise.
39171         * doc/posix-functions/swprintf.texi: Likewise.
39172         * doc/posix-functions/tolower.texi: Likewise.
39173         * doc/posix-functions/toupper.texi: Likewise.
39174         * doc/posix-functions/towctrans.texi: Likewise.
39175         * doc/posix-functions/ungetwc.texi: Likewise.
39176         * doc/posix-functions/vswprintf.texi: Likewise.
39177         * doc/posix-functions/wcrtomb.texi: Likewise.
39178         * doc/posix-functions/wcscat.texi: Likewise.
39179         * doc/posix-functions/wcschr.texi: Likewise.
39180         * doc/posix-functions/wcscmp.texi: Likewise.
39181         * doc/posix-functions/wcscoll.texi: Likewise.
39182         * doc/posix-functions/wcscpy.texi: Likewise.
39183         * doc/posix-functions/wcscspn.texi: Likewise.
39184         * doc/posix-functions/wcsftime.texi: Likewise.
39185         * doc/posix-functions/wcslen.texi: Likewise.
39186         * doc/posix-functions/wcsncat.texi: Likewise.
39187         * doc/posix-functions/wcsncmp.texi: Likewise.
39188         * doc/posix-functions/wcsncpy.texi: Likewise.
39189         * doc/posix-functions/wcspbrk.texi: Likewise.
39190         * doc/posix-functions/wcsrchr.texi: Likewise.
39191         * doc/posix-functions/wcsrtombs.texi: Likewise.
39192         * doc/posix-functions/wcsspn.texi: Likewise.
39193         * doc/posix-functions/wcsstr.texi: Likewise.
39194         * doc/posix-functions/wcstod.texi: Likewise.
39195         * doc/posix-functions/wcstof.texi: Likewise.
39196         * doc/posix-functions/wcstoimax.texi: Likewise.
39197         * doc/posix-functions/wcstok.texi: Likewise.
39198         * doc/posix-functions/wcstold.texi: Likewise.
39199         * doc/posix-functions/wcstoll.texi: Likewise.
39200         * doc/posix-functions/wcstol.texi: Likewise.
39201         * doc/posix-functions/wcstombs.texi: Likewise.
39202         * doc/posix-functions/wcstoull.texi: Likewise.
39203         * doc/posix-functions/wcstoul.texi: Likewise.
39204         * doc/posix-functions/wcstoumax.texi: Likewise.
39205         * doc/posix-functions/wcswidth.texi: Likewise.
39206         * doc/posix-functions/wcsxfrm.texi: Likewise.
39207         * doc/posix-functions/wctob.texi: Likewise.
39208         * doc/posix-functions/wctomb.texi: Likewise.
39209         * doc/posix-functions/wctrans.texi: Likewise.
39210         * doc/posix-functions/wctype.texi: Likewise.
39211         * doc/posix-functions/wcwidth.texi: Likewise.
39212         * doc/posix-functions/wmemchr.texi: Likewise.
39213         * doc/posix-functions/wmemcmp.texi: Likewise.
39214         * doc/posix-functions/wmemcpy.texi: Likewise.
39215         * doc/posix-functions/wmemmove.texi: Likewise.
39216         * doc/posix-functions/wmemset.texi: Likewise.
39217         * doc/posix-functions/wprintf.texi: Likewise.
39218         * doc/posix-functions/wscanf.texi: Likewise.
39219
39220 2008-12-21  Bruno Haible  <bruno@clisp.org>
39221
39222         Update doc for HP-UX 11.11.
39223         * doc/posix-functions/btowc.texi: Clarify that the function is missing
39224         in HP-UX version 11.00, not in all versions of HP-UX 11.
39225         * doc/posix-functions/fwide.texi: Likewise.
39226         * doc/posix-functions/fwprintf.texi: Likewise.
39227         * doc/posix-functions/fwscanf.texi: Likewise.
39228         * doc/posix-functions/inet_ntop.texi: Likewise.
39229         * doc/posix-functions/inet_pton.texi: Likewise.
39230         * doc/posix-functions/mbrlen.texi: Likewise.
39231         * doc/posix-functions/mbrtowc.texi: Likewise.
39232         * doc/posix-functions/mbsinit.texi: Likewise.
39233         * doc/posix-functions/mbsrtowcs.texi: Likewise.
39234         * doc/posix-functions/swprintf.texi: Likewise.
39235         * doc/posix-functions/swscanf.texi: Likewise.
39236         * doc/posix-functions/towctrans.texi: Likewise.
39237         * doc/posix-functions/vfwprintf.texi: Likewise.
39238         * doc/posix-functions/vswprintf.texi: Likewise.
39239         * doc/posix-functions/vwprintf.texi: Likewise.
39240         * doc/posix-functions/wcrtomb.texi: Likewise.
39241         * doc/posix-functions/wcsrtombs.texi: Likewise.
39242         * doc/posix-functions/wcsstr.texi: Likewise.
39243         * doc/posix-functions/wctob.texi: Likewise.
39244         * doc/posix-functions/wctrans.texi: Likewise.
39245         * doc/posix-functions/wmemchr.texi: Likewise.
39246         * doc/posix-functions/wmemcmp.texi: Likewise.
39247         * doc/posix-functions/wmemcpy.texi: Likewise.
39248         * doc/posix-functions/wmemmove.texi: Likewise.
39249         * doc/posix-functions/wmemset.texi: Likewise.
39250         * doc/posix-functions/wprintf.texi: Likewise.
39251         * doc/posix-functions/wscanf.texi: Likewise.
39252
39253 2008-12-21  Bruno Haible  <bruno@clisp.org>
39254
39255         Work around a portability problem.
39256         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
39257         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
39258
39259 2008-12-20  Bruno Haible  <bruno@clisp.org>
39260
39261         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
39262         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
39263         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
39264         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
39265         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
39266
39267         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
39268         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
39269         set.
39270         (GNULIB_defined_mbstate_t): New macro.
39271         (mbsinit): Redefine if REPLACE_MBSINIT is set.
39272         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
39273         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
39274         reuses the system's mbrtowc function but works around the bugs.
39275         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
39276         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
39277         macros.
39278         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
39279         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
39280         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
39281         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
39282         REPLACE_MBSINIT if mbsinit needs to be overridden.
39283         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
39284         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39285         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
39286         REPLACE_MBSINIT, REPLACE_MBRTOWC.
39287         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
39288         m4/locale-zh.m4.
39289         (Depends): Add mbsinit.
39290         * modules/mbsinit (Depends): Add mbrtowc.
39291         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
39292
39293 2008-12-20  Bruno Haible  <bruno@clisp.org>
39294
39295         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
39296         so that there are no conversion errors on AIX.
39297         * tests/test-mbsrtowcs.c (main): LIkewise.
39298
39299 2008-12-20  Bruno Haible  <bruno@clisp.org>
39300
39301         Work around wctob bug on Solaris <= 9.
39302         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
39303         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
39304         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
39305         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
39306         * modules/wctob (Files): Add m4/locale-fr.m4.
39307         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
39308
39309 2008-12-20  Bruno Haible  <bruno@clisp.org>
39310
39311         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
39312         /dev/null.
39313         * tests/test-select-in.sh: Likewise.
39314         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39315
39316 2008-12-20  Bruno Haible  <bruno@clisp.org>
39317
39318         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
39319         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
39320         Cygwin 1.5.x.
39321
39322 2008-12-20  Bruno Haible  <bruno@clisp.org>
39323
39324         Ensure mbstate_t is defined on HP-UX 11.11.
39325         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
39326         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
39327         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
39328         AC_USE_SYSTEM_EXTENSIONS.
39329         * modules/fnmatch (Depends-on): Add extensions.
39330         * modules/mbrlen (Depends-on): Likewise.
39331         * modules/mbrtowc (Depends-on): Likewise.
39332         * modules/mbsinit (Depends-on): Likewise.
39333         * modules/mbsrtowcs (Depends-on): Likewise.
39334         * modules/mbswidth (Depends-on): Likewise.
39335         * modules/quotearg (Depends-on): Likewise.
39336         * modules/strftime (Depends-on): Likewise.
39337
39338 2008-12-20  Bruno Haible  <bruno@clisp.org>
39339
39340         Ensure wctob is declared on IRIX 6.5.
39341         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
39342         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
39343         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
39344         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
39345         of HAVE_WCTOB.
39346         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
39347         HAVE_WCTOB.
39348         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
39349
39350 2008-12-19  Bruno Haible  <bruno@clisp.org>
39351
39352         * modules/mbsrtowcs-tests: New file.
39353         * tests/test-mbsrtowcs1.sh: New file.
39354         * tests/test-mbsrtowcs2.sh: New file.
39355         * tests/test-mbsrtowcs3.sh: New file.
39356         * tests/test-mbsrtowcs4.sh: New file.
39357         * tests/test-mbsrtowcs.c: New file.
39358
39359         New module 'mbsrtowcs'.
39360         * lib/wchar.in.h (mbsrtowcs): New declaration.
39361         * lib/mbsrtowcs.c: New file.
39362         * m4/mbsrtowcs.m4: New file.
39363         * modules/mbsrtowcs: New file.
39364         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
39365         HAVE_MBSRTOWCS.
39366         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
39367         HAVE_MBSRTOWCS.
39368         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
39369
39370 2008-12-19  Bruno Haible  <bruno@clisp.org>
39371
39372         New module 'mbrlen'.
39373         * lib/wchar.in.h (mbrlen): New declaration.
39374         * lib/mbrlen.c: New file.
39375         * m4/mbrlen.m4: New file.
39376         * modules/mbrlen: New file.
39377         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
39378         HAVE_MBRLEN.
39379         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
39380         HAVE_MBRLEN.
39381         * doc/posix-functions/mbrlen.texi: Document the new module.
39382
39383 2008-12-19  Bruno Haible  <bruno@clisp.org>
39384
39385         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
39386         * modules/mbrtowc (Depends-on): Add verify.
39387         Suggested by Paul Eggert.
39388
39389 2008-12-18  Bruno Haible  <bruno@clisp.org>
39390
39391         * modules/mbsinit-tests: New file.
39392         * tests/test-mbsinit.sh: New file.
39393         * tests/test-mbsinit.c: New file.
39394
39395 2008-12-18  Bruno Haible  <bruno@clisp.org>
39396
39397         * modules/mbrtowc-tests: New file.
39398         * tests/test-mbrtowc1.sh: New file.
39399         * tests/test-mbrtowc2.sh: New file.
39400         * tests/test-mbrtowc3.sh: New file.
39401         * tests/test-mbrtowc4.sh: New file.
39402         * tests/test-mbrtowc.c: New file.
39403
39404         New module 'mbrtowc'.
39405         * lib/wchar.in.h (mbstate_t): Override when the system does not have
39406         mbsinit and mbrtowc.
39407         (mbrtowc): New declaration.
39408         * lib/mbrtowc.c: New file.
39409         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
39410         * modules/mbrtowc: New file.
39411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
39412         HAVE_MBRTOWC.
39413         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
39414         HAVE_MBRTOWC.
39415         * doc/posix-functions/mbrtowc.texi: Document the new module.
39416
39417 2008-12-18  Bruno Haible  <bruno@clisp.org>
39418
39419         New module 'wctob'.
39420         * lib/wchar.in.h (wctob): New declaration.
39421         * lib/wctob.c: New file.
39422         * m4/wctob.m4: New file.
39423         * modules/wctob: New file.
39424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
39425         HAVE_WCTOB.
39426         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
39427         * doc/posix-functions/wctob.texi: Document the new module.
39428
39429 2008-12-18  Bruno Haible  <bruno@clisp.org>
39430
39431         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
39432         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
39433
39434 2008-12-18  Simon Josefsson  <simon@josefsson.org>
39435
39436         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
39437         G. Christensen" <tgc@jupiterrise.com>.
39438
39439         * lib/flock.c: Need to include errno.h.  Reported by "Tom
39440         G. Christensen" <tgc@jupiterrise.com>.
39441
39442         * lib/flock.c: Need to include string.h.  Reported by "Tom
39443         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
39444         <ebb9@byu.net>.
39445
39446 2008-12-18  Bruno Haible  <bruno@clisp.org>
39447
39448         * m4/locale-ja.m4: New file, from GNU gettext.
39449
39450 2008-12-17  Bruno Haible  <bruno@clisp.org>
39451
39452         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
39453         Suggested by Eric Blake.
39454
39455 2008-12-17  Bruno Haible  <bruno@clisp.org>
39456
39457         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
39458
39459 2008-12-17  Bruno Haible  <bruno@clisp.org>
39460
39461         * lib/mbsinit.c: Include verify.h. Verify an assumption.
39462         * modules/mbsinit (Depends-on): Add verify.
39463         Suggested by Paul Eggert.
39464
39465 2008-12-17  Bruno Haible  <bruno@clisp.org>
39466
39467         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
39468         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
39469         gl_FUNC_MBRTOWC.
39470         * m4/mbiter.m4 (gl_MBITER): LIkewise.
39471         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
39472         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
39473         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
39474         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
39475         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
39476         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
39477         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
39478         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
39479         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
39480         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
39481         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
39482         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
39483         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
39484         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
39485         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
39486         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
39487         * modules/trim (configure.ac): Likewise.
39488
39489 2008-12-17  Bruno Haible  <bruno@clisp.org>
39490
39491         * modules/btowc-tests: New file.
39492         * tests/test-btowc1.sh: New file.
39493         * tests/test-btowc2.sh: New file.
39494         * tests/test-btowc.c: New file.
39495
39496         New module 'btowc'.
39497         * lib/wchar.in.h (btowc): New declaration.
39498         * lib/btowc.c: New file.
39499         * m4/btowc.m4: New file.
39500         * modules/btowc: New file.
39501         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
39502         HAVE_BTOWC.
39503         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
39504         * doc/posix-functions/btowc.texi: Document the new module.
39505
39506 2008-12-17  Bruno Haible  <bruno@clisp.org>
39507
39508         New module 'mbsinit'.
39509         * lib/wchar.in.h (mbsinit): New declaration.
39510         * lib/mbsinit.c: New file.
39511         * m4/mbsinit.m4: New file.
39512         * modules/mbsinit: New file.
39513         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
39514         HAVE_MBSINIT.
39515         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
39516         HAVE_MBSINIT.
39517         * doc/posix-functions/mbsinit.texi: Document the new module.
39518
39519 2008-12-16  Bruno Haible  <bruno@clisp.org>
39520
39521         * lib/unistd.in.h: Add comment.
39522         * tests/test-environ.c: Don't include <stdlib.h>.
39523
39524 2008-12-16  Bruno Haible  <bruno@clisp.org>
39525
39526         * lib/parse-duration.h (parse_duration): Document return value
39527         convention.
39528         * lib/parse-duration.c: Include specification header first. Add
39529         comments.
39530         (_): Remove macro.
39531         (parse_year_month_day, parse_hour_minute_second): Move side effects
39532         outside of strchr call.
39533         (parse_non_iso8601): Move side effects outside of isspace call.
39534         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
39535         call.
39536
39537 2008-12-16  Bruno Haible  <bruno@clisp.org>
39538
39539         * tests/test-parse-duration.sh: Produce no output when the test
39540         succeeds.
39541
39542 2008-12-16  Bruno Haible  <bruno@clisp.org>
39543
39544         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
39545         expressions.
39546
39547 2008-12-15  Bruno Haible  <bruno@clisp.org>
39548
39549         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
39550         * doc/glibc-functions/flistxattr.texi: Likewise.
39551         * doc/glibc-functions/fopencookie.texi: Likewise.
39552         * doc/glibc-functions/fremovexattr.texi: Likewise.
39553         * doc/glibc-functions/fsetxattr.texi: Likewise.
39554         * doc/glibc-functions/getxattr.texi: Likewise.
39555         * doc/glibc-functions/lgetxattr.texi: Likewise.
39556         * doc/glibc-functions/listxattr.texi: Likewise.
39557         * doc/glibc-functions/llistxattr.texi: Likewise.
39558         * doc/glibc-functions/lremovexattr.texi: Likewise.
39559         * doc/glibc-functions/lsetxattr.texi: Likewise.
39560         * doc/glibc-functions/removexattr.texi: Likewise.
39561         * doc/glibc-functions/setxattr.texi: Likewise.
39562         * doc/posix-functions/open_memstream.texi: Likewise.
39563
39564 2008-12-15  Eric Blake  <ebb9@byu.net>
39565
39566         Update doc for cygwin 1.7.
39567         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
39568         functions.
39569         * doc/posix-functions/fchmodat.texi: Likewise.
39570         * doc/posix-functions/fchownat.texi: Likewise.
39571         * doc/posix-functions/fdopendir.texi: Likewise.
39572         * doc/posix-functions/fmemopen.texi: Likewise.
39573         * doc/posix-functions/freeaddrinfo.texi: Likewise.
39574         * doc/posix-functions/fstatat.texi: Likewise.
39575         * doc/posix-functions/futimens.texi: Likewise.
39576         * doc/posix-functions/gai_strerror.texi: Likewise.
39577         * doc/posix-functions/getaddrinfo.texi: Likewise.
39578         * doc/posix-functions/getnameinfo.texi: Likewise.
39579         * doc/posix-functions/if_freenameindex.texi: Likewise.
39580         * doc/posix-functions/if_indextoname.texi: Likewise.
39581         * doc/posix-functions/if_nameindex.texi: Likewise.
39582         * doc/posix-functions/if_nametoindex.texi: Likewise.
39583         * doc/posix-functions/insque.texi: Likewise.
39584         * doc/posix-functions/linkat.texi: Likewise.
39585         * doc/posix-functions/llrint.texi: Likewise.
39586         * doc/posix-functions/llrintf.texi: Likewise.
39587         * doc/posix-functions/llrintl.texi: Likewise.
39588         * doc/posix-functions/lockf.texi: Likewise.
39589         * doc/posix-functions/lrintl.texi: Likewise.
39590         * doc/posix-functions/mkdirat.texi: Likewise.
39591         * doc/posix-functions/mkfifoat.texi: Likewise.
39592         * doc/posix-functions/mknodat.texi: Likewise.
39593         * doc/posix-functions/mq_close.texi: Likewise.
39594         * doc/posix-functions/mq_getattr.texi: Likewise.
39595         * doc/posix-functions/mq_notify.texi: Likewise.
39596         * doc/posix-functions/mq_open.texi: Likewise.
39597         * doc/posix-functions/mq_receive.texi: Likewise.
39598         * doc/posix-functions/mq_send.texi: Likewise.
39599         * doc/posix-functions/mq_setattr.texi: Likewise.
39600         * doc/posix-functions/mq_timedreceive.texi: Likewise.
39601         * doc/posix-functions/mq_timedsend.texi: Likewise.
39602         * doc/posix-functions/mq_unlink.texi: Likewise.
39603         * doc/posix-functions/open_memstream.texi: Likewise.
39604         * doc/posix-functions/openat.texi: Likewise.
39605         * doc/posix-functions/posix_fadvise.texi: Likewise.
39606         * doc/posix-functions/posix_fallocate.texi: Likewise.
39607         * doc/posix-functions/posix_madvise.texi: Likewise.
39608         * doc/posix-functions/posix_memalign.texi: Likewise.
39609         * doc/posix-functions/posix_openpt.texi: Likewise.
39610         * doc/posix-functions/readlinkat.texi: Likewise.
39611         * doc/posix-functions/remque.texi: Likewise.
39612         * doc/posix-functions/renameat.texi: Likewise.
39613         * doc/posix-functions/rintl.texi: Likewise.
39614         * doc/posix-functions/sem_unlink.texi: Likewise.
39615         * doc/posix-functions/shm_open.texi: Likewise.
39616         * doc/posix-functions/shm_unlink.texi: Likewise.
39617         * doc/posix-functions/signgam.texi: Likewise.
39618         * doc/posix-functions/sigset.texi: Likewise.
39619         * doc/posix-functions/stpcpy.texi: Likewise.
39620         * doc/posix-functions/stpncpy.texi: Likewise.
39621         * doc/posix-functions/strerror.texi: Likewise.
39622         * doc/posix-functions/strtod.texi: Likewise.
39623         * doc/posix-functions/symlinkat.texi: Likewise.
39624         * doc/posix-functions/unlinkat.texi: Likewise.
39625         * doc/posix-functions/utimensat.texi: Likewise.
39626         * doc/glibc-functions/bindresvport.texi: Likewise.
39627         * doc/glibc-functions/dn_expand.texi: Likewise.
39628         * doc/glibc-functions/exp10.texi: Likewise.
39629         * doc/glibc-functions/exp10f.texi: Likewise.
39630         * doc/glibc-functions/fgetxattr.texi: Likewise.
39631         * doc/glibc-functions/flistxattr.texi: Likewise.
39632         * doc/glibc-functions/fopencookie.texi: Likewise.
39633         * doc/glibc-functions/freeifaddrs.texi: Likewise.
39634         * doc/glibc-functions/fremovexattr.texi: Likewise.
39635         * doc/glibc-functions/fsetxattr.texi: Likewise.
39636         * doc/glibc-functions/getifaddrs.texi: Likewise.
39637         * doc/glibc-functions/getxattr.texi: Likewise.
39638         * doc/glibc-functions/lgetxattr.texi: Likewise.
39639         * doc/glibc-functions/listxattr.texi: Likewise.
39640         * doc/glibc-functions/llistxattr.texi: Likewise.
39641         * doc/glibc-functions/lremovexattr.texi: Likewise.
39642         * doc/glibc-functions/lsetxattr.texi: Likewise.
39643         * doc/glibc-functions/pow10.texi: Likewise.
39644         * doc/glibc-functions/pow10f.texi: Likewise.
39645         * doc/glibc-functions/rcmd_af.texi: Likewise.
39646         * doc/glibc-functions/removexattr.texi: Likewise.
39647         * doc/glibc-functions/res_init.texi: Likewise.
39648         * doc/glibc-functions/res_mkquery.texi: Likewise.
39649         * doc/glibc-functions/res_query.texi: Likewise.
39650         * doc/glibc-functions/res_querydomain.texi: Likewise.
39651         * doc/glibc-functions/res_send.texi: Likewise.
39652         * doc/glibc-functions/rresvport_af.texi: Likewise.
39653         * doc/glibc-functions/setxattr.texi: Likewise.
39654         * doc/glibc-functions/strcasestr.texi: Likewise.
39655
39656 2008-12-15  Bruno Haible  <bruno@clisp.org>
39657
39658         Fix compilation error on OSF/1 4.0.
39659         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
39660         <sys/time.h>, simply delegate to the system header.
39661         Reported by Daniel Richard G. <oss@teragram.com>.
39662
39663 2008-12-15  Bruno Haible  <bruno@clisp.org>
39664
39665         * doc/posix-functions/openat.texi: Mention the 'openat' module.
39666         * doc/posix-functions/fchmodat.texi: Likewise.
39667         * doc/posix-functions/fchownat.texi: Likewise.
39668         * doc/posix-functions/fdopendir.texi: Likewise.
39669         * doc/posix-functions/fstatat.texi: Likewise.
39670         * doc/posix-functions/mkdirat.texi: Likewise.
39671         * doc/posix-functions/unlinkat.texi: Likewise.
39672
39673 2008-12-14  Bruno Haible  <bruno@clisp.org>
39674
39675         Update doc for POSIX:2008.
39676         * doc/posix-functions/faccessat.texi: New file.
39677         * doc/posix-functions/fchmodat.texi: New file.
39678         * doc/posix-functions/fchownat.texi: New file.
39679         * doc/posix-functions/fdopendir.texi: New file.
39680         * doc/posix-functions/fstatat.texi: New file.
39681         * doc/posix-functions/futimens.texi: New file.
39682         * doc/posix-functions/linkat.texi: New file.
39683         * doc/posix-functions/mkdirat.texi: New file.
39684         * doc/posix-functions/mkfifoat.texi: New file.
39685         * doc/posix-functions/mknodat.texi: New file.
39686         * doc/posix-functions/open_wmemstream.texi: New file.
39687         * doc/posix-functions/openat.texi: New file.
39688         * doc/posix-functions/psiginfo.texi: New file.
39689         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
39690         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
39691         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
39692         * doc/posix-functions/readlinkat.texi: New file.
39693         * doc/posix-functions/renameat.texi: New file.
39694         * doc/posix-functions/strerror_l.texi: New file.
39695         * doc/posix-functions/symlinkat.texi: New file.
39696         * doc/posix-functions/unlinkat.texi: New file.
39697         * doc/posix-functions/utimensat.texi: New file.
39698         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39699
39700 2008-12-14  Bruno Haible  <bruno@clisp.org>
39701
39702         Update doc for POSIX:2008.
39703         * doc/posix-functions/alphasort.texi: Renamed from
39704         doc/glibc-functions/alphasort.texi.
39705         * doc/posix-functions/dirfd.texi: Renamed from
39706         doc/glibc-functions/dirfd.texi.
39707         * doc/posix-functions/dprintf.texi: Renamed from
39708         doc/glibc-functions/dprintf.texi.
39709         * doc/posix-functions/duplocale.texi: Renamed from
39710         doc/glibc-functions/duplocale.texi.
39711         * doc/posix-functions/fexecve.texi: Renamed from
39712         doc/glibc-functions/fexecve.texi.
39713         * doc/posix-functions/fmemopen.texi: Renamed from
39714         doc/glibc-functions/fmemopen.texi.
39715         * doc/posix-functions/freelocale.texi: Renamed from
39716         doc/glibc-functions/freelocale.texi.
39717         * doc/posix-functions/getdate_err.texi: Renamed from
39718         doc/glibc-functions/getdate_err.texi.
39719         * doc/posix-functions/isalnum_l.texi: Renamed from
39720         doc/glibc-functions/isalnum_l.texi.
39721         * doc/posix-functions/isalpha_l.texi: Renamed from
39722         doc/glibc-functions/isalpha_l.texi.
39723         * doc/posix-functions/isblank_l.texi: Renamed from
39724         doc/glibc-functions/isblank_l.texi.
39725         * doc/posix-functions/iscntrl_l.texi: Renamed from
39726         doc/glibc-functions/iscntrl_l.texi.
39727         * doc/posix-functions/isdigit_l.texi: Renamed from
39728         doc/glibc-functions/isdigit_l.texi.
39729         * doc/posix-functions/isgraph_l.texi: Renamed from
39730         doc/glibc-functions/isgraph_l.texi.
39731         * doc/posix-functions/islower_l.texi: Renamed from
39732         doc/glibc-functions/islower_l.texi.
39733         * doc/posix-functions/isprint_l.texi: Renamed from
39734         doc/glibc-functions/isprint_l.texi.
39735         * doc/posix-functions/ispunct_l.texi: Renamed from
39736         doc/glibc-functions/ispunct_l.texi.
39737         * doc/posix-functions/isspace_l.texi: Renamed from
39738         doc/glibc-functions/isspace_l.texi.
39739         * doc/posix-functions/isupper_l.texi: Renamed from
39740         doc/glibc-functions/isupper_l.texi.
39741         * doc/posix-functions/iswalnum_l.texi: Renamed from
39742         doc/glibc-functions/iswalnum_l.texi.
39743         * doc/posix-functions/iswalpha_l.texi: Renamed from
39744         doc/glibc-functions/iswalpha_l.texi.
39745         * doc/posix-functions/iswblank_l.texi: Renamed from
39746         doc/glibc-functions/iswblank_l.texi.
39747         * doc/posix-functions/iswcntrl_l.texi: Renamed from
39748         doc/glibc-functions/iswcntrl_l.texi.
39749         * doc/posix-functions/iswctype_l.texi: Renamed from
39750         doc/glibc-functions/iswctype_l.texi.
39751         * doc/posix-functions/iswdigit_l.texi: Renamed from
39752         doc/glibc-functions/iswdigit_l.texi.
39753         * doc/posix-functions/iswgraph_l.texi: Renamed from
39754         doc/glibc-functions/iswgraph_l.texi.
39755         * doc/posix-functions/iswlower_l.texi: Renamed from
39756         doc/glibc-functions/iswlower_l.texi.
39757         * doc/posix-functions/iswprint_l.texi: Renamed from
39758         doc/glibc-functions/iswprint_l.texi.
39759         * doc/posix-functions/iswpunct_l.texi: Renamed from
39760         doc/glibc-functions/iswpunct_l.texi.
39761         * doc/posix-functions/iswspace_l.texi: Renamed from
39762         doc/glibc-functions/iswspace_l.texi.
39763         * doc/posix-functions/iswupper_l.texi: Renamed from
39764         doc/glibc-functions/iswupper_l.texi.
39765         * doc/posix-functions/iswxdigit_l.texi: Renamed from
39766         doc/glibc-functions/iswxdigit_l.texi.
39767         * doc/posix-functions/isxdigit_l.texi: Renamed from
39768         doc/glibc-functions/isxdigit_l.texi.
39769         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
39770         doc/glibc-functions/mbsnrtowcs.texi.
39771         * doc/posix-functions/mkdtemp.texi: Renamed from
39772         doc/glibc-functions/mkdtemp.texi.
39773         * doc/posix-functions/newlocale.texi: Renamed from
39774         doc/glibc-functions/newlocale.texi.
39775         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
39776         doc/glibc-functions/nl_langinfo_l.texi.
39777         * doc/posix-functions/open_memstream.texi: Renamed from
39778         doc/glibc-functions/open_memstream.texi.
39779         * doc/posix-functions/opterr.texi: Renamed from
39780         doc/glibc-functions/opterr.texi.
39781         * doc/posix-functions/optind.texi: Renamed from
39782         doc/glibc-functions/optind.texi.
39783         * doc/posix-functions/optopt.texi: Renamed from
39784         doc/glibc-functions/optopt.texi.
39785         * doc/posix-functions/psignal.texi: Renamed from
39786         doc/glibc-functions/psignal.texi.
39787         * doc/posix-functions/scandir.texi: Renamed from
39788         doc/glibc-functions/scandir.texi.
39789         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
39790         doc/glibc-functions/sched_get_priority_min.texi.
39791         * doc/posix-functions/signgam.texi: Renamed from
39792         doc/glibc-functions/signgam.texi.
39793         * doc/posix-functions/stpcpy.texi: Renamed from
39794         doc/glibc-functions/stpcpy.texi.
39795         * doc/posix-functions/stpncpy.texi: Renamed from
39796         doc/glibc-functions/stpncpy.texi.
39797         * doc/posix-functions/strcasecmp_l.texi: Renamed from
39798         doc/glibc-functions/strcasecmp_l.texi.
39799         * doc/posix-functions/strcoll_l.texi: Renamed from
39800         doc/glibc-functions/strcoll_l.texi.
39801         * doc/posix-functions/strfmon_l.texi: Renamed from
39802         doc/glibc-functions/strfmon_l.texi.
39803         * doc/posix-functions/strftime_l.texi: Renamed from
39804         doc/glibc-functions/strftime_l.texi.
39805         * doc/posix-functions/strncasecmp_l.texi: Renamed from
39806         doc/glibc-functions/strncasecmp_l.texi.
39807         * doc/posix-functions/strndup.texi: Renamed from
39808         doc/glibc-functions/strndup.texi.
39809         * doc/posix-functions/strnlen.texi: Renamed from
39810         doc/glibc-functions/strnlen.texi.
39811         * doc/posix-functions/strsignal.texi: Renamed from
39812         doc/glibc-functions/strsignal.texi.
39813         * doc/posix-functions/strxfrm_l.texi: Renamed from
39814         doc/glibc-functions/strxfrm_l.texi.
39815         * doc/posix-functions/timer_gettime.texi: Renamed from
39816         doc/glibc-functions/timer_gettime.texi.
39817         * doc/posix-functions/tolower_l.texi: Renamed from
39818         doc/glibc-functions/tolower_l.texi.
39819         * doc/posix-functions/toupper_l.texi: Renamed from
39820         doc/glibc-functions/toupper_l.texi.
39821         * doc/posix-functions/towctrans_l.texi: Renamed from
39822         doc/glibc-functions/towctrans_l.texi.
39823         * doc/posix-functions/towlower_l.texi: Renamed from
39824         doc/glibc-functions/towlower_l.texi.
39825         * doc/posix-functions/towupper_l.texi: Renamed from
39826         doc/glibc-functions/towupper_l.texi.
39827         * doc/posix-functions/uselocale.texi: Renamed from
39828         doc/glibc-functions/uselocale.texi.
39829         * doc/posix-functions/vdprintf.texi: Renamed from
39830         doc/glibc-functions/vdprintf.texi.
39831         * doc/posix-functions/wcpcpy.texi:
39832         Renamed from doc/glibc-functions/wcpcpy.texi.
39833         * doc/posix-functions/wcpncpy.texi: Renamed from
39834         doc/glibc-functions/wcpncpy.texi.
39835         * doc/posix-functions/wcscasecmp.texi: Renamed from
39836         doc/glibc-functions/wcscasecmp.texi.
39837         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
39838         doc/glibc-functions/wcscasecmp_l.texi.
39839         * doc/posix-functions/wcscoll_l.texi: Renamed from
39840         doc/glibc-functions/wcscoll_l.texi.
39841         * doc/posix-functions/wcsdup.texi: Renamed from
39842         doc/glibc-functions/wcsdup.texi.
39843         * doc/posix-functions/wcsncasecmp.texi: Renamed from
39844         doc/glibc-functions/wcsncasecmp.texi.
39845         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
39846         doc/glibc-functions/wcsncasecmp_l.texi.
39847         * doc/posix-functions/wcsnlen.texi: Renamed from
39848         doc/glibc-functions/wcsnlen.texi.
39849         * doc/posix-functions/wcsnrtombs.texi: Renamed from
39850         doc/glibc-functions/wcsnrtombs.texi.
39851         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
39852         doc/glibc-functions/wcsxfrm_l.texi.
39853         * doc/posix-functions/wctrans_l.texi: Renamed from
39854         doc/glibc-functions/wctrans_l.texi.
39855         * doc/posix-functions/wctype_l.texi: Renamed from
39856         doc/glibc-functions/wctype_l.texi.
39857         * doc/gnulib.texi (Function Substitutes): Add these subsections.
39858         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
39859         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
39860         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
39861         these subsections.
39862         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
39863         Remove sections.
39864
39865 2008-12-14  Bruno Haible  <bruno@clisp.org>
39866
39867         Update doc for POSIX:2008.
39868         * doc/posix-functions/*.texi: Update URL of POSIX specification.
39869
39870 2008-12-14  Bruno Haible  <bruno@clisp.org>
39871
39872         Update doc for POSIX:2008.
39873         * doc/pastposix-functions/bcmp.texi: Renamed from
39874         doc/posix-functions/bcmp.texi.
39875         * doc/pastposix-functions/bcopy.texi: Renamed from
39876         doc/posix-functions/bcopy.texi.
39877         * doc/pastposix-functions/bsd_signal.texi: Renamed from
39878         doc/posix-functions/bsd_signal.texi.
39879         * doc/pastposix-functions/bzero.texi: Renamed from
39880         doc/posix-functions/bzero.texi.
39881         * doc/pastposix-functions/ecvt.texi: Renamed from
39882         doc/posix-functions/ecvt.texi.
39883         * doc/pastposix-functions/fcvt.texi: Renamed from
39884         doc/posix-functions/fcvt.texi.
39885         * doc/pastposix-functions/ftime.texi: Renamed from
39886         doc/posix-functions/ftime.texi.
39887         * doc/pastposix-functions/gcvt.texi: Renamed from
39888         doc/posix-functions/gcvt.texi.
39889         * doc/pastposix-functions/getcontext.texi: Renamed from
39890         doc/posix-functions/getcontext.texi.
39891         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
39892         doc/posix-functions/gethostbyaddr.texi.
39893         * doc/pastposix-functions/gethostbyname.texi: Renamed from
39894         doc/posix-functions/gethostbyname.texi.
39895         * doc/pastposix-functions/getwd.texi: Renamed from
39896         doc/posix-functions/getwd.texi.
39897         * doc/pastposix-functions/h_errno.texi: Renamed from
39898         doc/posix-functions/h_errno.texi.
39899         * doc/pastposix-functions/index.texi: Renamed from
39900         doc/posix-functions/index.texi.
39901         * doc/pastposix-functions/makecontext.texi: Renamed from
39902         doc/posix-functions/makecontext.texi.
39903         * doc/pastposix-functions/mktemp.texi: Renamed from
39904         doc/posix-functions/mktemp.texi.
39905         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
39906         doc/posix-functions/pthread_attr_getstackaddr.texi.
39907         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
39908         doc/posix-functions/pthread_attr_setstackaddr.texi.
39909         * doc/pastposix-functions/rindex.texi: Renamed from
39910         doc/posix-functions/rindex.texi.
39911         * doc/pastposix-functions/scalb.texi: Renamed from
39912         doc/posix-functions/scalb.texi.
39913         * doc/pastposix-functions/setcontext.texi: Renamed from
39914         doc/posix-functions/setcontext.texi.
39915         * doc/pastposix-functions/swapcontext.texi: Renamed from
39916         doc/posix-functions/swapcontext.texi.
39917         * doc/pastposix-functions/ualarm.texi: Renamed from
39918         doc/posix-functions/ualarm.texi.
39919         * doc/pastposix-functions/usleep.texi: Renamed from
39920         doc/posix-functions/usleep.texi.
39921         * doc/pastposix-functions/vfork.texi: Renamed from
39922         doc/posix-functions/vfork.texi.
39923         * doc/pastposix-functions/wcswcs.texi: Renamed from
39924         doc/posix-functions/wcswcs.texi.
39925         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
39926         (Function Substitutes): Update.
39927
39928 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39929
39930         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
39931         m4/strerror.m4.
39932
39933 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39934             Bruno Haible  <bruno@clisp.org>
39935
39936         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
39937
39938 2008-12-13  Bruno Haible  <bruno@clisp.org>
39939
39940         * modules/strtoull (Depends-on): Remove unistd.
39941
39942 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39943
39944         * modules/strtoull (Depends-on): Add stdlib.
39945
39946 2008-12-11  Simon Josefsson  <simon@josefsson.org>
39947
39948         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
39949
39950 2008-12-10  Jim Meyering  <meyering@redhat.com>
39951
39952         gl_ASSERT: don't say assertions are disabled when they're not
39953         * m4/assert.m4 (gl_ASSERT): Do not make configure report
39954         "checking whether to enable assertions... no", when they are in
39955         fact enabled.  This is solely a bug in the output of configure.
39956         In spite of saying "no", NDEBUG was not defined in that case.
39957         Also, as noted by Eric Blake, leave assertions enabled upon
39958         --enable-assert=INVALID.
39959
39960 2008-12-10  Bruno Haible  <bruno@clisp.org>
39961
39962         Change MODULES.html to refer to POSIX:2008 where possible.
39963         * MODULES.html.sh (POSIX2008_URL): New variable.
39964         (posix_headers): Remove sys/timeb, ucontext.
39965         (posix2001_headers): New variable.
39966         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
39967         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
39968         index, makecontext, mktemp, pthread_attr_getstackaddr,
39969         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
39970         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
39971         (posix2001_functions): New variable.
39972         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
39973         otherwise.
39974
39975 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
39976
39977         add missing include to parse-duration.c
39978         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
39979         * modules/parse-duration (Depends-on): Add xalloc.
39980
39981         fix sed script reading maint.mk
39982         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
39983         (syntax-check-rules): Use it.
39984
39985 2008-12-09  Bruno Haible  <bruno@clisp.org>
39986
39987         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
39988         MacOS X 10.4/PowerPC.
39989         Reported by Simon Josefsson.
39990
39991 2008-12-08  Jim Meyering  <meyering@redhat.com>
39992
39993         work around mingw's lack of some S_IF definitions
39994         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
39995         Reported by Simon Josefsson.
39996
39997 2008-12-08  Bruno Haible  <bruno@clisp.org>
39998
39999         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
40000         applied to variables. Needed on MacOS X 10.4/PowerPC.
40001         Reported by Simon Josefsson.
40002
40003 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
40004         and Eric Blake  <ebb9@byu.net>
40005
40006         assert: honor --enable-assert
40007         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
40008         order to honor --enable-assert, rather than treating it as a
40009         synonym for --disable-assert.
40010
40011 2008-12-08  Jim Meyering  <meyering@redhat.com>
40012
40013         * lib/posixtm.c: Remove now-useless declaration of mktime.
40014
40015         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
40016
40017 2008-12-07  Bruno Haible  <bruno@clisp.org>
40018
40019         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
40020         test_once): Mark functions as static.
40021         * tests/test-tls.c (test_tls): Likewise.
40022
40023 2008-12-07  Bruno Haible  <bruno@clisp.org>
40024
40025         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
40026         iconv_register_autodetect.
40027
40028 2008-12-07  Jim Meyering  <meyering@redhat.com>
40029
40030         posixtm.c: avoid a warning
40031         * lib/posixtm.c (posixtime): Don't initialize tm0.
40032         It's no longer needed to placate gcc4's -Wuninitialized,
40033         and the attempt to placate would elicit a new warning.
40034
40035         unicodeio.c: mark unused parameters
40036         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40037         (fallback_failure_callback): Likewise.
40038
40039 2008-12-07  Bruno Haible  <bruno@clisp.org>
40040
40041         * gnulib-tool (func_create_testdir): When building the tests
40042         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
40043         Reported by Simon Josefsson.
40044
40045 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40046
40047         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
40048
40049 2008-12-06  Bruno Haible  <bruno@clisp.org>
40050
40051         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
40052         Suggested by Eric Blake.
40053
40054 2008-12-06  Bruno Haible  <bruno@clisp.org>
40055
40056         Fix a c-stack test failure on MacOS X.
40057         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
40058         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
40059         handler for SIGBUS as well.
40060         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
40061         install a signal handler for SIGBUS as well.
40062         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
40063
40064 2008-12-06  Bruno Haible  <bruno@clisp.org>
40065
40066         Advocacy documentation.
40067         * doc/gnulib-intro.texi (Benefits): New section.
40068         * doc/gnulib.texi: Update.
40069
40070 2008-12-06  Bruno Haible  <bruno@clisp.org>
40071
40072         Document the 'manywarnings' module.
40073         * doc/manywarnings.texi: New file.
40074         * doc/gnulib.texi: Include it.
40075
40076 2008-12-05  Eric Blake  <ebb9@byu.net>
40077
40078         tests: silence some gcc warnings
40079         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
40080         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
40081         type mismatches.
40082
40083 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40084             Bruno Haible  <bruno@clisp.org>
40085
40086         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
40087
40088 2008-11-29  Jim Meyering  <meyering@redhat.com>
40089
40090         unicodeio.c: mark unused parameters
40091         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
40092         (fallback_failure_callback): Likewise.
40093
40094         fts: fix a thinko
40095         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
40096         (set_stat_type): Return S_IF*-valued "type" directly.
40097         Prompted by James Youngman's spotting a related bug.
40098         Confirmed by further testing through find.
40099
40100         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
40101         * lib/fts.c (D_TYPE): Define.
40102         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
40103         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
40104         (s_ifmt_shift_bits): New function.
40105         (set_stat_type): New function.
40106         (fts_build): When not calling fts_stat, call set_stat_type
40107         to propagate dirent.d_type info to fts_read caller.
40108         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
40109         fts_statp->st_mode type information may be valid.
40110
40111 2008-11-28  Simon Josefsson  <simon@josefsson.org>
40112
40113         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
40114         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
40115         <sds@gnu.org>.
40116
40117 2008-11-20  Bruno Haible  <bruno@clisp.org>
40118
40119         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
40120         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
40121         INCLUDE_NEXT.
40122         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
40123         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
40124         * modules/math (Makefile.am): Substitute
40125         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
40126         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
40127
40128 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
40129             Bruno Haible  <bruno@clisp.org>
40130
40131         * lib/stdint.in.h: Define all type macros so that their expansion is
40132         a single typedef'ed token. Fixes a compilation failure in Boost which
40133         does "using ::int8_t;".
40134
40135 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40136
40137         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
40138         gl_MANYWARN_ALL_GCC.
40139         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
40140         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
40141         * modules/manywarnings: New file.
40142         * MODULES.html.sh: Mention manywarnings module.
40143
40144 2008-11-18  Bruno Haible  <bruno@clisp.org>
40145
40146         * doc/gnulib-tool.texi (Unit tests): New section.
40147
40148 2008-11-18  Simon Josefsson  <simon@josefsson.org>
40149
40150         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
40151         paths like 'lib/po/foo.po'.
40152
40153 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40154
40155         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
40156         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
40157
40158 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40159
40160         * m4/warnings.m4: Use CPPFLAGS to really check whether the
40161         parameter works.
40162
40163 2008-11-17  Simon Josefsson  <simon@josefsson.org>
40164
40165         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
40166
40167 2008-11-17  Bruce Korb  <bkorb@gnu.org>
40168
40169         * modules/parse-duration-tests: New file.
40170         * tests/test-parse-duration.sh: New file.
40171         * tests/test-parse-duration.c: New file.
40172
40173         New module 'parse-duration'.
40174         * lib/parse-duration.h: New file.
40175         * lib/parse-duration.c: New file.
40176         * modules/parse-duration: New file.
40177
40178 2008-11-17  Bruno Haible  <bruno@clisp.org>
40179
40180         * tests/test-select-out.sh: Comment out the first pipe test.
40181         Reported by Simon Josefsson.
40182
40183 2008-11-17  Bruno Haible  <bruno@clisp.org>
40184
40185         * modules/getaddrinfo (Depends-on): Add servent, hostent.
40186         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
40187         gl_HOSTENT.
40188
40189 2008-11-17  Bruno Haible  <bruno@clisp.org>
40190
40191         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
40192         -lnetwork and -lnet. Needed for Haiku and BeOS.
40193
40194 2008-11-16  Bruno Haible  <bruno@clisp.org>
40195
40196         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
40197
40198 2008-11-16  Bruno Haible  <bruno@clisp.org>
40199
40200         Avoid test failure on Haiku.
40201         * tests/test-fsync.c: Include <errno.h>.
40202         (main): Don't require that fsync (0) fails.
40203
40204 2008-11-15  Bruno Haible  <bruno@clisp.org>
40205
40206         New module 'hostent'.
40207         * modules/hostent: New file.
40208         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
40209
40210 2008-11-15  Bruno Haible  <bruno@clisp.org>
40211
40212         New module 'servent'.
40213         * modules/servent: New file.
40214         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
40215
40216 2008-11-15  Bruno Haible  <bruno@clisp.org>
40217
40218         Avoid generating same test program with two different rules.
40219         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
40220         test-frexp to test-frexp-nolibm.
40221         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
40222         test-frexpl to test-frexpl-nolibm.
40223
40224 2008-11-15  Bruno Haible  <bruno@clisp.org>
40225
40226         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
40227         $(FREXPL_LIBM).
40228
40229 2008-11-15  Bruno Haible  <bruno@clisp.org>
40230
40231         * lib/netdb.in.h: Activate the definitions also when the system's
40232         <netdb.h> has 'struct addrinfo'.
40233         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
40234         EAI_OVERFLOW or AI_NUMERICSERV.
40235         * doc/posix-headers/netdb.texi: Document the problem.
40236
40237 2008-11-15  Bruno Haible  <bruno@clisp.org>
40238
40239         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
40240
40241         Make the 'sched' module work on platforms where <sched.h> exists but
40242         is incomplete (such as Haiku).
40243         * lib/sched.in.h; Include the system's <sched.h> if it exists.
40244         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
40245         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
40246         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
40247         HAVE_STRUCT_SCHED_PARAM.
40248         * modules/sched (Depends-on): Add include_next.
40249         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
40250         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
40251         * doc/posix-headers/sched.texi: Document the issue.
40252
40253 2008-11-13  Jim Meyering  <meyering@redhat.com>
40254
40255         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
40256         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
40257         test would fail due to the difference in the Report bugs to ...
40258         line.  The expected address is empty, "<>", while the actual
40259         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
40260
40261 2008-11-12  Bruno Haible  <bruno@clisp.org>
40262
40263         lstat: don't compile lstat.c on systems lacking lstat
40264         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
40265         which don't have lstat; this is handled by lib/sys_stat.in.h already.
40266         Reported by Daniel P. Berrange via Jim Meyering.
40267
40268 2008-11-12  Jim Meyering  <meyering@redhat.com>
40269
40270         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
40271
40272 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40273
40274         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
40275         instead.
40276
40277 2008-11-12  Bruno Haible  <bruno@clisp.org>
40278
40279         * lib/unicodeio.c: Include unistr.h.
40280         (utf8_wctomb): Remove function.
40281         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
40282
40283 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40284
40285         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
40286         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
40287         <bruno@clisp.org>.
40288         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
40289
40290 2008-11-12  Simon Josefsson  <simon@josefsson.org>
40291
40292         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
40293         * doc/gnulib.texi: Add section for warnings.
40294
40295 2008-11-11  Bruno Haible  <bruno@clisp.org>
40296
40297         * lib/sockets.h: Add a comment.
40298
40299 2008-11-11  Karl Berry  <karl@gnu.org>
40300
40301         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
40302
40303 2008-11-11  Eric Blake  <ebb9@byu.net>
40304
40305         fdl.texi: avoid git symlinks
40306         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
40307
40308 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40309
40310         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
40311
40312 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40313
40314         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
40315         (gl_WARN_ADD): Substitute $2 if literal.
40316
40317 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40318
40319         * m4/warning.m4: Remove.
40320
40321 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
40322
40323         * m4/warnings.m4: Almost complete rewrite. :-)
40324
40325 2008-11-10  Simon Josefsson  <simon@josefsson.org>
40326
40327         * modules/warnings: New module.
40328         * m4/warnings.m4: New file.
40329         * MODULES.html.sh: Mention warnings module.
40330         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
40331         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40332
40333 2008-11-10  Eric Blake  <ebb9@byu.net>
40334
40335         fdl.texi: make a symlink to the latest version
40336         * doc/standards.texi: Revert today's earlier change.
40337         * doc/fdl-1.2.texi: Rename from old fdl.texi...
40338         * doc/fdl.texi: ...and replace this with a symlink to the newer
40339         fdl-1.3.texi.
40340
40341 2008-11-10  Bruno Haible  <bruno@clisp.org>
40342
40343         * tests/test-select-fd.c (main): Accept the result file name as fourth
40344         argument.
40345         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
40346         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
40347
40348 2008-11-10  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
40351         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
40352         as autoconf-substituted macros.
40353         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
40354         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
40355         gl_NETDB_H_DEFAULTS. Set these variables.
40356         * modules/netdb (Makefile.am): Substitute these variables.
40357
40358 2008-11-10  Eric Blake  <ebb9@byu.net>
40359
40360         standards.texi: include correct file for FDL 1.3
40361         * doc/standards.texi (GNU Free Documentation License): Change
40362         include file to pull in FDL 1.3, not 1.2.
40363
40364         fdl.texi: revert accidental change to license
40365         * doc/fdl.texi: This is FDL 1.2, not 1.3.
40366
40367 2008-11-10  Bruno Haible  <bruno@clisp.org>
40368
40369         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
40370         cross-compiling guesses also when the native compile gives no result.
40371
40372 2008-11-10  Bruno Haible  <bruno@clisp.org>
40373
40374         * lib/spawni.c (__spawni): Force variable into the stack.
40375
40376 2008-11-10  Bruno Haible  <bruno@clisp.org>
40377
40378         Add support for Haiku.
40379         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
40380         glibc and BeOS, but also on Haiku.
40381         * lib/fpurge.c (fpurge): Likewise.
40382         * lib/freadable.c (freadable): Likewise.
40383         * lib/freadahead.c (freadahead): Likewise.
40384         * lib/freading.c (freading): Likewise.
40385         * lib/freadptr.c (freadptr): Likewise.
40386         * lib/freadseek.c (freadptrinc): Likewise.
40387         * lib/fseeko.c (rpl_fseeko): Likewise.
40388         * lib/fseterr.c (fseterr): Likewise.
40389         * lib/fwritable.c (fwritable): Likewise.
40390         * lib/fwriting.c (fwriting): Likewise.
40391         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
40392
40393 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40394
40395         * lib/config.charset: Treat Haiku like BeOS.
40396
40397 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
40398
40399         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
40400         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
40401
40402 2008-11-08  Bruno Haible  <bruno@clisp.org>
40403
40404         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
40405         AC_CACHE_CHECK.
40406
40407 2008-11-08  Bruno Haible  <bruno@clisp.org>
40408
40409         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
40410
40411 2008-11-08  Bruno Haible  <bruno@clisp.org>
40412
40413         * tests/test-select-fd.c: New file.
40414         * tests/test-select-in.sh: New file.
40415         * tests/test-select-out.sh: New file.
40416         * tests/test-select-stdin.c: New file.
40417         * modules/select-tests (Files): Add the new files.
40418         (Depends-on): Add gettimeofday.
40419         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
40420         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
40421         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
40422
40423 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
40424             Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
40427
40428 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
40429
40430         * build-aux/pmccabe2html: Added support for C++ source files.
40431
40432 2008-11-05  Ben Pfaff  <blp@gnu.org>
40433
40434         Fix lib/close.c build on Windows.
40435         * modules/close (Files): Add lib/w32sock.h.
40436
40437 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
40438
40439         Accept Bison's NEWS format.
40440         * build-aux/announce-gen (print_news_deltas): Tweak
40441         $re_prefix.
40442
40443 2008-11-04  Bruno Haible  <bruno@clisp.org>
40444
40445         * modules/random_r (Maintainer): Add glibc.
40446
40447 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40448
40449         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
40450         by karl@freefriends.org (Karl Berry).
40451         * doc/alloca.texi: Likewise.
40452         * doc/c-ctype.texi: Likewise.
40453         * doc/c-strcase.texi: Likewise.
40454         * doc/c-strcaseeq.texi: Likewise.
40455         * doc/c-strcasestr.texi: Likewise.
40456         * doc/c-strstr.texi: Likewise.
40457         * doc/c-strtod.texi: Likewise.
40458         * doc/c-strtold.texi: Likewise.
40459         * doc/ctime.texi: Likewise.
40460         * doc/error.texi: Likewise.
40461         * doc/fdl.texi: Likewise.
40462         * doc/gcd.texi: Likewise.
40463         * doc/getdate.texi: Likewise.
40464         * doc/gnulib-intro.texi: Likewise.
40465         * doc/gnulib-tool.texi: Likewise.
40466         * doc/gnulib.texi: Likewise.
40467         * doc/inet_ntoa.texi: Likewise.
40468         * doc/maintain.texi: Likewise.
40469         * doc/make-stds.texi: Likewise.
40470         * doc/quote.texi: Likewise.
40471         * doc/regexprops-generic.texi: Likewise.
40472         * doc/standards.texi: Likewise.
40473         * doc/verify.texi: Likewise.
40474         * doc/visibility.texi: Likewise.
40475         * doc/gnulib.texi (GNU Free Documentation License): Include
40476         fdl-1.3.texi instead of fdl.texi.
40477
40478 2008-11-04  Simon Josefsson  <simon@josefsson.org>
40479
40480         * doc/fdl-1.3.texi: New file, from
40481         <http://www.gnu.org/licenses/fdl-1.3.texi>.
40482         * modules/fdl-1.3: Add.
40483         * MODULES.html.sh: Add fdl-1.3.
40484
40485 2008-11-03  Bruno Haible  <bruno@clisp.org>
40486
40487         Make determination of absolute name of header file work with AIX xlc.
40488         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
40489         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
40490         preprocessing.
40491         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40492         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
40493
40494 2008-11-03  Simon Josefsson  <simon@josefsson.org>
40495
40496         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
40497         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
40498         <ludo@gnu.org>.
40499
40500 2008-11-02  Bruno Haible  <bruno@clisp.org>
40501
40502         Mark 'strpbrk' obsolete.
40503         * modules/strpbrk (Status, Notice): New sections.
40504         * modules/strtok_r (Depends-on): Add strpbrk.
40505
40506 2008-11-02  Bruno Haible  <bruno@clisp.org>
40507
40508         Mark 'strdup' obsolete.
40509         * modules/strdup (Status, Notice): New sections.
40510         * modules/findprog (Depends-on): Add strdup.
40511         * modules/getaddrinfo (Depends-on): Likewise.
40512         * modules/localename (Depends-on): Likewise.
40513         * modules/relocatable-lib (Depends-on): Likewise.
40514         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
40515         * modules/relocatable-prog (Depends-on): Likewise.
40516         * modules/trim (Depends-on): Likewise.
40517         * modules/unictype/gen-ctype (Depends-on): Likewise.
40518         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40519
40520 2008-11-02  Bruno Haible  <bruno@clisp.org>
40521
40522         Mark 'strcspn' obsolete.
40523         * modules/strcspn (Status, Notice): New sections.
40524
40525 2008-11-02  Bruno Haible  <bruno@clisp.org>
40526
40527         Mark 'rmdir' obsolete.
40528         * modules/rmdir (Status, Notice): New sections.
40529         * modules/clean-temp (Depends-on): Add rmdir.
40530         * modules/openat (Depends-on): Likewise.
40531
40532 2008-11-02  Bruno Haible  <bruno@clisp.org>
40533
40534         Mark 'raise' obsolete.
40535         * modules/raise (Status, Notice): New sections.
40536         (Include): Specify <signal.h>.
40537         * modules/stdio (Depends-on): Add raise.
40538         * modules/write (Depends-on): Likewise.
40539
40540 2008-11-02  Bruno Haible  <bruno@clisp.org>
40541
40542         Mark 'memset' obsolete.
40543         * modules/memset (Status, Notice): New sections.
40544
40545 2008-11-02  Bruno Haible  <bruno@clisp.org>
40546
40547         Mark 'memmove' obsolete.
40548         * modules/memmove (Status, Notice): New sections.
40549         * modules/argp (Depends-on): Add memmove.
40550         * modules/argz (Depends-on): Likewise.
40551         * modules/canonicalize (Depends-on): Likewise.
40552         * modules/canonicalize-lgpl (Depends-on): Likewise.
40553         * modules/fts (Depends-on): Likewise.
40554         * modules/getcwd (Depends-on): Likewise.
40555         * modules/human (Depends-on): Likewise.
40556         * modules/regex (Depends-on): Likewise.
40557         * modules/striconveh (Depends-on): Likewise.
40558         * modules/trim (Depends-on): Likewise.
40559         * modules/unistr/u8-move (Depends-on): Likewise.
40560         * modules/unistr/u16-move (Depends-on): Likewise.
40561         * modules/unistr/u32-move (Depends-on): Likewise.
40562
40563 2008-11-02  Bruno Haible  <bruno@clisp.org>
40564
40565         Mark 'memcpy' obsolete.
40566         * modules/memcpy (Status, Notice): New sections.
40567
40568 2008-11-02  Bruno Haible  <bruno@clisp.org>
40569
40570         Mark 'memcmp' obsolete.
40571         * modules/memcmp (Status, Notice): New sections.
40572         * modules/argmatch (Depends-on): Add memchr.
40573         * modules/backupfile (Depends-on): Likewise.
40574         * modules/c-strcasestr (Depends-on): Likewise.
40575         * modules/crypto/des (Depends-on): Likewise.
40576         * modules/csharpcomp (Depends-on): Likewise.
40577         * modules/fnmatch (Depends-on): Likewise.
40578         * modules/git-merge-changelog (Depends-on): Likewise.
40579         * modules/isnand (Depends-on): Likewise.
40580         * modules/isnand-nolibm (Depends-on): Likewise.
40581         * modules/isnanf (Depends-on): Likewise.
40582         * modules/isnanf-nolibm (Depends-on): Likewise.
40583         * modules/isnanl (Depends-on): Likewise.
40584         * modules/isnanl-nolibm (Depends-on): Likewise.
40585         * modules/mbchar (Depends-on): Likewise.
40586         * modules/memcoll (Depends-on): Likewise.
40587         * modules/quotearg (Depends-on): Likewise.
40588         * modules/regex (Depends-on): Likewise.
40589         * modules/relocatable-prog (Depends-on): Likewise.
40590         * modules/same (Depends-on): Likewise.
40591         * modules/signbit (Depends-on): Likewise.
40592         * modules/strcasestr-simple (Depends-on): Likewise.
40593         * modules/unictype/gen-ctype (Depends-on): Likewise.
40594         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
40595         * modules/uniname/uniname (Depends-on): Likewise.
40596         * modules/unistr/u8-cmp (Depends-on): Likewise.
40597
40598 2008-11-02  Bruno Haible  <bruno@clisp.org>
40599
40600         Mark 'memchr' obsolete.
40601         * modules/memchr (Status, Notice): New sections.
40602         * modules/argp (Depends-on): Add memchr.
40603         * modules/base64 (Depends-on): Likewise.
40604         * modules/c-strcasestr (Depends-on): Likewise.
40605         * modules/chdir-long (Depends-on): Likewise.
40606         * modules/fnmatch (Depends-on): Likewise.
40607         * modules/getsubopt (Depends-on): Likewise.
40608         * modules/git-merge-changelog (Depends-on): Likewise.
40609         * modules/glob (Depends-on): Likewise.
40610         * modules/strcasestr-simple (Depends-on): Likewise.
40611         * modules/strnlen (Depends-on): Likewise.
40612
40613 2008-11-02  Bruno Haible  <bruno@clisp.org>
40614
40615         Mark 'atexit' obsolete.
40616         * modules/atexit (Status, Notice): New sections.
40617         * modules/chdir-long (Depends-on): Add atexit.
40618         * modules/wait-process (Depends-on): Likewise.
40619
40620 2008-11-02  Bruno Haible  <bruno@clisp.org>
40621
40622         * gnulib-tool: New option --with-obsolete.
40623         (func_usage): Document it.
40624         (func_modules_transitive_closure): Drop obsolete dependencies if
40625         incobsolete is not true.
40626         (func_import): Read and save the incobsolete variable to the cache.
40627
40628 2008-11-02  Bruno Haible  <bruno@clisp.org>
40629
40630         * modules/TEMPLATE-EXTENDED: New field 'Status'.
40631         * gnulib-tool: New option --extract-status.
40632         (func_usage): Document it.
40633         (sed_extract_prog): Recognize it.
40634         (func_get_status): New function.
40635
40636 2008-10-30  Simon Josefsson  <simon@josefsson.org>
40637
40638         * modules/sockets (License): Change from LGPL to LGPLv2+.
40639
40640 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40641
40642         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
40643
40644 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40645
40646         * MODULES.html.sh (Support for systems lacking POSIX:2001):
40647         Mention times and sys_times.
40648         * modules/sys_times, modules/sys_times-tests: New modules.
40649         * modules/times, modules/times-tests: Likewise
40650         * m4/sys_times_h.m4: New file.
40651         * lib/sys_times.in.h: Likewise
40652         * lib/times.c: Likewise.
40653         * tests/test-sys_times.c: Likewise.
40654         * tests/test-times.c: Likewise.
40655         * doc/posix-headers/sys_times.texi: Update.
40656         * doc/posix-functions/times.texi: Update.
40657
40658 2008-10-28  Jim Meyering  <meyering@redhat.com>
40659
40660         * modules/tempname (Depends-on): Add lstat.
40661
40662         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
40663
40664 2008-10-28  Simon Josefsson  <simon@josefsson.org>
40665
40666         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
40667         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
40668         using idiom used elsewhere in gnulib.
40669
40670 2008-10-27  Jim Meyering  <meyering@redhat.com>
40671
40672         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
40673
40674 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40675
40676         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
40677         TESTS_ENVIRONMENT, for shell scripts that needs to call built
40678         programs.
40679         * tests/test-argp-2.sh: Use $EXEEXT when needed.
40680
40681 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40682
40683         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
40684
40685 2008-10-27  Bruno Haible  <bruno@clisp.org>
40686
40687         * tests/test-lstat.c: Include <stdio.h>.
40688
40689 2008-10-27  Simon Josefsson  <simon@josefsson.org>
40690
40691         * modules/lstat-tests: New module.
40692         * tests/test-lstat.c: New file.
40693
40694 2008-10-26  Jim Meyering  <meyering@redhat.com>
40695
40696         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
40697
40698 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40699             Bruno Haible  <bruno@clisp.org>
40700
40701         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
40702         * modules/configmake (Include): Add a note that the include must come
40703         after all system headers.
40704         * lib/javaversion.c: Include configmake.h after all other includes.
40705
40706 2008-10-26  Bruno Haible  <bruno@clisp.org>
40707
40708         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
40709         HAVE_STRUCT_RANDOM_DATA to 1.
40710         (gl_STDLIB_H): Simplify.
40711
40712 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40713
40714         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
40715         substitute HAVE_STRUCT_RANDOM_DATA.
40716         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
40717         random_data.
40718         * modules/stdlib (Makefile.am): Substitute
40719         HAVE_STRUCT_RANDOM_DATA.
40720
40721 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40722
40723         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
40724         * doc/gnulib-intro.texi (Copyright): Likewise.
40725
40726 2008-10-26  Simon Josefsson  <simon@josefsson.org>
40727
40728         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
40729         findings.
40730
40731 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
40732             Bruno Haible  <bruno@clisp.org>
40733
40734         * lib/unistd.in.h: Include <winsock2.h>.
40735         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
40736         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
40737         Provide dummy declarations.
40738         (gethostname): Override.
40739         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
40740         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
40741         gl_PREREQ_SYS_H_WINSOCK2.
40742         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
40743         * doc/posix-functions/gethostname.texi: More details.
40744
40745 2008-10-25  Bruno Haible  <bruno@clisp.org>
40746
40747         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
40748         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
40749         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
40750
40751         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
40752         here ...
40753         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
40754         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
40755         gl_UNISTD_H_DEFAULTS.
40756
40757 2008-10-25  Eric Blake  <ebb9@byu.net>
40758
40759         signbit: avoid spurious compiler failure
40760         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
40761         declarations inside function.
40762
40763 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40764             Bruno Haible  <bruno@clisp.org>
40765
40766         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
40767         * modules/random_r (Depends-on): Add stdint.
40768
40769 2008-10-24  Bruno Haible  <bruno@clisp.org>
40770
40771         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
40772         Eggert.
40773         * modules/strerror (License): Likewise.
40774
40775 2008-10-24  Jim Meyering  <meyering@redhat.com>
40776
40777         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
40778         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
40779
40780 2008-10-24  Eric Blake  <ebb9@byu.net>
40781
40782         getgroups: fix compilation when getgroups is available
40783         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
40784         but with <config.h> override of getgroups disabled.
40785
40786 2008-10-24  Simon Josefsson  <simon@josefsson.org>
40787
40788         * doc/gnulib.texi (Header files): Add note about C++ problems.
40789         Explained by Bruno Haible <bruno@clisp.org>.
40790
40791 2008-10-23  Bruno Haible  <bruno@clisp.org>
40792
40793         Define a dummy SA_NODEFER macro on Interix.
40794         * lib/signal.in.h (SA_NODEFER): Define fallback.
40795         Reported by Aleksey Cheusov <cheusov@tut.by> via
40796         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
40797
40798 2008-10-23  Bruno Haible  <bruno@clisp.org>
40799
40800         * modules/freadahead (License): Change to LGPLv2+.
40801         Suggested by Simon Josefsson.
40802
40803 2008-10-23  Jim Meyering  <meyering@redhat.com>
40804
40805         random_r: new module
40806         * modules/random_r: New file.
40807         * m4/random_r.m4: New file.
40808         * lib/random_r.c: New file, from glibc.
40809         * modules/random_r-tests: New file.
40810         * tests/test-random_r.c: New file.
40811         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
40812          Declare.
40813         (RAND_MAX): Define.
40814         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
40815         * modules/stdlib: Substitute them, too.
40816         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
40817         * doc/glibc-functions/initstate_r.texi: Mention the new module.
40818         * doc/glibc-functions/random_r.texi: Likewise.
40819         * doc/glibc-functions/setstate_r.texi: Likewise.
40820         * doc/glibc-functions/srandom_r.texi: Likewise.
40821         * config/srclist.txt: Mention it.
40822
40823 2008-10-23  David Lutterkort  <lutter@redhat.com>
40824
40825         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
40826         link requirement
40827
40828 2008-10-23  Jim Meyering  <meyering@redhat.com>
40829
40830         selinux-h: mark parameters of stub functions as intentionally unused
40831         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
40832         * lib/se-context.in.h: Likewise.
40833
40834 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40835
40836         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
40837
40838 2008-10-22  Simon Josefsson  <simon@josefsson.org>
40839
40840         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
40841
40842 2008-10-22  Eric Blake  <ebb9@byu.net>
40843
40844         glthread/thread: avoid compiler warning
40845         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
40846         Add unreachable abort to silence compiler.
40847
40848 2008-10-22  Eric Blake  <ebb9@byu.net>
40849
40850         netdb: also supply struct addrinfo for cygwin 1.5.x
40851         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
40852         older cygwin.
40853         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
40854         cygwin.
40855         * doc/posix-headers/netdb.texi (netdb.h): Document this.
40856
40857 2008-10-22  Bruno Haible  <bruno@clisp.org>
40858
40859         * users.txt: Update entry about pspp.
40860
40861 2008-10-21  Bruno Haible  <bruno@clisp.org>
40862
40863         Simplification.
40864         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
40865         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
40866
40867         Simplification.
40868         * lib/ioctl.c (ioctl): Don't undefine.
40869         * lib/socket.c (socket): Don't undefine.
40870
40871         Remove unused module indicator macros.
40872         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
40873         GNULIB_$1 as a C macro.
40874
40875         * doc/posix-functions/close.texi: Undo last change.
40876         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
40877         Windows platforms.
40878
40879 2008-10-21  Bruno Haible  <bruno@clisp.org>
40880
40881         Add gethostname() declaration to <unistd.h>.
40882         * lib/unistd.in.h (gethostname): New declaration.
40883         * lib/gethostname.c: Include <unistd.h>.
40884         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
40885         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
40886         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
40887         and HAVE_GETHOSTNAME.
40888         * modules/gethostname (Depends-on): Add unistd.
40889         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
40890         (Include): Specify <unistd.h>.
40891         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
40892         HAVE_GETHOSTNAME.
40893         * tests/test-gethostname.c: Include <unistd.h> first.
40894
40895 2008-10-21  Bruno Haible  <bruno@clisp.org>
40896
40897         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
40898         * modules/select-tests (Depends-on): Likewise.
40899         Reported by Simon Josefsson.
40900
40901 2008-10-21  Simon Josefsson  <simon@josefsson.org>
40902
40903         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
40904         * lib/accept.c: New file, based on winsock.c.
40905         * lib/bind.c: New file, based on winsock.c.
40906         * lib/connect.c: New file, based on winsock.c.
40907         * lib/getpeername.c: New file, based on winsock.c.
40908         * lib/getsockname.c: New file, based on winsock.c.
40909         * lib/getsockopt.c: New file, based on winsock.c.
40910         * lib/ioctl.c: New file, based on winsock.c.
40911         * lib/listen.c: New file, based on winsock.c.
40912         * lib/recv.c: New file, based on winsock.c.
40913         * lib/recvfrom.c: New file, based on winsock.c.
40914         * lib/send.c: New file, based on winsock.c.
40915         * lib/sendto.c: New file, based on winsock.c.
40916         * lib/setsockopt.c: New file, based on winsock.c.
40917         * lib/shutdown.c: New file, based on winsock.c.
40918         * lib/socket.c: New file, based on winsock.c.
40919         * lib/w32sock.h: New file, based on winsock.c.
40920         * lib/winsock.c: Remove file.
40921         * modules/accept: Likewise.
40922         * modules/bind: Likewise.
40923         * modules/connect: Likewise.
40924         * modules/getpeername: Likewise.
40925         * modules/getsockname: Likewise.
40926         * modules/getsockopt: Likewise.
40927         * modules/ioctl: Likewise.
40928         * modules/listen: Likewise.
40929         * modules/recv: Likewise.
40930         * modules/recvfrom: Likewise.
40931         * modules/send: Likewise.
40932         * modules/sendto: Likewise.
40933         * modules/setsockopt: Likewise.
40934         * modules/shutdown: Likewise.
40935         * modules/socket: Use socket.c instead of winsock.c.
40936         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
40937         * doc/posix-functions/accept.texi: Doc fix.
40938         * doc/posix-functions/bind.texi: Doc fix.
40939         * doc/posix-functions/close.texi: Doc fix.
40940         * doc/posix-functions/connect.texi: Doc fix.
40941         * doc/posix-functions/getpeername.texi: Doc fix.
40942         * doc/posix-functions/getsockname.texi: Doc fix.
40943         * doc/posix-functions/getsockopt.texi: Doc fix.
40944         * doc/posix-functions/ioctl.texi: Doc fix.
40945         * doc/posix-functions/listen.texi: Doc fix.
40946         * doc/posix-functions/recv.texi: Doc fix.
40947         * doc/posix-functions/recvfrom.texi: Doc fix.
40948         * doc/posix-functions/send.texi: Doc fix.
40949         * doc/posix-functions/sendto.texi: Doc fix.
40950         * doc/posix-functions/setsockopt.texi: Doc fix.
40951         * doc/posix-functions/shutdown.texi: Doc fix.
40952         * doc/posix-functions/socket.texi: Doc fix.
40953
40954 2008-10-20  Bruno Haible  <bruno@clisp.org>
40955
40956         Take into account the role of SIGABRT_COMPAT on Windows 2008.
40957         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
40958         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
40959         as an alias for SIGABRT.
40960         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
40961         (sigaction): Map it to SIGABRT.
40962         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
40963
40964 2008-10-20  Bruno Haible  <bruno@clisp.org>
40965
40966         * lib/fts.c: Don't include lstat.h.
40967         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
40968
40969         Move the lstat() declaration to <sys/stat.h>.
40970         * lib/lstat.h: Remove file.
40971         * lib/sys_stat.in.h: Add special invocation convention.
40972         (lstat): New declaration.
40973         * lib/lstat.c (orig_lstat): New function.
40974         (rpl_lstat): Use orig_lstat instead of lstat.
40975         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
40976         AC_C_INLINE. Set REPLACE_LSTAT.
40977         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
40978         and REPLACE_LSTAT.
40979         * modules/lstat (Files): Remove lib/lstat.h.
40980         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
40981         (Include): Specify <sys/stat.h> instead of lstat.h.
40982         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
40983         REPLACE_LSTAT.
40984         * NEWS: Mention the change.
40985
40986 2008-10-20  Bruno Haible  <bruno@clisp.org>
40987
40988         * modules/posix_spawn-tests: New file.
40989         * tests/test-posix_spawn3.c: New file.
40990
40991 2008-10-20  Bruno Haible  <bruno@clisp.org>
40992
40993         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
40994         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40995         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
40996         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
40997         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
40998
40999 2008-10-20  Bruno Haible  <bruno@clisp.org>
41000
41001         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
41002         of posix_spawn on AIX 5.3.
41003
41004 2008-10-20  Bruno Haible  <bruno@clisp.org>
41005
41006         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
41007
41008 2008-10-20  Bruno Haible  <bruno@clisp.org>
41009
41010         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
41011         of AC_LANG_PROGRAM.
41012
41013 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41014
41015         * lib/netdb.in.h: Don't define GNU specific constants until they
41016         are supported or needed.  Reported by Bruno Haible
41017         <bruno@clisp.org>.
41018
41019 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41020
41021         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
41022
41023 2008-10-20  Simon Josefsson  <simon@josefsson.org>
41024
41025         * lib/getaddrinfo.h: Remove file.
41026         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
41027         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
41028         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
41029         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
41030         * modules/netdb: Substitute GNULIB_GETADDRINFO.
41031         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
41032         * tests/test-getaddrinfo.c: Likewise.
41033         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
41034         * NEWS: Mention change.
41035
41036 2008-10-19  Bruno Haible  <bruno@clisp.org>
41037
41038         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
41039
41040 2008-10-19  Bruno Haible  <bruno@clisp.org>
41041
41042         * lib/wait-process.c: Include simply <sys/wait.h>.
41043         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
41044         WIFSTOPPED): Remove fallback definitions.
41045         * modules/wait-process (Depends-on): Add sys_wait.
41046
41047         New module 'sys_wait'.
41048         * modules/sys_wait: New file.
41049         * lib/sys_wait.in.h: New file, partially copied from
41050         lib/wait-process.c.
41051         * m4/sys_wait_h.m4: New file.
41052         * doc/posix-headers/sys_wait.texi: Mention the new module.
41053
41054 2008-10-19  Bruno Haible  <bruno@clisp.org>
41055
41056         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
41057
41058 2008-10-19  Bruno Haible  <bruno@clisp.org>
41059
41060         Assume that waitpid() fills an 'int' status, not a 'union wait'.
41061         * lib/wait-process.c (WAIT_T): Remove type.
41062         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
41063         (wait_subprocess): Update.
41064
41065 2008-10-19  Bruno Haible  <bruno@clisp.org>
41066
41067         New module 'atoll'.
41068         * modules/atoll: New file.
41069         * lib/stdlib.in.h (atoll): New declaration.
41070         * lib/atoll.c: New file, from glibc with modifications.
41071         * m4/atoll.m4: New file.
41072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
41073         HAVE_ATOLL.
41074         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
41075         * doc/posix-functions/atoll.texi: Mention the new module.
41076
41077 2008-10-19  Bruno Haible  <bruno@clisp.org>
41078
41079         Add strtoull() declaration to <stdlib.h>.
41080         * lib/stdlib.in.h (strtoull): New declaration.
41081         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41082         Set HAVE_STRTOULL.
41083         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
41084         HAVE_STRTOULL.
41085         * modules/strtoull (Depends-on): Add stdlib.
41086         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41087         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
41088         HAVE_STRTOULL.
41089
41090 2008-10-19  Bruno Haible  <bruno@clisp.org>
41091
41092         Add strtoll() declaration to <stdlib.h>.
41093         * lib/stdlib.in.h (strtoll): New declaration.
41094         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
41095         Set HAVE_STRTOLL.
41096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
41097         HAVE_STRTOLL.
41098         * modules/strtoll (Depends-on): Add stdlib.
41099         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41100         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
41101
41102 2008-10-19  Bruno Haible  <bruno@clisp.org>
41103
41104         * modules/bcopy (Depends-on): Add strings.
41105         (Include): Specify <strings.h>.
41106
41107 2008-10-19  Bruno Haible  <bruno@clisp.org>
41108
41109         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
41110
41111 2008-10-19  Bruno Haible  <bruno@clisp.org>
41112
41113         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
41114         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
41115         mingw.
41116
41117 2008-10-19  Bruno Haible  <bruno@clisp.org>
41118
41119         * lib/atanl.c: Don't include isnanl.h.
41120         * lib/cosl.c: Likewise.
41121         * lib/ldexpl.c: Likewise.
41122         * lib/logl.c: Likewise.
41123         * lib/sinl.c: Likewise.
41124         * lib/sqrtl.c: Likewise.
41125         * lib/tanl.c: Likewise.
41126
41127         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
41128         * lib/isnanf.h: Remove file.
41129         * lib/isnand.h: Remove file.
41130         * lib/isnanl.h: Remove file.
41131         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
41132         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
41133         macros.
41134         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
41135         HAVE_ISNANF, don't define it as a C macro.
41136         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
41137         HAVE_ISNAND, don't define it as a C macro.
41138         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
41139         HAVE_ISNANL, don't define it as a C macro.
41140         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
41141         HAVE_ISNAN[FDL].
41142         * modules/isnanf (Files): Remove lib/isnanf.h.
41143         (Depends-on): Add math.
41144         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41145         (Include): Specify <math.h> instead of isnanf.h.
41146         * modules/isnand (Files): Remove lib/isnand.h.
41147         (Depends-on): Add math.
41148         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41149         (Include): Specify <math.h> instead of isnand.h.
41150         * modules/isnanl (Files): Remove lib/isnanl.h.
41151         (Depends-on): Add math.
41152         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
41153         (Include): Specify <math.h> instead of isnanl.h.
41154         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
41155         HAVE_ISNAN[FDL].
41156         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
41157         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
41158         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
41159         * NEWS: Mention the change.
41160
41161 2008-10-18  Bruno Haible  <bruno@clisp.org>
41162
41163         Add getusershell(), setusershell(), endusershell() declarations to
41164         <unistd.h>.
41165         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
41166         declarations.
41167         * lib/getusershell.c: Include unistd.h.
41168         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
41169         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41170         HAVE_GETUSERSHELL.
41171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
41172         and HAVE_GETUSERSHELL.
41173         * modules/getusershell (Depends-on): Add unistd, extensions.
41174         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41175         (Include): Specify <unistd.h>.
41176         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
41177         HAVE_GETUSERSHELL.
41178
41179 2008-10-18  Bruno Haible  <bruno@clisp.org>
41180
41181         Add a getloadavg() declaration to <stdlib.h>.
41182         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
41183         getloadavg declaration.
41184         (getloadavg): New declaration.
41185         * lib/getloadavg.c: Include <stdlib.h> first.
41186         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
41187         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
41188         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
41189         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
41190         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41191         * modules/getloadavg (Depends-on): Add stdlib, extensions.
41192         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
41193         (Include): Specify <stdlib.h>.
41194         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
41195         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
41196
41197 2008-10-18  Bruno Haible  <bruno@clisp.org>
41198
41199         * lib/dirchownmod.c: Don't include lchmod.h.
41200
41201         Move the lchmod() declaration to <sys/stat.h>.
41202         * lib/lchmod.h: Remove file.
41203         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
41204         (lchmod): New declaration, moved here from lib/lchown.h.
41205         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
41206         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
41207         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
41208         and HAVE_LCHMOD.
41209         * modules/lchmod (Files): Remove lib/lchmod.h.
41210         (Depends-on): Add sys_stat, extensions.
41211         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
41212         (Include): Specify <sys/stat.h> instead of lchmod.h.
41213         * modules/sys_stat (Depends-on): Add link-warning.
41214         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
41215         definition of GL_LINK_WARNING.
41216         * NEWS: Mention the change.
41217
41218 2008-10-18  Bruno Haible  <bruno@clisp.org>
41219
41220         * lib/fchdir.c: Don't include dirfd.h.
41221         * lib/fts.c: Likewise.
41222         * lib/getcwd.c: Likewise.
41223         * lib/glob.c: Likewise.
41224
41225         Move the dirfd() declaration to <dirent.h>.
41226         * lib/dirfd.h: Remove file.
41227         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
41228         (dirfd): New declaration.
41229         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
41230         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
41231         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
41232         HAVE_DECL_DIRFD.
41233         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
41234         HAVE_DECL_DIRFD.
41235         * modules/dirfd (Files): Remove lib/dirfd.h.
41236         (Depends-on): Add dirent, extensions.
41237         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
41238         (Include): Specify <dirent.h> instead of dirfd.h.
41239         * modules/dirent (Depends-on): Add link-warning.
41240         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
41241         definition of GL_LINK_WARNING.
41242         * NEWS: Mention the change.
41243
41244 2008-10-18  Bruno Haible  <bruno@clisp.org>
41245
41246         Move the euidaccess() declaration to <unistd.h>.
41247         * lib/euidaccess.h: Remove file.
41248         * lib/unistd.in.h (euidaccess): New declaration.
41249         * lib/euidaccess.c: Don't include euidaccess.h.
41250         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
41251         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
41252         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
41253         and HAVE_EUIDACCESS.
41254         * modules/euidaccess (Files): Remove lib/euidaccess.h.
41255         (Depends-on): Add unistd.
41256         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41257         (Include): Specify <unistd.h> instead of euidaccess.h.
41258         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
41259         HAVE_EUIDACCESS.
41260         * NEWS: Mention the change.
41261
41262 2008-10-18  Bruno Haible  <bruno@clisp.org>
41263
41264         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
41265
41266         Move the getdomainname() declaration to <unistd.h>.
41267         * lib/getdomainname.h: Remove file.
41268         * lib/unistd.in.h (getdomainname): New declaration.
41269         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
41270         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
41271         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
41272         HAVE_GETDOMAINNAME.
41273         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41274         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
41275         * modules/getdomainname (Files): Remove lib/getdomainname.h.
41276         (Depends-on): Add unistd, extensions.
41277         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
41278         (Includes): Specify <unistd.h> instead of getdomainname.h.
41279         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
41280         HAVE_GETDOMAINNAME.
41281         * NEWS: Mention the change.
41282
41283 2008-10-18  Bruno Haible  <bruno@clisp.org>
41284
41285         * modules/dirent: New file.
41286         * m4/dirent_h.m4: New file.
41287         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
41288         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
41289         * modules/fchdir (Files): Remove lib/dirent.in.h.
41290         (Depends-on): Add dirent.
41291         (Makefile.am): Move rules to modules/dirent.
41292         * doc/posix-headers/dirent.texi: Mention the new module.
41293
41294 2008-10-18  Bruno Haible  <bruno@clisp.org>
41295
41296         Avoid -Wunused-parameter warnings in public gnulib header files.
41297         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
41298         macro.
41299         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
41300
41301 2008-10-18  Bruno Haible  <bruno@clisp.org>
41302
41303         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
41304         * doc/glibc-functions/error.texi: Mention the module 'error'.
41305         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
41306         * doc/glibc-functions/getdomainname.texi: Mention the module
41307         'getdomainname'.
41308         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
41309         * doc/glibc-functions/getpagesize.texi: Mention the module
41310         'getpagesize'.
41311         * doc/glibc-functions/getusershell.texi: Mention the module
41312         'getusershell'.
41313         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
41314         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
41315         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
41316         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
41317         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
41318         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
41319         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
41320         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
41321         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
41322         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
41323         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
41324         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
41325         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
41326         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
41327
41328 2008-10-17  Bruno Haible  <bruno@clisp.org>
41329
41330         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
41331         HP-UX and IRIX, use -0.0L.
41332         * tests/test-ceill.c (minus_zero): Likewise.
41333         * tests/test-floorl.c (minus_zero): Likewise.
41334         * tests/test-frexpl.c (minus_zero): Likewise.
41335         * tests/test-isnan.c (minus_zerol): Likewise.
41336         * tests/test-isnanl.h (minus_zero): Likewise.
41337         * tests/test-ldexpl.c (minus_zero): Likewise.
41338         * tests/test-roundl.c (minus_zero): Likewise.
41339         * tests/test-signbit.c (minus_zerol): Likewise.
41340         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
41341         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
41342         * tests/test-truncl.c (minus_zero): Likewise.
41343         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
41344         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
41345         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
41346         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
41347
41348 2008-10-17  Bruno Haible  <bruno@clisp.org>
41349
41350         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
41351         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
41352         that it gets activated only for gcc >= 3.0.
41353         * lib/dirent.in.h: Likewise.
41354         * lib/errno.in.h: Likewise.
41355         * lib/fcntl.in.h: Likewise.
41356         * lib/float.in.h: Likewise.
41357         * lib/iconv.in.h: Likewise.
41358         * lib/inttypes.in.h: Likewise.
41359         * lib/locale.in.h: Likewise.
41360         * lib/math.in.h: Likewise.
41361         * lib/netdb.in.h: Likewise.
41362         * lib/netinet_in.in.h: Likewise.
41363         * lib/search.in.h: Likewise.
41364         * lib/signal.in.h: Likewise.
41365         * lib/spawn.in.h: Likewise.
41366         * lib/stdarg.in.h: Likewise.
41367         * lib/stdint.in.h: Likewise.
41368         * lib/stdio.in.h: Likewise.
41369         * lib/stdlib.in.h: Likewise.
41370         * lib/string.in.h: Likewise.
41371         * lib/strings.in.h: Likewise.
41372         * lib/sys_file.in.h: Likewise.
41373         * lib/sys_ioctl.in.h: Likewise.
41374         * lib/sys_select.in.h: Likewise.
41375         * lib/sys_socket.in.h: Likewise.
41376         * lib/sys_stat.in.h: Likewise.
41377         * lib/sys_time.in.h: Likewise.
41378         * lib/sysexits.in.h: Likewise.
41379         * lib/time.in.h: Likewise.
41380         * lib/unistd.in.h: Likewise.
41381         * lib/wchar.in.h: Likewise.
41382         * lib/wctype.in.h: Likewise.
41383         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41384
41385 2008-10-17  Jim Meyering  <meyering@redhat.com>
41386
41387         ignore-value: don't depend on inline module
41388         * modules/ignore-value (Depends-on): Remove 'inline'.
41389         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
41390         Suggestion from Bruno Haible.
41391
41392 2008-10-17  Bruno Haible  <bruno@clisp.org>
41393
41394         New implementation of condition variables for Win32.
41395         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
41396         (gl_linked_waitqueue_t): New type.
41397         (gl_cond_t): Use it.
41398         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
41399         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
41400         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
41401         (glthread_cond_init_func, glthread_cond_wait_func,
41402         glthread_cond_timedwait_func, glthread_cond_signal_func,
41403         glthread_cond_broadcast_func, glthread_cond_destroy_func):
41404         Reimplemented on the basis of gl_linked_waitqueue_t.
41405         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
41406         gl_waitqueue_t.
41407         (gl_rwlock_t): Update.
41408         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
41409
41410 2008-10-17  Simon Josefsson  <simon@josefsson.org>
41411
41412         * modules/recvfrom (Depends-on): Add dependency on getpeername.
41413         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41414
41415 2008-10-17  Jim Meyering  <meyering@redhat.com>
41416
41417         ignore-value: new module
41418         * modules/ignore-value: New file.
41419         * lib/ignore-value.h: New file.
41420         * MODULES.html.sh (Compiler warning management): New section,
41421         just for this module.  More to come.
41422
41423 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
41424
41425         open-safer.c: avoid 'signed and unsigned in conditional...' warning
41426         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
41427         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
41428
41429 2008-10-16  Jim Meyering  <meyering@redhat.com>
41430
41431         openat-die.c: avoid 'no previous prototype' warning
41432         * lib/openat-die.c: Include "openat.h".
41433         Reported by Reuben Thomas <rrt@sc3d.org>.
41434
41435 2008-10-16  Simon Josefsson  <simon@josefsson.org>
41436
41437         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
41438         * lib/netdb.in.h: Fix typo.
41439         Reported by Bruno Haible  <bruno@clisp.org>
41440
41441         * lib/netdb.in.h: Include sys/socket.h for platforms without
41442         netdb.h, to get structures like hostent on MinGW.
41443         * modules/netdb (Depends-on): Add sys_socket.
41444
41445 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41446
41447         * modules/netdb, modules/netdb-tests: New file.
41448         * m4/netdb_h.m4: New file.
41449         * lib/netdb.in.h: Add, currently just an empty file pending
41450         definitions.
41451         * tests/test-netdb.c: New file.
41452         * doc/posix-headers/netdb.texi: Mention that we replace it if
41453         needed.
41454         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41455         netdb.
41456
41457 2008-10-15  Simon Josefsson  <simon@josefsson.org>
41458
41459         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
41460         with code.
41461
41462 2008-10-13  Bruno Haible  <bruno@clisp.org>
41463
41464         * lib/glthread/cond.c (glthread_cond_wait_func,
41465         glthread_cond_timedwait_func): Add a comment.
41466
41467 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41468
41469         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
41470         * tests/test-select.c: Likewise,
41471
41472 2008-10-13  Bruno Haible  <bruno@clisp.org>
41473
41474         * lib/glthread/cond.c (glthread_cond_wait_func,
41475         glthread_cond_timedwait_func): Fix variable name.
41476         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41477
41478 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
41479
41480         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
41481         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
41482         struct sockaddr.sa_len.
41483         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
41484
41485 2008-10-13  Simon Josefsson  <simon@josefsson.org>
41486
41487         * build-aux/pmccabe2html: Add css and css_url parameters.
41488
41489 2008-10-12  Bruno Haible  <bruno@clisp.org>
41490
41491         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
41492         calling aclx_get.
41493         Reported by Rainer Tammer <tammer@tammer.net>.
41494
41495 2008-10-12  Bruno Haible  <bruno@clisp.org>
41496
41497         Use msvcrt aware primitives for creation/termination of Win32 threads.
41498         * lib/glthread/thread.c: Include <process.h>.
41499         (glthread_create_func): Use _beginthreadex instead of CreateThread.
41500         (wrapper_func): Update signature.
41501         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
41502
41503 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
41504             Bruno Haible  <bruno@clisp.org>
41505
41506         Provide a Win32 implementation of the 'cond' module.
41507         * lib/glthread/cond.h [USE_WIN32]: New implementation.
41508         * lib/glthread/cond.c (glthread_cond_init_func,
41509         glthread_cond_wait_func, glthread_cond_timedwait_func,
41510         glthread_cond_signal_func, glthread_cond_broadcast_func,
41511         glthread_cond_destroy_func) [USE_WIN32]: New functions.
41512         * modules/cond (Dependencies): Add gettimeofday.
41513
41514 2008-10-11  Bruno Haible  <bruno@clisp.org>
41515
41516         Make sleep work on older versions of mingw.
41517         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
41518         only whether it exists.
41519         * doc/posix-functions/sleep.texi: Mention the problem with older
41520         versions of mingw.
41521
41522 2008-10-11  Bruno Haible  <bruno@clisp.org>
41523
41524         New module 'shutdown'.
41525         * modules/shutdown: New file.
41526         * lib/sys_socket.in.h (shutdown): New declaration.
41527         * lib/winsock.c (shutdown): New function.
41528         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
41529         GNULIB_SHUTDOWN.
41530         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
41531         * doc/posix-functions/shutdown.texi: Document the new module.
41532
41533 2008-10-11  Jim Meyering  <meyering@redhat.com>
41534
41535         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
41536
41537 2008-10-11  Bruno Haible  <bruno@clisp.org>
41538
41539         New module 'fclose'.
41540         * modules/fclose: New file.
41541         * lib/stdio.in.h (fclose): New declaration.
41542         * lib/fclose.c: New file.
41543         * m4/fclose.m4: New file.
41544         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
41545         REPLACE_FCLOSE.
41546         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
41547         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
41548         REPLACE_FCLOSE.
41549         * modules/close (Depends-on): fclose.
41550         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
41551
41552 2008-10-11  Bruno Haible  <bruno@clisp.org>
41553
41554         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
41555         set errno and don't call _close.
41556
41557 2008-10-10  Bruno Haible  <bruno@clisp.org>
41558
41559         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
41560         ACL, not afterwards. Fixes test failure on Cygwin.
41561
41562 2008-10-09  Ben Pfaff  <blp@gnu.org>
41563
41564         * build-aux/announce-gen: Fix gnulib version related part of usage
41565         message.  Die with a useful error message if no tarballs are
41566         found.
41567
41568 2008-10-10  Jim Meyering  <meyering@redhat.com>
41569
41570         bootstrap: use git's --depth=N option only if it's supported
41571         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
41572         recognize the --depth option.  Reported by Pádraig Brady.
41573
41574 2008-10-09  Bruno Haible  <bruno@clisp.org>
41575
41576         New module 'ioctl'.
41577         * modules/ioctl: New file.
41578         * lib/sys_socket.in.h (ioctl): Remove declaration.
41579         * lib/winsock.c: Include <sys/ioctl.h>.
41580         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
41581         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
41582         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
41583         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
41584         * doc/posix-functions/ioctl.texi: Mention the new module.
41585
41586 2008-10-09  Bruno Haible  <bruno@clisp.org>
41587
41588         New module 'sys_ioctl'.
41589         * lib/sys_ioctl.in.h: New file.
41590         * m4/sys_ioctl_h.m4: New file.
41591         * modules/sys_ioctl: New file.
41592         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
41593
41594 2008-10-09  Bruno Haible  <bruno@clisp.org>
41595
41596         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
41597         * lib/winsock.c: Include <stdarg.h>.
41598         (rpl_ioctl): Change to second argument 'int' and then varargs.
41599
41600 2008-10-09  Bruno Haible  <bruno@clisp.org>
41601
41602         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
41603         when the sys_socket module is present and the system has <winsock2.h>.
41604
41605 2008-10-09  Bruno Haible  <bruno@clisp.org>
41606
41607         * doc/posix-functions/close.texi: Mention module 'close' instead of
41608         module 'sys_socket'.
41609
41610 2008-10-09  Bruno Haible  <bruno@clisp.org>
41611
41612         * doc/glibc-headers/sys_ioctl.texi: New file.
41613         * doc/gnulib.texi: Include it.
41614
41615 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41616             Bruno Haible  <bruno@clisp.org>
41617
41618         Combine the two replacements of 'close'.
41619         * lib/sys_socket.in.h (close): Define to a reminder to include
41620         <unistd.h>.
41621         (_gl_close_fd_maybe_socket): New declaration.
41622         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
41623         * lib/winsock.c (close): Remove undefinition.
41624         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
41625         needed for the gnulib module 'close'.
41626         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
41627         define to an error symbol or to a warning, if suitable.
41628         * lib/close.c: Include <sys/socket.h>.
41629         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
41630         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
41631         UNISTD_H_HAVE_WINSOCK2_H.
41632         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
41633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41634         UNISTD_H_HAVE_WINSOCK2_H.
41635         * modules/sys_socket (Files): Add m4/unistd_h.m4.
41636         (configure.ac): Set a module indicator.
41637         (Makefile.am): Substitute GNULIB_CLOSE.
41638         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
41639         * modules/poll-tests (Depends-on): Add close.
41640         * modules/select-tests (Depends-on): Likewise.
41641
41642 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41643             Bruno Haible  <bruno@clisp.org>
41644
41645         New module 'close'.
41646         * modules/close: New file.
41647         * lib/unistd.in.h (close): Move declaration out of the
41648         FCHDIR_REPLACEMENT scope.
41649         (_gl_unregister_fd): New declaration.
41650         * lib/close.c: New file.
41651         * lib/fchdir.c (rpl_close): Remove function.
41652         * m4/close.m4: New file.
41653         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41654         close.
41655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
41656         REPLACE_CLOSE.
41657         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
41658         REPLACE_CLOSE.
41659         * modules/fchdir (Depends-on): Add close.
41660
41661 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41662             Bruno Haible  <bruno@clisp.org>
41663
41664         * lib/fcntl.in.h (open): Simplify conditionals.
41665         (_gl_register_fd): New declaration.
41666         * lib/fchdir.c (rpl_open): Remove function.
41667         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
41668         also.
41669         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
41670         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
41671         open.
41672
41673 2008-10-09  Jim Meyering  <meyering@redhat.com>
41674
41675         GNUmakefile: use the more name-space-friendly "_version"
41676         * top/GNUmakefile (_dummy): Update.
41677         (_version): Rename from "version".
41678
41679 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41680             Bruno Haible  <bruno@clisp.org>
41681
41682         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
41683         rpl_close.
41684         (_gl_register_fd): New function, extracted from rpl_open.
41685         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
41686         (rpl_open, rpl_opendir): Use _gl_register_fd.
41687
41688 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
41689
41690         Fix organization of 'open' replacement.
41691         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
41692         (gl_FUNC_OPEN): Use it.
41693         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
41694
41695 2008-10-08  Bruno Haible  <bruno@clisp.org>
41696
41697         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
41698
41699 2008-10-08  Simon Josefsson  <simon@josefsson.org>
41700
41701         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
41702         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
41703         listen).
41704
41705 2008-10-08  Eric Blake  <ebb9@byu.net>
41706
41707         GNUmakefile: add 'make version' target
41708         * top/GNUmakefile (_curr-ver): Split version update rules...
41709         (version): ...into a target.
41710
41711 2008-10-07  Bruno Haible  <bruno@clisp.org>
41712
41713         Use a more portable replacement expression for -0.0L.
41714         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
41715         instead of -0.0L. Fix m4 quotation.
41716
41717         * tests/test-signbit.c: Include <float.h>.
41718         (minus_zero): New variable.
41719         (test_signbitl): Use minus_zero instead of -zero.
41720         * modules/signbit-tests (Depends-on): Add float.
41721
41722         * tests/test-ceill.c: Include <float.h>.
41723         (zero): Remove variable.
41724         (minus_zero): New variable.
41725         (main): Use minus_zero instead of -zero.
41726         * modules/ceill-tests (Depends-on): Add float.
41727
41728         * tests/test-floorl.c: Include <float.h>.
41729         (zero): Remove variable.
41730         (minus_zero): New variable.
41731         (main): Use minus_zero instead of -zero.
41732         * modules/floorl-tests (Depends-on): Add float.
41733
41734         * tests/test-roundl.c: Include <float.h>.
41735         (zero): Remove variable.
41736         (minus_zero): New variable.
41737         (main): Use minus_zero instead of -zero.
41738         * modules/roundl-tests (Depends-on): Add float.
41739
41740         * tests/test-truncl.c: Include <float.h>.
41741         (zero): Remove variable.
41742         (minus_zero): New variable.
41743         (main): Use minus_zero instead of -zero.
41744         * modules/truncl-tests (Depends-on): Add float.
41745
41746         * tests/test-frexpl.c (zero): Remove variable.
41747         (minus_zero): New variable.
41748         (main): Use minus_zero instead of -zero.
41749         * modules/frexpl-tests (Depends-on): Add float.
41750
41751         * tests/test-isnan.c (zerol): Remove variable.
41752         (minus_zerol): New variable.
41753         (test_long_double): Use minus_zerol instead of -zerol.
41754         * modules/isnan-tests (Depends-on): Add float.
41755
41756         * tests/test-isnanl.h (zero): Remove variable.
41757         (minus_zero): New variable.
41758         (main): Use minus_zero instead of -zero.
41759         * modules/isnanl-nolibm-tests (Depends-on): Add float.
41760         * modules/isnanl-tests (Depends-on): Add float.
41761
41762         * tests/test-ldexpl.c (zero): Remove variable.
41763         (minus_zero): New variable.
41764         (main): Use minus_zero instead of -zero.
41765         * modules/ldexpl-tests (Depends-on): Add float.
41766
41767         * tests/test-snprintf-posix.h (zerol): Remove variable.
41768         (minus_zerol): New variable.
41769         (test_function): Use minus_zerol instead of -zerol.
41770         * modules/snprintf-posix-tests (Depends-on): Add float.
41771         * modules/vsnprintf-posix-tests (Depends-on): Add float.
41772
41773         * tests/test-sprintf-posix.h (zerol): Remove variable.
41774         (minus_zerol): New variable.
41775         (test_function): Use minus_zerol instead of -zerol.
41776         * modules/sprintf-posix-tests (Depends-on): Add float.
41777         * modules/vsprintf-posix-tests (Depends-on): Add float.
41778
41779         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
41780         (minus_zerol): New variable.
41781         (test_function): Use minus_zerol instead of -zerol.
41782         * modules/vasnprintf-posix-tests (Depends-on): Add float.
41783
41784         * tests/test-vasprintf-posix.c (zerol): Remove variable.
41785         (minus_zerol): New variable.
41786         (test_function): Use minus_zerol instead of -zerol.
41787         * modules/vasprintf-posix-tests (Depends-on): Add float.
41788
41789 2008-10-07  Simon Josefsson  <simon@josefsson.org>
41790
41791         * MODULES.html.sh (Support for building documentation): Mention
41792         pmccabe2html.  Sort entries.
41793
41794         Add pmccabe2html module, from gnupdf.
41795         * build-aux/pmccabe.css: New file.
41796         * build-aux/pmccabe2html: New file.
41797         * m4/pmccabe2html.m4: New file.
41798         * modules/pmccabe2html: New file.
41799
41800 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
41801
41802         flock: new module
41803         * MODULES.html.sh: Add to list of modules.
41804         * lib/flock.c: flock implementation for Windows and Unix systems
41805         which have fcntl.
41806         * doc/glibc-functions/flock.texi: Update documentation.
41807         * lib/sys_file.in.h: <sys/file.h> header file.
41808         * m4/flock.m4: M4 macros.
41809         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
41810         * modules/flock: flock module.
41811         * modules/flock-tests: flock tests module.
41812         * modules/sys_file: sys/file.h module.
41813         * tests/test-flock.c: test suite for flock.
41814
41815 2008-10-06  Jim Meyering  <meyering@redhat.com>
41816
41817         bootstrap: check for LT_INIT more portably still ;-)
41818         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
41819         Spotted by Bruno Haible.
41820
41821 2008-10-06  Eric Blake  <ebb9@byu.net>
41822
41823         test-signbit: avoid tripping Irix cc bug on -0.0L
41824         * tests/test-signbit.c (minus_zerol): Delete, and replace with
41825         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
41826         entire testsuite consistent and avoids an Irix 6.2 bug.
41827
41828 2008-10-05  Bruno Haible  <bruno@clisp.org>
41829             Jim Meyering  <jim@meyering.net>
41830
41831         Add an option for ignoring EPIPE during close_stdout.
41832         * lib/closeout.h: Include <stdbool.h>.
41833         (close_stdout_set_ignore_EPIPE): New declaration.
41834         * lib/closeout.c: Include <stdbool.h>.
41835         (ignore_EPIPE): New variable.
41836         (close_stdout_set_ignore_EPIPE): New function.
41837         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
41838         * lib/close-stream.c (close_stream): Mention the possible EPIPE
41839         failure.
41840         * modules/closeout (Depends-on): Add stdbool.
41841
41842 2008-10-05  Bruno Haible  <bruno@clisp.org>
41843
41844         * modules/accept: New file.
41845         * modules/bind: New file.
41846         * modules/connect: New file.
41847         * modules/getpeername: New file.
41848         * modules/getsockname: New file.
41849         * modules/getsockopt: New file.
41850         * modules/listen: New file.
41851         * modules/recv: New file.
41852         * modules/recvfrom: New file.
41853         * modules/send: New file.
41854         * modules/sendto: New file.
41855         * modules/setsockopt: New file.
41856         * modules/socket: New file.
41857         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
41858         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
41859         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
41860         the particular module is requested. Add a link warning when the
41861         particular module is not requested.
41862         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
41863         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
41864         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
41865         the particular module is requested.
41866         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
41867         gl_SYS_SOCKET_H_DEFAULTS): New macros.
41868         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
41869         * modules/sys_socket (Depends-on): Add link-warning.
41870         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
41871         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
41872         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
41873         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
41874         GL_LINK_WARNING.
41875         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
41876         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
41877         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
41878         * doc/posix-functions/getpeername.texi: Mention the new module
41879         'getpeername'.
41880         * doc/posix-functions/getsockname.texi: Mention the new module
41881         'getsockname'.
41882         * doc/posix-functions/getsockopt.texi: Mention the new module
41883         'getsockopt'.
41884         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
41885         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
41886         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
41887         * doc/posix-functions/send.texi: Mention the new module 'send'.
41888         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
41889         * doc/posix-functions/setsockopt.texi: Mention the new module
41890         'setsockopt'.
41891         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
41892         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
41893         listen, connect, accept.
41894         * modules/select-tests (Depends-on): Likewise.
41895
41896 2008-10-05  Bruno Haible  <bruno@clisp.org>
41897
41898         * lib/winsock.c (strerror): Remove unused #undef.
41899         (rpl_close): Remove unused local variable.
41900
41901         * modules/sys_socket (Depends-on); Add errno.
41902
41903 2008-10-05  Bruno Haible  <bruno@clisp.org>
41904
41905         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
41906         (select): Add a link warning when the 'select' module is not used.
41907         * modules/sys_select (Depends-on): Add link-warning.
41908         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
41909         Suggested by Paolo Bonzini.
41910
41911 2008-10-05  Jim Meyering  <meyering@redhat.com>
41912
41913         bootstrap: check for LT_INIT more portably
41914         * build-aux/bootstrap: Avoid using grep -E, since it's not
41915         portable enough.  Suggestion from Bruno Haible.
41916
41917 2008-10-05  Bruno Haible  <bruno@clisp.org>
41918
41919         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
41920         as being fixed by gnulib.
41921
41922 2008-10-05  Bruno Haible  <bruno@clisp.org>
41923
41924         * modules/select-tests: New file, mostly copied from
41925         modules/sys_select-tests.
41926         * tests/test-select.c: New file, mostly copied from
41927         tests/test-sys_select.c.
41928         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
41929         * modules/sys_select-tests (Depends-on): Remove all dependencies.
41930         (Makefile.am): Remove test_sys_select_LDADD.
41931
41932         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
41933         to an undefined symbol, for an error message.
41934         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
41935         (gl_SYS_SELECT_H_DEFAULTS): New macro.
41936         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
41937         winsock-select.c here.
41938         * modules/sys_select (Files): Remove lib/winsock-select.c.
41939         (Depends-on): Remove alloca.
41940         (Makefile.am): Substitute GNULIB_SELECT.
41941         * modules/select: New file.
41942         * doc/posix-functions/select.texi: Update.
41943
41944 2008-10-05  Bruno Haible  <bruno@clisp.org>
41945
41946         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
41947         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
41948         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
41949         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
41950         getdtablesize.
41951         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
41952         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
41953
41954 2008-10-05  Bruno Haible  <bruno@clisp.org>
41955
41956         * modules/getdtablesize-tests: New file.
41957         * tests/test-getdtablesize.c: New file.
41958
41959         New module 'getdtablesize'.
41960         * lib/unistd.in.h (getdtablesize): New declaration.
41961         * lib/getdtablesize.c: New file.
41962         * m4/getdtablesize.m4: New file.
41963         * modules/getdtablesize: New file.
41964         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
41965         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
41966         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
41967         HAVE_GETDTABLESIZE.
41968         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
41969
41970 2008-10-05  Bruno Haible  <bruno@clisp.org>
41971
41972         * modules/sched (Makefile.am): Fix typo.
41973         Reported by Simon Josefsson.
41974
41975 2008-10-05  Jim Meyering  <meyering@redhat.com>
41976
41977         bootstrap: check for LT_INIT, too
41978         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
41979         are deprecated.  Suggestion from Ralf Wildenhues.
41980
41981 2008-10-05  Bruno Haible  <bruno@clisp.org>
41982
41983         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
41984         overriding them by ours.
41985         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
41986
41987 2008-10-05  Jim Meyering  <meyering@redhat.com>
41988
41989         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
41990         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
41991         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
41992
41993 2008-10-04  Bruno Haible  <bruno@clisp.org>
41994
41995         * modules/dup2 (License): Change to LGPLv2+.
41996         * modules/sleep (License): Likewise.
41997         * modules/perror (License): Likewise.
41998         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
41999         Blake.
42000         * modules/signal (License): Likewise.
42001         * modules/sigprocmask (License): Likewise.
42002         * modules/raise (License): Change to LGPLv2+, with approval by Jim
42003         Meyering.
42004
42005 2008-10-04  Bruno Haible  <bruno@clisp.org>
42006
42007         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
42008         Reported by Rainer Tammer <tammer@tammer.net>.
42009
42010 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
42011             Bruno Haible  <bruno@clisp.org>
42012
42013         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
42014         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
42015         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
42016
42017 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
42018
42019         filevercmp: new module
42020         * lib/filevercmp.h: New function filevercmp comparing version strings.
42021         * lib/filevercmp.c: Implementation of filevercmp function.
42022         * modules/filevercmp: Module metadata.
42023         * tests/test-filevercmp.c: Unit test for new module.
42024         * modules/filevercmp-tests: Unit test metadata.
42025         * MODULES.html.sh: Add filevercmp module.
42026
42027 2008-10-03  Bruno Haible  <bruno@clisp.org>
42028
42029         * lib/c-ctype.h: Add comment.
42030         Reported by Jim Meyering.
42031
42032 2008-10-02  Bruno Haible  <bruno@clisp.org>
42033
42034         * modules/posix_spawn-internal (Depends-on): Add 'open'.
42035
42036 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42037
42038         * build-aux/bootstrap: Allow renaming bootstrap, and change the
42039         name of bootstrap.conf accordingly.
42040
42041 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42042
42043         * build-aux/bootstrap: Install git-merge-changelog configuration
42044         items into .gitconfig if needed.
42045
42046 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
42047
42048         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
42049         git repository, and initialize/update it accordingly.
42050
42051 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
42052
42053         * modules/fsync-tests: New file.
42054         * tests/test-fsync.c: New file.
42055
42056         New module 'fsync'.
42057         * lib/fsync.c: New file.
42058         * m4/fsync.m4: New file.
42059         * modules/fsync: New file.
42060         * lib/unistd.in.h (fsync): New declaration.
42061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
42062         GNULIB_FSYNC and HAVE_FSYNC.
42063         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
42064         * MODULES.html.sh (posix_functions): Add fsync.
42065         * doc/posix-functions/fsync.texi: Mention the new module.
42066
42067 2008-10-02  Jim Meyering  <meyering@redhat.com>
42068
42069         fts.c: sync with similar code from coreutils' remove.c
42070         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
42071         Guard also with "#if defined __linux__", since for now at least,
42072         this code is Linux-kernel-specific.
42073
42074 2008-10-02  Jim Meyering  <meyering@redhat.com>
42075
42076         fts: bug fixes
42077         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
42078         Include <sys/vfs.h>, not <sys/statfs.h>.
42079
42080         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
42081         Include <sys/vfs.h>, not <sys/statfs.h>.
42082
42083 2008-10-01  Bruno Haible  <bruno@clisp.org>
42084
42085         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
42086         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
42087         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
42088         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
42089         * doc/posix-functions/posix_spawnp.texi: Likewise.
42090         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
42091         whether posix_spawn actually works.
42092         * m4/pipe.m4 (gl_PIPE): Likewise.
42093         * modules/execute (Files): Add m4/posix_spawn.m4.
42094         * modules/pipe (Files): Add m4/posix_spawn.m4.
42095         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
42096
42097 2008-10-01  Jim Meyering  <meyering@redhat.com>
42098
42099         remove trailing spaces
42100         * NEWS: Likewise.
42101         * lib/poll.c (poll): Likewise.
42102         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
42103         * lib/winsock.c (rpl_close): Likewise.
42104         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
42105         * modules/yield: Likewise.
42106         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
42107         * tests/test-sys_select.c (connect_to_socket): Likewise.
42108
42109         fts.c: adjust a new interface to be more generally useful
42110         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
42111         (fts_build): Adjust caller.
42112
42113 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42114
42115         * modules/cond-tests: New file.
42116         * tests/test-cond.c: New file.
42117
42118 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42119             Bruno Haible  <bruno@clisp.org>
42120
42121         * modules/cond (Dependencies): Add errno, time.
42122         * lib/glthread/cond.h: Include <time.h>.
42123         (gl_cond_define, gl_cond_define_initialized): Use the same definition
42124         across platforms.
42125
42126 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42127             Bruno Haible  <bruno@clisp.org>
42128
42129         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
42130
42131 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42132             Bruno Haible  <bruno@clisp.org>
42133
42134         * modules/tls-tests (Depends-on): Add thread, yield.
42135         (configure.ac): Remove all checks.
42136         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
42137         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42138         gl_thread_self): Remove definitions. Include glthread/thread.h and
42139         glthread/yield.h instead.
42140         (test_tls): Pass an additional NULL argument to gl_thread_join.
42141
42142 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42143             Bruno Haible  <bruno@clisp.org>
42144
42145         * modules/lock-tests (Depends-on): Add thread, yield.
42146         (configure.ac): Remove all checks.
42147         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
42148         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
42149         gl_thread_self): Remove definitions. Include glthread/thread.h and
42150         glthread/yield.h instead.
42151         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
42152         additional NULL argument to gl_thread_join.
42153
42154 2008-09-30  Bruno Haible  <bruno@clisp.org>
42155
42156         Fix the Win32 implementation of the 'thread' module.
42157         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
42158         pointer type.
42159         (gl_thread_self): Invoke gl_thread_self_func.
42160         (gl_thread_self_func): New declaration.
42161         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
42162         (do_init_self_key, init_self_key): New functions.
42163         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
42164         Remove some fields.
42165         (running_threads, running_lock): Remove variables.
42166         (get_current_thread_handle): New function.
42167         (gl_thread_self_func, wrapper_func, glthread_create_func,
42168         glthread_join_func, gl_thread_exit_func): Largely rewritten and
42169         simplified.
42170
42171 2008-09-30  Bruno Haible  <bruno@clisp.org>
42172
42173         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
42174         files.
42175
42176 2008-09-30  Jim Meyering  <meyering@redhat.com>
42177
42178         fts.m4: correct the test for statfs.f_type
42179         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
42180         when checking for statfs.f_type.
42181
42182 2008-09-15  Simon Josefsson  <simon@josefsson.org>
42183
42184         tests: avoid some compiler warnings
42185         * tests/test-memchr.c (main): Pass NULL indirectly.
42186         * tests/test-getdate.c (main): Remove unused variable 'ret'.
42187
42188 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
42189
42190         getdate.y: disallow countable dayshifts like "4 yesterday ago"
42191         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
42192         exactly specified dayshifts.
42193         (dayshift): New rule.
42194         (rel): Add dayshift.
42195         (relative_time_table) [tomorrow, yesterday, today, now]:
42196         Use tDAY_SHIFT in place of tDAY_UNIT.
42197         * tests/test-getdate.c: Add tests for now-disallowed countable
42198         dayshifts, e.g., "4 yesterday ago".
42199
42200 2008-09-29  Bruno Haible  <bruno@clisp.org>
42201
42202         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
42203         * tests/test-posix_spawn1.in.sh: Renamed from
42204         tests/test-posix_spawn.in.sh.
42205         * tests/test-posix_spawn2.c: New file.
42206         * tests/test-posix_spawn2.in.sh: New file.
42207         * modules/posix_spawnp-tests (Files): Update.
42208         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
42209
42210 2008-09-29  Bruno Haible  <bruno@clisp.org>
42211
42212         Propagate effects of putenv/setenv/unsetenv to child processes.
42213         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
42214         * lib/pipe.c (create_pipe): Likewise.
42215
42216 2008-09-29  Bruno Haible  <bruno@clisp.org>
42217
42218         Enable use of shell scripts as executables in mingw.
42219         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
42220         run the program as a shell script.
42221         * lib/pipe.c (create_pipe): Likewise.
42222         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
42223         resulting array.
42224
42225 2008-09-29  Eric Blake  <ebb9@byu.net>
42226
42227         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
42228
42229 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
42230
42231         * doc/posix-functions/accept.texi: Update mingw problems.
42232         * doc/posix-functions/bind.texi: Update mingw problems.
42233         * doc/posix-functions/close.texi: Update mingw problems.
42234         * doc/posix-functions/connect.texi: Update mingw problems.
42235         * doc/posix-functions/getpeername.texi: Update mingw problems.
42236         * doc/posix-functions/getsockname.texi: Update mingw problems.
42237         * doc/posix-functions/getsockopt.texi: Update mingw problems.
42238         * doc/posix-functions/ioctl.texi: Update mingw problems.
42239         * doc/posix-functions/listen.texi: Update mingw problems.
42240         * doc/posix-functions/recv.texi: Update mingw problems.
42241         * doc/posix-functions/recvfrom.texi: Update mingw problems.
42242         * doc/posix-functions/select.texi: Update mingw problems.
42243         * doc/posix-functions/send.texi: Update mingw problems.
42244         * doc/posix-functions/sendto.texi: Update mingw problems.
42245         * doc/posix-functions/setsockopt.texi: Update mingw problems.
42246         * doc/posix-functions/socket.texi: Update mingw problems.
42247
42248 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
42249             Bruno Haible  <bruno@clisp.org>
42250
42251         * lib/sys_select.in.h: Include sys/time.h.
42252         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
42253         * modules/sys_select: Depend on sys_time.
42254         * tests/test-sys_select.c: Test that sys/select.h defines struct
42255         timeval fully.
42256
42257 2008-09-29  Bruno Haible  <bruno@clisp.org>
42258
42259         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
42260         * lib/sys_select.in.h: Likewise.
42261
42262 2008-09-29  Bruno Haible  <bruno@clisp.org>
42263
42264         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
42265
42266 2008-09-29  Bruno Haible  <bruno@clisp.org>
42267
42268         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
42269         Set LIBSOCKET instead of augmenting LIBS.
42270         * modules/sockets (Link): New section.
42271         * modules/sockets-tests (test_sockets_LDADD): New variable.
42272         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
42273         * modules/poll-tests (test_poll_LDADD): New variable.
42274         * NEWS: Document the change.
42275
42276 2008-09-29  Bruno Haible  <bruno@clisp.org>
42277
42278         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
42279         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
42280         ARPA_INET_H directly.
42281         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42282
42283 2008-09-28  Bruno Haible  <bruno@clisp.org>
42284
42285         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
42286         from gl_HEADER_SYS_SOCKET.
42287         (gl_HEADER_SYS_SOCKET): Invoke it.
42288         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
42289
42290 2008-09-28  Bruno Haible  <bruno@clisp.org>
42291
42292         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
42293         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
42294         Needed on OSF/1 4.0.
42295
42296 2008-09-28  Bruno Haible  <bruno@clisp.org>
42297
42298         Override open more carefully.
42299         * lib/open.c (orig_open): New function.
42300         (rpl_open): Use orig_open instead of open.
42301         * lib/fcntl.in.h: Add special invocation convention.
42302         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
42303         (gl_FUNC_OPEN): Invoke it.
42304
42305         Override freopen more carefully.
42306         * lib/freopen.c (orig_freopen): New function.
42307         (rpl_freopen): Use orig_freopen instead of freopen.
42308         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
42309         (gl_FUNC_FREOPEN): Invoke it.
42310
42311         Override fopen more carefully.
42312         * lib/fopen.c (orig_fopen): New function.
42313         (rpl_fopen): Use orig_fopen instead of fopen.
42314         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
42315         (gl_FUNC_FOPEN): Invoke it.
42316         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
42317
42318 2008-09-28  Bruno Haible  <bruno@clisp.org>
42319
42320         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
42321         SIGPIPE.
42322
42323 2008-09-28  Bruno Haible  <bruno@clisp.org>
42324
42325         * tests/test-sigaction.c (handler, main): Disable the check whether
42326         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
42327         glibc systems with LinuxThreads.
42328
42329 2008-09-28  Bruno Haible  <bruno@clisp.org>
42330
42331         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
42332
42333         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
42334         with AIX xlc.
42335         * lib/fcntl.in.h (open): Likewise.
42336         Reported by Rainer Tammer <tammer@tammer.net>.
42337
42338 2008-09-28  Bruno Haible  <bruno@clisp.org>
42339
42340         * modules/posix_spawnp-tests: New file.
42341         * tests/test-posix_spawn.c: New file.
42342         * tests/test-posix_spawn.in.sh: New file.
42343
42344         New module 'posix_spawnp'.
42345         * modules/posix_spawnp: New file.
42346         * lib/spawnp.c: New file, from GNU libc with modifications.
42347         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
42348
42349         New module 'posix_spawn'.
42350         * modules/posix_spawn: New file.
42351         * lib/spawn.c: New file, from GNU libc with modifications.
42352         * doc/posix-functions/posix_spawn.texi: Mention the new module.
42353
42354         New module 'posix_spawnattr_destroy'.
42355         * modules/posix_spawnattr_destroy: New file.
42356         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
42357         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
42358         module.
42359
42360         New module 'posix_spawnattr_setsigmask'.
42361         * modules/posix_spawnattr_setsigmask: New file.
42362         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
42363         modifications.
42364         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
42365         new module.
42366
42367         New module 'posix_spawnattr_getsigmask'.
42368         * modules/posix_spawnattr_getsigmask: New file.
42369         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
42370         modifications.
42371         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
42372         new module.
42373
42374         New module 'posix_spawnattr_setsigdefault'.
42375         * modules/posix_spawnattr_setsigdefault: New file.
42376         * lib/spawnattr_setdefault.c: New file, from GNU libc with
42377         modifications.
42378         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
42379         new module.
42380
42381         New module 'posix_spawnattr_getsigdefault'.
42382         * modules/posix_spawnattr_getsigdefault: New file.
42383         * lib/spawnattr_getdefault.c: New file, from GNU libc with
42384         modifications.
42385         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
42386         new module.
42387
42388         New module 'posix_spawnattr_setschedpolicy'.
42389         * modules/posix_spawnattr_setschedpolicy: New file.
42390         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
42391         modifications.
42392         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
42393         new module.
42394
42395         New module 'posix_spawnattr_getschedpolicy'.
42396         * modules/posix_spawnattr_getschedpolicy: New file.
42397         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
42398         modifications.
42399         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
42400         new module.
42401
42402         New module 'posix_spawnattr_setschedparam'.
42403         * modules/posix_spawnattr_setschedparam: New file.
42404         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
42405         modifications.
42406         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
42407         new module.
42408
42409         New module 'posix_spawnattr_getschedparam'.
42410         * modules/posix_spawnattr_getschedparam: New file.
42411         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
42412         modifications.
42413         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
42414         new module.
42415
42416         New module 'posix_spawnattr_setpgroup'.
42417         * modules/posix_spawnattr_setpgroup: New file.
42418         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
42419         modifications.
42420         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
42421         module.
42422
42423         New module 'posix_spawnattr_getpgroup'.
42424         * modules/posix_spawnattr_getpgroup: New file.
42425         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
42426         modifications.
42427         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
42428         module.
42429
42430         New module 'posix_spawnattr_setflags'.
42431         * modules/posix_spawnattr_setflags: New file.
42432         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
42433         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
42434         module.
42435
42436         New module 'posix_spawnattr_getflags'.
42437         * modules/posix_spawnattr_getflags: New file.
42438         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
42439         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
42440         module.
42441
42442         New module 'posix_spawnattr_init'.
42443         * modules/posix_spawnattr_init: New file.
42444         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
42445         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
42446         module.
42447
42448         New module 'posix_spawn_file_actions_destroy'.
42449         * modules/posix_spawn_file_actions_destroy: New file.
42450         * lib/spawn_faction_destroy.c: New file, from GNU libc with
42451         modifications.
42452         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
42453         the new module.
42454
42455         New module 'posix_spawn_file_actions_addopen'.
42456         * modules/posix_spawn_file_actions_addopen: New file.
42457         * lib/spawn_faction_addopen.c: New file, from GNU libc with
42458         modifications.
42459         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
42460         the new module.
42461
42462         New module 'posix_spawn_file_actions_adddup2'.
42463         * modules/posix_spawn_file_actions_adddup2: New file.
42464         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
42465         modifications.
42466         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
42467         the new module.
42468
42469         New module 'posix_spawn_file_actions_addclose'.
42470         * modules/posix_spawn_file_actions_addclose: New file.
42471         * lib/spawn_faction_addclose.c: New file, from GNU libc with
42472         modifications.
42473         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
42474         the new module.
42475
42476         New module 'posix_spawn_file_actions_init'.
42477         * modules/posix_spawn_file_actions_init: New file.
42478         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
42479         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
42480         new module.
42481
42482         New module 'posix_spawn-internal'.
42483         * modules/posix_spawn-internal: New file.
42484         * lib/spawn_int.h: New file, from GNU libc with modifications.
42485         * lib/spawni.c: New file, from GNU libc with modifications.
42486         * m4/posix_spawn.m4: New file.
42487
42488         New module 'spawn'.
42489         * modules/spawn: New file.
42490         * lib/spawn.in.h: New file, from GNU libc with modifications.
42491         * m4/spawn_h.m4: New file.
42492         * doc/posix-headers/spawn.texi: Mention the new module.
42493
42494 2008-09-28  Bruno Haible  <bruno@clisp.org>
42495
42496         * modules/sched-tests: New file.
42497         * tests/test-sched.c: New file.
42498
42499         New module 'sched'.
42500         * modules/sched: New file.
42501         * lib/sched.in.h: New file.
42502         * m4/sched_h.m4: New file.
42503         * doc/posix-headers/sched.texi: Mention the new module.
42504
42505 2008-09-27  Eric Blake  <ebb9@byu.net>
42506
42507         Fix previous patch, and tweak references to $0.
42508         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
42509         (func_version, func_gnulib_dir): Don't call this program
42510         gnulib-tool.
42511         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
42512         with using $0 in function.
42513         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
42514         (func_fatal_error): Reuse the name the user invoked us with.
42515
42516 2008-09-27  Bruno Haible  <bruno@clisp.org>
42517
42518         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
42519         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
42520         (gl_ICONV_H): Not here.
42521         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
42522         instead of assigning ICONV_H directly.
42523
42524         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
42525         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
42526         WCHAR_H directly.
42527
42528 2008-09-27  Bruno Haible  <bruno@clisp.org>
42529
42530         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
42531         * modules/arpa_inet (Depends-on): Add link-warning.
42532         (Makefile.am): Insert the definition of GL_LINK-WARNING.
42533         * modules/unistd (Makefile.am): Likewise.
42534
42535 2008-09-26  Bruno Haible  <bruno@clisp.org>
42536
42537         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
42538         variables.
42539         (func_version): Essentially copied from gnulib-tool.
42540         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
42541         func_readlink): Copied from gnulib-tool.
42542
42543 2008-09-26  Bruno Haible  <bruno@clisp.org>
42544
42545         * gnulib-tool (func_version): Change directory to $gnulib_dir before
42546         invoking git-version-gen.
42547
42548 2008-09-26  Bruno Haible  <bruno@clisp.org>
42549
42550         * posix-modules: Update to directory names changed on 2008-01-19.
42551         Remove commas in output before splitting into words. No more need to
42552         avoid 'ftruncate' since 2007-02-19.
42553
42554 2008-09-26  Bruno Haible  <bruno@clisp.org>
42555
42556         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
42557
42558 2008-09-26  Bruno Haible  <bruno@clisp.org>
42559
42560         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
42561         * modules/fwriteerror (Depends-on): Add errno.
42562
42563 2008-09-26  Bruno Haible  <bruno@clisp.org>
42564
42565         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
42566         * tests/test-vc-list-files-cvs.sh: Likewise.
42567
42568 2008-09-26  Bruno Haible  <bruno@clisp.org>
42569
42570         * doc/posix-headers/sys_resource.texi: Reorder items.
42571
42572 2008-09-26  Jim Meyering  <meyering@redhat.com>
42573
42574         fts: tweak inode comparison function
42575         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
42576         inode numbers, as documented.
42577
42578         fts: sort dirent entries on inode number before traversing
42579         This avoids a quadratic, seek-related performance penalty when
42580         operating on a directory containing many entries (measurable at 10k;
42581         3.5 hours at 2 million entries with a cold cache) on certain types
42582         of file systems, including ext3 and ext4, but not tmpfs.
42583         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
42584         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
42585         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
42586         (fs_handles_readdir_ordered_dirents_efficiently): New function.
42587         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
42588         (fts_build): Set the stat.st_ino member from D_INO.
42589         If it is likely to be useful, sort dirent entries on inode number.
42590
42591         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
42592         and the struct statfs.f_type member.
42593         * modules/fts (Depends-on): Add d-ino.
42594
42595 2008-09-26  Bruno Haible  <bruno@clisp.org>
42596
42597         * modules/sigpipe-die (Depends-on): Add sigpipe.
42598
42599         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
42600         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
42601         and GNULIB_STDIO_H_SIGPIPE are set.
42602         * lib/stdio-write.c: New file.
42603         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
42604         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42605         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42606         REPLACE_STDIO_WRITE_FUNCS.
42607         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
42608         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42609         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42610         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42611         * modules/stdio (Files): Add lib/stdio-write.c.
42612         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
42613         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
42614         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
42615         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
42616         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
42617         REPLACE_FPRINTF_POSIX.
42618         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
42619         REPLACE_PRINTF_POSIX.
42620         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
42621         REPLACE_VFPRINTF_POSIX.
42622         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
42623         REPLACE_VPRINTF_POSIX.
42624         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
42625         SIGPIPE issue.
42626         * doc/posix-functions/fputc.texi: Likewise.
42627         * doc/posix-functions/fputs.texi: Likewise.
42628         * doc/posix-functions/fwrite.texi: Likewise.
42629         * doc/posix-functions/printf.texi: Likewise.
42630         * doc/posix-functions/putc.texi: Likewise.
42631         * doc/posix-functions/putchar.texi: Likewise.
42632         * doc/posix-functions/puts.texi: Likewise.
42633         * doc/posix-functions/vfprintf.texi: Likewise.
42634         * doc/posix-functions/vprintf.texi: Likewise.
42635
42636         * modules/safe-write (Depends-on): Add write.
42637
42638         * modules/sigpipe-tests: New file.
42639         * tests/test-sigpipe.c: New file.
42640         * tests/test-sigpipe.sh: New file.
42641
42642         * modules/write: New file.
42643         * lib/unistd.in.h: Include <sys/types.h>.
42644         (write): New declaration.
42645         * lib/write.c: New file.
42646         * m4/write.m4: New file.
42647         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
42648         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
42649         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
42650         GNULIB_WRITE, REPLACE_WRITE.
42651         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
42652         and the SIGPIPE issue.
42653
42654         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
42655         (raise): New declaration.
42656         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
42657         (ext_signal): New function.
42658         (rpl_raise): New function.
42659         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
42660         GNULIB_SIGNAL_H_SIGPIPE.
42661         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
42662         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
42663
42664         * modules/sigpipe: New file.
42665         * m4/sigpipe.m4: New file.
42666
42667 2008-09-25  Derek Price  <derek@ximbiot.com>
42668             Bruno Haible  <bruno@clisp.org>
42669
42670         * gnulib-tool (func_import): Report all license incompatibilities, not
42671         just the first one.
42672
42673 2008-09-25  Bruno Haible  <bruno@clisp.org>
42674
42675         * gnulib-tool (func_import): When computing the edits, consider not
42676         only the Makefile.ams that exist but also those that will be generated.
42677
42678 2008-09-25  Simon Josefsson  <simon@josefsson.org>
42679
42680         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
42681         fixes gnulib-tool --test warning about duplicate dependency.
42682
42683 2008-09-25  Bruno Haible  <bruno@clisp.org>
42684
42685         * gnulib-tool: Don't ask the user to perform edits in the generated
42686         Makefile.ams.
42687         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
42688         apply to the Makefile.am being generated.
42689         (func_emit_tests_Makefile_am): Execute edits that apply to the
42690         Makefile.am being generated.
42691         (func_import): Setup list of Makefile.am edits before emitting the
42692         Makefile.ams, not at the end.
42693         (func_create_testdir): Update.
42694         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42695
42696 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
42697
42698         * gnulib-tool (func_import): Store the --tests-base option in the
42699         comment in gnulib-cache.m4.
42700
42701 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
42702
42703         * NEWS: Document increased portability that sys_select now provides.
42704
42705         * lib/sys_select.in.h: Install select wrapper.
42706         * lib/sys_socket.in.h: Use more descriptive name when there is no
42707         select wrapper.
42708         * lib/winsock-select.c: New.
42709         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
42710         Require gl_HEADER_SYS_SOCKET.
42711         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
42712         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
42713         * tests/test-sys_select.c: Add functional tests.
42714
42715 2008-09-24  Eric Blake  <ebb9@byu.net>
42716
42717         open, fopen: close fd leak in last patch
42718         * lib/open.c (rpl_open): Close fd before returning error.
42719         * lib/fopen.c (rpl_fopen): Close fd before returning error.
42720         * doc/posix-functions/open.texi (open): Document that Irix also
42721         has the bug.
42722         * doc/posix-functions/fopen.texi (fopen): Likewise.
42723         Reported by Paolo Bonzini.
42724
42725 2008-09-24  Bruno Haible  <bruno@clisp.org>
42726
42727         Ensure that a filename ending in a slash cannot be used to access a
42728         non-directory.
42729         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
42730         to check whether it's really a directory.
42731         * lib/fopen.c: Include fcntl.h, unistd.h.
42732         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
42733         and fdopen().
42734         * modules/fopen (Depends-on): Add unistd.
42735         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
42736         * tests/test-fopen.c (main): Likewise.
42737         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
42738         * doc/posix-functions/fopen.texi: Likewise.
42739         Reported by Eric Blake.
42740
42741 2008-09-23  Eric Blake  <ebb9@byu.net>
42742
42743         c-stack: avoid compiler optimizations when provoking overflow
42744         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
42745         recursion harder to optimize, to ensure a stack overflow occurs.
42746         * tests/test-c-stack.c (recurse): Likewise.
42747         Borrowed from libsigsegv.
42748
42749         c-stack: work around Irix sigaltstack bug
42750         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
42751         whether sigaltstack uses wrong end of stack_t (copied in part from
42752         libsigsegv).
42753         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
42754         Irix bug, without requiring an over-allocation.
42755         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
42756         bug.
42757
42758         fopen: document mingw bug on directories
42759         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
42760         not allowing a stream visiting a directory, even though reading
42761         from such a stream is not portable.
42762
42763 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42764
42765         * lib/poll.c: Rewrite.
42766         * modules/poll: Depend on alloca.
42767
42768 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42769
42770         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
42771         instead define prototypes for a full set of wrappers.  Ensure
42772         that Cygwin does not use the compatibility code, which is only
42773         for MinGW.
42774         * lib/winsock.c: New.
42775         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
42776         * modules/sys_socket: Add lib/winsock.c.
42777
42778         * modules/poll-tests: Add errno and perror.
42779         * tests/test-poll.c: Use ioctl, not ioctlsocket.
42780
42781 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
42782
42783         * tests/test-poll.c: Downgrade minimum needed Winsock version.
42784
42785 2008-09-23  Bruno Haible  <bruno@clisp.org>
42786
42787         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
42788         * doc/glibc-functions/*: Likewise.
42789
42790 2008-09-23  Simon Josefsson  <simon@josefsson.org>
42791
42792         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
42793         success.
42794
42795 2008-09-22  Eric Blake  <ebb9@byu.net>
42796             Bruno Haible  <bruno@clisp.org>
42797
42798         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
42799         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
42800         supply %A but mishandle pseudo-NaN.
42801         Reported by Simon Josefsson.
42802
42803 2008-09-21  Bruno Haible  <bruno@clisp.org>
42804
42805         * tests/test-lock.c (main): Tweak skip message.
42806         * tests/test-tls.c (main): Likewise.
42807
42808 2008-09-21  Bruno Haible  <bruno@clisp.org>
42809
42810         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
42811         whether 'struct sigaction' has sa_sigaction here...
42812         (gl_PREREQ_SIG_HANDLER_H): ... not here.
42813         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
42814
42815 2008-09-21  Bruno Haible  <bruno@clisp.org>
42816
42817         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
42818         section.
42819         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
42820         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
42821         the new section.
42822         (Support for obsolete systems lacking POSIX:2001): New section.
42823         (String handling <string.h>): Move strdup to the new section.
42824         Suggested by Simon Josefsson and Paolo Bonzini.
42825
42826 2008-09-21  Bruno Haible  <bruno@clisp.org>
42827
42828         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
42829         exponents in %e and %g results on 'long double'. Needed for mingw's
42830         improved *printf functions.
42831         * tests/test-vasprintf-posix.c (test_function): Likewise.
42832         * tests/test-snprintf-posix.h (test_function): Likewise.
42833         * tests/test-sprintf-posix.h (test_function): Likewise.
42834         Reported by Eric Blake.
42835
42836 2008-09-21  Bruno Haible  <bruno@clisp.org>
42837
42838         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
42839         * tests/test-sprintf-posix.h (test_function): Likewise.
42840
42841 2008-09-21  Bruno Haible  <bruno@clisp.org>
42842
42843         * modules/getpass (Depends-on): Add strdup-posix.
42844
42845         New module 'strdup-posix'.
42846         * modules/strdup-posix: New file.
42847         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
42848         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
42849         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
42850         REPLACE_STRDUP.
42851         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
42852         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
42853         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42854         strdup-posix.
42855
42856         * modules/strdup (Depends-on): Remove malloc-posix.
42857
42858 2008-09-20  Bruno Haible  <bruno@clisp.org>
42859
42860         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
42861         Wildenhues.
42862
42863 2008-09-20  Bruno Haible  <bruno@clisp.org>
42864
42865         Ensure that wint_t gets defined on IRIX 5.3.
42866         * lib/wchar.in.h (wint_t): Define if not defined by the system.
42867         * lib/wctype.in.h (wint_t): Likewise.
42868         (__wctype_wint_t): Remove type.
42869         (isw*): Use wint_t instead of __wctype_wint_t.
42870         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
42871         * modules/wchar (Files): Add m4/wint_t.m4.
42872         (Makefile.am): Substitute HAVE_WINT_T.
42873         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
42874         * tests/test-wctype.c: Check that wint_t is defined.
42875         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
42876         * doc/posix-headers/wctype.texi: Likewise.
42877         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42878
42879 2008-09-18  Bruno Haible  <bruno@clisp.org>
42880
42881         * gnulib-tool (func_exit): Update comment.
42882
42883 2008-09-18  Simon Josefsson  <simon@josefsson.org>
42884
42885         * modules/getaddrinfo (Depends-on): Remove strdup, this module
42886         assumes strdup exists and does not depend on strdup to return
42887         ENOMEM on out of memory conditions.
42888
42889 2008-09-18  Bruno Haible  <bruno@clisp.org>
42890
42891         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
42892         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
42893         digits for the exponent.
42894
42895 2008-09-18  Jim Meyering  <meyering@redhat.com>
42896             Bruno Haible  <bruno@clisp.org>
42897
42898         * lib/vasnprintf.c (decimal_point_char): Define also if
42899         NEED_PRINTF_INFINITE_LONG_DOUBLE.
42900
42901 2008-09-16  Bruno Haible  <bruno@clisp.org>
42902         and Eric Blake  <ebb9@byu.net>
42903
42904         vasnprintf: support Irix 5.3
42905         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
42906         that mishandle long double infinity.
42907         Reported by Tom G. Christensen.
42908
42909 2008-09-16  Bruno Haible  <bruno@clisp.org>
42910
42911         * doc/glibc-functions/scandir.texi: Mention the function is missing on
42912         Solaris 9.
42913         * doc/glibc-functions/alphasort.texi: Likewise.
42914         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
42915
42916 2008-09-16  Jim Meyering  <meyering@redhat.com>
42917
42918         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
42919         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
42920         a umask modification leak out of a subshell.  Otherwise, the
42921         opensolaris /bin/sh would be accepted and thus cause unwarranted
42922         failures in the coreutils test suite.
42923
42924 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
42925
42926         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
42927         to succeed.
42928
42929 2008-09-16  Jim Meyering  <meyering@redhat.com>
42930
42931         avoid spurious test failure when library is built without ACL support
42932         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
42933         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
42934         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
42935         * tests/test-copy-acl.sh: Likewise.
42936
42937 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42938
42939         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
42940         based on character occurrence counts.
42941
42942 2008-09-15  Eric Blake  <ebb9@byu.net>
42943
42944         tests: avoid some compiler warnings
42945         * tests/test-memchr.c (main): Pass NULL indirectly.
42946         * tests/test-closein.c (main): Avoid unused variable.
42947
42948 2008-09-15  Bruno Haible  <bruno@clisp.org>
42949
42950         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
42951         are missing on OpenBSD 4.0 individually.
42952         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42953
42954 2008-09-15  Bruno Haible  <bruno@clisp.org>
42955
42956         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
42957         * doc/posix-functions/strerror.texi: Mention also Cygwin.
42958         * doc/posix-functions/perror.texi: Likewise.
42959         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
42960         is missing.
42961         Reported by Eric Blake.
42962
42963         * lib/errno.in.h: Use replacement values >= 2000.
42964         Reported by Eric Blake.
42965
42966 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42967
42968         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
42969         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
42970         limit.
42971         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
42972         compareseq was aborted.
42973
42974 2008-09-14  Bruno Haible  <bruno@clisp.org>
42975
42976         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
42977         yvec_edit_count.
42978         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
42979         (fstrcmp_bounded): Simplify result computation accordingly.
42980
42981 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42982
42983         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
42984         (fstrcmp): Define in terms of fstrcmp_bounded.
42985         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
42986         lower_bound argument.
42987         Return quickly if the result is certainly < lower_bound.
42988         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
42989
42990 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42991
42992         * lib/diffseq.h (EARLY_ABORT): New macro.
42993         (compareseq): Change return type to bool. Return true when EARLY_ABORT
42994         evaluates to true.
42995
42996 2008-09-14  Bruno Haible  <bruno@clisp.org>
42997
42998         * modules/perror-tests: New file.
42999         * tests/test-perror.sh: New file.
43000         * tests/test-perror.c: New file.
43001
43002         New module 'perror'.
43003         * lib/stdio.in.h (perror): New declaration.
43004         * lib/perror.c: New file.
43005         * m4/perror.m4: New file.
43006         * modules/perror: New file.
43007         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
43008         * doc/posix-functions/perror.texi: Mention the perror module.
43009         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
43010         REPLACE_PERROR.
43011         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
43012         REPLACE_PERROR.
43013
43014 2008-09-14  Bruno Haible  <bruno@clisp.org>
43015
43016         * modules/stdio (Makefile.am): Reorder to match the order in
43017         lib/stdio.in.h.
43018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43019
43020 2008-09-13  Bruno Haible  <bruno@clisp.org>
43021
43022         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
43023
43024 2008-09-13  Bruno Haible  <bruno@clisp.org>
43025
43026         Extend strerror to cover the added errno values.
43027         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
43028         (rpl_strerror): Provide error messages for the added errno values and
43029         for the WSA* values.
43030         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
43031         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
43032         strerror.
43033         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
43034         * modules/strerror (Depends-on): Add errno.
43035         * doc/posix-functions/strerror.texi: Document the change.
43036         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
43037         and EOVERFLOW.
43038
43039 2008-09-13  Bruno Haible  <bruno@clisp.org>
43040
43041         * modules/EOVERFLOW: Remove file.
43042         * m4/eoverflow.m4: Remove file.
43043         * modules/EOVERFLOW-tests: Remove file.
43044         * tests/test-EOVERFLOW.c: Remove file.
43045         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
43046         * modules/ftell (Depends-on): Likewise.
43047         * modules/getdelim (Depends-on): Likewise.
43048         * modules/getugroups (Depends-on): Likewise.
43049         * modules/poll (Depends-on): Likewise.
43050         * modules/snprintf (Depends-on): Likewise.
43051         * modules/sprintf-posix (Depends-on): Likewise.
43052         * modules/vasnprintf (Depends-on): Likewise.
43053         * modules/vasprintf (Depends-on): Likewise.
43054         * modules/vfprintf-posix (Depends-on): Likewise.
43055         * modules/vsnprintf (Depends-on): Likewise.
43056         * modules/vsprintf-posix (Depends-on): Likewise.
43057         * modules/xvasprintf (Depends-on): Likewise.
43058         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
43059         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
43060         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
43061         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
43062         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
43063         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
43064         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
43065         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
43066         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
43067         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
43068         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
43069         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
43070         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
43071         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
43072         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
43073         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
43074         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
43075         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
43076         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
43077         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
43078         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
43079         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
43080         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
43081         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
43082         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
43083         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
43084         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
43085         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
43086         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
43087         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
43088         * MODULES.html.sh: Remove EOVERFLOW.
43089         * NEWS: Mention the change.
43090
43091 2008-09-13  Bruno Haible  <bruno@clisp.org>
43092
43093         * modules/errno-tests: New file.
43094         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
43095
43096         * lib/errno.in.h: New file.
43097         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
43098         * modules/errno: New file.
43099         * doc/posix-headers/errno.texi: Update documentation.
43100         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
43101
43102 2008-09-13  Bruno Haible  <bruno@clisp.org>
43103
43104         * tests/test-poll.c: Use #if for native Windows, rather than testing
43105         __MSVCRT__.
43106
43107 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43108             Bruno Haible  <bruno@clisp.org>
43109
43110         * lib/glob.c: Don't include <pwd.h> on native Windows.
43111         (WINDOWS32): New macro.
43112         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
43113
43114 2008-09-13  Bruno Haible  <bruno@clisp.org>
43115
43116         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
43117         (ETIMEDOUT): Remove macro.
43118         (glthread_cond_timedwait_multithreaded): New declaration.
43119         (glthread_cond_timedwait): Use it.
43120         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
43121         (glthread_cond_timedwait_multithreaded): New function.
43122
43123 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43124
43125         * modules/poll-tests: Do not check for io.h.
43126         * tests/test-poll.c: Check for __MSVCRT__ instead.
43127
43128 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43129
43130         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
43131         * modules/poll-tests: Add inet_pton, stdbool, sockets.
43132         * tests/test-poll.c: Use them.  Use _pipe on Windows.
43133
43134 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
43135
43136         * modules/poll-tests: New.
43137         * tests/test-poll.c: New.
43138
43139 2008-09-12  Eric Blake  <ebb9@byu.net>
43140
43141         frexp: test for NetBSD failure on -0.0
43142         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
43143         not all, bugs from NetBSD 3.0 have been fixed.
43144         * doc/posix-functions/frexp.texi (frexp): Document bug.
43145         Reported by Thomas Klausner.
43146
43147         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
43148         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
43149         literal -0.0.
43150         Reported by Jonathan C. Patschke <jp@centtech.com>.
43151
43152 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43153
43154         * lib/glthread/cond.h: Use dummy implementation also if
43155         USE_WIN32_THREADS.
43156
43157 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43158
43159         * modules/fnmatch-posix (License): Change to LGPLv2+.
43160         * modules/fnmatch-gnu (License): Likewise.
43161
43162 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43163
43164         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
43165
43166 2008-09-11  Jim Meyering  <meyering@redhat.com>
43167
43168         * users.txt: Add gtk-vnc.
43169
43170 2008-09-08  Simon Josefsson  <simon@josefsson.org>
43171
43172         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
43173         rotate amounts.
43174
43175         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
43176         required for 16-bit and 8-bit rotates.
43177         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
43178         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
43179         UINT8_MAX instead of hard-coded constants.
43180         Suggested by Paul Eggert.
43181
43182 2008-09-07  Bruno Haible  <bruno@clisp.org>
43183
43184         * tests/test-striconveh.c (main): Check behaviour when converting from
43185         UTF-7.
43186
43187         Make striconveh work better with stateful encodings.
43188         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
43189         that iconv does not increment the inptr when returning -1/EINVAL.
43190
43191 2008-09-07  Bruno Haible  <bruno@clisp.org>
43192
43193         * build-aux/config.rpath: Update according to libtool-2.2.6.
43194         * build-aux/config.libpath: Likewise.
43195
43196 2008-09-06  Bruno Haible  <bruno@clisp.org>
43197
43198         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
43199         * lib/freadptr.c (freadptr): Likewise.
43200         * lib/freadseek.c (freadptrinc): Likewise.
43201         Reported by Simon Josefsson.
43202
43203 2008-09-06  Bruno Haible  <bruno@clisp.org>
43204
43205         * modules/freadptr (License): Change to LGPLv2+.
43206         * modules/freadseek (License): Likewise.
43207         Suggested by Eric Blake.
43208
43209         * modules/memchr2 (License): Change to LGPLv2+.
43210         Approved by Eric Blake.
43211
43212 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43213             Bruno Haible  <bruno@clisp.org>
43214
43215         Make gnulib-tool work with native 'sed' on AIX.
43216         * gnulib-tool (sed_noop): New variable.
43217         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
43218         func_add_or_update, func_create_testdir): Use it to initialize sed
43219         script variables.
43220         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
43221
43222 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
43223             Bruno Haible  <bruno@clisp.org>
43224
43225         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
43226         also works after #include directives.
43227
43228 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
43229
43230         getdate.y: reject an out-of-range timezone value
43231         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
43232         the range [-24...+24].  When specified with only one or two digits,
43233         * tests/test-getdate.c: Tests for the fix.
43234         * doc/getdate.texi: Document this change.
43235
43236 2008-09-03  Bruno Haible  <bruno@clisp.org>
43237
43238         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
43239
43240 2008-09-02  Simon Josefsson  <simon@josefsson.org>
43241
43242         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
43243         <bruce.korb@gmail.com> with ideas from Ben Pfaff
43244         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
43245         Blake <ebb9@byu.net>.
43246
43247         * tests/test-bitrotate.c: Add more test vectors.
43248
43249 2008-09-02  Eric Blake  <ebb9@byu.net>
43250
43251         vasnprintf-posix: handle large precision via %.*d
43252         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
43253         when handling it ourselves.
43254         * tests/test-vasnprintf-posix.c (test_function): Add test.
43255         * tests/test-snprintf-posix.h (test_function): Likewise.
43256         * tests/test-sprintf-posix.h (test_function): Likewise.
43257         * tests/test-vasprintf-posix.c (test_function): Likewise.
43258         Reported by Alain Guibert.
43259
43260 2008-09-01  Eric Blake  <ebb9@byu.net>
43261
43262         c-stack: make configure-time check more robust
43263         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
43264         successful sigaction call.
43265         Reported by Tom G. Christensen.
43266
43267 2008-09-01  Bruno Haible  <bruno@clisp.org>
43268
43269         New module 'findprog-lgpl'.
43270         * modules/findprog-lgpl: New file.
43271         * lib/findprog-lgpl.c: New file.
43272         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
43273         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
43274         to decide whether to use strdup or xstrdup, concatenated_filename or
43275         xconcatenated_filename.
43276
43277 2008-09-01  Bruno Haible  <bruno@clisp.org>
43278
43279         Split module 'concat-filename' into 'concat-filename' (LGPL) and
43280         'xconcat-filename' (GPL).
43281         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
43282         (License): Change to LGPLv2+.
43283         * modules/xconcat-filename: New file.
43284         * lib/concat-filename.h (concatenated_filename): Change specification.
43285         (xconcatenated_filename): New declaration.
43286         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
43287         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
43288         memory situations.
43289         * lib/xconcat-filename.c: New file.
43290         * NEWS: Mention the change.
43291         * lib/findprog.c: Include concat-filename.h, not filename.h.
43292         (find_in_path): Use xconcatenated_filename instead of
43293         concatenated_filename.
43294         * lib/javacomp.c: Include concat-filename.h, not filename.h.
43295         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
43296         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
43297         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
43298         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
43299         instead of concatenated_filename.
43300         * lib/javaexec.c: Include concat-filename.h, not filename.h.
43301         (execute_java_class): Use xconcatenated_filename instead of
43302         concatenated_filename.
43303         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
43304         * modules/javacomp (Depends-on): Likewise.
43305         * modules/javaexec (Depends-on): Likewise.
43306
43307 2008-09-01  Bruno Haible  <bruno@clisp.org>
43308
43309         Split module 'filename' into 'filename' and 'concat-filename'.
43310         * modules/filename: Keep only lib/filename.h.
43311         (License): Change to LGPLv2+.
43312         * modules/concat-filename: New file, extracted from modules/filename.
43313         * lib/filename.h (concatenated_filename): Remove declaration.
43314         * lib/concat-filename.h: New file, extracted from lib/filename.h.
43315         * lib/concat-filename.c: Include concat-filename.h.
43316         * NEWS: Mention the change.
43317
43318 2008-09-01  Simon Josefsson  <simon@josefsson.org>
43319
43320         * lib/bitrotate.h (rotl8, rotr8): Add.
43321
43322         * modules/bitrotate (configure.ac): Need
43323         AC_REQUIRE([AC_C_INLINE]).
43324         (Description): Mention stdint.h.  Reported by Bruno Haible
43325         <bruno@clisp.org>.
43326
43327         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
43328         Paolo Bonzini <bonzini@gnu.org>.
43329
43330 2008-08-31  Bruno Haible  <bruno@clisp.org>
43331
43332         Assume Solaris specific bi-arch conventions on Solaris systems.
43333         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
43334         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
43335         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
43336         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
43337         like acl_libdirstem.
43338         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
43339         acl_libdirstem.
43340         * NEWS: Mention the change.
43341         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
43342
43343 2008-08-31  Jim Meyering  <meyering@redhat.com>
43344
43345         * lib/strftime.h: Add comments describing the two added arguments.
43346
43347         remove duplicate #include directives
43348         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
43349         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
43350
43351 2008-08-31  Bruno Haible  <bruno@clisp.org>
43352
43353         New module 'sigpipe-die'.
43354         * modules/sigpipe-die: New file.
43355         * lib/sigpipe-die.h: New file.
43356         * lib/sigpipe-die.c: New file.
43357         * MODULES.html.sh (Signal handling): Add sigpipe-die.
43358
43359 2008-08-31  Bruno Haible  <bruno@clisp.org>
43360
43361         Don't override previously installed signal handlers.
43362         * lib/fatal-signal.c (saved_sigactions): New variable.
43363         (uninstall_handlers): Reset the signal to the saved handler, not
43364         to SIG_DFL (except when ignored).
43365         (install_handlers): Save the previous handlers.
43366
43367 2008-08-30  Bruno Haible  <bruno@clisp.org>
43368
43369         * gnulib-tool (func_reset_sigpipe): New function.
43370         (func_get_automake_snippet, func_modules_transitive_closure,
43371         func_import): Invoke it before a join command that reads from stdin,
43372         to avoid "echo: write error: Broken pipe" error messages on stderr.
43373         Reported by Sam Steingold <sds@gnu.org>.
43374
43375 2008-08-30  Bruno Haible  <bruno@clisp.org>
43376
43377         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
43378         Code copied from m4/open.m4.
43379         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
43380         access and the filename ends in a slash. Code copied from lib/open.c.
43381         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
43382         * tests/test-fopen.c (main): Check against bug with trailing slash.
43383
43384 2008-08-29  Bruno Haible  <bruno@clisp.org>
43385
43386         Avoid some "gcc -pedantic" warnings.
43387         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
43388         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
43389         * lib/dirent.in.h: Likewise.
43390         * lib/fcntl.in.h: Likewise.
43391         * lib/float.in.h: Likewise.
43392         * lib/iconv.in.h: Likewise.
43393         * lib/inttypes.in.h: Likewise.
43394         * lib/locale.in.h: Likewise.
43395         * lib/math.in.h: Likewise.
43396         * lib/netinet_in.in.h: Likewise.
43397         * lib/search.in.h: Likewise.
43398         * lib/signal.in.h: Likewise.
43399         * lib/stdarg.in.h: Likewise.
43400         * lib/stdint.in.h: Likewise.
43401         * lib/stdio.in.h: Likewise.
43402         * lib/stdlib.in.h: Likewise.
43403         * lib/string.in.h: Likewise.
43404         * lib/strings.in.h: Likewise.
43405         * lib/sys_select.in.h: Likewise.
43406         * lib/sys_socket.in.h: Likewise.
43407         * lib/sys_stat.in.h: Likewise.
43408         * lib/sys_time.in.h: Likewise.
43409         * lib/sysexits.in.h: Likewise.
43410         * lib/time.in.h: Likewise.
43411         * lib/unistd.in.h: Likewise.
43412         * lib/wchar.in.h: Likewise.
43413         * lib/wctype.in.h: Likewise.
43414         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
43415         * modules/fchdir (Makefile.am): Likewise.
43416         * modules/fcntl (Makefile.am): Likewise.
43417         * modules/float (Makefile.am): Likewise.
43418         * modules/iconv_open (Makefile.am): Likewise.
43419         * modules/inttypes (Makefile.am): Likewise.
43420         * modules/locale (Makefile.am): Likewise.
43421         * modules/math (Makefile.am): Likewise.
43422         * modules/netinet_in (Makefile.am): Likewise.
43423         * modules/search (Makefile.am): Likewise.
43424         * modules/signal (Makefile.am): Likewise.
43425         * modules/stdarg (Makefile.am): Likewise.
43426         * modules/stdint (Makefile.am): Likewise.
43427         * modules/stdio (Makefile.am): Likewise.
43428         * modules/stdlib (Makefile.am): Likewise.
43429         * modules/string (Makefile.am): Likewise.
43430         * modules/strings (Makefile.am): Likewise.
43431         * modules/sys_select (Makefile.am): Likewise.
43432         * modules/sys_socket (Makefile.am): Likewise.
43433         * modules/sys_stat (Makefile.am): Likewise.
43434         * modules/sys_time (Makefile.am): Likewise.
43435         * modules/sysexits (Makefile.am): Likewise.
43436         * modules/time (Makefile.am): Likewise.
43437         * modules/unistd (Makefile.am): Likewise.
43438         * modules/wchar (Makefile.am): Likewise.
43439         * modules/wctype (Makefile.am): Likewise.
43440         Reported by Reuben Thomas <rrt@sc3d.org>.
43441
43442 2008-08-29  Bruno Haible  <bruno@clisp.org>
43443
43444         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
43445         any more.
43446
43447 2008-08-29  Simon Josefsson  <simon@josefsson.org>
43448
43449         * MODULES.html.sh (Misc): Add bitrotate.
43450
43451         * modules/bitrotate: New file.
43452
43453         * lib/bitrotate.h: New file.
43454
43455         * modules/bitrotate-tests: New file.
43456
43457         * tests/test-bitrotate.c: New file.
43458
43459         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
43460         on the bitrotate module.
43461
43462         * lib/arctwo.c: Use new bitrotate module.
43463
43464 2008-08-29  Jim Meyering  <meyering@redhat.com>
43465
43466         bootstrap: merge changes from coreutils
43467         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
43468         of copied files.  Remove a kludge, now that this is fixed.
43469         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
43470         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
43471         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
43472
43473 2008-08-29  Bruno Haible  <bruno@clisp.org>
43474
43475         * MODULES.html.sh: Remove --cvs-urls option.
43476
43477 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
43478
43479         maint.mk: adjust to file name change
43480         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
43481
43482 2008-08-28  Jim Meyering  <meyering@redhat.com>
43483
43484         * modules/getndelim2 (License): Relicense to LGPLv2+.
43485         Approved by Richard Stallman for the version of 1995, and by
43486         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
43487
43488 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
43489
43490         * lib/getdelim.c (flockfile, funlockfile): Make all of them
43491         dummy if one is not available.  Do not touch them if
43492         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
43493         (getc_maybe_unlocked): New.
43494         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
43495
43496 2008-08-26  Eric Blake  <ebb9@byu.net>
43497
43498         doc/INSTALL: resync from autoconf
43499         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
43500         (INSTALL_PRELUDE): Delete; this is done more efficiently by
43501         moving...
43502         * install.texi [!autoconf]: ...here.  Resync from autoconf.
43503         * INSTALL: Regenerate.
43504         * INSTALL.ISO: New file.
43505         * INSTALL.UTF-8: Likewise.
43506
43507 2008-08-26  Jim Meyering  <meyering@redhat.com>
43508
43509         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
43510         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
43511         these definitions conditional, so that they may be overridden, too.
43512
43513 2008-08-26  Bruno Haible  <bruno@clisp.org>
43514
43515         Generate INSTALL file variants with prettier quotes.
43516         * doc/Makefile (INSTALL_PRELUDE): New macro.
43517         (INSTALL): Use it.
43518         (INSTALL.ISO, INSTALL.UTF-8): New rules.
43519
43520 2008-08-26  Bruno Haible  <bruno@clisp.org>
43521
43522         Run makeinfo in an English locale.
43523         * doc/Makefile (MAKEINFO): New variable.
43524
43525 2008-08-26  Bruno Haible  <bruno@clisp.org>
43526
43527         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
43528         Suggested by Eric Blake.
43529
43530 2008-08-25  Bruno Haible  <bruno@clisp.org>
43531
43532         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
43533
43534 2008-08-25  Eric Blake  <ebb9@byu.net>
43535
43536         c-stack: test that stack overflow can be caught
43537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
43538         that platform allows handling stack overflow; at least OS/2 EMX
43539         has sigaltstack, but crashes before transferring control to
43540         handler on stack overflow.
43541         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
43542         check for HAVE_STACK_OVERFLOW_HANDLING.
43543         Reported by Elbert Pol.
43544
43545 2008-08-25  Bruno Haible  <bruno@clisp.org>
43546
43547         * doc/posix-functions/strftime.texi: Fix description of strftime
43548         module.
43549
43550 2008-08-24  Bruno Haible  <bruno@clisp.org>
43551
43552         * tests/uniwidth/test-uc_width2.c: New file.
43553         * tests/uniwidth/test-uc_width2.sh: New file.
43554         * modules/uniwidth/width-tests (Files): Add the new files.
43555         (TESTS): Add uniwidth/test-uc_width2.sh.
43556         (TESTS_ENVIRONMENT): New variable.
43557         (check_PROGRAMS): Add test-uc_width2.
43558         (test_uc_width2_SOURCES): New variable.
43559
43560         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
43561         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
43562         not 0x00AB.
43563         Reported by Alexander V. Lukyanov <lav@netis.ru>.
43564
43565 2008-08-22  Eric Blake  <ebb9@byu.net>
43566
43567         test-lock, test-tls: mention why a test is skipped
43568         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
43569         skipped.
43570         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
43571
43572         count-one-bits: relax license
43573         * modules/count-one-bits (License): Relicense to LGPLv2+.
43574         Suggested by Ludovic Courtès, approved by Ben Pfaff.
43575
43576 2008-08-22  Andreas Schwab  <schwab@suse.de>
43577
43578         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
43579         Remove spurious space in assignment.
43580
43581 2008-08-21  Simon Josefsson  <simon@josefsson.org>
43582
43583         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
43584         Paul Eggert <eggert@CS.UCLA.EDU>.
43585
43586 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
43587
43588         * modules/gettext: Add m4/threadlib.m4.
43589
43590 2008-08-19  Eric Blake  <ebb9@byu.net>
43591
43592         test-c-stack: fix compilation failure on FreeBSD 5.0
43593         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
43594         headers before <sys/resource.h>.
43595         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
43596         the bug.
43597         Reported by Nelson H. F. Beebe.
43598
43599         strverscmp: migrate from "strverscmp.h" to <string.h>
43600         * modules/string (Makefile.am): Add new hooks.
43601         * modules/strverscmp (Files): Remove strverscmp.h.
43602         (Depends-on): Add string.
43603         (configure.ac): Add indicator.
43604         (Include): Mention new header.
43605         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
43606         defaults.
43607         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
43608         results.
43609         * lib/strverscmp.h: Delete.
43610         * lib/string.in.h (strverscmp): Provide declaration, when needed.
43611         * tests/test-strverscmp.c (includes): Adjust client.
43612         * lib/check-version.c (includes): Likewise.
43613         * NEWS: Document the change.
43614
43615         strverscmp: add unit test
43616         * modules/strverscmp-tests: New file.
43617         * tests/test-strverscmp.c: Likewise.
43618
43619 2008-08-19  Simon Josefsson  <simon@josefsson.org>
43620
43621         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
43622         regarding Windows crypto stuff, from Mono.
43623
43624 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
43625
43626         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
43627         if present, for intel RND.  Return error on failures.
43628
43629 2008-08-18  Ben Pfaff  <blp@gnu.org>
43630
43631         gitlog-to-changelog: give better diagnostic for failed pipe-open
43632         * build-aux/gitlog-to-changelog: Improve error message: suggest
43633         that the version of Git may be too old.
43634
43635 2008-08-18  Simon Josefsson  <simon@josefsson.org>
43636
43637         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
43638         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
43639
43640 2008-08-18  Bruno Haible  <bruno@clisp.org>
43641
43642         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
43643         pthread_in_use().
43644
43645 2008-08-18  Bruno Haible  <bruno@clisp.org>
43646
43647         * lib/glthread/threadlib.c: Include <pthread.h>.
43648
43649 2008-08-18  Bruno Haible  <bruno@clisp.org>
43650
43651         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
43652         glthread_recursive_lock_* macros.
43653         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
43654         Fix syntax error.
43655
43656 2008-08-18  Bruno Haible  <bruno@clisp.org>
43657
43658         * lib/glthread/thread.c: Avoid forcing a context switch right after
43659         thread creation.
43660
43661 2008-08-17  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
43664         * lib/glthread/thread.h: Provide Win32 specific implementation.
43665         * modules/thread (Files): Add lib/glthread/thread.c.
43666         (Depends-on): Add lock.
43667         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
43668
43669 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43670
43671         New module 'yield'.
43672         * modules/yield: New file.
43673         * lib/glthread/yield.h: New file.
43674         * m4/yield.m4: New file.
43675         * MODULES.html.sh (Multithreading): Add yield.
43676
43677 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43678
43679         New module 'thread'.
43680         * modules/thread: New file.
43681         * lib/glthread/thread.h: New file.
43682         * m4/thread.m4: New file.
43683         * MODULES.html.sh (Multithreading): Add thread.
43684
43685 2008-08-17  Bruno Haible  <bruno@clisp.org>
43686
43687         * lib/glthread/lock.h: Include <stdlib.h> always.
43688         * lib/glthread/tls.h: Likewise.
43689         * lib/glthread/cond.h: Likewise.
43690
43691 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43692
43693         New module 'cond'.
43694         * modules/cond: New file.
43695         * lib/glthread/cond.h: New file.
43696         * lib/glthread/cond.c: New file.
43697         * m4/cond.m4: New file.
43698         * MODULES.html.sh (Multithreading): Add cond.
43699
43700 2008-08-16  Eric Blake  <ebb9@byu.net>
43701
43702         c-stack: fix regression on Irix 5.3 from 2008-06-21
43703         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
43704         sa_sigaction...
43705         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
43706         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
43707         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
43708         * modules/signal (Makefile.am): Use the value.
43709         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
43710         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
43711         * doc/posix-headers/signal.texi (signal.h): Document this
43712         portability issue.
43713         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
43714         Reported by Tom G. Christensen.
43715
43716 2008-08-17  Bruno Haible  <bruno@clisp.org>
43717
43718         New module 'threadlib'.
43719         * modules/threadlib: New file.
43720         * lib/glthread/threadlib.c: New file, extracted from
43721         lib/glthread/lock.c.
43722         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
43723         functions.
43724         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
43725         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
43726         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
43727         macros.
43728         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
43729         (gl_DISABLE_THREADS): Remove macro.
43730         * modules/lock (Files): Remove build-aux/config.rpath.
43731         (Depends-on): Remove havelib. Add threadlib.
43732         (configure.ac-early): Remove section.
43733         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
43734         * modules/tls (Depends-on): Remove lock. Add threadlib.
43735         (Link): New section, copied from threadlib.
43736         * MODULES.html.sh (Multithreading): Add threadlib.
43737
43738 2008-08-14  Bruno Haible  <bruno@clisp.org>
43739
43740         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
43741         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
43742         glthread_rwlock_unlock, glthread_rwlock_destroy,
43743         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
43744         glthread_recursive_lock_destroy): Define as macros always.
43745         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
43746         glthread_lock_lock.
43747         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
43748         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
43749         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
43750         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
43751         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
43752         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
43753         (glthread_recursive_lock_lock_func): Renamed from
43754         glthread_recursive_lock_lock.
43755         (glthread_recursive_lock_unlock_func): Renamed from
43756         glthread_recursive_lock_unlock.
43757         (glthread_recursive_lock_destroy_func): Renamed from
43758         glthread_recursive_lock_destroy.
43759
43760 2008-08-14  Bruno Haible  <bruno@clisp.org>
43761
43762         * lib/glthread/lock.h: Renamed from lib/lock.h.
43763         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
43764         * lib/glthread/tls.h: Renamed from lib/tls.h.
43765         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
43766         * lib/fstrcmp.c: Update includes.
43767         * lib/strsignal.c: Update includes.
43768         * modules/lock (Files, Makefile.am): Update.
43769         (Include): Change to "glthread/lock.h".
43770         * modules/tls (Files, Makefile.am): Update.
43771         (Include): Change to "glthread/tls.h".
43772         * tests/test-lock.c: Update includes.
43773         * tests/test-tls.c: Update includes.
43774         * NEWS: Mention the renamed header files.
43775
43776 2008-08-11  Jim Meyering  <meyering@redhat.com>
43777
43778         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
43779
43780 2008-08-11  Eric Blake  <ebb9@byu.net>
43781
43782         test-c-stack: avoid C99-ism
43783         * tests/test-c-stack.c (main): Fix whitespace, move declaration
43784         before statement.
43785         Reported by Alain Guibert.
43786
43787 2008-08-10  Jim Meyering  <meyering@redhat.com>
43788
43789         ensure that return value of uinttostr et al are not ignored
43790         * lib/inttostr.h (__GNUC_PREREQ): Define.
43791         (__attribute_warn_unused_result__): Define.
43792         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
43793
43794 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
43795
43796         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
43797         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
43798
43799 2008-08-07  Jim Meyering  <meyering@redhat.com>
43800
43801         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
43802
43803         * modules/mkstemp (License): Relicense under LGPLv2+.
43804         * modules/tempname (License): Likewise.
43805
43806 2008-08-06  Bruno Haible  <bruno@clisp.org>
43807
43808         * lib/poll.c (poll): Further micro-optimization.
43809
43810 2008-08-06  Jim Meyering  <meyering@redhat.com>
43811
43812         inet_pton.c: use locale-independent tolower
43813         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
43814         (inet_pton6): Use c_tolower rather than tolower.
43815         * modules/inet_pton (Depends-on): Add c-ctype.
43816
43817 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
43818
43819         * lib/poll.c (poll): Avoid division when timeout is 0, cache
43820         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
43821
43822 2008-08-06  Jim Meyering  <meyering@redhat.com>
43823
43824         * modules/inet_pton (License): Relicense under LGPLv2+.
43825
43826 2008-08-03  Bruno Haible  <bruno@clisp.org>
43827
43828         Additional non-aborting API for lock and tls.
43829         * lib/lock.h: Include <errno.h>.
43830         (glthread_lock_init): New macro/function.
43831         (gl_lock_init): Define as wrapper around glthread_lock_init.
43832         (glthread_lock_lock): New macro/function.
43833         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
43834         (glthread_lock_unlock): New macro/function.
43835         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
43836         (glthread_lock_destroy): New macro/function.
43837         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
43838         (glthread_rwlock_init): New macro/function.
43839         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
43840         (glthread_rwlock_rdlock): New macro/function.
43841         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
43842         (glthread_rwlock_wrlock): New macro/function.
43843         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
43844         (glthread_rwlock_unlock): New macro/function.
43845         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
43846         (glthread_rwlock_destroy): New macro/function.
43847         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
43848         (glthread_recursive_lock_init): New macro/function.
43849         (gl_recursive_lock_init): Define as wrapper around
43850         glthread_recursive_lock_init.
43851         (glthread_recursive_lock_lock): New macro/function.
43852         (gl_recursive_lock_lock): Define as wrapper around
43853         glthread_recursive_lock_lock.
43854         (glthread_recursive_lock_unlock): New macro/function.
43855         (gl_recursive_lock_unlock): Define as wrapper around
43856         glthread_recursive_lock_unlock.
43857         (glthread_recursive_lock_destroy): New macro/function.
43858         (gl_recursive_lock_destroy): Define as wrapper around
43859         glthread_recursive_lock_destroy.
43860         (glthread_once): New macro/function.
43861         (gl_once): Define as wrapper around glthread_once.
43862         Update function declarations.
43863         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
43864         glthread_rwlock_init. Return error code.
43865         (glthread_rwlock_rdlock_multithreaded): Renamed from
43866         glthread_rwlock_rdlock. Return error code.
43867         (glthread_rwlock_wrlock_multithreaded): Renamed from
43868         glthread_rwlock_wrlock. Return error code.
43869         (glthread_rwlock_unlock_multithreaded): Renamed from
43870         glthread_rwlock_unlock. Return error code.
43871         (glthread_rwlock_destroy_multithreaded): Renamed from
43872         glthread_rwlock_destroy. Return error code.
43873         (glthread_recursive_lock_init_multithreaded): Renamed from
43874         glthread_recursive_lock_init. Return error code.
43875         (glthread_recursive_lock_lock_multithreaded): Renamed from
43876         glthread_recursive_lock_lock. Return error code.
43877         (glthread_recursive_lock_unlock_multithreaded): Renamed from
43878         glthread_recursive_lock_unlock. Return error code.
43879         (glthread_recursive_lock_destroy_multithreaded): Renamed from
43880         glthread_recursive_lock_destroy. Return error code.
43881         (glthread_once_call): Make static.
43882         (glthread_once_multithreaded): Renamed from glthread_once.
43883         * lib/tls.h: Include <errno.h>.
43884         (glthread_tls_key_init): New macro/function.
43885         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
43886         (glthread_tls_set): New macro/function.
43887         (gl_tls_set): Define as wrapper around glthread_tls_set.
43888         (glthread_tls_key_destroy): New macro/function.
43889         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
43890         Update function declarations.
43891         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
43892         glthread_tls_get.
43893         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43894
43895 2008-08-04  Eric Blake  <ebb9@byu.net>
43896
43897         gnumakefile: use space, not TAB, outside of targets
43898         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
43899
43900 2008-08-02  Jim Meyering  <meyering@redhat.com>
43901
43902         getdate.y: avoid locale-dependent date parsing failure
43903         In Turkish locales, getdate would fail to recognize keywords
43904         containing a lowercase "i".  The solution is not to rely on
43905         locale-sensitive case-conversion.
43906         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
43907         (lookup_word): Use c_toupper in place of toupper.
43908         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
43909         Reported by Vefa Bicakci <bicave@superonline.com> in
43910         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
43911         * modules/getdate (Depends-on): Add c-ctype.
43912
43913 2008-08-02  Bruno Haible  <bruno@clisp.org>
43914
43915         * gnulib-tool (func_import): When updating or creating a .gitignore
43916         file, prepend each added line with a slash, and ignore leading slashes
43917         from the existing lines.
43918         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
43919
43920 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43921
43922         Portability fix for GNU make 3.79.1.
43923         * top/GNUmakefile: Avoid 'else COND', which older GNU make
43924         versions do not understand.
43925
43926 2008-08-01  Bruno Haible  <bruno@clisp.org>
43927
43928         Work around bug of HP-UX 10.20 cc with -0.0 literal.
43929         * tests/test-isnanf.h (zero): New variable.
43930         (main): Avoid literal -0.0f.
43931         * tests/test-isnand.h (zero): New variable.
43932         (main): Avoid literal -0.0.
43933         * tests/test-isnanl.h (zero): New variable.
43934         (main): Avoid literal -0.0L.
43935         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
43936         (test_float, test_double, test_long_double): Avoid literals -0.0f,
43937         -0.0, -0.0L.
43938         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
43939         (test_signbitd): Avoid literal -0.0.
43940         (test_signbitl): Avoid literal -0.0L.
43941         * tests/test-ceilf1.c (zero): New variable.
43942         (main): Avoid literal -0.0f.
43943         * tests/test-ceill.c (zero): New variable.
43944         (main): Avoid literal -0.0L.
43945         * tests/test-floorf1.c (zero): New variable.
43946         (main): Avoid literal -0.0f.
43947         * tests/test-floorl.c (zero): New variable.
43948         (main): Avoid literal -0.0L.
43949         * tests/test-roundf1.c (zero): New variable.
43950         (main): Avoid literal -0.0f.
43951         * tests/test-round1.c (zero): New variable.
43952         (main): Avoid literal -0.0.
43953         * tests/test-roundl.c (zero): New variable.
43954         (main): Avoid literal -0.0L.
43955         * tests/test-truncf1.c (zero): New variable.
43956         (main): Avoid literal -0.0f.
43957         * tests/test-trunc1.c (zero): New variable.
43958         (main): Avoid literal -0.0.
43959         * tests/test-truncl.c (zero): New variable.
43960         (main): Avoid literal -0.0L.
43961         * tests/test-frexp.c (zero): New variable.
43962         (main): Avoid literal -0.0.
43963         * tests/test-frexpl.c (zero): New variable.
43964         (main): Avoid literal -0.0L.
43965         * tests/test-ldexpl.c (zero): New variable.
43966         (main): Avoid literal -0.0L.
43967         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43968         (zerod, zerol): New variables.
43969         (test_function): Avoid literals -0.0, -0.0L.
43970         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
43971         (zerod, zerol): New variables.
43972         (test_function): Avoid literals -0.0, -0.0L.
43973         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43974         (zerod, zerol): New variables.
43975         (test_function): Avoid literals -0.0, -0.0L.
43976         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
43977         (zerod, zerol): New variables.
43978         (test_function): Avoid literals -0.0, -0.0L.
43979         * tests/test-strtod.c (zero): New variable.
43980         (main): Avoid literal -0.0.
43981         Reported by Jonathan C. Patschke <jp@centtech.com>.
43982
43983 2008-07-31  Jim Meyering  <meyering@redhat.com>
43984
43985         sha256.h: correct definition of SHA224_DIGEST_SIZE
43986         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
43987         Reported by Paulie Pena IV <paulie4@gmail.com>.
43988         Define as 224 / 8, rather than as a literal.
43989         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
43990         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
43991         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
43992
43993 2008-07-31  Bruno Haible  <bruno@clisp.org>
43994
43995         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
43996         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
43997         Reported by Jonathan Patschke <jp@centtech.com>.
43998
43999 2008-07-31  Bruno Haible  <bruno@clisp.org>
44000
44001         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
44002         Reported by Paolo Bonzini <bonzini@gnu.org>.
44003
44004 2008-07-30  Eric Blake  <ebb9@byu.net>
44005
44006         test-strtod: allow compilation without -lm
44007         * tests/test-strtod.c (main): Avoid link dependence on fabs.
44008         Reported by Dennis Clarke <blastwave@gmail.com>.
44009
44010 2008-07-28  Jim Meyering  <meyering@redhat.com>
44011
44012         bootstrap: work also when there are no .po files in po/
44013         * build-aux/bootstrap (update_po_files): Complete the change
44014         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
44015
44016 2008-07-27  Jim Meyering  <meyering@redhat.com>
44017
44018         * users.txt: Add zile.
44019
44020 2008-07-26  Ben Pfaff  <blp@gnu.org>
44021
44022         Add missing dependencies on new m4/exponent[fdl].m4 files.
44023         * modules/isnanf-nolibm: Add m4/exponentf.m4.
44024         * modules/isnand-nolibm: Add m4/exponentd.m4.
44025         * modules/isnanl-nolibm: Add m4/exponentl.m4.
44026         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
44027         m4/isnan[fdl].m4, because the macros actually used moved.
44028         Reported by Jim Meyering.
44029
44030 2008-07-14  Ben Pfaff  <blp@gnu.org>
44031
44032         Add isinf module.
44033         * lib/isinf.c: New file.
44034         * lib/math.in.h: Define isinf macro if we have decided to replace
44035         it.
44036         * m4/isinf.m4: New file.
44037         * m4/math_h.m4: Initialize and substitute variables for isinf
44038         module.
44039         * modules/isinf: New file.
44040         * modules/isinf-tests: New file.
44041         * modules/math: Add substitutions for new module.
44042         * tests/test-isinf.c: New file.
44043         * doc/posix-functions/isinf.texi: Mention new module.
44044         * MODULES.html.sh: Mention new module.
44045
44046 2008-07-14  Ben Pfaff  <blp@gnu.org>
44047
44048         Factor out some macros for use by additional modules.
44049         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
44050         exponentf.m4.
44051         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
44052         exponentd.m4.
44053         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
44054         file exponentl.m4.
44055         * m4/exponentf.m4: New file.
44056         * m4/exponentd.m4: New file.
44057         * m4/exponentl.m4: New file.
44058         * modules/isnanf: Use new file m4/exponentf.m4.
44059         * modules/isnand: Use new file m4/exponentd.m4.
44060         * modules/isnanl: Use new file m4/exponentl.m4.
44061
44062 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
44063
44064         mktime.c: normalize tp->tm_isdst value to -1/0/1.
44065         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
44066         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
44067         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
44068
44069         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
44070         readlink on platforms without PATH_MAX.
44071
44072 2008-07-21  Eric Blake  <ebb9@byu.net>
44073
44074         Warn, not fail, on stale version.
44075         * top/GNUmakefile (_curr-ver): Tone down previous patch.
44076
44077         Don't allow installation with stale devel version number.
44078         * top/GNUmakefile (_is-install-target): New macro.
44079         (_curr-ver): Forbid installation with stale version number.
44080
44081 2008-07-20  Bruno Haible  <bruno@clisp.org>
44082
44083         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
44084         TESTS_ENVIRONMENT.
44085         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
44086
44087 2008-07-20  Bruno Haible  <bruno@clisp.org>
44088
44089         * lib/c-stack.h (c_stack_action): Add documentation.
44090         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
44091
44092 2008-07-20  Bruno Haible  <bruno@clisp.org>
44093
44094         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
44095         * modules/readlink (License): Likewise.
44096
44097 2008-07-17  Eric Blake  <ebb9@byu.net>
44098
44099         * modules/c-stack (Link): Fix typo.
44100
44101         Make c-stack use libsigsegv, when available.
44102         * modules/c-stack (Depends-on): Add libsigsegv.
44103         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
44104         needed.
44105         * lib/c-stack.c (SIGSTKSZ): Define fallback.
44106         (segv_handler, overflow_handler, c_stack_action)
44107         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
44108         implementation when libsigsegv is available, but only when using
44109         the library is necessary.
44110         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
44111         comment, explaining why XSI check fails on Linux.
44112         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
44113         * tests/test-c-stack2.sh: Tweak skip message.
44114         * NEWS: Document new link-time requirements.
44115
44116 2008-07-16  Eric Blake  <ebb9@byu.net>
44117
44118         c-stack: Expose false positives when not using libsigsegv.
44119         * modules/c-stack-tests (Files): Expand test.
44120         * tests/test-c-stack.c (main): Add means to conditionally trigger
44121         non-overflow SIGSEGV.
44122         * tests/test-c-stack2.sh: New file.
44123
44124 2008-07-14  Bruno Haible  <bruno@clisp.org>
44125
44126         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
44127         Reported by Eric Blake.
44128
44129 2008-07-14  Sam Steingold  <sds@gnu.org>
44130             Bruno Haible  <bruno@clisp.org>
44131
44132         New module libsigsegv.
44133         * modules/libsigsegv: New file.
44134         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
44135         modifications.
44136         * MODULES.html.sh (Signal handling): New section.
44137
44138 2008-07-14  Bruno Haible  <bruno@clisp.org>
44139
44140         * modules/unictype/ctype-* (Description): Add the word "function".
44141         Improves the resulting doc in MODULES.html.
44142
44143 2008-07-12  Ben Pfaff  <blp@gnu.org>
44144
44145         Add longlong module.
44146         * modules/longlong: New file.
44147
44148 2008-07-12  Bruno Haible  <bruno@clisp.org>
44149
44150         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
44151         to empty.
44152
44153 2008-07-10  Ben Pfaff  <blp@gnu.org>
44154
44155         Add isnan module.
44156         * doc/posix-functions/isnan.texi: Mention new module.
44157         * lib/math.in.h: Define isnan macro if we have decided to replace
44158         it.
44159         * m4/isnan.m4: New file.
44160         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
44161         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
44162         also.
44163         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
44164         redundancy.
44165         * m4/math_h.m4: Initialize and substitute variables for isnan
44166         module.
44167         * modules/isnan: New file.
44168         * modules/isnan-tests: New file.
44169         * modules/math: Add substitutions for new module.
44170         * tests/test-isnan.c: New file.
44171         * MODULES.html.sh: Mention new module.
44172
44173 2008-07-10  Ben Pfaff  <blp@gnu.org>
44174
44175         Add isnanf module.
44176         * lib/isnanf.m4: New file.
44177         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
44178         (gl_HAVE_ISNANF_IN_LIBM): New macro.
44179         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
44180         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
44181         * modules/isnanf: New file.
44182         * modules/isnanf-tests: New file.
44183         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
44184         files.
44185         * tests/test-isnanf-nolibm.c: factored most of its contents into
44186         new file tests/test-isnanf.h.
44187         * tests/test-isnanf.h: New file.
44188         * tests/test-isnanf.c: New file.
44189         * MODULES.html.sh: Mention new module.
44190         * doc/glibc-functions/isnanf.texi: Mention new module.
44191
44192 2008-07-10  Ben Pfaff  <blp@gnu.org>
44193
44194         Add isnand module.
44195         * lib/isnand.h: New file.
44196         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
44197         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
44198         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
44199         functionality also.
44200         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
44201         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
44202         (gl_HAVE_ISNAND_IN_LIBM): New macro.
44203         * modules/isnand: New file.
44204         * modules/isnand-tests: New file.
44205         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
44206         files.
44207         * tests/test-isnand-nolibm.c: factored most of its contents into
44208         new file tests/test-isnand.h.
44209         * tests/test-isnand.h: New file.
44210         * tests/test-isnand.c: New file.
44211         * MODULES.html.sh: Mention new module.
44212
44213 2008-07-10  Ben Pfaff  <blp@gnu.org>
44214
44215         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
44216         * lib/isnand.h: Rename lib/isnand-nolibm.h.
44217         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
44218         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
44219         * modules/isnanf-nolibm: Update references to renamed files.
44220         * modules/isnand-nolibm: Likewise.
44221         * modules/isnanf-nolibm-tests: Likewise.
44222         * modules/isnand-nolibm-tests: Likewise.
44223         * lib/frexp.c: Likewise.
44224         * lib/isfinite.c: Likewise.
44225         * lib/signbitd.c: Likewise.
44226         * lib/signbitf.c: Likewise.
44227         * lib/vasnprintf.c: Likewise.
44228         * tests/test-ceilf1.c: Likewise.
44229         * tests/test-ceilf2.c: Likewise.
44230         * tests/test-floorf1.c: Likewise.
44231         * tests/test-floorf2.c: Likewise.
44232         * tests/test-frexp.c: Likewise.
44233         * tests/test-round1.c: Likewise.
44234         * tests/test-round2.c: Likewise.
44235         * tests/test-roundf1.c: Likewise.
44236         * tests/test-strtod.c: Likewise.
44237         * tests/test-trunc1.c: Likewise.
44238         * tests/test-trunc2.c: Likewise.
44239         * tests/test-truncf1.c: Likewise.
44240         * tests/test-truncf2.c: Likewise.
44241         * NEWS: Mention the renamed header files.
44242
44243 2008-07-11  Jim Meyering  <meyering@redhat.com>
44244
44245         vc-list-files: make the last-resort awk code more portable
44246         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
44247         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
44248         does not support it.
44249
44250 2008-07-10  Eric Blake  <ebb9@byu.net>
44251
44252         Work with tar's bootstrap.
44253         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
44254         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
44255         an m4 comment.
44256
44257 2008-07-09  Jim Meyering  <meyering@redhat.com>
44258
44259         posix-shell.m4: fix typo that made this test malfunction
44260         * m4/posix-shell.m4: Remove capitalization in variable name.
44261
44262 2008-07-08  Bruno Haible  <bruno@clisp.org>
44263
44264         * m4/onceonly.m4: Update comments.
44265         Reported by Ben Pfaff <blp@cs.stanford.edu>.
44266
44267 2008-07-04  Jim Meyering  <meyering@redhat.com>
44268
44269         * users.txt: Add vc-dwim.
44270         (bison, coreutils): Use the gitweb URL.
44271
44272 2008-07-03  Jim Meyering  <meyering@redhat.com>
44273
44274         * users.txt: Add libffcall.  From Sam Steingold.
44275
44276 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
44277
44278         getdate.y: do not ignore TZ with relative day, month or year offset
44279         * lib/getdate.y (get_date): Move the tz-handling block to follow the
44280         relative-date-handling, since otherwise, the latter would clobber the
44281         sole output (an updated Start value) of the tz-handling block.
44282         * tests/test-getdate.c: Tests for the fix
44283
44284 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44285
44286         Recognize 'foo_LIBRARIES += libgnu.a'.
44287         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
44288         makefile snippet has already specified an installation location,
44289         also using '+='.
44290
44291 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
44292
44293         getdate.y: factor out common actions
44294         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
44295         Use them in place of open-coded actions.
44296
44297 2008-07-01  Simon Josefsson  <simon@josefsson.org>
44298
44299         Add self-test for getdate module.
44300         * modules/getdate-tests: New file.
44301         * tests/test-getdate.c: New file.
44302
44303 2008-06-29  Bruno Haible  <bruno@clisp.org>
44304
44305         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
44306         .gitignore.
44307         Reported by Sylvain Beucler <beuc@beuc.net>.
44308
44309 2008-06-29  Bruno Haible  <bruno@clisp.org>
44310
44311         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
44312         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
44313
44314 2008-06-29  Bruno Haible  <bruno@clisp.org>
44315
44316         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
44317         EXTRA_DIST.
44318         Reported by Sylvain Beucler <beuc@beuc.net>.
44319
44320 2008-06-26  Jim Meyering  <meyering@redhat.com>
44321
44322         make several modules depend on the "open" module
44323         This provides slightly increased consistency when opening-for-write
44324         the name of a non-directory spelled with a trailing slash.
44325         * modules/chdir-safer: Likewise.
44326         * modules/chown: Likewise.
44327         * modules/clean-temp: Likewise.
44328         * modules/copy-file: Likewise.
44329         * modules/fchdir: Likewise.
44330         * modules/fcntl-safer: Likewise.
44331         * modules/pipe: Likewise.
44332         * modules/utime: Likewise.
44333         Prompted by Eric Blake and Bruno Haible.
44334
44335 2008-06-24  Andreas Schwab  <schwab@suse.de>
44336
44337         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
44338         literals can be used as initializers for global variables.
44339
44340 2008-06-23  Eric Blake  <ebb9@byu.net>
44341
44342         Make gnulib-cache.m4 easier to diff.
44343         * gnulib-tool (func_import): Allow newlines when reading cached
44344         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
44345
44346 2008-06-23  Bruno Haible  <bruno@clisp.org>
44347
44348         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
44349         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
44350         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
44351         m4/signalblocking.m4.
44352         (gl_PREREQ_SIGACTION): Don't invoke it.
44353         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
44354         gl_PREREQ_SIG_HANDLER_H.
44355         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44356         Don't check for sigaction here.
44357
44358 2008-06-23  Bruno Haible  <bruno@clisp.org>
44359
44360         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
44361         (install_handlers): Don't set the SA_RESETHAND flag.
44362
44363 2008-06-23  Bruno Haible  <bruno@clisp.org>
44364
44365         * m4/sigaction.m4: Comment fixes.
44366         * lib/signal.in.h: Likewise.
44367
44368 2008-06-23  Eric Blake  <ebb9@byu.net>
44369
44370         Fix typo.
44371         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
44372
44373         Avoid SA_ namespace.
44374         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
44375         Reported by Ralf Wildenhues.
44376
44377         Avoid test failure due to SA_RESTORER.
44378         * tests/test-sigaction.c (SA_MASK): New macro.
44379         (main): Avoid failing due to extension flags being set.
44380         Reported by Jim Meyering.
44381
44382         Revert use of sig-handler.h in sigprocmask.c.
44383         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
44384         it requires the existence of struct sigaction.
44385         * lib/sigprocmask.c (handler_t): Restore typedef.
44386         (rpl_signal, old_handlers): Use local type.
44387
44388 2008-06-22  Bruno Haible  <bruno@clisp.org>
44389
44390         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
44391         conditionally.
44392         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44393
44394 2008-06-22  Bruno Haible  <bruno@clisp.org>
44395
44396         * doc/posix-functions/siginterrupt.texi: Move note.
44397
44398         * lib/signal.in.h (SA_RESTART): New macro.
44399         * lib/sigaction.c: Update comment.
44400
44401         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
44402
44403         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
44404         (gl_PREREQ_SIGPROCMASK): Invoke it.
44405         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
44406
44407         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
44408
44409         * lib/sigprocmask.c: Update a comment.
44410
44411 2008-06-21  Eric Blake  <ebb9@byu.net>
44412
44413         Use sigaction module rather than signal().
44414         * modules/c-stack (Depends-on): Add sigaction.
44415         * modules/fatal-signal (Depends-on): Likewise.
44416         * modules/nanosleep (Depends-on): Likewise.
44417         * modules/sigprocmask (Files): Add sig-handler.h.
44418         * modules/sigaction (Files): Likewise.
44419         * lib/sig-handler.h (get_handler): New file, suggested by Paul
44420         Eggert.
44421         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
44422         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
44423         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
44424         (init_fatal_signals): Likewise.
44425         * lib/nanosleep.c (rpl_nanosleep): Likewise.
44426         (siginterrupt): Delete fallback.
44427         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
44428         instead.
44429         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
44430         siginterrupt.
44431
44432         New module sigaction, for mingw.
44433         * modules/sigaction: New module...
44434         * modules/sigaction-tests: ...and its test.
44435         * m4/sigaction.m4: New file.
44436         * lib/sigaction.c: Likewise.
44437         * tests/test-sigaction.c: Likewise.
44438         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
44439         * modules/signal (Makefile.am): Likewise.
44440         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
44441         needed.
44442         * doc/posix-headers/signal.texi (signal.h): Mention provided
44443         types.
44444         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
44445         that sigaction is preferable.
44446         * doc/posix-functions/sigaction.texi (sigaction): Mention new
44447         module.
44448         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44449         sigaction.
44450
44451         Improve robustness of sigprocmask by overriding signal.
44452         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
44453         is in use.
44454         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
44455         (SIGKILL, SIGSTOP): Provide fallbacks.
44456         (rpl_signal): Implement.
44457         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
44458         signal can be called inside handlers.
44459
44460         Fix nanosleep module on mingw.
44461         * modules/nanosleep (Depends-on): Add sys_select.
44462         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
44463
44464         Fix licensing of sigprocmask.
44465         * modules/raise (License): Relicense as LGPL.
44466
44467 2008-06-21  Bruno Haible  <bruno@clisp.org>
44468
44469         * lib/propername.c (proper_name_utf8): Don't use the transliterated
44470         result if it contains question marks.
44471         Reported by Michael Geng <linux@michaelgeng.de>.
44472
44473 2008-06-19  Bruno Haible  <bruno@clisp.org>
44474
44475         Fix CVS-ism.
44476         * doc/gnulib.texi: Include updated-stamp.texi.
44477         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
44478         (updated-stamp.texi): New rule.
44479         (gnulib.info): Depend on it.
44480         * doc/.gitignore: Add updated-stamp.texi.
44481         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
44482
44483 2008-06-19  Bruno Haible  <bruno@clisp.org>
44484
44485         * doc/Makefile (gnulib.info): Update and simplify dependencies.
44486         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
44487
44488 2008-06-19  Eric Blake  <ebb9@byu.net>
44489
44490         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
44491         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
44492         Reported by Stepan Kasal.
44493
44494 2008-06-18  Bruno Haible  <bruno@clisp.org>
44495
44496         * lib/fatal-signal.c (init_fatal_signals): Add comment.
44497         Reported by Eric Blake.
44498
44499 2008-06-18  Eric Blake  <ebb9@byu.net>
44500
44501         Work around cygwin 1.5.25 strsignal bug.
44502         * tests/test-strsignal.c: Allow for const char *.
44503         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
44504
44505 2008-06-18  Simon Josefsson  <simon@josefsson.org>
44506
44507         * users.txt: Update URL to article and add author/date
44508         information.
44509
44510 2008-06-17  Bruno Haible  <bruno@clisp.org>
44511
44512         New macro gl_DISABLE_THREADS.
44513         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
44514         if the user did not pass --enable-threads or --disable-threads option.
44515         (gl_DISABLE_THREADS): New macro.
44516         Reported by Eric Blake <ebb9@byu.net>.
44517
44518 2008-06-17  Bruno Haible  <bruno@clisp.org>
44519
44520         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
44521         when the macro ignores it.
44522         Based on a patch by Eric Blake <ebb9@byu.net>.
44523
44524 2008-06-17  Bruno Haible  <bruno@clisp.org>
44525
44526         * modules/tls (License): Change to LGPLv2+.
44527         Reported by Eric Blake.
44528
44529 2008-06-17  Eric Blake  <ebb9@byu.net>
44530
44531         Simplify c-stack prerequisites.
44532         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
44533         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
44534         no longer requires <ucontext.h> to exist.  Optimize setrlimit
44535         check.
44536         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
44537         <sys/resource.h>.
44538
44539         Move c-stack test into testsuite.
44540         * modules/c-stack-tests: New file.
44541         * lib/c-stack.c [DEBUG]: Move test program...
44542         * tests/test-c-stack.c: ...into this new file.  Skip rather than
44543         fail test if sigaltstack is lacking.
44544         * tests/test-c-stack.sh: New driver file.
44545
44546 2008-06-16  Eric Blake  <ebb9@byu.net>
44547
44548         Use raise module consistently.
44549         * modules/fatal-signal (Depends-on): Add raise.
44550         * modules/sigprocmask (Depends-on): Likewise.
44551         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
44552         * lib/sigprocmask.c (sigprocmask): Likewise.
44553         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
44554         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
44555
44556         Fix compliance bug in sigpending.
44557         * lib/sigprocmask.c (sigpending): Return pending array via
44558         parameter, not return value.
44559
44560 2008-06-14  Eric Blake  <ebb9@byu.net>
44561
44562         Improve obstack-printf test code.
44563         * tests/test-obstack-printf.c (test_function): Fix comment, and
44564         simplify usage of obstack_* in macros.  Add a test for coverage.
44565         Reported by Bruno Haible.
44566
44567 2008-06-14  Bruno Haible  <bruno@clisp.org>
44568
44569         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
44570         array size as a constant, not as a const variable.
44571         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
44572         AC_USE_SYSTEM_EXTENSIONS.
44573         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
44574         Test whether the obstack_printf function actually exists.
44575         * modules/obstack-printf (Depends-on): Add extensions.
44576         (Include): Remove obstack.h.
44577         * modules/obstack-printf-posix (Depends-on): Add extensions.
44578         (Include): Remove obstack.h.
44579
44580 2008-06-13  Eric Blake  <ebb9@byu.net>
44581
44582         Add obstack-printf and obstack-printf-posix modules.
44583         * modules/obstack-printf: New file.
44584         * modules/obstack-printf-posix: Likewise.
44585         * MODULES.html.sh (Misc): Mention them.
44586         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44587         Likewise.
44588         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44589         Likewise.
44590         * modules/stdio (Makefile.am): Accomodate new modules.
44591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44592         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
44593         Declare.
44594         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
44595         functions.
44596         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
44597         (gl_REPLACE_OBSTACK_PRINTF): New macros
44598         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
44599         * tests/test-obstack-printf.c: New file.
44600         * modules/obstack-printf-tests: Likewise.
44601         * modules/obstack-printf-posix-tests: Likewise.
44602
44603 2008-06-11  Bruno Haible  <bruno@clisp.org>
44604
44605         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
44606         * lib/open.c: Include errno.h.
44607         (open): Fail when attempting to write to a file that has a trailing
44608         slash.
44609         * tests/test-open.c (main): Test against trailing slash bug.
44610         * doc/posix-functions/open.texi: Mention the trailing slash bug.
44611
44612 2008-06-10  Bruno Haible  <bruno@clisp.org>
44613
44614         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
44615         for $? to work inside the trap command, with various /bin/sh-s.
44616         * tests/test-vc-list-files-cvs.sh: Likewise.
44617
44618 2008-06-10  Bruno Haible  <bruno@clisp.org>
44619
44620         * lib/acl-internal.h: Don't include gettext.h here.
44621         * lib/set-mode-acl.c: Include gettext.h here.
44622         * lib/copy-acl.c: Likewise.
44623
44624 2008-06-10  Bruno Haible  <bruno@clisp.org>
44625
44626         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
44627         * lib/wait-process.c (wait_subprocess): Likewise.
44628         * lib/execute.h (execute): Add termsigp argument.
44629         * lib/execute.c (execute): Likewise.
44630         * lib/csharpcomp.c (compile_csharp_using_pnet,
44631         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
44632         * lib/csharpexec.c (execute_csharp_using_pnet,
44633         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
44634         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
44635         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
44636         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
44637         is_jikes_present): Update.
44638         * lib/javaexec.c (execute_java_class): Update.
44639         * lib/javaversion.c (execute_and_read_line): Update.
44640         * NEWS: Document the changes.
44641         Reported by Eric Blake.
44642
44643 2008-06-10  Eric Blake  <ebb9@byu.net>
44644
44645         Add missing include.
44646         * tests/test-strstr.c (includes): Add <signal.h>.
44647         * tests/test-strcasestr.c (includes): Likewise.
44648         * tests/test-memmem.c (includes): Likewise.
44649
44650 2008-06-10  Bruno Haible  <bruno@clisp.org>
44651
44652         * lib/wait-process.c (wait_subprocess): Add an assertion.
44653
44654 2008-06-10  Bruno Haible  <bruno@clisp.org>
44655
44656         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
44657
44658 2008-06-10  Bruno Haible  <bruno@clisp.org>
44659
44660         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
44661         using alarm().
44662         * tests/test-strcasestr.c (main): Likewise.
44663         * tests/test-strstr.c (main): Likewise.
44664
44665 2008-06-09  Bruno Haible  <bruno@clisp.org>
44666
44667         Work around the Solaris 10 ACE ACLs ABI change.
44668         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
44669         declare if ACL_NO_TRIVIAL is present.
44670         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
44671         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
44672         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
44673         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
44674         define if ACL_NO_TRIVIAL is present.
44675         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
44676         and use the current ABI.
44677         (file_has_acl): Use same #if condition as elsewhere.
44678         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
44679         in use, and use the current ABI.
44680         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
44681         Reported by Jim Meyering.
44682
44683 2008-06-09  Eric Blake  <ebb9@byu.net>
44684
44685         Work around environments that (stupidly) ignore SIGALRM.
44686         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
44687         before using alarm().
44688         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
44689         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
44690         Reported by Ian Beckwith <ianb@erislabs.net>.
44691
44692         Produce autobuild blurb earlier in log.
44693         * modules/autobuild (configure.ac-early): Move AB_INIT here.
44694
44695 2008-06-09  Jim Meyering  <meyering@redhat.com>
44696         and OndÅ™ej Vašík  <ovasik@redhat.com>
44697
44698         utimens.c: correct kernel bug work-around
44699         OndÅ™ej Vašík found that the invalid return value of 280 indicates
44700         failure, not success, and the kernel bug we're trying to work
44701         around affects not just the utimensat call, but also the fallback
44702         futimens call.
44703         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
44704         not success.
44705         [HAVE_FUTIMENS]: Use the same work-around, here.
44706
44707 2008-06-09  Jim Meyering  <meyering@redhat.com>
44708
44709         add more guards around definition of ACE_-related code
44710         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
44711         ALLOW and ACE_OWNER are also defined.
44712
44713 2008-06-08  Bruno Haible  <bruno@clisp.org>
44714
44715         * lib/acl-internal.h: Add me as co-author.
44716         * lib/file-has-acl.c: Likewise.
44717         * lib/set-mode-acl.c: Likewise.
44718         * lib/copy-acl.c: Likewise.
44719
44720 2008-06-08  Bruno Haible  <bruno@clisp.org>
44721
44722         Add support for AIX ACLs.
44723         * lib/acl-internal.h (acl_nontrivial): New declaration.
44724         * lib/file-has-acl.c (acl_nontrivial): New function.
44725         (file_has_acl): Add implementation using AIX 4 ACL API.
44726         * lib/set-mode-acl.c (qset_acl): Likewise.
44727         * lib/copy-acl.c (qcopy_acl): Likewise.
44728
44729 2008-06-08  Bruno Haible  <bruno@clisp.org>
44730
44731         Add support for HP-UX ACLs.
44732         * lib/acl-internal.h (acl_nontrivial): New declaration.
44733         * lib/file-has-acl.c (acl_nontrivial): New function.
44734         (file_has_acl): Add implementation using HP-UX 11 ACL API.
44735         * lib/set-mode-acl.c (qset_acl): Likewise.
44736         * lib/copy-acl.c (qcopy_acl): Likewise.
44737
44738 2008-06-08  Bruno Haible  <bruno@clisp.org>
44739
44740         Add support for Cygwin ACLs.
44741         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
44742         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
44743         the chmod_or_fchmod call.
44744         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
44745
44746 2008-06-08  Bruno Haible  <bruno@clisp.org>
44747
44748         Fix bug with setuid modes in Solaris 10+ code.
44749         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
44750         succeeded, when the mode contains some special bits.
44751
44752 2008-06-08  Bruno Haible  <bruno@clisp.org>
44753
44754         Add support for Solaris 7..10 ACLs.
44755         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
44756         declarations.
44757         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
44758         functions.
44759         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
44760         * lib/set-mode-acl.c (qset_acl): Likewise.
44761         * lib/copy-acl.c (qcopy_acl): Likewise.
44762
44763 2008-06-08  Bruno Haible  <bruno@clisp.org>
44764
44765         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
44766         declaration.
44767         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
44768         (acl_access_nontrivial): Remove MacOS X case.
44769         (file_has_acl): Use acl_extended_nontrivial.
44770         * lib/copy-acl.c (qcopy_acl): Likewise.
44771
44772 2008-06-08  Bruno Haible  <bruno@clisp.org>
44773
44774         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
44775
44776 2008-06-08  Jim Meyering  <meyering@redhat.com>
44777
44778         * modules/acl (Maintainer): Add Bruno Haible.
44779
44780 2008-06-07  Bruno Haible  <bruno@clisp.org>
44781
44782         Improve support for Tru64 ACLs.
44783         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
44784         ACL on OSF/1.
44785
44786 2008-06-07  Bruno Haible  <bruno@clisp.org>
44787
44788         Add support for MacOS X ACLs.
44789         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
44790         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
44791         * lib/set-mode-acl.c (qset_acl): Likewise.
44792         * lib/copy-acl.c (qcopy_acl): Likewise.
44793
44794 2008-06-07  Bruno Haible  <bruno@clisp.org>
44795
44796         Fix memory leak introduced on 2008-05-22.
44797         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
44798         use.
44799
44800 2008-06-07  Bruno Haible  <bruno@clisp.org>
44801
44802         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
44803         to construct an empty ACL.
44804
44805 2008-06-07  Bruno Haible  <bruno@clisp.org>
44806
44807         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
44808         precisely.
44809         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
44810
44811 2008-06-07  Bruno Haible  <bruno@clisp.org>
44812
44813         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
44814         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
44815
44816 2008-06-07  Bruno Haible  <bruno@clisp.org>
44817
44818         * doc/posix-functions/_setjmp.texi: Explain the use of this function
44819         regardless of POSIX.
44820         * doc/posix-functions/_longjmp.texi: Likewise.
44821         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
44822         SystemV platform in this case.
44823
44824 2008-06-06  Eric Blake  <ebb9@byu.net>
44825
44826         Document abort() bugs.
44827         * doc/posix-functions/abort.texi (abort): Mention anomalies.
44828
44829         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
44830         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
44831         sigsetjmp.
44832         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
44833         siglongjmp, but only as a macro.
44834         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
44835         is obsolete.
44836         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
44837
44838         Tweak documentation to cover cygwin argz bugs.
44839         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
44840         argz bug fix; no code change needed since no cygwin releases
44841         occurred between the last fix and the bug being tested.
44842         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
44843         module and recently fixed cygwin bugs.
44844         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
44845         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
44846         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
44847         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
44848         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
44849         Likewise.
44850         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
44851         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
44852         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
44853         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
44854         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
44855         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
44856         Likewise.
44857
44858         Avoid gcc warning on cygwin.
44859         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
44860         !ACL_NO_TRIVIAL]: Avoid unused variable.
44861
44862 2008-06-05  Eric Blake  <ebb9@byu.net>
44863
44864         Be tolerant of UNKNOWN version in gnulib-tool test dir.
44865         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
44866         git-version-gen fails to come up with a version.
44867         Reported by Simon Josefsson.
44868
44869 2008-06-05  Jim Meyering  <meyering@redhat.com>
44870             Paul Eggert  <eggert@cs.ucla.edu>
44871
44872         utimens.c: work around a probable Linux kernel bug
44873         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
44874         appears to be a kernel bug that causes utimensat to return 280
44875         instead of 0, indicating success.
44876
44877 2008-06-04  Bruno Haible  <bruno@clisp.org>
44878
44879         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
44880         2008-06-01 commit.
44881
44882 2008-06-04  Bruno Haible  <bruno@clisp.org>
44883
44884         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
44885         * lib/file-has-acl.c (acl_access_nontrivial): New function.
44886         (file_has_acl): Use it. Save errno afterwards.
44887         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
44888
44889 2008-06-03  Bruno Haible  <bruno@clisp.org>
44890
44891         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
44892         draft code. Simplify #ifs.
44893         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
44894         Put Solaris code after POSIX-draft code. Fix comments regarding
44895         Solaris 10, HP-UX. Mention Cygwin.
44896         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
44897
44898 2008-06-03  Eric Blake  <ebb9@byu.net>
44899
44900         Provide fallback for older kernels.
44901         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
44902         Provide runtime fallback if kernel lacks support.
44903         Reported by Mike Frysinger.
44904
44905 2008-06-02  Bruno Haible  <bruno@clisp.org>
44906
44907         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
44908         it exists.
44909
44910 2008-06-02  Bruno Haible  <bruno@clisp.org>
44911
44912         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
44913         * lib/copy-acl.c (qcopy_acl): Update comment.
44914
44915 2008-06-02  Bruno Haible  <bruno@clisp.org>
44916
44917         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
44918         like ACL APIs.
44919
44920 2008-06-02  Bruno Haible  <bruno@clisp.org>
44921
44922         * tests/test-file-has-acl.sh: Use different code for Cygwin.
44923         * tests/test-set-mode-acl.sh: Likewise.
44924         * tests/test-copy-acl.sh: Likewise.
44925         * tests/test-copy-file.sh: Likewise.
44926
44927 2008-06-02  Bruno Haible  <bruno@clisp.org>
44928
44929         * tests/test-file-has-acl.sh: Remove unused code.
44930
44931 2008-06-01  Bruno Haible  <bruno@clisp.org>
44932
44933         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
44934         (copy_acl): Just a wrapper around qcopy_acl that emits the error
44935         messages.
44936         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
44937
44938 2008-06-01  Bruno Haible  <bruno@clisp.org>
44939
44940         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
44941         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
44942         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
44943         APIs.
44944         * modules/acl-tests (configure.ac): Remove tests now contained in
44945         m4/acl.m4.
44946
44947 2008-06-02  Jim Meyering  <meyering@redhat.com>
44948
44949         announce-gen: use a better key-server host name
44950         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
44951         it may be more consistently reliable.  Suggested by Werner Koch
44952         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
44953
44954 2008-06-01  Bruno Haible  <bruno@clisp.org>
44955
44956         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
44957         Reported by Voroskoi Andras <voroskoi@gmail.com>.
44958
44959 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
44960
44961         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
44962
44963 2008-06-01  Bruno Haible  <bruno@clisp.org>
44964
44965         New ACL tests.
44966         * tests/test-file-has-acl.sh: New file.
44967         * tests/test-file-has-acl.c: New file.
44968         * tests/test-set-mode-acl.sh: New file.
44969         * tests/test-set-mode-acl.c: New file.
44970         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
44971         * tests/test-copy-acl.c: New file.
44972         * modules/acl-tests: New file, based on modules/copy-file-tests.
44973         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
44974         (Depends-on): Add acl-tests.
44975         (configure.ac): Remove checks.
44976         (Makefile.am): Don't create test-sameacls program here any more.
44977
44978 2008-06-01  Bruno Haible  <bruno@clisp.org>
44979
44980         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
44981         * tests/test-sameacls.c: Include progname.h.
44982         (main): Invoke set_program_name. Portability fixes for MacOS X,
44983         Solaris, HP-UX.
44984
44985 2008-06-01  Bruno Haible  <bruno@clisp.org>
44986
44987         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
44988         function.
44989         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
44990
44991 2008-06-01  Bruno Haible  <bruno@clisp.org>
44992
44993         * modules/rpmatch (Depends-on): Add strdup.
44994
44995 2008-06-01  Bruno Haible  <bruno@clisp.org>
44996
44997         * lib/pipe.c: Include unistd-safer.h.
44998         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
44999         * modules/pipe (Depends-on): Add unistd-safer.
45000
45001 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45002
45003         * modules/autobuild (configure.ac): Call AB_INIT.
45004
45005 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45006
45007         * tests/test-getaddrinfo.c: Don't print debug messages by default.
45008         Suggested by Bruno Haible <bruno@clisp.org>.
45009
45010 2008-05-30  Simon Josefsson  <simon@josefsson.org>
45011
45012         * tests/test-base64.c: Cast size_t to unsigned long when invoking
45013         printf.  Use %lu instead of %d.  Reported by Bruno Haible
45014         <bruno@clisp.org>.
45015
45016 2008-05-29  Eric Blake  <ebb9@byu.net>
45017
45018         Prefer new POSIX 200x interfaces over futimesat.
45019         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
45020         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
45021         when available.
45022         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
45023
45024 2008-05-28  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/stpcpy (License): Change to LGPLv2+.
45027         Requested by David Lutterkort <dlutter@redhat.com>.
45028
45029 2008-05-27  Bruno Haible  <bruno@clisp.org>
45030
45031         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
45032         current mingw.
45033         Reported by Jose E. Marchesi <jemarch@gnu.org>.
45034
45035 2008-05-27  Bruno Haible  <bruno@clisp.org>
45036
45037         * modules/iconv_open (Link): New section, from module 'iconv'.
45038         * modules/striconv (Link): Likewise.
45039         * modules/striconveh (Link): Likewise.
45040         * modules/xstriconv (Link): Likewise.
45041         * modules/unicodeio (Link): Likewise.
45042         * modules/propername (Link): Likewise.
45043         Reported by Jim Meyering.
45044
45045 2008-05-26  Jim Meyering  <meyering@redhat.com>
45046
45047         sha256: do not artificially restrict buffer length to be < 2^32
45048         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
45049         uint32_t to size_t.
45050         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
45051         to match.
45052
45053         avoid unaligned access errors, e.g., on sparc
45054         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
45055         direct access through a possibly-unaligned uint64* pointer.
45056         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
45057         direct access through a possibly-unaligned uint32* pointer.
45058         Prompted by this patch from Tom "spot" Callaway:
45059         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
45060
45061         sha512.c: fix typo in comment
45062         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
45063
45064 2008-05-25  Bruno Haible  <bruno@clisp.org>
45065
45066         * lib/set-mode-acl.c: Renamed from lib/acl.c.
45067         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
45068         (Makefile.am): Update lib_SOURCES.
45069
45070 2008-05-25  Bruno Haible  <bruno@clisp.org>
45071
45072         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
45073
45074 2008-05-25  Jim Meyering  <meyering@redhat.com>
45075
45076         useless-if-before-free: freed expr may have white-space differences
45077         * build-aux/useless-if-before-free: Recognize cases in which the
45078         freed expression differs from the tested one in embedded white
45079         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
45080         $1 was used, so we can't make any regexp shy.  Improved tests now
45081         detect this.
45082
45083         useless-if-before-free: accept white space in the expression.
45084         * build-aux/useless-if-before-free: For now, any white space
45085         in the expression must be identical in the free argument.
45086
45087         useless-if-before-free: efficiency tweak
45088         * build-aux/useless-if-before-free: Make the expression-matching
45089         regexp "shy".
45090         Make the *outer* regexp shy, not the expr-matching one.
45091
45092         update code-in-comment to accept cast of free arg
45093         * build-aux/useless-if-before-free: Update regexp.
45094
45095 2008-05-25  Bruno Haible  <bruno@clisp.org>
45096
45097         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
45098         * modules/copy-file-tests (Files, Makefile.am): Update.
45099         * tests/test-copy-file.c (func_test_copy): Update.
45100
45101 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
45102
45103         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
45104
45105 2008-05-23  Bruno Haible  <bruno@clisp.org>
45106
45107         Improve support for ACLs on OSF/1.
45108         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
45109         Remove fallback for unknown flavors of ACLs.
45110
45111 2008-05-22  Bruno Haible  <bruno@clisp.org>
45112
45113         Add support for ACLs on OSF/1.
45114         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
45115         replacements.
45116         (acl_free_text): New macro fallback.
45117         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
45118         acl_free.
45119         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
45120         acl_free_text function. Require AC_C_INLINE.
45121
45122 2008-05-22  Bruno Haible  <bruno@clisp.org>
45123
45124         Make copy_acl work on MacOS X 10.5.
45125         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
45126         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
45127         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
45128         If MODE_INSIDE_ACL, don't assume that every system has the same text
45129         representation for ACLs as FreeBSD.
45130         * lib/copy-acl.c (copy_acl): Add support for platforms with
45131         !MODE_INSIDE_ACL.
45132         * lib/file-has-acl.c (file_has_acl): Likewise.
45133         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
45134         FreeBSD, MacOS X, or IRIX, respectively.
45135
45136 2008-05-22  Bruno Haible  <bruno@clisp.org>
45137
45138         * lib/acl.h: Don't include <sys/acl.h>.
45139         (GETACLCNT): Move fallback to lib/acl-internal.h.
45140         * lib/acl-internal.h: Include <sys/acl.h> here.
45141         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
45142
45143 2008-05-22  Bruno Haible  <bruno@clisp.org>
45144
45145         Split off copy_acl function to separate file.
45146         * lib/copy-acl.c: New file, extracted from lib/acl.c.
45147         * lib/acl.c (copy_acl): Moved function to separate file.
45148         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
45149         * modules/acl (Files): Add lib/copy-acl.c.
45150         (Makefiles.am): Augment lib_SOURCES.
45151
45152 2008-05-22  Bruno Haible  <bruno@clisp.org>
45153
45154         * modules/copy-file-tests: New file.
45155         * tests/test-copy-file.sh: New file.
45156         * tests/test-copy-file.c: New file.
45157         * tests/test-copy-file-sameacls.c: New file.
45158
45159 2008-05-22  Eric Blake  <ebb9@byu.net>
45160
45161         Avoid gcc warning.
45162         * tests/test-memcmp.c (main): Pass NULL indirectly.
45163
45164 2008-05-21  Bruno Haible  <bruno@clisp.org>
45165
45166         Add reference doc about ACLs.
45167         * doc/acl-resources.txt: New file.
45168         * doc/acl-cygwin.txt: New file.
45169
45170 2008-05-21  Bruno Haible  <bruno@clisp.org>
45171
45172         Avoid one more warning from gcc.
45173         * lib/vasnprintf.c (IF_LINT): Update comments.
45174         (VASNPRINTF): Use it also for the 'prefix' array initializer.
45175
45176 2008-05-21  Jim Meyering  <meyering@redhat.com>
45177
45178         avoid a warning from gcc
45179         * lib/vasnprintf.c (IF_LINT): Define.
45180         (scale10_round_decimal_long_double):
45181         Use it to avoid a "may be used uninitialized" warning.
45182         (scale10_round_decimal_double): Likewise.
45183
45184 2008-05-21  Simon Josefsson  <simon@josefsson.org>
45185
45186         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
45187         declared.
45188
45189 2008-05-20  Bruno Haible  <bruno@clisp.org>
45190
45191         * tests/test-memcmp.c (main): Test also the sign of the result. Test
45192         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
45193
45194 2008-05-20  Simon Josefsson  <simon@josefsson.org>
45195
45196         * modules/memcmp-tests: New file.
45197         * tests/test-memcmp.c: New file.
45198
45199 2008-05-19  Bruno Haible  <bruno@clisp.org>
45200
45201         * modules/propername (Notice, configure.ac): Put quoted "..." into
45202         --keyword option.
45203         * lib/propername.h: Update comments accordingly.
45204         Reported by Eric Blake.
45205
45206 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
45207
45208         * modules/getpass-gnu (Depends-on): Add fseeko.
45209
45210 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45211
45212         * modules/base64-tests: New file.
45213
45214 2008-05-19  Bo Borgerson <gigabo@gmail.com>
45215
45216         * lib/base64.c (base64_decode_ctx): If a decode context structure
45217         was passed in use it to ignore newlines.  If a context structure
45218         was _not_ passed in, continue to treat newlines as garbage (this
45219         is the historical behavior).  Formerly base64_decode.
45220         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45221         takes a decode context structure.
45222         * lib/base64.h (base64_decode): Macro for four-argument calls.
45223         (base64_decode_alloc): Likewise.
45224         * lib/base64.c (base64_decode_ctx): If a decode context structure
45225         was passed in use it to ignore newlines.  If a context structure
45226         was _not_ passed in, continue to treat newlines as garbage (this
45227         is the historical behavior).  Formerly base64_decode.
45228         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
45229         takes a decode context structure.
45230         * lib/base64.h (base64_decode): Macro for four-argument calls.
45231         (base64_decode_alloc): Likewise.
45232
45233 2008-05-19  Jim Meyering  <meyering@redhat.com>
45234
45235         avoid a warning from gcc
45236         * lib/trim.c (IF_LINT): Define.
45237         (trim2): Use it to avoid a "may be used uninitialized" warning.
45238
45239         Fix doc typo.
45240         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
45241
45242 2008-05-19  Bruno Haible  <bruno@clisp.org>
45243
45244         * doc/glibc-functions/getpass.texi: Document limits of other
45245         implementations.
45246
45247 2008-05-19  Simon Josefsson  <simon@josefsson.org>
45248             Bruno Haible <bruno@clisp.org>
45249
45250         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
45251
45252 2008-05-18  Bruno Haible  <bruno@clisp.org>
45253
45254         * modules/propername: New file, from GNU gettext.
45255         * lib/propername.h: New file, from GNU gettext.
45256         * lib/propername.c: New file, from GNU gettext.
45257         * MODULES.html.sh (Internationalization functions): Add propername.
45258
45259 2008-05-16  Jim Meyering  <meyering@redhat.com>
45260             Bruno Haible  <bruno@clisp.org>
45261
45262         Avoid some warnings from "gcc -Wshadow".
45263         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
45264
45265 2008-05-15  Eric Blake  <ebb9@byu.net>
45266
45267         Extend previous patch to cygwin 1.7.0.
45268         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
45269         fast implementation in cygwin >= 1.7.0.
45270         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45271         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45272
45273 2008-05-15  Bruno Haible  <bruno@clisp.org>
45274
45275         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
45276         implementation in glibc >= 2.9.
45277         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
45278         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
45279
45280 2008-05-15  Bruno Haible  <bruno@clisp.org>
45281
45282         * MODULES.html.sh (Internationalization functions): Remove linebreak.
45283         (Unicode string functions): Add unilbrk/*.
45284         Reported by Karl Berry.
45285
45286 2008-05-15  Eric Blake  <ebb9@byu.net>
45287
45288         Fix violation of <stdbool.h> replacement in regex.
45289         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
45290         * lib/regexec.c (re_search_internal): Likewise.
45291         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
45292
45293 2008-05-15  Jim Meyering  <meyering@redhat.com>
45294
45295         avoid distracting test output when git or cvs is not found
45296         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
45297         * tests/test-vc-list-files-git.sh: Likewise.
45298
45299 2008-05-15  Eric Blake  <ebb9@byu.net>
45300
45301         Glibc finally accepted the memmem speedup code, bugzilla #5514.
45302         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
45303         glibc version.
45304         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45305         * doc/posix-functions/strstr.texi (strstr): Likewise.
45306         * lib/str-two-way.h (MAX): Sychronize with glibc.
45307
45308 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
45309
45310         * lib/regcomp.c (optimize_utf8): Add a note on why we test
45311         opr.ctx_type.
45312         (calc_first): Initialize constraint field.
45313         (duplicate_node_closure): Use it instead of special casing ANCHORS.
45314         Fix grammar.
45315         (duplicate_node): Merge constraint field for all node types.
45316         (calc_eclosure_iter): Look at constraint field for all node types.
45317         * lib/regex_internal.c (create_cd_newstate): Don't look at
45318         opr.ctx_type.
45319
45320 2008-05-14  Bruno Haible  <bruno@clisp.org>
45321
45322         Help GCC to do better code generation.
45323         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
45324         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
45325         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
45326         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
45327         Declare with attribute 'malloc' if supported.
45328
45329 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
45330
45331         use "echo STR|wc -c" rather than unportable "expr length STR"
45332         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
45333         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
45334
45335 2008-05-14  Jim Meyering  <meyering@redhat.com>
45336
45337         use dd ibs=$n count=1 ... rather than less-portable head -c$n
45338         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
45339         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
45340         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
45341         via Collin Lasse.
45342
45343 2008-05-14  Eric Blake  <ebb9@byu.net>
45344
45345         Avoid quadratic growth in gl_LIBSOURCES.
45346         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
45347         Suggested by Bruno Haible.
45348
45349         Test xmemdup0.
45350         * modules/xmemdup0-tests: New file.
45351         * tests/test-xmemdup0.c: Likewise.
45352
45353 2008-05-13  Eric Blake  <ebb9@byu.net>
45354
45355         Split xmemdup0 into its own module.
45356         * modules/xmemdup0: New file.
45357         * lib/xmemdup0.h: Likewise.
45358         * lib/xmemdup0.c: Likewise.
45359         * MODULES.html.sh (Memory management functions): Add xmemdup0.
45360         * lib/xalloc.h (xmemdup0): Remove.
45361         * lib/xmalloc.c (xmemdup0): Likewise.
45362
45363 2008-05-13  Eric Blake  <ebb9@byu.net>
45364             Bruno Haible  <bruno@clisp.org>
45365
45366         Reduce number of forks required during autoconf.
45367         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
45368         and gl_LIBSOURCES_DIR.
45369         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
45370         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
45371         m4_syscmd per file.
45372         <m4_foreach_w>: Move...
45373         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
45374
45375 2008-05-13  Eric Blake  <ebb9@byu.net>
45376
45377         * gnulib-tool: Fix various comment typos.
45378
45379 2008-05-12  Bruno Haible  <bruno@clisp.org>
45380
45381         Tailor the linebreaking algorithm.
45382         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
45383
45384 2008-05-12  Bruno Haible  <bruno@clisp.org>
45385
45386         Update to Unicode 5.0.0.
45387         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45388         LBP_JV, LBP_JT. Redistribute values.
45389         (unilbrk_table): Change size.
45390         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
45391         Unicode TR#14 rev. 22.
45392         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
45393         LBP_JV, LBP_JT. Redistribute values.
45394         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
45395         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
45396         Update.
45397         * lib/unilbrk/lbrkprop1.h: Regenerated.
45398         * lib/unilbrk/lbrkprop2.h: Regenerated.
45399         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
45400         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
45401         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
45402         Likewise.
45403         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
45404         Likewise.
45405         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
45406         result.
45407         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
45408         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
45409         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
45410         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
45411         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
45412         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
45413
45414 2008-05-11  Bruno Haible  <bruno@clisp.org>
45415
45416         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
45417
45418 2008-05-11  Bruno Haible  <bruno@clisp.org>
45419
45420         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
45421         * modules/unilbrk/gen-lbrk: New file.
45422
45423 2008-05-11  Bruno Haible  <bruno@clisp.org>
45424
45425         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
45426         * m4/sha512.m4 (gl_SHA512): Likewise.
45427
45428 2008-05-11  Jim Meyering  <meyering@redhat.com>
45429
45430         New modules: crypto/sha256, crypto/sha512 (from coreutils)
45431         * modules/crypto/sha256: New file.
45432         * modules/crypto/sha512: Likewise.
45433         * lib/sha256.c: Likewise.
45434         * lib/sha256.h: Likewise.
45435         * lib/sha512.c: Likewise.
45436         * lib/sha512.h: Likewise.
45437         * lib/u64.h: Likewise.
45438         * m4/sha256.m4: Likewise.
45439         * m4/sha512.m4: Likewise.
45440         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
45441
45442 2008-05-10  Bruno Haible  <bruno@clisp.org>
45443
45444         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
45445         (Input/Output <stdio.h>): Add xprintf.
45446         (Signal handling <signal.h>): Add strsignal.
45447         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
45448         (Core language properties): Add func.
45449         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
45450         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
45451         strings.
45452         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
45453         (Input/output): New section.
45454         (File system functions): Add openat-die, stat-macros.
45455         (Networking functions): Add sockets.
45456         (Unicode string functions): Add unictype/*.
45457         (Support for building libraries and executables): Add gperf.
45458         (Support for building documentation): Add agpl-3.0.
45459         (Misc): Add nocrash.
45460
45461 2008-05-10  Bruno Haible  <bruno@clisp.org>
45462
45463         * modules/unictype/gen-ctype: New file.
45464
45465 2008-05-10  Jim Meyering  <meyering@redhat.com>
45466
45467         Make chdir-safer.c more efficient on a system with no symlinks.
45468         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
45469         also if ELOOP is zero.  Suggested by Bruno Haible.
45470
45471         Make chdir-safer.c slightly safer.
45472         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
45473         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
45474
45475         Avoid compile failure on systems without ELOOP (like mingw).
45476         * lib/chdir-safer.c (ELOOP): Define if not already defined.
45477         Reported by Bruno Haible.
45478
45479 2008-05-10  Bruno Haible  <bruno@clisp.org>
45480
45481         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
45482         (is_utf8_encoding): Use a case-insensitive comparison.
45483         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
45484         streq.
45485
45486 2008-05-10  Bruno Haible  <bruno@clisp.org>
45487
45488         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
45489         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
45490         * lib/unilbrk/ulc-common.h (iconv_string_length,
45491         iconv_string_keeping_offsets): Remove declarations.
45492         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
45493         Don't include <iconv.h>, streq.h, xsize.h.
45494         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
45495         conversion.
45496         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
45497         <iconv.h>, streq.h, xsize.h.
45498         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
45499         conversion.
45500         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
45501         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
45502         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
45503         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
45504
45505 2008-05-10  Bruno Haible  <bruno@clisp.org>
45506
45507         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
45508         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
45509
45510         * modules/unilbrk/u32-width-linebreaks-tests: New file.
45511         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
45512
45513         * modules/unilbrk/u16-width-linebreaks-tests: New file.
45514         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
45515
45516         * modules/unilbrk/u8-width-linebreaks-tests: New file.
45517         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
45518
45519         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
45520         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
45521
45522         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
45523         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
45524
45525         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
45526         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
45527
45528         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
45529         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
45530
45531 2008-05-10  Bruno Haible  <bruno@clisp.org>
45532
45533         Split up 'linebreak' module.
45534         * lib/unilbrk.h: New file, based on lib/linebreak.h.
45535         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
45536         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
45537         modifications.
45538         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
45539         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
45540         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
45541         lib/linebreak.c.
45542         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
45543         lib/linebreak.c.
45544         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
45545         lib/linebreak.c.
45546         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
45547         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
45548         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
45549         lib/linebreak.c.
45550         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
45551         lib/linebreak.c.
45552         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
45553         lib/linebreak.c.
45554         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
45555         lib/linebreak.c.
45556         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
45557         lib/linebreak.c.
45558         * modules/unilbrk/base: New file.
45559         * modules/unilbrk/tables: New file.
45560         * modules/unilbrk/u8-possible-linebreaks: New file.
45561         * modules/unilbrk/u16-possible-linebreaks: New file.
45562         * modules/unilbrk/u32-possible-linebreaks: New file.
45563         * modules/unilbrk/ulc-common: New file.
45564         * modules/unilbrk/ulc-possible-linebreaks: New file.
45565         * modules/unilbrk/u8-width-linebreaks: New file.
45566         * modules/unilbrk/u16-width-linebreaks: New file.
45567         * modules/unilbrk/u32-width-linebreaks: New file.
45568         * modules/unilbrk/ulc-width-linebreaks: New file.
45569         * lib/linebreak.h: Remove file.
45570         * lib/linebreak.c: Remove file.
45571         * m4/linebreak.m4: Remove file.
45572         * modules/linebreak: Remove file.
45573         * NEWS: Mention the changes.
45574
45575 2008-05-09  Eric Blake  <ebb9@byu.net>
45576
45577         Add xmemdup0.
45578         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
45579         implementation.
45580         * lib/xmalloc.c (xmemdup0): New C implementation.
45581
45582 2008-05-08  Bruno Haible  <bruno@clisp.org>
45583
45584         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
45585
45586 2008-05-07  Eric Blake  <ebb9@byu.net>
45587
45588         Support cross-compilation of <wctype.h>.
45589         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
45590         AC_CACHE_CHECK.
45591
45592 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
45593
45594         * build-aux/vc-list-files: Add support for bzr.
45595
45596 2008-05-03  Jim Meyering  <meyering@redhat.com>
45597
45598         avoid failed assertion with tight malloc
45599         * tests/test-getndelim2.c: Correct an off-by-one assertion.
45600
45601 2008-05-03  Simon Josefsson  <simon@josefsson.org>
45602
45603         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
45604         are needed from arpa/inet.h.
45605         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
45606         Reported by Bruno Haible.
45607
45608 2008-05-02  Jim Meyering  <meyering@redhat.com>
45609
45610         avoid compilation error on FreeBSD 6
45611         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
45612
45613 2008-05-01  Jim Meyering  <meyering@redhat.com>
45614
45615         useless-if-before-free: correct --help's exit status description
45616         * build-aux/useless-if-before-free (usage): Like grep, exit 0
45617         for one or more matches, etc.  Reported by Bruno Haible.
45618
45619         vc-list-files: make the stand-alone gnulib test work
45620         * modules/vc-list-files-tests (configure.ac):
45621         Define and AC_SUBST abs_aux_dir.
45622         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
45623         $(abs_top_srcdir) to each script and having each of them
45624         duplicate the work of setting PATH, set PATH here, using
45625         the new variable, abs_aux_dir instead.
45626         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
45627         * tests/test-vc-list-files-git.sh: Likewise.
45628         Reported by Bruno Haible.
45629
45630 2008-05-01  Bruno Haible  <bruno@clisp.org>
45631
45632         * lib/getndelim2.c (getndelim2): Fix newsize computation during
45633         reallocation. Rename 'done' to 'found_delimiter'.
45634
45635 2008-05-01  Jim Meyering  <meyering@redhat.com>
45636
45637         vc-list-files: accommodate /bin/sh like the one from Solaris 10
45638         * build-aux/vc-list-files: Use `...`, not $(...).
45639
45640 2008-04-30  Jim Meyering  <meyering@redhat.com>
45641
45642         add tests for vc-list-files
45643         * modules/vc-list-files-tests: New module.
45644         * tests/test-vc-list-files-cvs.sh: New file.
45645         * tests/test-vc-list-files-git.sh: New file.
45646
45647         avoid a warning from gcc
45648         * lib/getndelim2.c (IF_LINT): Define.
45649         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
45650
45651         vc-list-files: work properly with build-aux/cvsu, too
45652         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
45653         to all cvs-based clauses.
45654
45655         vc-list-files: work properly in the CVS+awk case, too
45656         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
45657
45658         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
45659         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
45660         take more than one file argument, so .  Add quotes, just in case $dir
45661         ever contains a shell meta-character.  Prompted by Soren Hansen in
45662         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
45663
45664 2008-04-29  Eric Blake  <ebb9@byu.net>
45665
45666         Optimize getndelim2 to use block operations when possible.
45667         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
45668         freadseek, and memchr2.
45669         * lib/getndelim2.c (getndelim2): Use them for block reads.
45670
45671 2008-04-29  Bruno Haible  <bruno@clisp.org>
45672
45673         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
45674         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45675         * modules/inet_ntop (Depends-on): Add extensions.
45676         * modules/inet_pton (Depends-on): Likewise.
45677         Reported by Simon Josefsson.
45678
45679 2008-04-29  Jim Meyering  <meyering@redhat.com>
45680
45681         When the is more than one match in a block, match all of them.
45682         * build-aux/useless-if-before-free: Iterate through each block
45683         until there are no more matches.
45684
45685         Fix broken useless-if-before-free script.
45686         * build-aux/useless-if-before-free: Fix typo: missing "?" after
45687         the expression to match cast of argument to free-like function.
45688
45689 2008-04-29  Eric Blake  <ebb9@byu.net>
45690
45691         Use new header.
45692         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
45693
45694 2008-04-29  Jim Meyering  <meyering@redhat.com>
45695
45696         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
45697         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
45698         by gnulib to exist and to declare e.g., inet_ntop.
45699         Don't include "inet_ntop.h", now removed.
45700
45701         * m4/arpa_inet_h.m4: Remove trailing blanks.
45702
45703 2008-04-29  Eric Blake  <ebb9@byu.net>
45704
45705         Silence valgrind on safe reads beyond potential array bounds.
45706         * lib/rawmemchr.valgrind: New file.
45707         * lib/strchrnul.valgrind: Likewise.
45708         * modules/rawmemchr (Files): Distribute new file.
45709         * modules/strchrnul (Files): Likewise.
45710         Suggested by Bruno Haible.
45711
45712 2008-04-29  Bruno Haible  <bruno@clisp.org>
45713
45714         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
45715         (inet_ntop, inet_pton): Change portability warning's wording.
45716         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
45717         Invoke gl_CHECK_NEXT_HEADERS.
45718         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
45719         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
45720         set ARPA_INET_H.
45721         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
45722         * modules/arpa_inet (Description): No longer only for systems that
45723         lack it.
45724         (Depends-on): Add include_next.
45725         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
45726         HAVE_ARPA_INET_H.
45727
45728 2008-04-29  Jim Meyering  <meyering@redhat.com>
45729
45730         * modules/mkdir (License): Re-license as LGPLv2+.
45731
45732 2008-04-29  Bruno Haible  <bruno@clisp.org>
45733
45734         * modules/rawmemchr (Maintainer): Set to Eric.
45735         * modules/strchrnul (Maintainer): Likewise.
45736
45737 2008-04-29  Simon Josefsson  <simon@josefsson.org>
45738
45739         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
45740         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
45741
45742         * modules/arpa_inet (arpa/inet.h): Use them.
45743
45744 2008-04-28  Eric Blake  <ebb9@byu.net>
45745
45746         Test getndelim2.
45747         * modules/getndelim2-tests: New file.
45748         * tests/test-getndelim2.c: Likewise.
45749         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
45750         stream.
45751         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
45752
45753         * MODULES.html.sh: Document new module.
45754
45755 2008-04-20  Bruno Haible  <bruno@clisp.org>
45756
45757         * lib/c-stack.c (die): Use raise.
45758         * modules/c-stack (Depends-on): Add raise.
45759
45760 2008-04-28  Bruno Haible  <bruno@clisp.org>
45761
45762         Expect rpmatch to be declared.
45763         * lib/yesno.c (rpmatch): Remove declaration.
45764
45765         Declare rpmatch.
45766         * lib/stdlib.in.h (rpmatch): New declaration.
45767         * lib/rpmatch.c: Include <stdlib.h> first.
45768         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
45769         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
45770         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
45771         HAVE_RPMATCH.
45772         * modules/rpmatch (Depends-on): Add stdlib, extensions.
45773         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
45774         (Include): Set to <stdlib.h>.
45775         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
45776         HAVE_RPMATCH.
45777         * NEWS: Document the change.
45778
45779 2008-04-28  Bruno Haible  <bruno@clisp.org>
45780
45781         Change rpmatch to use nl_langinfo when appropriate.
45782         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
45783         (N_): New macro.
45784         (localized_pattern): New function/macro.
45785         (try): Remove match, nomatch arguments. Copy the pattern into safe
45786         memory before caching it.
45787         (rpmatch): Use localized_pattern. Add translator comments.
45788         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
45789         Suggested by Eric Blake.
45790         * modules/rpmatch (Depends-on): Add stdbool.
45791
45792 2008-04-28  Eric Blake  <ebb9@byu.net>
45793
45794         Add rawmemchr module, matching glibc.
45795         * modules/string (Makefile.am): New indicator.
45796         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
45797         * lib/string.in.h (rawmemchr): Declare when appropriate.
45798         * modules/rawmemchr: New file.
45799         * m4/rawmemchr.m4: Likewise.
45800         * lib/rawmemchr.c: Likewise.
45801         * modules/rawmemchr-tests: Likewise.
45802         * tests/test-rawmemchr.c: Likewise.
45803         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
45804         module.
45805         * modules/strchrnul (Depends-on): Add rawmemchr.
45806         * lib/strchrnul.c (strchrnul): Optimize a corner case.
45807
45808         Whitespace cleanup.
45809         * tests/test-strchrnul.c: Reindent.
45810         * lib/strchrnul.c: Likewise.
45811
45812         Optimize and test strchrnul.
45813         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
45814         * modules/strchrnul-tests: New file.
45815         * tests/test-strchrnul.c: Likewise.
45816
45817         Remove intprops dependency.
45818         * modules/memchr (Depends-on): Remove intprops.
45819         * modules/memrchr (Depends-on): Likewise.
45820         * modules/memchr2 (Depends-on): Likewise.
45821         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
45822         * lib/memrchr.c (__memrchr): Likewise.
45823         * lib/memrchr2.c (memchr2): Likewise.
45824         Reported by Simon Josefsson.
45825
45826 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45827
45828         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
45829         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45830
45831 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45832
45833         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
45834
45835         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
45836
45837         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
45838
45839         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
45840         declarations.
45841         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
45842
45843         * m4/inet_pton.m4: Don't check for header files.
45844
45845         * m4/inet_ntop.m4: Don't check for header files.
45846
45847 2008-04-28  Simon Josefsson  <simon@josefsson.org>
45848
45849         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
45850         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
45851         trigger for cygwin).
45852         Reported by Bruno Haible  <bruno@clisp.org>.
45853
45854 2008-04-28  Bruno Haible  <bruno@clisp.org>
45855
45856         * doc/posix-functions/strdup.texi: Mention mingw problem.
45857
45858 2008-04-27  Bruno Haible  <bruno@clisp.org>
45859
45860         * modules/stat-time-tests (Depends-on): Add sleep.
45861         * tests/test-stat-time.c (force_unlink): New function.
45862         (cleanup): Use it.
45863         (test_mtime): Remove the ctime related tests.
45864         (test_ctime): New function, containing the ctime related tests.
45865         (main): Call test_ctime, except on native Windows platforms.
45866
45867 2008-04-27  Bruno Haible  <bruno@clisp.org>
45868
45869         * lib/rpmatch.c (rpmatch): Add some comments.
45870         Reported by James Youngman <jay@gnu.org>.
45871
45872 2008-04-27  Bruno Haible  <bruno@clisp.org>
45873
45874         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
45875         quiet NaNs.
45876
45877 2008-04-27  Bruno Haible  <bruno@clisp.org>
45878
45879         Make test-yesno.sh work on mingw.
45880         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
45881         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
45882         (main): Set stdin to binary mode.
45883         * modules/yesno-tests (Depends-on): Add binary-io.
45884
45885 2008-04-27  Bruno Haible  <bruno@clisp.org>
45886
45887         Fix 'isfinite' on x86, x86_64, ia64 platforms.
45888         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
45889         argument that lie outside the IEEE 854 domain.
45890         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
45891         (gl_ISFINITE): Use it.
45892         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
45893
45894 2008-04-27  Bruno Haible  <bruno@clisp.org>
45895
45896         Allow local renaming in config.h.
45897         * lib/memrchr.c (memrchr): Don't undefine outside libc.
45898
45899 2008-04-27  Bruno Haible  <bruno@clisp.org>
45900
45901         * lib/memchr.c (__memchr): Change type of 'i'.
45902         * lib/memchr2.c (memchr2): Likewise.
45903
45904 2008-04-26  Eric Blake  <ebb9@byu.net>
45905         and Bruno Haible  <bruno@clisp.org>
45906
45907         Optimize and test memrchr.
45908         * modules/memrchr (Depends-on): Add intprops.
45909         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
45910         * modules/memrchr-tests: New file.
45911         * tests/test-memrchr.c: New file.
45912
45913 2008-04-26  Bruno Haible  <bruno@clisp.org>
45914
45915         Add tentative support for DragonFly BSD.
45916         * lib/stdio-impl.h: Add macros for DragonFly BSD.
45917         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
45918         fp.
45919         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45920         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
45921         * lib/fpurge.c (fpurge): Likewise.
45922         * lib/freadable.c (freaadable): Likewise.
45923         * lib/freadahead.c (freadahead): Likewise.
45924         * lib/freading.c (freading): Likewise.
45925         * lib/freadptr.c (freadptr): Likewise.
45926         * lib/freadseek.c (freadptrinc): Likewise.
45927         * lib/fseeko.c (fseeko): Likewise.
45928         * lib/fseterr.c (fseterr): Likewise.
45929         * lib/fwritable.c (fwritable): Likewise.
45930         * lib/fwriting.c (fwriting): Likewise.
45931
45932 2008-04-26  Bruno Haible  <bruno@clisp.org>
45933
45934         * lib/stdio-impl.h: New file.
45935         * lib/fbufmode.c: Include stdio-impl.h.
45936         (fbufmode): Use fp_, remove redundant #defines.
45937         * lib/fflush.c: Include stdio-impl.h.
45938         (clear_ungetc_buffer): Remove redundant #defines.
45939         * lib/fpurge.c: Include stdio-impl.h.
45940         (fpurge): Remove redundant #defines.
45941         * lib/freadable.c: Include stdio-impl.h.
45942         (freadable): Remove redundant #defines.
45943         * lib/freadahead.c: Include stdio-impl.h.
45944         (freadahead): Remove redundant #defines.
45945         * lib/freading.c: Include stdio-impl.h.
45946         (freading): Remove redundant #defines.
45947         * lib/freadptr.c: Include stdio-impl.h.
45948         (freadptr): Remove redundant #defines.
45949         * lib/freadseek.c: Include stdio-impl.h.
45950         (freadptrinc): Remove redundant #defines.
45951         * lib/fseeko.c: Include stdio-impl.h.
45952         (rpl_fseeko): Remove redundant #defines.
45953         * lib/fseterr.c: Include stdio-impl.h.
45954         (fseterr): Remove redundant #defines.
45955         * lib/fwritable.c: Include stdio-impl.h.
45956         (fwritable: Remove redundant #defines.
45957         * lib/fwriting.c: Include stdio-impl.h.
45958         (fwriting): Remove redundant #defines.
45959         * modules/fbufmode (Files): Add lib/stdio-impl.h.
45960         * modules/fflush (Files): Likewise.
45961         * modules/fpurge (Files): Likewise.
45962         * modules/freadable (Files): Likewise.
45963         * modules/freadahead (Files): Likewise.
45964         * modules/freading (Files): Likewise.
45965         * modules/freadptr (Files): Likewise.
45966         * modules/freadseek (Files): Likewise.
45967         * modules/fseeko (Files): Likewise.
45968         * modules/fseterr (Files): Likewise.
45969         * modules/fwritable (Files): Likewise.
45970         * modules/fwriting (Files): Likewise.
45971
45972 2008-04-26  Bruno Haible  <bruno@clisp.org>
45973
45974         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
45975         restore_seek_optimization, update_fpos_cache): New functions, extracted
45976         from rpl_fflush.
45977         (rpl_fflush): Use them.
45978         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
45979         (gl_REPLACE_FFLUSH): Use it.
45980
45981 2008-04-26  Bruno Haible  <bruno@clisp.org>
45982
45983         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
45984         on Solaris.
45985         * tests/test-xstrtoimax.sh: Likewise.
45986         * tests/test-xstrtoumax.sh: Likewise.
45987         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45988
45989 2008-04-26  Bruno Haible  <bruno@clisp.org>
45990
45991         * modules/memchr-tests: New file.
45992         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
45993
45994 2008-04-26  Eric Blake  <ebb9@byu.net>
45995             Bruno Haible  <bruno@clisp.org>
45996
45997         * lib/memchr.c: Include intprops.h.
45998         (__memchr): Optimize parallel detection of matching bytes. Rename local
45999         variables. Add explanatory comments.
46000
46001 2008-04-26  Bruno Haible  <bruno@clisp.org>
46002
46003         Fix module 'memchr', broken since 2000-10-28.
46004         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
46005
46006 2008-04-26  Bruno Haible  <bruno@clisp.org>
46007
46008         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
46009         comments.
46010
46011 2008-04-25  Eric Blake  <ebb9@byu.net>
46012
46013         Use native fstatat on cygwin 1.7.0.
46014         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
46015         first.
46016
46017 2008-04-23  Eric Blake  <ebb9@byu.net>
46018
46019         Improve memchr2 performance.
46020         * lib/memchr2.c (memchr2): Further optimize parallel detection of
46021         NUL bytes.
46022         * modules/memchr2 (Depends-on): Use intprops.h.
46023
46024 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46025
46026         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
46027         an inline function instead of a CPP macro.  Patch by Ben Pfaff
46028         <blp@cs.stanford.edu>.
46029
46030 2008-04-23  Simon Josefsson  <simon@josefsson.org>
46031
46032         * lib/arpa_inet.in.h: New file.
46033
46034         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
46035         (Makefile.am): Sed in substitute header file.
46036
46037         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
46038         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
46039
46040         * modules/inet_ntop (configure.ac): Use
46041         gl_ARPA_INET_MODULE_INDICATOR.
46042
46043         * modules/inet_pton (configure.ac): Use
46044         gl_ARPA_INET_MODULE_INDICATOR.
46045
46046 2008-04-22  Jim Meyering  <meyering@redhat.com>
46047
46048         * modules/verify (License): Re-license as LGPLv2+.
46049
46050 2008-04-22  Simon Josefsson  <simon@josefsson.org>
46051
46052         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
46053         parameter to void* as per POSIX standard (MinGW uses char*).
46054
46055 2008-04-21  Bruno Haible  <bruno@clisp.org>
46056
46057         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
46058         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
46059         Define to replacements if REPLACE_ISWCNTRL is 1.
46060         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
46061         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
46062         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
46063         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
46064         what it fixes.
46065         * doc/posix-functions/iswalpha.texi: Likewise.
46066         * doc/posix-functions/iswblank.texi: Likewise.
46067         * doc/posix-functions/iswcntrl.texi: Likewise.
46068         * doc/posix-functions/iswdigit.texi: Likewise.
46069         * doc/posix-functions/iswgraph.texi: Likewise.
46070         * doc/posix-functions/iswlower.texi: Likewise.
46071         * doc/posix-functions/iswprint.texi: Likewise.
46072         * doc/posix-functions/iswpunct.texi: Likewise.
46073         * doc/posix-functions/iswspace.texi: Likewise.
46074         * doc/posix-functions/iswupper.texi: Likewise.
46075         * doc/posix-functions/iswxdigit.texi: Likewise.
46076         Reported by Alain Guibert.
46077
46078 2008-04-21  Bruno Haible  <bruno@clisp.org>
46079
46080         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
46081         Patch by Alain Guibert.
46082
46083 2008-04-21  Bruno Haible  <bruno@clisp.org>
46084
46085         Fix test failures on mingw.
46086         * tests/test-xstrtol.c (print_no_progname): New function.
46087         (main): Install it in error_print_progname hook.
46088         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
46089         * tests/test-xstrtoimax.sh: Likewise.
46090         * tests/test-xstrtoumax.sh: Likewise.
46091
46092 2008-04-21  Bruno Haible  <bruno@clisp.org>
46093
46094         Fix test failure on mingw.
46095         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
46096
46097 2008-04-21  Bruno Haible  <bruno@clisp.org>
46098
46099         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
46100         Actually assign a value.
46101
46102 2008-04-20  Bruno Haible  <bruno@clisp.org>
46103
46104         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
46105         take 2.
46106         * lib/canonicalize.c (canonicalize_file_name): Elide if the
46107         'canonicalize-lgpl' module is also used.
46108         * lib/canonicalize-lgpl.c: Undo last change.
46109         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
46110
46111 2008-04-20  Bruno Haible  <bruno@clisp.org>
46112
46113         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
46114         config.h. Provide _mkdir based fallback for mingw.
46115         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
46116         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
46117         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
46118         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
46119         rather than defining mkdir in config.h.
46120         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
46121         (gl_SYS_STAT_H_DEFAULTS): New macro.
46122         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
46123         HAVE_IO_H any more.
46124         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
46125         HAVE_DECL_MKDIR and HAVE_IO_H.
46126
46127 2008-04-20  Bruno Haible  <bruno@clisp.org>
46128
46129         * lib/isapipe.c: Port to native Windows platforms.
46130
46131 2008-04-20  Bruno Haible  <bruno@clisp.org>
46132
46133         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
46134
46135 2008-04-21  Eric Blake  <ebb9@byu.net>
46136
46137         Work around preprocessors that don't handle UINTMAX_MAX.
46138         * lib/memchr2.c (memchr2): Avoid embedded #if.
46139         Reported by Alain Guibert, fix suggested by Bruno Haible.
46140
46141 2008-04-21  Simon Josefsson  <simon@josefsson.org>
46142
46143         * doc/posix-functions/strftime.texi (strftime): Explain better
46144         Windows incompatibility.  Suggested by Micah Cowan
46145         <micah@cowan.name>.
46146
46147 2008-04-20  Bruno Haible  <bruno@clisp.org>
46148
46149         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
46150         unistr/u8-mblen.
46151
46152 2008-04-20  Bruno Haible  <bruno@clisp.org>
46153
46154         Fix test failure on platforms with non-GNU iconv.
46155         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
46156         (U_TO_U8): Use it, rather than u16_to_u8.
46157         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
46158         units at the end of the input string.
46159         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
46160
46161 2008-04-20  Bruno Haible  <bruno@clisp.org>
46162
46163         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
46164         when the resulting length is 0.
46165         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
46166
46167 2008-04-20  Bruno Haible  <bruno@clisp.org>
46168
46169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
46170         works.
46171         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
46172
46173 2008-04-20  Bruno Haible  <bruno@clisp.org>
46174
46175         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
46176         * modules/tsearch-tests (configure.ac): Test for initstate function.
46177
46178 2008-04-20  Bruno Haible  <bruno@clisp.org>
46179
46180         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
46181         for nlink_t if missing.
46182         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
46183
46184 2008-04-19  Bruno Haible  <bruno@clisp.org>
46185
46186         Work around snprintf bug on Linux libc5.
46187         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
46188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
46189         gl_SNPRINTF_SIZE1.
46190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
46191         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
46192         that test failed.
46193         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
46194         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
46195         * modules/snprintf (Files): Add m4/printf.m4.
46196         * modules/vsnprintf (Files): Likewise.
46197         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
46198         * doc/posix-functions/vsnprintf.texi: Likewise.
46199
46200 2008-04-19  Bruno Haible  <bruno@clisp.org>
46201
46202         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
46203         from 0.0058 to less than 10^-7.
46204
46205 2008-04-19  Bruno Haible  <bruno@clisp.org>
46206
46207         Fix rounding when a precision is given.
46208         * lib/vasnprintf.c (is_borderline): New function.
46209         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
46210         9...9x.
46211         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
46212         %e, %g.
46213         * tests/test-vasprintf-posix.c (test_function): Likewise.
46214         * tests/test-snprintf-posix.h (test_function): Likewise.
46215         * tests/test-sprintf-posix.h (test_function): Likewise.
46216         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
46217         * tests/test-printf-posix.h (test_function): Likewise.
46218         * tests/test-printf-posix.output: Update.
46219         Reported by John Darrington <john@darrington.wattle.id.au> via
46220         Ben Pfaff <blp@cs.stanford.edu>.
46221
46222 2008-04-18  Simon Josefsson  <simon@josefsson.org>
46223
46224         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
46225         Suggested by Bruno Haible <bruno@clisp.org>.
46226
46227 2008-04-17  Bruno Haible  <bruno@clisp.org>
46228
46229         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
46230         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
46231         implementation.
46232         Patch by Bruce Merry <bmerry@gmail.com>.
46233
46234 2008-04-17  Simon Josefsson  <simon@josefsson.org>
46235
46236         * doc/posix-functions/strftime.texi (strftime): Mention that %e
46237         doesn't work under Windows.
46238
46239 2008-04-16  Bruno Haible  <bruno@clisp.org>
46240
46241         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
46242         New macros.
46243         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
46244         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
46245         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
46246         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
46247         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
46248         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
46249         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
46250         macros.
46251         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
46252         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
46253         Northern Sotho, Uighur.
46254
46255 2008-04-16  Bruno Haible  <bruno@clisp.org>
46256
46257         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
46258         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
46259         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
46260         Reported by Daniel Bergström <daniel@octocode.com>.
46261
46262 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
46263             Bruno Haible  <bruno@clisp.org>
46264
46265         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
46266         function.
46267         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
46268         New functions, mostly extracted from gl_locale_name_default.
46269         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
46270
46271 2008-04-16  Eric Blake  <ebb9@byu.net>
46272
46273         Adjust strtod detection to catch glibc 2.7 bug.
46274         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
46275         Reported by John Gatewood Ham.
46276
46277 2008-04-16  Bruno Haible  <bruno@clisp.org>
46278
46279         Add tentative support for Linux libc5.
46280         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
46281         * lib/fpurge.c (fpurge): Likewise.
46282         * lib/freadable.c (freadable): Likewise.
46283         * lib/freadahead.c (freadahead): Likewise.
46284         * lib/freading.c (freading): Likewise.
46285         * lib/freadptr.c (freadptr): Likewise.
46286         * lib/freadseek.c (freadptrinc): Likewise.
46287         * lib/fseeko.c (rpl_fseeko): Likewise.
46288         * lib/fseterr.c (fseterr): Likewise.
46289         * lib/fwritable.c (fwritable): Likewise.
46290         * lib/fwriting.c (fwriting): Likewise.
46291         Reported by Alain Guibert <alguibert+bts@free.fr>.
46292
46293 2008-04-15  Bruno Haible  <bruno@clisp.org>
46294
46295         * modules/mathl (configure.ac): Define module indicator.
46296
46297 2008-04-15  Bruno Haible  <bruno@clisp.org>
46298
46299         * lib/logl.c (logl): Remove unused variables.
46300
46301 2008-04-15  Bruno Haible  <bruno@clisp.org>
46302
46303         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
46304         fails.
46305
46306 2008-04-15  Bruno Haible  <bruno@clisp.org>
46307
46308         * lib/trim.c (trim2): Fix argument of isspace() macro.
46309
46310 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
46311
46312         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
46313         to 0.
46314         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
46315
46316 2008-04-14  Bruno Haible  <bruno@clisp.org>
46317
46318         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
46319         AC_LANG_PROGRAM argument.
46320         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
46321         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
46322         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
46323         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
46324         * m4/math_h.m4 (gl_MATH_H): Likewise.
46325         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
46326         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
46327         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
46328         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
46329         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
46330         * m4/regex.m4 (gl_REGEX): Likewise.
46331         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
46332         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
46333         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
46334         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
46335         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
46336         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
46337         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
46338         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
46339
46340 2008-04-14  Jim Meyering  <meyering@redhat.com>
46341
46342         test-strtod: fix typos: s/abs/fabs/
46343         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
46344
46345 2008-04-13  Bruno Haible  <bruno@clisp.org>
46346
46347         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
46348         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
46349         module is also used and while not building the reloc-wrapper.
46350
46351 2008-04-13  Bruno Haible  <bruno@clisp.org>
46352
46353         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
46354
46355 2008-04-13  Bruno Haible  <bruno@clisp.org>
46356
46357         Fix AIX compilation failure introduced on 2008-04-02.
46358         * tests/test-frexp.c (exp): Undefine before redefining.
46359         * tests/test-frexpl.c (exp): Likewise.
46360
46361 2008-04-13  Bruno Haible  <bruno@clisp.org>
46362
46363         Work around a HP-UX stdio bug.
46364         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
46365         * tests/test-ftello.c (main): Likewise.
46366         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
46367         * doc/posix-functions/ftello.texi: Likewise.
46368
46369 2008-04-13  Bruno Haible  <bruno@clisp.org>
46370
46371         Make test-signbit pass on HP-UX/hppa.
46372         * tests/test-signbit.c (minus_zerol): New variable.
46373         (test_signbitl): Use it.
46374
46375 2008-04-13  Bruno Haible  <bruno@clisp.org>
46376
46377         Make truncl work on OSF/1 4.0.
46378         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
46379         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46380         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
46381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
46382         HAVE_DECL_TRUNCL.
46383         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
46384         HAVE_DECL_TRUNCL.
46385         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
46386
46387 2008-04-13  Bruno Haible  <bruno@clisp.org>
46388
46389         * lib/unictype.h: Remove trailing comma from enumeration definitions.
46390
46391 2008-04-13  Bruno Haible  <bruno@clisp.org>
46392
46393         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
46394         expression, so as to avoid HP-UX 11 cc compiler bug.
46395
46396 2008-04-13  Bruno Haible  <bruno@clisp.org>
46397
46398         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
46399
46400 2008-04-13  Bruno Haible  <bruno@clisp.org>
46401
46402         * lib/git-merge-changelog.c: Remove empty declaration outside of
46403         functions.
46404
46405 2008-04-13  Bruno Haible  <bruno@clisp.org>
46406
46407         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
46408
46409 2008-04-13  Bruno Haible  <bruno@clisp.org>
46410
46411         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
46412         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
46413         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
46414         also if it exists but lacks definitions of the SHUT_* macros.
46415         * modules/sys_socket (Description): Update.
46416         Reported by Elbert Pol <e.pol@chello.nl>.
46417
46418 2008-04-13  Bruno Haible  <bruno@clisp.org>
46419
46420         * lib/localcharset.c (OS2): Don't redefine if already defined.
46421         Reported by Elbert Pol <e.pol@chello.nl>.
46422
46423 2008-04-13  Bruno Haible  <bruno@clisp.org>
46424
46425         * lib/binary-io.h [__EMX__]: Include <io.h>.
46426         Reported by Elbert Pol <e.pol@chello.nl>.
46427
46428 2008-04-12  Bruno Haible  <bruno@clisp.org>
46429
46430         * lib/fpucw.h: Enable the definitions also for x86_64.
46431         Needed for NetBSD/x86_64.
46432         Reported by Thomas Klausner <tk@giga.or.at>.
46433
46434 2008-04-12  Bruno Haible  <bruno@clisp.org>
46435
46436         * tests/test-strtod.c: Include isnand.h.
46437         (main): Use isnand instead of isnan.
46438         Reported by Jim Meyering.
46439
46440 2008-04-12  Bruno Haible  <bruno@clisp.org>
46441
46442         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
46443         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
46444
46445 2008-04-12  Jim Meyering  <meyering@redhat.com>
46446
46447         * m4/math_h.m4 (gl_MATH_H): Fix typos.
46448
46449 2008-04-12  Bruno Haible  <bruno@clisp.org>
46450
46451         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
46452         Reported by Elbert Pol <e.pol@chello.nl>.
46453
46454 2008-04-12  Eric Blake  <ebb9@byu.net>
46455
46456         Work around Solaris 10 math.h bug.
46457         * m4/math_h.m4 (gl_MATH_H): Check for bug.
46458         (gl_MATH_H_DEFAULTS): Set up default.
46459         * modules/math (Makefile.am): Replace new indicators.
46460         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
46461         * tests/test-math.c (main): Test this.
46462         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
46463         * doc/posix-headers/math.texi (math.h): Mention bug.
46464         Reported by Nelson H. F. Beebe and Jim Meyering.
46465
46466 2008-04-11  Bruno Haible  <bruno@clisp.org>
46467
46468         Adapt to future versions of Apple GCC.
46469         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
46470         Reported by Peter O'Gorman <peter@pogma.com>.
46471
46472 2008-04-11  Bruno Haible  <bruno@clisp.org>
46473
46474         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
46475
46476 2008-04-11  Bruno Haible  <bruno@clisp.org>
46477
46478         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
46479
46480         * modules/getaddrinfo-tests (Makefile.am): Define
46481         test_getaddrinfo_LDADD.
46482
46483 2008-04-11  Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
46486         (init): Fix syntax error.
46487         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
46488         is declared.
46489
46490 2008-04-11  Bruno Haible  <bruno@clisp.org>
46491
46492         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
46493         * modules/glob (Depends-on): Add stdbool.
46494
46495 2008-04-11  Bruno Haible  <bruno@clisp.org>
46496
46497         * lib/trim.c: Include <string.h>.
46498
46499 2008-04-11  Eric Blake  <ebb9@byu.net>
46500
46501         Avoid compile failure on OS/2.
46502         * lib/regex_internal.h (internal_function): Disable optimization
46503         on OS/2 (__EMX__), where it caused compiler error.
46504         Reported by Elbert Pol.
46505
46506 2008-04-11  Bruno Haible  <bruno@clisp.org>
46507
46508         Flush the standard error stream before aborting. Needed on mingw.
46509         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
46510         * tests/test-array_list.c (ASSERT): Likewise.
46511         * tests/test-array_oset.c (ASSERT): Likewise.
46512         * tests/test-avltree_list.c (ASSERT): Likewise.
46513         * tests/test-avltree_oset.c (ASSERT): Likewise.
46514         * tests/test-avltreehash_list.c (ASSERT): Likewise.
46515         * tests/test-binary-io.c (ASSERT): Likewise.
46516         * tests/test-byteswap.c (ASSERT): Likewise.
46517         * tests/test-c-ctype.c (ASSERT): Likewise.
46518         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
46519         * tests/test-c-strcasestr.c (ASSERT): Likewise.
46520         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
46521         * tests/test-c-strstr.c (ASSERT): Likewise.
46522         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
46523         * tests/test-canonicalize.c (ASSERT): Likewise.
46524         * tests/test-carray_list.c (ASSERT): Likewise.
46525         * tests/test-ceilf1.c (ASSERT): Likewise.
46526         * tests/test-ceilf2.c (ASSERT): Likewise.
46527         * tests/test-ceill.c (ASSERT): Likewise.
46528         * tests/test-count-one-bits.c (ASSERT): Likewise.
46529         * tests/test-fbufmode.c (ASSERT): Likewise.
46530         * tests/test-fflush2.c (ASSERT): Likewise.
46531         * tests/test-floorf1.c (ASSERT): Likewise.
46532         * tests/test-floorf2.c (ASSERT): Likewise.
46533         * tests/test-floorl.c (ASSERT): Likewise.
46534         * tests/test-fopen.c (ASSERT): Likewise.
46535         * tests/test-fpending.c (ASSERT): Likewise.
46536         * tests/test-fprintf-posix.c (ASSERT): Likewise.
46537         * tests/test-fpurge.c (ASSERT): Likewise.
46538         * tests/test-freadable.c (ASSERT): Likewise.
46539         * tests/test-freadahead.c (ASSERT): Likewise.
46540         * tests/test-freading.c (ASSERT): Likewise.
46541         * tests/test-freadptr.c (ASSERT): Likewise.
46542         * tests/test-freadptr2.c (ASSERT): Likewise.
46543         * tests/test-freadseek.c (ASSERT): Likewise.
46544         * tests/test-freopen.c (ASSERT): Likewise.
46545         * tests/test-frexp.c (ASSERT): Likewise.
46546         * tests/test-frexpl.c (ASSERT): Likewise.
46547         * tests/test-fseek.c (ASSERT): Likewise.
46548         * tests/test-fseeko.c (ASSERT): Likewise.
46549         * tests/test-fstrcmp.c (ASSERT): Likewise.
46550         * tests/test-ftell.c (ASSERT): Likewise.
46551         * tests/test-ftello.c (ASSERT): Likewise.
46552         * tests/test-func.c (ASSERT): Likewise.
46553         * tests/test-fwritable.c (ASSERT): Likewise.
46554         * tests/test-fwriting.c (ASSERT): Likewise.
46555         * tests/test-getdelim.c (ASSERT): Likewise.
46556         * tests/test-getline.c (ASSERT): Likewise.
46557         * tests/test-i-ring.c (ASSERT): Likewise.
46558         * tests/test-iconv-utf.c (ASSERT): Likewise.
46559         * tests/test-iconv.c (ASSERT): Likewise.
46560         * tests/test-isfinite.c (ASSERT): Likewise.
46561         * tests/test-isnand.c (ASSERT): Likewise.
46562         * tests/test-isnanf.c (ASSERT): Likewise.
46563         * tests/test-isnanl.h (ASSERT): Likewise.
46564         * tests/test-ldexpl.c (ASSERT): Likewise.
46565         * tests/test-linked_list.c (ASSERT): Likewise.
46566         * tests/test-linkedhash_list.c (ASSERT): Likewise.
46567         * tests/test-localename.c (ASSERT): Likewise.
46568         * tests/test-lseek.c (ASSERT): Likewise.
46569         * tests/test-mbscasecmp.c (ASSERT): Likewise.
46570         * tests/test-mbscasestr1.c (ASSERT): Likewise.
46571         * tests/test-mbscasestr2.c (ASSERT): Likewise.
46572         * tests/test-mbscasestr3.c (ASSERT): Likewise.
46573         * tests/test-mbscasestr4.c (ASSERT): Likewise.
46574         * tests/test-mbschr.c (ASSERT): Likewise.
46575         * tests/test-mbscspn.c (ASSERT): Likewise.
46576         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
46577         * tests/test-mbspbrk.c (ASSERT): Likewise.
46578         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
46579         * tests/test-mbsrchr.c (ASSERT): Likewise.
46580         * tests/test-mbsspn.c (ASSERT): Likewise.
46581         * tests/test-mbsstr1.c (ASSERT): Likewise.
46582         * tests/test-mbsstr2.c (ASSERT): Likewise.
46583         * tests/test-mbsstr3.c (ASSERT): Likewise.
46584         * tests/test-memchr2.c (ASSERT): Likewise.
46585         * tests/test-memmem.c (ASSERT): Likewise.
46586         * tests/test-open.c (ASSERT): Likewise.
46587         * tests/test-printf-frexp.c (ASSERT): Likewise.
46588         * tests/test-printf-frexpl.c (ASSERT): Likewise.
46589         * tests/test-printf-posix.c (ASSERT): Likewise.
46590         * tests/test-quotearg.c (ASSERT): Likewise.
46591         * tests/test-rbtree_list.c (ASSERT): Likewise.
46592         * tests/test-rbtree_oset.c (ASSERT): Likewise.
46593         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
46594         * tests/test-round1.c (ASSERT): Likewise.
46595         * tests/test-roundf1.c (ASSERT): Likewise.
46596         * tests/test-roundl.c (ASSERT): Likewise.
46597         * tests/test-signbit.c (ASSERT): Likewise.
46598         * tests/test-sleep.c (ASSERT): Likewise.
46599         * tests/test-snprintf-posix.c (ASSERT): Likewise.
46600         * tests/test-snprintf.c (ASSERT): Likewise.
46601         * tests/test-sprintf-posix.c (ASSERT): Likewise.
46602         * tests/test-stat-time.c (ASSERT): Likewise.
46603         * tests/test-strcasestr.c (ASSERT): Likewise.
46604         * tests/test-strerror.c (ASSERT): Likewise.
46605         * tests/test-striconv.c (ASSERT): Likewise.
46606         * tests/test-striconveh.c (ASSERT): Likewise.
46607         * tests/test-striconveha.c (ASSERT): Likewise.
46608         * tests/test-strsignal.c (ASSERT): Likewise.
46609         * tests/test-strstr.c (ASSERT): Likewise.
46610         * tests/test-strtod.c (ASSERT): Likewise.
46611         * tests/test-trunc1.c (ASSERT): Likewise.
46612         * tests/test-trunc2.c (ASSERT): Likewise.
46613         * tests/test-truncf1.c (ASSERT): Likewise.
46614         * tests/test-truncf2.c (ASSERT): Likewise.
46615         * tests/test-truncl.c (ASSERT): Likewise.
46616         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
46617         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
46618         * tests/test-vasnprintf.c (ASSERT): Likewise.
46619         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
46620         * tests/test-vasprintf.c (ASSERT): Likewise.
46621         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
46622         * tests/test-vprintf-posix.c (ASSERT): Likewise.
46623         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
46624         * tests/test-vsnprintf.c (ASSERT): Likewise.
46625         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
46626         * tests/test-wcwidth.c (ASSERT): Likewise.
46627         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
46628         * tests/test-xprintf-posix.c (ASSERT): Likewise.
46629         * tests/test-xvasprintf.c (ASSERT): Likewise.
46630         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
46631         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
46632         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
46633         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
46634         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
46635         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
46636         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
46637         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
46638         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
46639         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
46640         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
46641         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
46642         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
46643         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
46644         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
46645         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
46646         * tests/unictype/test-block_list.c (ASSERT): Likewise.
46647         * tests/unictype/test-block_of.c (ASSERT): Likewise.
46648         * tests/unictype/test-block_test.c (ASSERT): Likewise.
46649         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
46650         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
46651         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
46652         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
46653         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
46654         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
46655         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
46656         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
46657         * tests/unictype/test-combining.c (ASSERT): Likewise.
46658         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
46659         * tests/unictype/test-digit.c (ASSERT): Likewise.
46660         * tests/unictype/test-mirror.c (ASSERT): Likewise.
46661         * tests/unictype/test-numeric.c (ASSERT): Likewise.
46662         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
46663         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
46664         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
46665         * tests/unictype/test-scripts.c (ASSERT): Likewise.
46666         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
46667         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
46668         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
46669         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
46670         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
46671         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
46672         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
46673         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
46674         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
46675         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
46676         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
46677         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
46678         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
46679         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
46680         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
46681         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
46682         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
46683         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
46684         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
46685         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
46686         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
46687         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
46688         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
46689         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
46690         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
46691         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
46692         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
46693         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
46694         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
46695         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
46696         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
46697         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
46698         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
46699         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
46700         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
46701         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
46702         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
46703         Reported by Eric Blake.
46704
46705 2008-04-11  Bruno Haible  <bruno@clisp.org>
46706
46707         * lib/wchar.in.h: Tweak comment.
46708
46709 2008-04-11  Bruno Haible  <bruno@clisp.org>
46710
46711         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
46712         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
46713         gl_COMMON.
46714         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
46715
46716 2008-04-11  Bruno Haible  <bruno@clisp.org>
46717
46718         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
46719
46720 2008-04-11  Simon Josefsson  <simon@josefsson.org>
46721
46722         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
46723         of attempting to use non-existing /dev/*random.  Based on patch
46724         from Adam Strzelecki <ono@java.pl> in
46725         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
46726
46727 2008-04-08  Bruno Haible  <bruno@clisp.org>
46728
46729         Add tentative support for emx+gcc.
46730         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
46731         * lib/fpurge.c (fpurge): Likewise.
46732         * lib/freadable.c (freadable): Likewise.
46733         * lib/freadahead.c (freadahead): Likewise.
46734         * lib/freading.c (freading): Likewise.
46735         * lib/freadptr.c (freadptr): Likewise.
46736         * lib/freadseek.c (freadptrinc): Likewise.
46737         * lib/fseeko.c (rpl_fseeko): Likewise.
46738         * lib/fseterr.c (fseterr): Likewise.
46739         * lib/fwritable.c (fwritable): Likewise.
46740         * lib/fwriting.c (fwriting): Likewise.
46741         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
46742
46743 2008-04-09  Eric Blake  <ebb9@byu.net>
46744
46745         Avoid some autoconf warnings.
46746         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
46747         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
46748         * m4/afs.m4 (gl_AFS): Likewise.
46749         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
46750         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
46751         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46752         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
46753         (gl_INTEGER_TYPE_SUFFIX): Likewise.
46754         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
46755         (AC_CHECK_DECLS_ONCE): Likewise.
46756         Rename file...
46757         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
46758         gnulib-tool requires autoconf 2.59 or better.
46759         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
46760
46761 2008-04-08  Eric Blake  <ebb9@byu.net>
46762
46763         Use 'git describe --match' if present (added in git 1.5.5).
46764         * build-aux/git-version-gen: Limit result to tags that match 'v*'
46765         if possible.
46766
46767 2008-04-08  Bruno Haible  <bruno@clisp.org>
46768
46769         Add tentative support for OpenServer.
46770         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
46771         _ptr, _cnt.
46772         * lib/fpurge.c (fpurge): Likewise.
46773         * lib/freadable.c (freadable): Likewise.
46774         * lib/freadahead.c (freadahead): Likewise.
46775         * lib/freading.c (freading): Likewise.
46776         * lib/freadptr.c (freadptr): Likewise.
46777         * lib/freadseek.c (freadptrinc): Likewise.
46778         * lib/fseeko.c (rpl_fseeko): Likewise.
46779         * lib/fseterr.c (fseterr): Likewise.
46780         * lib/fwritable.c (fwritable): Likewise.
46781         * lib/fwriting.c (fwriting): Likewise.
46782         Reported by Roger Cornelius <rac@tenzing.org> and
46783         Brian K. White <brian@aljex.com>.
46784
46785 2008-04-06  Jim Meyering  <meyering@redhat.com>
46786
46787         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
46788
46789 2008-04-06  Bruno Haible  <bruno@clisp.org>
46790
46791         Avoid possible error with non-ASCII bytes in UTF-8 locales.
46792         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
46793         * tests/test-printf-posix.sh: Likewise.
46794         * tests/test-vfprintf-posix.sh: Likewise.
46795         * tests/test-vprintf-posix.sh: Likewise.
46796         * tests/test-xprintf-posix.sh: Likewise.
46797
46798 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46799
46800         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
46801         hide error from 'ls', needed on OS/2.
46802         Report by Elbert Pol <elbert.pol@gmail.com>.
46803
46804 2008-04-04  Eric Blake  <ebb9@byu.net>
46805
46806         Make test-fseeko.c failures meaningful.
46807         * tests/test-fseeko.c: Print line number on failure.
46808         * tests/test-fseek.c: Likewise.
46809         Reported by Nelson H. F. Beebe.
46810
46811         Improve strtod bug detection check.
46812         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
46813         required for Solaris 10.
46814         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
46815
46816 2008-04-04  Bruno Haible  <bruno@clisp.org>
46817
46818         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
46819         by m4/setenv.m4.
46820
46821 2008-04-03  Eric Blake  <ebb9@byu.net>
46822
46823         Ensure sane .version contents.
46824         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
46825         version string.
46826         * build-aux/git-version-gen: Improve documentation.
46827
46828         Make GNU make output nicer.
46829         * top/GNUmakefile [!_have-Makefile]: Add dependency on
46830         MAKECMDGOALS to enforce message for all command line targets.  Set
46831         srcdir for use in maint.mk.
46832
46833         Another maintainer tweak.
46834         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
46835         a target that regenerates version.
46836
46837 2008-04-03  Jim Meyering  <meyering@redhat.com>
46838
46839         vc-list-files: don't cause coreutils "make po-check" failure
46840         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
46841
46842 2008-04-03  Eric Blake  <ebb9@byu.net>
46843
46844         Allow VPATH usage of vc-list-files.
46845         * build-aux/vc-list-files (scriptversion): Add timestamp.
46846         (options): Add --help, --version, -C.
46847         (CVS): Support installed cvsu.
46848
46849 2008-04-02  Bruno Haible  <bruno@clisp.org>
46850
46851         Avoid some "statement with no effect" warnings from gcc.
46852         * tests/test-wctype.c (main): Explicitly ignore unused values.
46853         Reported by Jim Meyering.
46854
46855 2008-04-02  Jim Meyering  <meyering@redhat.com>
46856
46857         Avoid some warnings from "gcc -Wshadow".
46858         * tests/test-frexp.c (exp): Define to a different identifier.
46859         * tests/test-frexpl.c (exp): Likewise.
46860
46861 2008-04-03  Jim Meyering  <meyering@redhat.com>
46862
46863         bootstrap: remove dangling *.[ch] symlinks from lib
46864         * build-aux/bootstrap [dangling symlink removal]: Move find's
46865         -depth option to precede all others, to avoid a warning.
46866         Remove *.[ch] files too, and from "$source_base" (usually lib/).
46867
46868 2008-04-02  Bruno Haible  <bruno@clisp.org>
46869
46870         Avoid some warnings from "gcc -Wshadow".
46871         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
46872         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
46873         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
46874         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
46875         Reported by Jim Meyering.
46876
46877 2008-04-01  Bruno Haible  <bruno@clisp.org>
46878
46879         Fix test to work on IRIX 6.5 with cc.
46880         * tests/test-math.c (numeric_equal): New function.
46881         (main): Use it.
46882
46883 2008-04-01  Bruno Haible  <bruno@clisp.org>
46884
46885         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
46886
46887 2008-04-01  Bruno Haible  <bruno@clisp.org>
46888
46889         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
46890         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46891         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
46892         (Depends-on): Remove math.
46893
46894         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
46895         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46896         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
46897         (Depends-on): Remove math.
46898
46899         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
46900         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46901         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
46902         (Depends-on): Remove math.
46903         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
46904         (Depends-on): Remove math.
46905
46906         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
46907         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
46908         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
46909         (Depends-on): Remove math.
46910         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
46911         (Depends-on): Remove math.
46912
46913         * tests/test-round1.c: Include nan.h.
46914         (main): Use NaNd instead of NAN.
46915         * modules/round-tests (Files): Add tests/nan.h.
46916
46917         * tests/test-trunc1.c: Include nan.h.
46918         (main): Use NaNd instead of NAN.
46919         * modules/trunc-tests (Files): Add tests/nan.h.
46920
46921         * tests/test-roundf1.c: Include nan.h.
46922         (main): Use NaNf instead of NAN.
46923         * modules/roundf-tests (Files): Add tests/nan.h.
46924
46925         * tests/test-truncf1.c: Include nan.h.
46926         (main): Use NaNf instead of NAN.
46927         * modules/truncf-tests (Files): Add tests/nan.h.
46928
46929         * tests/test-ceilf1.c: Include nan.h.
46930         (main): Use NaNf instead of NAN.
46931         * modules/ceilf-tests (Files): Add tests/nan.h.
46932
46933         * tests/test-floorf1.c: Include nan.h.
46934         (main): Use NaNf instead of NAN.
46935         * modules/floorf-tests (Files): Add tests/nan.h.
46936
46937         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
46938         (main): Use NaNf instead of NAN.
46939         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
46940
46941         * tests/test-isnand.c: Include nan.h instead of <math.h>.
46942         (main): Use NaNd instead of NAN.
46943         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
46944
46945         * tests/test-frexp.c: Include nan.h.
46946         (main): Use NaNd instead of NAN.
46947         * modules/frexp-tests (Files): Add tests/nan.h.
46948
46949         * lib/isnan.c: Don't include <math.h>.
46950         (FUNC): Don't use NAN macro.
46951         * modules/isnand-nolibm (Depends-on): Remove math.
46952         * modules/isnanf-nolibm (Depends-on): Remove math.
46953         * modules/isnanl (Depends-on): Remove math.
46954         * modules/isnanl-nolibm (Depends-on): Remove math.
46955
46956         * tests/nan.h: New file.
46957
46958 2008-04-01  Eric Blake  <ebb9@byu.net>
46959
46960         Fix typos.
46961         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
46962         values to be the right type.
46963
46964         For now, cater to gnulib strtod inaccuracies.
46965         * tests/test-strtod.c (main): Allow 1-ulp error on expected
46966         fractional results.  While not as nice from a QoI perspective, it
46967         is a quicker patch than correctly implementing decimal to binary
46968         rounding.
46969
46970 2008-03-31  Eric Blake  <ebb9@byu.net>
46971
46972         Guarantee a definition of NAN.
46973         * lib/math.in.h (NAN): Define if missing.
46974         * tests/test-math.c (main): Test it.
46975         * doc/posix-headers/math.texi (math.h): Document this.
46976         * lib/isnan.c (rpl_isnand): Use it.
46977         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
46978         * tests/test-floorf1.c (NaN): Likewise.
46979         * tests/test-frexp.c (NaN): Likewise.
46980         * tests/test-isnand.c (NaN): Likewise.
46981         * tests/test-isnanf.c (NaN): Likewise.
46982         * tests/test-round1.c (NaN): Likewise.
46983         * tests/test-roundf1.c (NaN): Likewise.
46984         * tests/test-snprintf-posix.h (NaN): Likewise.
46985         * tests/test-sprintf-posix.h (NaN): Likewise.
46986         * tests/test-trunc1.c (NaN): Likewise.
46987         * tests/test-truncf1.c (NaN): Likewise.
46988         * tests/test-vasnprintf-posix.c (NaN): Likewise.
46989         * tests/test-vasprintf-posix.c (NaN): Likewise.
46990         * modules/isnand-nolibm (Depends-on): Add math.
46991         * modules/isnanf-nolibm (Depends-on): Likewise.
46992         * modules/isnanl (Depends-on): Likewise.
46993         * modules/isnanl-nolibm (Depends-on): Likewise.
46994         * modules/snprintf-posix-tests (Depends-on): Likewise.
46995         * modules/sprintf-posix-tests (Depends-on): Likewise.
46996         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
46997         * modules/vsprintf-posix-tests (Depends-on): Likewise.
46998         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
46999         * modules/vasprintf-posix-tests (Depends-on): Likewise.
47000
47001 2008-03-31  Bruno Haible  <bruno@clisp.org>
47002
47003         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
47004         * doc/posix-functions/strtod.texi: Likewise.
47005
47006 2008-03-31  Bruno Haible  <bruno@clisp.org>
47007
47008         * tests/test-strtod.c (main): Don't use C99 syntax.
47009
47010 2008-03-31  Bruno Haible  <bruno@clisp.org>
47011
47012         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
47013         Reported by Eric Blake.
47014
47015 2008-03-31  Jim Meyering  <meyering@redhat.com>
47016
47017         Don't compare actual signbit return values.
47018         * tests/test-strtod.c (main): Rather, compare only their
47019         zero/non-zero nature.
47020
47021 2008-03-31  Eric Blake  <ebb9@byu.net>
47022
47023         More strtod documentation.
47024         * doc/posix-functions/strtod.texi (strtod): Interpret more test
47025         failures as distinct bugs.
47026
47027 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
47028
47029         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
47030         Problem reported by Erik Benada in
47031         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
47032
47033 2008-03-30  Bruno Haible  <bruno@clisp.org>
47034
47035         * tests/test-strtod.c: Add comments about which assertion fails on which
47036         platform.
47037         * doc/posix-functions/strtod.texi: Add info about many more platforms.
47038
47039 2008-03-30  Eric Blake  <ebb9@byu.net>
47040
47041         Test signbit behavior on zeros.
47042         * tests/test-signbit.c (test_signbitf): Add tests for zero.
47043         (test_signbitd, test_signbitl): Likewise.
47044
47045         More strtod touchups.
47046         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
47047         sign of negative underflow, for now.  Use .5, not .1.
47048         * doc/posix-functions/strtod.texi (strtod): Mention these
47049         limitations.
47050         Reported by Jim Meyering.
47051
47052 2008-03-30  Bruno Haible  <bruno@clisp.org>
47053
47054         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
47055         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
47056
47057 2008-03-30  Bruno Haible  <bruno@clisp.org>
47058
47059         Avoid failure when attempting to return empty iconv results on some
47060         platforms.
47061         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
47062         allocation, don't report ENOMEM when the resulting string is empty.
47063
47064 2008-03-30  Bruno Haible  <bruno@clisp.org>
47065
47066         Fix buffer overrun.
47067         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
47068         Don't consider the width for tmp_length. Check count against tmp_length
47069         before doing the padding. Ensure enough allocation during padding.
47070
47071 2008-03-30  Eric Blake  <ebb9@byu.net>
47072
47073         strtod touchups.
47074         * lib/strtod.c (strtod): Avoid compiler warnings.
47075         Reported by Jim Meyering.
47076
47077 2008-03-30  Bruno Haible  <bruno@clisp.org>
47078
47079         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
47080         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
47081         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
47082         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
47083         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
47084         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
47085         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
47086         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
47087
47088         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
47089         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
47090         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
47091         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
47092         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
47093         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
47094         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
47095         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
47096
47097         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
47098         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
47099         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
47100         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
47101         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
47102         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
47103         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
47104         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
47105
47106         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
47107         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
47108
47109         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
47110         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
47111
47112         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
47113         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
47114
47115         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
47116         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
47117         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
47118
47119         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
47120         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
47121         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
47122
47123         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
47124         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
47125         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
47126
47127         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
47128         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
47129         * modules/vasprintf (Depends-on): Add EOVERFLOW.
47130
47131         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
47132         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
47133         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
47134         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
47135         (Depends-on): Add EOVERFLOW.
47136         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
47137         (Depends-on): Add EOVERFLOW.
47138         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47139         (Depends-on): Add EOVERFLOW.
47140         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
47141         (Depends-on): Add EOVERFLOW.
47142         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47143         (Depends-on): Add EOVERFLOW.
47144         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
47145         (Depends-on): Add EOVERFLOW.
47146         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47147         (Depends-on): Add EOVERFLOW.
47148         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
47149         (Depends-on): Add EOVERFLOW.
47150
47151         * lib/sprintf.c (EOVERFLOW): Remove fallback.
47152         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
47153         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
47154
47155         * lib/snprintf.c (EOVERFLOW): Remove fallback.
47156         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
47157         * modules/snprintf (Depends-on): Add EOVERFLOW.
47158
47159         * lib/poll.c (EOVERFLOW): Remove fallback.
47160         * modules/poll (Depends-on): Add EOVERFLOW.
47161
47162         * lib/getugroups.c (EOVERFLOW): Remove fallback.
47163         * modules/getugroups (Depends-on): Add EOVERFLOW.
47164
47165         * lib/getdelim.c (EOVERFLOW): Remove fallback.
47166         * modules/getdelim (Depends-on): Add EOVERFLOW.
47167
47168         * lib/ftell.c (EOVERFLOW): Remove fallback.
47169         * modules/ftell (Depends-on): Add EOVERFLOW.
47170
47171         * lib/fprintf.c (EOVERFLOW): Remove fallback.
47172         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
47173         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
47174
47175         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
47176
47177         * modules/EOVERFLOW-tests: New file.
47178         * tests/test-EOVERFLOW.c: New file.
47179
47180         * modules/EOVERFLOW: New file.
47181         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
47182
47183 2008-03-30  Bruno Haible  <bruno@clisp.org>
47184
47185         Fix bug introduced on 2007-06-10.
47186         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
47187         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
47188
47189 2008-03-30  Bruno Haible  <bruno@clisp.org>
47190
47191         Improve freadseek's efficiency after ungetc.
47192         * lib/freadseek.c: Include freadahead.h.
47193         (freadptrinc): New function, extracted from freadseek.
47194         (freadseek): Use it in a loop. Use freadahead to determine the number
47195         of loop iterations.
47196         * modules/freadseek (Depends-on): Add freadahead.
47197         (configure.ac): Require AC_C_INLINE.
47198
47199 2008-03-30  Bruno Haible  <bruno@clisp.org>
47200
47201         * lib/freadseek.c (freadseek): Don't ignore the return value of
47202         freadptr.
47203
47204 2008-03-29  Eric Blake  <ebb9@byu.net>
47205
47206         Add hex float support.
47207         * modules/strtod (Depends-on): Add c-ctype.
47208         (Link): Mention POW_LIB.
47209         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
47210         whitespace between 'e' and exponent.
47211         * tests/test-strtod.c (main): Enable hex float tests.
47212         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
47213         now provides.
47214
47215         Document various strtod bugs, with some fixes.
47216         * doc/posix-functions/strtod.texi (strtod): Document bugs with
47217         "-0x", "inf", "nan", and hex constants.
47218         * doc/posix-functions/atof.texi (atof): Likewise.
47219         * modules/stdlib (Makefile.am): Support strtod.
47220         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
47221         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
47222         detect additional strtod bugs.
47223         * lib/stdlib.in.h (rpl_strtod): Add declarations.
47224         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
47225         bool where appropriate.  Parse 'inf' and 'nan'.
47226         * tests/test-strtod.c: New file.
47227         * modules/strtod (Depends-on): Add stdbool, stdlib.
47228         (configure.ac): Turn on module indicator.
47229         * modules/strtod-tests: New module.
47230
47231 2008-03-29  Eric Blake  <ebb9@byu.net>
47232
47233         Fix ftell on mingw.
47234         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
47235         * modules/ftell-tests (Depends-on): Add binary-io.
47236         * modules/ftello-tests (Depends-on): Likewise.
47237         * tests/test-ftell.c (main): Enhance test to cover behavior after
47238         ungetc.  Enforce binary mode.
47239         * tests/test-ftello.c (main): Likewise.
47240
47241         Pass test-freadseek on cygwin.
47242         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
47243         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
47244         ungetc buffer.
47245
47246         * tests/test-fflush2.c (main): Fix typo.
47247
47248 2008-03-29  Bruno Haible  <bruno@clisp.org>
47249
47250         * tests/test-fflush2.c (main): Temporarily disable the contents of
47251         this test.
47252         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
47253         Reported by Eric Blake.
47254
47255 2008-03-28  Simon Josefsson  <simon@josefsson.org>
47256
47257         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
47258         (GC_SHA224_DIGEST_SIZE): Add.
47259
47260         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
47261         (gc_hash_digest_length): Likewise.
47262         (gc_hash_buffer): Likewise.
47263
47264 2008-03-25  Bruno Haible  <bruno@clisp.org>
47265
47266         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
47267         detail which gettext release to use.
47268         Reported by Simon Josefsson.
47269
47270 2008-03-26  Jim Meyering  <meyering@redhat.com>
47271
47272         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
47273         * modules/gnumakefile (clean-GNUmakefile): Also, use
47274         test ... && ... || : syntax rather than if-then ... fi.
47275
47276         gnumakefile: Don't double-quote-expand $(VPATH) value.
47277         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
47278
47279 2008-03-24  Eric Blake  <ebb9@byu.net>
47280
47281         Alter GNUmakefile to install into top directory.
47282         * modules/maintainer-makefile: Split, and add dependency...
47283         * modules/gnumakefile: to this new module.
47284         * build-aux/GNUmakefile: Move...
47285         * top/GNUmakefile: ...here.
47286         * build-aux/maint.mk: Move...
47287         * top/maint.mk: ...here.
47288         * MODULES.html.sh (Support for maintaining...): Document new
47289         module.
47290
47291 2008-03-23  Bruno Haible  <bruno@clisp.org>
47292
47293         * gnulib-tool: New options --vc-files, --no-vc-files.
47294         (func_usage): Document them.
47295         (vc_files): New variable.
47296         (func_import): Consider vc_files.
47297         (func_create_testdir): Set vc_files to empty.
47298         Suggested by Jim Meyering and Karl Berry.
47299
47300 2008-03-23  Bruno Haible  <bruno@clisp.org>
47301
47302         Fix regex compilation error on HP-UX 11.
47303         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
47304         * modules/regex (Files): Add m4/mbstate_t.m4.
47305         Reported by Ton Voon <ton.voon@altinity.com>.
47306
47307 2008-03-23  Bruno Haible  <bruno@clisp.org>
47308
47309         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
47310
47311 2008-03-23  Eric Blake  <ebb9@byu.net>
47312             Bruno Haible  <bruno@clisp.org>
47313
47314         Install files from top/ in the destination directory.
47315         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
47316         augmentation also for the files from top/.
47317         (func_import, func_create_testdir): Rewrite file names:
47318         top/filename -> filename.
47319
47320 2008-03-23  Bruno Haible  <bruno@clisp.org>
47321
47322         Tweak "gnulib --version" output.
47323         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
47324
47325 2008-03-23  Bruno Haible  <bruno@clisp.org>
47326
47327         Tweak "gnulib --version" output.
47328         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
47329         rather than contents of ChangeLog, when possible.
47330
47331 2008-03-21  Eric Blake  <ebb9@byu.net>
47332
47333         More --version tweaks.
47334         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
47335         date of last ChangeLog entry.
47336
47337 2008-03-21  Jim Meyering  <meyering@redhat.com>
47338
47339         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
47340
47341 2008-03-20  Eric Blake  <ebb9@byu.net>
47342
47343         VPATH fix.
47344         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
47345
47346 2008-03-20  Simon Josefsson  <simon@josefsson.org>
47347
47348         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
47349         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
47350
47351 2008-03-20  Eric Blake  <ebb9@byu.net>
47352
47353         Sync GNUmakefile with coreutils.
47354         * build-aux/GNUmakefile (have-Makefile): Rename...
47355         (_have-Makefile): ...to this, for namespace consideration.
47356         (GNUmakefile.cfg): Include, if present.
47357         (_autoreconf): Define a default.
47358         (_is-dist-target): New rule for rebuilds to pick up intra-release
47359         version.
47360         (maint-cfg.mk): Rename...
47361         (cfg.mk): ...to this.
47362
47363 2008-03-18  Jim Meyering  <meyering@redhat.com>
47364
47365         New script and module: mktempd
47366         * MODULES.html.sh (maint+release support): Add mktempd.
47367         * build-aux/mktempd: New file.
47368         * modules/mktempd: New file.
47369
47370 2008-03-15  Jim Meyering  <meyering@redhat.com>
47371
47372         Undo last change.
47373         * lib/sha1.c, lib/md5.c: 63 != ~63.
47374         Reported by Andreas Schwab.
47375
47376         sha1.c, md5.c: Hoist a redundant expression.
47377         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
47378         "ctx->buflen" only once, before calling *_process_block.
47379         * lib/md5.c (md5_process_bytes): Likewise.
47380
47381 2008-03-14  Eric Blake  <ebb9@byu.net>
47382
47383         Bump copyright year in files generated by gnulib-tool.
47384         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
47385         gnulib-tool, rather than hard-coding it.
47386
47387         Fix 'gnulib-tool --version' output to work with git.
47388         * gnulib-tool (func_gnulib_dir): New function, extracted from...
47389         (startup): ...here.
47390         (func_version): Use it to invoke git-version-gen, rather than
47391         relying on CVS keyword expansion.  Modernize wording.
47392         (cvsdatestamp, last_checkin_date, version): Kill unused
47393         variables.
47394
47395 2008-03-12  Jim Meyering  <meyering@redhat.com>
47396
47397         Recognize optional cast of the argument to free.
47398         * build-aux/useless-if-before-free: Update regexps.
47399
47400         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
47401
47402 2008-03-11  Bruno Haible  <bruno@clisp.org>
47403
47404         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
47405         by a single package.
47406         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
47407         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
47408         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
47409         Reported by Sam Steingold <sds@gnu.org>.
47410
47411 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
47412
47413         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
47414         repositories.
47415
47416 2008-03-11  Bruno Haible  <bruno@clisp.org>
47417
47418         Avoid conflicts between local macro definitions.
47419         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
47420         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
47421
47422 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
47423             Bruno Haible  <bruno@clisp.org>
47424
47425         Make va_copy work with some version of xlc on AIX 5.1.
47426         * lib/stdarg.in.h: New file.
47427         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
47428         On AIX, use a <stdarg.h> file substitute.
47429         * modules/stdarg (Files): Add lib/stdarg.in.h.
47430         (Depends-on): Add include_next.
47431         (Makefile.am): Build a stdarg.h substitute if requested.
47432         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
47433
47434 2008-03-10  Bruno Haible  <bruno@clisp.org>
47435
47436         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
47437         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47438         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47439
47440 2008-03-10  Bruno Haible  <bruno@clisp.org>
47441
47442         * modules/stdlib (Depends-on): Add include_next, remove
47443         absolute-header.
47444
47445 2008-03-09  Bruno Haible  <bruno@clisp.org>
47446
47447         * lib/freadahead.h (freadahead): Document more precisely.
47448         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
47449         the sum of both buffer sizes.
47450         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
47451         * NEWS: Document the change.
47452
47453 2008-03-09  Bruno Haible  <bruno@clisp.org>
47454
47455         Extend freadptr to return also the buffer size.
47456         * lib/freadptr.h (freadptr): Add sizep argument.
47457         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
47458         (freadptr): Add sizep argument. Determine buffer size like freadahead
47459         does.
47460         * tests/test-freadptr.c: Don't include freadahead.h.
47461         (main): Adapt for new calling convention of freadptr.
47462         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
47463         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
47464         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
47465         tests/test-freadptr2.sh.
47466         (Depends): Remove freadahead.
47467         (TESTS): Add test-freadptr2.sh.
47468         (check_PROGRAMS): Add test-freadptr2.
47469
47470 2008-03-09  Bruno Haible  <bruno@clisp.org>
47471
47472         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
47473         Report and solution by Simon Josefsson.
47474
47475 2008-03-06  Bruno Haible  <bruno@clisp.org>
47476
47477         Make fflush after ungetc work on BSD platforms.
47478         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
47479         * tests/test-fflush2.c: New file.
47480         * tests/test-fflush2.sh: New file.
47481         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
47482         tests/test-fflush2.c.
47483         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
47484         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
47485
47486 2008-03-06  Eric Blake  <ebb9@byu.net>
47487
47488         Likewise for ftello.
47489         * modules/ftello (Dependencies): Add extensions.
47490         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
47491
47492 2008-03-06  Bruno Haible  <bruno@clisp.org>
47493
47494         * modules/fseeko (Dependencies): Add extensions.
47495         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
47496         Needed on glibc systems.
47497
47498 2008-03-06  Bruno Haible  <bruno@clisp.org>
47499
47500         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
47501         email address.
47502         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47503
47504 2008-03-06  Bruno Haible  <bruno@clisp.org>
47505
47506         * users.txt: Add libgnupdf.
47507
47508 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
47509
47510         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
47511         (Header File Substitutes, Function Substitutes,
47512         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
47513         (Build robot for gnulib): Fix typo.
47514
47515 2008-03-06  Bruno Haible  <bruno@clisp.org>
47516
47517         * doc/gnulib-tool.texi (VCS Issues): Small updates.
47518         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
47519
47520 2008-03-06  Bruno Haible  <bruno@clisp.org>
47521
47522         * doc/func.texi: New file, extracted from doc/gnulib.texi.
47523         * doc/gnulib.texi: Include it.
47524
47525 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47526
47527         * modules/func (License): Change license to unlimited; there was
47528         no LGPL parts in the module anyway.
47529
47530 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47531
47532         * modules/__func__: Renamed to modules/func.
47533         * modules/__func__-tests: Renamed to modules/func-tests.
47534         * tests/test-__func__.c: Renamed to tests/test-func.c.
47535         * m4/__func__.m4: Renamed to m4/func.m4.
47536         * doc/gnulib.texi (__func__): Section renamed to func.
47537         Suggested by Eric Blake <ebb9@byu.net>.
47538
47539 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47540
47541         * doc/gnulib.texi (__func__): Use C99 terminology when talking
47542         about __func__.  Make example self-contained.  Suggested by Eric
47543         Blake <ebb9@byu.net>.
47544
47545         * tests/test-__func__.c (main): Avoid extraneous () around __func.
47546         Suggested by Eric Blake <ebb9@byu.net>.
47547
47548 2008-03-06  Simon Josefsson  <simon@josefsson.org>
47549
47550         * modules/__func__: New file.
47551         * modules/__func__-tests: New file.
47552         * tests/test-__func__.c: New file.
47553         * m4/__func__.m4: New file.
47554         * doc/gnulib.texi (__func__): Document __func__ module.
47555
47556 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47557
47558         * modules/byteswap (License): Re-license as LGPLv2+.
47559
47560 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47561
47562         * doc/Makefile: Add pdf target.
47563
47564 2008-03-05  Simon Josefsson  <simon@josefsson.org>
47565
47566         * modules/inline (License): Use 'unlimited', since there are only
47567         *.m4 files in this module.
47568
47569 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47570             Bruno Haible  <bruno@clisp.org>
47571
47572         Add support for HP C 7.1 on OpenVMS 8.3.
47573         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
47574
47575 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
47576
47577         Update VMS specifics.
47578         * lib/getopt.c [VMS]: Remove include of unixlib.h.
47579
47580 2008-03-02  Jim Meyering  <meyering@redhat.com>
47581
47582         Remove the last dependency on the "free" module.
47583         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
47584         Reported by Bob Proulx.
47585
47586         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
47587
47588         Remove useless "if" tests before free.  Deprecate "free" module.
47589         * doc/posix-functions/free.texi: Mention that this
47590         module is no longer useful.
47591         * modules/free (Notice): Say this module is obsolete.
47592         * modules/readutmp (Depends-on): Remove free.
47593         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
47594         * lib/putenv.c (putenv): Likewise.
47595         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
47596         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
47597         * tests/test-c-strcasestr.c (main): Likewise.
47598         * tests/test-c-strstr.c (main): Likewise.
47599         * tests/test-mbscasestr1.c (main): Likewise.
47600         * tests/test-mbscasestr2.c (main): Likewise.
47601         * tests/test-mbsstr1.c (main): Likewise.
47602         * tests/test-mbsstr2.c (main): Likewise.
47603         * tests/test-memmem.c (main): Likewise.
47604         * tests/test-strcasestr.c (main): Likewise.
47605         * tests/test-striconv.c (main): Likewise.
47606         * tests/test-striconveh.c (main): Likewise.
47607         * tests/test-striconveha.c (main): Likewise.
47608         * tests/test-strstr.c (main): Likewise.
47609
47610         * build-aux/git-version-gen: Adjust a comment and the Usage string.
47611
47612         bootstrap: sync from coreutils again
47613         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
47614
47615 2008-03-01  Jim Meyering  <meyering@redhat.com>
47616
47617         bootstrap: sync from coreutils
47618         * build-aux/bootstrap (update_po_files): Copy a .po file into place
47619         also when the target doesn't exist.
47620
47621 2008-03-01  Eric Blake  <ebb9@byu.net>
47622
47623         Fix bugs in last patch.
47624         * lib/memchr2.c (memchr2): Fix typo.
47625         * tests/test-memchr2.c: Test previous bug, and don't use GNU
47626         extension.
47627         Reported by Bruce Korb.
47628
47629         New module 'memchr2'.
47630         * modules/memchr2: New file.
47631         * modules/memchr2-tests: Likewise.
47632         * lib/memchr2.h: Likewise.
47633         * lib/memchr2.c: Likewise, based on memchr.c.
47634         * tests/test-memchr2.c: New test.
47635         * MODULES.html.sh (String handling): Add memchr2.
47636
47637 2008-02-29  Bruno Haible  <bruno@clisp.org>
47638
47639         * modules/freadseek-tests: New file.
47640         * tests/test-freadseek.sh: New file.
47641         * tests/test-freadseek.c: New file.
47642
47643         New module 'freadseek'.
47644         * modules/freadseek: New file.
47645         * lib/freadseek.h: New file.
47646         * lib/freadseek.c: New file.
47647         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
47648
47649 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
47650
47651         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
47652         wydawca.
47653
47654         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
47655         program_invocation_name and program_invocation_short_name are
47656         present.
47657
47658 2008-02-28  Bruno Haible  <bruno@clisp.org>
47659
47660         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
47661         * tests/test-freadptr.sh: Also test non-seekable stdin.
47662
47663 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
47664
47665         * build-aux/bootstrap (source_base, m4_base)
47666         (doc_base, tests_base): New variables.
47667         (gnulib_tool_options): Do not hardcode base directories, use
47668         the above variables instead.
47669
47670 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
47671
47672         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
47673
47674 2008-02-28  Bruno Haible  <bruno@clisp.org>
47675
47676         * modules/freadptr-tests: New file.
47677         * tests/test-freadptr.sh: New file.
47678         * tests/test-freadptr.c: New file.
47679
47680         New module 'freadptr'.
47681         * modules/freadptr: New file.
47682         * lib/freadptr.h: New file.
47683         * lib/freadptr.c: New file.
47684         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
47685
47686 2008-02-26  Karl Berry  <karl@freefriends.org>
47687
47688         Sync from Libtool:
47689         * libltdl/argz.c (argz_add, argz_count): New functions.
47690         * libltdl/argz.in.h: Declare them.
47691         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
47692
47693 2008-02-22  Bruno Haible  <bruno@clisp.org>
47694
47695         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
47696         is a pointer type.  Needed for HP-UX 10.
47697         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
47698         * doc/posix-functions/gmtime_r.texi: Likewise.
47699         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
47700
47701 2008-02-24  Bruno Haible  <bruno@clisp.org>
47702
47703         * modules/environ-tests: New file.
47704         * tests/test-environ.c: New file.
47705
47706         New module 'environ'.
47707         * modules/environ: New file.
47708         * lib/unistd.in.h (environ): New declaration.
47709         * m4/environ.m4: New file.
47710         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
47711         after use.
47712         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
47713         HAVE_DECL_ENVIRON.
47714         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
47715         HAVE_DECL_ENVIRON.
47716         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
47717         wrong claim that 'environ' is missing on some systems.
47718         * modules/execute (Depends-on): Add environ.
47719         * lib/execute.c (environ): Remove fallback declaration.
47720         * modules/pipe (Depends-on): Add environ.
47721         * lib/pipe.c (environ): Remove fallback declaration.
47722         * modules/setenv (Depends-on): Add environ.
47723         * lib/setenv.c (environ): Remove fallback declaration.
47724         * modules/unsetenv (Depends-on): Add environ.
47725         * lib/unsetenv.c (environ): Remove fallback declaration.
47726         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
47727         m4/environ.m4.
47728         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
47729         (gl_PREREQ_UNSETENV): Likewise.
47730
47731 2008-02-24  Bruno Haible  <bruno@clisp.org>
47732
47733         * doc/posix-functions/environ.texi: Document the MacOS X problem.
47734
47735 2008-02-20  Bob Proulx  <bob@proulx.com>
47736
47737         Enable use of older two part flavor 'git describe'.
47738         * build-aux/git-version-gen: If using the older two part flavor of
47739         git version then recreate the third part now present in the
47740         newer three part flavor of git describe.
47741
47742 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
47743
47744         * lib/fts.c (fts_build): Typo correction to comment.
47745
47746 2008-02-17  Bruno Haible  <bruno@clisp.org>
47747
47748         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
47749         generating no-op conflicts.
47750
47751 2008-02-17  Bruno Haible  <bruno@clisp.org>
47752
47753         Speed up by 10%.
47754         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
47755         result_entries, rather than an index-based loop.
47756
47757 2008-02-17  Bruno Haible  <bruno@clisp.org>
47758
47759         Speed up by 25%.
47760         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
47761         'hashcode_cached'.
47762         (entry_create): New function.
47763         (entry_hashcode): Use the cached hashcode if possible.
47764         (read_changelog_file, try_split_merged_entry): Use entry_create.
47765
47766 2008-02-17  Bruno Haible  <bruno@clisp.org>
47767
47768         Speed up from O(n^2) to O(n) for long ChangeLog files.
47769         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
47770         (read_changelog_file): Change implementation of entries_reversed list
47771         to rbtreehash.
47772         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
47773
47774 2008-02-17  Bruno Haible  <bruno@clisp.org>
47775
47776         New option --split-merged-entry.
47777         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
47778         (find_paragraph_end, try_split_merged_entry): New functions.
47779         (long_options): Add option --split-merged-entry.
47780         (usage): Document option --split-merged-entry.
47781         (main): Implement option --split-merged-entry.
47782         Reported by Eric Blake.
47783
47784 2008-02-17  Bruno Haible  <bruno@clisp.org>
47785
47786         * lib/git-merge-changelog.c: Include c-strstr.h.
47787         (main): Support the "git pull --rebase" situation.
47788         * modules/git-merge-changelog (Depends-on): Add c-strstr.
47789         Reported by Eric Blake.
47790
47791 2008-02-16  Eric Blake  <ebb9@byu.net>
47792
47793         Avoid doubling \ in common case of "c-maybe" quoting style.
47794         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
47795         eliding outer quotes.
47796         * lib/quotearg.h: Document this.
47797         * tests/test-quotearg.c (result_strings, inputs, results_g)
47798         (flag_results, locale_results): Test it by adding a new string to
47799         each test group.
47800         (compare_strings): Test new string.
47801
47802 2008-02-13  Eric Blake  <ebb9@byu.net>
47803
47804         Avoid trigraph quoting in default output.
47805         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
47806         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
47807         unless explicitly requested.
47808         * tests/test-quotearg.c (flag_results, main): Add additional tests.
47809
47810 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
47811
47812         Don't rely on signed integer overflowing to negative value.
47813         * lib/getugroups.c (getugroups): Include <limits.h>.
47814         Instead, compare against INT_MAX, and increment only if the test passes.
47815
47816 2008-02-13  Jim Meyering  <meyering@redhat.com>
47817         and Eric Blake  <ebb9@byu.net>
47818
47819         Avoid shadowing warning and compile errors on Linux.
47820         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
47821         forwarding macros on Linux.
47822         (dcgettext): Define a stub, for Linux.
47823         (results_g, main): Avoid warnings.
47824
47825 2008-02-12  Eric Blake  <ebb9@byu.net>
47826
47827         Silence warning in last patch.
47828         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
47829
47830         Quotearg part 4: add tests, fix c-maybe colon quoting.
47831         * lib/quotearg.h: Improve documentation.
47832         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
47833         escapes when adding outer quotes.  When quoting trigraphs, use
47834         valid C notation.  When quoting NUL, omit extra characters if next
47835         character is not digit.  Alter prototype.
47836         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
47837         callers.
47838         * modules/quotearg-tests: New module.
47839         * tests/test-quotearg.c: New test.
47840
47841 2008-02-07  Eric Blake  <ebb9@byu.net>
47842
47843         Quotearg part 3: add flag to control outer quote elision.
47844         * lib/quotearg.h (c_maybe_quoting_style): New style.
47845         (enum quoting_flags): Better documentation of flags.
47846         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
47847         c-maybe style.
47848         (quotearg_buffer_restyled): Handle new flag to elide outer
47849         quotes.
47850
47851         Quotearg part 2: add flag that can control NUL elision.
47852         * lib/quotearg.h (set_quoting_flags): New prototype.
47853         * lib/quotearg.c (struct quoting_options): Add flag field.
47854         (set_quoting_flags): New function.
47855         (quotearg_buffer_restyled): Add flags parameter.
47856         (quotearg_alloc_mem): Set the flag if length cannot be returned.
47857         (quotearg_n_options): Set the flag, since length cannot be
47858         returned.
47859         (quoting_options_from_style): Default flags correctly.
47860
47861         Quotearg part 1: more wrappers, restore quotearg_char state.
47862         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
47863         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
47864         (quotearg_colon_mem): New wrappers.
47865         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
47866         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
47867         functions.
47868         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
47869         (quotearg_colon_mem): New functions.
47870
47871 2008-02-11  Bruno Haible  <bruno@clisp.org>
47872
47873         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
47874         library in the current directory: it does not work with parallel make.
47875         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47876
47877 2008-02-11  Bruno Haible  <bruno@clisp.org>
47878
47879         * .gitattributes: New file.
47880
47881 2008-02-11  Jim Meyering  <meyering@redhat.com>
47882
47883         useless-if-before-free: Fix reversed exit values.
47884         * build-aux/useless-if-before-free: Use correct values
47885         for EXIT_MATCH and EXIT_NO_MATCH.
47886
47887         * build-aux/useless-if-before-free: Close stdout carefully.
47888
47889 2008-02-10  Bruno Haible  <bruno@clisp.org>
47890
47891         New module 'git-merge-changelog'.
47892         * modules/git-merge-changelog: New file.
47893         * lib/git-merge-changelog.c: New file.
47894
47895 2008-02-10  Jim Meyering  <meyering@redhat.com>
47896
47897         useless-if-before-free: New option: --list (-l).
47898
47899         useless-if-before-free: Don't exit immediately upon open failure.
47900         * build-aux/useless-if-before-free: Exit 2 for errors.
47901         Upon failure to open a file, don't exit immediately.
47902         Rather, just warn and continue with any remaining files.
47903
47904 2008-02-10  Bruno Haible  <bruno@clisp.org>
47905
47906         New abstract list operation 'node_set_value'.
47907         * lib/gl_list.h (gl_list_node_set_value): New function.
47908         (struct gl_list_implementation): New field node_set_value.
47909         * lib/gl_list.c (gl_list_node_set_value): New function.
47910         * lib/gl_array_list.c (gl_array_node_set_value): New function.
47911         (gl_array_list_implementation): Update.
47912         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
47913         (gl_carray_list_implementation): Update.
47914         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
47915         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
47916         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
47917         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
47918         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
47919         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
47920         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
47921         Update.
47922         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
47923         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
47924         (gl_sublist_list_implementation): Update.
47925
47926 2008-02-10  Bruno Haible  <bruno@clisp.org>
47927
47928         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
47929         Needed when ELEMENT is #defined to 'some_type *'.
47930
47931 2008-02-10  Jim Meyering  <meyering@redhat.com>
47932
47933         New script and module: useless-if-before-free
47934         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
47935         * build-aux/useless-if-before-free: New file.
47936         * modules/useless-if-before-free: New file.
47937
47938         * build-aux/gitlog-to-changelog: Use committer date, not author date.
47939
47940         xstrtol_error: Fix typo.
47941         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
47942         s/exit_failure/exit_status/.
47943
47944 2008-02-09  Jim Meyering  <meyering@redhat.com>
47945
47946         New script and module: gitlog-to-changelog
47947         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
47948         * modules/gitlog-to-changelog: New file.
47949         * build-aux/gitlog-to-changelog: New file.
47950
47951 2008-02-08  Jim Meyering  <meyering@redhat.com>
47952
47953         Avoid two "parameter unused" warnings.
47954         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
47955         Mark "st" as used.
47956
47957         Use "git COMMAND", not "git-COMMAND".
47958         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
47959         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
47960         * build-aux/git-version-gen: Use "git status", not "git-status".
47961
47962 2008-02-07  Bruno Haible  <bruno@clisp.org>
47963
47964         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
47965         Avoids a crash on Windows Vista.
47966         Reported by Adam Strzelecki <ono@java.pl> via
47967         Simon Josefsson <simon@josefsson.org>.
47968
47969 2008-02-06  Bruno Haible  <bruno@clisp.org>
47970
47971         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
47972         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
47973         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
47974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
47975         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
47976         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
47977         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
47978         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
47979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
47980         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
47981         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
47982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
47983         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
47984         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
47985         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
47986         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
47987         left-adjust flag.
47988         * tests/test-snprintf-posix.h (test_function): Likewise.
47989         * tests/test-sprintf-posix.h (test_function): Likewise.
47990         * tests/test-vasprintf-posix.c (test_function): Likewise.
47991         * doc/posix-functions/fprintf.texi: Update.
47992         * doc/posix-functions/printf.texi: Update.
47993         * doc/posix-functions/snprintf.texi: Update.
47994         * doc/posix-functions/sprintf.texi: Update.
47995         * doc/posix-functions/vfprintf.texi: Update.
47996         * doc/posix-functions/vprintf.texi: Update.
47997         * doc/posix-functions/vsnprintf.texi: Update.
47998         * doc/posix-functions/vsprintf.texi: Update.
47999         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48000
48001 2008-02-06  Bruno Haible  <bruno@clisp.org>
48002
48003         Fix bug introduced on 2008-01-26.
48004         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
48005
48006 2008-02-06  Bruno Haible  <bruno@clisp.org>
48007
48008         Fix bug introduced on 2007-06-10.
48009         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
48010         !NEED_PRINTF_FLAG_ZERO.
48011
48012 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
48013
48014         getloadavg: use libperfstat on AIX5
48015         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
48016
48017 2008-02-03  Bruno Haible  <bruno@clisp.org>
48018
48019         * lib/diffseq.h: Add comments about required #includes.
48020         Reported by Michael Biggs <gnulib@doubleplum.net>.
48021
48022 2008-02-01  Bruno Haible  <bruno@clisp.org>
48023
48024         * users.txt: Add gnuit.
48025
48026 2008-01-31  Bruno Haible  <bruno@clisp.org>
48027
48028         * lib/md4.c (set_uint32): Mark as inline.
48029         * lib/md5.c (set_uint32): Likewise.
48030         * lib/sha1.c (set_uint32): Likewise.
48031         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
48032         * m4/md5.m4 (gl_MD5): Likewise.
48033         * m4/sha1.m4 (gl_SHA1): Likewise.
48034
48035 2008-01-31  Jim Meyering  <meyering@redhat.com>
48036
48037         Use "sizeof VAR", rather than a literal "4".
48038         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
48039         * lib/md4.c (md4_read_ctx): Likewise.
48040         * lib/sha1.c (sha1_read_ctx): Likewise.
48041
48042 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48043
48044         * tests/test-sha1.c: New file, based on test-md5.c.
48045
48046         * modules/crypto/sha1-tests: New file.
48047
48048 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48049
48050         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
48051
48052 2008-01-31  Jim Meyering  <meyering@redhat.com>
48053
48054         Prefer "sizeof v" over the equivalent "4".
48055         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
48056         * lib/md5.c (set_uint32): Likewise.
48057         * lib/sha1.c (set_uint32): Likewise.
48058
48059 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48060
48061         * lib/sha1.c (set_uint32): Mark function as static.
48062
48063 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48064
48065         md2: clarify comments to say that alignment is not required.
48066         * lib/md2.h: Remove warning about alignment in comment.
48067         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
48068         never been required.
48069
48070 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48071
48072         md4: adapt alignment constraint fix from sha1.
48073         * lib/md4.c (set_uint32): New function, from sha1.c
48074         (md4_read_ctx): Use it.
48075         (md4_finish_ctx): Doc fix.
48076         * lib/md4.h: Doc fix.
48077
48078 2008-01-31  Simon Josefsson  <simon@josefsson.org>
48079
48080         md5: adapt alignment constraint fix from sha1.
48081         * lib/md5.c (set_uint32): New function, from sha1.c
48082         (md5_read_ctx): Use it.
48083         (md5_finish_ctx): Doc fix.
48084         * lib/md5.h: Doc fix.
48085
48086 2008-01-30  Peter Palfrader  <weasel@debian.org>
48087
48088         sha1: remove the result buffer alignment constraint
48089         * lib/sha1.c (set_uint32): New function.
48090         (sha1_read_ctx): Rewrite to remove the result buffer alignment
48091         constraint.
48092         (sha1_finish_ctx): Remove comment warning about alignment constraint.
48093         * lib/sha1.h: Likewise.
48094
48095 2008-01-30  Andreas Schwab  <schwab@suse.de>
48096             Bruno Haible  <bruno@clisp.org>
48097
48098         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
48099         correct definition of LDBL_MIN_EXP.
48100
48101 2008-01-30  Karl Berry  <karl@gnu.org>
48102
48103         * config/srclist-update: try to preserve x bit on updates.
48104         * config/srclistvars.sh: update for karl.
48105
48106 2008-01-29  Jim Meyering  <meyering@redhat.com>
48107
48108         vasnprintf.c: Avoid warning about unused label
48109         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
48110         "overflow" label definition and associated code with the
48111         same cpp condition that guards the sole use of that label.
48112
48113 2008-01-26  Bruno Haible  <bruno@clisp.org>
48114
48115         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
48116         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
48117         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
48118         * lib/isnanl-nolibm.h (isnanl): Likewise.
48119         Reported by Paul Eggert <eggert@cs.ucla.edu>.
48120
48121 2008-01-26  Bruno Haible  <bruno@clisp.org>
48122
48123         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
48124         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
48125
48126 2008-01-26  Bruno Haible  <bruno@clisp.org>
48127
48128         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
48129         GCC >= 4.0 built-in.
48130         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
48131
48132 2008-01-26  Bruno Haible  <bruno@clisp.org>
48133
48134         Rename isnan, applicable to 'double' only, to isnand.
48135         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
48136         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
48137         (configure.ac): Update.
48138         (Include): Replace "isnan.h" with "isnand.h".
48139         * m4/isnand.m4: Renamed from m4/isnan.m4.
48140         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
48141         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
48142         instead of isnan.c.
48143         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
48144         instead of HAVE_ISNAN_IN_LIBC.
48145         (isnand): Renamed from isnan.
48146         * lib/isnand.c: New file.
48147         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
48148         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
48149         (Makefile.am): Update.
48150         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
48151         Include isnand.h instead of isnan.h.
48152         (main): Test isnand instead of isnan.
48153         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
48154         isnan-nolibm.
48155         * modules/frexp (Depends-on): Likewise.
48156         * modules/frexp-tests (Depends-on): Likewise.
48157         * modules/frexp-nolibm (Depends-on): Likewise.
48158         * modules/frexp-nolibm-tests (Depends-on): Likewise.
48159         * modules/isfinite (Depends-on): Likewise.
48160         * modules/round-tests (Depends-on): Likewise.
48161         * modules/signbit (Depends-on): Likewise.
48162         * modules/signbit-tests (Depends-on): Likewise.
48163         * modules/snprintf-posix (Depends-on): Likewise.
48164         * modules/sprintf-posix (Depends-on): Likewise.
48165         * modules/trunc-tests (Depends-on): Likewise.
48166         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
48167         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
48168         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
48169         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
48170         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
48171         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
48172         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
48173         * modules/vasnprintf-posix (Depends-on): Likewise.
48174         * modules/vasprintf-posix (Depends-on): Likewise.
48175         * modules/vfprintf-posix (Depends-on): Likewise.
48176         * modules/vsnprintf-posix (Depends-on): Likewise.
48177         * modules/vsprintf-posix (Depends-on): Likewise.
48178         * lib/frexp.c: Include isnand.h instead of isnan.h.
48179         (ISNAN): Set to isnand instead of isnan.
48180         * lib/isfinite.c: Include isnand.h instead of isnan.h.
48181         (gl_isfinited): Use isnand instead of isnan.
48182         * lib/signbitd.c: Include isnand.h instead of isnan.h.
48183         (gl_signbitd): Use isnand instead of isnan.
48184         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
48185         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
48186         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
48187         (main): Use isnand instead of isnan.
48188         * tests/test-round1.c: Include isnand.h.
48189         (main): Use isnand instead of isnan.
48190         * tests/test-round2.c: Include isnand.h instead of isnan.h.
48191         (ISNAN): Set to isnand instead of isnan.
48192         * tests/test-trunc1.c: Include isnand.h.
48193         (main): Use isnand instead of isnan.
48194         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
48195         (equal): Use isnand instead of isnan.
48196         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
48197         isnand-nolibm.
48198         * NEWS: Mention the change.
48199
48200 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
48201             Bruno Haible  <bruno@clisp.org>
48202
48203         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
48204         the GCC builtins for signbits are present and set
48205         REPLACE_SIGNBIT_USING_GCC if so.
48206         * lib/math.in.h (signbit): Define using GCC builtins if
48207         REPLACE_SIGNBIT_USING_GCC is set.
48208         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
48209         REPLACE_SIGNBIT_USING_GCC.
48210         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
48211
48212 2008-01-25  Jim Meyering  <meyering@redhat.com>
48213
48214         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
48215         * lib/poll.c: Include <config.h>, not "config.h".
48216         * tests/test-getaddrinfo.c: Likewise.
48217
48218 2008-01-25  Simon Josefsson  <simon@josefsson.org>
48219
48220         * modules/sockets-tests: New file.
48221
48222 2008-01-24  Simon Josefsson  <simon@josefsson.org>
48223
48224         * modules/sockets: New module, can be used to call WSA_Startup and
48225         WSA_Cleanup when needed.
48226
48227         * lib/sockets.h, lib/sockets.c: New files.
48228
48229         * m4/sockets.m4: New file.
48230
48231         * tests/test-sockets.c: New file.
48232
48233 2008-01-19  Bruno Haible  <bruno@clisp.org>
48234
48235         * doc/posix-headers: Renamed from doc/headers.
48236         * doc/posix-functions: Renamed from doc/functions.
48237         * doc/gnulib.texi: Update.
48238
48239 2008-01-19  Bruno Haible  <bruno@clisp.org>
48240
48241         * doc/glibc-functions/strcasestr.texi: Include contents of
48242         doc/functions/strcasestr.texi, fixing the list of platforms.
48243         * doc/functions/strcasestr.texi: Remove file.
48244
48245 2008-01-19  Bruno Haible  <bruno@clisp.org>
48246
48247         * doc/glibc-functions/memmem.texi: Include contents of
48248         doc/functions/memmem.texi.
48249         * doc/functions/memmem.texi: Remove file.
48250
48251 2008-01-18  Bruno Haible  <bruno@clisp.org>
48252
48253         * doc/glibc-functions/*.texi: New files.
48254         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
48255         to use the new files.
48256
48257 2008-01-17  Bruno Haible  <bruno@clisp.org>
48258
48259         * tests/test-gethostname.c (main): Fix printf statement.
48260
48261 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48262
48263         * modules/gethostname-tests: New file.
48264
48265         * tests/test-gethostname.c: New file.
48266
48267 2008-01-17  Simon Josefsson  <simon@josefsson.org>
48268
48269         * lib/gethostname.c: Include string.h unconditionally, strncpy is
48270         used by the UNAME case.  Reported by Bruno Haible
48271         <bruno@clisp.org>.
48272
48273 2008-01-17  Eric Blake  <ebb9@byu.net>
48274
48275         Convert c-strcasestr to be more efficient.
48276         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
48277         (Depends-on): Add c-strcase, remove malloca, strnlen.
48278         * tests/test-c-strcasestr.c (main): Enhance test.
48279         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
48280
48281 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
48282
48283         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
48284         Use it in creating po/Makevars.
48285
48286 2008-01-15  Simon Josefsson  <simon@josefsson.org>
48287
48288         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
48289         Applications that requires it should initialize libgcrypt
48290         manually.
48291
48292 2008-01-16  Simon Josefsson  <simon@josefsson.org>
48293
48294         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
48295
48296 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
48297
48298         Fix problem with getdate on mingw32 reported by Simon Josefsson
48299         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
48300         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
48301         tzname", when deciding whether to declare tzname.
48302         * lib/strftime.c (tzname): Likewise.
48303
48304 2008-01-15  Bruno Haible  <bruno@clisp.org>
48305
48306         Work around a MacOS X 10.5 bug in frexpl().
48307         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
48308         * doc/functions/frexpl.texi: Document the bug.
48309         Reported by Elias Pipping <pipping@gentoo.org>.
48310
48311 2008-01-14  Eric Blake  <ebb9@byu.net>
48312
48313         Touch up previous patch.
48314         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
48315         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
48316
48317         Convert strcasestr module to use Two-Way algorithm.
48318         * modules/strcasestr-simple: New module, based on the old
48319         strcasestr, but with Two-Way rather than KMP.
48320         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
48321         * lib/string.in.h (rpl_strcasestr): Declare.
48322         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
48323         performance.
48324         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
48325         * modules/string (Makefile.am): Support strcasestr.
48326         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
48327         * modules/strcasestr-tests (Depends-on): Check for alarm.
48328         * tests/test-strcasestr.c: Augment test.
48329         * lib/str-two-way.h: Clean up stray macro.
48330         * NEWS: Document new module.
48331         * MODULES.html.sh (string handling): Likewise.
48332         * doc/functions/strcasestr.texi: New file.
48333         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
48334         here, since it is not a POSIX function.
48335
48336 2008-01-14  Colin Watson  <cjwatson@debian.org>
48337             Bruno Haible  <bruno@clisp.org>
48338
48339         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
48340         works fine; if not, set REPLACE_STRSIGNAL.
48341         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
48342         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48343         REPLACE_STRSIGNAL.
48344         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
48345         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
48346         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
48347
48348 2008-01-14  Bruno Haible  <bruno@clisp.org>
48349
48350         * modules/strsignal (Include): Change to <string.h>.
48351
48352 2008-01-14  Colin Watson  <cjwatson@debian.org>
48353
48354         * modules/argp (Notice): Add a notice recommending to change
48355         XGETTEXT_OPTIONS.
48356         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
48357
48358 2008-01-13  Colin Watson  <cjwatson@debian.org>
48359
48360         * modules/strsignal-tests: New file.
48361         * tests/test-strsignal.c: New file.
48362
48363         * lib/strsignal.c: New file, from glibc with modifications.
48364         * lib/siglist.h: New file, from glibc with modifications.
48365         * lib/string.in.h (strsignal): New declaration.
48366         * m4/strsignal.m4: New file.
48367         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
48368         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
48369         * modules/strsignal: New file.
48370         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
48371         HAVE_DECL_STRSIGNAL.
48372
48373 2008-01-13  Bruno Haible  <bruno@clisp.org>
48374
48375         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
48376         locale encoding is not ASCII. Needed for OpenBSD 4.0.
48377         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
48378         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
48379
48380 2008-01-13  Bruno Haible  <bruno@clisp.org>
48381
48382         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
48383         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
48384         * lib/argp.h (__attribute__): Likewise.
48385         * lib/c-stack.c (__attribute__): Likewise.
48386         * lib/error.h (__attribute__): Likewise.
48387         * lib/fts.c (__attribute__): Likewise.
48388         * lib/openat.h (__attribute__): Likewise.
48389         * lib/stdio.in.h (__attribute__): Likewise.
48390         * lib/string.in.h (__attribute__): Likewise.
48391         * lib/utimens.c (__attribute__): Likewise.
48392         * lib/vasnprintf.h (__attribute__): Likewise.
48393         * lib/xalloc.h (__attribute__): Likewise.
48394         * lib/xprintf.h (__attribute__): Likewise.
48395         * lib/xstrtol.h (__attribute__): Likewise.
48396         * lib/xvasprintf.h (__attribute__): Likewise.
48397
48398 2008-01-12  Bruno Haible  <bruno@clisp.org>
48399
48400         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
48401         * doc/glibc-headers/a.out.texi: New file.
48402         * doc/glibc-headers/aliases.texi: New file.
48403         * doc/glibc-headers/alloca.texi: New file.
48404         * doc/glibc-headers/ar.texi: New file.
48405         * doc/glibc-headers/argp.texi: New file.
48406         * doc/glibc-headers/argz.texi: New file.
48407         * doc/glibc-headers/byteswap.texi: New file.
48408         * doc/glibc-headers/crypt.texi: New file.
48409         * doc/glibc-headers/endian.texi: New file.
48410         * doc/glibc-headers/envz.texi: New file.
48411         * doc/glibc-headers/err.texi: New file.
48412         * doc/glibc-headers/error.texi: New file.
48413         * doc/glibc-headers/execinfo.texi: New file.
48414         * doc/glibc-headers/fpu_control.texi: New file.
48415         * doc/glibc-headers/fstab.texi: New file.
48416         * doc/glibc-headers/fts.texi: New file.
48417         * doc/glibc-headers/getopt.texi: New file.
48418         * doc/glibc-headers/ieee754.texi: New file.
48419         * doc/glibc-headers/ifaddrs.texi: New file.
48420         * doc/glibc-headers/libintl.texi: New file.
48421         * doc/glibc-headers/mcheck.texi: New file.
48422         * doc/glibc-headers/mntent.texi: New file.
48423         * doc/glibc-headers/obstack.texi: New file.
48424         * doc/glibc-headers/paths.texi: New file.
48425         * doc/glibc-headers/printf.texi: New file.
48426         * doc/glibc-headers/pty.texi: New file.
48427         * doc/glibc-headers/resolv.texi: New file.
48428         * doc/glibc-headers/shadow.texi: New file.
48429         * doc/glibc-headers/sysexits.texi: New file.
48430         * doc/glibc-headers/ttyent.texi: New file.
48431
48432 2008-01-12  Jim Meyering  <meyering@redhat.com>
48433
48434         announce-gen: emit Gnulib's git-based version string.
48435         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
48436         New option --gnulib-version=V, where V is expected to be
48437         the output of running git describe in the gnulib directory.
48438         (get_tool_versions): Request feedback on xdelta.  I suspect it's
48439         not useful, and plan to stop publishing an xdelta file with each
48440         coreutils release.
48441
48442         * build-aux/announce-gen: Also check for lzma-compressed files.
48443
48444 2008-01-11  Bruno Haible  <bruno@clisp.org>
48445
48446         * tests/test-memmem.c (main): Increase maximum allowed time.
48447         * tests/test-strstr.c (main): Likewise.
48448
48449 2008-01-11  Bruno Haible  <bruno@clisp.org>
48450
48451         * doc/functions/memmem.texi: Add more precisions about platforms.
48452         * doc/functions/strstr.texi: Likewise.
48453
48454 2008-01-10  Eric Blake  <ebb9@byu.net>
48455
48456         * m4/strstr.m4: Delete cruft from copy-n-paste.
48457         Reported by Bruno Haible.
48458
48459 2008-01-10  Bruno Haible  <bruno@clisp.org>
48460
48461         Make c-strstr rely on strstr.
48462         * lib/c-strstr.c: Don't include str-kmp.h.
48463         (c_strstr): Define in terms of strstr.
48464         * modules/c-strstr (Files): Remove lib/str-kmp.h.
48465         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
48466
48467 2008-01-10  Bruno Haible  <bruno@clisp.org>
48468
48469         * doc/gnulib.texi (String Functions in C Locale): New section.
48470         * doc/c-ctype.texi: New file.
48471         * doc/c-strcase.texi: New file.
48472         * doc/c-strcaseeq.texi: New file.
48473         * doc/c-strcasestr.texi: New file.
48474         * doc/c-strstr.texi: New file.
48475         * doc/c-strtod.texi: New file.
48476         * doc/c-strtold.texi: New file.
48477
48478 2008-01-10  Eric Blake  <ebb9@byu.net>
48479
48480         * lib/relocatable.h: Fix a comment.
48481
48482 2008-01-10  Eric Blake  <ebb9@byu.net>
48483
48484         Share two-way algorithm.
48485         * lib/str-two-way.h: New file, merged from...
48486         * lib/memmem.c: ...here...
48487         * lib/strstr.c: ...and here.
48488         * modules/memmem (Files): Use it.
48489         * modules/strstr (Files): Likewise.
48490
48491         Avoid quadratic strstr implementations.
48492         * lib/strstr.c: New file.
48493         * m4/strstr.m4: Likewise.
48494         * modules/strstr: Likewise.
48495         * modules/strstr-tests: Likewise.
48496         * tests/test-strstr.c: Likewise.
48497         * lib/string.in.h (rpl_strstr): Declare.
48498         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
48499         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
48500         * modules/string (Makefile.am): Likewise.
48501         * MODULES.html.sh (string handling): Mention new module.
48502         * doc/functions/strstr.texi (strstr): Document the bug.
48503
48504 2008-01-10  Bruno Haible  <bruno@clisp.org>
48505
48506         * lib/relocatable.h (relocate): State whether result is freshly
48507         allocated or not.
48508         * lib/relocatable.c (relocate): Return a freshly allocated string
48509         instead of a pointer to a privately held string.
48510         Reported by Sylvain Beucler <beuc@gnu.org>.
48511
48512 2008-01-10  Colin Watson  <cjwatson@debian.org>
48513
48514         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
48515         s/S_ISNLK/S_ISLNK/.
48516
48517 2008-01-09  Bruno Haible  <bruno@clisp.org>
48518
48519         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
48520         and other files.
48521         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
48522         if it's only a guess.
48523         * modules/memmem: Simplify by depending on memmem-simple.
48524
48525 2008-01-09  Bruno Haible  <bruno@clisp.org>
48526
48527         Work around OpenBSD 4.0 tdelete() bug.
48528         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
48529         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
48530         macros and don't redefine the enum values.
48531         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
48532         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
48533         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
48534
48535 2008-01-09  Bruno Haible  <bruno@clisp.org>
48536
48537         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
48538         (main): Don't perform the tests if setlocale did not install a UTF-8
48539         locale. Needed on OpenBSD 4.0.
48540         * modules/wcwidth-tests (Depends-on): Add localcharset.
48541
48542 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
48543
48544         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
48545         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
48546         * NEWS: announce this.
48547         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
48548
48549 2008-01-09  Simon Josefsson  <simon@josefsson.org>
48550         and Eric Blake  <ebb9@byu.net>
48551
48552         Add memmem-simple module.
48553         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
48554         (gl_FUNC_MEMMEM): Separate performance from presence checks.
48555         * modules/memmem-simple: New file.
48556         * modules/memmem (Description): Tweak.
48557         * MODULES.html.sh (string handling): Mention new module.
48558         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
48559         addressed by memmem-simple.
48560         * NEWS: Document the difference.
48561
48562 2008-01-09  Eric Blake  <ebb9@byu.net>
48563
48564         Give gcc some memmem optimization hints.
48565         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
48566         (strcasestr): Declare as pure.
48567         * modules/memmem (Maintainer): Claim my implementation.
48568
48569 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48570
48571         Support AIX 6.1 and higher.
48572         * build-aux/config.libpath: Likewise.
48573         * build-aux/config.rpath: Likewise.
48574
48575 2008-01-08  Jim Meyering  <meyering@redhat.com>
48576             Bruno Haible  <bruno@clisp.org>
48577
48578         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
48579         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
48580         Reported by Peter Fales in
48581         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
48582
48583 2008-01-08  Bruno Haible  <bruno@clisp.org>
48584
48585         * modules/unictype/category-of (Depends-on): Add
48586         unictype/category-none.
48587         * modules/unictype/category-and-tests (Depends-on): Add
48588         unictype/category-{L,N,Lu,Nd}.
48589         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
48590         * modules/unictype/category-or-tests (Depends-on): Add
48591         unictype/category-{L,N}.
48592         * modules/unictype/category-name-tests (Depends-on): Add
48593         unictype/category-{Z,Nl}.
48594         Reported by Simon Josefsson.
48595
48596 2008-01-08  Bruno Haible  <bruno@clisp.org>
48597
48598         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
48599         convention better.
48600         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
48601         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
48602         Reported by Peter Miller <millerp@canb.auug.org.au>.
48603
48604 2008-01-08  Eric Blake  <ebb9@byu.net>
48605
48606         Rewrite memmem to guarantee linear complexity without malloc.
48607         * lib/memmem.c (memmem): Use Two-Way rather than
48608         Knuth-Morris-Pratt, to allow O(1) space usage.
48609         (critical_factorization, two_way_short_needle)
48610         (two_way_long_needle): New functions.
48611         (knuth_morris_pratt): Delete.
48612         * modules/memmem (Depends-on): No longer need malloca or stdbool.
48613         Add stdint.
48614         * tests/test-memmem.c (main): Add tests for periodic needle and
48615         sublinear performance.
48616         * doc/functions/memmem.texi (memmem): Document other deficiencies
48617         in cygwin and older glibc.
48618
48619 2008-01-08  Bruno Haible  <bruno@clisp.org>
48620
48621         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
48622         augmentation.
48623
48624 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
48625
48626         Add a configure time option: --disable-acl.
48627         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
48628         AC_ARG_ENABLE(acl).
48629
48630 2008-01-06  Simon Josefsson  <simon@josefsson.org>
48631
48632         * tests/test-localename.c: Don't include obsolete "setenv.h".
48633
48634         * modules/localename-tests (Depends-on): Need unsetenv.
48635
48636 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48637
48638         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
48639
48640 2008-01-06  Colin Watson  <cjwatson@debian.org>
48641
48642         * users.txt: Add man-db.
48643
48644 2008-01-07  Bruno Haible  <bruno@clisp.org>
48645
48646         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
48647         previous section name.
48648
48649 2008-01-07  Bruno Haible  <bruno@clisp.org>
48650
48651         * lib/progname.c (set_program_name): Don't strip off a leading
48652         "lt-" prefix outside a .libs directory.
48653         Suggested by Paul Eggert.
48654
48655 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
48656             Bruno Haible  <bruno@clisp.org>
48657
48658         Improve memory cleanup in 'relocatable' module.
48659         * lib/relocatable.h (compute_curr_prefix): Change return type to
48660         'char *'.
48661         * lib/relocatable.c (compute_curr_prefix): Change return type to
48662         'char *'. Free curr_installdir after use.
48663         (relocate): Free curr_prefix_better after use.
48664         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
48665
48666 2008-01-01  Bruno Haible  <bruno@clisp.org>
48667
48668         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
48669         failure on older glibc systems.
48670         Reported by Peter Fales <psfales@alcatel-lucent.com>.
48671
48672 2008-01-05  Eric Blake  <ebb9@byu.net>
48673
48674         Avoid quadratic system memmem.
48675         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
48676         Reported by Ralf Wildenhues.
48677
48678         Fix memmem test for mingw.
48679         * modules/memmem-tests (configure.ac): Check for alarm.
48680         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
48681         it.
48682         * doc/functions/memmem.texi: New file.
48683         * doc/gnulib.texi (Function Substitutes): Add memmem.
48684         Reported by Bruno Haible.
48685
48686 2008-01-04  Bruno Haible  <bruno@clisp.org>
48687
48688         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
48689         Require gl_HEADER_STRINGS_H_DEFAULTS, not
48690         gl_HEADER_STRING_H_DEFAULTS.
48691
48692 2008-01-04  Eric Blake  <ebb9@byu.net>
48693
48694         Shorten duration of memmem test.
48695         * tests/test-memmem.c (main): Use alarm to declare failure if test
48696         is taking too long.
48697         Reported by Ralf Wildenhues.
48698
48699 2007-12-21  Simon Josefsson  <simon@josefsson.org>
48700
48701         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
48702         string, needed by strerror.
48703
48704 2008-01-03  Colin Watson  <cjwatson@debian.org>
48705             Bruno Haible  <bruno@clisp.org>
48706
48707         * doc/gnulib-tool.texi (Localization): New section.
48708
48709 2008-01-02  Bruno Haible  <bruno@clisp.org>
48710
48711         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
48712         variables to 'unsigned char *' type.
48713         Reported by Paul Eggert.
48714
48715 2008-01-02  Jim Meyering  <jim@meyering.net>
48716
48717         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
48718
48719 2007-12-31  Jim Meyering  <jim@meyering.net>
48720
48721         Avoid use of private FTS type name.
48722         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
48723
48724 2007-12-30  Karl Berry  <karl@gnu.org>
48725
48726         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
48727         work around defect in Texinfo and/or the standalone Info browser.
48728
48729 2007-12-30  Bruno Haible  <bruno@clisp.org>
48730
48731         Unify 5 copies of the KMP code.
48732         * lib/str-kmp.h: New file.
48733         * lib/c-strcasestr.c: Include str-kmp.h.
48734         (knuth_morris_pratt): Remove function.
48735         (c_strcasestr): Update.
48736         * lib/c-strstr.c: Include str-kmp.h.
48737         (knuth_morris_pratt): Remove function.
48738         (c_strcasestr): Update.
48739         * lib/mbscasestr.c: Include str-kmp.h.
48740         (knuth_morris_pratt_unibyte): Remove function.
48741         * lib/mbsstr.c: Include str-kmp.h.
48742         (knuth_morris_pratt_unibyte): Remove function.
48743         * lib/strcasestr.c: Include str-kmp.h.
48744         (knuth_morris_pratt): Remove function.
48745         (strcasestr): Update.
48746         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
48747         * modules/c-strstr (Files): Likewise.
48748         * modules/mbscasestr (Files): Likewise.
48749         * modules/mbsstr (Files): Likewise.
48750         * modules/strcasestr (Files): Likewise.
48751         Suggested by Paul Eggert.
48752
48753 2007-12-30  Bruno Haible  <bruno@clisp.org>
48754
48755         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
48756         defined.
48757
48758 2007-12-30  Bruno Haible  <bruno@clisp.org>
48759
48760         * lib/xmalloca.h: Include xalloc.h.
48761         (xnmalloca): New macro.
48762
48763 2007-12-30  Bruno Haible  <bruno@clisp.org>
48764
48765         * lib/malloca.h (nmalloca): New macro.
48766         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
48767         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
48768         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
48769         knuth_morris_pratt_multibyte): Likewise.
48770         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
48771         knuth_morris_pratt_multibyte): Likewise.
48772         * lib/memmem.c (knuth_morris_pratt): Likewise.
48773         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
48774
48775 2007-12-25  Bruno Haible  <bruno@clisp.org>
48776
48777         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
48778         * lib/glob.c: Don't include openat.h.
48779         (link_exists2_p): Add back the code that deals with the
48780         !GLOB_ALTDIRFUNC case.
48781         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
48782         let it do the filename concatenation.
48783         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
48784         * modules/glob (Depends-on): Remove openat.
48785
48786 2007-12-31  Bruno Haible  <bruno@clisp.org>
48787
48788         * modules/dirfd (License): Change to LGPLv2+.
48789         Approved by Jim Meyering.
48790
48791 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
48792
48793         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
48794         when multiplying M by sizeof (size_t).
48795
48796 2007-12-10  Martin Lambers  <marlam@marlam.de>
48797
48798         Override getpagesize on mingw.
48799         * lib/getpagesize.c: New file.
48800         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
48801         * modules/getpagesize (Files): Add lib/getpagesize.c.
48802         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
48803         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48804         REPLACE_GETPAGESIZE.
48805         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
48806
48807 2007-12-25  Bruno Haible  <bruno@clisp.org>
48808
48809         * modules/localcharset (Notice): New field.
48810         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
48811         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
48812
48813 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
48814             Bruno Haible  <bruno@clisp.org>
48815
48816         Avoid using the syntax symbol() in formatted documentation.
48817         * MODULES.html.sh (func_module): When replacing symbol() with a
48818         hyperlink, remove the parentheses. Show an error if some remain.
48819         Recognize and render the '...' syntax.
48820         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
48821         Rework. Add paragraph about GCC's inlining.
48822         * doc/alloca.texi: Likewise.
48823         * doc/error.texi: Remove parentheses from symbol reference.
48824         * doc/gnulib-intro.texi: Likewise.
48825         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
48826         * modules/fnmatch (Description): Reword to say "the ... function".
48827         * modules/full-read (Description): Likewise.
48828         * modules/full-write (Description): Likewise.
48829         * modules/safe-read (Description): Likewise.
48830         * modules/safe-write (Description): Likewise.
48831         * modules/strchrnul (Description): Likewise.
48832         * modules/trim (Description): Likewise.
48833         * modules/error (Description): Remove parentheses from symbol
48834         references.
48835         * modules/verror (Description): Likewise.
48836         Reported by Karl Berry.
48837
48838 2007-12-25  Bruno Haible  <bruno@clisp.org>
48839
48840         Fixup after 2007-10-16 commit.
48841         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
48842
48843 2007-12-24  Bruno Haible  <bruno@clisp.org>
48844
48845         Make --enable-relocatable work with DESTDIR.
48846         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
48847         to compute installdir from destprog.
48848         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
48849         also set the RELOC_DESTDIR variable.
48850         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48851
48852 2007-12-24  Bruno Haible  <bruno@clisp.org>
48853
48854         Fix link error due to xalloc_die().
48855         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
48856         of xreadlink.
48857         * lib/relocwrapper.c: Update comments.
48858         * build-aux/install-reloc: Remove xreadlink.c from file list.
48859         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
48860         xreadlink.c.
48861         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48862
48863 2007-12-24  Bruno Haible  <bruno@clisp.org>
48864
48865         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
48866         * lib/setenv.h: Remove file.
48867         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
48868         lib/setenv.h.
48869         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
48870         (Depends-on): Add stdlib.
48871         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
48872         gl_FUNC_UNSETENV.
48873         (Include): Replace setenv.h with <stdlib.h>.
48874         * modules/unsetenv: New file.
48875         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
48876         * lib/unsetenv.c: Include <stdlib.h> first.
48877         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
48878         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
48879         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
48880         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
48881         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
48882         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
48884         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
48885         * doc/functions/unsetenv.texi: Update.
48886         * modules/xsetenv (Depends-on): Add unsetenv.
48887         * modules/getdate (Depends-on): Likewise.
48888         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
48889         * lib/xsetenv.c: Don't include setenv.h.
48890         * lib/getdate.y: Likewise.
48891         * lib/relocwrapper.c: Likewise.
48892         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
48893         (Depends-on): Add stdlib.
48894         * NEWS: Mention the changes.
48895         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
48896
48897 2007-12-23  Bruno Haible  <bruno@clisp.org>
48898
48899         * lib/memmem.c (memmem): Use lowercase variable names. Tab
48900         indentation.
48901
48902 2007-12-23  Bruno Haible  <bruno@clisp.org>
48903
48904         * lib/c-strcasestr.c: Add more comments.
48905         * lib/c-strstr.c: Likewise.
48906         * lib/mbscasestr.c: Likewise.
48907         * lib/mbsstr.c: Likewise.
48908         * lib/strcasestr.c: Likewise.
48909         * lib/memmem.c: Likewise.
48910
48911 2007-12-23  Bruno Haible  <bruno@clisp.org>
48912
48913         * tests/test-memmem.c: Include <string.h> first.
48914
48915 2007-12-22  Bruno Haible  <bruno@clisp.org>
48916
48917         * gnulib-tool (func_create_testdir): Change $auxdir while generating
48918         the contents of $testsbase.
48919         Reported by Ralf Wildenhues.
48920
48921 2007-12-22  Bruno Haible  <bruno@clisp.org>
48922
48923         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
48924         two variables local_ldadd_before, local_ldadd_last.
48925
48926 2007-12-20  Eric Blake  <ebb9@byu.net>
48927
48928         Work around circular library issue when cross-compiling.
48929         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
48930         that progname.o does not need to pull in rpl_memcmp.
48931
48932 2007-12-19  Eric Blake  <ebb9@byu.net>
48933
48934         Fix memmem to avoid O(n^2) worst-case complexity.
48935         * lib/memmem.c (knuth_morris_pratt): New function.
48936         (memmem): Use it if first few naive iterations fail.
48937         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
48938         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
48939         * modules/memchr (License): Likewise.
48940         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
48941         malloca.
48942         * tests/test-memmem.c: Rewrite, borrowing ideas from
48943         test-mbsstr1.c; the old version wouldn't even compile!
48944         * modules/memmem-tests: New file.
48945         * lib/string.in.h (rpl_memmem): Add declaration.
48946         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
48947         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
48948         REPLACE_MEMMEM.
48949
48950 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
48951
48952         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
48953         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
48954         before any system include files, and undef after them all.  This
48955         should fix a problem on VMS reported by John E. Malmberg in
48956         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
48957
48958 2007-12-17  Eric Blake  <ebb9@byu.net>
48959
48960         Revert addition of verify, for BSD/OS.
48961         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
48962         can't handle large files, for the sake of obsolete platforms.
48963         * modules/fseeko (Depends-on): Remove verify.
48964         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
48965         * doc/functions/ftello.texi (ftello): Likewise.
48966         * doc/functions/fgetpos.texi (fgetpos): Likewise.
48967         Reported by Larry Jones.
48968
48969 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
48970
48971         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
48972         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
48973
48974 2007-12-17  Jim Meyering  <meyering@redhat.com>
48975
48976         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
48977         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
48978         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
48979         * modules/getcwd (Depends-on): Add openat.
48980         Reported by Petr Salinger.
48981
48982 2007-12-17  Bruno Haible  <bruno@clisp.org>
48983
48984         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
48985         avoid a segmentation fault of the configure test on x86_64 systems.
48986
48987 2007-12-15  Jim Meyering  <meyering@redhat.com>
48988
48989         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
48990
48991 2007-12-13  Eric Blake  <ebb9@byu.net>
48992
48993         Another fseek test.
48994         * tests/test-fseek.c (main): Also test ungetc handling.
48995         * tests/test-fseeko.c (main): Likewise.
48996         * modules/fseeko (Depends-on): Add verify.
48997         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
48998         large.
48999         Reported by Larry Jones.
49000
49001         Fix fseeko on mingw.
49002         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
49003         seek.
49004
49005         Beef up fseek tests.
49006         * tests/test-fseek.c (main): Also test eof handling.
49007         * tests/test-fseeko.c (main): Likewise.
49008         Reported by Larry Jones.
49009
49010 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
49011
49012         Fix fseeko on BSD-based platforms.
49013         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
49014         successful seek.
49015
49016 2007-12-12  Eric Blake  <ebb9@byu.net>
49017
49018         Allow circular dependency of separate libtests.a
49019         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
49020         when use_libtests.
49021
49022 2007-12-11  Eric Blake  <ebb9@byu.net>
49023
49024         Fix bug with -0.0L in previous patch.
49025         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
49026         * tests/test-isnan.c (main): Also test on zeroes.
49027         * tests/test-isnanf.c (main): Likewise.
49028         * tests/test-isnanl.h (main): Likewise.
49029
49030         Detect pseudo-denormals on x86 even when cross-compiling.
49031         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
49032         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
49033         invalid bit patterns that happen to satisfy ==.
49034
49035         Avoid link failures with separate libtests.a.
49036         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
49037         last, to satisfy circular dependencies.
49038
49039 2007-12-11  Eric Blake  <ebb9@byu.net>
49040         and Bruno Haible  <bruno@clisp.org>
49041
49042         Fix OpenBSD 4.0 <float.h> handling of long double.
49043         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
49044         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
49045         * doc/headers/float.texi (float.h): Document OpenBSD bug.
49046
49047 2007-12-11  Jim Meyering  <meyering@redhat.com>
49048
49049         * users.txt: Add libvirt.
49050
49051         Support versions of autoconf prior to 2.59c.
49052         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
49053         if it is not already defined.
49054
49055 2007-12-09  Bruno Haible  <bruno@clisp.org>
49056
49057         Let 'gnulib-tool --import' collect sources needed for the tests in
49058         tests/ rather than in lib/.
49059         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
49060         argument. If true, add rules to generate libtests.a, and put libtests.a
49061         into $(LDADD). Consider source files in subdirectories and set
49062         uses_subdirs.
49063         (func_emit_initmacro_start, func_emit_initmacro_end,
49064         func_emit_initmacro_done): Pass all arguments explicitly.
49065         (func_import): Determine two module lists main_modules,
49066         testsrelated_modules. Determine use_libtests. Determine two variables
49067         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
49068         instead of just sed_transform_lib_file. Determine two variables
49069         main_files and testsrelated_files. Compute 'files' as the union of
49070         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
49071         func_add_or_update. In the generated gnulib-comp.m4, collect the
49072         object files for tests/ in different variables than those for lib/.
49073         Substitute LIBTESTS_LIBDEPS.
49074         (func_create_testdir): Combine the uses_subdirs results from
49075         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
49076
49077 2007-12-09  Bruno Haible  <bruno@clisp.org>
49078
49079         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
49080         the build-aux directory.
49081
49082 2007-12-09  Bruno Haible  <bruno@clisp.org>
49083
49084         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
49085         introduced on 2006-09-09.
49086
49087 2007-12-07  Jim Meyering  <meyering@redhat.com>
49088
49089         Let these macros work also with autoconf-2.59.
49090         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
49091         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
49092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
49093
49094 2007-12-06  Jim Meyering  <meyering@redhat.com>
49095
49096         Avoid a configure-time syntax error in gl_FUNC_ACL.
49097         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
49098         function in each branch, before testing the cache variable.
49099
49100 2007-12-04  Eric Blake  <ebb9@byu.net>
49101
49102         Make scripts executable.
49103         * build-aux/config.guess: Add execute permissions.
49104         * build-aux/config.sub: Likewise.
49105         * build-aux/gendocs.sh: Likewise.
49106
49107         Fix frexp on mingw.
49108         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
49109         cross-compiling.
49110         * doc/functions/frexp.texi (frexp): Document the bug.
49111
49112         Make cygwin fseeko check more reliable.
49113         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
49114         version numbers, rather than unrelated feature check.
49115         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
49116         * doc/functions/ftello.texi (ftello): Likewise.
49117         Reported by Bruno Haible.
49118
49119         * m4/strerror.m4: Bump version number.
49120
49121 2007-12-03  Bruno Haible  <bruno@clisp.org>
49122
49123         * doc/functions/mprotect.texi: Mention the mingw problem.
49124
49125 2007-12-03  Eric Blake  <ebb9@byu.net>
49126
49127         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
49128         REPLACE_STRERROR is initialized before this macro.
49129
49130 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
49131
49132         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
49133         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
49134         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
49135         put -lsec in even for programs other than 'ls'.  This fixes a problem
49136         for gettext reported by Bruno Haible in
49137         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
49138         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
49139         Add support for Solaris 10.  This isn't efficient, but should get the
49140         job done for now.
49141
49142 2007-12-03  James Youngman  <jay@gnu.org>
49143
49144         * doc/regexprops-generic.texi: change "an close-group" to "a
49145         close-group" and "illegal" to "not allowed".
49146
49147 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49148
49149         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
49150         pr_byname.h. Needed for the rare case when the maintainer has done
49151         "make maintainer-clean" in the source directory and then attempts a
49152         build outside the source directory.
49153         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
49154         scripts_byname.h.
49155
49156 2007-12-02  Martin Lambers <marlam@marlam.de>
49157             Bruno Haible  <bruno@clisp.org>
49158
49159         * lib/getpagesize.h: Remove file.
49160         * lib/unistd.in.h: Include declaration of getpagesize here.
49161         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
49162         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
49163         HAVE_SYS_PARAM_H.
49164         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
49165         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49166         * modules/getpagesize (Files): Remove lib/getpagesize.h.
49167         (Depends-on): Add unistd.
49168         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
49169         (Include): Use <unistd.h> instead of getpagesize.h.
49170         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
49171         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
49172         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
49173         gl_GETPAGESIZE invocation, already handled by module dependency.
49174         * lib/pagealign_alloc.c: Don't include getpagesize.h.
49175
49176 2007-12-02  Bruno Haible  <bruno@clisp.org>
49177
49178         * modules/strings-tests: New file.
49179         * tests/test-strings.c: New file.
49180
49181         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
49182         * lib/strings.in.h: New file.
49183         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
49184         * m4/strings_h.m4: New file.
49185         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
49186         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
49187         * modules/strings: New file.
49188         * modules/string (Makefile.am): Update.
49189         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
49190         Reported by Karl Berry.
49191
49192 2007-12-01  Eric Blake  <ebb9@byu.net>
49193
49194         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
49195         accomodate fix in cygwin 1.5.25.
49196
49197 2007-12-01  Jim Meyering  <meyering@redhat.com>
49198
49199         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
49200         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
49201         that would inhibit utf8-optimization of a regexp containing line-
49202         or buffer-anchors, e.g., `^', `$'.
49203
49204 2007-11-30  Bruno Haible  <bruno@clisp.org>
49205
49206         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
49207         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
49208         glthread_recursive_lock_init.
49209         * lib/lock.c (glthread_recursive_lock_init)
49210         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
49211         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49212
49213 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
49214
49215         New function qset_acl, like set_acl but with syscall semantics.
49216         * lib/acl.h (qset_acl): New decl.
49217         * lib/acl.c (qset_acl): New function.
49218         (set_acl): Use new function.  Use more-consistent diagnostics.
49219
49220 2007-11-28  Jim Meyering  <meyering@redhat.com>
49221
49222         * modules/physmem (License): Change from GPL to LGPLv2+.
49223
49224 2007-11-26  Bruno Haible  <bruno@clisp.org>
49225
49226         * lib/vasnprintf.c (decode_long_double): Don't abort if the
49227         'long double' type has excess precision.
49228         Reported by Jim Meyering in
49229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
49230
49231 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49232
49233         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
49234         Sync from <http://gnu.org/licenses>.
49235         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
49236         with license text from same location.
49237         * doc/maintain.texi, doc/standards.texi:  Sync from
49238         <http://savannah.gnu.org/projects/gnustandards>.
49239
49240 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
49241         and Jim Meyering  <meyering@redhat.com>
49242
49243         Adjust getdate' grammar to accept a slightly more regular language.
49244         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
49245         Before, the former was rejected.
49246         * lib/getdate.y (digits_to_date_time): New function, factored
49247         out of ...
49248         (number): ...here.  Just call digits_to_date_time.
49249         (hybrid): New non-terminal to handle an <unsigned number,
49250         signed relative offset> sequence consistently.
49251
49252 2007-11-18  Jim Meyering  <meyering@redhat.com>
49253
49254         Pull my changes from coreutils:
49255         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
49256         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
49257         use of $gnulib_tool_option_extras, so that it's separated from the
49258         preceding argument.
49259
49260         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
49261         * build-aux/bootstrap (cp_mark_as_generated): Create any required
49262         parent destination directories before copying a file into place.
49263
49264 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
49265
49266         bootstrap: work also with 4-argument variant of AC_INIT
49267         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
49268
49269 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
49270
49271         Port test-getaddrinfo to Solaris.
49272         Problem reported by Bruno Haible in
49273         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
49274         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
49275         explanation of setting 'hints'.
49276         Don't reject an implementation merely because it returns EAI_SERVICE.
49277         (EAI_SERVICE): Define to 0 if not defined.
49278
49279 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
49280
49281         The license of gnu-make and posix-shell is now "GPLed build tool".
49282         * modules/gnu-make (License): Likewise.
49283         * modules/posix-shell (License): Likewise.
49284
49285         New module posix-shell, for determining a POSIX shell
49286         or perhaps something that is close enough to a POSIX shell.
49287         * m4/posix-shell.m4: New file.
49288         * modules/posix-shell: New file.
49289
49290         * MODULES.html.sh: Mention new module.
49291
49292         New module gnu-make, for determining whether we're using GNU Make.
49293         * m4/gnu-make.m4: New file.
49294         * modules/gnu-make: New file.
49295         * MODULES.html.sh: Mention new module.
49296
49297 2007-11-14  Jim Meyering  <meyering@redhat.com>
49298
49299         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
49300         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
49301         use this macro to create a function _definition_.
49302         Remove useless "#undef ARGMATCH_DIE".
49303
49304 2007-11-14  Bruno Haible  <bruno@clisp.org>
49305
49306         * lib/config.charset: Update for OpenBSD 4.1.
49307         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
49308
49309 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
49310
49311         Document 64-bit #if problems in stdint.texi.
49312         * doc/headers/stdint.texi (stdint.h): Mention problems with
49313         64-bit-#if, and how to work around them.
49314
49315         Don't insist on 'long long int' support in the preprocessor.  It
49316         breaks too many things.  For example, PRIdMAX still uses a 'long
49317         long int' format with the latest Sun compiler, even though
49318         HAVE_LONG_LONG_INT isn't defined due to that compiler's
49319         preprocessor problem.  This causes the latest coreutils to dump
49320         core on Solaris 10 sparc with the Sun C compiler.
49321         Instead, fix the 2007-10-16 problem in a different way, by evaluating
49322         the troublesome expressions at configure-time, not at #if-time.
49323         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
49324         preprocessor.
49325         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
49326         compile-time C checks, done at 'configure'-time.
49327         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
49328         * modules/inttypes (Makefile): Substitute the new symbols that
49329         gl_INTTYPES_H now generates.
49330         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
49331
49332 2007-11-12  Bruno Haible  <bruno@clisp.org>
49333
49334         Tests for Unicode character classification functions.
49335
49336         * modules/unictype/bidicategory-byname-tests: New file.
49337         * modules/unictype/bidicategory-name-tests: New file.
49338         * modules/unictype/bidicategory-of-tests: New file.
49339         * modules/unictype/bidicategory-test-tests: New file.
49340         * modules/unictype/block-list-tests: New file.
49341         * modules/unictype/block-of-tests: New file.
49342         * modules/unictype/block-test-tests: New file.
49343         * modules/unictype/category-C-tests: New file.
49344         * modules/unictype/category-Cc-tests: New file.
49345         * modules/unictype/category-Cf-tests: New file.
49346         * modules/unictype/category-Cn-tests: New file.
49347         * modules/unictype/category-Co-tests: New file.
49348         * modules/unictype/category-Cs-tests: New file.
49349         * modules/unictype/category-L-tests: New file.
49350         * modules/unictype/category-Ll-tests: New file.
49351         * modules/unictype/category-Lm-tests: New file.
49352         * modules/unictype/category-Lo-tests: New file.
49353         * modules/unictype/category-Lt-tests: New file.
49354         * modules/unictype/category-Lu-tests: New file.
49355         * modules/unictype/category-M-tests: New file.
49356         * modules/unictype/category-Mc-tests: New file.
49357         * modules/unictype/category-Me-tests: New file.
49358         * modules/unictype/category-Mn-tests: New file.
49359         * modules/unictype/category-N-tests: New file.
49360         * modules/unictype/category-Nd-tests: New file.
49361         * modules/unictype/category-Nl-tests: New file.
49362         * modules/unictype/category-No-tests: New file.
49363         * modules/unictype/category-P-tests: New file.
49364         * modules/unictype/category-Pc-tests: New file.
49365         * modules/unictype/category-Pd-tests: New file.
49366         * modules/unictype/category-Pe-tests: New file.
49367         * modules/unictype/category-Pf-tests: New file.
49368         * modules/unictype/category-Pi-tests: New file.
49369         * modules/unictype/category-Po-tests: New file.
49370         * modules/unictype/category-Ps-tests: New file.
49371         * modules/unictype/category-S-tests: New file.
49372         * modules/unictype/category-Sc-tests: New file.
49373         * modules/unictype/category-Sk-tests: New file.
49374         * modules/unictype/category-Sm-tests: New file.
49375         * modules/unictype/category-So-tests: New file.
49376         * modules/unictype/category-Z-tests: New file.
49377         * modules/unictype/category-Zl-tests: New file.
49378         * modules/unictype/category-Zp-tests: New file.
49379         * modules/unictype/category-Zs-tests: New file.
49380         * modules/unictype/category-and-not-tests: New file.
49381         * modules/unictype/category-and-tests: New file.
49382         * modules/unictype/category-byname-tests: New file.
49383         * modules/unictype/category-name-tests: New file.
49384         * modules/unictype/category-none-tests: New file.
49385         * modules/unictype/category-of-tests: New file.
49386         * modules/unictype/category-or-tests: New file.
49387         * modules/unictype/category-test-withtable-tests: New file.
49388         * modules/unictype/combining-class-tests: New file.
49389         * modules/unictype/ctype-alnum-tests: New file.
49390         * modules/unictype/ctype-alpha-tests: New file.
49391         * modules/unictype/ctype-blank-tests: New file.
49392         * modules/unictype/ctype-cntrl-tests: New file.
49393         * modules/unictype/ctype-digit-tests: New file.
49394         * modules/unictype/ctype-graph-tests: New file.
49395         * modules/unictype/ctype-lower-tests: New file.
49396         * modules/unictype/ctype-print-tests: New file.
49397         * modules/unictype/ctype-punct-tests: New file.
49398         * modules/unictype/ctype-space-tests: New file.
49399         * modules/unictype/ctype-upper-tests: New file.
49400         * modules/unictype/ctype-xdigit-tests: New file.
49401         * modules/unictype/decimal-digit-tests: New file.
49402         * modules/unictype/digit-tests: New file.
49403         * modules/unictype/mirror-tests: New file.
49404         * modules/unictype/numeric-tests: New file.
49405         * modules/unictype/property-alphabetic-tests: New file.
49406         * modules/unictype/property-ascii-hex-digit-tests: New file.
49407         * modules/unictype/property-bidi-arabic-digit-tests: New file.
49408         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
49409         * modules/unictype/property-bidi-block-separator-tests: New file.
49410         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
49411         * modules/unictype/property-bidi-common-separator-tests: New file.
49412         * modules/unictype/property-bidi-control-tests: New file.
49413         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
49414         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
49415         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
49416         * modules/unictype/property-bidi-european-digit-tests: New file.
49417         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
49418         * modules/unictype/property-bidi-left-to-right-tests: New file.
49419         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
49420         * modules/unictype/property-bidi-other-neutral-tests: New file.
49421         * modules/unictype/property-bidi-pdf-tests: New file.
49422         * modules/unictype/property-bidi-segment-separator-tests: New file.
49423         * modules/unictype/property-bidi-whitespace-tests: New file.
49424         * modules/unictype/property-byname-tests: New file.
49425         * modules/unictype/property-combining-tests: New file.
49426         * modules/unictype/property-composite-tests: New file.
49427         * modules/unictype/property-currency-symbol-tests: New file.
49428         * modules/unictype/property-dash-tests: New file.
49429         * modules/unictype/property-decimal-digit-tests: New file.
49430         * modules/unictype/property-default-ignorable-code-point-tests: New file.
49431         * modules/unictype/property-deprecated-tests: New file.
49432         * modules/unictype/property-diacritic-tests: New file.
49433         * modules/unictype/property-extender-tests: New file.
49434         * modules/unictype/property-format-control-tests: New file.
49435         * modules/unictype/property-grapheme-base-tests: New file.
49436         * modules/unictype/property-grapheme-extend-tests: New file.
49437         * modules/unictype/property-grapheme-link-tests: New file.
49438         * modules/unictype/property-hex-digit-tests: New file.
49439         * modules/unictype/property-hyphen-tests: New file.
49440         * modules/unictype/property-id-continue-tests: New file.
49441         * modules/unictype/property-id-start-tests: New file.
49442         * modules/unictype/property-ideographic-tests: New file.
49443         * modules/unictype/property-ids-binary-operator-tests: New file.
49444         * modules/unictype/property-ids-trinary-operator-tests: New file.
49445         * modules/unictype/property-ignorable-control-tests: New file.
49446         * modules/unictype/property-iso-control-tests: New file.
49447         * modules/unictype/property-join-control-tests: New file.
49448         * modules/unictype/property-left-of-pair-tests: New file.
49449         * modules/unictype/property-line-separator-tests: New file.
49450         * modules/unictype/property-logical-order-exception-tests: New file.
49451         * modules/unictype/property-lowercase-tests: New file.
49452         * modules/unictype/property-math-tests: New file.
49453         * modules/unictype/property-non-break-tests: New file.
49454         * modules/unictype/property-not-a-character-tests: New file.
49455         * modules/unictype/property-numeric-tests: New file.
49456         * modules/unictype/property-other-alphabetic-tests: New file.
49457         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
49458         * modules/unictype/property-other-grapheme-extend-tests: New file.
49459         * modules/unictype/property-other-id-continue-tests: New file.
49460         * modules/unictype/property-other-id-start-tests: New file.
49461         * modules/unictype/property-other-lowercase-tests: New file.
49462         * modules/unictype/property-other-math-tests: New file.
49463         * modules/unictype/property-other-uppercase-tests: New file.
49464         * modules/unictype/property-paired-punctuation-tests: New file.
49465         * modules/unictype/property-paragraph-separator-tests: New file.
49466         * modules/unictype/property-pattern-syntax-tests: New file.
49467         * modules/unictype/property-pattern-white-space-tests: New file.
49468         * modules/unictype/property-private-use-tests: New file.
49469         * modules/unictype/property-punctuation-tests: New file.
49470         * modules/unictype/property-quotation-mark-tests: New file.
49471         * modules/unictype/property-radical-tests: New file.
49472         * modules/unictype/property-sentence-terminal-tests: New file.
49473         * modules/unictype/property-soft-dotted-tests: New file.
49474         * modules/unictype/property-space-tests: New file.
49475         * modules/unictype/property-terminal-punctuation-tests: New file.
49476         * modules/unictype/property-test-tests: New file.
49477         * modules/unictype/property-titlecase-tests: New file.
49478         * modules/unictype/property-unassigned-code-value-tests: New file.
49479         * modules/unictype/property-unified-ideograph-tests: New file.
49480         * modules/unictype/property-uppercase-tests: New file.
49481         * modules/unictype/property-variation-selector-tests: New file.
49482         * modules/unictype/property-white-space-tests: New file.
49483         * modules/unictype/property-xid-continue-tests: New file.
49484         * modules/unictype/property-xid-start-tests: New file.
49485         * modules/unictype/property-zero-width-tests: New file.
49486         * modules/unictype/scripts-tests: New file.
49487         * modules/unictype/syntax-c-ident-tests: New file.
49488         * modules/unictype/syntax-c-whitespace-tests: New file.
49489         * modules/unictype/syntax-java-ident-tests: New file.
49490         * modules/unictype/syntax-java-whitespace-tests: New file.
49491         * tests/unictype/test-bidi_byname.c: New file.
49492         * tests/unictype/test-bidi_name.c: New file.
49493         * tests/unictype/test-bidi_of.c: New file.
49494         * tests/unictype/test-bidi_test.c: New file.
49495         * tests/unictype/test-block_list.c: New file.
49496         * tests/unictype/test-block_of.c: New file.
49497         * tests/unictype/test-block_test.c: New file.
49498         * tests/unictype/test-categ_and.c: New file.
49499         * tests/unictype/test-categ_and_not.c: New file.
49500         * tests/unictype/test-categ_byname.c: New file.
49501         * tests/unictype/test-categ_name.c: New file.
49502         * tests/unictype/test-categ_none.c: New file.
49503         * tests/unictype/test-categ_of.c: New file.
49504         * tests/unictype/test-categ_or.c: New file.
49505         * tests/unictype/test-categ_test_withtable.c: New file.
49506         * tests/unictype/test-combining.c: New file.
49507         * tests/unictype/test-decdigit.c: New file.
49508         * tests/unictype/test-digit.c: New file.
49509         * tests/unictype/test-mirror.c: New file.
49510         * tests/unictype/test-numeric.c: New file.
49511         * tests/unictype/test-pr_byname.c: New file.
49512         * tests/unictype/test-pr_test.c: New file.
49513         * tests/unictype/test-predicate-part1.h: New file.
49514         * tests/unictype/test-predicate-part2.h: New file.
49515         * tests/unictype/test-scripts.c: New file.
49516         * tests/unictype/test-sy_c_ident.c: New file.
49517         * tests/unictype/test-sy_java_ident.c: New file.
49518
49519         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
49520         for Unicode 5.0.0.
49521         * tests/unictype/test-categ_Cc.c: Likewise.
49522         * tests/unictype/test-categ_Cf.c: Likewise.
49523         * tests/unictype/test-categ_Cn.c: Likewise.
49524         * tests/unictype/test-categ_Co.c: Likewise.
49525         * tests/unictype/test-categ_Cs.c: Likewise.
49526         * tests/unictype/test-categ_L.c: Likewise.
49527         * tests/unictype/test-categ_Ll.c: Likewise.
49528         * tests/unictype/test-categ_Lm.c: Likewise.
49529         * tests/unictype/test-categ_Lo.c: Likewise.
49530         * tests/unictype/test-categ_Lt.c: Likewise.
49531         * tests/unictype/test-categ_Lu.c: Likewise.
49532         * tests/unictype/test-categ_M.c: Likewise.
49533         * tests/unictype/test-categ_Mc.c: Likewise.
49534         * tests/unictype/test-categ_Me.c: Likewise.
49535         * tests/unictype/test-categ_Mn.c: Likewise.
49536         * tests/unictype/test-categ_N.c: Likewise.
49537         * tests/unictype/test-categ_Nd.c: Likewise.
49538         * tests/unictype/test-categ_Nl.c: Likewise.
49539         * tests/unictype/test-categ_No.c: Likewise.
49540         * tests/unictype/test-categ_P.c: Likewise.
49541         * tests/unictype/test-categ_Pc.c: Likewise.
49542         * tests/unictype/test-categ_Pd.c: Likewise.
49543         * tests/unictype/test-categ_Pe.c: Likewise.
49544         * tests/unictype/test-categ_Pf.c: Likewise.
49545         * tests/unictype/test-categ_Pi.c: Likewise.
49546         * tests/unictype/test-categ_Po.c: Likewise.
49547         * tests/unictype/test-categ_Ps.c: Likewise.
49548         * tests/unictype/test-categ_S.c: Likewise.
49549         * tests/unictype/test-categ_Sc.c: Likewise.
49550         * tests/unictype/test-categ_Sk.c: Likewise.
49551         * tests/unictype/test-categ_Sm.c: Likewise.
49552         * tests/unictype/test-categ_So.c: Likewise.
49553         * tests/unictype/test-categ_Z.c: Likewise.
49554         * tests/unictype/test-categ_Zl.c: Likewise.
49555         * tests/unictype/test-categ_Zp.c: Likewise.
49556         * tests/unictype/test-categ_Zs.c: Likewise.
49557         * tests/unictype/test-ctype_alnum.c: Likewise.
49558         * tests/unictype/test-ctype_alpha.c: Likewise.
49559         * tests/unictype/test-ctype_blank.c: Likewise.
49560         * tests/unictype/test-ctype_cntrl.c: Likewise.
49561         * tests/unictype/test-ctype_digit.c: Likewise.
49562         * tests/unictype/test-ctype_graph.c: Likewise.
49563         * tests/unictype/test-ctype_lower.c: Likewise.
49564         * tests/unictype/test-ctype_print.c: Likewise.
49565         * tests/unictype/test-ctype_punct.c: Likewise.
49566         * tests/unictype/test-ctype_space.c: Likewise.
49567         * tests/unictype/test-ctype_upper.c: Likewise.
49568         * tests/unictype/test-ctype_xdigit.c: Likewise.
49569         * tests/unictype/test-decdigit.h: Likewise.
49570         * tests/unictype/test-digit.h: Likewise.
49571         * tests/unictype/test-numeric.h: Likewise.
49572         * tests/unictype/test-pr_alphabetic.c: Likewise.
49573         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
49574         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
49575         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
49576         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
49577         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
49578         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
49579         * tests/unictype/test-pr_bidi_control.c: Likewise.
49580         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
49581         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
49582         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
49583         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
49584         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
49585         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
49586         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
49587         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
49588         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
49589         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
49590         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
49591         * tests/unictype/test-pr_combining.c: Likewise.
49592         * tests/unictype/test-pr_composite.c: Likewise.
49593         * tests/unictype/test-pr_currency_symbol.c: Likewise.
49594         * tests/unictype/test-pr_dash.c: Likewise.
49595         * tests/unictype/test-pr_decimal_digit.c: Likewise.
49596         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
49597         * tests/unictype/test-pr_deprecated.c: Likewise.
49598         * tests/unictype/test-pr_diacritic.c: Likewise.
49599         * tests/unictype/test-pr_extender.c: Likewise.
49600         * tests/unictype/test-pr_format_control.c: Likewise.
49601         * tests/unictype/test-pr_grapheme_base.c: Likewise.
49602         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
49603         * tests/unictype/test-pr_grapheme_link.c: Likewise.
49604         * tests/unictype/test-pr_hex_digit.c: Likewise.
49605         * tests/unictype/test-pr_hyphen.c: Likewise.
49606         * tests/unictype/test-pr_id_continue.c: Likewise.
49607         * tests/unictype/test-pr_id_start.c: Likewise.
49608         * tests/unictype/test-pr_ideographic.c: Likewise.
49609         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
49610         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
49611         * tests/unictype/test-pr_ignorable_control.c: Likewise.
49612         * tests/unictype/test-pr_iso_control.c: Likewise.
49613         * tests/unictype/test-pr_join_control.c: Likewise.
49614         * tests/unictype/test-pr_left_of_pair.c: Likewise.
49615         * tests/unictype/test-pr_line_separator.c: Likewise.
49616         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
49617         * tests/unictype/test-pr_lowercase.c: Likewise.
49618         * tests/unictype/test-pr_math.c: Likewise.
49619         * tests/unictype/test-pr_non_break.c: Likewise.
49620         * tests/unictype/test-pr_not_a_character.c: Likewise.
49621         * tests/unictype/test-pr_numeric.c: Likewise.
49622         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
49623         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
49624         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
49625         * tests/unictype/test-pr_other_id_continue.c: Likewise.
49626         * tests/unictype/test-pr_other_id_start.c: Likewise.
49627         * tests/unictype/test-pr_other_lowercase.c: Likewise.
49628         * tests/unictype/test-pr_other_math.c: Likewise.
49629         * tests/unictype/test-pr_other_uppercase.c: Likewise.
49630         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
49631         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
49632         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
49633         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
49634         * tests/unictype/test-pr_private_use.c: Likewise.
49635         * tests/unictype/test-pr_punctuation.c: Likewise.
49636         * tests/unictype/test-pr_quotation_mark.c: Likewise.
49637         * tests/unictype/test-pr_radical.c: Likewise.
49638         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
49639         * tests/unictype/test-pr_soft_dotted.c: Likewise.
49640         * tests/unictype/test-pr_space.c: Likewise.
49641         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
49642         * tests/unictype/test-pr_titlecase.c: Likewise.
49643         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
49644         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
49645         * tests/unictype/test-pr_uppercase.c: Likewise.
49646         * tests/unictype/test-pr_variation_selector.c: Likewise.
49647         * tests/unictype/test-pr_white_space.c: Likewise.
49648         * tests/unictype/test-pr_xid_continue.c: Likewise.
49649         * tests/unictype/test-pr_xid_start.c: Likewise.
49650         * tests/unictype/test-pr_zero_width.c: Likewise.
49651         * tests/unictype/test-sy_c_whitespace.c: Likewise.
49652         * tests/unictype/test-sy_java_whitespace.c: Likewise.
49653
49654 2007-11-12  Bruno Haible  <bruno@clisp.org>
49655
49656         Unicode character classification functions.
49657         * lib/unictype.h: New file.
49658         * modules/unictype/base: New file.
49659         * modules/unictype/category-L: New file.
49660         * modules/unictype/category-Lu: New file.
49661         * modules/unictype/category-Ll: New file.
49662         * modules/unictype/category-Lt: New file.
49663         * modules/unictype/category-Lm: New file.
49664         * modules/unictype/category-Lo: New file.
49665         * modules/unictype/category-M: New file.
49666         * modules/unictype/category-Mn: New file.
49667         * modules/unictype/category-Mc: New file.
49668         * modules/unictype/category-Me: New file.
49669         * modules/unictype/category-N: New file.
49670         * modules/unictype/category-Nd: New file.
49671         * modules/unictype/category-Nl: New file.
49672         * modules/unictype/category-No: New file.
49673         * modules/unictype/category-P: New file.
49674         * modules/unictype/category-Pc: New file.
49675         * modules/unictype/category-Pd: New file.
49676         * modules/unictype/category-Ps: New file.
49677         * modules/unictype/category-Pe: New file.
49678         * modules/unictype/category-Pi: New file.
49679         * modules/unictype/category-Pf: New file.
49680         * modules/unictype/category-Po: New file.
49681         * modules/unictype/category-S: New file.
49682         * modules/unictype/category-Sm: New file.
49683         * modules/unictype/category-Sc: New file.
49684         * modules/unictype/category-Sk: New file.
49685         * modules/unictype/category-So: New file.
49686         * modules/unictype/category-Z: New file.
49687         * modules/unictype/category-Zs: New file.
49688         * modules/unictype/category-Zl: New file.
49689         * modules/unictype/category-Zp: New file.
49690         * modules/unictype/category-C: New file.
49691         * modules/unictype/category-Cc: New file.
49692         * modules/unictype/category-Cf: New file.
49693         * modules/unictype/category-Cs: New file.
49694         * modules/unictype/category-Co: New file.
49695         * modules/unictype/category-Cn: New file.
49696         * modules/unictype/category-or: New file.
49697         * modules/unictype/category-of: New file.
49698         * modules/unictype/category-test: New file.
49699         * modules/unictype/category-test-withtable: New file.
49700         * modules/unictype/category-byname: New file.
49701         * modules/unictype/category-none: New file.
49702         * modules/unictype/category-and: New file.
49703         * modules/unictype/category-and-not: New file.
49704         * modules/unictype/category-name: New file.
49705         * modules/unictype/combining-class: New file.
49706         * modules/unictype/category-all: New file.
49707         * modules/unictype/bidicategory-all: New file.
49708         * modules/unictype/bidicategory-byname: New file.
49709         * modules/unictype/bidicategory-name: New file.
49710         * modules/unictype/bidicategory-of: New file.
49711         * modules/unictype/bidicategory-test: New file.
49712         * modules/unictype/decimal-digit: New file.
49713         * modules/unictype/digit: New file.
49714         * modules/unictype/numeric: New file.
49715         * modules/unictype/mirror: New file.
49716         * modules/unictype/property-white-space: New file.
49717         * modules/unictype/property-alphabetic: New file.
49718         * modules/unictype/property-other-alphabetic: New file.
49719         * modules/unictype/property-not-a-character: New file.
49720         * modules/unictype/property-default-ignorable-code-point: New file.
49721         * modules/unictype/property-other-default-ignorable-code-point: New
49722         file.
49723         * modules/unictype/property-deprecated: New file.
49724         * modules/unictype/property-logical-order-exception: New file.
49725         * modules/unictype/property-variation-selector: New file.
49726         * modules/unictype/property-private-use: New file.
49727         * modules/unictype/property-unassigned-code-value: New file.
49728         * modules/unictype/property-uppercase: New file.
49729         * modules/unictype/property-other-uppercase: New file.
49730         * modules/unictype/property-lowercase: New file.
49731         * modules/unictype/property-other-lowercase: New file.
49732         * modules/unictype/property-titlecase: New file.
49733         * modules/unictype/property-soft-dotted: New file.
49734         * modules/unictype/property-id-start: New file.
49735         * modules/unictype/property-other-id-start: New file.
49736         * modules/unictype/property-id-continue: New file.
49737         * modules/unictype/property-other-id-continue: New file.
49738         * modules/unictype/property-xid-start: New file.
49739         * modules/unictype/property-xid-continue: New file.
49740         * modules/unictype/property-pattern-white-space: New file.
49741         * modules/unictype/property-pattern-syntax: New file.
49742         * modules/unictype/property-join-control: New file.
49743         * modules/unictype/property-grapheme-base: New file.
49744         * modules/unictype/property-grapheme-extend: New file.
49745         * modules/unictype/property-other-grapheme-extend: New file.
49746         * modules/unictype/property-grapheme-link: New file.
49747         * modules/unictype/property-bidi-control: New file.
49748         * modules/unictype/property-bidi-left-to-right: New file.
49749         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
49750         * modules/unictype/property-bidi-arabic-right-to-left: New file.
49751         * modules/unictype/property-bidi-european-digit: New file.
49752         * modules/unictype/property-bidi-eur-num-separator: New file.
49753         * modules/unictype/property-bidi-eur-num-terminator: New file.
49754         * modules/unictype/property-bidi-arabic-digit: New file.
49755         * modules/unictype/property-bidi-common-separator: New file.
49756         * modules/unictype/property-bidi-block-separator: New file.
49757         * modules/unictype/property-bidi-segment-separator: New file.
49758         * modules/unictype/property-bidi-whitespace: New file.
49759         * modules/unictype/property-bidi-non-spacing-mark: New file.
49760         * modules/unictype/property-bidi-boundary-neutral: New file.
49761         * modules/unictype/property-bidi-pdf: New file.
49762         * modules/unictype/property-bidi-embedding-or-override: New file.
49763         * modules/unictype/property-bidi-other-neutral: New file.
49764         * modules/unictype/property-hex-digit: New file.
49765         * modules/unictype/property-ascii-hex-digit: New file.
49766         * modules/unictype/property-ideographic: New file.
49767         * modules/unictype/property-unified-ideograph: New file.
49768         * modules/unictype/property-radical: New file.
49769         * modules/unictype/property-ids-binary-operator: New file.
49770         * modules/unictype/property-ids-trinary-operator: New file.
49771         * modules/unictype/property-zero-width: New file.
49772         * modules/unictype/property-space: New file.
49773         * modules/unictype/property-non-break: New file.
49774         * modules/unictype/property-iso-control: New file.
49775         * modules/unictype/property-format-control: New file.
49776         * modules/unictype/property-dash: New file.
49777         * modules/unictype/property-hyphen: New file.
49778         * modules/unictype/property-punctuation: New file.
49779         * modules/unictype/property-line-separator: New file.
49780         * modules/unictype/property-paragraph-separator: New file.
49781         * modules/unictype/property-quotation-mark: New file.
49782         * modules/unictype/property-sentence-terminal: New file.
49783         * modules/unictype/property-terminal-punctuation: New file.
49784         * modules/unictype/property-currency-symbol: New file.
49785         * modules/unictype/property-math: New file.
49786         * modules/unictype/property-other-math: New file.
49787         * modules/unictype/property-paired-punctuation: New file.
49788         * modules/unictype/property-left-of-pair: New file.
49789         * modules/unictype/property-combining: New file.
49790         * modules/unictype/property-composite: New file.
49791         * modules/unictype/property-decimal-digit: New file.
49792         * modules/unictype/property-numeric: New file.
49793         * modules/unictype/property-diacritic: New file.
49794         * modules/unictype/property-extender: New file.
49795         * modules/unictype/property-ignorable-control: New file.
49796         * modules/unictype/property-test: New file.
49797         * modules/unictype/property-byname: New file.
49798         * modules/unictype/property-all: New file.
49799         * modules/unictype/scripts: New file.
49800         * modules/unictype/scripts-all: New file.
49801         * modules/unictype/block-of: New file.
49802         * modules/unictype/block-test: New file.
49803         * modules/unictype/block-list: New file.
49804         * modules/unictype/block-all: New file.
49805         * modules/unictype/syntax-c-whitespace: New file.
49806         * modules/unictype/syntax-java-whitespace: New file.
49807         * modules/unictype/syntax-c-ident: New file.
49808         * modules/unictype/syntax-java-ident: New file.
49809         * modules/unictype/ctype-alnum: New file.
49810         * modules/unictype/ctype-alpha: New file.
49811         * modules/unictype/ctype-cntrl: New file.
49812         * modules/unictype/ctype-digit: New file.
49813         * modules/unictype/ctype-graph: New file.
49814         * modules/unictype/ctype-lower: New file.
49815         * modules/unictype/ctype-print: New file.
49816         * modules/unictype/ctype-punct: New file.
49817         * modules/unictype/ctype-space: New file.
49818         * modules/unictype/ctype-upper: New file.
49819         * modules/unictype/ctype-xdigit: New file.
49820         * modules/unictype/ctype-blank: New file.
49821         * lib/unictype/bidi_byname.c: New file.
49822         * lib/unictype/bidi_name.c: New file.
49823         * lib/unictype/bidi_of.c: New file.
49824         * lib/unictype/bidi_test.c: New file.
49825         * lib/unictype/bitmap.h: New file.
49826         * lib/unictype/block_test.c: New file.
49827         * lib/unictype/blocks.c: New file.
49828         * lib/unictype/categ_C.c: New file.
49829         * lib/unictype/categ_Cc.c: New file.
49830         * lib/unictype/categ_Cf.c: New file.
49831         * lib/unictype/categ_Cn.c: New file.
49832         * lib/unictype/categ_Co.c: New file.
49833         * lib/unictype/categ_Cs.c: New file.
49834         * lib/unictype/categ_L.c: New file.
49835         * lib/unictype/categ_Ll.c: New file.
49836         * lib/unictype/categ_Lm.c: New file.
49837         * lib/unictype/categ_Lo.c: New file.
49838         * lib/unictype/categ_Lt.c: New file.
49839         * lib/unictype/categ_Lu.c: New file.
49840         * lib/unictype/categ_M.c: New file.
49841         * lib/unictype/categ_Mc.c: New file.
49842         * lib/unictype/categ_Me.c: New file.
49843         * lib/unictype/categ_Mn.c: New file.
49844         * lib/unictype/categ_N.c: New file.
49845         * lib/unictype/categ_Nd.c: New file.
49846         * lib/unictype/categ_Nl.c: New file.
49847         * lib/unictype/categ_No.c: New file.
49848         * lib/unictype/categ_P.c: New file.
49849         * lib/unictype/categ_Pc.c: New file.
49850         * lib/unictype/categ_Pd.c: New file.
49851         * lib/unictype/categ_Pe.c: New file.
49852         * lib/unictype/categ_Pf.c: New file.
49853         * lib/unictype/categ_Pi.c: New file.
49854         * lib/unictype/categ_Po.c: New file.
49855         * lib/unictype/categ_Ps.c: New file.
49856         * lib/unictype/categ_S.c: New file.
49857         * lib/unictype/categ_Sc.c: New file.
49858         * lib/unictype/categ_Sk.c: New file.
49859         * lib/unictype/categ_Sm.c: New file.
49860         * lib/unictype/categ_So.c: New file.
49861         * lib/unictype/categ_Z.c: New file.
49862         * lib/unictype/categ_Zl.c: New file.
49863         * lib/unictype/categ_Zp.c: New file.
49864         * lib/unictype/categ_Zs.c: New file.
49865         * lib/unictype/categ_and.c: New file.
49866         * lib/unictype/categ_and_not.c: New file.
49867         * lib/unictype/categ_byname.c: New file.
49868         * lib/unictype/categ_name.c: New file.
49869         * lib/unictype/categ_none.c: New file.
49870         * lib/unictype/categ_of.c: New file.
49871         * lib/unictype/categ_or.c: New file.
49872         * lib/unictype/categ_test.c: New file.
49873         * lib/unictype/combining.c: New file.
49874         * lib/unictype/ctype_alnum.c: New file.
49875         * lib/unictype/ctype_alpha.c: New file.
49876         * lib/unictype/ctype_blank.c: New file.
49877         * lib/unictype/ctype_cntrl.c: New file.
49878         * lib/unictype/ctype_digit.c: New file.
49879         * lib/unictype/ctype_graph.c: New file.
49880         * lib/unictype/ctype_lower.c: New file.
49881         * lib/unictype/ctype_print.c: New file.
49882         * lib/unictype/ctype_punct.c: New file.
49883         * lib/unictype/ctype_space.c: New file.
49884         * lib/unictype/ctype_upper.c: New file.
49885         * lib/unictype/ctype_xdigit.c: New file.
49886         * lib/unictype/decdigit.c: New file.
49887         * lib/unictype/digit.c: New file.
49888         * lib/unictype/identsyntaxmap.h: New file.
49889         * lib/unictype/mirror.c: New file.
49890         * lib/unictype/numeric.c: New file.
49891         * lib/unictype/pr_alphabetic.c: New file.
49892         * lib/unictype/pr_ascii_hex_digit.c: New file.
49893         * lib/unictype/pr_bidi_arabic_digit.c: New file.
49894         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
49895         * lib/unictype/pr_bidi_block_separator.c: New file.
49896         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
49897         * lib/unictype/pr_bidi_common_separator.c: New file.
49898         * lib/unictype/pr_bidi_control.c: New file.
49899         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
49900         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
49901         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
49902         * lib/unictype/pr_bidi_european_digit.c: New file.
49903         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
49904         * lib/unictype/pr_bidi_left_to_right.c: New file.
49905         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
49906         * lib/unictype/pr_bidi_other_neutral.c: New file.
49907         * lib/unictype/pr_bidi_pdf.c: New file.
49908         * lib/unictype/pr_bidi_segment_separator.c: New file.
49909         * lib/unictype/pr_bidi_whitespace.c: New file.
49910         * lib/unictype/pr_byname.c: New file.
49911         * lib/unictype/pr_byname.gperf: New file.
49912         * lib/unictype/pr_combining.c: New file.
49913         * lib/unictype/pr_composite.c: New file.
49914         * lib/unictype/pr_currency_symbol.c: New file.
49915         * lib/unictype/pr_dash.c: New file.
49916         * lib/unictype/pr_decimal_digit.c: New file.
49917         * lib/unictype/pr_default_ignorable_code_point.c: New file.
49918         * lib/unictype/pr_deprecated.c: New file.
49919         * lib/unictype/pr_diacritic.c: New file.
49920         * lib/unictype/pr_extender.c: New file.
49921         * lib/unictype/pr_format_control.c: New file.
49922         * lib/unictype/pr_grapheme_base.c: New file.
49923         * lib/unictype/pr_grapheme_extend.c: New file.
49924         * lib/unictype/pr_grapheme_link.c: New file.
49925         * lib/unictype/pr_hex_digit.c: New file.
49926         * lib/unictype/pr_hyphen.c: New file.
49927         * lib/unictype/pr_id_continue.c: New file.
49928         * lib/unictype/pr_id_start.c: New file.
49929         * lib/unictype/pr_ideographic.c: New file.
49930         * lib/unictype/pr_ids_binary_operator.c: New file.
49931         * lib/unictype/pr_ids_trinary_operator.c: New file.
49932         * lib/unictype/pr_ignorable_control.c: New file.
49933         * lib/unictype/pr_iso_control.c: New file.
49934         * lib/unictype/pr_join_control.c: New file.
49935         * lib/unictype/pr_left_of_pair.c: New file.
49936         * lib/unictype/pr_line_separator.c: New file.
49937         * lib/unictype/pr_logical_order_exception.c: New file.
49938         * lib/unictype/pr_lowercase.c: New file.
49939         * lib/unictype/pr_math.c: New file.
49940         * lib/unictype/pr_non_break.c: New file.
49941         * lib/unictype/pr_not_a_character.c: New file.
49942         * lib/unictype/pr_numeric.c: New file.
49943         * lib/unictype/pr_other_alphabetic.c: New file.
49944         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
49945         * lib/unictype/pr_other_grapheme_extend.c: New file.
49946         * lib/unictype/pr_other_id_continue.c: New file.
49947         * lib/unictype/pr_other_id_start.c: New file.
49948         * lib/unictype/pr_other_lowercase.c: New file.
49949         * lib/unictype/pr_other_math.c: New file.
49950         * lib/unictype/pr_other_uppercase.c: New file.
49951         * lib/unictype/pr_paired_punctuation.c: New file.
49952         * lib/unictype/pr_paragraph_separator.c: New file.
49953         * lib/unictype/pr_pattern_syntax.c: New file.
49954         * lib/unictype/pr_pattern_white_space.c: New file.
49955         * lib/unictype/pr_private_use.c: New file.
49956         * lib/unictype/pr_punctuation.c: New file.
49957         * lib/unictype/pr_quotation_mark.c: New file.
49958         * lib/unictype/pr_radical.c: New file.
49959         * lib/unictype/pr_sentence_terminal.c: New file.
49960         * lib/unictype/pr_soft_dotted.c: New file.
49961         * lib/unictype/pr_space.c: New file.
49962         * lib/unictype/pr_terminal_punctuation.c: New file.
49963         * lib/unictype/pr_test.c: New file.
49964         * lib/unictype/pr_titlecase.c: New file.
49965         * lib/unictype/pr_unassigned_code_value.c: New file.
49966         * lib/unictype/pr_unified_ideograph.c: New file.
49967         * lib/unictype/pr_uppercase.c: New file.
49968         * lib/unictype/pr_variation_selector.c: New file.
49969         * lib/unictype/pr_white_space.c: New file.
49970         * lib/unictype/pr_xid_continue.c: New file.
49971         * lib/unictype/pr_xid_start.c: New file.
49972         * lib/unictype/pr_zero_width.c: New file.
49973         * lib/unictype/scripts.c: New file.
49974         * lib/unictype/sy_c_ident.c: New file.
49975         * lib/unictype/sy_c_whitespace.c: New file.
49976         * lib/unictype/sy_java_ident.c: New file.
49977         * lib/unictype/sy_java_whitespace.c: New file.
49978
49979         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
49980         Unicode 5.0.0.
49981         * lib/unictype/blocks.h: Likewise.
49982         * lib/unictype/categ_C.h: Likewise.
49983         * lib/unictype/categ_Cc.h: Likewise.
49984         * lib/unictype/categ_Cf.h: Likewise.
49985         * lib/unictype/categ_Cn.h: Likewise.
49986         * lib/unictype/categ_Co.h: Likewise.
49987         * lib/unictype/categ_Cs.h: Likewise.
49988         * lib/unictype/categ_L.h: Likewise.
49989         * lib/unictype/categ_Ll.h: Likewise.
49990         * lib/unictype/categ_Lm.h: Likewise.
49991         * lib/unictype/categ_Lo.h: Likewise.
49992         * lib/unictype/categ_Lt.h: Likewise.
49993         * lib/unictype/categ_Lu.h: Likewise.
49994         * lib/unictype/categ_M.h: Likewise.
49995         * lib/unictype/categ_Mc.h: Likewise.
49996         * lib/unictype/categ_Me.h: Likewise.
49997         * lib/unictype/categ_Mn.h: Likewise.
49998         * lib/unictype/categ_N.h: Likewise.
49999         * lib/unictype/categ_Nd.h: Likewise.
50000         * lib/unictype/categ_Nl.h: Likewise.
50001         * lib/unictype/categ_No.h: Likewise.
50002         * lib/unictype/categ_P.h: Likewise.
50003         * lib/unictype/categ_Pc.h: Likewise.
50004         * lib/unictype/categ_Pd.h: Likewise.
50005         * lib/unictype/categ_Pe.h: Likewise.
50006         * lib/unictype/categ_Pf.h: Likewise.
50007         * lib/unictype/categ_Pi.h: Likewise.
50008         * lib/unictype/categ_Po.h: Likewise.
50009         * lib/unictype/categ_Ps.h: Likewise.
50010         * lib/unictype/categ_S.h: Likewise.
50011         * lib/unictype/categ_Sc.h: Likewise.
50012         * lib/unictype/categ_Sk.h: Likewise.
50013         * lib/unictype/categ_Sm.h: Likewise.
50014         * lib/unictype/categ_So.h: Likewise.
50015         * lib/unictype/categ_Z.h: Likewise.
50016         * lib/unictype/categ_Zl.h: Likewise.
50017         * lib/unictype/categ_Zp.h: Likewise.
50018         * lib/unictype/categ_Zs.h: Likewise.
50019         * lib/unictype/categ_of.h: Likewise.
50020         * lib/unictype/combining.h: Likewise.
50021         * lib/unictype/ctype_alnum.h: Likewise.
50022         * lib/unictype/ctype_alpha.h: Likewise.
50023         * lib/unictype/ctype_blank.h: Likewise.
50024         * lib/unictype/ctype_cntrl.h: Likewise.
50025         * lib/unictype/ctype_digit.h: Likewise.
50026         * lib/unictype/ctype_graph.h: Likewise.
50027         * lib/unictype/ctype_lower.h: Likewise.
50028         * lib/unictype/ctype_print.h: Likewise.
50029         * lib/unictype/ctype_punct.h: Likewise.
50030         * lib/unictype/ctype_space.h: Likewise.
50031         * lib/unictype/ctype_upper.h: Likewise.
50032         * lib/unictype/ctype_xdigit.h: Likewise.
50033         * lib/unictype/decdigit.h: Likewise.
50034         * lib/unictype/digit.h: Likewise.
50035         * lib/unictype/mirror.h: Likewise.
50036         * lib/unictype/numeric.h: Likewise.
50037         * lib/unictype/pr_alphabetic.h: Likewise.
50038         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
50039         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
50040         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
50041         * lib/unictype/pr_bidi_block_separator.h: Likewise.
50042         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
50043         * lib/unictype/pr_bidi_common_separator.h: Likewise.
50044         * lib/unictype/pr_bidi_control.h: Likewise.
50045         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
50046         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
50047         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
50048         * lib/unictype/pr_bidi_european_digit.h: Likewise.
50049         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
50050         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
50051         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
50052         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
50053         * lib/unictype/pr_bidi_pdf.h: Likewise.
50054         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
50055         * lib/unictype/pr_bidi_whitespace.h: Likewise.
50056         * lib/unictype/pr_combining.h: Likewise.
50057         * lib/unictype/pr_composite.h: Likewise.
50058         * lib/unictype/pr_currency_symbol.h: Likewise.
50059         * lib/unictype/pr_dash.h: Likewise.
50060         * lib/unictype/pr_decimal_digit.h: Likewise.
50061         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
50062         * lib/unictype/pr_deprecated.h: Likewise.
50063         * lib/unictype/pr_diacritic.h: Likewise.
50064         * lib/unictype/pr_extender.h: Likewise.
50065         * lib/unictype/pr_format_control.h: Likewise.
50066         * lib/unictype/pr_grapheme_base.h: Likewise.
50067         * lib/unictype/pr_grapheme_extend.h: Likewise.
50068         * lib/unictype/pr_grapheme_link.h: Likewise.
50069         * lib/unictype/pr_hex_digit.h: Likewise.
50070         * lib/unictype/pr_hyphen.h: Likewise.
50071         * lib/unictype/pr_id_continue.h: Likewise.
50072         * lib/unictype/pr_id_start.h: Likewise.
50073         * lib/unictype/pr_ideographic.h: Likewise.
50074         * lib/unictype/pr_ids_binary_operator.h: Likewise.
50075         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
50076         * lib/unictype/pr_ignorable_control.h: Likewise.
50077         * lib/unictype/pr_iso_control.h: Likewise.
50078         * lib/unictype/pr_join_control.h: Likewise.
50079         * lib/unictype/pr_left_of_pair.h: Likewise.
50080         * lib/unictype/pr_line_separator.h: Likewise.
50081         * lib/unictype/pr_logical_order_exception.h: Likewise.
50082         * lib/unictype/pr_lowercase.h: Likewise.
50083         * lib/unictype/pr_math.h: Likewise.
50084         * lib/unictype/pr_non_break.h: Likewise.
50085         * lib/unictype/pr_not_a_character.h: Likewise.
50086         * lib/unictype/pr_numeric.h: Likewise.
50087         * lib/unictype/pr_other_alphabetic.h: Likewise.
50088         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
50089         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
50090         * lib/unictype/pr_other_id_continue.h: Likewise.
50091         * lib/unictype/pr_other_id_start.h: Likewise.
50092         * lib/unictype/pr_other_lowercase.h: Likewise.
50093         * lib/unictype/pr_other_math.h: Likewise.
50094         * lib/unictype/pr_other_uppercase.h: Likewise.
50095         * lib/unictype/pr_paired_punctuation.h: Likewise.
50096         * lib/unictype/pr_paragraph_separator.h: Likewise.
50097         * lib/unictype/pr_pattern_syntax.h: Likewise.
50098         * lib/unictype/pr_pattern_white_space.h: Likewise.
50099         * lib/unictype/pr_private_use.h: Likewise.
50100         * lib/unictype/pr_punctuation.h: Likewise.
50101         * lib/unictype/pr_quotation_mark.h: Likewise.
50102         * lib/unictype/pr_radical.h: Likewise.
50103         * lib/unictype/pr_sentence_terminal.h: Likewise.
50104         * lib/unictype/pr_soft_dotted.h: Likewise.
50105         * lib/unictype/pr_space.h: Likewise.
50106         * lib/unictype/pr_terminal_punctuation.h: Likewise.
50107         * lib/unictype/pr_titlecase.h: Likewise.
50108         * lib/unictype/pr_unassigned_code_value.h: Likewise.
50109         * lib/unictype/pr_unified_ideograph.h: Likewise.
50110         * lib/unictype/pr_uppercase.h: Likewise.
50111         * lib/unictype/pr_variation_selector.h: Likewise.
50112         * lib/unictype/pr_white_space.h: Likewise.
50113         * lib/unictype/pr_xid_continue.h: Likewise.
50114         * lib/unictype/pr_xid_start.h: Likewise.
50115         * lib/unictype/pr_zero_width.h: Likewise.
50116         * lib/unictype/scripts.h: Likewise.
50117         * lib/unictype/scripts_byname.gperf: Likewise.
50118         * lib/unictype/sy_c_ident.h: Likewise.
50119         * lib/unictype/sy_c_whitespace.h: Likewise.
50120         * lib/unictype/sy_java_ident.h: Likewise.
50121         * lib/unictype/sy_java_whitespace.h: Likewise.
50122
50123         * lib/unictype/Makefile: New file.
50124         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
50125         glibc.
50126         * lib/unictype/3level.h: New file, copied from glibc.
50127         * lib/unictype/3levelbit.h: New file.
50128
50129 2007-11-11  Bruno Haible  <bruno@clisp.org>
50130
50131         * modules/gperf: New file.
50132         * modules/iconv_open (Depends-on): Add it.
50133         (Makefile.am): Remove the GPERF definition.
50134
50135 2007-11-11  Bruno Haible  <bruno@clisp.org>
50136
50137         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
50138         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
50139
50140 2007-11-11  Bruno Haible  <bruno@clisp.org>
50141
50142         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
50143         (usage): Remove function.
50144
50145 2007-11-11  Bruno Haible  <bruno@clisp.org>
50146
50147         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
50148         gl_FUNC_CEILF_LIBS.
50149         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
50150         gl_FUNC_CEIL_LIBS.
50151         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
50152         gl_FUNC_CEILL_LIBS.
50153         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
50154         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
50155         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
50156
50157 2007-11-11  Bruno Haible  <bruno@clisp.org>
50158
50159         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
50160         roundf were declared but do not exist on functions.
50161         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
50162         roundl were declared but do not exist on functions.
50163         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
50164         HAVE_FLOORL_AND_CEILL, respectively.
50165         Needed for Sun C on Solaris 10.
50166
50167 2007-11-11  Bruno Haible  <bruno@clisp.org>
50168
50169         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
50170         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
50171         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
50172         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
50173         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
50174         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
50175         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
50176         HAVE_DECL_ROUNDF.
50177         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
50178         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
50179         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
50180         of HAVE_DECL_ROUND*.
50181         * modules/math (Makefile.am): Update.
50182
50183 2007-11-10  Bruno Haible  <bruno@clisp.org>
50184
50185         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
50186         ptrdiff_t as m4/intl.m4.
50187
50188 2007-11-10  Jim Meyering  <meyering@redhat.com>
50189
50190         Avoid link failure for the argmatch test.
50191         * tests/test-argmatch.c (usage): Define function to avoid a link
50192         failure: argmatch_die requires a usage function.
50193
50194 2007-11-09  Bruno Haible  <bruno@clisp.org>
50195
50196         * doc/functions/snprintf.texi: Mention BeOS deficiency.
50197         * doc/functions/vsnprintf.texi: Likewise.
50198         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
50199         with a size argument < 2.
50200
50201 2007-11-09  Bruno Haible  <bruno@clisp.org>
50202
50203         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
50204         buffer. Fixes an inefficiency introduced on 2007-11-03.
50205
50206 2007-11-09  Bruno Haible  <bruno@clisp.org>
50207
50208         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
50209         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
50210
50211 2007-11-08  Jim Meyering  <meyering@redhat.com>
50212
50213         Change cache variable name prefix "jm_" to "gl_" everywhere.
50214         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
50215         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
50216         * m4/uptime.m4: s/gl_/jm_/
50217
50218 2007-11-07  Bruno Haible  <bruno@clisp.org>
50219
50220         Update to GNU gettext 0.17.
50221         * m4/intl.m4: Update to GNU gettext 0.17.
50222         * m4/po.m4: Likewise.
50223         * modules/gettext (Files): Remove m4/ulonglong.m4.
50224         (configure.ac): Require gettext infrastructure from version 0.17.
50225
50226 2007-11-06  Bruno Haible  <bruno@clisp.org>
50227
50228         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
50229         symbolic values are not defined in a public header.
50230         * lib/freadable.c (freadable) [QNX]: Likewise.
50231         * lib/freadahead.c (freadahead) [QNX]: Likewise.
50232         * lib/freading.c (freading) [QNX]: Likewise.
50233         * lib/fseterr.c (fseterr) [QNX]: Likewise.
50234         * lib/fwritable.c (fwritable) [QNX]: Likewise.
50235         * lib/fwriting.c (fwriting) [QNX]: Likewise.
50236         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
50237         Reported by Alain Magloire.
50238
50239         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
50240
50241 2007-11-05  Bruno Haible  <bruno@clisp.org>
50242
50243         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
50244         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
50245         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
50246         Reported by Eric Blake.
50247
50248 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50249             Bruno Haible  <bruno@clisp.org>
50250
50251         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
50252         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
50253         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
50254         (malloc): Undefine also before including <stdlib.h>.
50255         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
50256         Needed on OSF/1 4.0.
50257
50258 2007-11-05  Jim Meyering  <meyering@redhat.com>
50259
50260         git-version-gen: sync from coreutils.
50261         * build-aux/git-version-gen: Add comments.
50262         Change the first '-' to '.' in the snapshot version string,
50263         e.g., 6.9-377-08144 -> 6.9.377-08144
50264         Remove first parameter.
50265         Don't declare a version "-dirty" merely because a time
50266         stamp has changed.
50267
50268 2007-11-04  Bruno Haible  <bruno@clisp.org>
50269
50270         * lib/lock.h: Protect all macro definitions containing an 'if'
50271         statement through a "do { ... } while (0)".
50272         * lib/tls.h: Likewise.
50273
50274 2007-11-04  Bruno Haible  <bruno@clisp.org>
50275
50276         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
50277
50278 2007-11-04  Bruno Haible  <bruno@clisp.org>
50279
50280         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
50281         * modules/fprintf-posix (Depends-on): Add nocrash.
50282         * modules/snprintf-posix (Depends-on): Likewise.
50283         * modules/sprintf-posix (Depends-on): Likewise.
50284         * modules/vasnprintf-posix (Depends-on): Likewise.
50285         * modules/vasprintf-posix (Depends-on): Likewise.
50286         * modules/vfprintf-posix (Depends-on): Likewise.
50287         * modules/vsnprintf-posix (Depends-on): Likewise.
50288         * modules/vsprintf-posix (Depends-on): Likewise.
50289         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50290         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50291         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50292         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50293         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50294         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50295         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50296
50297 2007-11-04  Bruno Haible  <bruno@clisp.org>
50298
50299         * modules/nocrash: New file.
50300         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
50301         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
50302
50303 2007-11-04  Bruno Haible  <bruno@clisp.org>
50304
50305         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
50306         precision handling.
50307         * tests/test-vasprintf-posix.c (test_function): Likewise.
50308         * tests/test-snprintf-posix.h (test_function): Likewise.
50309         * tests/test-sprintf-posix.h (test_function): Likewise.
50310
50311         Fix *printf behaviour for large precisions on mingw and BeOS.
50312         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
50313         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
50314         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
50315         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50316         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50317         gl_PRINTF_PRECISION and test its result. Invoke
50318         gl_PREREQ_VASNPRINTF_PRECISION.
50319         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50320         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50321         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50322         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50323         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50324         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50325         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50326         * doc/functions/fprintf.texi: Update.
50327         * doc/functions/printf.texi: Update.
50328         * doc/functions/snprintf.texi: Update.
50329         * doc/functions/sprintf.texi: Update.
50330         * doc/functions/vfprintf.texi: Update.
50331         * doc/functions/vprintf.texi: Update.
50332         * doc/functions/vsnprintf.texi: Update.
50333         * doc/functions/vsprintf.texi: Update.
50334
50335 2007-11-04  Bruno Haible  <bruno@clisp.org>
50336
50337         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
50338
50339 2007-11-04  Bruno Haible  <bruno@clisp.org>
50340
50341         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
50342         Reported by Sylvain Beucler <beuc@gnu.org>.
50343
50344 2007-11-03  Bruno Haible  <bruno@clisp.org>
50345
50346         * tests/test-fprintf-posix2.sh: New file.
50347         * tests/test-fprintf-posix2.c: New file.
50348         * modules/fprintf-posix-tests (Files): Add them.
50349         (TESTS): Add test-fprintf-posix2.sh.
50350         (configure.ac): Check for getrlimit and setrlimit.
50351         (check_PROGRAMS): Add test-fprintf-posix2.
50352
50353         * tests/test-printf-posix2.sh: New file.
50354         * tests/test-printf-posix2.c: New file.
50355         * modules/printf-posix-tests (Files): Add them.
50356         (TESTS): Add test-printf-posix2.sh.
50357         (configure.ac): Check for getrlimit and setrlimit.
50358         (check_PROGRAMS): Add test-printf-posix2.
50359
50360         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
50361         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
50362         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
50363         (decode_double): New function, copied from decode_long_double.
50364         (scale10_round_decimal_decoded): New function, extracted from
50365         scale10_round_decimal_long_double.
50366         (scale10_round_decimal_long_double): Use it.
50367         (scale10_round_decimal_double): New function.
50368         (floorlog10): New function.
50369         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
50370         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
50371         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
50372         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
50373         gl_PRINTF_ENOMEM and test its result. Invoke
50374         gl_PREREQ_VASNPRINTF_ENOMEM.
50375         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
50376         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
50377         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
50378         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
50379         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
50380         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
50381         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
50382         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
50383         * modules/snprintf-posix (Depends-on): Likewise.
50384         * modules/sprintf-posix (Depends-on): Likewise.
50385         * modules/vasnprintf-posix (Depends-on): Likewise.
50386         * modules/vasprintf-posix (Depends-on): Likewise.
50387         * modules/vfprintf-posix (Depends-on): Likewise.
50388         * modules/vsnprintf-posix (Depends-on): Likewise.
50389         * modules/vsprintf-posix (Depends-on): Likewise.
50390         * doc/functions/fprintf.texi: Update.
50391         * doc/functions/printf.texi: Update.
50392         * doc/functions/snprintf.texi: Update.
50393         * doc/functions/sprintf.texi: Update.
50394         * doc/functions/vfprintf.texi: Update.
50395         * doc/functions/vprintf.texi: Update.
50396         * doc/functions/vsnprintf.texi: Update.
50397         * doc/functions/vsprintf.texi: Update.
50398
50399 2007-11-03  Bruno Haible  <bruno@clisp.org>
50400
50401         * modules/frexp-nolibm-tests: New file.
50402
50403         * modules/frexp-nolibm: New file.
50404         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
50405
50406 2007-11-03  Bruno Haible  <bruno@clisp.org>
50407
50408         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
50409         value is C99 compliant.
50410         Needed for OSF/1 5.1.
50411
50412 2007-11-03  Bruno Haible  <bruno@clisp.org>
50413
50414         Fix out-of-memory handling of vasnprintf.
50415         * lib/printf-parse.c: Include <errno.h>.
50416         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
50417         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
50418         is already set.
50419
50420 2007-11-02  Eric Blake  <ebb9@byu.net>
50421
50422         Fix tests on cygwin.
50423         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
50424
50425 2007-11-01  Bruno Haible  <bruno@clisp.org>
50426
50427         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
50428         warning.
50429         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
50430         needed for POSIX compatibility.
50431
50432 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
50433
50434         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
50435         for compatibility with GNU.
50436
50437 2007-11-01  Bruno Haible  <bruno@clisp.org>
50438
50439         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
50440         (putenv): Renamed from rpl_putenv. Change argument type from
50441         'const char *' to 'char *'.
50442         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
50443         of defining putenv in config.h, just set REPLACE_PUTENV.
50444         * modules/putenv (Depends-on): Add stdlib.
50445         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
50446         (Include): Use <stdlib.h>.
50447         * lib/stdlib.in.h (putenv): New declaration.
50448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
50449         REPLACE_PUTENV.
50450         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
50451         REPLACE_PUTENV.
50452         Needed for MacOS X 10.5.0.
50453         Reported by Peter O'Gorman <peter@pogma.com>.
50454
50455 2007-11-01  Jim Meyering  <meyering@redhat.com>
50456
50457         Treat an empty date string exactly like "0".
50458         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
50459         if the remaining date string (to be parsed) is empty, use "0".
50460         Reported by Mischa Molhoek and discussed in this thread:
50461         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
50462
50463 2007-10-31  Bruno Haible  <bruno@clisp.org>
50464
50465         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
50466         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
50467         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
50468         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
50469         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
50470         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
50471
50472 2007-10-31  Bruno Haible  <bruno@clisp.org>
50473
50474         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
50475         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
50476         (AC_TYPE_LONG_LONG_INT): Use it.
50477         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
50478         it as well.
50479         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
50480         to m4/longlong.m4.
50481         * modules/stdint (Files): Remove m4/ulonglong.m4.
50482         * modules/strtoull (Files): Use m4/longlong.m4 instead of
50483         m4/ulonglong.m4.
50484         * modules/strtoumax (Files): Likewise.
50485
50486 2007-10-30  Bruno Haible  <bruno@clisp.org>
50487
50488         * modules/xvasprintf-posix: New file.
50489         Suggested by Eric Blake.
50490
50491 2007-10-30  Bruno Haible  <bruno@clisp.org>
50492
50493         * modules/xprintf-posix-tests: New file.
50494         * tests/test-xprintf-posix.sh: New file.
50495         * tests/test-xprintf-posix.c: New file.
50496         * tests/test-xfprintf-posix.c: New file.
50497
50498         * modules/xprintf-posix: New file.
50499
50500 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50501
50502         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
50503         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
50504         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
50505
50506 2007-10-29  Bruno Haible  <bruno@clisp.org>
50507
50508         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
50509         contain the special marker '_cv_'.
50510         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
50511         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
50512         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
50513         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
50514         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
50515         Reported by Ralf Wildenhues.
50516
50517 2007-10-29  Bruno Haible  <bruno@clisp.org>
50518
50519         * gnulib-tool (func_import): When --lgpl is not specified, set
50520         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
50521         GPLv3.
50522         Reported by Simon Josefsson.
50523
50524 2007-10-28  Bruno Haible  <bruno@clisp.org>
50525
50526         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
50527         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
50528         HAVE_DECL_ISFINITE.
50529         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50530         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
50531         HAVE_DECL_ISFINITE.
50532
50533 2007-10-28  Bruno Haible  <bruno@clisp.org>
50534
50535         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
50536         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
50537
50538 2007-10-28  Bruno Haible  <bruno@clisp.org>
50539
50540         Fix link errors with Sun C 5.0 on Solaris 10.
50541         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
50542         function is declared but not present in the compiler's libm.
50543         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
50544         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
50545         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
50546         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
50547         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
50548         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
50549         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
50550         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
50551         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
50552         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
50553         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
50554         HAVE_DECL_FLOORL.
50555
50556 2007-10-28  Bruno Haible  <bruno@clisp.org>
50557
50558         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
50559         gl_FUNC_FLOORL. Cache the result.
50560         (gl_FUNC_FLOORL): Use it.
50561         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
50562         gl_FUNC_CEILL. Cache the result.
50563         (gl_FUNC_CEILL): Use it.
50564
50565         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
50566         gl_FUNC_FLOOR. Cache the result.
50567         (gl_FUNC_FLOOR): Use it.
50568         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
50569         gl_FUNC_CEIL. Cache the result.
50570         (gl_FUNC_CEIL): Use it.
50571
50572         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
50573         gl_FUNC_FLOORF. Cache the result.
50574         (gl_FUNC_FLOORF): Use it.
50575         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
50576         gl_FUNC_CEILF. Cache the result.
50577         (gl_FUNC_CEILF): Use it.
50578
50579 2007-10-28  Bruno Haible  <bruno@clisp.org>
50580
50581         * gnulib-tool: Allow specifying the LGPL version number through
50582         --lgpl=2 or --lgpl=3.
50583         (func_usage): Document --lgpl with argument.
50584         Handle --lgpl=... arguments.
50585         (func_import): Recognize also gl_LGPL calls with an argument. When
50586         --lgpl=2 is used and the module's license is just LGPL, report an
50587         error. Set sed_transform_lib_file according to the lgpl variable. In
50588         the generated files, use --lgpl or gl_LGPL invocations with argument,
50589         if necessary.
50590         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
50591         an LGPv2+ license.
50592         * doc/gnulib-tool.texi (Modified imports): Update explanation of
50593         gl_LGPL macro.
50594
50595 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50596             Bruno Haible  <bruno@clisp.org>
50597
50598         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
50599         (u16_uctomb_aux): Likewise.
50600         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
50601         !HAVE_INLINE.
50602         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
50603
50604 2007-10-28  Bruno Haible  <bruno@clisp.org>
50605
50606         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
50607         Invoke AM_GETTEXT_OPTION if it exists.
50608         * modules/vasprintf: Likewise.
50609         * modules/verror: Likewise.
50610         * modules/xprintf: Likewise.
50611         * modules/xvasprintf: Likewise.
50612
50613 2007-10-27  Ben Pfaff  <blp@gnu.org>
50614
50615         * lib/math.in.h: Define isfinite macro and prototypes for
50616         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
50617         implementations.
50618         * m4/math_h.m4: New substitutions for isfinite module.
50619         * lib/isfinite.c: New file.
50620         * m4/isfinite.m4: New file.
50621         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
50622         * modules/isfinite: New file.
50623         * modules/isfinite-tests: New file.
50624         * tests/tests-isfinite.c: New file.
50625         * doc/functions/isfinite.texi: Mention isfinite module.
50626         * MODULES.html.sh: Mention new module.
50627
50628 2007-10-27  Ben Pfaff  <blp@gnu.org>
50629
50630         Ralf Wildenhues reported that Tru64 4.0D declares the round
50631         functions but does not have definitions.
50632         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
50633         cannot be found in any library, set the output variable to
50634         "missing" instead of "".
50635         * m4/round.m4: Also use our substitute if we cannot find round in
50636         any library, even if it is declared.
50637         * m4/roundf.m4: Likewise for roundf.
50638         * m4/roundl.m4: Likewise for roundl.
50639         * lib/math.in.h: Undefine roundf, round, roundl before defining
50640         their replacements, to allow for hypothetical systems where these
50641         may be defined as macros but not available in libraries.
50642
50643 2007-10-27  Bruno Haible  <bruno@clisp.org>
50644
50645         * doc/gnulib.texi: Invoke @firstparagraphindent.
50646         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
50647         changes in gnulib.
50648         (Source changes): New section.
50649
50650 2007-10-26  Bruno Haible  <bruno@clisp.org>
50651
50652         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
50653         borrowed from autoconf.
50654
50655 2007-10-26  Bruno Haible  <bruno@clisp.org>
50656
50657         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
50658         strerror returned the empty string. Needed on HP-UX 11.00.
50659
50660 2007-10-24  Micah Cowan  <micah@cowan.name>
50661
50662         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
50663         * build-aux/bootstrap: Remove support for now-unnecessary option,
50664         --cvs-user, and envvars CVS_USER, CVS_RSH.
50665
50666 2007-10-24  Jim Meyering  <meyering@redhat.com>
50667
50668         Avoid diagnostics from sha1sum when there is no cached checksum.
50669         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
50670         if the po.s1 file hasn't been created yet.
50671
50672         * build-aux/bootstrap: Sync from coreutils:
50673         2007-10-24  Jim Meyering  <meyering@redhat.com>
50674         Get gnulib from the git repository, not from an obsolete cvs one.
50675         * build-aux/bootstrap: Suggestion from Micah Cowan.
50676         2007-10-04  Jim Meyering  <jim@meyering.net>
50677         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
50678         (update_po_files): Work also when there are no .po files in po/.
50679
50680 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
50681
50682         * README: Append ".git" to git and cg examples.
50683         Problem reported by Benoit Sigoure.
50684
50685 2007-10-23  Micah Cowan  <micah@cowan.name>
50686
50687         * users.txt: Add wget.
50688
50689 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50690
50691         Fix linking of some unistdio tests on FreeBSD.
50692         * modules/unistdio/u16-vsnprintf-tests
50693         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
50694         * modules/unistdio/u16-vsprintf-tests
50695         (test_u16_vsnprintf1_LDADD): Likewise.
50696         * modules/unistdio/u32-vsnprintf-tests
50697         (test_u32_vsnprintf1_LDADD): Likewise.
50698         * modules/unistdio/u32-vsprintf-tests
50699         (test_u32_vsprintf1_LDADD): Likewise.
50700         * modules/unistdio/u8-vsnprintf-tests
50701         (test_u8_vsnprintf1_LDADD): Likewise.
50702         * modules/unistdio/u8-vsprintf-tests
50703         (test_u8_vsprintf1_LDADD): Likewise.
50704         * modules/unistdio/ulc-vsnprintf-tests
50705         (test_ulc_vsnprintf1_LDADD): Likewise.
50706         * modules/unistdio/ulc-vsprintf-tests
50707         (test_ulc_vsprintf1_LDADD): Likewise.
50708
50709         Fix linking of some uniconv tests on FreeBSD.
50710         * modules/uniconv/u16-conv-from-enc-tests
50711         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
50712         * modules/uniconv/u16-conv-to-enc-tests
50713         (test_u16_conv_to_enc_LDADD): Likewise.
50714         * modules/uniconv/u16-strconv-from-enc-tests
50715         (test_u16_strconv_from_enc_LDADD): Likewise.
50716         * modules/uniconv/u16-strconv-to-enc-tests
50717         (test_u16_strconv_to_enc_LDADD): Likewise.
50718         * modules/uniconv/u32-conv-from-enc-tests
50719         (test_u32_conv_from_enc_LDADD): Likewise.
50720         * modules/uniconv/u32-conv-to-enc-tests
50721         (test_u32_conv_to_enc_LDADD): Likewise.
50722         * modules/uniconv/u32-strconv-from-enc-tests
50723         (test_u32_strconv_from_enc_LDADD): Likewise.
50724         * modules/uniconv/u32-strconv-to-enc-tests
50725         (test_u32_strconv_to_enc_LDADD): Likewise.
50726         * modules/uniconv/u8-conv-from-enc-tests
50727         (test_u8_conv_from_enc_LDADD): Likewise.
50728         * modules/uniconv/u8-conv-to-enc-tests
50729         (test_u8_conv_to_enc_LDADD): Likewise.
50730         * modules/uniconv/u8-strconv-from-enc-tests
50731         (test_u8_strconv_from_enc_LDADD): Likewise.
50732         * modules/uniconv/u8-strconv-to-enc-tests
50733         (test_u8_strconv_to_enc_LDADD): Likewise.
50734
50735 2007-10-22  Bruno Haible  <bruno@clisp.org>
50736
50737         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
50738         size.
50739
50740 2007-10-22  Eric Blake  <ebb9@byu.net>
50741
50742         Tweak x*printf documentation.
50743         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
50744         variable name and comments.
50745         Suggested by Bruno Haible.
50746
50747 2007-10-22  Bruno Haible  <bruno@clisp.org>
50748
50749         * lib/acl.c (copy_acl): Fix file name in comment.
50750
50751 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50752
50753         Fix Tru64 problem with stdbool.h.
50754         * lib/stdbool.in.h (false, true):
50755         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
50756         Don't declare as an enum in this situation; it runs afoul of Tru64.
50757         Problem reported by Steven M. Schweda in
50758         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
50759
50760 2007-10-22  Eric Blake  <ebb9@byu.net>
50761
50762         Also wrap vf?printf.
50763         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
50764         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
50765         (xvprintf, xvfprintf): New functions.
50766
50767 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50768
50769         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
50770         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
50771
50772         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
50773         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
50774
50775 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
50776
50777         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
50778         by Bruno Haible.
50779
50780 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50781
50782         * lib/getloadavg.c
50783         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
50784         Undef `sys' after including sys/table.h, for Tru64 4.0D.
50785
50786         * tests/test-i-ring.c: Work for C89.
50787
50788 2007-10-22  Bruno Haible  <bruno@clisp.org>
50789
50790         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
50791         -1u, in preprocessor expression, so that we don't test for the bug
50792         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
50793         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
50794
50795 2007-10-22  Eric Blake  <ebb9@byu.net>
50796
50797         * tests/test-yesno.sh: Silence stderr during test.
50798
50799 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50800
50801         * modules/crypto/gc-camellia: New file.
50802
50803         * m4/gc-camellia.m4: New file.
50804
50805         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
50806
50807         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
50808
50809 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50810
50811         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
50812         --help to stdout.  Reported by sms@antinode.org (Steven
50813         M. Schweda).
50814
50815 2007-10-22  Simon Josefsson  <simon@josefsson.org>
50816
50817         * users.txt: Fix link to libksba.
50818
50819 2007-10-21  Ben Pfaff  <blp@gnu.org>
50820
50821         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
50822         round.c roundf implementation that depends on floorf and ceilf to
50823         be tested unconditionally.
50824
50825 2007-10-21  Ben Pfaff  <blp@gnu.org>
50826
50827         * m4/check-libm-func.m4: Removed.
50828         * m4/check-math-lib.m4: New file.
50829         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
50830         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
50831         definition and lack of AC_LIBOBJ([roundf]).
50832         * m4/roundl.m4: Ditto, and similarly for roundl.
50833         * modules/round: Reference new m4 file.
50834         * modules/roundf: Ditto.
50835         * modules/roundl: Ditto.
50836         * tests/test-round2.c (main): Use ROUND instead of round.
50837         Bug report from Bruno Haible.
50838
50839 2007-10-21  Bruno Haible  <bruno@clisp.org>
50840
50841         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
50842         context.
50843
50844 2007-10-21  Bruno Haible  <bruno@clisp.org>
50845
50846         * tests/test-wcwidth.c (main): Allow negative result for some control
50847         characters.
50848
50849         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
50850         Needed on OSF/1 5.1.
50851
50852 2007-10-21  Bruno Haible  <bruno@clisp.org>
50853
50854         * tests/test-floorf1.c: Include isnanf.h.
50855         (main): Use isnanf() instead of isnan().
50856         * tests/test-ceilf1.c: Include isnanf.h.
50857         (main): Use isnanf() instead of isnan().
50858         * tests/test-truncf1.c: Include isnanf.h.
50859         (main): Use isnanf() instead of isnan().
50860         * tests/test-roundf1.c: Include isnanf.h.
50861         (main): Use isnanf() instead of isnan().
50862
50863 2007-10-21  Eric Blake  <ebb9@byu.net>
50864
50865         * users.txt: Update URL for m4.
50866
50867 2007-10-21  Bruno Haible  <bruno@clisp.org>
50868
50869         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
50870
50871 2007-10-21  Bruno Haible  <bruno@clisp.org>
50872
50873         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
50874         Git's management files if the CVS files are not present.
50875
50876 2007-10-20  Bruno Haible  <bruno@clisp.org>
50877
50878         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
50879         gcc-3.4.x.
50880
50881 2007-10-20  Ben Pfaff  <blp@gnu.org>
50882
50883         * lib/math.in.h: Declare round, roundf, roundl if we are providing
50884         implementations.
50885         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
50886         * lib/round.c: New file.
50887         * lib/roundf.c: New file.
50888         * lib/roundl.c: New file.
50889         * m4/round.m4: New file.
50890         * m4/roundf.m4: New file.
50891         * m4/roundl.m4: New file.
50892         * m4/check-libm-func-m4: New file.
50893         * modules/math: Replace round, roundf, roundl related @VARS@ in
50894         math.in.h.
50895         * modules/round: New file.
50896         * modules/round-tests: New file.
50897         * modules/roundf: New file.
50898         * modules/roundf-tests: New file.
50899         * modules/roundl: New file.
50900         * modules/roundl-tests: New file.
50901         * tests/test-round1.c: New file.
50902         * tests/test-round2.c: New file.
50903         * tests/test-roundf1.c: New file.
50904         * tests/test-roundf2.c: New file.
50905         * tests/test-roundl.c: New file.
50906         * doc/functions/round.texi: Mention round module.
50907         * doc/functions/roundf.texi: Mention roundf module.
50908         * doc/functions/roundl.texi: Mention roundl module.
50909         * MODULES.html.sh: Mention new modules.
50910         Thanks to Bruno Haible for suggestions.
50911
50912 2007-10-20  Jim Meyering  <meyering@redhat.com>
50913
50914         * lib/xprintf.c: Include <config.h> unconditionally.
50915
50916         Change xprintf's license to GPL.
50917         * modules/xprintf (License): s/LGPL/GPL/, since this module
50918         depends on modules (exit and exitfail) which are GPL.
50919         Suggestion from Bruno Haible.
50920
50921         xprintf fixes.
50922         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
50923         Use a clearer diagnostic.
50924         Patch from Bruno Haible.
50925
50926 2007-10-20  Bruno Haible  <bruno@clisp.org>
50927
50928         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
50929         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
50930         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50931
50932 2007-10-20  Bruno Haible  <bruno@clisp.org>
50933
50934         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
50935         precision in the comparison result > x - 1 or similar.
50936         * tests/test-ceilf2.c (correct_result_p): Likewise.
50937         * tests/test-truncf2.c (correct_result_p): Likewise.
50938         * tests/test-trunc2.c (correct_result_p): Likewise.
50939         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
50940
50941 2007-10-20  Bruno Haible  <bruno@clisp.org>
50942
50943         * modules/ceil: New file.
50944         * m4/ceil.m4: New file.
50945         * doc/functions/ceil.texi: Mention the 'ceil' module.
50946
50947 2007-10-20  Bruno Haible  <bruno@clisp.org>
50948
50949         * modules/floor: New file.
50950         * m4/floor.m4: New file.
50951         * doc/functions/floor.texi: Mention the 'floor' module.
50952
50953 2007-10-20  Bruno Haible  <bruno@clisp.org>
50954
50955         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
50956         of %a.
50957         * modules/floorf-tests (Depends-on): Likewise.
50958         * modules/truncf-tests (Depends-on): Likewise.
50959         * modules/trunc-tests (Depends-on): Likewise.
50960         Reported by Ben Pfaff.
50961
50962 2007-10-19  Jim Meyering  <meyering@redhat.com>
50963
50964         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
50965         Don't bother testing specific errno values.  Just test ferror.
50966
50967         New module: xprintf
50968         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
50969
50970 2007-10-19  Bruno Haible  <bruno@clisp.org>
50971
50972         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
50973         syntax.
50974         * modules/javaexec (Makefile.am): Likewise.
50975         * modules/relocatable-prog (Makefile.am): Likewise.
50976         Suggested by Jim Meyering.
50977
50978 2007-10-18  Bruno Haible  <bruno@clisp.org>
50979
50980         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
50981         Reported by Jim Meyering.
50982
50983 2007-10-18  Eric Blake  <ebb9@byu.net>
50984
50985         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
50986
50987 2007-10-18  Bruno Haible  <bruno@clisp.org>
50988
50989         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
50990         the format string into writable memory. Needed in Fortify conditions.
50991
50992 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
50993             Bruno Haible  <bruno@clisp.org>
50994
50995         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
50996         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
50997         * modules/trim (Depends-on): Add mbchar.
50998         (configure.ac): Add gl_FUNC_MBRTOWC.
50999         (Makefile.am): Augment lib_SOURCES.
51000
51001 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
51002
51003         Modify glob.c to use fstatat and dirfd, to simplify it.
51004         Suggested by Eric Blake.
51005         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
51006         Don't include <stdbool.h>; not used.
51007         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
51008         (link_exists_p): Simplify implementation, since we can now assume
51009         dirfd and fstatat.
51010         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
51011
51012 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51013
51014         * gnulib-tool (func_get_dependencies): Fix sed script to
51015         match only tests.
51016
51017 2007-10-17  Bruno Haible  <bruno@clisp.org>
51018
51019         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
51020         allow locale names without encoding suffix.
51021         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
51022         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
51023
51024 2007-10-16  Bruno Haible  <bruno@clisp.org>
51025
51026         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
51027         * lib/getgroups.c (getgroups): Likewise.
51028         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
51029
51030 2007-10-16  Bruno Haible  <bruno@clisp.org>
51031
51032         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
51033         * modules/malloc-posix (License): Likewise.
51034         * modules/realloc-posix (License): Likewise.
51035         * modules/calloc-posix (License): Likewise.
51036         * modules/intprops (License): Change from GPL to LGPL, with
51037         Paul Eggert's approval.
51038
51039 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51040
51041         Merge glibc changes into lib/glob.c.
51042
51043         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
51044         2007-10-15 04:59:03 UTC.  Here are the changes:
51045
51046         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
51047
51048         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
51049
51050         * lib/glob.c: Add some branch prediction throughout.
51051
51052         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
51053
51054         [BZ #5103]
51055         * lib/glob.c (glob): Recognize patterns starting \/.
51056
51057         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
51058
51059         [BZ #3996]
51060         * lib/glob.c (attribute_hidden): Define if not defined.
51061         (glob): Unescape dirname, filename or username when needed and not
51062         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
51063         is NULL.  Handle unescaped [ in pattern without closing ].
51064         Don't pass GLOB_CHECK down to recursive glob for directories.
51065         (__glob_pattern_type): New function.
51066         (__glob_pattern_p): Implement using __glob_pattern_type.
51067         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
51068         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
51069         Remove unreachable code.
51070
51071         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
51072
51073         * lib/glob.c (glob_in_dir): Add some comments and asserts to
51074         explain why there are no leaks.
51075
51076         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
51077
51078         [BZ #3253]
51079         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
51080         time, rather allocate increasingly bigger arrays of pointers, if
51081         possible with alloca, if too large with malloc.
51082
51083 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
51084
51085         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
51086         Problem reported by H.Merijn Brand in
51087         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
51088         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
51089         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
51090
51091 2007-10-15  Bruno Haible  <bruno@clisp.org>
51092
51093         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
51094         with explicit rpl_ prefix.
51095         * lib/fopen.c (fopen): Likewise.
51096         * lib/freopen.c (freopen): Likewise.
51097         * lib/iconv.c (iconv): Likewise.
51098         * lib/iconv_close.c (iconv_close): Likewise.
51099
51100 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51101
51102         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
51103
51104 2007-10-15  Bruno Haible  <bruno@clisp.org>
51105
51106         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
51107         <stddef.h> instead of <stdlib.h> since we only need NULL.
51108         Reported by Ben Pfaff <blp@cs.stanford.edu>.
51109
51110 2007-10-15  Bruno Haible  <bruno@clisp.org>
51111
51112         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
51113         Replace paragraph talking about LIBOBJS.
51114         Reported by Colin Watson <cjwatson@debian.org>.
51115
51116 2007-10-15  Bruno Haible  <bruno@clisp.org>
51117
51118         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
51119         <stdlib.h> before using NULL.
51120
51121 2007-10-15  Simon Josefsson  <simon@josefsson.org>
51122
51123         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
51124         Reported by Albert Chin <china@thewrittenword.com>.
51125
51126 2007-10-14  Bruno Haible  <bruno@clisp.org>
51127
51128         * modules/iconv_open-utf-tests: New file.
51129         * tests/test-iconv-utf.c: New file.
51130
51131         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
51132         * modules/iconv_open-utf: New file.
51133         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
51134         (iconv, iconv_close): New declarations.
51135         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
51136         be defined.
51137         (iconv_open): Add special handling of conversion between UTF-8 and
51138         UTF-{16,32}{BE,LE}.
51139         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
51140         * lib/iconv_close.c: New file.
51141         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
51142         gl_FUNC_ICONV_OPEN.
51143         (gl_FUNC_ICONV_OPEN): Use it.
51144         (gl_FUNC_ICONV_OPEN_UTF): New macro.
51145         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
51146         and REPLACE_ICONV_UTF.
51147         * modules/iconv_open (Depends-on): Add c-strcase.
51148         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
51149         ICONV_CONST.
51150         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
51151
51152 2007-10-13  Albert Chin  <china@thewrittenword.com>
51153             Bruno Haible  <bruno@clisp.org>
51154
51155         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
51156         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
51157
51158 2007-10-13  Bruno Haible  <bruno@clisp.org>
51159
51160         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
51161         defined, use the ISO C99 inline semantics.
51162         * lib/argp.h (ARGP_EI): Likewise.
51163
51164 2007-10-13  Bruno Haible  <bruno@clisp.org>
51165
51166         Handle 'inline' change in gcc 4.3.0.
51167         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
51168         argp_fmtstream_write, argp_fmtstream_set_lmargin,
51169         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
51170         argp_fmtstream_point): Disable 'extern' declaration if the function
51171         definition is going to be provided inline.
51172         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
51173         semantics, not the ISO C99 inline semantics.
51174         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
51175         'extern' declaration if the function definition is going to be provided
51176         inline.
51177         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
51178         the GNU C inline semantics, not the ISO C99 inline semantics. With
51179         GCC 4.2, avoid a warning.
51180
51181 2007-10-13  Bruno Haible  <bruno@clisp.org>
51182
51183         * lib/freading.h (freading): Enable the use of __freading for
51184         glibc >= 2.7.
51185         * lib/freading.c (freading): Likewise.
51186
51187 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
51188
51189         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
51190         "warning: C99 inline functions are not supported; using GNU89".
51191
51192 2007-10-12  Bruno Haible  <bruno@clisp.org>
51193
51194         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
51195         of 2.
51196         * tests/test-ceilf2.c: New file.
51197         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
51198
51199         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
51200         * modules/ceilf-tests: Update.
51201
51202 2007-10-12  Bruno Haible  <bruno@clisp.org>
51203
51204         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
51205         of 2.
51206         * tests/test-floorf2.c: New file.
51207         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
51208
51209         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
51210         * modules/floorf-tests: Update.
51211
51212 2007-10-12  Bruno Haible  <bruno@clisp.org>
51213
51214         * tests/test-trunc2.c: New file.
51215         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
51216
51217         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
51218         * modules/trunc-tests: Update.
51219
51220 2007-10-12  Bruno Haible  <bruno@clisp.org>
51221
51222         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
51223         of 2.
51224         * tests/test-truncf2.c: New file.
51225         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
51226
51227         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
51228         * modules/truncf-tests: Update.
51229
51230 2007-10-11  Eric Blake  <ebb9@byu.net>
51231
51232         Don't claim strerror is broken on Interix.
51233         * doc/functions/strerror.texi (strerror): Known broken systems are
51234         now Solaris 8, and not Interix.
51235         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
51236         Interix on cross-compile.
51237         Reported by Martin Koeppe in
51238         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
51239
51240 2007-10-11  Bruno Haible  <bruno@clisp.org>
51241
51242         * modules/i-ring-tests: New file.
51243         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
51244         instead of assert.
51245
51246 2007-10-11  Bruno Haible  <bruno@clisp.org>
51247
51248         * modules/filenamecat-tests: New file.
51249         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
51250         * lib/filenamecat.c: Remove test code.
51251
51252 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
51253
51254         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
51255
51256         * lib/strerror.c: Include <string.h> always, to test interface,
51257         and to remove the need for the dummy.
51258         Include intprops.h to compute width instead of doing it ourselves
51259         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
51260         (strerror): Define it to return NULL if there's no system strerror.
51261         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
51262         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
51263         ancient pre-strerror Unix systems well any more.  Saying "unknown
51264         system error" is enough.
51265         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
51266         simpler strerror.c implementation.
51267         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
51268         Simplify the tests to reflect the simpler strerror implementation.
51269         * modules/strerror (Depends-on): Add intprops.
51270
51271 2007-10-09  Eric Blake  <ebb9@byu.net>
51272
51273         Silence test-fpending.
51274         * modules/fpending-tests (Files): Add wrapper script.
51275         * tests/test-fpending.sh: New file.
51276
51277 2007-10-09  Bruno Haible  <bruno@clisp.org>
51278
51279         * MODULES.html.sh (func_module): Don't create a hyperlink for
51280         function names like 'printf_frexp'.
51281         (Misc): Add crc, memxor.
51282         (Characteristics of floating types): New section.
51283         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
51284         isnanf-nolibm, signbit, trunc, truncf, truncl.
51285         (Enhancements for ISO C 99 functions): New subsection Input/output.
51286         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
51287         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
51288         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
51289         (Compatibility checks for POSIX:2001 functions): Add clock-time.
51290         (Enhancements for POSIX:2001 functions): Add chdir-long.
51291         (File system functions): Add areadlink, chdir-safer, read-file.
51292         Remove cycle-check.
51293         (File system as inode set): New section.
51294         (Date and time): Add gethrxtime.
51295         (Multithreading): Add openmp.
51296         (Internationalization functions): Add localename.
51297         (Unicode string functions): Add unistr/u*-mbsnlen.
51298         (Support for maintaining and releasing projects): Add git-version-gen.
51299         (Lone files): Remove directories.
51300
51301 2007-10-08  Ben Pfaff  <blp@gnu.org>
51302
51303         * lib/xmalloca.h: Fix typo in comment.
51304
51305 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
51306
51307         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
51308         when avoiding problems with integer overflow.  Use a portable test
51309         instead.
51310
51311 2007-10-08  Simon Josefsson  <simon@josefsson.org>
51312
51313         * modules/dummy (License): Change to LGPLv2+.
51314         * modules/float (License): Likewise
51315         * modules/realloc (License): Likewise
51316         * modules/stdlib (License): Likewise
51317
51318 2007-10-07  Bruno Haible  <bruno@clisp.org>
51319
51320         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
51321         * floor.c (TWO_MANT_DIG): Likewise.
51322         * ceil.c (TWO_MANT_DIG): Likewise.
51323         Reported by Ben Pfaff.
51324
51325 2007-10-07  Bruno Haible  <bruno@clisp.org>
51326
51327         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
51328         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
51329         * lib/frexp.c (FUNC): Likewise.
51330         * lib/printf-frexp.h (printf_frexp): Likewise.
51331         * lib/printf-frexpl.h (printf_frexpl): Likewise.
51332         * lib/printf-frexp.c (FUNC): Likewise.
51333         Suggested by Jim Meyering.
51334
51335 2007-10-07  Jim Meyering  <meyering@redhat.com>
51336
51337         Make xnanosleep's integer overflow test more robust.
51338         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
51339         so that gcc-4.3.0 doesn't optimize away this test for overflow.
51340
51341 2007-10-07  Bruno Haible  <bruno@clisp.org>
51342
51343         * NEWS: Mention the license change.
51344
51345         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
51346         abbreviations in the modules files.
51347
51348         Change copyright notice from GPLv2+ to GPLv3+.
51349         * README: Change copyright notice.
51350         * MODULES.html.sh: Likewise.
51351         * build-aux/bootstrap.conf: Likewise.
51352         * build-aux/config.libpath: Likewise.
51353         * build-aux/csharpcomp.sh.in: Likewise.
51354         * build-aux/csharpexec.sh.in: Likewise.
51355         * build-aux/install-reloc: Likewise.
51356         * build-aux/javacomp.sh.in: Likewise.
51357         * build-aux/javaexec.sh.in: Likewise.
51358         * build-aux/ldd.sh.in: Likewise.
51359         * build-aux/reloc-ldflags: Likewise.
51360         * build-aux/relocatable.sh.in: Likewise.
51361         * build-aux/x-to-1.in: Likewise.
51362         * check-module: Likewise.
51363         * config/srclistvars.sh: Likewise.
51364         * gnulib-tool: Likewise.
51365         * lib/acl-internal.h: Likewise.
51366         * lib/acl.c: Likewise.
51367         * lib/acl.h: Likewise.
51368         * lib/acl_entries.c: Likewise.
51369         * lib/areadlink-with-size.c: Likewise.
51370         * lib/areadlink.c: Likewise.
51371         * lib/areadlink.h: Likewise.
51372         * lib/argmatch.c: Likewise.
51373         * lib/argmatch.h: Likewise.
51374         * lib/argp-ba.c: Likewise.
51375         * lib/argp-eexst.c: Likewise.
51376         * lib/argp-fmtstream.c: Likewise.
51377         * lib/argp-fmtstream.h: Likewise.
51378         * lib/argp-fs-xinl.c: Likewise.
51379         * lib/argp-help.c: Likewise.
51380         * lib/argp-namefrob.h: Likewise.
51381         * lib/argp-parse.c: Likewise.
51382         * lib/argp-pin.c: Likewise.
51383         * lib/argp-pv.c: Likewise.
51384         * lib/argp-pvh.c: Likewise.
51385         * lib/argp-xinl.c: Likewise.
51386         * lib/argp.h: Likewise.
51387         * lib/at-func.c: Likewise.
51388         * lib/atanl.c: Likewise.
51389         * lib/backupfile.c: Likewise.
51390         * lib/backupfile.h: Likewise.
51391         * lib/basename.c: Likewise.
51392         * lib/binary-io.h: Likewise.
51393         * lib/byteswap.in.h: Likewise.
51394         * lib/c-stack.c: Likewise.
51395         * lib/c-stack.h: Likewise.
51396         * lib/c-strcasestr.c: Likewise.
51397         * lib/c-strcasestr.h: Likewise.
51398         * lib/c-strstr.c: Likewise.
51399         * lib/c-strstr.h: Likewise.
51400         * lib/c-strtod.c: Likewise.
51401         * lib/calloc.c: Likewise.
51402         * lib/canon-host.c: Likewise.
51403         * lib/canon-host.h: Likewise.
51404         * lib/canonicalize-lgpl.c: Likewise.
51405         * lib/canonicalize.c: Likewise.
51406         * lib/canonicalize.h: Likewise.
51407         * lib/ceil.c: Likewise.
51408         * lib/ceilf.c: Likewise.
51409         * lib/ceill.c: Likewise.
51410         * lib/chdir-long.c: Likewise.
51411         * lib/chdir-long.h: Likewise.
51412         * lib/chdir-safer.c: Likewise.
51413         * lib/chdir-safer.h: Likewise.
51414         * lib/chown.c: Likewise.
51415         * lib/classpath.c: Likewise.
51416         * lib/classpath.h: Likewise.
51417         * lib/clean-temp.c: Likewise.
51418         * lib/clean-temp.h: Likewise.
51419         * lib/cloexec.c: Likewise.
51420         * lib/close-stream.c: Likewise.
51421         * lib/closein.c: Likewise.
51422         * lib/closein.h: Likewise.
51423         * lib/closeout.c: Likewise.
51424         * lib/closeout.h: Likewise.
51425         * lib/concat-filename.c: Likewise.
51426         * lib/copy-file.c: Likewise.
51427         * lib/copy-file.h: Likewise.
51428         * lib/count-one-bits.h: Likewise.
51429         * lib/crc.c: Likewise.
51430         * lib/crc.h: Likewise.
51431         * lib/creat-safer.c: Likewise.
51432         * lib/csharpcomp.c: Likewise.
51433         * lib/csharpcomp.h: Likewise.
51434         * lib/csharpexec.c: Likewise.
51435         * lib/csharpexec.h: Likewise.
51436         * lib/cycle-check.c: Likewise.
51437         * lib/cycle-check.h: Likewise.
51438         * lib/diacrit.c: Likewise.
51439         * lib/diacrit.h: Likewise.
51440         * lib/diffseq.h: Likewise.
51441         * lib/dirchownmod.c: Likewise.
51442         * lib/dirent.in.h: Likewise.
51443         * lib/dirfd.c: Likewise.
51444         * lib/dirfd.h: Likewise.
51445         * lib/dirname.c: Likewise.
51446         * lib/dirname.h: Likewise.
51447         * lib/dummy.c: Likewise.
51448         * lib/dup-safer.c: Likewise.
51449         * lib/dup2.c: Likewise.
51450         * lib/eealloc.h: Likewise.
51451         * lib/error.c: Likewise.
51452         * lib/error.h: Likewise.
51453         * lib/euidaccess.c: Likewise.
51454         * lib/exclude.c: Likewise.
51455         * lib/exclude.h: Likewise.
51456         * lib/execute.c: Likewise.
51457         * lib/execute.h: Likewise.
51458         * lib/exitfail.c: Likewise.
51459         * lib/exitfail.h: Likewise.
51460         * lib/expl.c: Likewise.
51461         * lib/fatal-signal.c: Likewise.
51462         * lib/fatal-signal.h: Likewise.
51463         * lib/fbufmode.c: Likewise.
51464         * lib/fbufmode.h: Likewise.
51465         * lib/fchdir.c: Likewise.
51466         * lib/fchmodat.c: Likewise.
51467         * lib/fchownat.c: Likewise.
51468         * lib/fcntl--.h: Likewise.
51469         * lib/fcntl-safer.h: Likewise.
51470         * lib/fcntl.in.h: Likewise.
51471         * lib/fd-safer.c: Likewise.
51472         * lib/fflush.c: Likewise.
51473         * lib/file-has-acl.c: Likewise.
51474         * lib/file-set.c: Likewise.
51475         * lib/file-type.c: Likewise.
51476         * lib/file-type.h: Likewise.
51477         * lib/fileblocks.c: Likewise.
51478         * lib/filemode.c: Likewise.
51479         * lib/filemode.h: Likewise.
51480         * lib/filename.h: Likewise.
51481         * lib/filenamecat.c: Likewise.
51482         * lib/filenamecat.h: Likewise.
51483         * lib/findprog.c: Likewise.
51484         * lib/findprog.h: Likewise.
51485         * lib/float.in.h: Likewise.
51486         * lib/floor.c: Likewise.
51487         * lib/floorf.c: Likewise.
51488         * lib/floorl.c: Likewise.
51489         * lib/fopen-safer.c: Likewise.
51490         * lib/fopen.c: Likewise.
51491         * lib/fpending.c: Likewise.
51492         * lib/fpending.h: Likewise.
51493         * lib/fprintf.c: Likewise.
51494         * lib/fprintftime.h: Likewise.
51495         * lib/fpucw.h: Likewise.
51496         * lib/fpurge.c: Likewise.
51497         * lib/fpurge.h: Likewise.
51498         * lib/freadable.c: Likewise.
51499         * lib/freadable.h: Likewise.
51500         * lib/freadahead.c: Likewise.
51501         * lib/freadahead.h: Likewise.
51502         * lib/freading.c: Likewise.
51503         * lib/freading.h: Likewise.
51504         * lib/free.c: Likewise.
51505         * lib/freopen.c: Likewise.
51506         * lib/frexp.c: Likewise.
51507         * lib/frexpl.c: Likewise.
51508         * lib/fseek.c: Likewise.
51509         * lib/fseterr.c: Likewise.
51510         * lib/fseterr.h: Likewise.
51511         * lib/fstatat.c: Likewise.
51512         * lib/fstrcmp.c: Likewise.
51513         * lib/fstrcmp.h: Likewise.
51514         * lib/fsusage.c: Likewise.
51515         * lib/fsusage.h: Likewise.
51516         * lib/ftell.c: Likewise.
51517         * lib/ftello.c: Likewise.
51518         * lib/fts-cycle.c: Likewise.
51519         * lib/fts.c: Likewise.
51520         * lib/fts_.h: Likewise.
51521         * lib/full-read.c: Likewise.
51522         * lib/full-read.h: Likewise.
51523         * lib/full-write.c: Likewise.
51524         * lib/full-write.h: Likewise.
51525         * lib/fwritable.c: Likewise.
51526         * lib/fwritable.h: Likewise.
51527         * lib/fwriteerror.c: Likewise.
51528         * lib/fwriteerror.h: Likewise.
51529         * lib/fwriting.c: Likewise.
51530         * lib/fwriting.h: Likewise.
51531         * lib/gcd.c: Likewise.
51532         * lib/gcd.h: Likewise.
51533         * lib/getcwd.c: Likewise.
51534         * lib/getdate.h: Likewise.
51535         * lib/getdate.y: Likewise.
51536         * lib/getdomainname.c: Likewise.
51537         * lib/getdomainname.h: Likewise.
51538         * lib/getgroups.c: Likewise.
51539         * lib/gethostname.c: Likewise.
51540         * lib/gethrxtime.c: Likewise.
51541         * lib/gethrxtime.h: Likewise.
51542         * lib/getloadavg.c: Likewise.
51543         * lib/getndelim2.c: Likewise.
51544         * lib/getndelim2.h: Likewise.
51545         * lib/getnline.c: Likewise.
51546         * lib/getnline.h: Likewise.
51547         * lib/getopt.c: Likewise.
51548         * lib/getopt.in.h: Likewise.
51549         * lib/getopt1.c: Likewise.
51550         * lib/getopt_int.h: Likewise.
51551         * lib/getpagesize.h: Likewise.
51552         * lib/getsubopt.c: Likewise.
51553         * lib/gettime.c: Likewise.
51554         * lib/getugroups.c: Likewise.
51555         * lib/getugroups.h: Likewise.
51556         * lib/getusershell.c: Likewise.
51557         * lib/gl_anyavltree_list1.h: Likewise.
51558         * lib/gl_anyavltree_list2.h: Likewise.
51559         * lib/gl_anyhash_list1.h: Likewise.
51560         * lib/gl_anyhash_list2.h: Likewise.
51561         * lib/gl_anylinked_list1.h: Likewise.
51562         * lib/gl_anylinked_list2.h: Likewise.
51563         * lib/gl_anyrbtree_list1.h: Likewise.
51564         * lib/gl_anyrbtree_list2.h: Likewise.
51565         * lib/gl_anytree_list1.h: Likewise.
51566         * lib/gl_anytree_list2.h: Likewise.
51567         * lib/gl_anytree_oset.h: Likewise.
51568         * lib/gl_anytreehash_list1.h: Likewise.
51569         * lib/gl_anytreehash_list2.h: Likewise.
51570         * lib/gl_array_list.c: Likewise.
51571         * lib/gl_array_list.h: Likewise.
51572         * lib/gl_array_oset.c: Likewise.
51573         * lib/gl_array_oset.h: Likewise.
51574         * lib/gl_avltree_list.c: Likewise.
51575         * lib/gl_avltree_list.h: Likewise.
51576         * lib/gl_avltree_oset.c: Likewise.
51577         * lib/gl_avltree_oset.h: Likewise.
51578         * lib/gl_avltreehash_list.c: Likewise.
51579         * lib/gl_avltreehash_list.h: Likewise.
51580         * lib/gl_carray_list.c: Likewise.
51581         * lib/gl_carray_list.h: Likewise.
51582         * lib/gl_linked_list.c: Likewise.
51583         * lib/gl_linked_list.h: Likewise.
51584         * lib/gl_linkedhash_list.c: Likewise.
51585         * lib/gl_linkedhash_list.h: Likewise.
51586         * lib/gl_list.c: Likewise.
51587         * lib/gl_list.h: Likewise.
51588         * lib/gl_oset.c: Likewise.
51589         * lib/gl_oset.h: Likewise.
51590         * lib/gl_rbtree_list.c: Likewise.
51591         * lib/gl_rbtree_list.h: Likewise.
51592         * lib/gl_rbtree_oset.c: Likewise.
51593         * lib/gl_rbtree_oset.h: Likewise.
51594         * lib/gl_rbtreehash_list.c: Likewise.
51595         * lib/gl_rbtreehash_list.h: Likewise.
51596         * lib/gl_sublist.c: Likewise.
51597         * lib/gl_sublist.h: Likewise.
51598         * lib/group-member.c: Likewise.
51599         * lib/group-member.h: Likewise.
51600         * lib/hard-locale.c: Likewise.
51601         * lib/hard-locale.h: Likewise.
51602         * lib/hash-pjw.c: Likewise.
51603         * lib/hash-pjw.h: Likewise.
51604         * lib/hash-triple.c: Likewise.
51605         * lib/hash.c: Likewise.
51606         * lib/hash.h: Likewise.
51607         * lib/human.c: Likewise.
51608         * lib/human.h: Likewise.
51609         * lib/i-ring.c: Likewise.
51610         * lib/i-ring.h: Likewise.
51611         * lib/idcache.c: Likewise.
51612         * lib/imaxabs.c: Likewise.
51613         * lib/imaxdiv.c: Likewise.
51614         * lib/inet_pton.c: Likewise.
51615         * lib/inet_pton.h: Likewise.
51616         * lib/intprops.h: Likewise.
51617         * lib/inttostr.c: Likewise.
51618         * lib/inttostr.h: Likewise.
51619         * lib/inttypes.in.h: Likewise.
51620         * lib/isapipe.c: Likewise.
51621         * lib/isdir.c: Likewise.
51622         * lib/isnan.c: Likewise.
51623         * lib/isnan.h: Likewise.
51624         * lib/isnanf.c: Likewise.
51625         * lib/isnanf.h: Likewise.
51626         * lib/isnanl-nolibm.h: Likewise.
51627         * lib/isnanl.c: Likewise.
51628         * lib/isnanl.h: Likewise.
51629         * lib/javacomp.c: Likewise.
51630         * lib/javacomp.h: Likewise.
51631         * lib/javaexec.c: Likewise.
51632         * lib/javaexec.h: Likewise.
51633         * lib/javaversion.c: Likewise.
51634         * lib/javaversion.h: Likewise.
51635         * lib/javaversion.java: Likewise.
51636         * lib/lbrkprop.h: Likewise.
51637         * lib/lchmod.h: Likewise.
51638         * lib/lchown.c: Likewise.
51639         * lib/ldexpl.c: Likewise.
51640         * lib/linebreak.c: Likewise.
51641         * lib/linebreak.h: Likewise.
51642         * lib/linebuffer.c: Likewise.
51643         * lib/linebuffer.h: Likewise.
51644         * lib/locale.in.h: Likewise.
51645         * lib/logl.c: Likewise.
51646         * lib/long-options.c: Likewise.
51647         * lib/long-options.h: Likewise.
51648         * lib/lstat.c: Likewise.
51649         * lib/lstat.h: Likewise.
51650         * lib/math.in.h: Likewise.
51651         * lib/mbchar.c: Likewise.
51652         * lib/mbchar.h: Likewise.
51653         * lib/mbfile.h: Likewise.
51654         * lib/mbiter.h: Likewise.
51655         * lib/mbscasecmp.c: Likewise.
51656         * lib/mbscasestr.c: Likewise.
51657         * lib/mbschr.c: Likewise.
51658         * lib/mbscspn.c: Likewise.
51659         * lib/mbslen.c: Likewise.
51660         * lib/mbsncasecmp.c: Likewise.
51661         * lib/mbsnlen.c: Likewise.
51662         * lib/mbspbrk.c: Likewise.
51663         * lib/mbspcasecmp.c: Likewise.
51664         * lib/mbsrchr.c: Likewise.
51665         * lib/mbssep.c: Likewise.
51666         * lib/mbsspn.c: Likewise.
51667         * lib/mbsstr.c: Likewise.
51668         * lib/mbstok_r.c: Likewise.
51669         * lib/mbswidth.c: Likewise.
51670         * lib/mbswidth.h: Likewise.
51671         * lib/mbuiter.h: Likewise.
51672         * lib/memcasecmp.c: Likewise.
51673         * lib/memcasecmp.h: Likewise.
51674         * lib/memchr.c: Likewise.
51675         * lib/memcmp.c: Likewise.
51676         * lib/memcoll.c: Likewise.
51677         * lib/memcoll.h: Likewise.
51678         * lib/memcpy.c: Likewise.
51679         * lib/memrchr.c: Likewise.
51680         * lib/mkancesdirs.c: Likewise.
51681         * lib/mkdir-p.c: Likewise.
51682         * lib/mkdir-p.h: Likewise.
51683         * lib/mkdir.c: Likewise.
51684         * lib/mkdirat.c: Likewise.
51685         * lib/mkdtemp.c: Likewise.
51686         * lib/mkstemp-safer.c: Likewise.
51687         * lib/mkstemp.c: Likewise.
51688         * lib/modechange.c: Likewise.
51689         * lib/modechange.h: Likewise.
51690         * lib/mountlist.c: Likewise.
51691         * lib/mountlist.h: Likewise.
51692         * lib/mpsort.c: Likewise.
51693         * lib/nanosleep.c: Likewise.
51694         * lib/obstack.c: Likewise.
51695         * lib/obstack.h: Likewise.
51696         * lib/open-safer.c: Likewise.
51697         * lib/open.c: Likewise.
51698         * lib/openat-die.c: Likewise.
51699         * lib/openat-priv.h: Likewise.
51700         * lib/openat-proc.c: Likewise.
51701         * lib/openat.c: Likewise.
51702         * lib/openat.h: Likewise.
51703         * lib/pagealign_alloc.c: Likewise.
51704         * lib/pagealign_alloc.h: Likewise.
51705         * lib/physmem.c: Likewise.
51706         * lib/physmem.h: Likewise.
51707         * lib/pipe-safer.c: Likewise.
51708         * lib/pipe.c: Likewise.
51709         * lib/pipe.h: Likewise.
51710         * lib/posixtm.c: Likewise.
51711         * lib/posixtm.h: Likewise.
51712         * lib/posixver.c: Likewise.
51713         * lib/printf-frexp.c: Likewise.
51714         * lib/printf-frexp.h: Likewise.
51715         * lib/printf-frexpl.c: Likewise.
51716         * lib/printf-frexpl.h: Likewise.
51717         * lib/printf.c: Likewise.
51718         * lib/progname.c: Likewise.
51719         * lib/progname.h: Likewise.
51720         * lib/progreloc.c: Likewise.
51721         * lib/putenv.c: Likewise.
51722         * lib/quote.c: Likewise.
51723         * lib/quote.h: Likewise.
51724         * lib/quotearg.c: Likewise.
51725         * lib/quotearg.h: Likewise.
51726         * lib/raise.c: Likewise.
51727         * lib/readline.c: Likewise.
51728         * lib/readline.h: Likewise.
51729         * lib/readlink.c: Likewise.
51730         * lib/readtokens.c: Likewise.
51731         * lib/readtokens.h: Likewise.
51732         * lib/readtokens0.c: Likewise.
51733         * lib/readtokens0.h: Likewise.
51734         * lib/readutmp.c: Likewise.
51735         * lib/readutmp.h: Likewise.
51736         * lib/realloc.c: Likewise.
51737         * lib/relocwrapper.c: Likewise.
51738         * lib/rename-dest-slash.c: Likewise.
51739         * lib/rename.c: Likewise.
51740         * lib/rmdir.c: Likewise.
51741         * lib/rpmatch.c: Likewise.
51742         * lib/safe-read.c: Likewise.
51743         * lib/safe-read.h: Likewise.
51744         * lib/safe-write.c: Likewise.
51745         * lib/safe-write.h: Likewise.
51746         * lib/same-inode.h: Likewise.
51747         * lib/same.c: Likewise.
51748         * lib/same.h: Likewise.
51749         * lib/save-cwd.c: Likewise.
51750         * lib/save-cwd.h: Likewise.
51751         * lib/savedir.c: Likewise.
51752         * lib/savedir.h: Likewise.
51753         * lib/savewd.c: Likewise.
51754         * lib/savewd.h: Likewise.
51755         * lib/search.in.h: Likewise.
51756         * lib/setenv.c: Likewise.
51757         * lib/setenv.h: Likewise.
51758         * lib/settime.c: Likewise.
51759         * lib/sh-quote.c: Likewise.
51760         * lib/sh-quote.h: Likewise.
51761         * lib/sig2str.c: Likewise.
51762         * lib/sig2str.h: Likewise.
51763         * lib/signal.in.h: Likewise.
51764         * lib/signbitd.c: Likewise.
51765         * lib/signbitf.c: Likewise.
51766         * lib/signbitl.c: Likewise.
51767         * lib/sigprocmask.c: Likewise.
51768         * lib/sincosl.c: Likewise.
51769         * lib/sleep.c: Likewise.
51770         * lib/sprintf.c: Likewise.
51771         * lib/sqrtl.c: Likewise.
51772         * lib/stat-time.h: Likewise.
51773         * lib/stdio--.h: Likewise.
51774         * lib/stdio-safer.h: Likewise.
51775         * lib/stdlib--.h: Likewise.
51776         * lib/stdlib-safer.h: Likewise.
51777         * lib/stdlib.in.h: Likewise.
51778         * lib/stpcpy.c: Likewise.
51779         * lib/stpncpy.c: Likewise.
51780         * lib/strchrnul.c: Likewise.
51781         * lib/strcspn.c: Likewise.
51782         * lib/strerror.c: Likewise.
51783         * lib/strftime.c: Likewise.
51784         * lib/strftime.h: Likewise.
51785         * lib/striconveh.c: Likewise.
51786         * lib/striconveh.h: Likewise.
51787         * lib/striconveha.c: Likewise.
51788         * lib/striconveha.h: Likewise.
51789         * lib/stripslash.c: Likewise.
51790         * lib/strnlen1.c: Likewise.
51791         * lib/strnlen1.h: Likewise.
51792         * lib/strtod.c: Likewise.
51793         * lib/strtoimax.c: Likewise.
51794         * lib/strtok_r.c: Likewise.
51795         * lib/strtol.c: Likewise.
51796         * lib/strtoll.c: Likewise.
51797         * lib/strtoul.c: Likewise.
51798         * lib/strtoull.c: Likewise.
51799         * lib/sysexits.in.h: Likewise.
51800         * lib/tempname.c: Likewise.
51801         * lib/tempname.h: Likewise.
51802         * lib/timespec.h: Likewise.
51803         * lib/tls.c: Likewise.
51804         * lib/tls.h: Likewise.
51805         * lib/tmpdir.c: Likewise.
51806         * lib/tmpdir.h: Likewise.
51807         * lib/tmpfile-safer.c: Likewise.
51808         * lib/tmpfile.c: Likewise.
51809         * lib/trigl.c: Likewise.
51810         * lib/trigl.h: Likewise.
51811         * lib/trim.c: Likewise.
51812         * lib/trim.h: Likewise.
51813         * lib/trunc.c: Likewise.
51814         * lib/truncf.c: Likewise.
51815         * lib/truncl.c: Likewise.
51816         * lib/tsearch.c: Likewise.
51817         * lib/unicodeio.c: Likewise.
51818         * lib/unicodeio.h: Likewise.
51819         * lib/unistd--.h: Likewise.
51820         * lib/unistd-safer.h: Likewise.
51821         * lib/unistdio/ulc-fprintf.c: Likewise.
51822         * lib/unistdio/ulc-vfprintf.c: Likewise.
51823         * lib/unlinkdir.c: Likewise.
51824         * lib/unlinkdir.h: Likewise.
51825         * lib/unlocked-io.h: Likewise.
51826         * lib/unsetenv.c: Likewise.
51827         * lib/userspec.c: Likewise.
51828         * lib/utime.c: Likewise.
51829         * lib/utimecmp.c: Likewise.
51830         * lib/utimecmp.h: Likewise.
51831         * lib/utimens.c: Likewise.
51832         * lib/verify.h: Likewise.
51833         * lib/verror.c: Likewise.
51834         * lib/verror.h: Likewise.
51835         * lib/version-etc-fsf.c: Likewise.
51836         * lib/version-etc.c: Likewise.
51837         * lib/version-etc.h: Likewise.
51838         * lib/vfprintf.c: Likewise.
51839         * lib/vprintf.c: Likewise.
51840         * lib/vsprintf.c: Likewise.
51841         * lib/w32spawn.h: Likewise.
51842         * lib/wait-process.c: Likewise.
51843         * lib/wait-process.h: Likewise.
51844         * lib/wcwidth.c: Likewise.
51845         * lib/write-any-file.c: Likewise.
51846         * lib/xalloc-die.c: Likewise.
51847         * lib/xalloc.h: Likewise.
51848         * lib/xasprintf.c: Likewise.
51849         * lib/xgetcwd.c: Likewise.
51850         * lib/xgetcwd.h: Likewise.
51851         * lib/xgetdomainname.c: Likewise.
51852         * lib/xgetdomainname.h: Likewise.
51853         * lib/xgethostname.c: Likewise.
51854         * lib/xmalloc.c: Likewise.
51855         * lib/xmalloca.c: Likewise.
51856         * lib/xmalloca.h: Likewise.
51857         * lib/xmemcoll.c: Likewise.
51858         * lib/xnanosleep.c: Likewise.
51859         * lib/xreadlink.c: Likewise.
51860         * lib/xreadlink.h: Likewise.
51861         * lib/xsetenv.c: Likewise.
51862         * lib/xsetenv.h: Likewise.
51863         * lib/xstriconv.c: Likewise.
51864         * lib/xstriconv.h: Likewise.
51865         * lib/xstrndup.c: Likewise.
51866         * lib/xstrndup.h: Likewise.
51867         * lib/xstrtod.c: Likewise.
51868         * lib/xstrtod.h: Likewise.
51869         * lib/xstrtol-error.c: Likewise.
51870         * lib/xstrtol.c: Likewise.
51871         * lib/xstrtol.h: Likewise.
51872         * lib/xtime.h: Likewise.
51873         * lib/xvasprintf.c: Likewise.
51874         * lib/xvasprintf.h: Likewise.
51875         * lib/yesno.c: Likewise.
51876         * lib/yesno.h: Likewise.
51877         * posix-modules: Likewise.
51878         * tests/test-alloca-opt.c: Likewise.
51879         * tests/test-arcfour.c: Likewise.
51880         * tests/test-arctwo.c: Likewise.
51881         * tests/test-argmatch.c: Likewise.
51882         * tests/test-argp-2.sh: Likewise.
51883         * tests/test-argp.c: Likewise.
51884         * tests/test-arpa_inet.c: Likewise.
51885         * tests/test-array_list.c: Likewise.
51886         * tests/test-array_oset.c: Likewise.
51887         * tests/test-atexit.c: Likewise.
51888         * tests/test-avltree_list.c: Likewise.
51889         * tests/test-avltree_oset.c: Likewise.
51890         * tests/test-avltreehash_list.c: Likewise.
51891         * tests/test-base64.c: Likewise.
51892         * tests/test-binary-io.c: Likewise.
51893         * tests/test-byteswap.c: Likewise.
51894         * tests/test-c-ctype.c: Likewise.
51895         * tests/test-c-strcasecmp.c: Likewise.
51896         * tests/test-c-strcasestr.c: Likewise.
51897         * tests/test-c-strncasecmp.c: Likewise.
51898         * tests/test-c-strstr.c: Likewise.
51899         * tests/test-canonicalize-lgpl.c: Likewise.
51900         * tests/test-canonicalize.c: Likewise.
51901         * tests/test-carray_list.c: Likewise.
51902         * tests/test-ceilf.c: Likewise.
51903         * tests/test-ceill.c: Likewise.
51904         * tests/test-count-one-bits.c: Likewise.
51905         * tests/test-crc.c: Likewise.
51906         * tests/test-dirname.c: Likewise.
51907         * tests/test-fbufmode.c: Likewise.
51908         * tests/test-fcntl.c: Likewise.
51909         * tests/test-fflush.c: Likewise.
51910         * tests/test-floorf.c: Likewise.
51911         * tests/test-floorl.c: Likewise.
51912         * tests/test-fopen.c: Likewise.
51913         * tests/test-fprintf-posix.c: Likewise.
51914         * tests/test-fprintf-posix.h: Likewise.
51915         * tests/test-fpurge.c: Likewise.
51916         * tests/test-freadable.c: Likewise.
51917         * tests/test-freadahead.c: Likewise.
51918         * tests/test-freading.c: Likewise.
51919         * tests/test-freopen.c: Likewise.
51920         * tests/test-frexp.c: Likewise.
51921         * tests/test-frexpl.c: Likewise.
51922         * tests/test-fseek.c: Likewise.
51923         * tests/test-fseeko.c: Likewise.
51924         * tests/test-fseterr.c: Likewise.
51925         * tests/test-fstrcmp.c: Likewise.
51926         * tests/test-ftell.c: Likewise.
51927         * tests/test-ftello.c: Likewise.
51928         * tests/test-fwritable.c: Likewise.
51929         * tests/test-fwriting.c: Likewise.
51930         * tests/test-getaddrinfo.c: Likewise.
51931         * tests/test-getpass.c: Likewise.
51932         * tests/test-gettimeofday.c: Likewise.
51933         * tests/test-hmac-md5.c: Likewise.
51934         * tests/test-hmac-sha1.c: Likewise.
51935         * tests/test-iconv.c: Likewise.
51936         * tests/test-iconvme.c: Likewise.
51937         * tests/test-inttypes.c: Likewise.
51938         * tests/test-isnan.c: Likewise.
51939         * tests/test-isnanf.c: Likewise.
51940         * tests/test-isnanl-nolibm.c: Likewise.
51941         * tests/test-isnanl.c: Likewise.
51942         * tests/test-isnanl.h: Likewise.
51943         * tests/test-ldexpl.c: Likewise.
51944         * tests/test-linked_list.c: Likewise.
51945         * tests/test-linkedhash_list.c: Likewise.
51946         * tests/test-locale.c: Likewise.
51947         * tests/test-localename.c: Likewise.
51948         * tests/test-lock.c: Likewise.
51949         * tests/test-lseek.c: Likewise.
51950         * tests/test-malloca.c: Likewise.
51951         * tests/test-math.c: Likewise.
51952         * tests/test-mbscasecmp.c: Likewise.
51953         * tests/test-mbscasestr1.c: Likewise.
51954         * tests/test-mbscasestr2.c: Likewise.
51955         * tests/test-mbscasestr3.c: Likewise.
51956         * tests/test-mbscasestr4.c: Likewise.
51957         * tests/test-mbschr.c: Likewise.
51958         * tests/test-mbscspn.c: Likewise.
51959         * tests/test-mbsncasecmp.c: Likewise.
51960         * tests/test-mbspbrk.c: Likewise.
51961         * tests/test-mbspcasecmp.c: Likewise.
51962         * tests/test-mbsrchr.c: Likewise.
51963         * tests/test-mbsspn.c: Likewise.
51964         * tests/test-mbsstr1.c: Likewise.
51965         * tests/test-mbsstr2.c: Likewise.
51966         * tests/test-mbsstr3.c: Likewise.
51967         * tests/test-md5.c: Likewise.
51968         * tests/test-memmem.c: Likewise.
51969         * tests/test-netinet_in.c: Likewise.
51970         * tests/test-open.c: Likewise.
51971         * tests/test-printf-frexp.c: Likewise.
51972         * tests/test-printf-frexpl.c: Likewise.
51973         * tests/test-printf-posix.c: Likewise.
51974         * tests/test-printf-posix.h: Likewise.
51975         * tests/test-rbtree_list.c: Likewise.
51976         * tests/test-rbtree_oset.c: Likewise.
51977         * tests/test-rbtreehash_list.c: Likewise.
51978         * tests/test-read-file.c: Likewise.
51979         * tests/test-rijndael.c: Likewise.
51980         * tests/test-search.c: Likewise.
51981         * tests/test-signbit.c: Likewise.
51982         * tests/test-sleep.c: Likewise.
51983         * tests/test-snprintf-posix.c: Likewise.
51984         * tests/test-snprintf-posix.h: Likewise.
51985         * tests/test-snprintf.c: Likewise.
51986         * tests/test-sprintf-posix.c: Likewise.
51987         * tests/test-sprintf-posix.h: Likewise.
51988         * tests/test-stat-time.c: Likewise.
51989         * tests/test-stdbool.c: Likewise.
51990         * tests/test-stdint.c: Likewise.
51991         * tests/test-stdio.c: Likewise.
51992         * tests/test-stdlib.c: Likewise.
51993         * tests/test-stpncpy.c: Likewise.
51994         * tests/test-strcasestr.c: Likewise.
51995         * tests/test-striconv.c: Likewise.
51996         * tests/test-striconveh.c: Likewise.
51997         * tests/test-striconveha.c: Likewise.
51998         * tests/test-string.c: Likewise.
51999         * tests/test-sys_select.c: Likewise.
52000         * tests/test-sys_socket.c: Likewise.
52001         * tests/test-sys_stat.c: Likewise.
52002         * tests/test-sys_time.c: Likewise.
52003         * tests/test-sysexits.c: Likewise.
52004         * tests/test-time.c: Likewise.
52005         * tests/test-tls.c: Likewise.
52006         * tests/test-trunc.c: Likewise.
52007         * tests/test-truncf.c: Likewise.
52008         * tests/test-truncl.c: Likewise.
52009         * tests/test-unistd.c: Likewise.
52010         * tests/test-vasnprintf-posix.c: Likewise.
52011         * tests/test-vasnprintf-posix2.c: Likewise.
52012         * tests/test-vasnprintf.c: Likewise.
52013         * tests/test-vasprintf-posix.c: Likewise.
52014         * tests/test-vasprintf.c: Likewise.
52015         * tests/test-verify.c: Likewise.
52016         * tests/test-vfprintf-posix.c: Likewise.
52017         * tests/test-vprintf-posix.c: Likewise.
52018         * tests/test-vsnprintf-posix.c: Likewise.
52019         * tests/test-vsnprintf.c: Likewise.
52020         * tests/test-vsprintf-posix.c: Likewise.
52021         * tests/test-wchar.c: Likewise.
52022         * tests/test-wctype.c: Likewise.
52023         * tests/test-wcwidth.c: Likewise.
52024         * tests/test-xstrtol.c: Likewise.
52025         * tests/test-xvasprintf.c: Likewise.
52026         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
52027         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
52028         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
52029         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
52030         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
52031         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
52032         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
52033         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
52034         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
52035         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
52036         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
52037         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
52038         * tests/uniname/test-uninames.c: Likewise.
52039         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
52040         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
52041         * tests/unistdio/test-u16-printf1.h: Likewise.
52042         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
52043         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
52044         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
52045         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
52046         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
52047         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
52048         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
52049         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
52050         * tests/unistdio/test-u32-printf1.h: Likewise.
52051         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
52052         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
52053         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
52054         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
52055         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
52056         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
52057         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
52058         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
52059         * tests/unistdio/test-u8-printf1.h: Likewise.
52060         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
52061         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
52062         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
52063         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
52064         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
52065         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
52066         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
52067         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
52068         * tests/unistdio/test-ulc-printf1.h: Likewise.
52069         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
52070         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
52071         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
52072         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
52073         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
52074         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
52075         * tests/uniwidth/test-u16-strwidth.c: Likewise.
52076         * tests/uniwidth/test-u16-width.c: Likewise.
52077         * tests/uniwidth/test-u32-strwidth.c: Likewise.
52078         * tests/uniwidth/test-u32-width.c: Likewise.
52079         * tests/uniwidth/test-u8-strwidth.c: Likewise.
52080         * tests/uniwidth/test-u8-width.c: Likewise.
52081         * tests/uniwidth/test-uc_width.c: Likewise.
52082         * config/srclist-update: Likewise.
52083         (fixlicense): Update to GPLv3+.
52084
52085         Change copyright notice from LGPLv2.1+ to LGPLv3+.
52086         * tests/test-tsearch.c: Change copyright notice.
52087
52088         Change copyright notice from LGPLv2.0+ to LGPLv3+.
52089         * lib/c-strcaseeq.h: Change copyright notice.
52090         * lib/streq.h: Likewise.
52091         * lib/uniconv.h: Likewise.
52092         * lib/uniconv/u-conv-from-enc.h: Likewise.
52093         * lib/uniconv/u-conv-to-enc.h: Likewise.
52094         * lib/uniconv/u-strconv-from-enc.h: Likewise.
52095         * lib/uniconv/u-strconv-to-enc.h: Likewise.
52096         * lib/uniconv/u16-conv-from-enc.c: Likewise.
52097         * lib/uniconv/u16-conv-to-enc.c: Likewise.
52098         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
52099         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
52100         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
52101         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
52102         * lib/uniconv/u32-conv-from-enc.c: Likewise.
52103         * lib/uniconv/u32-conv-to-enc.c: Likewise.
52104         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
52105         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
52106         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
52107         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
52108         * lib/uniconv/u8-conv-from-enc.c: Likewise.
52109         * lib/uniconv/u8-conv-to-enc.c: Likewise.
52110         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
52111         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
52112         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
52113         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
52114         * lib/uniname.h: Likewise.
52115         * lib/uniname/uniname.c: Likewise.
52116         * lib/unistdio.h: Likewise.
52117         * lib/unistdio/u-asnprintf.h: Likewise.
52118         * lib/unistdio/u-asprintf.h: Likewise.
52119         * lib/unistdio/u-printf-args.c: Likewise.
52120         * lib/unistdio/u-printf-args.h: Likewise.
52121         * lib/unistdio/u-printf-parse.h: Likewise.
52122         * lib/unistdio/u-snprintf.h: Likewise.
52123         * lib/unistdio/u-sprintf.h: Likewise.
52124         * lib/unistdio/u-vasprintf.h: Likewise.
52125         * lib/unistdio/u-vsnprintf.h: Likewise.
52126         * lib/unistdio/u-vsprintf.h: Likewise.
52127         * lib/unistdio/u16-asnprintf.c: Likewise.
52128         * lib/unistdio/u16-asprintf.c: Likewise.
52129         * lib/unistdio/u16-printf-parse.c: Likewise.
52130         * lib/unistdio/u16-snprintf.c: Likewise.
52131         * lib/unistdio/u16-sprintf.c: Likewise.
52132         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
52133         * lib/unistdio/u16-u16-asprintf.c: Likewise.
52134         * lib/unistdio/u16-u16-snprintf.c: Likewise.
52135         * lib/unistdio/u16-u16-sprintf.c: Likewise.
52136         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
52137         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
52138         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
52139         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
52140         * lib/unistdio/u16-vasnprintf.c: Likewise.
52141         * lib/unistdio/u16-vasprintf.c: Likewise.
52142         * lib/unistdio/u16-vsnprintf.c: Likewise.
52143         * lib/unistdio/u16-vsprintf.c: Likewise.
52144         * lib/unistdio/u32-asnprintf.c: Likewise.
52145         * lib/unistdio/u32-asprintf.c: Likewise.
52146         * lib/unistdio/u32-printf-parse.c: Likewise.
52147         * lib/unistdio/u32-snprintf.c: Likewise.
52148         * lib/unistdio/u32-sprintf.c: Likewise.
52149         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
52150         * lib/unistdio/u32-u32-asprintf.c: Likewise.
52151         * lib/unistdio/u32-u32-snprintf.c: Likewise.
52152         * lib/unistdio/u32-u32-sprintf.c: Likewise.
52153         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
52154         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
52155         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
52156         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
52157         * lib/unistdio/u32-vasnprintf.c: Likewise.
52158         * lib/unistdio/u32-vasprintf.c: Likewise.
52159         * lib/unistdio/u32-vsnprintf.c: Likewise.
52160         * lib/unistdio/u32-vsprintf.c: Likewise.
52161         * lib/unistdio/u8-asnprintf.c: Likewise.
52162         * lib/unistdio/u8-asprintf.c: Likewise.
52163         * lib/unistdio/u8-printf-parse.c: Likewise.
52164         * lib/unistdio/u8-snprintf.c: Likewise.
52165         * lib/unistdio/u8-sprintf.c: Likewise.
52166         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
52167         * lib/unistdio/u8-u8-asprintf.c: Likewise.
52168         * lib/unistdio/u8-u8-snprintf.c: Likewise.
52169         * lib/unistdio/u8-u8-sprintf.c: Likewise.
52170         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
52171         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
52172         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
52173         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
52174         * lib/unistdio/u8-vasnprintf.c: Likewise.
52175         * lib/unistdio/u8-vasprintf.c: Likewise.
52176         * lib/unistdio/u8-vsnprintf.c: Likewise.
52177         * lib/unistdio/u8-vsprintf.c: Likewise.
52178         * lib/unistdio/ulc-asnprintf.c: Likewise.
52179         * lib/unistdio/ulc-asprintf.c: Likewise.
52180         * lib/unistdio/ulc-printf-parse.c: Likewise.
52181         * lib/unistdio/ulc-snprintf.c: Likewise.
52182         * lib/unistdio/ulc-sprintf.c: Likewise.
52183         * lib/unistdio/ulc-vasnprintf.c: Likewise.
52184         * lib/unistdio/ulc-vasprintf.c: Likewise.
52185         * lib/unistdio/ulc-vsnprintf.c: Likewise.
52186         * lib/unistdio/ulc-vsprintf.c: Likewise.
52187         * lib/unistr.h: Likewise.
52188         * lib/unistr/u-cpy-alloc.h: Likewise.
52189         * lib/unistr/u-cpy.h: Likewise.
52190         * lib/unistr/u-endswith.h: Likewise.
52191         * lib/unistr/u-move.h: Likewise.
52192         * lib/unistr/u-set.h: Likewise.
52193         * lib/unistr/u-startswith.h: Likewise.
52194         * lib/unistr/u-stpcpy.h: Likewise.
52195         * lib/unistr/u-stpncpy.h: Likewise.
52196         * lib/unistr/u-strcat.h: Likewise.
52197         * lib/unistr/u-strcpy.h: Likewise.
52198         * lib/unistr/u-strcspn.h: Likewise.
52199         * lib/unistr/u-strdup.h: Likewise.
52200         * lib/unistr/u-strlen.h: Likewise.
52201         * lib/unistr/u-strncat.h: Likewise.
52202         * lib/unistr/u-strncpy.h: Likewise.
52203         * lib/unistr/u-strnlen.h: Likewise.
52204         * lib/unistr/u-strpbrk.h: Likewise.
52205         * lib/unistr/u-strspn.h: Likewise.
52206         * lib/unistr/u-strstr.h: Likewise.
52207         * lib/unistr/u-strtok.h: Likewise.
52208         * lib/unistr/u16-check.c: Likewise.
52209         * lib/unistr/u16-chr.c: Likewise.
52210         * lib/unistr/u16-cmp.c: Likewise.
52211         * lib/unistr/u16-cpy-alloc.c: Likewise.
52212         * lib/unistr/u16-cpy.c: Likewise.
52213         * lib/unistr/u16-endswith.c: Likewise.
52214         * lib/unistr/u16-mblen.c: Likewise.
52215         * lib/unistr/u16-mbsnlen.c: Likewise.
52216         * lib/unistr/u16-mbtouc-aux.c: Likewise.
52217         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
52218         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
52219         * lib/unistr/u16-mbtouc.c: Likewise.
52220         * lib/unistr/u16-mbtoucr.c: Likewise.
52221         * lib/unistr/u16-move.c: Likewise.
52222         * lib/unistr/u16-next.c: Likewise.
52223         * lib/unistr/u16-prev.c: Likewise.
52224         * lib/unistr/u16-set.c: Likewise.
52225         * lib/unistr/u16-startswith.c: Likewise.
52226         * lib/unistr/u16-stpcpy.c: Likewise.
52227         * lib/unistr/u16-stpncpy.c: Likewise.
52228         * lib/unistr/u16-strcat.c: Likewise.
52229         * lib/unistr/u16-strchr.c: Likewise.
52230         * lib/unistr/u16-strcmp.c: Likewise.
52231         * lib/unistr/u16-strcpy.c: Likewise.
52232         * lib/unistr/u16-strcspn.c: Likewise.
52233         * lib/unistr/u16-strdup.c: Likewise.
52234         * lib/unistr/u16-strlen.c: Likewise.
52235         * lib/unistr/u16-strmblen.c: Likewise.
52236         * lib/unistr/u16-strmbtouc.c: Likewise.
52237         * lib/unistr/u16-strncat.c: Likewise.
52238         * lib/unistr/u16-strncmp.c: Likewise.
52239         * lib/unistr/u16-strncpy.c: Likewise.
52240         * lib/unistr/u16-strnlen.c: Likewise.
52241         * lib/unistr/u16-strpbrk.c: Likewise.
52242         * lib/unistr/u16-strrchr.c: Likewise.
52243         * lib/unistr/u16-strspn.c: Likewise.
52244         * lib/unistr/u16-strstr.c: Likewise.
52245         * lib/unistr/u16-strtok.c: Likewise.
52246         * lib/unistr/u16-to-u32.c: Likewise.
52247         * lib/unistr/u16-to-u8.c: Likewise.
52248         * lib/unistr/u16-uctomb-aux.c: Likewise.
52249         * lib/unistr/u16-uctomb.c: Likewise.
52250         * lib/unistr/u32-check.c: Likewise.
52251         * lib/unistr/u32-chr.c: Likewise.
52252         * lib/unistr/u32-cmp.c: Likewise.
52253         * lib/unistr/u32-cpy-alloc.c: Likewise.
52254         * lib/unistr/u32-cpy.c: Likewise.
52255         * lib/unistr/u32-endswith.c: Likewise.
52256         * lib/unistr/u32-mblen.c: Likewise.
52257         * lib/unistr/u32-mbsnlen.c: Likewise.
52258         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
52259         * lib/unistr/u32-mbtouc.c: Likewise.
52260         * lib/unistr/u32-mbtoucr.c: Likewise.
52261         * lib/unistr/u32-move.c: Likewise.
52262         * lib/unistr/u32-next.c: Likewise.
52263         * lib/unistr/u32-prev.c: Likewise.
52264         * lib/unistr/u32-set.c: Likewise.
52265         * lib/unistr/u32-startswith.c: Likewise.
52266         * lib/unistr/u32-stpcpy.c: Likewise.
52267         * lib/unistr/u32-stpncpy.c: Likewise.
52268         * lib/unistr/u32-strcat.c: Likewise.
52269         * lib/unistr/u32-strchr.c: Likewise.
52270         * lib/unistr/u32-strcmp.c: Likewise.
52271         * lib/unistr/u32-strcpy.c: Likewise.
52272         * lib/unistr/u32-strcspn.c: Likewise.
52273         * lib/unistr/u32-strdup.c: Likewise.
52274         * lib/unistr/u32-strlen.c: Likewise.
52275         * lib/unistr/u32-strmblen.c: Likewise.
52276         * lib/unistr/u32-strmbtouc.c: Likewise.
52277         * lib/unistr/u32-strncat.c: Likewise.
52278         * lib/unistr/u32-strncmp.c: Likewise.
52279         * lib/unistr/u32-strncpy.c: Likewise.
52280         * lib/unistr/u32-strnlen.c: Likewise.
52281         * lib/unistr/u32-strpbrk.c: Likewise.
52282         * lib/unistr/u32-strrchr.c: Likewise.
52283         * lib/unistr/u32-strspn.c: Likewise.
52284         * lib/unistr/u32-strstr.c: Likewise.
52285         * lib/unistr/u32-strtok.c: Likewise.
52286         * lib/unistr/u32-to-u16.c: Likewise.
52287         * lib/unistr/u32-to-u8.c: Likewise.
52288         * lib/unistr/u32-uctomb.c: Likewise.
52289         * lib/unistr/u8-check.c: Likewise.
52290         * lib/unistr/u8-chr.c: Likewise.
52291         * lib/unistr/u8-cmp.c: Likewise.
52292         * lib/unistr/u8-cpy-alloc.c: Likewise.
52293         * lib/unistr/u8-cpy.c: Likewise.
52294         * lib/unistr/u8-endswith.c: Likewise.
52295         * lib/unistr/u8-mblen.c: Likewise.
52296         * lib/unistr/u8-mbsnlen.c: Likewise.
52297         * lib/unistr/u8-mbtouc-aux.c: Likewise.
52298         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
52299         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
52300         * lib/unistr/u8-mbtouc.c: Likewise.
52301         * lib/unistr/u8-mbtoucr.c: Likewise.
52302         * lib/unistr/u8-move.c: Likewise.
52303         * lib/unistr/u8-next.c: Likewise.
52304         * lib/unistr/u8-prev.c: Likewise.
52305         * lib/unistr/u8-set.c: Likewise.
52306         * lib/unistr/u8-startswith.c: Likewise.
52307         * lib/unistr/u8-stpcpy.c: Likewise.
52308         * lib/unistr/u8-stpncpy.c: Likewise.
52309         * lib/unistr/u8-strcat.c: Likewise.
52310         * lib/unistr/u8-strchr.c: Likewise.
52311         * lib/unistr/u8-strcmp.c: Likewise.
52312         * lib/unistr/u8-strcpy.c: Likewise.
52313         * lib/unistr/u8-strcspn.c: Likewise.
52314         * lib/unistr/u8-strdup.c: Likewise.
52315         * lib/unistr/u8-strlen.c: Likewise.
52316         * lib/unistr/u8-strmblen.c: Likewise.
52317         * lib/unistr/u8-strmbtouc.c: Likewise.
52318         * lib/unistr/u8-strncat.c: Likewise.
52319         * lib/unistr/u8-strncmp.c: Likewise.
52320         * lib/unistr/u8-strncpy.c: Likewise.
52321         * lib/unistr/u8-strnlen.c: Likewise.
52322         * lib/unistr/u8-strpbrk.c: Likewise.
52323         * lib/unistr/u8-strrchr.c: Likewise.
52324         * lib/unistr/u8-strspn.c: Likewise.
52325         * lib/unistr/u8-strstr.c: Likewise.
52326         * lib/unistr/u8-strtok.c: Likewise.
52327         * lib/unistr/u8-to-u16.c: Likewise.
52328         * lib/unistr/u8-to-u32.c: Likewise.
52329         * lib/unistr/u8-uctomb-aux.c: Likewise.
52330         * lib/unistr/u8-uctomb.c: Likewise.
52331         * lib/unitypes.h: Likewise.
52332         * lib/uniwidth.h: Likewise.
52333         * lib/uniwidth/cjk.h: Likewise.
52334         * lib/uniwidth/u16-strwidth.c: Likewise.
52335         * lib/uniwidth/u16-width.c: Likewise.
52336         * lib/uniwidth/u32-strwidth.c: Likewise.
52337         * lib/uniwidth/u32-width.c: Likewise.
52338         * lib/uniwidth/u8-strwidth.c: Likewise.
52339         * lib/uniwidth/u8-width.c: Likewise.
52340         * lib/uniwidth/width.c: Likewise.
52341
52342 2007-10-07  Bruno Haible  <bruno@clisp.org>
52343
52344         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
52345         The file is still under LGPL (see modules/inttypes).
52346
52347 2007-10-06  Bruno Haible  <bruno@clisp.org>
52348
52349         * modules/trunc (Dependencies): Add 'extensions'.
52350         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
52351         Reported by Ben Pfaff <blp@gnu.org>.
52352
52353 2007-10-06  Bruno Haible  <bruno@clisp.org>
52354
52355         * modules/freopen-tests: New file.
52356         * tests/test-freopen.c: New file.
52357
52358         * modules/fopen-tests: New file.
52359         * tests/test-fopen.c: New file.
52360
52361         * modules/fopen: New file.
52362         * lib/fopen.c: New file.
52363         * m4/fopen.m4: New file.
52364         * modules/freopen: New file.
52365         * lib/freopen.c: New file.
52366         * m4/freopen.m4: New file.
52367         * lib/stdio.in.h (fopen, freopen): New declarations.
52368         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
52369         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52370         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
52371         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
52372         * doc/functions/fopen.texi: Mention the 'fopen' module.
52373         * doc/functions/freopen.texi: Mention the 'freopen' module.
52374
52375 2007-10-06  Bruno Haible  <bruno@clisp.org>
52376
52377         * modules/open-tests: New file.
52378         * tests/test-open.c: New file.
52379
52380         * modules/open: New file.
52381         * lib/open.c: New file.
52382         * m4/open.m4: New file.
52383         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
52384         lib/open.c does.
52385         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
52386         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
52387         macros.
52388         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
52389         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
52390         REPLACE_OPEN.
52391         * doc/functions/open.texi: Mention the 'open' module.
52392
52393 2007-10-04  Bruno Haible  <bruno@clisp.org>
52394
52395         * modules/ceill-tests: New file.
52396         * tests/test-ceill.c: New file.
52397
52398         * modules/ceill: New file.
52399         * lib/ceill.c: Replace entire file.
52400         * m4/ceill.m4: New file.
52401         * lib/math.in.h (ceill): Replace declaration.
52402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
52403         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
52404         * doc/functions/ceill.texi: Mention the 'ceill' module.
52405         * modules/mathl (Files): Remove lib/ceill.c.
52406         (Depends-on): Add ceill.
52407
52408 2007-10-04  Bruno Haible  <bruno@clisp.org>
52409
52410         * modules/ceilf-tests: New file.
52411         * tests/test-ceilf.c: New file.
52412
52413         * modules/ceilf: New file.
52414         * lib/ceil.c: New file.
52415         * lib/ceilf.c: New file.
52416         * m4/ceilf.m4: New file.
52417         * lib/math.in.h (ceilf): New declaration.
52418         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
52419         HAVE_DECL_CEILF.
52420         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
52421         HAVE_DECL_CEILF.
52422         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
52423
52424 2007-10-04  Bruno Haible  <bruno@clisp.org>
52425
52426         * modules/floorl-tests: New file.
52427         * tests/test-floorl.c: New file.
52428
52429         * modules/floorl: New file.
52430         * lib/floorl.c: Replace entire file.
52431         * m4/floorl.m4: New file.
52432         * lib/math.in.h (floorl): Replace declaration.
52433         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
52434         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
52435         * doc/functions/floorl.texi: Mention the 'floorl' module.
52436         * modules/mathl (Files): Remove lib/floorl.c.
52437         (Depends-on): Add floorl.
52438
52439 2007-10-04  Bruno Haible  <bruno@clisp.org>
52440
52441         * modules/floorf-tests: New file.
52442         * tests/test-floorf.c: New file.
52443
52444         * modules/floorf: New file.
52445         * lib/floor.c: New file.
52446         * lib/floorf.c: New file.
52447         * m4/floorf.m4: New file.
52448         * lib/math.in.h (floorf): New declaration.
52449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
52450         HAVE_DECL_FLOORF.
52451         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
52452         HAVE_DECL_FLOORF.
52453         * doc/functions/floorf.texi: Mention the 'floorf' module.
52454
52455 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
52456             Bruno Haible  <bruno@clisp.org>
52457
52458         Advertise for the Git server instead of the CVS server.
52459         * doc/gnulib-intro.texi (Steady Development): Mention the Git
52460         repository instead of the CVS one.
52461         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
52462         about all VCS systems generically.
52463         * doc/gnulib.texi (Introduction): Capitalize `Git'.
52464
52465 2007-10-04  Bruno Haible  <bruno@clisp.org>
52466
52467         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
52468         means.
52469         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
52470
52471 2007-10-04  Bruno Haible  <bruno@clisp.org>
52472
52473         * modules/truncl-tests: New file.
52474         * tests/test-truncl.c: New file.
52475
52476         * modules/truncl: New file.
52477         * lib/truncl.c: New file.
52478         * m4/truncl.m4: New file.
52479         * lib/math.in.h (truncl): New declaration.
52480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
52481         HAVE_DECL_TRUNCL.
52482         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
52483         HAVE_DECL_TRUNCL.
52484         * doc/functions/truncl.texi: Mention the 'truncl' module.
52485
52486 2007-10-04  Bruno Haible  <bruno@clisp.org>
52487
52488         * modules/truncf-tests: New file.
52489         * tests/test-truncf.c: New file.
52490
52491         * modules/truncf: New file.
52492         * lib/trunc.c: Make paramerizable through USE_* macros.
52493         * lib/truncf.c: New file.
52494         * m4/truncf.m4: New file.
52495         * lib/math.in.h (truncf): New declaration.
52496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
52497         HAVE_DECL_TRUNCF.
52498         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
52499         HAVE_DECL_TRUNCF.
52500         * doc/functions/truncf.texi: Mention the 'truncf' module.
52501
52502 2007-10-03  Bruno Haible  <bruno@clisp.org>
52503
52504         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
52505         augmentation also for tests modules.
52506         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
52507         * modules/atexit-tests (Makefile.am): Likewise.
52508         * modules/binary-io-tests (Makefile.am): Likewise.
52509         * modules/c-strcase-tests (Makefile.am): Likewise.
52510         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
52511         * modules/canonicalize-tests (Makefile.am): Likewise.
52512         * modules/closein-tests (Makefile.am): Likewise.
52513         * modules/fprintf-posix-tests (Makefile.am): Likewise.
52514         * modules/freadahead-tests (Makefile.am): Likewise.
52515         * modules/fseek-tests (Makefile.am): Likewise.
52516         * modules/fseeko-tests (Makefile.am): Likewise.
52517         * modules/ftell-tests (Makefile.am): Likewise.
52518         * modules/ftello-tests (Makefile.am): Likewise.
52519         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
52520         * modules/isnanl-tests (Makefile.am): Likewise.
52521         * modules/lseek-tests (Makefile.am): Likewise.
52522         * modules/mbscasecmp-tests (Makefile.am): Likewise.
52523         * modules/mbscasestr-tests (Makefile.am): Likewise.
52524         * modules/mbschr-tests (Makefile.am): Likewise.
52525         * modules/mbscspn-tests (Makefile.am): Likewise.
52526         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
52527         * modules/mbspbrk-tests (Makefile.am): Likewise.
52528         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
52529         * modules/mbsrchr-tests (Makefile.am): Likewise.
52530         * modules/mbsspn-tests (Makefile.am): Likewise.
52531         * modules/mbsstr-tests (Makefile.am): Likewise.
52532         * modules/printf-posix-tests (Makefile.am): Likewise.
52533         * modules/snprintf-posix-tests (Makefile.am): Likewise.
52534         * modules/sprintf-posix-tests (Makefile.am): Likewise.
52535         * modules/tsearch-tests (Makefile.am): Likewise.
52536         * modules/uniname/uniname-tests (Makefile.am): Likewise.
52537         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
52538         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
52539         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
52540         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
52541         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
52542         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
52543         * modules/vprintf-posix-tests (Makefile.am): Likewise.
52544         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
52545         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
52546         * modules/xstrtoimax-tests (Makefile.am): Likewise.
52547         * modules/xstrtol-tests (Makefile.am): Likewise.
52548         * modules/xstrtoumax-tests (Makefile.am): Likewise.
52549         * modules/yesno-tests (Makefile.am): Likewise.
52550
52551 2007-10-03  Bruno Haible  <bruno@clisp.org>
52552
52553         * modules/trunc-tests: New file.
52554         * tests/test-trunc.c: New file.
52555
52556         * modules/trunc: New file.
52557         * lib/trunc.c: New file.
52558         * m4/trunc.m4: New file.
52559         * lib/math.in.h (trunc): New declaration.
52560         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
52561         HAVE_DECL_TRUNC.
52562         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
52563         HAVE_DECL_TRUNC.
52564         * doc/functions/trunc.texi: Mention the 'trunc' module.
52565
52566 2007-10-03  Bruno Haible  <bruno@clisp.org>
52567
52568         * tests/test-fpending.c: New file, mostly copied
52569         from coreutils/lib/t-fpending.c.
52570         * modules/fpending-tests: New file.
52571
52572 2007-10-03  Bruno Haible  <bruno@clisp.org>
52573
52574         Port the stdio extensions to QNX (untested).
52575         * lib/fseterr.c (fseterr): Add support for QNX.
52576         * lib/fbufmode.c (fbufmode): Likewise.
52577         * lib/freadable.c (freadable): Likewise.
52578         * lib/fwritable.c (fwritable): Likewise.
52579         * lib/freading.c (freading): Likewise.
52580         * lib/fwriting.c (fwriting): Likewise.
52581         * lib/freadahead.c (freadahed): Likewise.
52582         * lib/fpurge.c (fpurge): Likewise.
52583         * lib/fseeko.c (rpl_fseeko): Likewise.
52584
52585 2007-10-03  Bruno Haible  <bruno@clisp.org>
52586             Jim Meyering  <jim@meyering.net>
52587             Eric Blake  <ebb9@byu.net>
52588
52589         * doc/relocatable.texi: Use @command instead of @program.
52590
52591 2007-10-02  Jim Meyering  <jim@meyering.net>
52592
52593         Perform one more "_.h" -> ".in.h" substitution.
52594         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
52595         instead of unistd_.h here, too.
52596
52597 2007-10-01  Bruno Haible  <bruno@clisp.org>
52598
52599         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
52600         Needed for the alloca-opt module.
52601
52602 2007-09-30  Bruno Haible  <bruno@clisp.org>
52603
52604         * lib/alloca.in.h: Renamed from lib/alloca_.h.
52605         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
52606         alloca_.h.
52607         * lib/argz.in.h: Renamed from lib/argz_.h.
52608         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
52609         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
52610         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
52611         byteswap_.h.
52612         * lib/dirent.in.h: Renamed from lib/dirent_.h.
52613         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
52614         dirent_.h.
52615         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
52616         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
52617         fcntl_.h.
52618         * lib/float.in.h: Renamed from lib/float_.h.
52619         * modules/float (Files, Makefile.am): Use float.in.h instead of
52620         float_.h.
52621         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
52622         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
52623         fnmatch_.h.
52624         * lib/getopt.in.h: Renamed from lib/getopt_.h.
52625         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
52626         getopt_.h.
52627         * lib/glob.in.h: Renamed from lib/glob_.h.
52628         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
52629         * lib/iconv.in.h: Renamed from lib/iconv_.h.
52630         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
52631         iconv_.h.
52632         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
52633         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
52634         inttypes_.h.
52635         * lib/locale.in.h: Renamed from lib/locale_.h.
52636         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
52637         locale_.h.
52638         * lib/math.in.h: Renamed from lib/math_.h.
52639         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
52640         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
52641         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
52642         of netinet_in_.h. Add dependency.
52643         * lib/poll.in.h: Renamed from lib/poll_.h.
52644         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
52645         * lib/search.in.h: Renamed from lib/search_.h.
52646         * modules/search (Files, Makefile.am): Use search.in.h instead of
52647         search_.h.
52648         * lib/signal.in.h: Renamed from lib/signal_.h.
52649         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
52650         _signal.h.
52651         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
52652         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
52653         stdbool_.h.
52654         * lib/stdint.in.h: Renamed from lib/stdint_.h.
52655         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
52656         stdint_.h.
52657         * lib/stdio.in.h: Renamed from lib/stdio_.h.
52658         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
52659         stdio_.h.
52660         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
52661         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
52662         stdlib_.h.
52663         * lib/string.in.h: Renamed from lib/string_.h.
52664         * modules/string (Files, Makefile.am): Use string.in.h instead of
52665         string_.h.
52666         * doc/gnulib-tool.texi (Initial import): Update.
52667         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
52668         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
52669         of sys_select_.h. Add dependency.
52670         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
52671         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
52672         of sys_socket_.h.
52673         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
52674         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
52675         sys_stat_.h.
52676         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
52677         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
52678         sys_time_.h.
52679         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
52680         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
52681         sysexits_.h.
52682         * lib/time.in.h: Renamed from lib/time_.h.
52683         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
52684         * lib/unistd.in.h: Renamed from lib/unistd_.h.
52685         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
52686         unistd_.h.
52687         * lib/wchar.in.h: Renamed from lib/wchar_.h.
52688         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
52689         wchar_.h.
52690         * lib/wctype.in.h: Renamed from lib/wctype_.h.
52691         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
52692         wctype_.h.
52693         * build-aux/bootstrap (slurp): Update.
52694         * lib/.cppi-disable: Update.
52695
52696 2007-09-30  Bruno Haible  <bruno@clisp.org>
52697
52698         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
52699         Needed on BeOS.
52700
52701 2007-09-30  Bruno Haible  <bruno@clisp.org>
52702
52703         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
52704
52705 2007-09-29  Bruno Haible  <bruno@clisp.org>
52706
52707         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
52708
52709 2007-09-29  Bruno Haible  <bruno@clisp.org>
52710
52711         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
52712         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
52713         * build-aux/install-reloc: Compile also areadlink.c.
52714         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
52715
52716 2007-09-29  Bruno Haible  <bruno@clisp.org>
52717
52718         * gnulib-tool (func_emit_initmacro_done): Indentation.
52719
52720 2007-09-29  Bruno Haible  <bruno@clisp.org>
52721
52722         * README: Add CVS checkout update instructions.
52723         Info from Bob Proulx <bob@proulx.com>.
52724
52725 2007-09-28  Eric Blake  <ebb9@byu.net>
52726
52727         Provide move-if-change.
52728         * build-aux/move-if-change: New file, based on best practice
52729         rather than any canonical upstream location.
52730
52731 2007-09-28  Jim Meyering  <jim@meyering.net>
52732
52733         Fix canonicalize loop-detection corner case.
52734         Do not attempt to stat the symlink values stored via seen_triple.
52735         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
52736         on linux-2.6.18, (but not 2.6.22).
52737         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
52738         triple_compare.  The former compares dev,ino,filename, while the latter
52739         would actually stat dirname(filename) when dev and ino were equal.
52740         * lib/hash-triple.c: Install <string.h>.
52741         (STREQ): Define.
52742         (triple_compare_ino_str): New function.
52743         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
52744
52745 2007-09-28  Eric Blake  <ebb9@byu.net>
52746
52747         Enforce that AC_REPLACE_FUNCS files exist.
52748         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
52749         override check for typos.
52750
52751         Fix test-closein on Solaris 10.
52752         * tests/test-closein.c (main): Don't assume stdin can be inherited
52753         closed on all systems.
52754         * tests/test-closein.sh: Likewise.
52755         Reported by Piotr Tarnowski.
52756
52757 2007-09-28  Jim Meyering  <jim@meyering.net>
52758
52759         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
52760
52761 2007-09-27  Jim Meyering  <jim@meyering.net>
52762
52763         canonicalize: Avoid a false-positive cycle failure.
52764         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
52765         Sort.  Remove cycle-check.
52766         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
52767         not cycle-check.h.
52768         (seen_triple): New function.
52769         (canonicalize_filename_mode): Use it instead of cycle-check.
52770         * tests/test-canonicalize.c: Add a test for this bug.
52771         * tests/test-canonicalize.sh: Set up and run the test.
52772
52773         New module, file-set, from coreutils.
52774         * modules/file-set: Define it.
52775         * lib/file-set.c, lib/file-set.h: Implement.
52776
52777         New module, hash-triple, from coreutils.
52778         * modules/hash-triple: Define it.
52779         * lib/hash-triple.c, lib/hash-triple.h: Implement.
52780
52781 2007-09-25  Eric Blake  <ebb9@byu.net>
52782
52783         Fix strerror on Interix.
52784         * lib/string_.h (strerror): Declare replacement.
52785         * doc/functions/strerror.texi (strerror): Document the Interix
52786         shortcoming.
52787         * modules/string (Makefile.am): Support new hooks.
52788         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
52789         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
52790         gl_FUNC_STRERROR_SEPARATE.
52791         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
52792         * lib/strerror.c (rpl_strerror): Provide replacement.
52793         * modules/strerror (Depends-on): Add string.
52794         (configure.ac): Detect use of module.
52795         * tests/test-strerror.c: New file.
52796         * modules/strerror-tests: New test module.
52797         * modules/argp (Depends-on): Add strerror.
52798         * modules/error (Depends-on): Likewise.
52799         Reported by Martin Koeppe.
52800
52801 2007-09-24  Bruno Haible  <bruno@clisp.org>
52802
52803         * README: Update git instructions.
52804
52805 2007-09-24  Eric Blake  <ebb9@byu.net>
52806
52807         Revert fpending breakage from 2007-09-08.
52808         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
52809         __fpending.c.
52810
52811 2007-09-24  Jim Meyering  <jim@meyering.net>
52812
52813         filenamecat.c: Add a test.
52814         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
52815         showing how the function works when DIR is the empty string.
52816
52817 2007-09-21  Simon Josefsson  <simon@josefsson.org>
52818
52819         * tests/test-canonicalize.sh: Turn on executable bit.
52820
52821 2007-09-19  Eric Blake  <ebb9@byu.net>
52822
52823         * README: Update CVS instructions.
52824
52825 2007-09-18  Bruno Haible  <bruno@clisp.org>
52826
52827         * modules/areadlink: New file.
52828         * lib/areadlink.h (areadlink): New declaration.
52829         * lib/areadlink.c: New file, based on lib/xreadlink.c.
52830
52831 2007-09-17  Jim Meyering  <jim@meyering.net>
52832
52833         * lib/savewd.c (ESTALE) [!defined]: Define.
52834         Reported to be required on Interix by Martin Koeppe.
52835
52836 2007-09-17  Bruno Haible  <bruno@clisp.org>
52837
52838         * gnulib-tool (func_version): Use $version.
52839
52840 2007-09-16  Bruno Haible  <bruno@clisp.org>
52841
52842         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
52843         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
52844         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
52845         Reported by Greg Schafer <gschafer@zip.com.au>.
52846
52847 2007-09-15  Bruno Haible  <bruno@clisp.org>
52848
52849         * gnulib-tool (sed): Try a little harder to make bash understand the
52850         alias.
52851         Reported by Bruce Korb <bruce.korb@gmail.com>.
52852
52853 2007-09-13  Eric Blake  <ebb9@byu.net>
52854
52855         * ChangeLog: Remove conflict markers.
52856
52857 2007-09-13  Simon Josefsson  <simon@josefsson.org>
52858
52859         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
52860         Reported by Bruno Haible <bruno@clisp.org>.
52861
52862 2007-09-12  Bruno Haible  <bruno@clisp.org>
52863
52864         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
52865         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
52866         is not defined.
52867
52868 2007-09-12  Eric Blake  <ebb9@byu.net>
52869
52870         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
52871         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
52872         Autoconf definition.
52873         * modules/euidaccess (Depends-on): Add extensions, for
52874         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
52875         * modules/fnmatch (Depends-on): Likewise.
52876         * modules/getaddrinfo (Depends-on): Likewise.
52877         * modules/getdelim (Depends-on): Likewise.
52878         * modules/getline (Depends-on): Likewise.
52879         * modules/getsubopt (Depends-on): Likewise.
52880         * modules/gettext (Depends-on): Likewise.
52881         * modules/group-member (Depends-on): Likewise.
52882         * modules/mbchar (Depends-on): Likewise.
52883         * modules/memmem (Depends-on): Likewise.
52884         * modules/mempcpy (Depends-on): Likewise.
52885         * modules/memrchr (Depends-on): Likewise.
52886         * modules/pagealign_alloc (Depends-on): Likewise.
52887         * modules/readutmp (Depends-on): Likewise.
52888         * modules/stpcpy (Depends-on): Likewise.
52889         * modules/stpncpy (Depends-on): Likewise.
52890         * modules/strchrnul (Depends-on): Likewise.
52891         * modules/strndup (Depends-on): Likewise.
52892         * modules/strsep (Depends-on): Likewise.
52893         * modules/strverscmp (Depends-on): Likewise.
52894         * modules/vasprintf (Depends-on): Likewise.
52895         * modules/wcwidth (Depends-on): Likewise.
52896         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
52897         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
52898         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
52899         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
52900         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
52901         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
52902         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
52903         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
52904         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
52905         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
52906         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52907         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
52908         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
52909         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
52910         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
52911         * m4/readutmp.m4 (gl_READUTMP): Likewise.
52912         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
52913         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
52914         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
52915         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
52916         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
52918         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
52919         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
52920         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
52921         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
52922         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
52923         so that lock.m4 can be used in gettext without extensions module.
52924
52925 2007-09-11  Bruno Haible  <bruno@clisp.org>
52926
52927         * m4/isc-posix.m4: Remove file.
52928         Suggested by Eric Blake.
52929
52930 2007-09-11  Eric Blake  <ebb9@byu.net>
52931
52932         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
52933
52934 2007-09-10  Bruno Haible  <bruno@clisp.org>
52935
52936         * posix-modules: Fix typo in error message.
52937         Reported by Matt <mkraai@beckman.com>.
52938
52939 2007-09-09  Bruno Haible  <bruno@clisp.org>
52940
52941         * doc/functions/getdelim.texi: Update list of platforms lacking the
52942         function.
52943         * doc/functions/getline.texi: Likewise.
52944
52945 2007-09-09  Jim Meyering  <jim@meyering.net>
52946
52947         * lib/hash.c (hash_initialize): Detect calloc failure.
52948         Reported by Bruno Haible.
52949
52950 2007-09-09  Bruno Haible  <bruno@clisp.org>
52951
52952         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
52953         malloc or realloc fails.
52954
52955 2007-09-09  Bruno Haible  <bruno@clisp.org>
52956
52957         * modules/getcwd (Depends-on): Add malloc-posix.
52958         * modules/glob (Depends-on): Likewise.
52959         * modules/putenv (Depends-on): Likewise.
52960         * modules/strdup (Depends-on): Likewise.
52961         * modules/getdelim (Depends-on): Add realloc-posix.
52962         * modules/read-file (Depends-on): Likewise.
52963
52964 2007-09-09  Bruno Haible  <bruno@clisp.org>
52965
52966         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
52967         (gl_FUNC_MALLOC_POSIX): Require it.
52968         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
52969         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
52970         * modules/realloc (Files): Add m4/malloc.m4.
52971         * modules/calloc (Files): Likewise.
52972
52973 2007-09-09  Bruno Haible  <bruno@clisp.org>
52974
52975         * modules/malloc-posix: New file.
52976         * modules/malloc (Depends-on): Add malloc-posix.
52977         * lib/malloc.c: Include errno.h.
52978         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
52979         and a POSIX-compatible malloc into a single function. Set ENOMEM
52980         when returning NULL.
52981         * m4/malloc.m4: New file.
52982         * doc/functions/malloc.texi: Mention the malloc-posix module.
52983         * lib/stdlib_.h (malloc): New declaration.
52984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
52985         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
52986         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
52987         and HAVE_MALLOC_POSIX.
52988
52989 2007-09-09  Bruno Haible  <bruno@clisp.org>
52990
52991         * modules/realloc-posix: New file.
52992         * modules/realloc (Depends-on): Add realloc-posix.
52993         * lib/realloc.c: Include errno.h.
52994         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
52995         and a POSIX-compatible realloc into a single function. Set ENOMEM
52996         when returning NULL.
52997         * m4/realloc.m4: New file.
52998         * doc/functions/realloc.texi: Mention the realloc-posix module.
52999         * lib/stdlib_.h (realloc): New declaration.
53000         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53001         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
53002         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
53003         and HAVE_REALLOC_POSIX.
53004
53005 2007-09-09  Bruno Haible  <bruno@clisp.org>
53006
53007         * modules/calloc-posix: New file.
53008         * modules/calloc (Depends-on): Add calloc-posix.
53009         * lib/calloc.c: Include errno.h.
53010         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
53011         and a POSIX-compatible calloc into a single function. Set ENOMEM
53012         when returning NULL.
53013         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
53014         * doc/functions/calloc.texi: Mention the calloc-posix module.
53015         * lib/stdlib_.h (calloc): New declaration.
53016         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
53017         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
53018         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
53019         and HAVE_CALLOC_POSIX.
53020
53021 2007-09-09  Bruno Haible  <bruno@clisp.org>
53022
53023         Allow for modules to show an arbitrary notice.
53024         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
53025         * gnulib-tool: New option --extract-notice.
53026         (func_usage): Document it.
53027         (sed_extract_prog): Update.
53028         (func_get_notice): New function.
53029         (func_modules_notice): New function.
53030         (func_import, func_create_testdir): Invoke it.
53031         Suggested by Jim Meyering.
53032
53033 2007-09-09  Bruno Haible  <bruno@clisp.org>
53034
53035         * gnulib-tool: New options --verbose, --quiet.
53036         (func_usage): Document them.
53037         (verbose): New variable.
53038         (func_execute_command): New function.
53039         (func_import): Don't show the module list and the file list if
53040         $verbose < 0.
53041         (func_create_testdir): Likewise. Use func_execute_command.
53042         (func_create_megatestdir): Use func_execute_command.
53043
53044 2007-09-08  Bruno Haible  <bruno@clisp.org>
53045
53046         * gnulib-tool (func_import): Prefer rsync over wget when available,
53047         for fetching the PO files.
53048
53049 2007-09-08  Bruno Haible  <bruno@clisp.org>
53050
53051         * posix-modules: New file. Portions copied from gnulib-tool.
53052         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
53053
53054 2007-09-08  Jim Meyering  <jim@meyering.net>
53055
53056         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
53057         * lib/fpending.h: Rename from __fpending.h.
53058         * lib/fpending.c: Rename from __fpending.c.
53059         Include "fpending.h", not "__fpending.h".
53060         * lib/__fpending.h, lib/__fpending.c: Remove files.
53061         * modules/fpending (Files): Reflect new file names.
53062         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
53063
53064 2007-09-08  Bruno Haible  <bruno@clisp.org>
53065
53066         * m4/inttypes-h.m4: Remove stub file.
53067
53068 2007-09-07  Simon Josefsson  <simon@josefsson.org>
53069
53070         * doc/headers/stdint.texi: Discuss #include_next issue.
53071
53072 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
53073
53074         * build-aux/bootstrap: Remove obsolete comment about wget --help.
53075
53076 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53077
53078         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
53079         in variable name.
53080
53081 2007-09-03  Jim Meyering  <jim@meyering.net>
53082
53083         New module: git-version-gen.
53084         * modules/git-version-gen: New file.
53085
53086         Import changes from coreutils for bootstrap script.
53087
53088         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
53089
53090         bootstrap: uses rsync to download the .po files
53091         * build-aux/bootstrap (po_download_command_format): New global.
53092         (download_po_files): Use rsync.
53093         (update_po_files): Don't remove .po files after download,
53094         so future rsync runs can take advantage of the copies.
53095
53096         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
53097
53098         Solve the unnecessary-.po-file-regeneration problem once and for all.
53099         * build-aux/bootstrap (download_po_files): New function, renamed from
53100         get_translations.  Now, downloads, but doesn't update LINGUAS.
53101         (update_po_files): New function.
53102
53103         bootstrap: Ignore more.
53104         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
53105         uniwidth to e.g., lib/.gitignore.
53106         (slurp): Handle the sys_stat_.h -> sys mapping, too.
53107
53108         * build-aux/bootstrap: New setting: vc_ignore.
53109         (insert_sorted_if_absent): Create $file if absent.
53110         Adapt to new, possibly empty, list: $vc_ignore.
53111
53112         bootstrap: generate more ignorable names
53113         * build-aux/bootstrap (slurp): When generating ignorable names,
53114         also map .sin to .sed, .gperf to .c, and .y to .c.
53115
53116 2007-09-03  Jim Meyering  <jim@meyering.net>
53117
53118         * build-aux/git-version-gen: New file, from coreutils.  For details, see
53119         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
53120
53121 2007-09-02  Bruno Haible  <bruno@clisp.org>
53122
53123         Fix mis-recognition of 'mcs' on QNX 6.
53124         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
53125         output contains the string "Mono".
53126         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
53127         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
53128
53129 2007-09-01  Bruno Haible  <bruno@clisp.org>
53130
53131         Fix collision between uniwidth/* and linebreak modules.
53132         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
53133         u32_width): Remove declarations.
53134         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
53135         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
53136         streq3, streq2, streq1, streq0): Remove functions.
53137         (STREQ): Remove macro.
53138         (is_cjk_encoding): Remove function.
53139         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
53140         (uc_width, u8_width, u16_width, u32_width): Remove functions.
53141         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
53142         * NEWS: Document the change.
53143
53144 2007-09-01  Bruno Haible  <bruno@clisp.org>
53145
53146         * lib/streq.h: Add double-inclusion guard.
53147
53148 2007-09-01  Karl Berry  <karl@gnu.org>
53149
53150         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
53151
53152 2007-08-28  Jim Meyering  <jim@meyering.net>
53153
53154         Rename mreadlink_with_size to areadlink_with_size.
53155         * NEWS: Document the change.
53156         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
53157         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
53158         * lib/mreadlink.h: Rename this to...
53159         * lib/areadlink.h: ...this.
53160         * modules/mreadlink-with-size: Rename this to...
53161         * modules/areadlink-with-size: ...this.
53162         * lib/canonicalize.c: Reflect the renaming.
53163         * modules/canonicalize: Likewise.
53164
53165 2007-08-26  Bruno Haible  <bruno@clisp.org>
53166
53167         * gnulib-tool (func_import): When deciding which files to remove,
53168         consider also dangling symbolic links.
53169         Reported by Eric Blake.
53170
53171 2007-08-26  Bruno Haible  <bruno@clisp.org>
53172
53173         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
53174
53175 2007-08-23  Simon Josefsson  <simon@josefsson.org>
53176
53177         * lib/readline.c: Don't include getline.h, the prototype is now
53178         found in stdio.h.
53179
53180 2007-08-23  Jim Meyering  <jim@meyering.net>
53181
53182         Getdelim touchup.
53183         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
53184         around the funlockfile call, since funlockfile never sets errno.
53185         Don't set errno upon failed realloc.
53186
53187 2007-08-22  Eric Blake  <ebb9@byu.net>
53188
53189         Getline touchups.
53190         * lib/getdelim.c (getdelim): Revert regression that required *n to
53191         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
53192         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
53193         getdelim, rather than whether implementation is missing.
53194         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
53195         * lib/stdio_.h (getline): Also declare if replacement is
53196         required.
53197         * doc/functions/getdelim.texi: New file.
53198         * doc/functions/getline.texi: Likewise.
53199         * doc/gnulib.texi (Function Substitutes): Add new files.
53200         Reported by Bruno Haible.
53201
53202 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
53203
53204         * users.txt: Add Guile.
53205
53206 2007-08-22  Eric Blake  <ebb9@byu.net>
53207
53208         * tests/test-getdelim.c (main): Use remove, not unlink.
53209         * tests/test-getline.c (main): Likewise.
53210
53211         Move getline and getdelim into stdio.h, per POSIX 200x.
53212         * modules/getline (Files): Remove getline.h.
53213         (Depends-on): Add stdio.
53214         (configure.ac): Add module indicator.
53215         * modules/getdelim (Files): Remove getdelim.h.
53216         (Depends-on): Add stdio.
53217         (configure.ac): Add module indicator.
53218         * modules/stdio (Makefile.am): Work with new indicators.
53219         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
53220         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
53221         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
53222         * lib/getdelim.h: Delete.
53223         * lib/getline.h: Delete.
53224         * lib/stdio_.h (getdelim, getline): Declare.
53225         * modules/getdelim-tests: New module.
53226         * modules/getline-tests: Likewise.
53227         * tests/test-getdelim.c: New file.
53228         * tests/test-getline.c: Likewise.
53229         * NEWS: Document the change.
53230         * lib/getline.c: Update choice of header.
53231         * lib/csharpcomp.c: Likewise.
53232         * lib/getpass.c: Likewise.
53233         * lib/javacomp.c: Likewise.
53234         * lib/javaversion.c: Likewise.
53235         * lib/yesno.c: Likewise.
53236         * lib/getdelim.c: Likewise.
53237         (getdelim): Set errno on failure, and avoid memory leak.
53238
53239 2007-08-19  Bruno Haible  <bruno@clisp.org>
53240
53241         * modules/closein (Depends-on): Add freadahead.
53242         * lib/closein.c: Include freadahead.h.
53243         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
53244         is zero.
53245
53246 2007-08-19  Bruno Haible  <bruno@clisp.org>
53247
53248         * modules/freadahead-tests: New file.
53249         * tests/test-freadahead.sh: New file.
53250         * tests/test-freadahead.c: New file.
53251
53252         * modules/freadahead: New file.
53253         * lib/freadahead.h: New file.
53254         * lib/freadahead.c: New file.
53255         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
53256         fbufmode, fpurge, freadable, fwritable.
53257
53258 2007-08-19  Eric Blake  <ebb9@byu.net>
53259
53260         Test yesno in combination with closein.
53261         * lib/yesno.c (yesno): Document use of stdin.
53262         * modules/yesno-tests (Files): New module.
53263         * tests/test-yesno.c (main): New file.
53264         * tests/test-yesno.sh: Likewise.
53265
53266 2007-08-19  Bruno Haible  <bruno@clisp.org>
53267
53268         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
53269         * lib/fseeko.c (rpl_fseeko): Likewise.
53270         * lib/fseterr.c (fseterr): Likewise.
53271
53272 2007-08-19  Bruno Haible  <bruno@clisp.org>
53273
53274         * tests/test-lseek.c (main): Disable a test for BeOS.
53275         * doc/functions/lseek.texi: Document the BeOS bug.
53276
53277 2007-08-19  Bruno Haible  <bruno@clisp.org>
53278             Eric Blake  <ebb9@byu.net>
53279
53280         * lib/lseek.c: Include <sys/stat.h>.
53281         (rpl_lseek): Add workaround code also for Unix platforms.
53282         Needed for BeOS.
53283         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
53284         * doc/functions/lseek.texi: Document BeOS definiency.
53285
53286 2007-08-18  Bruno Haible  <bruno@clisp.org>
53287
53288         * modules/fstrcmp-tests: New file.
53289         * tests/test-fstrcmp.c: New file.
53290
53291 2007-08-18  Bruno Haible  <bruno@clisp.org>
53292
53293         * modules/fstrcmp: New file, from GNU gettext with modifications.
53294         * lib/fstrcmp.h: New file, from GNU gettext.
53295         * lib/fstrcmp.c: New file, from GNU gettext.
53296         * MODULES.html.sh (String handling): Add fstrcmp.
53297
53298 2007-08-18  Bruno Haible  <bruno@clisp.org>
53299
53300         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
53301         'bool'.
53302         (diag, compareseq): Remove const from the ctxt argument.
53303         (USE_HEURISTIC): Undefine at the end.
53304
53305 2007-08-18  Jim Meyering  <jim@meyering.net>
53306
53307         New file: lib/idcache.h
53308         * NEWS: Mention the addition.
53309         * modules/idcache (Files): Add lib/idcache.h
53310         * lib/idcache.c: Include "idcache.h".
53311         Don't include <sys/types.h>.
53312         Add a FIXME comment.
53313         Move file-scoped "static" declarations to the top.
53314         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
53315
53316 2007-08-17  Bruno Haible  <bruno@clisp.org>
53317         and Paul Eggert  <eggert@cs.ucla.edu>
53318
53319         * MODULES.html.sh: Add diffseq.
53320         * modules/diffseq: New file.
53321         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
53322         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
53323
53324 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
53325
53326         Import changes from coreutils for bootstrap script.
53327
53328         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
53329
53330         * build-aux/bootstrap (slurp): Work even in environments where
53331         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
53332         current code does not slurp files whose names start with ".", and
53333         this looks like it might be a troublesome area.
53334
53335         2007-07-11  Jim Meyering  <jim@meyering.net>
53336
53337         If there's a GPL vN copyright comment, require that N == 3.
53338
53339         2007-07-08  Jim Meyering  <jim@meyering.net>
53340
53341         Run the coreutils-specific code only if tests/Makefile.am.in exists.
53342         * build-aux/bootstrap (mam_template): Move definition out of loop.
53343
53344         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
53345
53346         * build-aux/bootstrap (symlink_to_dir): Rename function from
53347         symlink_to_gnulib.  Add a directory parameter.  Update all
53348         callers.
53349         (cp_mark_as_generated): Also check for -- and link to -- files in
53350         gl/.
53351
53352         2007-07-08  Jim Meyering  <jim@meyering.net>
53353
53354         Adapt to deeper hierarchy in gnulib.
53355         * build-aux/bootstrap (symlink_to_dir): If the destination
53356         directory doesn't exist, create it. This is required at least for
53357         "lib/uniwidth/cjk.h".
53358
53359         2007-05-15  Jim Meyering  <jim@meyering.net>
53360
53361         * build-aux/bootstrap: Now that generated Makefile.am files
53362         are no longer under version control, they must be created at
53363         bootstrap time.
53364
53365 2007-08-14  Ben Pfaff  <blp@gnu.org>
53366
53367         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
53368
53369 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
53370
53371         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
53372         given the changes below.
53373         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
53374         even on hosts that have padding bits beyond the supported 64.
53375
53376 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
53377
53378         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
53379         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
53380         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
53381         depends on it.
53382         (xstrtol_error): Remove.
53383         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
53384         but with a different signature.
53385         (ATTRIBUTE_NORETURN, __attribute__): New macros.
53386         * lib/xstrtol-error.c: Include exitfail.h.
53387         (xstrtol_fatal): New function, with a different signature from the
53388         old xstrtol_error, so that the caller need not worry about passing
53389         in an exit status, or about storage management of the option argument.
53390         (xstrtol_error): Now a static function.  Redo signature to
53391         implement xstrtol_fatal.  Output the correct number of hyphens in
53392         front of the option so that the caller need not worry about
53393         storage management.
53394         (N_): New macro.
53395         (_): Remove; not used now.
53396         * modules/xstrtol: Depend on getopt.
53397         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
53398         of old STRTOL_FATAL_ERROR macro.
53399         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
53400         of test program.
53401         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
53402         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
53403
53404 2007-08-08  Eric Blake  <ebb9@byu.net>
53405
53406         * lib/xstrtol-error.c: Add missing include.
53407
53408         Move xstrtol messages into gnulib domain, when --pobase is used.
53409         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
53410         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
53411         * modules/xstrtol (Files): Distribute new file.
53412         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
53413         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
53414         * tests/test-xstrtol.c: ...into new file.
53415         * tests/test-xstrtoul.c: Also test xstrtoul.
53416         * tests/test-xstrtoimax.c: Also test xstrtoimax.
53417         * tests/test-xstrtoumax.c: Also test xstrtoumax.
53418         * tests/test-xstrtol.sh: Drive the tests.
53419         * tests/test-xstrtoimax.sh: Likewise.
53420         * tests/test-xstrtoumax.sh: Likewise.
53421         * modules/xstrtol-tests: New module.
53422         * modules/xstrtoimax-tests: Likewise.
53423         * modules/xstrtoumax-tests: Likewise.
53424
53425 2007-08-08  Jim Meyering  <jim@meyering.net>
53426
53427         New function: mfile_name_concat.
53428         * lib/filenamecat.c (mfile_name_concat): New function, just like
53429         file_name_concat, but return NULL upon failure rather than exiting
53430         with a diagnostic.
53431         * lib/filenamecat.h: Declare it.
53432
53433 2007-08-07  Bruno Haible  <bruno@clisp.org>
53434
53435         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
53436         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
53437         warning from gcc.
53438         Reported by Eric Blake.
53439
53440 2007-08-07  Simon Josefsson  <simon@josefsson.org>
53441
53442         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
53443         * modules/crypto/arcfour (License): Likewise.
53444         * modules/crypto/des-tests (License): Likewise.
53445         * modules/crypto/gc-arctwo-tests (License): Likewise.
53446         * modules/crypto/gc-des-tests (License): Likewise.
53447         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
53448         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
53449         * modules/crypto/gc-md2-tests (License): Likewise.
53450         * modules/crypto/gc-md4-tests (License): Likewise.
53451         * modules/crypto/gc-md5-tests (License): Likewise.
53452         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
53453         * modules/crypto/gc-rijndael-tests (License): Likewise.
53454         * modules/crypto/gc-sha1-tests (License): Likewise.
53455         * modules/crypto/gc-tests (License): Likewise.
53456         * modules/crypto/hmac-md5 (License): Likewise.
53457         * modules/crypto/hmac-sha1 (License): Likewise.
53458         * modules/crypto/md2-tests (License): Likewise.
53459         * modules/crypto/md4-tests (License): Likewise.
53460         * modules/crypto/md5 (License): Likewise.
53461         * modules/crypto/rijndael (License): Likewise.
53462         * modules/crypto/sha1 (License): Likewise.
53463         * modules/memxor (License): Likewise.
53464
53465 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
53466         and Bruno Haible  <bruno@clisp.org>
53467
53468         * NEWS: Describe interface changes to human, xstrtol.
53469         * lib/human.h: Include <xstrtol.h>.
53470         (human_options): Return enum strtol_error, not int.  Remove
53471         bool arg; take int * instead.
53472         * lib/human.c: Don't include "gettext.h".
53473         (_): Remove; no longer used.
53474         Don't include <xstrtol.h>, since human.h does it.
53475         (human_options): Adjust to abovementioned interface changes.
53476         Do not report error to stderr; that's now the caller's
53477         responsibility.
53478         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
53479         interface change.
53480         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
53481         Str, Argument_type_string.  All uses changed.  Put " argument"
53482         in diagnostics to make them clearer.  Change wording of suffix
53483         message for clarity.
53484         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
53485         Argument_type_string.
53486         (STRTOL_FATAL_WARN): Remove; no longer used.
53487         * modules/human (Depends-on): Remove gettext-h.
53488
53489 2007-08-06  Simon Josefsson  <simon@josefsson.org>
53490
53491         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
53492
53493 2007-07-31  Bruno Haible  <bruno@clisp.org>
53494
53495         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
53496         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
53497         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
53498
53499 2007-07-31  Bruno Haible  <bruno@clisp.org>
53500
53501         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
53502         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
53503
53504 2007-07-30  Bruno Haible  <bruno@clisp.org>
53505
53506         * modules/base64 (License): Use the synonymous term "LGPLv2+".
53507         * modules/c-ctype (License): Likewise.
53508         * modules/c-strcase (License): Likewise.
53509         * modules/check-version (License): Likewise.
53510         * modules/iconv (License): Likewise.
53511         * modules/iconv_open (License): Likewise.
53512         * modules/read-file (License): Likewise.
53513         * modules/striconv (License): Likewise.
53514         * modules/strverscmp (License): Likewise.
53515         * modules/vasprintf (License): Likewise.
53516         * modules/crypto/des (License): Likewise.
53517         * modules/crypto/gc (License): Likewise.
53518         * modules/crypto/gc-arcfour (License): Likewise.
53519         * modules/crypto/gc-arctwo (License): Likewise.
53520         * modules/crypto/gc-des (License): Likewise.
53521         * modules/crypto/gc-hmac-md5 (License): Likewise.
53522         * modules/crypto/gc-hmac-sha1 (License): Likewise.
53523         * modules/crypto/gc-md2 (License): Likewise.
53524         * modules/crypto/gc-md4 (License): Likewise.
53525         * modules/crypto/gc-md5 (License): Likewise.
53526         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
53527         * modules/crypto/gc-random (License): Likewise.
53528         * modules/crypto/gc-rijndael (License): Likewise.
53529         * modules/crypto/gc-sha1 (License): Likewise.
53530         * modules/crypto/md2 (License): Likewise.
53531         * modules/crypto/md4 (License): Likewise.
53532
53533 2007-07-30  Jim Meyering  <jim@meyering.net>
53534
53535         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
53536         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
53537         it has valid stat data.  This bug would cause du not to count the
53538         sizes of inaccessible directories.
53539         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
53540         in <http://bugzilla.redhat.com/250077>.
53541
53542 2007-07-25  Peter O'Gorman  <peter@pogma.com>
53543             Bruno Haible  <bruno@clisp.org>
53544
53545         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
53546         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
53547         #include_next, gives a diagnostic about it, but reports no error in
53548         the exit code.
53549         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53550
53551 2007-07-24  Ben Pfaff  <blp@gnu.org>
53552
53553         Improve name: "count-one-bits" is better than "popcount".
53554         * MODULES.html.sh: Update name.
53555         * lib/popcount.h: Renamed lib/count-one-bits.h.
53556         (popcount): Renamed count_one_bits.
53557         (popcountl): Renamed count_one_bits_l.
53558         (popcountll): Renamed count_one_bits_ll.
53559         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
53560         * modules/popcount: Renamed module/count-one-bits.
53561         * modules/popcount-tests: Renamed module/count-one-bits-tests.
53562         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
53563
53564 2007-07-23  Ben Pfaff  <blp@gnu.org>
53565
53566         * lib/popcount.h (popcount32): Reduce size of constants, to allow
53567         better code generation, and add U to large constants to avoid
53568         warnings, in non-GCC case.
53569         Suggested by Bruno Haible.
53570
53571 2007-07-23  Ben Pfaff  <blp@gnu.org>
53572
53573         * lib/popcount.h: Use verify_true instead of if...abort.
53574         * modules/popcount: Depend on verify module.
53575         Suggested by Jim Meyering.
53576
53577 2007-07-23  Bruno Haible  <bruno@clisp.org>
53578
53579         * gnulib-tool (func_import): Create a .cvsignore file also when the
53580         directory is not yet in CVS but the toplevel directory is. When
53581         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
53582         Reported by Karl Berry.
53583
53584 2007-07-22  Ben Pfaff  <blp@gnu.org>
53585
53586         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
53587         case.
53588         Suggested by Eric Blake.
53589
53590 2007-07-22  Ben Pfaff  <blp@gnu.org>
53591
53592         New module: popcount.
53593         * MODULES.html.sh: Add popcount.
53594         * modules/popcount: New file.
53595         * modules/popcount-tests: New file.
53596         * tests/test-popcount.c: New file.
53597         * lib/popcount.h: New file.
53598         * m4/popcount.m4: New file.
53599
53600 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
53601
53602         * build-aux/announce-gen: Update to GPLv3.
53603
53604         * build-aux/config.guess: Update from config.
53605
53606 2007-07-21  Bruno Haible  <bruno@clisp.org>
53607
53608         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
53609         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
53610
53611 2007-07-20  Jim Meyering  <jim@meyering.net>
53612
53613         * check-module: Diagnose a self-dependency.
53614
53615 2007-07-19  Bruno Haible  <bruno@clisp.org>
53616
53617         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
53618         empty.
53619         Reported by Eric Blake.
53620
53621 2007-07-18  Bruno Haible  <bruno@clisp.org>
53622
53623         * gnulib-tool: New options --po-base, --po-domain.
53624         (func_usage): Document them.
53625         (pobase, po_domain): New variables.
53626         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
53627         DEFAULT_TEXT_DOMAIN.
53628         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
53629         (func_import): Consider pobase and po_domain. Create a po/ directory.
53630         (func_create_testdir): Set pobase and po_domain to empty.
53631         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
53632         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
53633
53634 2007-07-18  Bruno Haible  <bruno@clisp.org>
53635
53636         * gnulib-tool (func_get_automake_snippet): Synthesize also an
53637         EXTRA_DIST augmentation for files in build-aux/.
53638
53639 2007-07-16  Bruno Haible  <bruno@clisp.org>
53640
53641         * modules/lseek (License): Use the synonymous term "LGPLv2+".
53642         * modules/getdelim (License): Likewise.
53643
53644 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53645
53646         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
53647         * modules/d-type (License): Likewise.
53648         * modules/extensions (License): Likewise.
53649         * modules/fnmatch (License): Likewise.
53650         * modules/fseeko (License): Likewise.
53651         * modules/getaddrinfo (License): Likewise.
53652         * modules/getline (License): Likewise.
53653         * modules/getlogin_r (License): Likewise.
53654         * modules/getpass (License): Likewise.
53655         * modules/gettimeofday (License): Likewise.
53656         * modules/glob (License): Likewise.
53657         * modules/inet_ntop (License): Likewise.
53658         * modules/malloc (License): Likewise.
53659         * modules/malloca (License): Likewise.
53660         * modules/memmem (License): Likewise.
53661         * modules/mempcpy (License): Likewise.
53662         * modules/memset (License): Likewise.
53663         * modules/minmax (License): Likewise.
53664         * modules/mktime (License): Likewise.
53665         * modules/netinet_in (License): Likewise.
53666         * modules/pathmax (License): Likewise.
53667         * modules/poll (License): Likewise.
53668         * modules/regex (License): Likewise.
53669         * modules/snprintf (License): Likewise.
53670         * modules/stdbool (License): Likewise.
53671         * modules/stdint (License): Likewise.
53672         * modules/stdio (License): Likewise.
53673         * modules/strcase (License): Likewise.
53674         * modules/strcasestr (License): Likewise.
53675         * modules/strdup (License): Likewise.
53676         * modules/string (License): Likewise.
53677         * modules/strndup (License): Likewise.
53678         * modules/strnlen (License): Likewise.
53679         * modules/strpbrk (License): Likewise.
53680         * modules/strptime (License): Likewise.
53681         * modules/strsep (License): Likewise.
53682         * modules/sys_select (License): Likewise.
53683         * modules/sys_socket (License): Likewise.
53684         * modules/sys_stat (License): Likewise.
53685         * modules/sys_time (License): Likewise.
53686         * modules/time (License): Likewise.
53687         * modules/time_r (License): Likewise.
53688         * modules/timegm (License): Likewise.
53689         * modules/unistd (License): Likewise.
53690         * modules/vsnprintf (License): Likewise.
53691         * modules/wctype (License): Likewise.
53692
53693 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
53694
53695         * modules/argz (License): LGPLv2+.
53696
53697 2007-07-15  Karl Berry  <karl@gnu.org>
53698
53699         * doc/gnulib.texi: revise node structure per new fdl.texi.
53700
53701 2007-07-14  Bruno Haible  <bruno@clisp.org>
53702
53703         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
53704         the output file.
53705         * lib/uniname/uninames.h: Regenerated.
53706
53707 2007-07-14  Karl Berry  <karl@gnu.org>
53708
53709         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
53710         omitting sectioning and index commands.
53711
53712 2007-07-13  Bruno Haible  <bruno@clisp.org>
53713
53714         New gnulib-tool option --more-symlinks.
53715         * gnulib-tool (func_usage): Document --more-symlinks.
53716         (do_copyrights): New variable.
53717         Recognize option --more-symlinks.
53718         (func_import): Don't add a copyright notice transform to
53719         sed_transform_lib_file if do_copyrights is empty.
53720
53721 2007-07-13  Bruno Haible  <bruno@clisp.org>
53722
53723         * lib/vasnprintf.c (decimal_point_char): Define also if
53724         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
53725         && !NEED_PRINTF_DIRECTIVE_A.
53726         Reported by Clemens Koller <clemens.koller@anagramm.de> via
53727         Gary V. Vaughan <gary@gnu.org>.
53728
53729 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
53730
53731         * lib/inttypes_.h: Undo previous change, since it was fixed
53732         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
53733
53734 2007-07-13  Bruno Haible  <bruno@clisp.org>
53735
53736         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
53737         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
53738
53739 2007-07-13  Jim Meyering  <jim@meyering.net>
53740
53741         df: Don't fail for Tru64's "file-on-file mount".
53742         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
53743         so we fall through and use statfs instead.  Details here:
53744         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
53745         Reported by Albert Chin.
53746
53747 2007-07-13  Bruno Haible  <bruno@clisp.org>
53748
53749         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
53750         * modules/configmake (License): Likewise.
53751         * modules/gettext (License): Likewise.
53752         * modules/gettext-h (License): Likewise.
53753         * modules/include_next (License): Likewise.
53754         * modules/link-warning (License): Likewise.
53755         * modules/localcharset (License): Likewise.
53756         * modules/localename (License): Likewise.
53757         * modules/lock (License): Likewise.
53758         * modules/relocatable-lib-lgpl (License): Likewise.
53759         * modules/size_max (License): Likewise.
53760         * modules/vasnprintf (License): Likewise.
53761         * modules/wchar (License): Likewise.
53762         * modules/xsize (License): Likewise.
53763
53764 2007-07-13  Bruno Haible  <bruno@clisp.org>
53765
53766         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
53767         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
53768
53769 2007-07-12  Bruno Haible  <bruno@clisp.org>
53770
53771         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
53772         in the modules files.
53773
53774 2007-07-11  Karl Berry  <karl@gnu.org>
53775
53776         * MODULES.html.sh (func_module): use
53777          sed -e '\|^'"${includefile}"'$|d'
53778          instead of /.../d, to avoid errors on $includefile's containing /.
53779
53780 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
53781
53782         * gnulib-tool (func_import): Avoid duplication of --avoid
53783         statements
53784         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
53785         names to `_' in variable names.
53786
53787 2007-07-10  Eric Blake  <ebb9@byu.net>
53788
53789         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
53790         * NEWS: Document this change.
53791
53792 2007-07-08  Bruno Haible  <bruno@clisp.org>
53793
53794         Update to Unicode 5.0.
53795         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
53796         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
53797         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
53798         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
53799         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
53800         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
53801         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
53802         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
53803         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
53804         U+10A3F, U+1D242..U+1D244.
53805         (nonspacing_table_ind): Update.
53806         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
53807         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
53808
53809 2007-07-08  Bruno Haible  <bruno@clisp.org>
53810
53811         Update to Unicode 5.0.
53812         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
53813         code transform. Extend the name index field of unicode_name_to_code and
53814         unicode_code_to_name from 16 to 24 bits.
53815         * lib/uniname/uniname.c (unicode_character_name,
53816         unicode_name_character): Add the range 0x12xxx to the code transform.
53817         * lib/uniname/uninames.h: Regenerated.
53818         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
53819
53820 2007-07-07  Bruno Haible  <bruno@clisp.org>
53821
53822         * modules/wcwidth-tests: New file.
53823         * tests/test-wcwidth.c: New file.
53824
53825         Work around MacOS X wcwidth() bug.
53826         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
53827         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
53828         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
53829         original wcwidth in non-UTF-8 locales.
53830         * modules/wcwidth (Depends-on): Add localcharset, streq,
53831         uniwidth/width.
53832         * doc/functions/wcwidth.texi: Update.
53833
53834 2007-07-07  Bruno Haible  <bruno@clisp.org>
53835
53836         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
53837         (wcwidth): New declaration.
53838         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
53839         macros.
53840         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
53841         here. Prepare for creating <wchar.h> unconditionally.
53842         * modules/wchar (Depends-on): Add link-warning.
53843         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
53844         REPLACE_WCWIDTH, and GL_LINK_WARNING.
53845         * lib/wcwidth.h: Remove file.
53846         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
53847         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
53848         * modules/wcwidth (Files): Remove lib/wcwidth.h.
53849         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
53850         (Include): Replace wcwidth.h with <wchar.h>.
53851         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
53852         * lib/mbchar.h: Don't include wcwidth.h.
53853         * lib/mbswidth.c: Likewise.
53854         * NEWS: Mention the change.
53855
53856 2007-07-07  Bruno Haible  <bruno@clisp.org>
53857
53858         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
53859         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
53860         definition with an external declaration.
53861         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
53862         defined as a function. Remove AC_C_INLINE requirement.
53863         * modules/wcwidth (Files): Add lib/wcwidth.c.
53864         (Makefile.am): Remove redundant statement.
53865
53866 2007-07-07  Bruno Haible  <bruno@clisp.org>
53867
53868         * MODULES.html.sh (Unicode string functions): Add the new modules.
53869
53870         * tests/uniwidth/test-u32-strwidth.c: New file.
53871         * modules/uniwidth/u32-strwidth-tests: New file.
53872
53873         * lib/uniwidth/u32-strwidth.c: New file.
53874         * modules/uniwidth/u32-strwidth: New file.
53875
53876         * tests/uniwidth/test-u16-strwidth.c: New file.
53877         * modules/uniwidth/u16-strwidth-tests: New file.
53878
53879         * lib/uniwidth/u16-strwidth.c: New file.
53880         * modules/uniwidth/u16-strwidth: New file.
53881
53882         * tests/uniwidth/test-u8-strwidth.c: New file.
53883         * modules/uniwidth/u8-strwidth-tests: New file.
53884
53885         * lib/uniwidth/u8-strwidth.c: New file.
53886         * modules/uniwidth/u8-strwidth: New file.
53887
53888         * tests/uniwidth/test-u32-width.c: New file.
53889         * modules/uniwidth/u32-width-tests: New file.
53890
53891         * lib/uniwidth/u32-width.c: New file.
53892         * modules/uniwidth/u32-width: New file.
53893
53894         * tests/uniwidth/test-u16-width.c: New file.
53895         * modules/uniwidth/u16-width-tests: New file.
53896
53897         * lib/uniwidth/u16-width.c: New file.
53898         * modules/uniwidth/u16-width: New file.
53899
53900         * tests/uniwidth/test-u8-width.c: New file.
53901         * modules/uniwidth/u8-width-tests: New file.
53902
53903         * lib/uniwidth/u8-width.c: New file.
53904         * modules/uniwidth/u8-width: New file.
53905
53906         * tests/uniwidth/test-uc_width.c: New file.
53907         * modules/uniwidth/width-tests: New file.
53908
53909         * lib/uniwidth/width.c: New file, from GNU libiconv.
53910         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
53911         * modules/uniwidth/width: New file.
53912
53913         * lib/uniwidth.h: New file, from GNU libiconv.
53914         * modules/uniwidth/base: New file.
53915
53916 2007-07-07  Bruno Haible  <bruno@clisp.org>
53917
53918         * lib/uniname.h: New file, from GNU gettext.
53919         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
53920         * lib/uniname/uninames.h: New file, from GNU gettext.
53921         * lib/uniname/uniname.c: New file, from GNU gettext.
53922         * tests/uniname/test-uninames.sh: New file.
53923         * tests/uniname/test-uninames.c: New file, from GNU gettext.
53924         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
53925         * modules/uniname/base: New file.
53926         * modules/uniname/uniname: New file.
53927         * modules/uniname/uniname-tests: New file.
53928         * MODULES.html.sh (Unicode string functions): Add the new modules.
53929
53930 2007-07-06  Bruno Haible  <bruno@clisp.org>
53931
53932         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
53933
53934 2007-07-06  Bruno Haible  <bruno@clisp.org>
53935
53936         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
53937         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
53938         includes <cygwin/sys_time.h> which includes <sys/select.h> which
53939         include <sys/time.h>.
53940         Reported by Eric Blake.
53941
53942 2007-07-06  Eric Blake  <ebb9@byu.net>
53943
53944         Fix testing canonicalize on cygwin.
53945         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
53946         Revert patch from 2007-06-19.
53947         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
53948         canonicalize module is also in use.
53949         * tests/test-canonicalize.c: New file.
53950         * tests/test-canonicalize.sh: Likewise.
53951         * modules/canonicalize-tests: Likewise.
53952
53953 2007-07-06  Jim Meyering  <jim@meyering.net>
53954
53955         * lib/getugroups.c (getugroups): Detect getgrent failure.
53956         Adjust comment to reflect reality: this function may return -1.
53957
53958 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
53959
53960         * build-aux/bootstrap (TP_URL,get_translations): Update to use
53961         the new TP address.
53962         (usage): Fix typo
53963         (gnulib_mk): New variable.
53964
53965 2007-07-05  Jim Meyering  <jim@meyering.net>
53966
53967         Don't let endgrent clobber errno, no matter how improbable.
53968         * lib/getugroups.c (getugroups): Save and restore errno around
53969         endgrent call.
53970
53971         Close the group DB even when failing with 2^31 or more members.
53972         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
53973
53974 2007-07-04  Jim Meyering  <jim@meyering.net>
53975
53976         * lib/getugroups.h: New file.
53977         * lib/getugroups.c: Include "getugroups.h".
53978         Remove uses of "register" keyword.
53979         Move local variable, "cp", down into scope where used.
53980         Give "username" parameter the "const" attribute.
53981         * modules/getugroups (Files): Add lib/getugroups.h
53982
53983 2007-07-04  Karl Berry  <karl@gnu.org>
53984
53985         * MODULES.html.sh (func_all_modules): Complete rename of
53986         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
53987
53988 2007-07-02  Bruno Haible  <bruno@clisp.org>
53989
53990         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
53991         mode, when inttypes.h comes from gnulib.
53992         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
53993
53994 2007-07-02  Simon Josefsson  <simon@josefsson.org>
53995
53996         * NEWS: Mention lgpl module name change.
53997
53998         * modules/lgpl-2.1: Renamed from lgpl.
53999
54000         * NEWS: Mention gpl module name change.
54001
54002         * modules/gpl-3.0: New file, based on gpl-2.0.
54003
54004         * modules/gpl-2.0: Renamed from gpl.
54005
54006         * modules/gpl: Fix filename, doc/gpl.texi is now found at
54007         doc/gpl-2.0.texi.
54008
54009 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
54010
54011         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
54012         #define __STDC_LIMIT_MACROS temporarily while including
54013         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
54014         Problem reported by Joel E. Denny in
54015         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
54016
54017 2007-07-01  Bruno Haible  <bruno@clisp.org>
54018
54019         * lib/unistdio.h: New file.
54020         * lib/unistdio/u-asnprintf.h: New file.
54021         * lib/unistdio/u-asprintf.h: New file.
54022         * lib/unistdio/u-printf-args.c: New file.
54023         * lib/unistdio/u-printf-args.h: New file.
54024         * lib/unistdio/u-printf-parse.h: New file.
54025         * lib/unistdio/u-snprintf.h: New file.
54026         * lib/unistdio/u-sprintf.h: New file.
54027         * lib/unistdio/u-vasprintf.h: New file.
54028         * lib/unistdio/u-vsnprintf.h: New file.
54029         * lib/unistdio/u-vsprintf.h: New file.
54030         * lib/unistdio/ulc-asnprintf.c: New file.
54031         * lib/unistdio/ulc-asprintf.c: New file.
54032         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
54033         * lib/unistdio/ulc-printf-parse.c: New file.
54034         * lib/unistdio/ulc-snprintf.c: New file.
54035         * lib/unistdio/ulc-sprintf.c: New file.
54036         * lib/unistdio/ulc-vasnprintf.c: New file.
54037         * lib/unistdio/ulc-vasprintf.c: New file.
54038         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
54039         * lib/unistdio/ulc-vsnprintf.c: New file.
54040         * lib/unistdio/ulc-vsprintf.c: New file.
54041         * lib/unistdio/u8-asnprintf.c: New file.
54042         * lib/unistdio/u8-asprintf.c: New file.
54043         * lib/unistdio/u8-printf-parse.c: New file.
54044         * lib/unistdio/u8-snprintf.c: New file.
54045         * lib/unistdio/u8-sprintf.c: New file.
54046         * lib/unistdio/u8-vasnprintf.c: New file.
54047         * lib/unistdio/u8-vasprintf.c: New file.
54048         * lib/unistdio/u8-vsnprintf.c: New file.
54049         * lib/unistdio/u8-vsprintf.c: New file.
54050         * lib/unistdio/u8-u8-asnprintf.c: New file.
54051         * lib/unistdio/u8-u8-asprintf.c: New file.
54052         * lib/unistdio/u8-u8-snprintf.c: New file.
54053         * lib/unistdio/u8-u8-sprintf.c: New file.
54054         * lib/unistdio/u8-u8-vasnprintf.c: New file.
54055         * lib/unistdio/u8-u8-vasprintf.c: New file.
54056         * lib/unistdio/u8-u8-vsnprintf.c: New file.
54057         * lib/unistdio/u8-u8-vsprintf.c: New file.
54058         * lib/unistdio/u16-asnprintf.c: New file.
54059         * lib/unistdio/u16-asprintf.c: New file.
54060         * lib/unistdio/u16-printf-parse.c: New file.
54061         * lib/unistdio/u16-snprintf.c: New file.
54062         * lib/unistdio/u16-sprintf.c: New file.
54063         * lib/unistdio/u16-vasnprintf.c: New file.
54064         * lib/unistdio/u16-vasprintf.c: New file.
54065         * lib/unistdio/u16-vsnprintf.c: New file.
54066         * lib/unistdio/u16-vsprintf.c: New file.
54067         * lib/unistdio/u16-u16-asnprintf.c: New file.
54068         * lib/unistdio/u16-u16-asprintf.c: New file.
54069         * lib/unistdio/u16-u16-snprintf.c: New file.
54070         * lib/unistdio/u16-u16-sprintf.c: New file.
54071         * lib/unistdio/u16-u16-vasnprintf.c: New file.
54072         * lib/unistdio/u16-u16-vasprintf.c: New file.
54073         * lib/unistdio/u16-u16-vsnprintf.c: New file.
54074         * lib/unistdio/u16-u16-vsprintf.c: New file.
54075         * lib/unistdio/u32-asnprintf.c: New file.
54076         * lib/unistdio/u32-asprintf.c: New file.
54077         * lib/unistdio/u32-printf-parse.c: New file.
54078         * lib/unistdio/u32-snprintf.c: New file.
54079         * lib/unistdio/u32-sprintf.c: New file.
54080         * lib/unistdio/u32-vasnprintf.c: New file.
54081         * lib/unistdio/u32-vasprintf.c: New file.
54082         * lib/unistdio/u32-vsnprintf.c: New file.
54083         * lib/unistdio/u32-vsprintf.c: New file.
54084         * lib/unistdio/u32-u32-asnprintf.c: New file.
54085         * lib/unistdio/u32-u32-asprintf.c: New file.
54086         * lib/unistdio/u32-u32-snprintf.c: New file.
54087         * lib/unistdio/u32-u32-sprintf.c: New file.
54088         * lib/unistdio/u32-u32-vasnprintf.c: New file.
54089         * lib/unistdio/u32-u32-vasprintf.c: New file.
54090         * lib/unistdio/u32-u32-vsnprintf.c: New file.
54091         * lib/unistdio/u32-u32-vsprintf.c: New file.
54092         * tests/unistdio/test-ulc-asnprintf1.c: New file.
54093         * tests/unistdio/test-ulc-asnprintf1.h: New file.
54094         * tests/unistdio/test-ulc-printf1.h: New file.
54095         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
54096         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
54097         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
54098         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
54099         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
54100         * tests/unistdio/test-ulc-vasprintf1.c: New file.
54101         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
54102         * tests/unistdio/test-ulc-vsprintf1.c: New file.
54103         * tests/unistdio/test-u8-asnprintf1.c: New file.
54104         * tests/unistdio/test-u8-asnprintf1.h: New file.
54105         * tests/unistdio/test-u8-printf1.h: New file.
54106         * tests/unistdio/test-u8-vasnprintf1.c: New file.
54107         * tests/unistdio/test-u8-vasnprintf2.c: New file.
54108         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
54109         * tests/unistdio/test-u8-vasnprintf3.c: New file.
54110         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
54111         * tests/unistdio/test-u8-vasprintf1.c: New file.
54112         * tests/unistdio/test-u8-vsnprintf1.c: New file.
54113         * tests/unistdio/test-u8-vsprintf1.c: New file.
54114         * tests/unistdio/test-u16-asnprintf1.c: New file.
54115         * tests/unistdio/test-u16-asnprintf1.h: New file.
54116         * tests/unistdio/test-u16-printf1.h: New file.
54117         * tests/unistdio/test-u16-vasnprintf1.c: New file.
54118         * tests/unistdio/test-u16-vasnprintf2.c: New file.
54119         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
54120         * tests/unistdio/test-u16-vasnprintf3.c: New file.
54121         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
54122         * tests/unistdio/test-u16-vasprintf1.c: New file.
54123         * tests/unistdio/test-u16-vsnprintf1.c: New file.
54124         * tests/unistdio/test-u16-vsprintf1.c: New file.
54125         * tests/unistdio/test-u32-asnprintf1.c: New file.
54126         * tests/unistdio/test-u32-asnprintf1.h: New file.
54127         * tests/unistdio/test-u32-printf1.h: New file.
54128         * tests/unistdio/test-u32-vasnprintf1.c: New file.
54129         * tests/unistdio/test-u32-vasnprintf2.c: New file.
54130         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
54131         * tests/unistdio/test-u32-vasnprintf3.c: New file.
54132         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
54133         * tests/unistdio/test-u32-vasprintf1.c: New file.
54134         * tests/unistdio/test-u32-vsnprintf1.c: New file.
54135         * tests/unistdio/test-u32-vsprintf1.c: New file.
54136         * modules/unistdio/base: New file.
54137         * modules/unistdio/u-printf-args: New file.
54138         * modules/unistdio/ulc-asnprintf: New file.
54139         * modules/unistdio/ulc-asprintf: New file.
54140         * modules/unistdio/ulc-fprintf: New file.
54141         * modules/unistdio/ulc-printf-parse: New file.
54142         * modules/unistdio/ulc-snprintf: New file.
54143         * modules/unistdio/ulc-sprintf: New file.
54144         * modules/unistdio/ulc-vasnprintf: New file.
54145         * modules/unistdio/ulc-vasprintf: New file.
54146         * modules/unistdio/ulc-vfprintf: New file.
54147         * modules/unistdio/ulc-vsnprintf: New file.
54148         * modules/unistdio/ulc-vsprintf: New file.
54149         * modules/unistdio/u8-asnprintf: New file.
54150         * modules/unistdio/u8-asprintf: New file.
54151         * modules/unistdio/u8-printf-parse: New file.
54152         * modules/unistdio/u8-snprintf: New file.
54153         * modules/unistdio/u8-sprintf: New file.
54154         * modules/unistdio/u8-vasnprintf: New file.
54155         * modules/unistdio/u8-vasprintf: New file.
54156         * modules/unistdio/u8-vsnprintf: New file.
54157         * modules/unistdio/u8-vsprintf: New file.
54158         * modules/unistdio/u8-u8-asnprintf: New file.
54159         * modules/unistdio/u8-u8-asprintf: New file.
54160         * modules/unistdio/u8-u8-snprintf: New file.
54161         * modules/unistdio/u8-u8-sprintf: New file.
54162         * modules/unistdio/u8-u8-vasnprintf: New file.
54163         * modules/unistdio/u8-u8-vasprintf: New file.
54164         * modules/unistdio/u8-u8-vsnprintf: New file.
54165         * modules/unistdio/u8-u8-vsprintf: New file.
54166         * modules/unistdio/u16-asnprintf: New file.
54167         * modules/unistdio/u16-asprintf: New file.
54168         * modules/unistdio/u16-printf-parse: New file.
54169         * modules/unistdio/u16-snprintf: New file.
54170         * modules/unistdio/u16-sprintf: New file.
54171         * modules/unistdio/u16-vasnprintf: New file.
54172         * modules/unistdio/u16-vasprintf: New file.
54173         * modules/unistdio/u16-vsnprintf: New file.
54174         * modules/unistdio/u16-vsprintf: New file.
54175         * modules/unistdio/u16-u16-asnprintf: New file.
54176         * modules/unistdio/u16-u16-asprintf: New file.
54177         * modules/unistdio/u16-u16-snprintf: New file.
54178         * modules/unistdio/u16-u16-sprintf: New file.
54179         * modules/unistdio/u16-u16-vasnprintf: New file.
54180         * modules/unistdio/u16-u16-vasprintf: New file.
54181         * modules/unistdio/u16-u16-vsnprintf: New file.
54182         * modules/unistdio/u16-u16-vsprintf: New file.
54183         * modules/unistdio/u32-asnprintf: New file.
54184         * modules/unistdio/u32-asprintf: New file.
54185         * modules/unistdio/u32-printf-parse: New file.
54186         * modules/unistdio/u32-snprintf: New file.
54187         * modules/unistdio/u32-sprintf: New file.
54188         * modules/unistdio/u32-vasnprintf: New file.
54189         * modules/unistdio/u32-vasprintf: New file.
54190         * modules/unistdio/u32-vsnprintf: New file.
54191         * modules/unistdio/u32-vsprintf: New file.
54192         * modules/unistdio/u32-u32-asnprintf: New file.
54193         * modules/unistdio/u32-u32-asprintf: New file.
54194         * modules/unistdio/u32-u32-snprintf: New file.
54195         * modules/unistdio/u32-u32-sprintf: New file.
54196         * modules/unistdio/u32-u32-vasnprintf: New file.
54197         * modules/unistdio/u32-u32-vasprintf: New file.
54198         * modules/unistdio/u32-u32-vsnprintf: New file.
54199         * modules/unistdio/u32-u32-vsprintf: New file.
54200         * modules/unistdio/ulc-asnprintf-tests: New file.
54201         * modules/unistdio/ulc-vasnprintf-tests: New file.
54202         * modules/unistdio/ulc-vasprintf-tests: New file.
54203         * modules/unistdio/ulc-vsnprintf-tests: New file.
54204         * modules/unistdio/ulc-vsprintf-tests: New file.
54205         * modules/unistdio/u8-asnprintf-tests: New file.
54206         * modules/unistdio/u8-vasnprintf-tests: New file.
54207         * modules/unistdio/u8-vasprintf-tests: New file.
54208         * modules/unistdio/u8-vsnprintf-tests: New file.
54209         * modules/unistdio/u8-vsprintf-tests: New file.
54210         * modules/unistdio/u16-asnprintf-tests: New file.
54211         * modules/unistdio/u16-vasnprintf-tests: New file.
54212         * modules/unistdio/u16-vasprintf-tests: New file.
54213         * modules/unistdio/u16-vsnprintf-tests: New file.
54214         * modules/unistdio/u16-vsprintf-tests: New file.
54215         * modules/unistdio/u32-asnprintf-tests: New file.
54216         * modules/unistdio/u32-vasnprintf-tests: New file.
54217         * modules/unistdio/u32-vasprintf-tests: New file.
54218         * modules/unistdio/u32-vsnprintf-tests: New file.
54219         * modules/unistdio/u32-vsprintf-tests: New file.
54220         * MODULES.html.sh (Unicode string functions): Add the new modules.
54221
54222 2007-07-01  Bruno Haible  <bruno@clisp.org>
54223
54224         * lib/sprintf.c (sprintf): Limit the available length estimation,
54225         to avoid address wraparound.
54226         * lib/vsprintf.c (vsprintf): Likewise.
54227         * modules/sprintf-posix (Dependencies): Add stdint.
54228         * modules/vsprintf-posix (Dependencies): Likewise.
54229
54230 2007-07-01  Bruno Haible  <bruno@clisp.org>
54231
54232         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
54233         Windows PATH as well. Conservative double-quoting. Comments.
54234
54235 2007-07-01  Bruno Haible  <bruno@clisp.org>
54236             Eric Blake  <ebb9@byu.net>
54237             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54238
54239         * gnulib-tool (self_abspathname): Fix algorithm to cope with
54240         empty components in $PATH, denoting '.'.
54241
54242 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54243
54244         * gnulib-tool: Fix indentation.
54245         (func_create_megatestdir): Likewise.
54246         Report by Bruno Haible.
54247
54248 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54249
54250         Sync from Automake.
54251         * build-aux/gnupload: Fix shell portability issues with for loops.
54252         Report by Karl Berry.
54253
54254 2007-06-29  Simon Josefsson  <simon@josefsson.org>
54255
54256         * build-aux/maint.mk (POURL): Use translationproject.org.
54257
54258 2007-06-27  Simon Josefsson  <simon@josefsson.org>
54259             Bruno Haible  <bruno@clisp.org>
54260
54261         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
54262         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
54263         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
54264         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
54265         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
54266
54267 2007-06-27  Bruno Haible  <bruno@clisp.org>
54268
54269         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
54270         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
54271
54272 2007-06-26  Karl Berry  <karl@gnu.org>
54273
54274         * MODULES.html.sh: remove xreadlink-with-size.
54275
54276 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54277
54278         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
54279         method that I hope also handles the double-include problem noted
54280         by Bruno Haible in
54281         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
54282
54283 2007-06-23  Bruno Haible  <bruno@clisp.org>
54284
54285         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
54286         Don't let the 'mostlyclean' target fail if the last subdirectory could
54287         not be removed.
54288         Reported by Karl Berry.
54289
54290 2007-06-23  Bruno Haible  <bruno@clisp.org>
54291
54292         * gnulib-tool (echo): Add a speedier workaround for ksh.
54293         * tests/test-echo.sh: Likewise.
54294
54295 2007-06-23  Bruno Haible  <bruno@clisp.org>
54296
54297         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
54298         * tests/test-echo.sh: Likewise.
54299
54300 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54301
54302         * gnulib-tool (IFS): Initialize early, so we don't set it to
54303         empty later.
54304         (self_abspathname): Rewrite algorithm to set it, reindent.
54305         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
54306         (func_create_megatestdir): Merge some sed scripts.
54307
54308 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
54309
54310         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
54311         exposed by Sun Studio 11 cc on Solaris 8.
54312
54313 2007-06-22  Bruno Haible  <bruno@clisp.org>
54314
54315         * gnulib-tool (echo): Ensure the echo primitive does not interpret
54316         backslashes.
54317         * tests/test-echo.sh: New file.
54318
54319 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54320
54321         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
54322         simplify `sed_replace_build_aux' scripts, they are portable but
54323         echoing them with `echo' is not.
54324         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
54325
54326 2007-06-21  Karl Berry  <karl@gnu.org>
54327
54328         * config/srclist.txt: guess we can't handle the licenses via
54329         srclist at the moment.
54330
54331 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
54332
54333         * MODULES.html.sh: Add include_next.
54334         * modules/include_next: New file.
54335
54336 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
54337
54338         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
54339         INCLUDE_NEXT.
54340         (gl_CHECK_NEXT_HEADERS): New macro.
54341         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
54342         the obsolescent gl_ABSOLUTE_HEADER.
54343         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
54344         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
54345         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
54346         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
54347         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
54348         * m4/math_h.m4 (gl_MATH_H): Likewise.
54349         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
54350         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
54351         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
54352         * m4/stdint.m4 (gl_STDINT_H): Likewise.
54353         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
54354         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
54355         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
54356         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54357         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
54358         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
54359         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
54360         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
54361         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
54362         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
54363         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
54364         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
54365         * m4/inttypes.m4 (gl_INTTYPES_H): Define
54366         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
54367         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
54368         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
54369         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
54370         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
54371         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
54372         * lib/float_.h: Likewise.
54373         * lib/inttypes_.h: Likewise.
54374         * lib/math_.h: Likewise.
54375         * lib/search_.h: Likewise.
54376         * lib/signal_.h: Likewise.
54377         * lib/stdint_.h: Likewise.
54378         * lib/stdio_.h: Likewise.
54379         * lib/stdlib_.h: Likewise.
54380         * lib/string_.h: Likewise.
54381         * lib/sys_stat_.h: Likewise.
54382         * lib/sys_time_.h: Likewise.
54383         * lib/time_.h: Likewise.
54384         * lib/unistd_.h: Likewise.
54385         * lib/wchar_.h: Likewise.
54386         * lib/wctype_.h: Likewise.
54387         * lib/dirent_.h: Likewise.
54388         * lib/iconv_.h: Likewise.
54389         * lib/locale_.h: Likewise.
54390         * lib/netinet_in_.h: Likewise.
54391         * lib/sys_select_.h: Likewise.
54392         * lib/sys_socket_.h: Likewise.
54393         * lib/sysexits_.h: Likewise.
54394         * modules/fcntl (Depends-on): Depend on include_next, not
54395         absolute_header.
54396         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
54397         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
54398         * modules/fchdir: Likewise.
54399         * modules/float: Likewise.
54400         * modules/iconv_open: Likewise.
54401         * modules/inttypes: Likewise.
54402         * modules/locale: Likewise.
54403         * modules/math: Likewise.
54404         * modules/netinet_in: Likewise.
54405         * modules/search: Likewise.
54406         * modules/signal: Likewise.
54407         * modules/stdint: Likewise.
54408         * modules/stdio: Likewise.
54409         * modules/stdlib: Likewise.
54410         * modules/string: Likewise.
54411         * modules/sys_select: Likewise.
54412         * modules/sys_socket: Likewise.
54413         * modules/sys_stat: Likewise.
54414         * modules/sys_time: Likewise.
54415         * modules/sysexits: Likewise.
54416         * modules/time: Likewise.
54417         * modules/unistd: Likewise.
54418         * modules/wchar: Likewise.
54419         * modules/wctype: Likewise.
54420         * modules/sys_stat: Change maintainer to "all".
54421         * modules/unistd: Likewise.
54422
54423 2007-06-20  Karl Berry  <karl@gnu.org>
54424
54425         * config/srclist.txt: track www changes in license files.
54426
54427 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
54428
54429         * build-aux/bootstrap: Remove stray dot.
54430         Make sure build_aux settings are honored when linking
54431         gnulib_extra_files.
54432
54433 2007-06-19  Eric Blake  <ebb9@byu.net>
54434
54435         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
54436         Allow compilation on cygwin.
54437
54438 2007-06-19  Jim Meyering  <jim@meyering.net>
54439
54440         xreadlink-with-size: Remove module.  No longer used.
54441         Ex-callers now use xreadlink or mreadlink-with-size.
54442         * modules/xreadlink-with-size: Remove module.
54443         * lib/xreadlink-with-size.c: Remove file.
54444         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
54445         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
54446         just before the function definition *is* accurate.
54447
54448         Eliminate one way canonicalize_filename_mode could exit.
54449         * lib/canonicalize.c (canonicalize_filename_mode):
54450         Use mreadlink_with_size, not xreadlink_with_size.
54451
54452 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
54453
54454         Detect porting problems to FreeBSD/arm, which has time_t wider than
54455         long int.  Original problem reported for GNU diff by Xin Li in
54456         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
54457         * modules/getdate (Depends-on): Add intprops, verify.
54458         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
54459         is an integer type no wider than long int.
54460
54461 2007-06-18  Jim Meyering  <jim@meyering.net>
54462
54463         New module: mreadlink-with-size.
54464         * MODULES.html.sh: Add mreadlink-with-size.
54465         * modules/mreadlink-with-size: New module
54466         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
54467         not xreadlink-with-size.
54468         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
54469
54470 2007-06-16  Bruno Haible  <bruno@clisp.org>
54471
54472         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
54473         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
54474         Reported by Gary V. Vaughan <gary@gnu.org>.
54475
54476 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54477
54478         Revamp lchown so that it lives in unistd.h where it belongs.
54479         * lib/lchown.h: Remove.
54480         * lib/dirchownmod.c: Don't include lib/lchown.h.
54481         * lib/fchownat.c: Likewise.
54482         * lib/openat.c: Likewise.
54483         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
54484         does not follow symlinks.
54485         (EOPNOTSUPP): Define if not defined.
54486         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
54487         is defined to 0.
54488         (lchown): New decl.
54489         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
54490         Do not check for lchown decl.
54491         Set REPLACE_LCHOWN.
54492         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
54493         REPLACE_LCHOWN.
54494         * modules/chown: Make it clear it follows symlinks.
54495         * modules/lchown: Make it clear it doesn't follow symlinks.
54496         (Files): Remove lib/lchown.h
54497         (Depends-on): Add unistd.
54498         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
54499         (Include): Include <unistd.h>, not "lchown.h".
54500         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
54501         REPLACE_LCHOWN.
54502
54503 2007-06-15  Jim Meyering  <jim@meyering.net>
54504
54505         Change license (GPL to LGPL) of fsusage and dependents.
54506         * modules/fsusage (License): Change to LGPL.
54507         * modules/full-read (License): Likewise.
54508         * modules/full-write (License): Likewise.
54509         * modules/safe-read (License): Likewise.
54510         * modules/safe-write (License): Likewise.
54511
54512 2007-06-14  Ben Pfaff  <blp@gnu.org>
54513
54514         Missing part of allocsa -> malloca transition.
54515         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
54516         gl_MALLOCA.
54517
54518 2007-06-12  Bruno Haible  <bruno@clisp.org>
54519
54520         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
54521         to ia64, x86_64, i386.
54522         Reported by Eric Blake.
54523
54524 2007-06-12  Bruno Haible  <bruno@clisp.org>
54525
54526         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
54527         cross-compiling to x86_64.
54528
54529 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
54530
54531         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
54532         glitch reported by Ralf Wildenhues in
54533         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
54534
54535         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
54536         Vin Shelton.
54537
54538 2007-06-11  Bruno Haible  <bruno@clisp.org>
54539
54540         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
54541         replacement string.
54542         Reported by Eric Blake.
54543
54544 2007-06-10  Bruno Haible  <bruno@clisp.org>
54545
54546         Prepare vasnprintf code for use with Unicode strings.
54547         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
54548         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
54549         TYPE_U32_STRING.
54550         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
54551         a_u32_string variants.
54552         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54553         * lib/printf-args.c: Don't include config.h and the specification
54554         header if PRINTF_FETCHARGS is already defined.
54555         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
54556         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
54557         TYPE_U16_STRING, TYPE_U32_STRING.
54558         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
54559         u16_directive, u16_directives, u32_directive, u32_directives): New
54560         types.
54561         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
54562         New declarations.
54563         * lib/printf-parse.c: Don't include config.h and the specification
54564         header if PRINTF_PARSE is already defined. Eliminate the set of
54565         parameters for WIDE_CHAR_VERSION; the user of this file must provide
54566         them now. Include c-ctype.h.
54567         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
54568         directive and CHAR_T_ONLY_ASCII.
54569         * lib/vasnprintf.c: Don't include config.h and the specification header
54570         if VASNPRINTF is already defined.
54571         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
54572         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
54573         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
54574         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
54575         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
54576         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
54577         code accordingly.
54578         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
54579         pad_ourselves also in this case, with the 'c' and 's' directives, and
54580         with a different notion of "width".
54581         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
54582
54583 2007-06-10  Bruno Haible  <bruno@clisp.org>
54584
54585         * modules/unistr/u32-mbsnlen: New file.
54586         * lib/unistr/u32-mbsnlen.c: New file.
54587
54588         * modules/unistr/u16-mbsnlen: New file.
54589         * lib/unistr/u16-mbsnlen.c: New file.
54590
54591         * modules/unistr/u8-mbsnlen: New file.
54592         * lib/unistr/u8-mbsnlen.c: New file.
54593
54594         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
54595         declarations.
54596
54597 2007-06-10  Bruno Haible  <bruno@clisp.org>
54598
54599         * lib/string_.h (mbsnlen): New declaration.
54600         * lib/mbsnlen.c: New file.
54601         * m4/mbsnlen.m4: New file.
54602         * modules/mbsnlen: New file.
54603         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
54604         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
54605         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
54606
54607 2007-06-10  Bruno Haible  <bruno@clisp.org>
54608
54609         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
54610
54611 2007-06-10  Bruno Haible  <bruno@clisp.org>
54612
54613         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
54614         * lib/mbuiter.h: Likewise.
54615
54616 2007-06-10  Bruno Haible  <bruno@clisp.org>
54617
54618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
54619         declaration.
54620
54621 2007-06-10  Karl Berry  <karl@gnu.org>
54622
54623         * config/srclist.txt: remove gettext entries, Bruno prefers
54624         to update individually.
54625
54626 2007-06-10  Bruno Haible  <bruno@clisp.org>
54627
54628         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
54629         'maxlen'. Ensure only length + width bytes are allocated, not
54630         length + 1 + width.
54631
54632 2007-06-09  Bruno Haible  <bruno@clisp.org>
54633
54634         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
54635         (CHAR_T): Remove macro.
54636         (VASNPRINTF): Update.
54637
54638 2007-06-09  Bruno Haible  <bruno@clisp.org>
54639
54640         * MODULES.html.sh (Unicode string functions): Add the new modules.
54641
54642         * modules/uniconv/u32-conv-to-enc: New file.
54643         * lib/uniconv/u32-conv-to-enc.c: New file.
54644         * modules/uniconv/u32-conv-to-enc-tests: New file.
54645         * tests/uniconv/test-u32-conv-to-enc.c: New file.
54646
54647         * modules/uniconv/u16-conv-to-enc: New file.
54648         * lib/uniconv/u16-conv-to-enc.c: New file.
54649         * lib/uniconv/u-conv-to-enc.h: New file.
54650         * modules/uniconv/u16-conv-to-enc-tests: New file.
54651         * tests/uniconv/test-u16-conv-to-enc.c: New file.
54652
54653         * modules/uniconv/u8-conv-to-enc: New file.
54654         * lib/uniconv/u8-conv-to-enc.c: New file.
54655         * modules/uniconv/u8-conv-to-enc-tests: New file.
54656         * tests/uniconv/test-u8-conv-to-enc.c: New file.
54657
54658         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
54659         u32_conv_to_encoding): New declarations.
54660
54661 2007-06-09  Bruno Haible  <bruno@clisp.org>
54662
54663         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
54664
54665 2007-06-09  Bruno Haible  <bruno@clisp.org>
54666
54667         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
54668         * modules/malloca: Renamed from modules/allocsa, updated.
54669         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
54670         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
54671         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
54672         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
54673         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
54674         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
54675         * modules/xmalloca: Renamed from modules/xallocsa, updated.
54676         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
54677         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
54678         * modules/c-strcasestr (Depends-on): Update.
54679         * lib/c-strcasestr.c: Update.
54680         * modules/c-strstr (Depends-on): Update.
54681         * lib/c-strstr.c: Update.
54682         * modules/canonicalize-lgpl (Depends-on): Update.
54683         * lib/canonicalize-lgpl.c: Update.
54684         * modules/clean-temp (Depends-on): Update.
54685         * lib/clean-temp.c: Update.
54686         * modules/csharpcomp (Depends-on): Update.
54687         * lib/csharpcomp.c: Update.
54688         * modules/csharpexec (Depends-on): Update.
54689         * lib/csharpexec.c: Update.
54690         * modules/javacomp (Depends-on): Update.
54691         * lib/javacomp.c: Update.
54692         * modules/javaexec (Depends-on): Update.
54693         * lib/javaexec.c: Update.
54694         * modules/mbscasestr (Depends-on): Update.
54695         * lib/mbscasestr.c: Update.
54696         * modules/mbsstr (Depends-on): Update.
54697         * lib/mbsstr.c: Update.
54698         * modules/setenv (Depends-on): Update.
54699         * lib/setenv.c: Update.
54700         * modules/strcasestr (Depends-on): Update.
54701         * lib/strcasestr.c: Update.
54702         * modules/striconveha (Depends-on): Update.
54703         * lib/striconveha.c: Update.
54704         * modules/relocatable-prog-wrapper (Files): Update.
54705         * lib/relocwrapper.c: Update.
54706         * build-aux/install-reloc: Update.
54707         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
54708
54709 2007-06-08  Bruno Haible  <bruno@clisp.org>
54710
54711         Port to uClibc.
54712         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
54713         * lib/fpurge.c (fpurge): Likewise.
54714         * lib/freading.c (freading): Likewise.
54715         * lib/fseeko.c (rpl_fseeko): Likewise.
54716         * lib/fseterr.c (fseterr): Likewise.
54717         * lib/fwriting.c (fwriting): Likewise.
54718         * tests/test-fflush.c (main): Avoid a failure on uClibc.
54719
54720 2007-06-08  Bruno Haible  <bruno@clisp.org>
54721
54722         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
54723         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
54724         * modules/gettext (Files): Add m4/intlmacosx.m4.
54725
54726 2007-06-07  Bruno Haible  <bruno@clisp.org>
54727
54728         * modules/localename-tests: New file.
54729         * tests/test-localename.c: New file.
54730
54731         New module 'localename'.
54732         * lib/localename.h: New file.
54733         * lib/localename.c: New file, from GNU gettext.
54734         * m4/localename.m4: New file.
54735         * modules/localename: New file.
54736
54737 2007-06-07  Bruno Haible  <bruno@clisp.org>
54738
54739         Work around the lack of <wchar.h> on some builds of uClibc.
54740         * doc/headers/wchar.texi: Update.
54741         * lib/wchar_.h: Include <wchar.h> only if it exists.
54742         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
54743         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
54744         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
54745         doesn't exist.
54746         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
54747         * modules/mbfile (Depends-on): Add wchar.
54748         * modules/mbiter (Depends-on): Likewise.
54749         * modules/mbuiter (Depends-on): Likewise.
54750         Reported by Simon Josefsson.
54751
54752 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
54753
54754         Work around problem reported by Steven M. Schweda in
54755         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
54756         Tru64 5.1B with the Compaq compiler environment installed declares
54757         an 'isblank' function but does not define it in the C library.
54758         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
54759         * lib/regex_internal.h (isblank): Likewise.
54760         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
54761         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
54762
54763 2007-06-05  Bruno Haible  <bruno@clisp.org>
54764
54765         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
54766         ia64.
54767         * modules/printf-safe: New file.
54768         * modules/fprintf-posix (Depends-on): Add printf-safe.
54769         * modules/printf-posix (Depends-on): Likewise.
54770         * modules/snprintf-posix (Depends-on): Likewise.
54771         * modules/sprintf-posix (Depends-on): Likewise.
54772         * modules/vasnprintf-posix (Depends-on): Likewise.
54773         * modules/vasprintf-posix (Depends-on): Likewise.
54774         * modules/vfprintf-posix (Depends-on): Likewise.
54775         * modules/vprintf-posix (Depends-on): Likewise.
54776         * modules/vsnprintf-posix (Depends-on): Likewise.
54777         * modules/vsprintf-posix (Depends-on): Likewise.
54778         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
54779         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
54780         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
54781         "no" on i386, x86_64, ia64.
54782         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
54783         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54784         on i386, x86_64, ia64.
54785         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
54786         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54787         on i386, x86_64, ia64.
54788         * tests/test-vasnprintf-posix.c: Include float.h.
54789         (LDBL80_WORDS): New macro.
54790         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54791         on i386, x86_64, ia64.
54792         * tests/test-vasprintf-posix.c: Include float.h.
54793         (LDBL80_WORDS): New macro.
54794         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
54795         on i386, x86_64, ia64.
54796         * tests/test-snprintf-posix.c: Include float.h.
54797         * tests/test-sprintf-posix.c: Likewise.
54798         * tests/test-vsnprintf-posix.c: Likewise.
54799         * tests/test-vsprintf-posix.c: Likewise.
54800
54801 2007-06-05  Bruno Haible  <bruno@clisp.org>
54802
54803         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
54804         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
54805         non-IEEE numbers on i386, x86_64, ia64.
54806         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
54807         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
54808         * tests/test-isnanl.h: Include float.h.
54809         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
54810
54811 2007-06-05  Bruno Haible  <bruno@clisp.org>
54812
54813         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
54814         also the %a / %A. Handle the %a / %A code before this extra handling.
54815
54816 2007-06-05  Bruno Haible  <bruno@clisp.org>
54817
54818         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
54819         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
54820
54821 2007-06-05  Bruno Haible  <bruno@clisp.org>
54822
54823         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
54824         typo in variable name.
54825
54826 2007-06-05  Eric Blake  <ebb9@byu.net>
54827
54828         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
54829         Reported by Simon Josefsson.
54830
54831 2007-06-04  Bruno Haible  <bruno@clisp.org>
54832
54833         Avoid test failures on some PowerPC platforms.
54834         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
54835         Define differently for PowerPC.
54836         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
54837         Reported by Gary V. Vaughan <gary@gnu.org>.
54838
54839 2007-06-02  Bruno Haible  <bruno@clisp.org>
54840
54841         Fix test-stdint failure on FreeBSD/ia64.
54842         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
54843         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
54844         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
54845         * doc/headers/stdint.texi: Update.
54846
54847 2007-06-01  Bruno Haible  <bruno@clisp.org>
54848
54849         * tests/test-binary-io.c (main): Pass a third argument to open().
54850         Reported by Gary V. Vaughan <gary@gnu.org>.
54851
54852 2007-06-01  Bruno Haible  <bruno@clisp.org>
54853
54854         * doc/functions/frexpl.texi: Update for mingw.
54855
54856 2007-06-01  Bruno Haible  <bruno@clisp.org>
54857
54858         * tests/test-lseek.c (main): Disable test of errno for invalid third
54859         argument.
54860         * doc/functions/lseek.texi: Update.
54861         Reported by Gary V. Vaughan <gary@gnu.org>.
54862
54863 2007-05-28  Bruno Haible  <bruno@clisp.org>
54864
54865         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
54866
54867 2007-05-31  Eric Blake  <ebb9@byu.net>
54868
54869         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
54870         cross compiling.
54871
54872 2007-05-30  Eric Blake  <ebb9@byu.net>
54873         and Bruno Haible  <bruno@clisp.org>
54874
54875         Work around mingw test failures exposed by m4-1.4.9b.
54876         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
54877         * tests/test-unistd.c: Disable uid_t and git_t tests for the
54878         moment.
54879
54880 2007-05-30  Bruno Haible  <bruno@clisp.org>
54881
54882         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
54883         assuming that they are closed. Needed on HP-UX 11.
54884
54885 2007-05-29  Bruno Haible  <bruno@clisp.org>
54886
54887         Fix a problem with #include_next.
54888         * lib/dirent_.h: Split the double-inclusion guard.
54889         * lib/fcntl_.h: Likewise.
54890         * lib/float_.h: Likewise.
54891         * lib/iconv_.h: Likewise.
54892         * lib/inttypes_.h: Likewise.
54893         * lib/locale_.h: Likewise.
54894         * lib/math_.h: Likewise.
54895         * lib/netinet_in_.h: Likewise.
54896         * lib/search_.h: Likewise.
54897         * lib/signal_.h: Likewise.
54898         * lib/stdint_.h: Likewise.
54899         * lib/stdio_.h: Likewise.
54900         * lib/stdlib_.h: Likewise.
54901         * lib/string_.h: Likewise.
54902         * lib/sys_select_.h: Likewise.
54903         * lib/sys_socket_.h: Likewise.
54904         * lib/sys_stat_.h: Likewise.
54905         * lib/sys_time_.h: Likewise.
54906         * lib/sysexits_.h: Likewise.
54907         * lib/time_.h: Likewise.
54908         * lib/unistd_.h: Likewise.
54909         * lib/wchar_.h: Likewise.
54910         * lib/wctype_.h: Likewise.
54911
54912 2007-05-29  Bruno Haible  <bruno@clisp.org>
54913
54914         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
54915         for the moment.
54916
54917 2007-05-29  Bruno Haible  <bruno@clisp.org>
54918
54919         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
54920         invocation.
54921         Reported by Eric Blake.
54922
54923 2007-05-29  Bruno Haible  <bruno@clisp.org>
54924
54925         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
54926         compiling case.
54927
54928 2007-05-29  Eric Blake  <ebb9@byu.net>
54929             Bruno Haible  <bruno@clisp.org>
54930
54931         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
54932         cross compiles.
54933
54934 2007-05-28  Eric Blake  <ebb9@byu.net>
54935
54936         * modules/closein-tests (test_closein_LDADD): Support test on
54937         cygwin with libtool.
54938
54939 2007-05-28  Bruno Haible  <bruno@clisp.org>
54940
54941         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
54942         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
54943         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
54944         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
54945         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
54946         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
54947         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
54948         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
54949         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
54950
54951 2007-05-28  Eric Blake  <ebb9@byu.net>
54952
54953         Unconditionally include <config.h> in unit tests.
54954         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
54955         * tests/test-allocsa.c, tests/test-arcfour.c,
54956         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
54957         tests/test-array_list.c, tests/test-array_oset.c,
54958         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
54959         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
54960         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
54961         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
54962         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
54963         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
54964         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
54965         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
54966         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
54967         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
54968         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
54969         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
54970         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
54971         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
54972         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
54973         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
54974         test-md5.c, test-memmem.c, test-printf-posix.c,
54975         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
54976         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
54977         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
54978         test-strcasestr.c, test-striconv.c, test-striconveh.c,
54979         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
54980         test-vasnprintf-posix2.c, test-vasnprintf.c,
54981         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
54982         test-vfprintf-posix.c, test-vprintf-posix.c,
54983         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
54984         test-xvasprintf.c: Likewise.
54985
54986 2007-05-28  Bruno Haible  <bruno@clisp.org>
54987
54988         * gnulib-tool (func_import): Remember the --with-tests command-line
54989         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
54990         Reported by Eric Blake.
54991
54992 2007-05-28  Bruno Haible  <bruno@clisp.org>
54993
54994         * modules/ftell-tests: New file.
54995         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
54996         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
54997
54998         * lib/ftell.c: New file.
54999         * modules/ftell: New file.
55000         * m4/ftell.m4: New file.
55001         * doc/functions/ftell.texi: Update.
55002         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
55003         REPLACE_FTELL.
55004         * lib/stdio_.h (rpl_ftell): New declaration.
55005         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
55006         REPLACE_FTELL.
55007
55008 2007-05-28  Eric Blake  <ebb9@byu.net>
55009
55010         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
55011
55012 2007-05-28  Bruno Haible  <bruno@clisp.org>
55013
55014         * modules/fseek-tests: New file.
55015         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
55016         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
55017
55018         * lib/fseek.c: New file.
55019         * modules/fseek: New file.
55020         * m4/fseek.m4: New file.
55021         * doc/functions/fseek.texi: Update.
55022         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
55023         REPLACE_FSEEK.
55024         * lib/stdio_.h (rpl_fseek): New declaration.
55025         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
55026         REPLACE_FSEEK.
55027
55028 2007-05-28  Bruno Haible  <bruno@clisp.org>
55029
55030         * lib/stdio_.h (fflush): More comments.
55031
55032 2007-05-28  Bruno Haible  <bruno@clisp.org>
55033
55034         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
55035         runtime test.
55036
55037 2007-05-28  Eric Blake  <ebb9@byu.net>
55038
55039         Improve lseek module.
55040         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
55041         * lib/unistd_.h (lseek): Scale back link warning message.
55042         * tests/test-lseek.c: Beef up test.
55043         * tests/test-lseek.sh: Exercise more facets of lseek.
55044         Reported by Bruno Haible.
55045
55046 2007-05-28  Bruno Haible  <bruno@clisp.org>
55047
55048         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
55049         to define.
55050
55051 2007-05-27  Bruno Haible  <bruno@clisp.org>
55052
55053         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
55054
55055 2007-05-27  Bruno Haible  <bruno@clisp.org>
55056
55057         * modules/openmp: New file.
55058         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
55059         Noah Misch.
55060
55061 2007-05-26  Bruno Haible  <bruno@clisp.org>
55062
55063         * modules/chdir-long (Depends-on): Add fchdir.
55064         * modules/chdir-safer (Depends-on): Likewise.
55065         * modules/fts (Depends-on): Likewise.
55066         * modules/fts-lgpl (Depends-on): Likewise.
55067         * modules/openat (Depends-on): Likewise.
55068         * modules/savewd (Depends-on): Likewise.
55069
55070 2007-05-24  Eric Blake  <ebb9@byu.net>
55071
55072         Fix lseek on mingw.
55073         * modules/lseek: New module.
55074         * m4/lseek.m4: New file.
55075         * lib/lseek.c: New file.
55076         * modules/lseek-tests: New file.
55077         * tests/test-lseek.c: New file.
55078         * tests/test-lseek.sh: New file.
55079         * MODULES.html.sh: Document lseek module.
55080         * modules/fflush (Depends-on): Add lseek, fseeko.
55081         * modules/fseeko (Depends-on): Likewise.
55082         * modules/ftello (Depends-on): Likewise.
55083         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
55084         broken.
55085         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
55086         broken.
55087         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
55088         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
55089         * lib/ftello.c (rpl_ftello): Likewise.
55090         * tests/test-fseeko.c (main): Test this.
55091         * tests/test-fseeko.sh: Likewise.
55092         * tests/test-ftello.c (main): Likewise.
55093         * tests/test-ftello.sh: Likewise.
55094         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
55095         implies replacing fseek.
55096         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
55097         HAVE_FTELLO.
55098         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
55099         * modules/unistd (Makefile.am): Likewise.
55100         * lib/unistd_.h (lseek): Declare a replacement.
55101         * doc/functions/lseek.texi (lseek): Document this fix.
55102         * doc/functions/fseek.texi (fseek): Likewise.
55103         * doc/functions/ftell.texi (ftell): Likewise.
55104
55105 2007-05-24  Bruno Haible  <bruno@clisp.org>
55106
55107         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
55108         in the printed representation of a NaN.
55109         * tests/test-vasprintf-posix.c (test_function): Likewise.
55110         * tests/test-snprintf-posix.h (test_function): Likewise.
55111         * tests/test-sprintf-posix.h (test_function): Likewise.
55112         Reported by Eric Blake.
55113
55114 2007-05-23  Eric Blake  <ebb9@byu.net>
55115
55116         Fix fseeko/ftello on cygwin 1.5.24.
55117         * doc/functions/fseeko.texi (fseeko): Document the fix.
55118         * doc/functions/ftello.texi (ftello): Document the fix.
55119         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
55120         * doc/functions/stdout.text (stdout): New file.
55121         * doc/functions/stderr.text (stderr): New file.
55122         * doc/gnulib.texi (Function Substitutes): Use new files.
55123         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
55124         prior to 1.7.0.
55125         * tests/test-ftello.c (main): Likewise for ftello.
55126         * tests/test-fseeko.sh: New file.
55127         * tests/test-ftello.sh: New file.
55128         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
55129         with seekable stdin.
55130         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
55131         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
55132         (gl_REPLACE_FSEEKO): New macro.
55133         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
55134         * modules/fseeko (Files): Distribute fseeko.c.
55135         * modules/ftello (Files): Distribute ftello.c.
55136         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
55137         mode.
55138         * lib/ftello.c (rpl_ftello): New file.
55139         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
55140         fseeko, ftello.
55141         (gl_STDIN_LARGE_OFFSET): New macro.
55142         * modules/stdio (Makefile.am): Perform the replacement.
55143         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
55144
55145 2007-05-23  Bruno Haible  <bruno@clisp.org>
55146
55147         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
55148         GNULIB_POSIXCHECK is defined.
55149
55150 2007-05-21  Bruno Haible  <bruno@clisp.org>
55151
55152         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
55153         Check also the output for NaN arguments. When cross-compiling, guess
55154         no on IRIX.
55155         * lib/vasnprintf.c: Update comments.
55156         * tests/test-vasnprintf-posix.c (strisnan): New function.
55157         (test_function): Use it.
55158         * tests/test-vasprintf-posix.c (strisnan): New function.
55159         (test_function): Use it.
55160         * tests/test-snprintf-posix.h (strisnan): New function.
55161         (test_function): Use it.
55162         * tests/test-sprintf-posix.h (strisnan): New function.
55163         (test_function): Use it.
55164         Reported by Eric Blake.
55165
55166 2007-05-20  Bruno Haible  <bruno@clisp.org>
55167
55168         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
55169         numbers that fails on BeOS.
55170         * doc/functions/frexpl.texi: Update.
55171
55172 2007-05-20  Jim Meyering  <jim@meyering.net>
55173
55174         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
55175         forced upon us by glibc-2.6.
55176
55177 2007-05-20  Bruno Haible  <bruno@clisp.org>
55178
55179         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
55180         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
55181         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
55182         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
55183         NEED_PRINTF_INFINITE.
55184         (is_infinitel): New function.
55185         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
55186         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
55187         gl_PREREQ_VASNPRINTF_INFINITE.
55188         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
55189         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55190         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
55191         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
55192         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
55193         gl_PREREQ_VASNPRINTF_INFINITE.
55194         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55195         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55196         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55197         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55198         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55199         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55200         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55201         * doc/functions/fprintf.texi: Update.
55202         * doc/functions/printf.texi: Update.
55203         * doc/functions/snprintf.texi: Update.
55204         * doc/functions/sprintf.texi: Update.
55205         * doc/functions/vfprintf.texi: Update.
55206         * doc/functions/vprintf.texi: Update.
55207         * doc/functions/vsnprintf.texi: Update.
55208         * doc/functions/vsprintf.texi: Update.
55209
55210 2007-05-20  Bruno Haible  <bruno@clisp.org>
55211
55212         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
55213         was not found in libc.
55214         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
55215
55216 2007-05-20  Bruno Haible  <bruno@clisp.org>
55217
55218         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55219         printed as "-nan" instead of "nan".
55220         * tests/test-vasprintf-posix.c (test_function): Likewise.
55221         * tests/test-snprintf-posix.h (test_function): Likewise.
55222         * tests/test-sprintf-posix.h (test_function): Likewise.
55223         Needed for HP-UX 11.
55224
55225 2007-05-20  Jim Meyering  <jim@meyering.net>
55226
55227         Fix buggy test for the fchownat-deref bug.
55228         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
55229         symlink required for the run-test.  Without it, this test would
55230         always declare that fchownat doesn't work, and client code would
55231         unnecessarily use the replacement function with fixed libc.
55232         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
55233         Reported by Greg Schafer.
55234
55235 2007-05-19  Bruno Haible  <bruno@clisp.org>
55236
55237         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
55238         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
55239         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
55240         Needed for IRIX 6.5 and Solaris 2.5.1.
55241
55242 2007-05-19  Bruno Haible  <bruno@clisp.org>
55243
55244         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
55245         (test_function): Skip tests involving -0.0 on platforms where
55246         -0.0 = 0.0.
55247         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
55248         (test_function): Skip tests involving -0.0 on platforms where
55249         -0.0 = 0.0.
55250         * tests/test-snprintf-posix.h (have_minus_zero): New function.
55251         (test_function): Skip tests involving -0.0 on platforms where
55252         -0.0 = 0.0.
55253         * tests/test-sprintf-posix.h (have_minus_zero): New function.
55254         (test_function): Skip tests involving -0.0 on platforms where
55255         -0.0 = 0.0.
55256         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
55257         tests.
55258         * tests/test-printf-posix.h (test_function): Likewise.
55259         * tests/test-printf-posix.output: Remove all -0.0 related results.
55260         Needed for IRIX 6.5.
55261
55262 2007-05-19  Bruno Haible  <bruno@clisp.org>
55263
55264         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
55265         printed as "nan0x7fffffff" instead of "nan".
55266         * tests/test-vasprintf-posix.c (test_function): Likewise.
55267         * tests/test-snprintf-posix.h (test_function): Likewise.
55268         * tests/test-sprintf-posix.h (test_function): Likewise.
55269         * tests/test-fprintf-posix.h (NaN): Remove macro.
55270         (test_function): Remove all NaN related tests.
55271         * tests/test-printf-posix.h (NaN): Remove macro.
55272         (test_function): Remove all NaN related tests.
55273         * tests/test-printf-posix.output: Remove all NaN related results.
55274         Needed for IRIX 6.5.
55275
55276 2007-05-19  Bruno Haible  <bruno@clisp.org>
55277
55278         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
55279         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
55280
55281 2007-05-19  Bruno Haible  <bruno@clisp.org>
55282
55283         * lib/float_.h: New file.
55284         * m4/float_h.m4: New file.
55285         * modules/float: New file.
55286         * modules/isnanl (Dependencies): Add float.
55287         * modules/isnanl-nolibm (Dependencies): Likewise.
55288         * modules/mathl (Dependencies): Likewise.
55289         * modules/printf-frexpl (Dependencies): Likewise.
55290         * modules/signbit (Dependencies): Likewise.
55291         * modules/vasnprintf (Dependencies): Likewise.
55292         * doc/headers/float.texi: Update.
55293
55294 2007-05-19  Jim Meyering  <jim@meyering.net>
55295
55296         * lib/utimens.c (gl_futimens): Rename from futimens,
55297         now that glibc-2.6 declares futimens.
55298         * lib/utimens.h: Likewise.
55299
55300 2007-05-19  Bruno Haible  <bruno@clisp.org>
55301
55302         Avoid test failures on mingw.
55303         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
55304         * tests/test-printf-posix.sh: Likewise.
55305         * tests/test-vfprintf-posix.sh: Likewise.
55306         * tests/test-vprintf-posix.sh: Likewise.
55307
55308 2007-05-19  Bruno Haible  <bruno@clisp.org>
55309
55310         Fix *printf result for NaN, Inf, -0.0 on mingw.
55311         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
55312         * lib/vasnprintf.c: Include math.h and isnan.h.
55313         (is_infinite_or_zero): New function.
55314         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
55315         values in the %f, %F, %e, %E, %g, %G directives.
55316         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
55317         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55318         gl_PRINTF_INFINITE and test its result. Invoke
55319         gl_PREREQ_VASNPRINTF_INFINITE.
55320         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55321         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55322         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55323         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55324         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55325         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55326         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55327         * doc/functions/fprintf.texi: Update.
55328         * doc/functions/printf.texi: Update.
55329         * doc/functions/snprintf.texi: Update.
55330         * doc/functions/sprintf.texi: Update.
55331         * doc/functions/vfprintf.texi: Update.
55332         * doc/functions/vprintf.texi: Update.
55333         * doc/functions/vsnprintf.texi: Update.
55334         * doc/functions/vsprintf.texi: Update.
55335
55336 2007-05-19  Bruno Haible  <bruno@clisp.org>
55337
55338         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
55339         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
55340         Instead of multiplying with 10^k, set extra_zeroes to k.
55341         (scale10_round_long_double): Remove function.
55342
55343 2007-05-18  Bruno Haible  <bruno@clisp.org>
55344
55345         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
55346         introduced on 2007-05-06.
55347
55348 2007-05-18  Bruno Haible  <bruno@clisp.org>
55349
55350         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
55351         %g directives.
55352         * tests/test-vasprintf-posix.c (test_function): Likewise.
55353         * tests/test-snprintf-posix.h (test_function): Likewise.
55354         * tests/test-sprintf-posix.h (test_function): Likewise.
55355
55356 2007-05-18  Bruno Haible  <bruno@clisp.org>
55357
55358         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
55359         (strmatch): New function.
55360         (test_function): Test the %f directive on numbers of various exponents.
55361         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
55362         (strmatch): New function.
55363         (test_function): Test the %f directive on numbers of various exponents.
55364         * tests/test-snprintf-posix.h (strmatch): New function.
55365         (test_function): Test the %f directive on numbers of various exponents.
55366         * tests/test-sprintf-posix.h (strmatch): New function.
55367         (test_function): Test the %f directive on numbers of various exponents.
55368         * tests/test-snprintf-posix.c (SIZEOF): New macro.
55369         * tests/test-sprintf-posix.c (SIZEOF): New macro.
55370         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
55371         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
55372
55373 2007-05-18  Bruno Haible  <bruno@clisp.org>
55374
55375         Add support for 'long double' number output.
55376         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
55377         * lib/vasnprintf.c: Include math.h and float+.h.
55378         (mp_limb_t): New type.
55379         (GMP_LIMB_BITS): New macro.
55380         (mp_twolimb_t): New type.
55381         (GMP_TWOLIMB_BITS): New macro.
55382         (mpn_t): New type.
55383         (multiply, divide, convert_to_decimal, decode_long_double,
55384         scale10_round_long_double, scale10_round_decimal_long_double,
55385         floorlog10l): New functions.
55386         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
55387         for the %f, %F, %e, %E, %g, %G directives.
55388         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
55389         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
55390         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
55391         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
55392         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
55393         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55394         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55395         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55396         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55397         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55398         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55399         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
55400         * modules/snprintf-posix (Depends-on): Likewise.
55401         * modules/sprintf-posix (Depends-on): Likewise.
55402         * modules/vasnprintf-posix (Depends-on): Likewise.
55403         * modules/vasprintf-posix (Depends-on): Likewise.
55404         * modules/vfprintf-posix (Depends-on): Likewise.
55405         * modules/vsnprintf-posix (Depends-on): Likewise.
55406         * modules/vsprintf-posix (Depends-on): Likewise.
55407         * modules/vasnprintf (Files): Add lib/float+.h.
55408         * doc/functions/fprintf.texi: Update.
55409         * doc/functions/printf.texi: Update.
55410         * doc/functions/snprintf.texi: Update.
55411         * doc/functions/sprintf.texi: Update.
55412         * doc/functions/vfprintf.texi: Update.
55413         * doc/functions/vprintf.texi: Update.
55414         * doc/functions/vsnprintf.texi: Update.
55415         * doc/functions/vsprintf.texi: Update.
55416
55417 2007-05-18  Bruno Haible  <bruno@clisp.org>
55418
55419         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
55420
55421 2007-05-18  Bruno Haible  <bruno@clisp.org>
55422
55423         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
55424         for printing 64-bit integers. Needed for mingw.
55425
55426 2007-05-18  Bruno Haible  <bruno@clisp.org>
55427
55428         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
55429         gl_FUNC_FREXPL_WORKS.
55430         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
55431
55432 2007-05-18  Bruno Haible  <bruno@clisp.org>
55433
55434         * modules/frexpl-nolibm-tests: New file.
55435
55436         * modules/frexpl-nolibm: New file.
55437         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
55438
55439 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55440
55441         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
55442         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55443         GCC 4.2, which otherwise issues a lot of warnings.
55444         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
55445         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
55446         Likewise.
55447         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
55448         * modules/iconv_open (iconv.h): Likewise.
55449         * modules/locale (locale.h): Likewise.
55450         * modules/netinet_in (netinet/in.h): Likewise.
55451         * modules/sys_select (sys_select.h): Likewise.
55452         * modules/sys_socket (sys/socket.h): Likewise.
55453         * modules/sys_stat (sys/stat.h): Likewise.
55454         * modules/sysexits (sysexits.h): Likewise.
55455         * modules/unistd (unistd.h): Likewise.
55456
55457 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55458
55459         * modules/closein-tests (Makefile.am): Distribute
55460         `test-closein.sh'.
55461
55462 2007-05-17  Bruno Haible  <bruno@clisp.org>
55463
55464         * tests/test-printf-posix.output: Renamed from
55465         tests/test-fprintf-posix.out.
55466         * modules/fprintf-posix-tests: Update.
55467         * modules/printf-posix-tests: Update.
55468         * modules/vfprintf-posix-tests: Update.
55469         * modules/vprintf-posix-tests: Update.
55470         * tests/test-fprintf-posix.sh: Update.
55471         * tests/test-printf-posix.sh: Update.
55472         * tests/test-vfprintf-posix.sh: Update.
55473         * tests/test-vprintf-posix.sh: Update.
55474         Reported by Ralf Wildenhues.
55475
55476 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55477
55478         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
55479         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
55480         GCC 4.2, which otherwise issues a lot of warnings.
55481         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
55482         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
55483         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
55484         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
55485         it should no longer be needed.
55486         * lib/string_.h: Likewise.
55487         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
55488         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
55489         * modules/inttypes (inttypes.h): Likewise.
55490         * modules/math (math.h): Likewise.
55491         * modules/search (search.h): Likewise.
55492         * modules/signal (signal.h): Likewise.
55493         * modules/stdint (stdint.h): Likewise.
55494         * modules/stdio (stdio.h): Likewise.
55495         * modules/stdlib (stdlib.h): Likewise.
55496         * modules/string (string.h): Likewise.
55497         * modules/sys_time (sys/time.h): Likewise.
55498         * modules/time (time.h): Likewise.
55499         * modules/wchar (wchar.h): Likewise.
55500         * modules/wctype (wtype.h): Likewise.
55501
55502 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
55503
55504         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
55505
55506 2007-05-13  Bruno Haible  <bruno@clisp.org>
55507
55508         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
55509         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
55510         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
55511         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
55512         (gl_PREREQ_STRTOK_R): Don't require it here.
55513
55514 2007-05-13  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
55517         when used in C++ mode.
55518
55519 2007-05-12  Bruno Haible  <bruno@clisp.org>
55520
55521         * lib/linebuffer.h: Tweak doc.
55522         * lib/linebuffer.c: Likewise.
55523
55524 2007-05-12  James Youngman  <jay@gnu.org>
55525
55526         * lib/linebuffer.c (readlinebuffer_delim): New function,
55527         like readlinebuffer, but use a caller-specified delimiter.
55528         (readlinebuffer): Just call readlinebuffer_delim with '\n'
55529         as the delimiter.
55530         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
55531
55532 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
55533
55534         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
55535         * modules/openat (Files): Remove openat-die.c.
55536         (Depends-on): Add openat-die.
55537         * modules/openat-die: New module.
55538
55539 2007-05-06  Bruno Haible  <bruno@clisp.org>
55540
55541         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
55542         Update with info about Cygwin.
55543         * doc/functions/fprintf.texi: Update.
55544         * doc/functions/printf.texi: Update.
55545         * doc/functions/snprintf.texi: Update.
55546         * doc/functions/sprintf.texi: Update.
55547         * doc/functions/vfprintf.texi: Update.
55548         * doc/functions/vprintf.texi: Update.
55549         * doc/functions/vsnprintf.texi: Update.
55550         * doc/functions/vsprintf.texi: Update.
55551         Reported by Eric Blake.
55552
55553 2007-05-06  Bruno Haible  <bruno@clisp.org>
55554
55555         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55556         padding ourselves for the floating-point directives.
55557         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
55558         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
55559         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55560         gl_PRINTF_FLAG_ZERO and test its result. Invoke
55561         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
55562         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55563         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55564         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55565         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55566         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55567         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55568         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55569         * tests/test-snprintf-posix.h (test_function): Also check the width
55570         and some flags in the %f directive.
55571         * tests/test-sprintf-posix.h (test_function): Likewise.
55572         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55573         * tests/test-vasprintf-posix.c (test_function): Likewise.
55574         * doc/functions/fprintf.texi: Update.
55575         * doc/functions/printf.texi: Update.
55576         * doc/functions/snprintf.texi: Update.
55577         * doc/functions/sprintf.texi: Update.
55578         * doc/functions/vfprintf.texi: Update.
55579         * doc/functions/vprintf.texi: Update.
55580         * doc/functions/vsnprintf.texi: Update.
55581         * doc/functions/vsprintf.texi: Update.
55582
55583 2007-05-06  Bruno Haible  <bruno@clisp.org>
55584
55585         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
55586         pass the ' flag character to sprintf or snprintf.
55587         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
55588         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
55589         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55590         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
55591         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
55592         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
55593         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
55594         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
55595         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
55596         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
55597         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55598         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
55599         * tests/test-snprintf-posix.h (test_function): Also check the grouping
55600         flag.
55601         * tests/test-sprintf-posix.h (test_function): Likewise.
55602         * tests/test-vasnprintf-posix.c (test_function): Likewise.
55603         * tests/test-vasprintf-posix.c (test_function): Likewise.
55604         * doc/functions/fprintf.texi: Update.
55605         * doc/functions/printf.texi: Update.
55606         * doc/functions/snprintf.texi: Update.
55607         * doc/functions/sprintf.texi: Update.
55608         * doc/functions/vfprintf.texi: Update.
55609         * doc/functions/vprintf.texi: Update.
55610         * doc/functions/vsnprintf.texi: Update.
55611         * doc/functions/vsprintf.texi: Update.
55612
55613 2007-05-01  Bruno Haible  <bruno@clisp.org>
55614
55615         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
55616
55617 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
55618
55619         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
55620         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
55621
55622 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
55623
55624         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
55625         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
55626         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
55627
55628 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
55629
55630         * lib/argp-help.c (struct hol_entry): New member `ord'.
55631         (HOL_ENTRY_PTRCMP): Use ord for comparison
55632         (hol_sort): Initialize ord.
55633
55634 2007-05-01  Bruno Haible  <bruno@clisp.org>
55635
55636         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
55637         Reported by Eric Blake.
55638         * doc/gnulib.texi (Function Substitutes): Update.
55639
55640 2007-05-01  Bruno Haible  <bruno@clisp.org>
55641
55642         * doc/functions.texi: Remove file, now redundant through
55643         doc/functions/*.texi.
55644
55645 2007-05-01  Bruno Haible  <bruno@clisp.org>
55646
55647         * modules/argp (Depends-on): Add sleep.
55648
55649 2007-05-01  Bruno Haible  <bruno@clisp.org>
55650
55651         * modules/sleep-tests: New file.
55652         * tests/test-sleep.c: New file.
55653
55654         * modules/sleep: New file.
55655         * lib/sleep.c: New file.
55656         * m4/sleep.m4: New file.
55657         * lib/unistd_.h (sleep): New declaration.
55658         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
55659         HAVE_SLEEP.
55660         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
55661         * doc/functions/sleep.texi: Document the sleep module.
55662
55663 2007-05-01  Bruno Haible  <bruno@clisp.org>
55664
55665         * lib/sigprocmask.h: Remove file.
55666         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
55667         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
55668         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
55669         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
55670         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
55671         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
55672         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
55673         HAVE_SIGSET_T as a shell variable.
55674         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
55675         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
55676         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
55677         (Depends-on): Add signal. Remove verify.
55678         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
55679         (Include): Mention <signal.h> instead of sigprocmask.h.
55680         * NEWS: Mention the change.
55681         * lib/fatal-signal.c: Don't include sigprocmask.h.
55682
55683 2007-05-01  Bruno Haible  <bruno@clisp.org>
55684
55685         * modules/signal: New file.
55686         * lib/signal_.h: New file.
55687         * m4/signal_h.m4: New file.
55688
55689 2007-05-01  Bruno Haible  <bruno@clisp.org>
55690
55691         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
55692         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
55693         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
55694         HAVE_WCTYPE_CTMP_BUG into wctype.h.
55695
55696 2007-05-01  Bruno Haible  <bruno@clisp.org>
55697
55698         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
55699         configure time.
55700         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
55701         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
55702         * modules/sys_stat (Makefile.am): Substitute their values into
55703         sys/stat.h.
55704
55705 2007-05-01  Bruno Haible  <bruno@clisp.org>
55706
55707         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
55708         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
55709         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
55710
55711 2007-05-01  Bruno Haible  <bruno@clisp.org>
55712
55713         * doc/header/assert.texi: Undo last change: don't mention the gnulib
55714         'assert' module here.
55715
55716 2007-05-01  Bruno Haible  <bruno@clisp.org>
55717
55718         * doc/functions/*.texi: New files.
55719         * doc/functions/google-ranking.txt: New file.
55720         * doc/gnulib.texi (Function Substitutes): New chapter.
55721         (ctime, inet_ntoa): Remove sections.
55722         * doc/ctime.texi: Remove file.
55723         * doc/inet_ntoa.texi: Remove file.
55724         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
55725         dependencies.
55726         (%.info): New rule, specifying a --reference-limit.
55727
55728 2007-05-01  Bruno Haible  <bruno@clisp.org>
55729
55730         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
55731
55732 2007-05-01  Bruno Haible  <bruno@clisp.org>
55733
55734         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
55735         the portability of 'mkdir' to mingw systems.
55736
55737 2007-05-01  Bruno Haible  <bruno@clisp.org>
55738
55739         * doc/headers/google-ranking.txt: New file.
55740
55741 2007-04-30  Eric Blake  <ebb9@byu.net>
55742
55743         Prefer fseeko to fseek.
55744         * modules/getpass (Depends-on): Add fseeko.
55745         * lib/getpass.c (getpass): Use fseeko, not fseek.
55746
55747 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
55748
55749         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
55750         assumes the sorting is stable, while most qsort implementations
55751         are not.  Use argument addresses to ensure they never compare as
55752         equal.
55753
55754         * tests/test-argp-2.sh (usage-indent test): Fix output
55755         (func_compare): Restore diff options
55756         * tests/test-argp.c: Restore #include "progname.h"
55757
55758 2007-04-29  Bruno Haible  <bruno@clisp.org>
55759
55760         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
55761         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
55762         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
55763         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
55764         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
55765         (configure.ac): Define CHECK_SNPRINTF_POSIX.
55766         (TESTS, check_PROGRAMS): Add test-snprintf.
55767         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
55768         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
55769         (TESTS, check_PROGRAMS): Add test-vsnprintf.
55770         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
55771         assertions that fail on HP-UX, OSF/1, or IRIX.
55772         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
55773
55774 2007-04-29  Bruno Haible  <bruno@clisp.org>
55775
55776         * MODULES.html.sh (posix_functions): Remove 'contents'.
55777
55778 2007-04-29  Karl Berry  <karl@gnu.org>
55779
55780         * config/srclist.txt (gendocs_template_min): new entry.
55781
55782 2007-04-29  Bruno Haible  <bruno@clisp.org>
55783
55784         Work around fpurge bug on BSD systems.
55785         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
55786         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
55787         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
55788         fpurge to rpl_fpurge if the system already has this function.
55789         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
55790         the case where the system already has this function. Correct invariants
55791         on BSD systems.
55792         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
55793         BSD systems.
55794
55795 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
55796
55797         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
55798         proposed by Sven Verdoolaege.
55799
55800         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
55801         options.
55802         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
55803         (usage and help tests): Update
55804
55805 2007-04-29  Bruno Haible  <bruno@clisp.org>
55806
55807         * tests/test-fflush.c (main): Use a file of size 17, not 10.
55808         Print more information in case of failure. Disable a test on BeOS.
55809
55810 2007-04-29  Bruno Haible  <bruno@clisp.org>
55811
55812         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
55813         This helps debugging on systems on which no gdb is available.
55814
55815 2007-04-29  Bruno Haible  <bruno@clisp.org>
55816
55817         * lib/freading.h: Improve comments.
55818         * lib/fwriting.h: Likewise.
55819         * tests/test-freading.c (main): Don't check freading immediately after
55820         repositioning. Needed for glibc.
55821
55822 2007-04-29  Bruno Haible  <bruno@clisp.org>
55823
55824         * lib/freading.c (freading): Trivial simplification.
55825
55826 2007-04-28  Bruno Haible  <bruno@clisp.org>
55827
55828         * tests/test-fwriting.c (main): Also test the interaction between
55829         fflush and fwriting.
55830         * modules/fwriting-tests (Depends-on): Add fflush.
55831
55832         * tests/test-freading.c (main): Also test the interaction between
55833         fflush and freading.
55834         * modules/freading-tests (Depends-on): Add fflush.
55835
55836 2007-04-28  Bruno Haible  <bruno@clisp.org>
55837
55838         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
55839         fseeko and ftello.
55840         Suggested by Eric Blake.
55841
55842 2007-04-28  Jim Meyering  <jim@meyering.net>
55843
55844         Avoid false-negative in gl_STDINT_H's C99 conformance test.
55845         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
55846         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
55847
55848 2007-04-27  Eric Blake  <ebb9@byu.net>
55849
55850         * doc/headers/assert.texi (assert.h): Document assert module use.
55851
55852 2007-04-27  Bruno Haible  <bruno@clisp.org>
55853
55854         * doc/headers/*.texi: New files.
55855         * doc/gnulib.texi (Header File Substitutes): New chapter.
55856         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
55857         dependencies.
55858         (standards.info ,standards.html, standards.dvi): Update dependencies.
55859         (mostlyclean, clean): New targets.
55860
55861 2007-04-27  Bruno Haible  <bruno@clisp.org>
55862
55863         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
55864         * modules/sysexits (Files, Makefile.am): Update.
55865
55866         * lib/sys_socket_.h: Renamed from lib/socket_.h.
55867         * modules/sys_socket (Files, Makefile.am): Update.
55868
55869         * lib/sys_stat_.h: Renamed from lib/stat_.h.
55870         * modules/sys_stat (Files, Makefile.am): Update.
55871
55872 2007-04-27  Eric Blake  <ebb9@byu.net>
55873
55874         * lib/freading.h: Improve comments.
55875         * lib/fwriting.h: Likewise.
55876         * lib/fflush.c: Likewise.
55877
55878         Fix closein for mingw.
55879         * modules/closein-tests: Add tests for closein.
55880         * tests/test-closein.c: New file.
55881         * tests/test-closein.sh: Likewise.
55882         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
55883         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
55884
55885 2007-04-27  Bruno Haible  <bruno@clisp.org>
55886
55887         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
55888         version is < 6.
55889         * lib/math_.h [__DECC]: Likewise.
55890         * lib/stdio_.h [__DECC]: Likewise.
55891         * lib/stdlib_.h [__DECC]: Likewise.
55892         * lib/string_.h [__DECC]: Likewise.
55893         * lib/time_.h [__DECC]: Likewise.
55894         * lib/wchar_.h [__DECC]: Likewise.
55895         * lib/wctype_.h [__DECC]: Likewise.
55896
55897 2007-04-27  Bruno Haible  <bruno@clisp.org>
55898
55899         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
55900
55901 2007-04-27  Bruno Haible  <bruno@clisp.org>
55902
55903         * lib/fflush.c: Add comments.
55904         * modules/fpurge-tests (Depends-on): Add fflush.
55905         * modules/freadable-tests (Depends-on): Likewise.
55906         * modules/fwritable-tests (Depends-on): Likewise.
55907
55908 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
55909
55910         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
55911         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
55912         Report by Bruno Haible <bruno@clisp.org>.
55913
55914 2007-04-26  Eric Blake  <ebb9@byu.net>
55915
55916         Fix fflush on mingw.
55917         * modules/fflush (Depends-on): Add freading.
55918         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
55919         but unread data.
55920
55921 2007-04-26  Eric Blake  <ebb9@byu.net>
55922         and Bruno Haible  <bruno@clisp.org>
55923
55924         Implement freading and fwriting.
55925         * lib/freading.c: New file.
55926         * lib/freading.h: Likewise.
55927         * m4/freading.m4: Likewise.
55928         * modules/freading: Likewise.
55929         * modules/freading-tests: Likewise.
55930         * tests/test-freading.c: Likewise.
55931         * lib/fwriting.c: New file.
55932         * lib/fwriting.h: Likewise.
55933         * m4/fwriting.m4: Likewise.
55934         * modules/fwriting: Likewise.
55935         * modules/fwriting-tests: Likewise.
55936         * tests/test-fwriting.c: Likewise.
55937         * MODULES.html.sh (File stream based Input/Output): Mention them.
55938
55939 2007-04-26  Bruno Haible  <bruno@clisp.org>
55940
55941         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
55942         'long' when we assume it.
55943         Suggested by Eric Blake.
55944
55945 2007-04-26  Bruno Haible  <bruno@clisp.org>
55946
55947         Ensure fseeko, ftello are declared on glibc systems.
55948         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
55949         * modules/fseeko (configure.ac-early): Likewise.
55950         * modules/ftello (configure.ac-early): Likewise.
55951         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
55952         AC_FUNC_FSEEKO for this.
55953         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
55954         (gl_CHECK_FSEEKO): Remove macro.
55955
55956 2007-04-26  Bruno Haible  <bruno@clisp.org>
55957
55958         * tests/test-fflush.c (main): Also check the ftell result after
55959         fflush and fseek/fseeko.
55960         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
55961         file descriptor position cache in the stream.
55962         * lib/fseeko.c (rpl_fseeko): Likewise.
55963
55964 2007-04-26  Bruno Haible  <bruno@clisp.org>
55965
55966         * modules/fflush-tests (Depends-on): Add fseeko.
55967
55968 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
55969             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55970
55971         * lib/argz_.h: ensure error_t definition is obtained in same
55972         mechanism system argz.h would have.
55973         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
55974         argz facilities are known bad.  Err on the side of caution if
55975         cross-compiling.
55976
55977 2007-04-25  Eric Blake  <ebb9@byu.net>
55978
55979         * lib/fpurge.c (includes): Use stdlib.h for free.
55980         * tests/test-fflush.c (main): Also test fflush-fseeko.
55981
55982 2007-04-25  Bruno Haible  <bruno@clisp.org>
55983
55984         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
55985         * lib/fseeko.c: New file.
55986         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
55987         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
55988         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
55989         gl_FUNC_FSEEKO.
55990         (gl_FUNC_FSEEKO): Invoke it.
55991         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
55992         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
55993         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
55994
55995 2007-04-25  Bruno Haible  <bruno@clisp.org>
55996
55997         * modules/fflush (Depends-on): Add ftello.
55998
55999 2007-04-25  Bruno Haible  <bruno@clisp.org>
56000
56001         * modules/ftello-tests: New file.
56002         * tests/test-ftello.c: New file.
56003
56004         * modules/ftello: New file.
56005         * m4/ftello.m4: New file.
56006         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
56007         HAVE_FTELLO.
56008         * lib/stdio_.h (ftello): New declaration.
56009         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
56010         HAVE_FTELLO.
56011
56012 2007-04-25  Bruno Haible  <bruno@clisp.org>
56013
56014         * modules/fseeko-tests: New file.
56015         * tests/test-fseeko.c: New file.
56016
56017         * modules/fseeko: New file.
56018         * m4/fseeko.m4: New file.
56019         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
56020         HAVE_FSEEKO.
56021         * lib/stdio_.h (fseeko): New declaration.
56022         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
56023         HAVE_FSEEKO.
56024
56025 2007-04-25  Bruno Haible  <bruno@clisp.org>
56026
56027         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
56028
56029 2007-04-25  Bruno Haible  <bruno@clisp.org>
56030
56031         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
56032         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
56033         * tests/test-unistd.c: Likewise.
56034         * tests/test-fcntl.c: Likewise.
56035
56036 2007-04-23  Eric Blake  <ebb9@byu.net>
56037
56038         * lib/fflush.c: Fix missing include.
56039         Reported by Bruno Haible.
56040
56041 2007-04-23  Bruno Haible  <bruno@clisp.org>
56042
56043         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
56044         Reported by Eric Blake.
56045
56046 2007-04-23  Bruno Haible  <bruno@clisp.org>
56047
56048         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
56049
56050 2007-04-23  Bruno Haible  <bruno@clisp.org>
56051
56052         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
56053
56054 2007-04-23  Bruno Haible  <bruno@clisp.org>
56055
56056         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
56057         Needed on HP-UX 11.
56058
56059 2007-04-16  Eric Blake  <ebb9@byu.net>
56060
56061         Make fflush rely on fpurge.
56062         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
56063         open coding all variants.
56064         * modules/fflush (Depends-on): Add fpurge and unistd.
56065         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
56066         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
56067
56068         Fix --with-tests compilation on cygwin.
56069         * modules/argmatch-tests (Makefile.am): List gnulib library first
56070         in LDADD.
56071         * modules/argp-tests (Makefile.am): Likewise.
56072         * modules/array-list-tests (Makefile.am): Likewise.
56073         * modules/array-oset-tests (Makefile.am): Likewise.
56074         * modules/avltree-list-tests (Makefile.am): Likewise.
56075         * modules/avltree-oset-tests (Makefile.am): Likewise.
56076         * modules/avltreehash-list-tests (Makefile.am): Likewise.
56077         * modules/carray-list-tests (Makefile.am): Likewise.
56078         * modules/dirname-tests (Makefile.am): Likewise.
56079         * modules/frexp-tests (Makefile.am): Likewise.
56080         * modules/isnanl-tests (Makefile.am): Likewise.
56081         * modules/linked-list-tests (Makefile.am): Likewise.
56082         * modules/linkedhash-list-tests (Makefile.am): Likewise.
56083         * modules/lock-tests (Makefile.am): Likewise.
56084         * modules/rbtree-list-tests (Makefile.am): Likewise.
56085         * modules/rbtree-oset-tests (Makefile.am): Likewise.
56086         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
56087         * modules/tls-tests (Makefile.am): Likewise.
56088         * modules/tsearch-tests (Makefile.am): Likewise.
56089         * modules/xvasprintf-tests (Makefile.am): Likewise.
56090
56091         Fix fpurge for cygwin.
56092         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
56093         value.
56094         * modules/fpurge-tests (Depends-on): Clean up trash.
56095
56096 2007-04-16  Simon Josefsson  <simon@josefsson.org>
56097
56098         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
56099
56100         * m4/autobuild.m4: Re-indent.
56101
56102 2007-04-13  Bruno Haible  <bruno@clisp.org>
56103
56104         * modules/fpurge-tests: New file.
56105         * tests/test-fpurge.c: New file.
56106
56107         * modules/fpurge: New file.
56108         * lib/fpurge.h: New file.
56109         * lib/fpurge.c: New file.
56110         * m4/fpurge.m4: New file.
56111
56112 2007-04-13  Bruno Haible  <bruno@clisp.org>
56113
56114         * modules/fbufmode-tests: New file.
56115         * tests/test-fbufmode.c: New file.
56116
56117         * modules/fbufmode: New file.
56118         * lib/fbufmode.h: New file.
56119         * lib/fbufmode.c: New file.
56120         * m4/fbufmode.m4: New file.
56121
56122 2007-04-13  Bruno Haible  <bruno@clisp.org>
56123
56124         * modules/fwritable-tests: New file.
56125         * tests/test-fwritable.c: New file.
56126
56127         * modules/fwritable: New file.
56128         * lib/fwritable.h: New file.
56129         * lib/fwritable.c: New file.
56130         * m4/fwritable.m4: New file.
56131
56132 2007-04-13  Bruno Haible  <bruno@clisp.org>
56133
56134         * modules/freadable-tests: New file.
56135         * tests/test-freadable.c: New file.
56136
56137         * modules/freadable: New file.
56138         * lib/freadable.h: New file.
56139         * lib/freadable.c: New file.
56140         * m4/freadable.m4: New file.
56141
56142 2007-04-13  Bruno Haible  <bruno@clisp.org>
56143
56144         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
56145         MOSTLYCLEANFILES.
56146
56147 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
56148
56149         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
56150         gzip bootstrap.conf to avoid dragging in i18n machinery.
56151         (gnulib_tool_option): Use it.
56152
56153 2007-04-13  Bruno Haible  <bruno@clisp.org>
56154
56155         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
56156         %F directives.
56157         * tests/test-vasprintf-posix.c (test_function): Likewise.
56158         * tests/test-snprintf-posix.h (test_function): Likewise.
56159         * tests/test-sprintf-posix.h (test_function): Likewise.
56160         * tests/test-fprintf-posix.h (test_function): Likewise.
56161         * tests/test-printf-posix.h (test_function): Likewise.
56162         * tests/test-fprintf-posix.out: Likewise.
56163
56164 2007-04-13  Bruno Haible  <bruno@clisp.org>
56165
56166         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
56167         * modules/tls-tests (configure.ac): Likewise.
56168         Reported by Arto C. Nirkko <anirkko@insel.ch>.
56169
56170 2007-04-13  Bruno Haible  <bruno@clisp.org>
56171
56172         * lib/tls.c (glthread_tls_get): Fix return type.
56173         Patch by Arto C. Nirkko <anirkko@insel.ch>.
56174
56175 2007-04-12  Eric Blake  <ebb9@byu.net>
56176
56177         * modules/gettime (Depends-on): Remove gettime.
56178         Reported by Dmitry V. Levin.
56179
56180 2007-04-12  Bruno Haible  <bruno@clisp.org>
56181
56182         * modules/fflush (Include): Mention <stdio.h>.
56183         * modules/strtoimax (Include): Mention <inttypes.h>.
56184         * modules/strtoumax (Include): Likewise.
56185
56186 2007-04-12  Eric Blake  <ebb9@byu.net>
56187
56188         * .cvsignore: New file.
56189         * .gitignore: Likewise.
56190
56191 2007-04-12  Bruno Haible  <bruno@clisp.org>
56192
56193         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
56194         not before, since $(LDADD) often contains libgnu.a.
56195         * modules/striconv-tests (test_striconv_LDADD): Likewise.
56196         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
56197         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
56198         Needed on Cygwin.
56199
56200 2007-04-12  Eric Blake  <ebb9@byu.net>
56201
56202         Work around glibc's failure to flush stdin on fclose.
56203         * lib/closein.c (close_stdin): Flush stdin before closing.
56204
56205         Work around glibc's failure to reset seekable stdin on exit.
56206         * modules/closein: New module.
56207         * lib/closein.c: New file.
56208         * lib/closein.h: Likewise.
56209         * m4/closein.m4: Likewise.
56210         * MODULES.html.sh (File stream based Input/Output): Document it.
56211
56212 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56213
56214         * gnulib-tool: Rename generated 'autobuild' script to
56215         'do-autobuild' in --create-megatestdir output.
56216
56217         * doc/gnulib.texi (Build robot for gnulib): Fix.
56218
56219 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56220
56221         * modules/sysexits (Depends-on): Add absolute-header.
56222
56223 2007-04-12  Eric Blake  <ebb9@byu.net>
56224
56225         No need to preserve errno on success.
56226         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
56227         Reported by Bruno Haible.
56228
56229 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56230
56231         * MODULES.html.sh (Support for maintaining and releasing
56232         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
56233
56234 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56235
56236         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
56237
56238 2007-04-12  Simon Josefsson  <simon@josefsson.org>
56239
56240         * modules/autobuild: New module.
56241
56242         * m4/autobuild.m4: New file.
56243
56244 2007-04-11  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
56247         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
56248         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
56249         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
56250         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56251         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56252         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56253         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
56254         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56255         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56256         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
56257         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56258         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56259         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
56260         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56261         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56262         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
56263         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56264         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56265         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
56266         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56267         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
56269         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56270         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56271         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
56272         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
56273         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
56274         Reported by Eric Blake.
56275
56276 2007-04-11  Bruno Haible  <bruno@clisp.org>
56277
56278         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
56279
56280 2007-04-10  Bruno Haible  <bruno@clisp.org>
56281
56282         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
56283         for NaN and Infinity. Needed on FreeBSD 6.1.
56284         * tests/test-vasnprintf-posix.c (test_function): Undo last change
56285         regarding results for "%010a" of Infinity and NaN.
56286         * tests/test-vasprintf-posix.c (test_function): Likewise.
56287         * tests/test-snprintf-posix.h (test_function): Likewise.
56288         * tests/test-sprintf-posix.h (test_function): Likewise.
56289         * tests/test-fprintf-posix.h (test_function): Likewise.
56290         * tests/test-printf-posix.h (test_function): Likewise.
56291         * tests/test-fprintf-posix.out: Likewise.
56292
56293 2007-04-10  Bruno Haible  <bruno@clisp.org>
56294
56295         * modules/locale-tests: New file.
56296         * tests/test-locale.c: New file.
56297
56298         * modules/locale: New file.
56299         * lib/locale_.h: New file.
56300         * m4/locale_h.m4: New file.
56301
56302 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
56303             Bruno Haible  <bruno@clisp.org>
56304
56305         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
56306         be determined, test for availability of the copysignf, copysign,
56307         copysignl functions.
56308         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
56309         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
56310         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
56311
56312 2007-04-09  Eric Blake  <ebb9@byu.net>
56313
56314         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
56315         * modules/stdio (Makefile.am): Support fflush.
56316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56317         * modules/fflush: New file.
56318         * lib/fflush.c: Likewise.
56319         * m4/fflush.m4: Likewise.
56320         * modules/fflush-tests: New test.
56321         * tests/test-fflush.c: Likewise.
56322         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
56323
56324 2007-04-06  Bruno Haible  <bruno@clisp.org>
56325
56326         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
56327         (VASNPRINTF): Use signbit for faster determination whether to print a
56328         minus sign.
56329         * modules/vasnprintf (Files): Remove lib/float+.h.
56330         * modules/fprintf-posix (Depends-on): Add signbit.
56331         * modules/snprintf-posix (Depends-on): Likewise.
56332         * modules/sprintf-posix (Depends-on): Likewise.
56333         * modules/vasnprintf-posix (Depends-on): Likewise.
56334         * modules/vasprintf-posix (Depends-on): Likewise.
56335         * modules/vfprintf-posix (Depends-on): Likewise.
56336         * modules/vsnprintf-posix (Depends-on): Likewise.
56337         * modules/vsprintf-posix (Depends-on): Likewise.
56338
56339 2007-04-06  Bruno Haible  <bruno@clisp.org>
56340
56341         * tests/test-frexp.c (main): Test also the sign bit of zero results.
56342         * tests/test-frexpl.c (main): Likewise.
56343         * tests/test-ldexpl.c (main): Likewise.
56344         * modules/frexp-tests (Depends-on): Add signbit.
56345         * modules/frexpl-tests (Depdends-on): Likewise.
56346         * modules/ldexpl-tests (Depdends-on): Likewise.
56347
56348 2007-04-06  Bruno Haible  <bruno@clisp.org>
56349
56350         * modules/signbit-tests: New file.
56351         * tests/test-signbit.c: New file.
56352
56353         * modules/signbit: New file.
56354         * lib/signbitf.c: New file.
56355         * lib/signbitd.c: New file.
56356         * lib/signbitl.c: New file.
56357         * m4/signbit.m4: New file.
56358         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
56359         (signbit): New macro.
56360         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
56361         REPLACE_SIGNBIT.
56362         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
56363         REPLACE_FREXPL into math.h.
56364
56365 2007-04-06  Bruno Haible  <bruno@clisp.org>
56366
56367         * modules/isnanf-nolibm-tests: New file.
56368         * tests/test-isnanf.c: New file.
56369
56370         * modules/isnanf-nolibm: New file.
56371         * lib/isnanf.h: New file.
56372         * lib/isnanf.c: New file.
56373         * lib/isnan.c: Consider the USE_FLOAT macro.
56374         * m4/isnanf.m4: New file.
56375
56376 2007-04-06  Bruno Haible  <bruno@clisp.org>
56377
56378         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
56379         (Link): New section.
56380
56381         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
56382
56383 2007-04-06  Bruno Haible  <bruno@clisp.org>
56384
56385         Assume the 'long double' type.
56386         * m4/longdouble.m4: Remove file.
56387         * config/srclist.txt: Don't mention longdouble.m4.
56388         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
56389         * lib/float+.h: Likewise.
56390         * lib/frexp.c: Likewise.
56391         * lib/printf-args.h: Likewise.
56392         * lib/printf-args.c: Likewise.
56393         * lib/printf-frexp.c: Likewise.
56394         * lib/printf-parse.c: Likewise.
56395         * lib/vasnprintf.c: Likewise.
56396         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
56397         * m4/intl.m4: Likewise.
56398         * m4/isnanl.m4: Likewise.
56399         * m4/printf.m4: Likewise.
56400         * m4/printf-frexpl.m4: Likewise.
56401         * m4/vasnprintf.m4: Likewise.
56402         * modules/allocsa (Files): Remove m4/longdouble.m4.
56403         * modules/gettext (Files): Likewise.
56404         * modules/relocatable-prog-wrapper (Files): Likewise.
56405         * modules/vasnprintf (Files): Likewise.
56406         * modules/isnanl (Files): Likewise.
56407         (Include): Simplify.
56408         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
56409         (Include): Simplify.
56410         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
56411         (Include): Simplify.
56412         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
56413         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56414         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
56415         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56416         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56417         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56418         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
56419         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56420         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
56421         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56422         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
56423         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
56424         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
56425         * tests/test-isnanl.c: Likewise.
56426         * tests/test-snprintf-posix.h: Likewise.
56427         * tests/test-sprintf-posix.h: Likewise.
56428         * tests/test-vasnprintf-posix.c: Likewise.
56429         * tests/test-vasnprintf-posix2.c: Likewise.
56430         * tests/test-vasprintf-posix.c: Likewise.
56431
56432 2007-04-06  Bruno Haible  <bruno@clisp.org>
56433
56434         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
56435         * lib/math_.h [__DECC]: Include the overridden include file through
56436         #include_next, outside the double-inclusion guard.
56437         * lib/stdio_.h [__DECC]: Likewise.
56438         * lib/stdlib_.h [__DECC]: Likewise.
56439         * lib/string_.h [__DECC]: Likewise.
56440         * lib/time_.h [__DECC]: Likewise.
56441         * lib/wchar_.h [__DECC]: Likewise.
56442         * lib/wctype_.h [__DECC]: Likewise.
56443         * lib/inttypes_.h [__DECC]: Likewise.
56444         Reported by Albert Chin <china@thewrittenword.com> in
56445         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
56446
56447 2007-04-04  Eric Blake  <ebb9@byu.net>
56448
56449         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
56450         1.5.x.
56451
56452 2007-04-04  Bruno Haible  <bruno@clisp.org>
56453
56454         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
56455         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
56456
56457 2007-04-04  Bruno Haible  <bruno@clisp.org>
56458
56459         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
56460         results for "%010a" of Infinity and NaN.
56461         * tests/test-vasprintf-posix.c (test_function): Likewise.
56462         * tests/test-snprintf-posix.h (test_function): Likewise.
56463         * tests/test-sprintf-posix.h (test_function): Likewise.
56464         * tests/test-fprintf-posix.h (test_function): Remove these tests.
56465         * tests/test-printf-posix.h (test_function): Likewise.
56466         * tests/test-fprintf-posix.out: Update.
56467         Needed for FreeBSD 6.1.
56468
56469 2007-04-04  Bruno Haible  <bruno@clisp.org>
56470
56471         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
56472         directly used by the gnulib modules nor by gnulib-tool.
56473
56474 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
56475
56476         * DEPENDENCIES: Give overall description of version dependency
56477         desirability.  Use more-typical names for apps.
56478         Add shell, coreutils, diffutils, grep, tar, gzip.
56479
56480 2007-04-04  Simon Josefsson  <simon@josefsson.org>
56481
56482         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
56483
56484 2007-04-04  Karl Berry  <karl@gnu.org>
56485
56486         * MODULES.html.sh (func_module): missing '.
56487
56488 2007-04-03  Bruno Haible  <bruno@clisp.org>
56489
56490         * modules/argmatch-tests (Makefile.am): New variable
56491         test_argmatch_LDADD.
56492         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
56493         * modules/array-list-tests (Makefile.am): New variable
56494         test_array_list_LDADD.
56495         * modules/array-oset-tests (Makefile.am): New variable
56496         test_array_oset_LDADD.
56497         * modules/avltree-list-tests (Makefile.am): New variable
56498         test_avltree_list_LDADD.
56499         * modules/avltree-oset-tests (Makefile.am): New variable
56500         test_avltree_oset_LDADD.
56501         * modules/avltreehash-list-tests (Makefile.am): New variable
56502         test_avltreehash_list_LDADD.
56503         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
56504         test_canonicalize_lgpl_LDADD.
56505         * modules/carray-list-tests (Makefile.am): New variable
56506         test_carray_list_LDADD.
56507         * modules/dirname-tests (Makefile.am): New variable
56508         test_dirname_LDADD.
56509         * modules/linked-list-tests (Makefile.am): New variable
56510         test_linked_list_LDADD.
56511         * modules/linkedhash-list-tests (Makefile.am): New variable
56512         test_linkedhash_list_LDADD.
56513         * modules/rbtree-list-tests (Makefile.am): New variable
56514         test_rbtree_list_LDADD.
56515         * modules/rbtree-oset-tests (Makefile.am): New variable
56516         test_rbtree_oset_LDADD.
56517         * modules/rbtreehash-list-tests (Makefile.am): New variable
56518         test_rbtreehash_list_LDADD.
56519         * modules/xvasprintf-tests (Makefile.am): New variable
56520         test_xvasprintf_LDADD.
56521         Reported by Eric Blake.
56522
56523 2007-04-03  Eric Blake  <ebb9@byu.net>
56524
56525         * DEPENDENCIES: Weaken m4 requirements.
56526
56527 2007-04-03  Bruno Haible  <bruno@clisp.org>
56528
56529         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
56530         * modules/isnanl-tests (configure.ac): Likewise.
56531
56532 2007-04-03  Ben Pfaff  <blp@gnu.org>
56533
56534         * modules/iconv_open: Add $(srcdir)/ to source directory
56535         references in Makefile fragments that call gperf, to fix VPATH
56536         builds.
56537
56538 2007-04-03  Bruno Haible  <bruno@clisp.org>
56539
56540         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
56541         * lib/ldexpl.c: Undo last change.
56542
56543 2007-04-03  Bruno Haible  <bruno@clisp.org>
56544
56545         * modules/printf-frexpl (Depends-on): Undo last change.
56546         (Files): Add m4/ldexpl.m4.
56547
56548 2007-04-03  Bruno Haible  <bruno@clisp.org>
56549
56550         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
56551         * modules/isnanl (Link): New section.
56552
56553         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
56554         * modules/frexp (Link): New section.
56555
56556         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
56557         * modules/frexpl (Link): New section.
56558
56559         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
56560         * modules/ldexpl (Link): New section.
56561
56562 2007-04-03  Bruno Haible  <bruno@clisp.org>
56563
56564         * modules/TEMPLATE-EXTENDED: New file.
56565         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
56566
56567 2007-04-03  Bruno Haible  <bruno@clisp.org>
56568
56569         * DEPENDENCIES: New file.
56570         Suggested by Simon Josefsson.
56571
56572 2007-04-03  Bruno Haible  <bruno@clisp.org>
56573
56574         * doc/gnulib.texi: Escape @.
56575
56576 2007-04-03  James Youngman  <jay@gnu.org>
56577         and Paul Eggert  <eggert@cs.ucla.edu>
56578
56579         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
56580         birthtime on all systems that have birthtime, not just those which
56581         use st_birthtimensec rather than st_birthtim.  Putting zero in
56582         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
56583         that the birth time is not available for files on an NFS mount.
56584
56585 2007-04-03  Simon Josefsson  <simon@josefsson.org>
56586
56587         * modules/memxor: Move back from crypto/, suggested by Bruno.
56588         * modules/crypto/hmac-sha1: Fix memxor dependency.
56589
56590         * modules/crypto/gc: Moved from ../.
56591
56592 2007-04-02  Eric Blake  <ebb9@byu.net>
56593
56594         * lib/ldexpl.c (includes): Avoid libm.
56595
56596         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
56597
56598 2007-04-02  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
56601         on IRIX.
56602
56603 2007-04-02  Bruno Haible  <bruno@clisp.org>
56604
56605         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
56606         x86 or x86_64 platforms running MacOS X.
56607         Reported by Ryan Schmidt <@ryandesign.com>.
56608
56609 2007-04-02  Bruno Haible  <bruno@clisp.org>
56610
56611         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
56612         i386.
56613
56614 2007-04-01  Simon Josefsson  <simon@josefsson.org>
56615
56616         * modules/crypto/arcfour: Moved from ../.
56617         * modules/crypto/arcfour-tests: Moved from ../.
56618         * modules/crypto/arctwo: Moved from ../.
56619         * modules/crypto/arctwo-tests: Moved from ../.
56620         * modules/crypto/des: Moved from ../.
56621         * modules/crypto/des-tests: Moved from ../.
56622         * modules/crypto/gc-arcfour: Moved from ../.
56623         * modules/crypto/gc-arcfour-tests: Moved from ../.
56624         * modules/crypto/gc-arctwo: Moved from ../.
56625         * modules/crypto/gc-arctwo-tests: Moved from ../.
56626         * modules/crypto/gc-des: Moved from ../.
56627         * modules/crypto/gc-des-tests: Moved from ../.
56628         * modules/crypto/gc-hmac-md5: Moved from ../.
56629         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
56630         * modules/crypto/gc-hmac-sha1: Moved from ../.
56631         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
56632         * modules/crypto/gc-md2: Moved from ../.
56633         * modules/crypto/gc-md2-tests: Moved from ../.
56634         * modules/crypto/gc-md4: Moved from ../.
56635         * modules/crypto/gc-md4-tests: Moved from ../.
56636         * modules/crypto/gc-md5: Moved from ../.
56637         * modules/crypto/gc-md5-tests: Moved from ../.
56638         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
56639         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
56640         * modules/crypto/gc-random: Moved from ../.
56641         * modules/crypto/gc-rijndael: Moved from ../.
56642         * modules/crypto/gc-rijndael-tests: Moved from ../.
56643         * modules/crypto/gc-sha1: Moved from ../.
56644         * modules/crypto/gc-sha1-tests: Moved from ../.
56645         * modules/crypto/gc-tests: Moved from ../.
56646         * modules/crypto/hmac-md5: Moved from ../.
56647         * modules/crypto/hmac-md5-tests: Moved from ../.
56648         * modules/crypto/hmac-sha1: Moved from ../.
56649         * modules/crypto/hmac-sha1-tests: Moved from ../.
56650         * modules/crypto/md2: Moved from ../.
56651         * modules/crypto/md2-tests: Moved from ../.
56652         * modules/crypto/md4: Moved from ../.
56653         * modules/crypto/md4-tests: Moved from ../.
56654         * modules/crypto/md5: Moved from ../.
56655         * modules/crypto/md5-tests: Moved from ../.
56656         * modules/crypto/memxor: Moved from ../.
56657         * modules/crypto/rijndael: Moved from ../.
56658         * modules/crypto/rijndael-tests: Moved from ../.
56659         * modules/crypto/sha1: Moved from ../.
56660
56661 2007-03-30  James Youngman  <jay@gnu.org>
56662
56663         * tests/test-stat-time.c (prepare_test): use chmod() rather than
56664         rename() to change the ctime of a file (because ctime is unaffected
56665         by rename on jfs2 on AIX 5.1).
56666         (main): Start by doing cleanup, in case a previous run failed leaving
56667         test files behind.
56668
56669 2007-03-31  Bruno Haible  <bruno@clisp.org>
56670
56671         Support old proprietary implementations of iconv.
56672         * modules/iconv_open: New file.
56673         * lib/iconv_.h: New file.
56674         * m4/iconv_h.m4: New file.
56675         * lib/iconv_open.c: New file.
56676         * lib/iconv_open-aix.gperf: New file.
56677         * lib/iconv_open-hpux.gperf: New file.
56678         * lib/iconv_open-irix.gperf: New file.
56679         * lib/iconv_open-osf.gperf: New file.
56680         * m4/iconv_open.m4: New file.
56681         * modules/linebreak (Depends-on): Add iconv_open.
56682         * modules/striconv (Depends-on): Likewise.
56683         * modules/striconveh (Depends-on): Likewise.
56684         * modules/unicodeio (Depends-on): Likewise.
56685         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
56686         (iconv_t)(-1).
56687         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
56688         conversion if cd is (iconv_t)(-1).
56689         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
56690         is not possible.
56691
56692 2007-03-31  Bruno Haible  <bruno@clisp.org>
56693
56694         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56695         work on Solaris either. Protect also second use of "autodetect_jp".
56696
56697 2007-03-31  Bruno Haible  <bruno@clisp.org>
56698
56699         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
56700         the function is not present.
56701
56702 2007-03-31  Bruno Haible  <bruno@clisp.org>
56703
56704         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
56705         the function is not present.
56706
56707 2007-03-31  Bruno Haible  <bruno@clisp.org>
56708
56709         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
56710         a bug in HP-UX iconv_open().
56711
56712 2007-03-31  Bruno Haible  <bruno@clisp.org>
56713
56714         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
56715         (Mathematics <math.h>): New section, add fpieee.
56716         (Input/output <stdio.h>): Add fseterr.
56717         (Mathematics <math.h>): New section, add printf-frexp.
56718         (Container data structures): Add sublist.
56719         (Core language properties): Add fpucw, inline.
56720         (Functions for greatest-width integer types <inttypes.h>): Add
56721         imaxabs, imaxdiv, inttypes.
56722         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
56723         isnanl-nolibm, ldexp.
56724         (Mathematics <math.h>): New section, add printf-frexpl.
56725         (Support for systems lacking POSIX:2001): Add fprintf-posix,
56726         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
56727         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
56728         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
56729         (Unicode string functions): Add unistr/u*-mbtoucr.
56730         (Java): Add javacomp-script, javaexec-script.
56731         (C#): Add csharpcomp-script, csharpexec-script.
56732         (Support for building libraries and executables): Add havelib,
56733         relocatable-*.
56734         (Support for maintaining and releasing projects): Renamed from
56735         'Support for maintaining and release projects'. Add announce-gen.
56736
56737 2007-03-31  Bruno Haible  <bruno@clisp.org>
56738
56739         * README: Talk primarily about git.
56740         (git and CVS): Renamed from CVS.
56741         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
56742         gnulib is available through git.
56743         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
56744
56745 2007-03-30  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
56748         * lib/poll_.h: Likewise.
56749         * lib/stat_.h: Likewise.
56750         * lib/sys_time_.h: Likewise.
56751         * lib/sysexit_.h: Likewise.
56752         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
56753         * lib/stdbool_.h: Likewise.
56754         * lib/byteswap_.h: Add double-inclusion guard.
56755
56756 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
56757
56758         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
56759
56760 2007-03-30  Karl Berry  <karl@gnu.org>
56761
56762         * config/srclist-update: double space after USA in the license
56763         substitution, since that's how it's usually (?) written.
56764
56765 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
56766
56767         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
56768         reported by Bruno Haible.
56769
56770 2007-03-29  Bruno Haible  <bruno@clisp.org>
56771
56772         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
56773         a bug in AIX iconv().
56774
56775 2007-03-29  Bruno Haible  <bruno@clisp.org>
56776
56777         * modules/ldexpl-tests: New file.
56778         * tests/test-ldexpl.c: New file.
56779
56780 2007-03-29  Bruno Haible  <bruno@clisp.org>
56781
56782         * lib/ldexpl.c: Include fpucw.h.
56783         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
56784         multiplication.
56785         * modules/ldexpl (Depends-on): Add fpucw.
56786
56787 2007-03-29  Bruno Haible  <bruno@clisp.org>
56788
56789         * modules/ldexpl: New file.
56790         * m4/ldexpl.m4: New file.
56791         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
56792         set.
56793         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
56794         REPLACE_LDEXPL.
56795         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
56796         REPLACE_LDEXPL.
56797         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
56798         gl_FUNC_LDEXPL_WORKS.
56799         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
56800         * modules/mathl (Files): Remove lib/ldexpl.c.
56801         (Depends-on): Add ldexpl.
56802
56803 2007-03-29  Bruno Haible  <bruno@clisp.org>
56804
56805         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
56806
56807 2007-03-29  Bruno Haible  <bruno@clisp.org>
56808
56809         * tests/test-striconveh.c (main): Don't assume that a direct conversion
56810         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
56811         and possibly also HP-UX.
56812         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
56813         work on AIX, IRIX, HP-UX, OSF/1.
56814         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
56815         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
56816         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
56817         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
56818         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
56819         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
56820
56821 2007-03-29  Bruno Haible  <bruno@clisp.org>
56822
56823         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
56824
56825 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56826
56827         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
56828         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
56829
56830 2007-03-29  Eric Blake  <ebb9@byu.net>
56831
56832         * lib/acl-internal.h: Remove redundant include.
56833         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
56834         Cygwin when a file is locked.
56835
56836 2007-03-29  Bruno Haible  <bruno@clisp.org>
56837
56838         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
56839         file.
56840         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
56841
56842 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
56843
56844         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
56845         try to remove a parent directory if the child couldn't be removed
56846         (except for the first rmdir, which could fail because the child
56847         doesn't exist).  Problem reported by Jeff Blaine in
56848         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
56849
56850 2007-03-28  Bruno Haible  <bruno@clisp.org>
56851
56852         * lib/striconveh.c (utf8conv_carefully): New function.
56853         (mem_cd_iconveh_internal): Invoke it.
56854
56855 2007-03-28  Bruno Haible  <bruno@clisp.org>
56856
56857         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
56858         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
56859         input.
56860         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
56861         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
56862         unistr/u8-uctomb.
56863
56864 2007-03-28  Bruno Haible  <bruno@clisp.org>
56865
56866         * modules/unistr/u8-mbtoucr: New file.
56867         * lib/unistr/u8-mbtoucr.c: New file.
56868         * modules/unistr/u16-mbtoucr: New file.
56869         * lib/unistr/u16-mbtoucr.c: New file.
56870         * modules/unistr/u16-mbtoucr: New file.
56871         * lib/unistr/u16-mbtoucr.c: New file.
56872         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
56873
56874 2007-03-27  Simon Josefsson  <simon@josefsson.org>
56875             Bruno Haible  <bruno@clisp.org>
56876
56877         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
56878         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
56879         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
56880
56881         * m4/stdio_h.m4: Add stubs for vasprintf too.
56882
56883         * modules/stdio: Support vasprintf in sed command.
56884
56885         * modules/vasprintf: Depend on stdio for prototypes.  Remove
56886         vasprintf.h.  Add stdio module indicator.
56887
56888         * lib/stdio_.h: Declare asprintf and vasprintf, based on
56889         vasprintf.h.
56890
56891         * lib/vasprintf.h: File removed.
56892
56893         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
56894         * lib/vasprintf.c: Ditto.
56895         * lib/xvasprintf.c: Ditto.
56896         * tests/test-vasprintf-posix.c: Ditto.
56897         * tests/test-vasprintf.c: Ditto.
56898
56899 2007-03-27  Bruno Haible  <bruno@clisp.org>
56900
56901         Make vasnprintf multithread-safe.
56902         * lib/vasnprintf.c (decimal_point_char): New function.
56903         (VASNPRINTF): Use it.
56904         Suggested by Simon Josefsson.
56905
56906 2007-03-27  Eric Blake  <ebb9@byu.net>
56907
56908         Support sub-second birthtime on cygwin.
56909         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
56910         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
56911         (get_stat_birthtime): Also work with st_birthtim.
56912
56913 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
56914
56915         * lib/stat-time.h (USE_BIRTHTIME): Remove.
56916         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
56917         (get_stat_birthtime_ns): Do not try to use "spare" fields.
56918         (get_stat_birthtime_ns): Simplify compile-time tests.
56919         (get_stat_birthtime): Change the API to look like
56920         get_stat_mtime etc., except return a negative tv_nsec on error.
56921         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
56922         Don't check for "spare" fields.
56923         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
56924         or for struct stat.st_birthtime, as these tests aren't used.
56925         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
56926
56927 2007-03-27  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/stat-time.h: Include <sys/stat.h>.
56930
56931 2007-03-27  James Youngman  <jay@gnu.org>
56932
56933         * lib/stat-time.h (get_stat_birthtime): New function for
56934           retrieving st_birthtime as provided by UFS2 (hence *BSD).
56935         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
56936           and its variants.
56937         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
56938         * modules/stat-time-test: New file.
56939         * tests/test-stat-time.c: New test, devised by Bruno Haible.
56940
56941 2007-03-26  Bruno Haible  <bruno@clisp.org>
56942
56943         Better support of signalling NaNs.
56944         * lib/atanl.c: Include isnanl.h.
56945         (atanl): Perform test for NaN at the beginning of the function and
56946         through a call to isnanl.
56947         * lib/cosl.c: Include isnanl.h.
56948         (cosl): Perform test for NaN at the beginning of the function and
56949         through a call to isnanl.
56950         * lib/ldexpl.c: Include isnanl.h.
56951         (ldexpl): Perform test for NaN through a call to isnanl.
56952         * lib/logl.c: Include isnanl.h.
56953         (logl): Perform test for NaN at the beginning of the function and
56954         through a call to isnanl.
56955         * lib/sinl.c: Include isnanl.h.
56956         (sinl): Perform test for NaN at the beginning of the function and
56957         through a call to isnanl.
56958         * lib/sqrtl.c: Include isnanl.h.
56959         (sqrtl): Perform test for NaN at the beginning of the function and
56960         through a call to isnanl.
56961         * lib/tanl.c: Include isnanl.h.
56962         (tanl): Perform test for NaN at the beginning of the function and
56963         through a call to isnanl.
56964         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
56965         * modules/mathl (Depends-on): Add isnanl.
56966
56967 2007-03-26  Eric Blake  <ebb9@byu.net>
56968
56969         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
56970         regression in logic sense of previous patch.
56971
56972 2007-03-26  Bruno Haible  <bruno@clisp.org>
56973
56974         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
56975         unportable shell command "if ! ...".
56976         Reported by Ralf Wildenhues.
56977
56978 2007-03-25  Bruno Haible  <bruno@clisp.org>
56979
56980         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
56981         <sysexits.h> file, and only add EX_CONFIG.
56982         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
56983         absolute file name and whether it is sufficient. Substitute also
56984         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
56985         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
56986         ABSOLUTE_SYSEXITS_H into sysexits.h.
56987
56988 2007-03-25  Bruno Haible  <bruno@clisp.org>
56989
56990         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
56991         hints is NULL.
56992
56993 2007-03-25  Bruno Haible  <bruno@clisp.org>
56994
56995         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
56996         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
56997
56998 2007-03-25  Bruno Haible  <bruno@clisp.org>
56999
57000         * lib/vasnprintf.c: Include langinfo.h.
57001         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
57002         multithread-safe.
57003         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
57004         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
57005         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
57006         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57007         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57008         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57009         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
57010         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
57011         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57012         Reported by Simon Josefsson.
57013
57014 2007-03-25  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
57017         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
57018         * modules/vasnprintf (Depends-on): Add stdint.
57019
57020 2007-03-25  Bruno Haible  <bruno@clisp.org>
57021
57022         * modules/fpieee: New file.
57023         * m4/fpieee.m4: New file.
57024         * modules/isnan-nolibm (Depends-on): Add fpieee.
57025         * modules/isnanl-nolibm (Depends-on): Add fpieee.
57026         * modules/isnanl (Depends-on): Add fpieee.
57027
57028 2007-03-25  Bruno Haible  <bruno@clisp.org>
57029
57030         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
57031
57032 2007-03-25  Bruno Haible  <bruno@clisp.org>
57033
57034         Avoid test failures on IRIX 6.5.
57035         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
57036         (main): Use it.
57037         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
57038         macros.
57039         (main): Use them.
57040
57041 2007-03-25  Bruno Haible  <bruno@clisp.org>
57042
57043         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
57044         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
57045         exists but doesn't work.
57046         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
57047         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
57048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
57049         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
57050         math.h.
57051
57052 2007-03-25  Bruno Haible  <bruno@clisp.org>
57053
57054         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
57055         returns inf. Needed on IRIX 6.5.
57056
57057 2007-03-25  Bruno Haible  <bruno@clisp.org>
57058
57059         * tests/test-frexpl.c: Include isnanl-nolibm.h.
57060         (main): Use isnanl instead of x != x idiom.
57061         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
57062
57063         * tests/test-frexp.c: Include isnan.h.
57064         (main): Use isnan instead of x != x idiom.
57065         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
57066
57067 2007-03-25  Bruno Haible  <bruno@clisp.org>
57068
57069         * tests/test-frexp.c (NaN): New function/macro.
57070         (main): Use it instead of 0.0 / 0.0.
57071         * tests/test-isnan.c (NaN): New function/macro.
57072         (main): Use it instead of 0.0 / 0.0.
57073         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
57074         (test_function): Use it instead of 0.0 / 0.0.
57075         * tests/test-vasprintf-posix.c (NaN): New function/macro.
57076         (test_function): Use it instead of 0.0 / 0.0.
57077         * tests/test-snprintf-posix.h (NaN): New function/macro.
57078         (test_function): Use it instead of 0.0 / 0.0.
57079         * tests/test-sprintf-posix.h (NaN): New function/macro.
57080         (test_function): Use it instead of 0.0 / 0.0.
57081         * tests/test-fprintf-posix.h (NaN): New function/macro.
57082         (test_function): Use it instead of 0.0 / 0.0.
57083         * tests/test-printf-posix.h (NaN): New function/macro.
57084         (test_function): Use it instead of 0.0 / 0.0.
57085
57086         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
57087
57088 2007-03-25  Bruno Haible  <bruno@clisp.org>
57089
57090         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
57091
57092 2007-03-25  Bruno Haible  <bruno@clisp.org>
57093
57094         * lib/regexec.c (merge_state_with_log): Make static.
57095
57096 2007-03-25  Bruno Haible  <bruno@clisp.org>
57097
57098         * lib/trigl.c (kernel_rem_pio2): Make static.
57099
57100 2007-03-25  Bruno Haible  <bruno@clisp.org>
57101
57102         * lib/sincosl.c (sincosl_table): Make static.
57103
57104 2007-03-25  Bruno Haible  <bruno@clisp.org>
57105
57106         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
57107         if the compiler does not support C99.
57108
57109 2007-03-25  Bruno Haible  <bruno@clisp.org>
57110
57111         * modules/time (Makefile.am): Ensure all rule action lines start with a
57112         tab.
57113
57114 2007-03-24  Bruno Haible  <bruno@clisp.org>
57115
57116         * modules/tsearch-tests: New file.
57117         * tests/test-tsearch.sh: New file.
57118         * tests/test-tsearch.c: New file, mostly copied from glibc.
57119
57120         * modules/search-tests: New file.
57121         * tests/test-search.c: New file.
57122
57123         * modules/search: New file.
57124         * lib/search_.h: New file, incorporating lib/tsearch.h.
57125         * m4/search_h.m4: New file.
57126         * lib/tsearch.h: Remove file.
57127         * lib/tsearch.c: Include search.h instead of tsearch.h.
57128         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
57129         HAVE_TSEARCH.
57130         * modules/tsearch (Files): Remove lib/tsearch.h.
57131         (Depends-on): Add search.
57132         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
57133         (Include): Change tsearch.h into search.h.
57134
57135 2007-03-24  Bruno Haible  <bruno@clisp.org>
57136
57137         * modules/fpucw: New file.
57138         * lib/fpucw.h: New file.
57139         * lib/frexp.c: Include fpucw.h.
57140         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57141         (FUNC): Use them.
57142         * lib/printf-frexp.c: Include fpucw.h.
57143         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
57144         (FUNC): Use them.
57145         * lib/vasnprintf.c: Include fpucw.h.
57146         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
57147         'long double' calculations.
57148         * tests/test-frexpl.c: Include fpucw.h.
57149         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57150         * tests/test-printf-frexpl.c: Include fpucw.h.
57151         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
57152         * modules/frexpl (Depends-on): Add fpucw.
57153         * modules/printf-frexpl (Depends-on): Likewise.
57154         * modules/fprintf-posix (Depends-on): Likewise.
57155         * modules/snprintf-posix (Depends-on): Likewise.
57156         * modules/sprintf-posix (Depends-on): Likewise.
57157         * modules/vasnprintf-posix (Depends-on): Likewise.
57158         * modules/vasprintf-posix (Depends-on): Likewise.
57159         * modules/vfprintf-posix (Depends-on): Likewise.
57160         * modules/vsnprintf-posix (Depends-on): Likewise.
57161         * modules/vsprintf-posix (Depends-on): Likewise.
57162         * modules/frexpl-tests (Depends-on): Likewise.
57163         * modules/printf-frexpl-tests (Depends-on): Likewise.
57164
57165 2007-03-24  Bruno Haible  <bruno@clisp.org>
57166
57167         * lib/float+.h: New file.
57168         * lib/isnan.c: Include float+.h.
57169         (SIZE): New macro.
57170         (FUNC): Compare only SIZE bytes of the value.
57171         * lib/vasnprintf.c: Include float+.h.
57172         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
57173         SIZEOF_LDBL or SIZEOF_DBL bytes.
57174         * modules/isnan-nolibm (Files): Add lib/float+.h.
57175         * modules/isnanl-nolibm (Files): Add lib/float+.h.
57176         * modules/isnanl (Files): Add lib/float+.h.
57177         * modules/vasnprintf (Files): Add lib/float+.h.
57178
57179 2007-03-24  Bruno Haible  <bruno@clisp.org>
57180
57181         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
57182         include isnanl-nolibm.h.
57183
57184 2007-03-24  Bruno Haible  <bruno@clisp.org>
57185
57186         * tests/test-read-file.c (main): Don't produce spurious output for
57187         expected situations. Make the test fail if it encountered unexpected
57188         results.
57189
57190 2007-03-24  Bruno Haible  <bruno@clisp.org>
57191
57192         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
57193         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
57194
57195 2007-03-24  Bruno Haible  <bruno@clisp.org>
57196
57197         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
57198
57199 2007-03-24  Bruno Haible  <bruno@clisp.org>
57200
57201         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
57202         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
57203
57204         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
57205         * modules/utf8-ucs4: Turn into a symbolic link to module
57206         unistr/u8-mbtouc.
57207
57208         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
57209         utf8-ucs4-unsafe.
57210         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
57211         unistr/u8-mbtouc-unsafe.
57212
57213         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
57214         * modules/utf16-ucs4: Turn into a symbolic link to module
57215         unistr/u16-mbtouc.
57216
57217         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
57218         utf16-ucs4-unsafe.
57219         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
57220         unistr/u16-mbtouc-unsafe.
57221
57222         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
57223         * modules/ucs4-utf8: Turn into a symbolic link to module
57224         unistr/u8-ubtomb.
57225
57226         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
57227         * modules/ucs4-utf16: Turn into a symbolic link to module
57228         unistr/u16-ubtomb.
57229
57230 2007-03-24  Bruno Haible  <bruno@clisp.org>
57231
57232         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
57233         Enable the function only if HAVE_INLINE.
57234         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
57235         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57236         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
57237         Enable the function only if HAVE_INLINE.
57238         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
57239         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
57240         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
57241         Enable the function only if HAVE_INLINE.
57242         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
57243         Enable the function only if HAVE_INLINE.
57244         * modules/utf8-ucs4: Update.
57245         * modules/utf8-ucs4-unsafe: Update.
57246         * modules/utf16-ucs4: Update.
57247         * modules/utf16-ucs4-unsafe: Update.
57248         * modules/ucs4-utf8: Update.
57249         * modules/ucs4-utf16: Update.
57250
57251 2007-03-24  Bruno Haible  <bruno@clisp.org>
57252
57253         * lib/utf8-ucs4.h: Remove file.
57254         * lib/utf8-ucs4-unsafe.h: Remove file.
57255         * lib/utf16-ucs4.h: Remove file.
57256         * lib/utf16-ucs4-unsafe.h: Remove file.
57257         * lib/ucs4-utf8.h: Remove file.
57258         * lib/ucs4-utf16.h: Remove file.
57259         * lib/unistr.h: Include their previous contents.
57260         * m4/utf-ucs4.m4: Remove file.
57261         * m4/ucs4-utf.m4: Remove file.
57262         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
57263         (Depends-on): Add unistr/base.
57264         (configure.ac): Remove gl_UTF_UCS4.
57265         (Makefile.am): Update.
57266         (Include): Change to unistr.h.
57267         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
57268         (Depends-on): Add unistr/base.
57269         (configure.ac): Remove gl_UTF_UCS4.
57270         (Makefile.am): Update.
57271         (Include): Change to unistr.h.
57272         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
57273         (Depends-on): Add unistr/base.
57274         (configure.ac): Remove gl_UTF_UCS4.
57275         (Makefile.am): Update.
57276         (Include): Change to unistr.h.
57277         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
57278         (Depends-on): Add unistr/base.
57279         (configure.ac): Remove gl_UTF_UCS4.
57280         (Makefile.am): Update.
57281         (Include): Change to unistr.h.
57282         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
57283         (Depends-on): Add unistr/base.
57284         (configure.ac): Remove gl_UCS4_UTF.
57285         (Makefile.am): Update.
57286         (Include): Change to unistr.h.
57287         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
57288         (Depends-on): Add unistr/base.
57289         (configure.ac): Remove gl_UCS4_UTF.
57290         (Makefile.am): Update.
57291         (Include): Change to unistr.h.
57292         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
57293         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
57294         utf8-ucs4-unsafe.h.
57295         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
57296         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
57297         utf16-ucs4-unsafe.h.
57298         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
57299         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
57300         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
57301         * lib/unistr/u8-strchr.c: Likewise.
57302         * lib/unistr/u8-strrchr.c: Likewise.
57303         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
57304         * lib/unistr/u16-strchr.c: Likewise.
57305         * lib/unistr/u16-strrchr.c: Likewise.
57306         * lib/striconveh.c: Update.
57307         * lib/linebreak.c: Update.
57308
57309 2007-03-24  Bruno Haible  <bruno@clisp.org>
57310
57311         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
57312         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
57313
57314 2007-03-22  Bruno Haible  <bruno@clisp.org>
57315
57316         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
57317
57318 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
57319
57320         * MODULES.html.sh (File system functions): New module write-any-file.
57321         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
57322         * m4/write-any-file.m4: New files.
57323
57324 2007-03-23  Eric Blake  <ebb9@byu.net>
57325
57326         * gnulib-tool: Rearrange space-tab sequences, since some editors
57327         like to eat them.
57328
57329 2007-03-23  Eric Blake  <ebb9@byu.net>
57330
57331         * lib/version-etc.c (version_etc_va): Update license wording to
57332         be more concise.  Recommended by Richard Stallman.
57333
57334 2007-03-22  Bruno Haible  <bruno@clisp.org>
57335
57336         * lib/poll.c (MSG_PEEK): New fallback definition.
57337
57338 2007-03-22  Bruno Haible  <bruno@clisp.org>
57339
57340         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
57341         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
57342         (main): Update.
57343         Fixes a compilation error on BeOS.
57344
57345 2007-03-22  Bruno Haible  <bruno@clisp.org>
57346
57347         * modules/frexpl-tests: New file.
57348         * tests/test-frexpl.c: New file.
57349
57350         * modules/frexpl: New file.
57351         * m4/frexpl.m4: New file.
57352         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
57353         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
57354         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
57355         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
57356         (Depends-on): Add frexpl. Remove isnanl-nolibm.
57357         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
57358
57359 2007-03-22  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/frexpl.c: Share code with lib/frexp.c.
57362         * modules/mathl (Files): Add lib/frexp.c.
57363         (Depends-on): Add isnanl-nolibm.
57364
57365 2007-03-22  Bruno Haible  <bruno@clisp.org>
57366
57367         * modules/printf-frexp (Files): Add m4/frexp.m4.
57368         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
57369         only if the found frexp function actually works.
57370
57371 2007-03-22  Bruno Haible  <bruno@clisp.org>
57372
57373         * lib/frexp.c: Remove older implementation that uses divisions.
57374
57375 2007-03-21  Bruno Haible  <bruno@clisp.org>
57376
57377         * modules/frexp-tests: New file.
57378         * tests/test-frexp.c: New file.
57379
57380         * modules/frexp: New file.
57381         * lib/frexp.c: New file.
57382         * m4/frexp.m4: New file.
57383         * lib/math_.h (frexp): New declaration.
57384         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
57385         REPLACE_FREXP.
57386         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
57387
57388 2007-03-21  Bruno Haible  <bruno@clisp.org>
57389
57390         * modules/isnanl-tests: New file.
57391         * tests/test-isnanl.c: New file.
57392
57393         * modules/isnanl: New file.
57394         * lib/isnanl.h: New file.
57395         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
57396         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
57397         gl_FUNC_ISNANL_WORKS.
57398         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
57399         New macros.
57400
57401 2007-03-21  Bruno Haible  <bruno@clisp.org>
57402
57403         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
57404         lib/isnanl.h.
57405         (Include): Update.
57406         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
57407         * lib/vasnprintf.c: Update.
57408         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
57409         tests/test-isnanl.h, remove tests/test-isnanl.c.
57410         (Makefile.am): Update.
57411         * tests/test-isnanl-nolibm.c: New file.
57412         * tests/test-isnanl.h: New file.
57413         * tests/test-isnanl.c: Remove file.
57414
57415 2007-03-21  Jim Meyering  <jim@meyering.net>
57416
57417         When trying to open ".", treat ESTALE like EACCES.
57418         * lib/savewd.c (savewd_save): Resort to forking not just upon
57419         failure with EACCES, but also when errno is ESTALE.
57420
57421 2007-03-20  Bruno Haible  <bruno@clisp.org>
57422
57423         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
57424         Needed on AIX 5.1. Reported by Matthew Woehlke.
57425
57426 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57427
57428         Suggestions by Bruno Haible:
57429         * lib/acl-internal.h: Include "gettext.h" rather than rolling
57430         our own.
57431         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
57432         * modules/acl (Depends-on): Add gettext.
57433
57434 2007-03-19  Bruno Haible  <bruno@clisp.org>
57435
57436         * modules/iconvme: Remove file.
57437         * lib/iconvme.h: Remove file.
57438         * lib/iconvme.c: Remove file.
57439         * m4/iconvme.m4: Remove file.
57440
57441 2007-03-19  Bruno Haible  <bruno@clisp.org>
57442
57443         * doc/relocatable-maint.texi: Break long shell script line.
57444         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57445
57446 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57447
57448         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
57449         handle file_has_acl.
57450         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
57451         * lib/acl.c: Move header inclusions and related macro defns into
57452         lib/acl-internal.h.
57453         (S_ISLNK): Remove defn, since that's now done for us.
57454         (file_has_acl): Move to lib/file-has-acl.c.
57455         Call acl_trivial if available.  This is the crucial part of the fix.
57456         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
57457         shared within the library.  Rewrite a bit, partly to make it compatible
57458         with the GNU coding style.
57459         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
57460         Remove unnecessary double-quotes.
57461         Don't test for acl_to_text; the build will catch that.
57462         Replace acl_entries if it doesn't exist and it is needed.
57463         Check for -lsec and acl_trivial (as used on Solaris 10).
57464         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
57465         lib/file-has-acl.c.
57466         (Depends-on): Add sys_stat, for S_ISLNK.
57467
57468 2007-03-19  Ben Pfaff  <blp@gnu.org>
57469
57470         * doc/gnulib.texi: Fix typos.
57471         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
57472
57473 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
57474
57475         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
57476         If size is zero here, buf must be zero.
57477
57478 2007-03-19  Simon Josefsson  <simon@josefsson.org>
57479
57480         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
57481         <bruno@clisp.org>.
57482
57483 2007-03-18  Bruno Haible  <bruno@clisp.org>
57484
57485         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
57486         Suggested by Eric Blake.
57487
57488 2007-03-18  Ben Pfaff  <blp@gnu.org>
57489
57490         * doc/relocatable.texi: Recommend using as prefix a directory
57491         that does not exist and will never be created.  Based on
57492         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
57493         and others.
57494
57495 2007-03-17  Bruno Haible  <bruno@clisp.org>
57496
57497         * lib/fchownat.c: Include lchown.h.
57498
57499 2007-03-17  Bruno Haible  <bruno@clisp.org>
57500
57501         Fix endless loop when the given allocated size was > INT_MAX.
57502         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
57503         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
57504         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
57505         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
57506         * lib/sprintf.c (sprintf): Likewise.
57507
57508 2007-03-17  Bruno Haible  <bruno@clisp.org>
57509
57510         * tests/test-argp-2.sh (func_compare): Output a context diff.
57511
57512 2007-03-17  Bruno Haible  <bruno@clisp.org>
57513
57514         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
57515         locale's decimal-point character.
57516
57517 2007-03-17  Bruno Haible  <bruno@clisp.org>
57518
57519         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
57520         before comparing it. Needed because on some platforms (e.g. x86) a
57521         'long double' occupies less bytes than sizeof (long double).
57522
57523 2007-03-17  Bruno Haible  <bruno@clisp.org>
57524
57525         * tests/test-crc.c (main): Make printf statements 64-bit clean.
57526         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
57527         * tests/test-getaddrinfo.c (simple): Likewise.
57528         * tests/test-read-file.c (main): Likewise.
57529
57530 2007-03-17  Bruno Haible  <bruno@clisp.org>
57531
57532         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
57533
57534 2007-03-17  Bruno Haible  <bruno@clisp.org>
57535
57536         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
57537         unused variable.
57538
57539 2007-03-17  Bruno Haible  <bruno@clisp.org>
57540
57541         * tests/test-c-strcasecmp.c: Include c-strcase.h.
57542         * tests/test-c-strncasecmp.c: Likewise.
57543
57544 2007-03-17  Bruno Haible  <bruno@clisp.org>
57545
57546         * modules/stdlib (Depends-on): Add unistd.
57547         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
57548         Needed for MacOS X 10.3.
57549
57550 2007-03-17  Bruno Haible  <bruno@clisp.org>
57551
57552         * lib/unistr/u-strdup.h: Include <stdlib.h>.
57553
57554 2007-03-17  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
57557
57558 2007-03-17  Bruno Haible  <bruno@clisp.org>
57559
57560         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
57561         to reflect files copied from gnulib (with or without modifications).
57562         Suggested by Jim Meyering.
57563
57564 2007-03-17  Eric Blake  <ebb9@byu.net>
57565
57566         * NEWS: Document stdlib change from 2007-02-18.
57567
57568 2007-03-17  Jim Meyering  <jim@meyering.net>
57569
57570         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
57571         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
57572         someone uses a name containing shell meta-characters.
57573         Reported by Alfred M. Szmidt.
57574
57575         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
57576
57577 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57578
57579         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
57580         and copy gettext configuration files only if configure.ac contains
57581         a use of AM_GNU_GETTEXT_VERSION.
57582
57583 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
57584
57585         * build-aux/bootstrap (gnulib_name): New variable.
57586         (gnulib_tool_options): Use it.
57587
57588 2007-03-13  Simon Josefsson  <simon@josefsson.org>
57589
57590         * tests/test-des.c: Use new namespace.
57591
57592 2007-03-15  Bruno Haible  <bruno@clisp.org>
57593
57594         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
57595         Reported by James Youngman <jay@gnu.org>.
57596
57597 2007-03-15  Bruno Haible  <bruno@clisp.org>
57598
57599         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
57600         declared prototype. Needed with cc on OSF/1 5.1.
57601
57602 2007-03-15  Bruno Haible  <bruno@clisp.org>
57603
57604         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
57605         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
57606         (struct gl_list_implementation): Add dispose_fn argument to the
57607         'create_empty', 'create' methods.
57608         (struct gl_list_impl_base): Add field 'dispose_fn'.
57609         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
57610         argument.
57611         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
57612         dispose_fn argument.
57613         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
57614         dispose_fn on the dropped values.
57615         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
57616         dispose_fn argument.
57617         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
57618         dropped values.
57619         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
57620         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57621         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
57622         (gl_tree_remove_node): Call dispose_fn on the dropped value.
57623         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
57624         argument.
57625         (gl_tree_list_free): Call dispose_fn on the dropped values.
57626         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
57627         the dropped values.
57628         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
57629         Add dispose_fn argument.
57630         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
57631         Call dispose_fn on the dropped values.
57632         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
57633         Add dispose_fn argument.
57634         (gl_sublist_create): Initialize the 'dispose_fn' field.
57635         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
57636         * tests/test-array_list.c (main): Update.
57637         * tests/test-carray_list.c (main): Update.
57638         * tests/test-avltree_list.c (main): Update.
57639         * tests/test-rbtree_list.c (main): Update.
57640         * tests/test-avltreehash_list.c (main): Update.
57641         * tests/test-rbtreehash_list.c (main): Update.
57642         * tests/test-linked_list.c (main): Update.
57643         * tests/test-linkedhash_list.c (main): Update.
57644         * tests/test-array_oset.c (main): Update.
57645
57646 2007-03-15  Bruno Haible  <bruno@clisp.org>
57647
57648         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
57649         (gl_oset_create_empty): Add dispose_fn argument.
57650         (struct gl_oset_implementation): Add dispose_fn argument to
57651         'create_empty' method.
57652         (struct gl_oset_impl_base): Add dispose_fn field.
57653         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
57654         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
57655         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
57656         values.
57657         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
57658         (gl_tree_oset_free): Call dispose_fn on the dropped values.
57659         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57660         dropped value.
57661         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
57662         dropped value.
57663         * tests/test-array_oset.c (main): Update.
57664         * tests/test-avltree_oset.c (main): Update.
57665         * tests/test-rbtree_oset.c (main): Update.
57666         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
57667
57668 2007-03-13  Bruno Haible  <bruno@clisp.org>
57669
57670         * tests/test-stdbool.c (i): Update after last patch.
57671
57672 2007-03-12  Bruno Haible  <bruno@clisp.org>
57673
57674         * lib/quotearg.c: Include <wctype.h> early, before the definition of
57675         the iswprint macro. Needed on Solaris 2.5.1.
57676
57677 2007-03-12  Bruno Haible  <bruno@clisp.org>
57678
57679         * tests/test-printf-frexp.c (main): Declare x as volatile.
57680
57681 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57682
57683         * doc/gnulib.texi (Build robot for gnulib): New section.
57684
57685 2007-03-12  Jim Meyering  <jim@meyering.net>
57686
57687         * build-aux/bootstrap: New file.
57688         * build-aux/bootstrap.conf: New file, from coreutils.
57689
57690 2007-03-11  Bruno Haible  <bruno@clisp.org>
57691
57692         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
57693
57694 2007-03-12  Simon Josefsson  <simon@josefsson.org>
57695
57696         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
57697         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
57698         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
57699
57700 2007-03-11  Bruno Haible  <bruno@clisp.org>
57701
57702         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
57703         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
57704
57705 2007-03-11  Bruno Haible  <bruno@clisp.org>
57706
57707         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
57708         formula. Needed for SunPRO C 5.0.
57709
57710 2007-03-11  Bruno Haible  <bruno@clisp.org>
57711
57712         * modules/long-options (Depends-on): Add getopt.
57713
57714 2007-03-11  Bruno Haible  <bruno@clisp.org>
57715
57716         * modules/modechange (Depends-on): Add stdbool.
57717
57718 2007-03-11  Bruno Haible  <bruno@clisp.org>
57719
57720         * modules/i-ring (Depends-on): Add stdbool.
57721
57722 2007-03-11  Bruno Haible  <bruno@clisp.org>
57723
57724         * modules/gc-des (Depends-on): Add stdbool.
57725
57726 2007-03-11  Bruno Haible  <bruno@clisp.org>
57727
57728         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
57729
57730 2007-03-11  Bruno Haible  <bruno@clisp.org>
57731
57732         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
57733
57734 2007-03-11  Bruno Haible  <bruno@clisp.org>
57735
57736         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
57737
57738 2007-03-11  Bruno Haible  <bruno@clisp.org>
57739
57740         * lib/vasnprintf.c (sprintf): Undefine.
57741
57742 2007-03-11  Bruno Haible  <bruno@clisp.org>
57743
57744         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
57745         initializers in SunPRO C and Compaq C compilers.
57746
57747 2007-03-11  Bruno Haible  <bruno@clisp.org>
57748
57749         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
57750         decrementing code ANSI C compliant.
57751
57752 2007-03-11  Bruno Haible  <bruno@clisp.org>
57753
57754         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
57755         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
57756
57757 2007-03-11  Bruno Haible  <bruno@clisp.org>
57758
57759         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
57760         <stdbool.h> substitute doesn't pass.
57761
57762 2007-03-11  Bruno Haible  <bruno@clisp.org>
57763
57764         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
57765
57766 2007-03-11  Bruno Haible  <bruno@clisp.org>
57767
57768         * gnulib-tool (func_create_megatestdir): Create also an autobuild
57769         script, for submission to autobuild.josefsson.org.
57770
57771 2007-03-10  Bruno Haible  <bruno@clisp.org>
57772
57773         * modules/canonicalize-lgpl-tests: New file.
57774         * tests/test-canonicalize-lgpl.sh: New file.
57775         * tests/test-canonicalize-lgpl.c: New file.
57776
57777         * modules/c-strcase-tests: New file.
57778         * tests/test-c-strcase.sh: New file.
57779         * tests/test-c-strcasecmp.c: New file.
57780         * tests/test-c-strncasecmp.c: New file.
57781
57782         * modules/atexit-tests: New file.
57783         * tests/test-atexit.sh: New file.
57784         * tests/test-atexit.c: New file.
57785
57786 2007-03-10  Bruno Haible  <bruno@clisp.org>
57787
57788         * tests/test-binary-io.sh: Use temporary filenames that are not so
57789         likely to clash with those of other tests (in a parallel make).
57790         * tests/test-binary-io.c: Likewise.
57791
57792 2007-03-10  Bruno Haible  <bruno@clisp.org>
57793
57794         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
57795         fallback; use #error instead.
57796         Suggested by Simon Josefsson.
57797
57798 2007-03-10  Bruno Haible  <bruno@clisp.org>
57799
57800         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
57801         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
57802         first and the last.
57803
57804 2007-03-10  Bruno Haible  <bruno@clisp.org>
57805
57806         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
57807
57808 2007-03-10  Bruno Haible  <bruno@clisp.org>
57809
57810         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
57811         "make distcheck".
57812         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
57813         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
57814         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
57815
57816 2007-03-10  Bruno Haible  <bruno@clisp.org>
57817
57818         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
57819         variable.
57820         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
57821         variable.
57822
57823 2007-03-09  Eric Blake  <ebb9@byu.net>
57824         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
57825
57826         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
57827         types are not being provided by gnulib.
57828         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
57829         types are supported.
57830
57831 2007-03-10  Bruno Haible  <bruno@clisp.org>
57832
57833         * lib/stdio_.h (__attribute__): New macro.
57834         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
57835         vsprintf): Specify __attribute__ __format__ for GCC.
57836         Suggested by Eric Blake.
57837
57838 2007-03-09  Bruno Haible  <bruno@clisp.org>
57839
57840         * modules/printf-posix-tests: New file.
57841         * tests/test-printf-posix.sh: New file.
57842         * tests/test-printf-posix.c: New file.
57843
57844         * modules/printf-posix: New file.
57845         * lib/printf.c: New file.
57846         * m4/printf-posix-rpl.m4: New file.
57847         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
57848         REPLACE_PRINTF.
57849         * lib/stdio_.h (printf): New declaration.
57850         (format, __format__, ____printf____, ____scanf____, ____strftime____,
57851         ____strfmon____): New macros.
57852         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
57853         REPLACE_PRINTF.
57854
57855 2007-03-09  Bruno Haible  <bruno@clisp.org>
57856
57857         * tests/test-vasnprintf-posix2.sh: New file.
57858         * tests/test-vasnprintf-posix2.c: New file.
57859         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
57860         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
57861         (Makefile.am): Activate test-vasnprintf-posix2.sh.
57862
57863         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
57864         a locale dependent decimal point, rather than always '.'.
57865
57866 2007-03-09  Eric Blake  <ebb9@byu.net>
57867
57868         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
57869         spite of platforms like Tandem/NSK that define it to -1.
57870
57871 2007-03-08  Bruno Haible  <bruno@clisp.org>
57872
57873         * modules/vprintf-posix-tests: New file.
57874         * tests/test-vprintf-posix.sh: New file.
57875         * tests/test-vprintf-posix.c: New file.
57876         * tests/test-printf-posix.h: New file.
57877
57878         * modules/vprintf-posix: New file.
57879         * lib/vprintf.c: New file.
57880         * m4/vprintf-posix.m4: New file.
57881         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
57882         REPLACE_VPRINTF.
57883         * lib/stdio_.h (vprintf): New declaration.
57884         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
57885         REPLACE_VPRINTF.
57886
57887 2007-03-08  Bruno Haible  <bruno@clisp.org>
57888
57889         * modules/fprintf-posix-tests: New file.
57890         * tests/test-fprintf-posix.sh: New file.
57891         * tests/test-fprintf-posix.c: New file.
57892
57893         * modules/fprintf-posix: New file.
57894         * lib/fprintf.c: New file.
57895         * m4/fprintf-posix.m4: New file.
57896         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
57897         REPLACE_FPRINTF.
57898         * lib/stdio_.h (fprintf): New declaration.
57899         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
57900         REPLACE_FPRINTF.
57901
57902 2007-03-08  Bruno Haible  <bruno@clisp.org>
57903
57904         * modules/vfprintf-posix-tests: New file.
57905         * tests/test-vfprintf-posix.sh: New file.
57906         * tests/test-vfprintf-posix.c: New file.
57907         * tests/test-fprintf-posix.h: New file.
57908         * tests/test-fprintf-posix.out: New file.
57909
57910         * modules/vfprintf-posix: New file.
57911         * lib/vfprintf.c: New file.
57912         * m4/vfprintf-posix.m4: New file.
57913         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
57914         REPLACE_VFPRINTF.
57915         * lib/stdio_.h (vfprintf): New declaration.
57916         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
57917         REPLACE_VFPRINTF.
57918
57919 2007-03-08  Bruno Haible  <bruno@clisp.org>
57920
57921         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
57922
57923 2007-03-08  Bruno Haible  <bruno@clisp.org>
57924
57925         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
57926         instead of 'expr' invocations.
57927         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
57928         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
57929         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
57930         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57931         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
57932         Suggested by Paul Eggert.
57933
57934 2007-03-08  Bruno Haible  <bruno@clisp.org>
57935
57936         * modules/fseterr-tests: New file.
57937         * tests/test-fseterr.c: New file.
57938
57939         * modules/fseterr: New file.
57940         * lib/fseterr.h: New file.
57941         * lib/fseterr.c: New file.
57942
57943 2007-03-08  Bruno Haible  <bruno@clisp.org>
57944
57945         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
57946         * lib/getopt_.h: Likewise.
57947         * lib/mbswidth.h: Likewise.
57948         * lib/setenv.h: Likewise.
57949         * lib/vasnprintf.h: Likewise.
57950         * lib/vasprintf.h: Likewise.
57951         * lib/verror.h: Likewise.
57952         * lib/xsetenv.h: Likewise.
57953         * lib/xvasprintf.h: Likewise.
57954
57955 2007-03-08  Jim Meyering  <jim@meyering.net>
57956
57957         * users.txt: Add parted.
57958
57959         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
57960
57961 2007-03-07  Bruno Haible  <bruno@clisp.org>
57962
57963         * m4/printf.m4: Make the shell script snippets copy&pastable.
57964
57965 2007-03-02  Bruno Haible  <bruno@clisp.org>
57966
57967         * lib/netinet_in_.h: New file.
57968         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
57969         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
57970         * modules/netinet_in (Files): Add lib/netinet_in_.h.
57971         (Depends-on): Add absolute-header.
57972         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
57973         into netinet/in.h.
57974
57975 2007-03-03  Bruno Haible  <bruno@clisp.org>
57976
57977         * lib/sys_select_.h: New file.
57978         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
57979         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
57980         * modules/sys_select (Files): Add lib/sys_select_.h.
57981         (Depends-on): Add absolute-header.
57982         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
57983         into sys/select.h.
57984
57985 2007-03-02  Bruno Haible  <bruno@clisp.org>
57986
57987         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
57988         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
57989         values.
57990         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
57991         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
57992         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
57993         * modules/sys_socket (Depends-on): Add absolute-header.
57994         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
57995         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
57996         (Include): Remove requirement of inclusion of <sys/types.h>.
57997
57998 2007-03-02  Bruno Haible  <bruno@clisp.org>
57999
58000         * lib/byteswap_.h (bswap_32): Fix formula.
58001
58002 2007-03-06  Bruno Haible  <bruno@clisp.org>
58003
58004         * modules/sprintf-posix-tests: New file.
58005         * tests/test-sprintf-posix.c: New file.
58006
58007         * modules/sprintf-posix: New file.
58008         * lib/sprintf.c: New file.
58009         * m4/sprintf-posix.m4: New file.
58010         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
58011         REPLACE_SPRINTF.
58012         * lib/stdio_.h (sprintf): New declaration.
58013         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
58014         REPLACE_SPRINTF.
58015
58016 2007-03-06  Bruno Haible  <bruno@clisp.org>
58017
58018         * modules/vsprintf-posix-tests: New file.
58019         * tests/test-vsprintf-posix.c: New file.
58020         * tests/test-sprintf-posix.h: New file.
58021
58022         * modules/vsprintf-posix: New file.
58023         * lib/vsprintf.c: New file.
58024         * m4/vsprintf-posix.m4: New file.
58025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
58026         REPLACE_VSPRINTF.
58027         * lib/stdio_.h (vsprintf): New declaration.
58028         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
58029         REPLACE_VSPRINTF.
58030
58031 2007-03-06  Bruno Haible  <bruno@clisp.org>
58032
58033         * modules/vsnprintf (Depend-on): Remove minmax.
58034
58035 2007-03-06  Bruno Haible  <bruno@clisp.org>
58036
58037         * modules/snprintf-posix-tests: New file.
58038         * tests/test-snprintf-posix.c: New file.
58039
58040         * modules/snprintf-posix: New file.
58041         * m4/snprintf-posix.m4: New file.
58042         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
58043         gl_FUNC_SNPRINTF.
58044         (gl_FUNC_SNPRINTF): Invoke it.
58045         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
58046         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
58047         is set.
58048         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
58049
58050 2007-03-06  Bruno Haible  <bruno@clisp.org>
58051
58052         * modules/vsnprintf-posix-tests: New file.
58053         * tests/test-vsnprintf-posix.c: New file.
58054         * tests/test-snprintf-posix.h: New file.
58055
58056         * modules/vsnprintf-posix: New file.
58057         * m4/vsnprintf-posix.m4: New file.
58058         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
58059         gl_FUNC_VSNPRINTF.
58060         (gl_FUNC_VSNPRINTF): Invoke it.
58061         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
58062         * lib/stdio_.h (vsnprintf): Define as a replacement if
58063         REPLACE_VSNPRINTF is set.
58064         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
58065
58066 2007-03-06  Bruno Haible  <bruno@clisp.org>
58067
58068         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
58069         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
58070
58071 2007-03-06  Bruno Haible  <bruno@clisp.org>
58072
58073         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
58074         (asinl): Declare also if HAVE_DECL_ASINL is set.
58075         (atanl): Declare also if HAVE_DECL_ATANL is set.
58076         (ceill): Declare also if HAVE_DECL_CEILL is set.
58077         (cosl): Declare also if HAVE_DECL_COSL is set.
58078         (expl): Declare also if HAVE_DECL_EXPL is set.
58079         (floorl): Declare also if HAVE_DECL_FLOORL is set.
58080         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
58081         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
58082         (logl): Declare also if HAVE_DECL_LOGL is set.
58083         (sinl): Declare also if HAVE_DECL_SINL is set.
58084         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
58085         (tanl): Declare also if HAVE_DECL_TANL is set.
58086         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
58087         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
58088         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
58089         declaration of frexpl, ldexpl.
58090         * modules/printf-frexpl (Depends-on): Add math.
58091         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
58092
58093 2007-03-05  Bruno Haible  <bruno@clisp.org>
58094
58095         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
58096         frexpl and ldexpl are declared.
58097         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
58098
58099 2007-03-05  Bruno Haible  <bruno@clisp.org>
58100
58101         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
58102         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
58103
58104 2007-03-05  Bruno Haible  <bruno@clisp.org>
58105
58106         * lib/stdio_.h: Include <stddef.h>.
58107
58108 2007-03-05  Bruno Haible  <bruno@clisp.org>
58109
58110         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
58111
58112 2007-03-05  Bruno Haible  <bruno@clisp.org>
58113
58114         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
58115         NetBSD 4, from Ralf Wildenhues.
58116
58117 2007-03-04  Bruno Haible  <bruno@clisp.org>
58118
58119         * lib/vasprintf.h: Update #if logic for the case when the functions
58120         exist but are overridden.
58121
58122 2007-03-04  Bruno Haible  <bruno@clisp.org>
58123
58124         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
58125         implementations: glibc-2.4 and MacOS X 10.3.
58126         * tests/test-vasnprintf-posix.c (test_function): Test also the case
58127         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
58128         * tests/test-vasprintf-posix.c (test_function): Likewise.
58129
58130 2007-03-04  Bruno Haible  <bruno@clisp.org>
58131
58132         * modules/vasprintf-posix-tests: New file.
58133         * tests/test-vasprintf-posix.c: New file.
58134
58135         * modules/vasprintf-posix: New file.
58136         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
58137         defined.
58138         * m4/vasprintf-posix.m4: New file.
58139         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
58140         gl_FUNC_VASPRINTF.
58141         (gl_FUNC_VASPRINTF): Invoke it.
58142         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
58143         here.
58144         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
58145
58146 2007-03-04  Bruno Haible  <bruno@clisp.org>
58147
58148         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
58149         REPLACE_GETTIMEOFDAY.
58150         * modules/sys_time (Makefile.am): Likewise.
58151         * m4/sys_time_h.m4: Likewise.
58152         * m4/gettimeofday.m4: Likewise.
58153
58154 2007-03-04  Bruno Haible  <bruno@clisp.org>
58155
58156         * modules/vasnprintf-posix-tests: New file.
58157         * tests/test-vasnprintf-posix.c: New file.
58158
58159         * modules/vasnprintf-posix: New file.
58160         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
58161         printf-frexpl.h.
58162         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
58163         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
58164         REPLACE_VASNPRINTF is defined.
58165         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
58166         gl_FUNC_VASNPRINTF.
58167         (gl_FUNC_VASNPRINTF): Invoke it.
58168         * m4/vasnprintf-posix.m4: New file.
58169         * m4/printf.m4: New file.
58170
58171 2007-03-04  Bruno Haible  <bruno@clisp.org>
58172
58173         Compile progreloc.c only if --enable-relocatable is specified.
58174         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
58175         if --enable-relocatable was specified.
58176         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
58177         lib_SOURCES.
58178
58179 2007-03-04  Jim Meyering  <jim@meyering.net>
58180
58181         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
58182         Use it consistently, rather than enumerating errno constants.
58183
58184 2007-03-04  Bruno Haible  <bruno@clisp.org>
58185
58186         * modules/xvasprintf-tests: New file.
58187         * tests/test-xvasprintf.c: New file.
58188
58189         * modules/vasprintf-tests: New file.
58190         * tests/test-vasprintf.c: New file.
58191
58192         * modules/vasnprintf-tests: New file.
58193         * tests/test-vasnprintf.c: New file.
58194
58195         * modules/vsnprintf-tests: New file.
58196         * tests/test-vsnprintf.c: New file.
58197
58198         * modules/snprintf-tests: New file.
58199         * tests/test-snprintf.c: New file.
58200
58201 2007-03-04  Bruno Haible  <bruno@clisp.org>
58202
58203         Compile relocatable.c only if --enable-relocatable is specified.
58204         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
58205         gl_RELOCATABLE_LIBRARY.
58206         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
58207         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
58208         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
58209         gl_RELOCATABLE_LIBRARY.
58210         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
58211         (Makefile.am): Remove lib_SOURCES.
58212         * modules/relocatable-lib-lgpl (configure.ac): Invoke
58213         gl_RELOCATABLE_LIBRARY.
58214         (Makefile.am): Remove lib_SOURCES.
58215         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
58216         always.
58217         * modules/relocatable-prog-wrapper (configure.ac): Invoke
58218         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
58219
58220 2007-03-04  Bruno Haible  <bruno@clisp.org>
58221
58222         * modules/argmatch-tests: New file.
58223         * tests/test-argmatch.c: New file.
58224
58225         * tests/test-allocsa.c (main): Halve the number of loop runs.
58226
58227         * modules/alloca-opt-tests: New file.
58228         * tests/test-alloca-opt.c: New file.
58229
58230 2007-03-04  Jim Meyering  <jim@meyering.net>
58231
58232         Work around difference between Linux ACLs and Solaris 10 ZFS.
58233         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
58234         for EINVAL.
58235
58236 2007-03-03  Bruno Haible  <bruno@clisp.org>
58237
58238         * modules/relocatable-prog (Depends-on): Add back progreloc's
58239         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
58240
58241 2007-03-03  Bruno Haible  <bruno@clisp.org>
58242
58243         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
58244         * modules/relocatable-lib: New file.
58245
58246 2007-03-03  Bruno Haible  <bruno@clisp.org>
58247
58248         * modules/relocatable-prog: Renamed from modules/relocatable.
58249         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
58250
58251 2007-03-03  Bruno Haible  <bruno@clisp.org>
58252
58253         * modules/relocatable-script (Files): Add doc/relocatable.texi,
58254         m4/relocatable-lib.m4.
58255         (Depends-on): Remove 'relocatable'.
58256         (configure.ac): Add gl_RELOCATABLE_NOP.
58257
58258 2007-03-03  Bruno Haible  <bruno@clisp.org>
58259
58260         * modules/relocatable-prog-wrapper: New file.
58261         * modules/relocatable (Depends-on): Add it. Remove all other
58262         dependencies except progname.
58263         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
58264
58265         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
58266         (gl_FUNC_STRERROR): Nop.
58267         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
58268
58269         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
58270         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
58271
58272         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
58273         (gl_FUNC_READLINK): Update.
58274
58275         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
58276
58277 2007-03-03  Bruno Haible  <bruno@clisp.org>
58278
58279         * lib/xreadlink.c: Include <unistd.h> unconditionally.
58280         * modules/xreadlink (Depends-on): Add unistd.
58281         * modules/xreadlink-with-size (Depends-on): Likewise.
58282
58283 2007-03-03  Bruno Haible  <bruno@clisp.org>
58284
58285         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
58286         extracted from gt_FUNC_SETENV.
58287         (gt_FUNC_SETENV): Remove macro.
58288         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
58289         remove gt_FUNC_SETENV.
58290
58291 2007-03-03  Bruno Haible  <bruno@clisp.org>
58292
58293         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
58294         ENABLE_RELOCATABLE here.
58295         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
58296
58297 2007-03-03  Bruno Haible  <bruno@clisp.org>
58298
58299         * modules/rbtreehash-list-tests (Depends-on): Add progname.
58300         * tests/test-rbtreehash_list.c: Include progname.h.
58301         (main): Call set_program_name.
58302
58303         * modules/rbtree-oset-tests (Depends-on): Add progname.
58304         * tests/test-rbtree_oset.c: Include progname.h.
58305         (main): Call set_program_name.
58306
58307         * modules/rbtree-list-tests (Depends-on): Add progname.
58308         * tests/test-rbtree_list.c: Include progname.h.
58309         (main): Call set_program_name.
58310
58311         * modules/linked-list-tests (Depends-on): Add progname.
58312         * tests/test-linked_list.c: Include progname.h.
58313         (main): Call set_program_name.
58314
58315 2007-03-03  Bruno Haible  <bruno@clisp.org>
58316
58317         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
58318         All uses of __restrict changed to _Restrict_.
58319         * lib/glob_.h (__restrict): Remove macro.
58320
58321 2007-03-02  Bruno Haible  <bruno@clisp.org>
58322
58323         * modules/gettext (configure.ac): Require gettext infrastructure
58324         from version 0.16.1.
58325
58326 2007-03-02  Bruno Haible  <bruno@clisp.org>
58327
58328         * modules/linkedhash-list-tests (Depends-on): Add progname.
58329         * tests/test-linkedhash_list.c: Include progname.h.
58330         (main): Call set_program_name.
58331
58332         * modules/carray-list-tests (Depends-on): Add progname.
58333         * tests/test-carray_list.c: Include progname.h.
58334         (main): Call set_program_name.
58335
58336         * modules/avltreehash-list-tests (Depends-on): Add progname.
58337         * tests/test-avltreehash_list.c: Include progname.h.
58338         (main): Call set_program_name.
58339
58340         * modules/avltree-oset-tests (Depends-on): Add progname.
58341         * tests/test-avltree_oset.c: Include progname.h.
58342         (main): Call set_program_name.
58343
58344         * modules/avltree-list-tests (Depends-on): Add progname.
58345         * tests/test-avltree_list.c: Include progname.h.
58346         (main): Call set_program_name.
58347
58348         * modules/array-oset-tests (Depends-on): Add progname.
58349         * tests/test-array_oset.c: Include progname.h.
58350         (main): Call set_program_name.
58351
58352         * modules/array-list-tests (Depends-on): Add progname.
58353         * tests/test-array_list.c: Include progname.h.
58354         (main): Call set_program_name.
58355
58356         * modules/argp-tests (Depends-on): Add progname.
58357         * tests/test-argp.c: Include argp.h first. Include progname.h.
58358         (main): Call set_program_name.
58359
58360 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
58361
58362         * doc/gnulib-tool.texi (Initial import): Reword description of
58363         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
58364         limited effect even if defined after the first system include.
58365
58366 2007-03-01  Bruno Haible  <bruno@clisp.org>
58367
58368         * build-aux/config.libpath: Update to libtool-1.5.22.
58369         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
58370
58371 2007-03-01  Bruno Haible  <bruno@clisp.org>
58372
58373         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
58374         foo_CFLAGS.
58375         Reported by Ralf Wildenhues.
58376
58377 2007-03-01  Bruno Haible  <bruno@clisp.org>
58378
58379         * build-aux/install-reloc: Remove object files left over by some
58380         compilers.
58381         Reported by Ralf Wildenhues.
58382
58383 2007-03-01  Bruno Haible  <bruno@clisp.org>
58384
58385         * build-aux/install-reloc: Break long lines.
58386
58387 2007-03-01  Bruno Haible  <bruno@clisp.org>
58388
58389         * doc/relocatable.texi: Document that it may not work on OpenBSD.
58390         Reported by Ralf Wildenhues.
58391
58392 2007-03-01  Bruno Haible  <bruno@clisp.org>
58393
58394         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
58395         include ordering constraints.
58396
58397 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
58398
58399         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
58400         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
58401         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
58402         as another example.
58403         * lib/time_.h: Fix misspelling.
58404         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
58405         Require gl_HEADER_TIME_H_DEFAULTS.
58406         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
58407         * m4/time_r.m4 (gl_TIME_R): Likewise.
58408         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
58409
58410 2007-03-01  Bruno Haible  <bruno@clisp.org>
58411
58412         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
58413         * m4/utimens.m4 (gl_UTIMENS): Likewise.
58414
58415 2007-03-01  Jim Meyering  <jim@meyering.net>
58416
58417         * modules/xreadlink (Maintainer): Add my name.
58418         * modules/xreadlink-with-size (Depends-on): Alphabetize.
58419
58420 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
58421             Bruno Haible  <bruno@clisp.org>
58422
58423         * build-aux/install-reloc: Compile also c-ctype.c.
58424         * build-aux/relocatable.sh.in: New file.
58425         * doc/relocatable.texi: New file.
58426         * doc/relocatable-maint.texi: New file.
58427         * doc/gnulib.texi: Include relocatable-maint.texi.
58428         * lib/progreloc.c: Include unistd.h unconditionally.
58429         * lib/relocwrapper.c: Include unistd.h unconditionally.
58430         Include c-ctype.h.
58431         (add_dotbin): Use c_tolower.
58432         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
58433         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
58434         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
58435         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
58436         to m4/relocatable-lib.m4.
58437         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
58438         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
58439         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
58440         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
58441         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
58442         * modules/relocatable: New file.
58443         * modules/relocatable-lib: New file.
58444         * modules/relocatable-script: New file.
58445
58446 2007-02-28  Bruno Haible  <bruno@clisp.org>
58447
58448         Import --enable-relocatable infrastructure.
58449         * build-aux/config.libpath: New file, from GNU gettext.
58450         * build-aux/install-reloc: New file, from GNU gettext.
58451         * build-aux/reloc-ldflags: New file, from GNU gettext.
58452         * lib/relocatable.h: New file, from GNU gettext.
58453         * lib/relocatable.c: New file, from GNU gettext.
58454         * lib/relocwrapper.c: New file, from GNU gettext.
58455         * m4/relocatable.m4: New file, from GNU gettext.
58456
58457 2007-02-28  Bruno Haible  <bruno@clisp.org>
58458
58459         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
58460
58461         * modules/xreadlink: New file, from GNU gettext with modifications.
58462         * lib/xreadlink.c: New file, from GNU gettext.
58463         * lib/xreadlink.h: Add comments.
58464         (xreadlink): New declaration.
58465
58466         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
58467         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
58468         lib/xreadlink-with-size.c.
58469         (configure.ac): Remove gl_XREADLINK invocation.
58470         (Makefile.am): Augment lib_SOURCES.
58471         * m4/xreadlink.m4: Remove file.
58472         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
58473         (xreadlink_with_size): Renamed from xreadink.
58474         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
58475         * modules/canonicalize (Depends-on): Replace xreadlink with
58476         xreadlink-with-size.
58477         * lib/canonicalize.c (canonicalize_filename_mode): Update.
58478
58479 2007-02-25  Jim Meyering  <jim@meyering.net>
58480
58481         * build-aux/announce-gen: When complaining about excess arguments,
58482         list them.
58483
58484 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58485
58486         * README: Document signed integer overflow situation more
58487         accurately.
58488
58489 2007-02-25  Bruno Haible  <bruno@clisp.org>
58490
58491         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
58492         'a' or 'A' conversion.
58493
58494 2007-02-25  Bruno Haible  <bruno@clisp.org>
58495
58496         * modules/filename: Renamed from modules/pathname.
58497         (Files): Replace lib/pathname.h with lib/filename.h. Replace
58498         lib/concatpath.c with lib/concat-filename.c.
58499         (Makefile.am): Update.
58500         (Include): Replace pathname.h with filename.h.
58501         * lib/filename.h: Renamed from lib/pathname.h.
58502         (concatenated_filename): Renamed from concatenated_pathname.
58503         * lib/concat-filename.c: Renamed from lib/concatpath.c.
58504         (concatenated_filename): Renamed from concatenated_pathname.
58505         * lib/findprog.c: Include filename.h instead of pathname.h.
58506         (find_in_path): Update.
58507         * lib/javacomp.c: Include filename.h instead of pathname.h.
58508         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
58509         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
58510         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
58511         is_oldgcj_14_13_usable, is_javac_usable): Update.
58512         * lib/javaexec.c: Include filename.h instead of pathname.h.
58513         (execute_java_class): Update.
58514         * modules/findprog: Update.
58515         * modules/javacomp: Update.
58516         * modules/javaexec: Update.
58517         * MODULES.html.sh (File system functions): Add 'filename', remove
58518         'pathname'.
58519
58520 2007-02-25  Bruno Haible  <bruno@clisp.org>
58521
58522         * modules/printf-frexpl-tests: New file.
58523         * tests/test-printf-frexpl.c: New file.
58524
58525         * modules/printf-frexpl: New file.
58526         * lib/printf-frexpl.h: New file.
58527         * lib/printf-frexpl.c: New file.
58528         * m4/printf-frexpl.m4: New file.
58529
58530 2007-02-25  Bruno Haible  <bruno@clisp.org>
58531
58532         * modules/printf-frexp-tests: New file.
58533         * tests/test-printf-frexp.c: New file.
58534
58535         * modules/printf-frexp: New file.
58536         * lib/printf-frexp.h: New file.
58537         * lib/printf-frexp.c: New file.
58538         * m4/printf-frexp.m4: New file.
58539
58540 2007-02-25  Bruno Haible  <bruno@clisp.org>
58541
58542         Assume automake >= 1.10 for the tests.
58543         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
58544         * modules/arctwo-tests: Likewise.
58545         * modules/argp-tests: Likewise.
58546         * modules/avltree-list-tests: Likewise.
58547         * modules/avltree-oset-tests: Likewise.
58548         * modules/avltreehash-list-tests: Likewise.
58549         * modules/carray-list-tests: Likewise.
58550         * modules/crc-tests: Likewise.
58551         * modules/des-tests: Likewise.
58552         * modules/gc-arcfour-tests: Likewise.
58553         * modules/gc-arctwo-tests: Likewise.
58554         * modules/gc-des-tests: Likewise.
58555         * modules/gc-hmac-md5-tests: Likewise.
58556         * modules/gc-hmac-sha1-tests: Likewise.
58557         * modules/gc-md2-tests: Likewise.
58558         * modules/gc-md4-tests: Likewise.
58559         * modules/gc-md5-tests: Likewise.
58560         * modules/gc-pbkdf2-sha1-tests: Likewise.
58561         * modules/gc-rijndael-tests: Likewise.
58562         * modules/gc-sha1-tests: Likewise.
58563         * modules/gc-tests: Likewise.
58564         * modules/getaddrinfo-tests: Likewise.
58565         * modules/hmac-md5-tests: Likewise.
58566         * modules/hmac-sha1-tests: Likewise.
58567         * modules/linked-list-tests: Likewise.
58568         * modules/linkedhash-list-tests: Likewise.
58569         * modules/lock-tests: Likewise.
58570         * modules/md2-tests: Likewise.
58571         * modules/md4-tests: Likewise.
58572         * modules/md5-tests: Likewise.
58573         * modules/rbtree-list-tests: Likewise.
58574         * modules/rbtree-oset-tests: Likewise.
58575         * modules/rbtreehash-list-tests: Likewise.
58576         * modules/read-file-tests: Likewise.
58577         * modules/rijndael-tests: Likewise.
58578         * modules/stdint-tests: Likewise.
58579         * modules/tls-tests: Likewise.
58580
58581 2007-02-24  Bruno Haible  <bruno@clisp.org>
58582
58583         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
58584         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
58585         function; instead check whether isnan with a double argument links.
58586         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
58587         function; instead check whether isnan with a 'long double' argument
58588         links.
58589         Reported by Eric Blake <ebb9@byu.net>.
58590
58591 2007-02-24  Bruno Haible  <bruno@clisp.org>
58592
58593         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
58594         defined.
58595         * lib/isnanl.c: Remove all code. Just include isnan.c.
58596         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
58597
58598 2007-02-25  Jim Meyering  <jim@meyering.net>
58599
58600         Avoid conflicting types for 'unsetenv' on FreeBSD.
58601         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
58602         conflicting with FreeBSD's (5.0 and 6.1) function declaration
58603         in stdlib.h.
58604
58605 2007-02-24  Bruno Haible  <bruno@clisp.org>
58606
58607         * modules/isnanl-nolibm-tests: New file.
58608         * tests/test-isnanl.c: New file.
58609
58610         * modules/isnanl-nolibm: New file.
58611         * lib/isnanl.h: New file.
58612         * lib/isnanl.c: New file.
58613         * m4/isnanl.m4: New file.
58614
58615 2007-02-24  Bruno Haible  <bruno@clisp.org>
58616
58617         * modules/isnan-nolibm-tests: New file.
58618         * tests/test-isnan.c: New file.
58619
58620         * modules/isnan-nolibm: New file.
58621         * lib/isnan.h: New file.
58622         * lib/isnan.c: New file.
58623         * m4/isnan.m4: New file.
58624
58625 2007-02-24  Bruno Haible  <bruno@clisp.org>
58626
58627         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
58628         assume that an exponent fits in 20 bits.
58629
58630 2007-02-24  Jim Meyering  <jim@meyering.net>
58631
58632         * m4/regex.m4: Update the description of the configure-time option,
58633         --without-included-regex, to state accurately what the defaults are,
58634         and perhaps to give people an idea why using this option is risky.
58635
58636 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58637
58638         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
58639         loops on small arguments.  This attempts to avoid the problem
58640         Bruno Haible reported for AIX 4.3.2 in
58641         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
58642
58643 2007-02-23  Bruno Haible  <bruno@clisp.org>
58644
58645         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
58646         Needed for help2man.
58647
58648 2007-02-23  Karl Berry  <karl@gnu.org>
58649
58650         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
58651         exists, foo.h should be cvs-ignored, not committed.
58652
58653 2007-02-23  Eric Blake  <ebb9@byu.net>
58654
58655         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
58656         * lib/stat-time.h (includes): Likewise.
58657         * lib/utimecmp.c (includes): Likewise.
58658         * lib/utimens.h (includes): Likewise.
58659         * lib/getdate.y (includes): Also include "timespec.h" for use
58660         internal to the module.
58661         * modules/utimens (Depends-on): Revert yesterday's patch.
58662         * modules/nanosleep (Depends-on): Add missing dependency.
58663
58664 2007-02-22  Bruno Haible  <bruno@clisp.org>
58665
58666         * lib/glob.c: Don't include getlogin_r.h.
58667
58668 2007-02-22  Jim Meyering  <jim@meyering.net>
58669
58670         * modules/utimens (Depends-on): Add timespec, required for
58671         utimens.h's inclusion of timespec.h.
58672
58673 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
58674
58675         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
58676         long unreadable paths in GNU/Linux.  Problem reported by Andreas
58677         Schwab in
58678         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
58679         I'll try to think of a better way to fix the Solaris problem.
58680
58681         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
58682         like glibc; on Solaris 10, it fails with errno == EINVAL.
58683         POSIX says the behavior is unspecified if the first argument is NULL,
58684         so play it safe and never pass NULL to the system getcwd.
58685
58686 2007-02-21  Jim Meyering  <jim@meyering.net>
58687
58688         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
58689         of gettimeofday.  It would conflict with the one now always
58690         provided via sys_time_.h.  Reported by Matthew Woehlke, as
58691         an IRIX 6.5 build failure.
58692
58693 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
58694
58695         Minor fixups to port to Solaris 10 with Sun C 5.8.
58696         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
58697         * modules/getcwd (Depends-on): Add dirfd.
58698         * lib/putenv.c (putenv): #undef it.
58699         (rpl_putenv): New decl.
58700         (malloc, free): Include <stdlib.h> rather than prototyping separately.
58701
58702 2007-02-20  Bruno Haible  <bruno@clisp.org>
58703
58704         * modules/stdio-tests: New file.
58705         * tests/test-stdio.c: New file.
58706
58707         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
58708         (Depends-on): Add stdio.
58709         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58710         (Include): Use <stdio.h> instead of vsnprintf.h.
58711         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58712         HAVE_DECL_VSNPRINTF.
58713         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
58714
58715         * modules/snprintf (Files): Remove lib/snprintf.h.
58716         (Depends-on): Add stdio.
58717         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
58718         (Include): Use <stdio.h> instead of snprintf.h.
58719         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
58720         HAVE_DECL_SNPRINTF.
58721         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
58722         * lib/getaddrinfo.c: Likewise.
58723
58724         * modules/stdio: New file.
58725         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
58726         * lib/snprintf.h: Remove file.
58727         * lib/vsnprintf.h: Remove file.
58728         * lib/.cppi-disable: Remove snprintf.h.
58729         * m4/stdio_h.m4: New file.
58730         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
58731
58732 2007-02-20  Jim Meyering  <jim@meyering.net>
58733
58734         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
58735         used by e.g., mingw.  From Bruno Haible.
58736
58737 2007-02-19  Bruno Haible  <bruno@clisp.org>
58738
58739         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
58740         warnings.
58741         Reported by Ben Pfaff <blp@cs.stanford.edu>.
58742
58743 2007-02-19  Bruno Haible  <bruno@clisp.org>
58744
58745         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
58746         from mingw users.
58747
58748 2007-02-19  Bruno Haible  <bruno@clisp.org>
58749
58750         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
58751         warnings.
58752         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
58753
58754 2007-02-19  Jim Meyering  <jim@meyering.net>
58755
58756         Don't use FD after a successful "fdopendir (fd)".
58757         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
58758         Reset it by calling dirfd on the just-obtained DIR*.
58759
58760         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
58761         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
58762
58763 2007-02-18  Bruno Haible  <bruno@clisp.org>
58764
58765         * lib/readlink.c: Include <unistd.h>.
58766         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
58767         HAVE_READLINK.
58768         * modules/readlink (Depends-on): Add unistd.
58769         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58770         (Include): Add <unistd.h>.
58771
58772         * lib/getlogin_r.h: Remove file.
58773         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
58774         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
58775         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
58776         HAVE_DECL_GETLOGIN_R.
58777         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
58778         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58779         (Include): Use <unistd.h> instead of getlogin_r.h.
58780
58781         * lib/getcwd.h: Remove file.
58782         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
58783         * lib/xgetcwd.c: Likewise.
58784         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
58785         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
58786         * modules/getcwd (Files): Remove lib/getcwd.h.
58787         (Depends-on): Add unistd.
58788         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58789         (Include): Use <unistd.h> instad of getcwd.h.
58790
58791         * lib/ftruncate.c: Include <unistd.h> first.
58792         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
58793         Set HAVE_FTRUNCATE.
58794         * modules/ftruncate (Depends-on): Add unistd.
58795         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58796
58797         * lib/fchdir.c: Include <unistd.h> first.
58798         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
58799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
58800         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
58801         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58802         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
58803
58804         * lib/dup2.c: Include <unistd.h> first.
58805         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
58806         HAVE_DUP2.
58807         * modules/dup2 (Depends-on): Add unistd.
58808         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58809
58810         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
58811         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
58812         REPLACE_CHOWN. Don't define chown as a macro here.
58813         * modules/chown (Depends-on): Add unistd.
58814         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
58815
58816         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
58817         Add definition for GL_LINK_WARNING.
58818         (chown, dup2): New declarations.
58819         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
58820         link warning.
58821         (ftruncate): New declaration.
58822         (getcwd): New declaration, taken from old getcwd.h.
58823         (getlogin_r): New declaration, taken from old getlogin_r.h.
58824         (readlink): New declaration.
58825         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
58826         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
58827         (gl_PREREQ_UNISTD): Remove macro.
58828         (gl_UNISTD_MODULE_INDICATOR): New macro.
58829         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
58830         many new variables. Don't set UNISTD_H.
58831         * modules/unistd (Description): Change.
58832         (Depends-on): Add link-warning.
58833         (configure.ac): Update.
58834         (Makefile.am): Create unistd.h always. Substitute many new variables
58835         into it.
58836
58837 2007-02-18  Bruno Haible  <bruno@clisp.org>
58838
58839         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
58840         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
58841         HAVE_GETSUBOPT.
58842         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
58843         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
58844         * lib/getsubopt.h: Remove file.
58845         * modules/getsubopt (Files): Remove lib/getsubopt.h.
58846         (Depends-on): Add stdlib.
58847         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58848         (Includes): Use <stdlib.h> instead of getsubopt.h.
58849         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
58850         Set HAVE_GETSUBOPT.
58851         * lib/getsubopt.c: Don't include getsubopt.h.
58852
58853 2007-02-18  Bruno Haible  <bruno@clisp.org>
58854
58855         * modules/fchdir (Depends-on): Add dup2.
58856
58857 2007-02-18  Bruno Haible  <bruno@clisp.org>
58858
58859         * lib/stdlib_.h: Handle glibc's special invocation convention
58860         specially.
58861
58862 2007-02-18  Bruno Haible  <bruno@clisp.org>
58863
58864         * modules/stdlib-tests: New file.
58865         * tests/test-stdlib.c: New file.
58866
58867         * modules/mkstemp (Files): Remove lib/mkstemp.h.
58868         (Depends-on): Add stdlib.
58869         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58870         (Includes): Use <stdlib.h> instead of mkstemp.h.
58871         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58872         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
58873         * lib/mkstemp.c: Don't include mkstemp.h.
58874         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
58875         * lib/stdlib--.h: Don't include mkstemp.h.
58876
58877         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
58878         (Depends-on): Add stdlib.
58879         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58880         (Includes): Use <stdlib.h> instead of mkdtemp.h.
58881         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
58882         HAVE_MKDTEMP.
58883         * lib/mkdtemp.c: Don't include mkdtemp.h.
58884         * lib/clean-temp.c: Don't include mkdtemp.h.
58885
58886         * modules/exit (Files): Remove lib/exit.h.
58887         (Depends-on): Add stdlib.
58888         (Makefile.am): Remove lib_SOURCES.
58889         (Include): Use <stdlib.h> instead of exit.h.
58890         * lib/argmatch.c: Don't include exit.h.
58891         * lib/execute.c: Likewise.
58892         * lib/pagealign_alloc.c: Likewise.
58893         * lib/pipe.c: Likewise.
58894         * lib/wait-process.c: Likewise.
58895         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
58896         * lib/exitfail.c: Likewise.
58897         * lib/savewd.c: Likewise.
58898         * lib/xsetenv.c: Likewise.
58899
58900         * modules/stdlib: New file.
58901         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
58902         and extra comments about mkstemp().
58903         * lib/exit.h: Remove file.
58904         * lib/mkdtemp.h: Remove file.
58905         * lib/mkstemp.h: Remove file.
58906         * m4/stdlib_h.m4: New file.
58907         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
58908
58909 2007-02-18  Bruno Haible  <bruno@clisp.org>
58910
58911         * modules/math-tests: New file.
58912         * tests/test-math.c: New file.
58913
58914         * modules/math: New file.
58915         * modules/mathl (Files): Remove lib/mathl.h.
58916         (Depends-on): Add math.
58917         (Makefile.am): Don't mention mathl.h.
58918         (Include): Use <math.h> instead of mathl.h.
58919         * lib/math_.h: New file.
58920         * lib/mathl.h: Remove file.
58921         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
58922         mathl.h.
58923         * lib/asinl.c: Likewise.
58924         * lib/atanl.c: Likewise.
58925         * lib/ceill.c: Likewise.
58926         * lib/cosl.c: Likewise.
58927         * lib/expl.c: Likewise.
58928         * lib/floorl.c: Likewise.
58929         * lib/frexpl.c: Likewise.
58930         * lib/ldexpl.c: Likewise.
58931         * lib/logl.c: Likewise.
58932         * lib/sincosl.c: Likewise.
58933         * lib/sinl.c: Likewise.
58934         * lib/sqrtl.c: Likewise.
58935         * lib/tanl.c: Likewise.
58936         * lib/trigl.c: Likewise.
58937         * m4/math_h.m4: New file.
58938         * MODULES.html.sh (Mathematics): Add math.
58939
58940 2007-02-17  Bruno Haible  <bruno@clisp.org>
58941
58942         * modules/wctype-tests: New file.
58943         * tests/test-wctype.c: New file.
58944
58945         * modules/wchar-tests: New file.
58946         * tests/test-wchar.c: New file.
58947
58948         * modules/unistd-tests: New file.
58949         * tests/test-unistd.c: New file.
58950
58951         * modules/time-tests: New file.
58952         * tests/test-time.c: New file.
58953
58954         * modules/sysexits-tests: New file.
58955         * tests/test-sysexits.c: New file.
58956
58957         * modules/sys_time-tests: New file.
58958         * tests/test-sys_time.c: New file.
58959
58960         * modules/sys_stat-tests: New file.
58961         * tests/test-sys_stat.c: New file.
58962
58963         * modules/sys_socket-tests: New file.
58964         * tests/test-sys_socket.c: New file.
58965
58966         * modules/sys_select-tests: New file.
58967         * tests/test-sys_select.c: New file.
58968
58969         * modules/string-tests: New file.
58970         * tests/test-string.c: New file.
58971
58972         * modules/stdbool-tests: New file.
58973         * tests/test-stdbool.c: New file.
58974
58975         * modules/netinet_in-tests: New file.
58976         * tests/test-netinet_in.c: New file.
58977
58978         * modules/inttypes-tests: New file.
58979         * tests/test-inttypes.c: New file.
58980
58981         * modules/fcntl-tests: New file.
58982         * tests/test-fcntl.c: New file.
58983
58984         * modules/byteswap-tests: New file.
58985         * tests/test-byteswap.c: New file.
58986
58987         * modules/arpa_inet-tests: New file.
58988         * tests/test-arpa_inet.c: New file.
58989
58990 2007-02-17  Bruno Haible  <bruno@clisp.org>
58991
58992         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
58993         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
58994         if the corresponding module is not enabled. Emit link warnings if
58995         the function is used nevertheless.
58996         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
58997         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
58998         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
58999         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
59000         * modules/inttypes (Depends-on): Add link-warning.
59001         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59002         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
59003         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
59004         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
59005         * modules/imaxdiv (configure.ac): Likewise.
59006         * modules/strtoimax (configure.ac): Likewise.
59007         * modules/strtoumax (configure.ac): Likewise.
59008
59009 2007-02-17  Bruno Haible  <bruno@clisp.org>
59010
59011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
59012         gl_STRING_MODULE_INDICATOR_DEFAULTS.
59013         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
59014         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
59015
59016 2007-02-17  Bruno Haible  <bruno@clisp.org>
59017
59018         * modules/link-warning: New file.
59019         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
59020         * lib/string_.h (GL_LINK_WARNING): Remove definition.
59021         * modules/string (Depends-on): Add link-warning.
59022         (Makefile.am): Copy the contents of build-aux/link-warning.h into
59023         string.h.
59024         * MODULES.html.sh (Support for building libraries and executables): Add
59025         link-warning.
59026
59027 2007-02-17  Bruno Haible  <bruno@clisp.org>
59028
59029         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
59030         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
59031         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
59032         long lines.
59033
59034 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
59035             Bruno Haible  <bruno@clisp.org>
59036
59037         * modules/tmpfile: New file.
59038         * lib/tmpfile.c: New file.
59039         * m4/tmpfile.m4: New file.
59040         * MODULES.html.sh (func_all_modules): New section "Input/output".
59041
59042 2007-02-15  Bruno Haible  <bruno@clisp.org>
59043
59044         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
59045         (supports_delete_on_close): New function.
59046         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
59047
59048 2007-02-14  Bruno Haible  <bruno@clisp.org>
59049
59050         * modules/mbspcasecmp-tests: New file.
59051         * tests/test-mbspcasecmp.sh: New file.
59052         * tests/test-mbspcasecmp.c: New file.
59053
59054         New module mbspcasecmp.
59055         * modules/mbspcasecmp: New file.
59056         * lib/mbspcasecmp.c: New file.
59057         * lib/string_.h (strncasecmp): Change warning message.
59058         (mbspcasecmp): New declaration.
59059         * m4/mbspcasecmp.m4: New file.
59060         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59061         GNULIB_MBSPCASECMP.
59062         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
59063         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
59064
59065 2007-02-14  Bruno Haible  <bruno@clisp.org>
59066
59067         * modules/mbsncasecmp-tests: New file.
59068         * tests/test-mbsncasecmp.sh: New file.
59069         * tests/test-mbsncasecmp.c: New file.
59070
59071         New module mbsncasecmp.
59072         * modules/mbsncasecmp: New file.
59073         * lib/mbsncasecmp.c: New file.
59074         * lib/string_.h (mbsncasecmp): New declaration.
59075         * m4/mbsncasecmp.m4: New file.
59076         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59077         GNULIB_MBSNCASECMP.
59078         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
59079         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
59080
59081 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
59082
59083         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
59084         Verify that it doesn't overlap with our flags.
59085         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
59086         do not have the desired effect in multibyte locales; instead, use
59087         mbscasecmp.
59088         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
59089         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
59090         we don't require GNU fnmatch ourselves (if our users require it, they
59091         should do so explicitly).
59092
59093         Fix regex code so it doesn't rely on strcasecmp.
59094         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
59095         Otherwise, include gnulib's langinfo.h.
59096         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
59097         undesirable behavior in non-C locales.  Instead, rely on localecharset.
59098         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
59099         * modules/regex (FILES): Remove m4/codeset.m4.
59100         (Depends-on): Add localcharset.  Remove strcase.
59101
59102 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59103
59104         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
59105         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
59106
59107 2007-02-13  Bruno Haible  <bruno@clisp.org>
59108
59109         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
59110         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59111
59112 2007-02-12  Bruno Haible  <bruno@clisp.org>
59113
59114         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59115         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
59116         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
59117         time warning rather than a link error.
59118
59119 2007-02-12  Bruno Haible  <bruno@clisp.org>
59120
59121         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
59122         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59123         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59124
59125 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59126
59127         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
59128         args, not 2.
59129
59130 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59131
59132         New module 'time', so that apps can include <time.h> as per
59133         POSIX and GNU instead of separate include files like time_r.h
59134         and timegm.h.  This implementation tries out a simpler approach
59135         for replacing decls in standard include files (as compared to
59136         the string module), somewhat as an experiment.
59137
59138         * config/srclist.txt: Comment out mktime.c for now.
59139         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
59140         since it doesn't apply any more.  Use generic wording instead.
59141         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
59142         'time'.
59143         * lib/time_.h, m4/time_h.m4, modules/time: New files.
59144         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
59145         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
59146         Don't include <sys/types.h>; no longer needed since we assume C89.
59147         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
59148         * lib/strftime.c: Likewise.
59149         * lib/time_r.c: Likewise.
59150         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
59151         * lib/nanosleep.c: Include <time.h> first, to check interface.
59152         * lib/strptime.c: Likewise.
59153         * lib/time_r.c: Likewise.
59154         * lib/timegm.c: Likewise.
59155         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
59156         needed.
59157         * lib/timegm.c: Don't include timegm.h; no longer needed.
59158         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
59159         time.h now handles any problems in that area.
59160         (struct timespec, nanosleep): Remove; time.h now arranges for these.
59161         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
59162         that time.h defines struct timespec.
59163         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
59164         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
59165         handles that.
59166         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
59167         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
59168         needed.  Set REPLACE_LOCALTIME.
59169         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
59170         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
59171         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
59172         nanosleep; time_h.m4 now does that.  Don't require
59173         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
59174         module handles this now.
59175         * modules/getdate (Depends-on): Remove timespec.  Add time.
59176         * modules/nanosleep (Depends-on): Likewise.
59177         * modules/stat-time (Depends-on): Likewise.
59178         * modules/nanosleep (Include): Include time.h, not timespec.h.
59179         * modules/strptime (Files): Remove lib/strptime.h.
59180         (Depends-on): Add extensions, time.
59181         (Include): Include time.h, not strptime.h.
59182         * modules/time_r (Files): Remove lib/time_r.h.
59183         (Depends-on): Add time.
59184         (Include): Include time.h, not time_r.h.
59185         * modules/timegm: Likewise.
59186         * modules/timespec (Description): Now does timespec-related decls
59187         of our own, instead of struct timespec itself.
59188         (Depends-on): Add time; remove extensions.
59189         (Maintainer): Add self.
59190         * modules/utimecmp (Depends-on): Add time; remove timespec.
59191         * modules/utimens (Depends-on): Likewise.
59192         * modules/xnanosleep (Depends-on): Likewise.
59193
59194 2007-02-11  Bruno Haible  <bruno@clisp.org>
59195
59196         * lib/c-strstr.c: Include allocsa.h.
59197         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59198         * lib/c-strcasestr.c: Include allocsa.h.
59199         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59200         * lib/strcasestr.c: Include allocsa.h.
59201         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
59202         * lib/mbsstr.c: Include allocsa.h.
59203         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59204         allocsa/freesa instead of malloc/free.
59205         * lib/mbscasestr.c: Include allocsa.h.
59206         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
59207         allocsa/freesa instead of malloc/free.
59208         * modules/c-strstr (Depends-on): Add allocsa.
59209         * modules/c-strcasestr (Depends-on): Likewise.
59210         * modules/strcasestr (Depends-on): Likewise.
59211         * modules/mbsstr (Depends-on): Likewise.
59212         * modules/mbscasestr (Depends-on): Likewise.
59213
59214 2007-02-11  Bruno Haible  <bruno@clisp.org>
59215
59216         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
59217
59218         * modules/mbsspn-tests: New file.
59219         * tests/test-mbsspn.sh: New file.
59220         * tests/test-mbsspn.c: New file.
59221
59222 2007-02-11  Bruno Haible  <bruno@clisp.org>
59223
59224         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
59225
59226         * modules/mbspbrk-tests: New file.
59227         * tests/test-mbspbrk.sh: New file.
59228         * tests/test-mbspbrk.c: New file.
59229
59230 2007-02-11  Bruno Haible  <bruno@clisp.org>
59231
59232         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
59233         unneeded cast.
59234
59235         * modules/mbscspn-tests: New file.
59236         * tests/test-mbscspn.sh: New file.
59237         * tests/test-mbscspn.c: New file.
59238
59239 2007-02-11  Bruno Haible  <bruno@clisp.org>
59240
59241         * modules/mbscasecmp-tests: New file.
59242         * tests/test-mbscasecmp.sh: New file.
59243         * tests/test-mbscasecmp.c: New file.
59244
59245 2007-02-11  Bruno Haible  <bruno@clisp.org>
59246
59247         Ensure O(n) worst-case complexity of mbscasestr.
59248         * lib/mbscasestr.c: Include stdbool.h.
59249         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59250         functions.
59251         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
59252         the bookkeeping indicates that it's worth it.
59253         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
59254
59255         * modules/mbscasestr-tests: New file.
59256         * tests/test-mbscasestr1.c: New file.
59257         * tests/test-mbscasestr2.sh: New file.
59258         * tests/test-mbscasestr2.c: New file.
59259         * tests/test-mbscasestr3.sh: New file.
59260         * tests/test-mbscasestr3.c: New file.
59261         * tests/test-mbscasestr4.sh: New file.
59262         * tests/test-mbscasestr4.c: New file.
59263         * m4/locale-tr.m4: New file.
59264
59265 2007-02-11  Bruno Haible  <bruno@clisp.org>
59266
59267         Ensure O(n) worst-case complexity of mbsstr.
59268         * lib/mbsstr.c: Include stdbool.h.
59269         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
59270         functions.
59271         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
59272         bookkeeping indicates that it's worth it.
59273         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
59274
59275         * modules/mbsstr-tests: New file.
59276         * tests/test-mbsstr1.c: New file.
59277         * tests/test-mbsstr2.sh: New file.
59278         * tests/test-mbsstr2.c: New file.
59279         * tests/test-mbsstr3.sh: New file.
59280         * tests/test-mbsstr3.c: New file.
59281         * m4/locale-fr.m4: New file.
59282
59283 2007-02-11  Bruno Haible  <bruno@clisp.org>
59284
59285         * lib/mbsrchr.c (mbsrchr): Fix bug.
59286
59287         * modules/mbsrchr-tests: New file.
59288         * tests/test-mbsrchr.sh: New file.
59289         * tests/test-mbsrchr.c: New file.
59290
59291 2007-02-11  Bruno Haible  <bruno@clisp.org>
59292
59293         * lib/mbschr.c (mbschr): Fix bug.
59294
59295         * modules/mbschr-tests: New file.
59296         * tests/test-mbschr.sh: New file.
59297         * tests/test-mbschr.c: New file.
59298         * m4/locale-zh.m4: New file.
59299
59300 2007-02-11  Bruno Haible  <bruno@clisp.org>
59301
59302         Support for copying multibyte string iterators.
59303         * lib/mbiter.h: Include <string.h>.
59304         (mbiter_multi_copy): New function.
59305         (mbi_copy): New macro.
59306         * lib/mbuiter.h: Include <string.h>.
59307         (mbuiter_multi_copy): New function.
59308         (mbui_copy): New macro.
59309
59310 2007-02-11  Bruno Haible  <bruno@clisp.org>
59311
59312         New module mbslen.
59313         * modules/mbslen: New file.
59314         * lib/mbslen.c: New file.
59315         * lib/string_.h (mbslen): New declaration.
59316         * m4/mbslen.m4: New file.
59317         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59318         GNULIB_MBSLEN.
59319         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
59320         * MODULES.html.sh (Internationalization functions): Add mbslen.
59321
59322 2007-02-11  Bruno Haible  <bruno@clisp.org>
59323
59324         Ensure O(n) worst-case complexity of strcasestr substitute.
59325         * lib/strcasestr.c: Include stdbool.h.
59326         (knuth_morris_pratt): New function.
59327         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59328         bookkeeping indicates that it's worth it.
59329         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
59330
59331         * modules/strcasestr-tests: New file.
59332         * tests/test-strcasestr.c: New file.
59333
59334 2007-02-11  Bruno Haible  <bruno@clisp.org>
59335
59336         Ensure O(n) worst-case complexity of c_strcasestr.
59337         * lib/c-strcasestr.c: Include stdbool.h, string.h.
59338         (knuth_morris_pratt): New function.
59339         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
59340         the bookkeeping indicates that it's worth it.
59341         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
59342
59343         * modules/c-strcasestr-tests: New file.
59344         * tests/test-c-strcasestr.c: New file.
59345
59346 2007-02-11  Bruno Haible  <bruno@clisp.org>
59347
59348         Ensure O(n) worst-case complexity of c_strstr.
59349         * lib/c-strstr.c: Include stdbool.h, string.h.
59350         (knuth_morris_pratt): New function.
59351         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
59352         bookkeeping indicates that it's worth it.
59353         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
59354
59355         * lib/c-strstr.c: Complete rewrite for maintainability.
59356
59357         * modules/c-strstr-tests: New file.
59358         * tests/test-c-strstr.c: New file.
59359
59360 2007-02-11  Bruno Haible  <bruno@clisp.org>
59361
59362         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
59363         5.2.1 and earlier, whereby \055 was treated just like the range
59364         delimiter '-'.
59365         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
59366
59367 2007-02-08  Bruno Haible  <bruno@clisp.org>
59368
59369         * modules/regex (Depends-on): Add stdbool.
59370         Reported by Dalibor Topic <robilad@kaffe.org>.
59371
59372 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
59373
59374         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
59375         Prefer returning from main to exiting from it.
59376         Remove unnecessary parens after sizeof.
59377
59378 2007-02-05  Bruno Haible  <bruno@clisp.org>
59379
59380         New module mbssep.
59381         * modules/mbssep: New file.
59382         * lib/mbssep.c: New file.
59383         * lib/string_.h (strsep): Add a conditional link warning.
59384         (mbssep): New declaration.
59385         * m4/mbssep.m4: New file.
59386         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59387         GNULIB_MBSSEP.
59388         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
59389         * MODULES.html.sh (Internationalization functions): Add mbssep.
59390
59391 2007-02-05  Bruno Haible  <bruno@clisp.org>
59392
59393         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
59394         Optimize search in case of 1 delimiter.
59395
59396 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59397
59398         * lib/acl.h: Include sys/types.h before sys/acl.h.
59399
59400 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
59401
59402         Merge upstream fix for glibc bugzilla #3957:
59403
59404         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
59405
59406         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
59407         bit for RE_HAT_LISTS_NOT_NEWLINE.
59408         (build_charclass_op): Remove bogus comment.
59409
59410 2007-02-05  Simon Josefsson  <simon@josefsson.org>
59411
59412         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
59413
59414 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59415
59416         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
59417         * lib/memmem.c [!defined _LIBC]: Include config.h.
59418
59419 2007-02-04  Bruno Haible  <bruno@clisp.org>
59420
59421         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
59422         warning message.
59423
59424 2007-02-04  Bruno Haible  <bruno@clisp.org>
59425
59426         New module mbstok_r.
59427         * modules/mbstok_r: New file.
59428         * lib/mbstok_r.c: New file.
59429         * lib/string_.h (strtok_r): Change argument names to match the
59430         comments. Add a conditional link warning.
59431         (mbstok_r): New declaration.
59432         * m4/mbstok_r.m4: New file.
59433         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59434         GNULIB_MBSTOK_R.
59435         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
59436         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
59437
59438 2007-02-04  Bruno Haible  <bruno@clisp.org>
59439
59440         New module mbsspn.
59441         * modules/mbsspn: New file.
59442         * lib/mbsspn.c: New file.
59443         * lib/string_.h (strspn): Add a conditional link warning.
59444         (mbsspn): New declaration.
59445         * m4/mbsspn.m4: New file.
59446         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59447         GNULIB_MBSSPN.
59448         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
59449         * MODULES.html.sh (Internationalization functions): Add mbsspn.
59450
59451 2007-02-04  Bruno Haible  <bruno@clisp.org>
59452
59453         New module mbspbrk.
59454         * modules/mbspbrk: New file.
59455         * lib/mbspbrk.c: New file.
59456         * lib/string_.h (strpbrk): Add a conditional link warning.
59457         (mbspbrk): New declaration.
59458         * m4/mbspbrk.m4: New file.
59459         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59460         GNULIB_MBSPBRK.
59461         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
59462         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
59463
59464 2007-02-04  Bruno Haible  <bruno@clisp.org>
59465
59466         New module mbscspn.
59467         * modules/mbscspn: New file.
59468         * lib/mbscspn.c: New file.
59469         * lib/string_.h (strcspn): Add a conditional link warning.
59470         (mbscspn): New declaration.
59471         * m4/mbscspn.m4: New file.
59472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59473         GNULIB_MBSCSPN.
59474         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
59475         * MODULES.html.sh (Internationalization functions): Add mbscspn.
59476
59477 2007-02-04  Bruno Haible  <bruno@clisp.org>
59478
59479         New module mbscasestr, reduced goal of strcasestr.
59480         * modules/mbscasestr: New file.
59481         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
59482         (mbscasestr): Renamed from strcasestr.
59483         * lib/strcasestr.c: Don't include mbuiter.h.
59484         (strcasestr): Remove support for multibyte locales.
59485         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
59486         Change the conditional link warning.
59487         (mbscasestr): New declaration.
59488         * m4/mbscasestr.m4: New file.
59489         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
59490         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
59491         REPLACE_STRCASESTR.
59492         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
59493         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59494         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59495         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
59496         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
59497         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
59498         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
59499         (Depends-on): Remove mbuiter.
59500         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
59501
59502 2007-02-04  Bruno Haible  <bruno@clisp.org>
59503
59504         Simplify handling of strncasecmp.
59505         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
59506         the conditional link warning.
59507         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59508         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
59509         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
59510         * modules/strcase (configure.ac): Don't invoke
59511         gl_STRING_MODULE_INDICATOR.
59512         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
59513
59514 2007-02-04  Bruno Haible  <bruno@clisp.org>
59515
59516         New module mbscasecmp, reduced goal of strcasecmp.
59517         * modules/mbscasecmp: New file.
59518         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
59519         (mbscasecmp): Renamed from strcasecmp.
59520         * lib/strcasecmp.c: Don't include mbuiter.h.
59521         (strcasecmp): Remove support for multibyte locales.
59522         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
59523         Change the conditional link warning.
59524         (mbscasecmp): New declaration.
59525         * m4/mbscasecmp.m4: New file.
59526         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
59527         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
59528         REPLACE_STRCASECMP.
59529         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
59530         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59531         GNULIB_MBSCASECMP.
59532         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
59533         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
59534         * modules/strcase (Files): Remove m4/mbrtowc.m4.
59535         (Depends-on): Remove mbuiter.
59536         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
59537
59538 2007-02-04  Bruno Haible  <bruno@clisp.org>
59539
59540         New module mbsstr. Remove module strstr.
59541         * modules/mbsstr: New file.
59542         * modules/strstr: Remove file.
59543         * lib/mbsstr.c: Renamed from lib/strstr.c.
59544         (mbsstr): Renamed from strstr.
59545         * lib/string_.h (strstr): Remove declaration. Change the conditional
59546         link warning.
59547         (mbsstr): New declaration.
59548         * m4/mbsstr.m4: New file.
59549         * m4/strstr.m4: Remove file.
59550         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
59551         REPLACE_STRSTR.
59552         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
59553         Don't initialize GNULIB_STRSTR.
59554         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
59555         substitute GNULIB_STRSTR and REPLACE_STRSTR.
59556         * MODULES.html.sh (Internationalization functions): Add mbsstr.
59557         (Support for systems lacking ANSI C 89): Remove strstr.
59558
59559 2007-02-04  Bruno Haible  <bruno@clisp.org>
59560
59561         New module mbsrchr.
59562         * modules/mbsrchr: New file.
59563         * lib/mbsrchr.c: New file.
59564         * lib/string_.h (strrchr): Add a conditional link warning.
59565         (mbsrchr): New declaration.
59566         * m4/mbsrchr.m4: New file.
59567         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59568         GNULIB_MBSRCHR.
59569         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
59570         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
59571
59572 2007-02-04  Bruno Haible  <bruno@clisp.org>
59573
59574         New module mbschr.
59575         * modules/mbschr: New file.
59576         * lib/mbschr.c: New file.
59577         * lib/string_.h (strchr): Add a conditional link warning.
59578         (mbschr): New declaration.
59579         * m4/mbschr.m4: New file.
59580         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
59581         GNULIB_MBSCHR.
59582         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
59583         * MODULES.html.sh (Internationalization functions): Add mbschr.
59584
59585 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
59586
59587         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
59588
59589         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
59590
59591 2007-02-04  Bruno Haible  <bruno@clisp.org>
59592
59593         New module description section 'configure.ac-early'.
59594         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
59595         (func_get_autoconf_early_snippet): New function.
59596         (func_import, func_create_testdir): Use it. Remove special cases for
59597         modules 'extensions' and 'lock'.
59598         * modules/extensions (configure.ac-early): Require
59599         gl_USE_SYSTEM_EXTENSIONS.
59600         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
59601
59602 2007-02-04  Bruno Haible  <bruno@clisp.org>
59603
59604         Make use of gcj-4.3's -fsource and -ftarget option.
59605         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
59606         and if so try the options -fsource and -ftarget.
59607         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
59608         source_version, ftarget_option, target_version arguments.
59609         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
59610         (is_envjavac_oldgcj_14_14_usable): Renamed from
59611         is_envjavac_gcj_14_14_usable.
59612         (is_envjavac_oldgcj_14_13_usable): Renamed from
59613         is_envjavac_gcj_14_13_usable.
59614         (is_gcj_present): Update.
59615         (is_gcj_43, is_gcj43_usable): New functions.
59616         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
59617         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
59618         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
59619         try the options -fsource and -ftarget.
59620
59621 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
59622
59623         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
59624         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
59625         larger value.
59626
59627 2007-02-03  Jim Meyering  <jim@meyering.net>
59628
59629         Give tools a better chance to allocate space for very large buffers.
59630         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
59631
59632         Make pwd and readlink work also when run with an unreadable parent dir
59633         on systems with openat support.
59634         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
59635         provided getcwd function, even when we have openat support.
59636         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
59637
59638 2007-02-02  Bruno Haible  <bruno@clisp.org>
59639
59640         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
59641         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
59642         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
59643         portability problems if one of these functions is only used on specific
59644         platforms.
59645         Reported by Paul Eggert.
59646
59647 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
59648
59649         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
59650         is causing more trouble than it's curing.
59651         * lib/regex_internal.h (__mempcpy): Remove.
59652         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
59653         (and make the code a tad smaller to boot).
59654         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
59655
59656 2007-02-02  Jim Meyering  <jim@meyering.net>
59657
59658         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
59659         section, not in the Makefile.am: one.
59660
59661 2007-02-02  Eric Blake  <ebb9@byu.net>
59662
59663         * lib/strchrnul.c: Always include config.h first.
59664
59665         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
59666         gnulib strstr is not necessary here.
59667
59668 2007-02-02  Simon Josefsson  <simon@josefsson.org>
59669
59670         * m4/socklen.m4: Fix typo.
59671
59672 2007-02-02  Eric Blake  <ebb9@byu.net>
59673
59674         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
59675         * modules/netinet_in (Makefile.am): Likewise.
59676
59677 2007-02-01  Bruno Haible  <bruno@clisp.org>
59678
59679         * lib/string_.h (GL_LINK_WARNING): New macro.
59680         (strcasecmp, strstr, strcasestr): If provided by the system,
59681         conditionally define as a macro that leads to a warning instead of to
59682         an error.
59683         (strncasecmp): Conditionally define as a macro that leads to a warning.
59684
59685 2007-02-01  Karl Berry  <karl@gnu.org>
59686
59687         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
59688
59689 2007-02-01  Bruno Haible  <bruno@clisp.org>
59690
59691         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
59692         renamings.
59693
59694 2007-02-01  Eric Blake  <ebb9@byu.net>
59695
59696         * modules/regex (Depends-on): Revert dependence on mempcpy.
59697         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
59698         module's definition of mempcpy.
59699         Reported by Paul Eggert.
59700
59701 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
59702
59703         * lib/string_.h: If the gnulib module XYZ is not present, undefine
59704         the symbol XYZ before redefining it.  This fixes a problem with
59705         programs that don't use XYZ, when compiled on systems that define
59706         XYZ to something else.
59707
59708 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
59709
59710         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
59711         occurs when "mkdir -m foo" creates a setgid directory that is (1)
59712         writeable to group or other and (2) is intended to have a special
59713         mode bit that is set or cleared.  In such a case, the directory
59714         should be neither group- nor other-writeable until the special
59715         mode bits are right.
59716
59717 2007-01-31  Eric Blake  <ebb9@byu.net>
59718
59719         * modules/mountlist (Depends-on): Add strstr.
59720
59721         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
59722         bug.
59723         * modules/string (Makefile.am): Remove redundant replacement.
59724         * modules/regex (Depends-on): Add mempcpy.
59725
59726 2007-01-31  Bruno Haible  <bruno@clisp.org>
59727
59728         New module description field 'Link'.
59729         * gnulib-tool (func_usage): Document --extract-link-directive.
59730         (sed_extract_prog): Recognize 'Link' directive.
59731         (func_get_link_directive): New function.
59732         (func_import): Show summary of link directives.
59733         Handle --extract-link-directive option.
59734         * modules/acl (Link): New section.
59735         * modules/clock-time (Link): New section.
59736         * modules/euidaccess (Link): New section.
59737         * modules/gettext (Link): New section.
59738         * modules/iconv (Link): New section.
59739         * modules/lock (Link): New section.
59740         * modules/nanosleep (Link): New section.
59741         * modules/readline (Link): New section.
59742
59743 2007-01-27  Bruno Haible  <bruno@clisp.org>
59744
59745         Enforce the use of gnulib modules for unportable <string.h> functions.
59746         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
59747         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
59748         (gl_HEADER_STRING_H_BODY): Require it.
59749         * lib/string_.h: If the gnulib module XYZ is not present, redefine
59750         the symbol XYZ to one that gives a link error.
59751         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
59752         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
59753         * modules/mempcpy (configure.ac): Likewise.
59754         * modules/memrchr (configure.ac): Likewise.
59755         * modules/stpcpy (configure.ac): Likewise.
59756         * modules/stpncpy (configure.ac): Likewise.
59757         * modules/strcase (configure.ac): Likewise.
59758         * modules/strcasestr (configure.ac): Likewise.
59759         * modules/strchrnul (configure.ac): Likewise.
59760         * modules/strdup (configure.ac): Likewise.
59761         * modules/strndup (configure.ac): Likewise.
59762         * modules/strnlen (configure.ac): Likewise.
59763         * modules/strpbrk (configure.ac): Likewise.
59764         * modules/strsep (configure.ac): Likewise.
59765         * modules/strstr (configure.ac): Likewise.
59766         * modules/strtok_r (configure.ac): Likewise.
59767
59768 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
59769
59770         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
59771
59772 2007-01-30  Jim Meyering  <jim@meyering.net>
59773
59774         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
59775
59776 2007-01-29  Bruno Haible  <bruno@clisp.org>
59777
59778         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
59779         * lib/execute.c: Likewise.
59780         * lib/pipe.c: Likewise.
59781         * lib/printf-args.h: Likewise.
59782         * lib/printf-args.c: Likewise.
59783         * lib/printf-parse.c: Likewise.
59784         * lib/vasnprintf.c: Likewise.
59785
59786 2007-01-29  Eric Blake  <ebb9@byu.net>
59787
59788         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
59789         declaration.
59790
59791 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
59792
59793         * lib/strptime.h (strptime): Use 'restrict' for args where
59794         POSIX requires this.
59795         * lib/strptime.c (strptime): Likewise.
59796         Change license notice from LGPL to GPL, since gnulib-tool will
59797         change this as needed.
59798         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
59799         defined.
59800         Include "strptime.h" first, to check interface.
59801         Do not #undef _LIBC and _NL_CURRENT.
59802         Do not include <stdlib.h>; no longer needed.
59803         Include "time_r.h" and declare ptime_locale_status
59804         only if _LIBC is not defined.
59805         (__P): Remove unused macro.
59806         (match_string): Bring back glibc version, but use it only if _LIBC
59807         is defined.
59808         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
59809         Remove unnecessary assertion and abort() call.
59810         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
59811         * m4/strptime.m4: Fix serial number comment.
59812         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
59813         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
59814         (Depends-on): Add time_r.
59815
59816 2007-01-29  Bruno Haible  <bruno@clisp.org>
59817
59818         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
59819         strptime.
59820         * modules/strptime (Depends-on): Add stdbool.
59821         * lib/strptime.h: Include <time.h> always. Add comments.
59822
59823 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
59824
59825         * modules/strptime: New file.
59826         * lib/strptime.h: New file.
59827         * lib/strptime.c: New file.
59828         * m4/strptime.m4: New file.
59829
59830 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
59831
59832         * MODULES.html.sh: New module mpsort.
59833         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
59834
59835         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
59836         a circularity problem with HP-UX ia64 reported by Bob Proulx in
59837         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
59838         All uses changed.
59839         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
59840         All uses changed.
59841         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
59842         to _Restrict_.
59843         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
59844         the parameter matches the prototype.
59845
59846 2007-01-28  Jim Meyering  <jim@meyering.net>
59847
59848         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
59849         sys/time.h here, reverting that part of the previous patch:
59850         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
59851
59852 2007-01-28  Bruno Haible  <bruno@clisp.org>
59853
59854         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
59855         value of $(SYS_TIME_H).
59856         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
59857         remove it conditionally, too. [added by Jim Meyering]
59858         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
59859         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
59860         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
59861         GETTIMEOFDAY_REPLACEMENT to 1.
59862
59863 2007-01-28  Bruno Haible  <bruno@clisp.org>
59864
59865         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
59866         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
59867         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
59868         Set UNISTD_H instead of UNISTD_H2.
59869         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
59870
59871 2007-01-28  Bruno Haible  <bruno@clisp.org>
59872
59873         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
59874         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
59875
59876 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59877
59878         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
59879         (func_create_testdir): Ensure C locale for `grep' and `tr'
59880         character ranges.
59881         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
59882         ACLOCAL_AMFLAGS parsing state machine.
59883
59884 2007-01-27  Bruno Haible  <bruno@clisp.org>
59885
59886         * modules/unistr/base: Update.
59887
59888 2007-01-27  Bruno Haible  <bruno@clisp.org>
59889
59890         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
59891         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
59892         * modules/unistr/u32-mbtouc-unsafe: Renamed from
59893         modules/unistr/u32-mbtouc.
59894         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
59895         * lib/unistr.h: Update.
59896         * lib/linebreak.c: Update.
59897         * modules/unistr/u32-mbtouc: Renamed from
59898         modules/unistr/u32-mbtouc-safe.
59899         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
59900         * lib/unistr.h: Update.
59901         * lib/unistr/u32-to-u8.c: Update.
59902         * lib/unistr/u32-to-u16.c: Update.
59903
59904 2007-01-27  Bruno Haible  <bruno@clisp.org>
59905
59906         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
59907         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
59908         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
59909         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
59910         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
59911         * modules/unistr/u16-mbtouc-unsafe: Renamed from
59912         modules/unistr/u16-mbtouc.
59913         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
59914         * lib/unistr.h: Update.
59915         * lib/linebreak.c: Update.
59916         * modules/linebreak: Update.
59917         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
59918         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
59919         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
59920         * modules/unistr/u16-mbtouc: Renamed from
59921         modules/unistr/u16-mbtouc-safe.
59922         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
59923         * lib/unistr.h: Update.
59924         * lib/unistr/u16-to-u8.c: Update.
59925         * modules/unistr/u16-to-u8: Update.
59926         * lib/unistr/u16-to-u32.c: Update.
59927         * modules/unistr/u16-to-u32: Update.
59928
59929 2007-01-27  Bruno Haible  <bruno@clisp.org>
59930
59931         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
59932         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
59933         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
59934         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
59935         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
59936         * modules/unistr/u8-mbtouc-unsafe: Renamed from
59937         modules/unistr/u8-mbtouc.
59938         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
59939         * lib/unistr.h: Update.
59940         * lib/striconveh.c: Update.
59941         * modules/striconveh: Update.
59942         * lib/linebreak.c: Update.
59943         * modules/linebreak: Update.
59944         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
59945         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
59946         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
59947         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
59948         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
59949         * lib/unistr.h: Update.
59950         * lib/striconveh.c: Update.
59951         * modules/striconveh: Update.
59952         * lib/unistr/u8-to-u16.c: Update.
59953         * modules/unistr/u8-to-u16: Update.
59954         * lib/unistr/u8-to-u32.c: Update.
59955         * modules/unistr/u8-to-u32: Update.
59956
59957 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59958
59959         Sync from Libtool.
59960         * lib/argz.c: Do not include strings.h nor memory.h, include
59961         string.h unconditionally.  Patch by Simon Josefsson.
59962
59963 2007-01-27  Bruno Haible  <bruno@clisp.org>
59964
59965         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
59966         from gl_HEADER_STRING_H_BODY.
59967         (gl_HEADER_STRING_H_BODY): Require it.
59968         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
59969         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59970         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59971         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59972         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59973         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
59974         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59975         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59976         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
59977         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59978         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59979         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
59980         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59981         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59982         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
59983
59984 2007-01-27  Bruno Haible  <bruno@clisp.org>
59985
59986         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
59987         check_PROGRAMS into noinst_PROGRAMS.
59988         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
59989         check_PROGRAMS in this case.
59990         (func_import): Set for_test to false.
59991         (func_create_testdir): Set for_test to true.
59992
59993 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
59994             Bruno Haible  <bruno@clisp.org>
59995
59996         * modules/strcasestr (Files): Remove lib/strcasestr.h.
59997         (Depends-on): Add string.
59998         (Includes): Use <string.h> instead of strcasestr.h.
59999         * modules/string (Makefile.am): Also substitute the value of
60000         REPLACE_STRCASESTR.
60001         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
60002         assume strcasestr is declared in <string.h> not <strings.h>. Also
60003         set REPLACE_STRCASESTR.
60004         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
60005         REPLACE_STRCASESTR.
60006         * lib/strcasestr.h: Remove file.
60007         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
60008         * lib/string_.h (strcasestr): New declaration.
60009
60010 2007-01-27  Bruno Haible  <bruno@clisp.org>
60011
60012         * lib/string_.h: Use 'extern'.
60013
60014 2007-01-27  Jim Meyering  <jim@meyering.net>
60015
60016         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
60017         of set-but-not-used local, "q".
60018
60019         * lib/mempcpy.c: Include <config.h> before <string.h>.
60020         This fixes a compilation error on HP-UX, due to the system's
60021         "restrict"-using mempcpy prototype.
60022
60023 2007-01-26  Bruno Haible  <bruno@clisp.org>
60024
60025         Small optimization.
60026         * lib/javacomp.c: Include c-strstr.h.
60027          (is_envjavac_gcj): Use c_strstr instead of strstr.
60028         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
60029
60030 2007-01-26  Bruno Haible  <bruno@clisp.org>
60031
60032         * MODULES.html.sh (Unicode string functions): Add the new modules.
60033
60034         * modules/uniconv/u32-strconv-to-locale: New file.
60035         * lib/uniconv/u32-strconv-to-locale.c: New file.
60036
60037         * modules/uniconv/u16-strconv-to-locale: New file.
60038         * lib/uniconv/u16-strconv-to-locale.c: New file.
60039
60040         * modules/uniconv/u8-strconv-to-locale: New file.
60041         * lib/uniconv/u8-strconv-to-locale.c: New file.
60042
60043         * modules/uniconv/u32-strconv-from-locale: New file.
60044         * lib/uniconv/u32-strconv-from-locale.c: New file.
60045
60046         * modules/uniconv/u16-strconv-from-locale: New file.
60047         * lib/uniconv/u16-strconv-from-locale.c: New file.
60048
60049         * modules/uniconv/u8-strconv-from-locale: New file.
60050         * lib/uniconv/u8-strconv-from-locale.c: New file.
60051
60052         * modules/uniconv/u32-strconv-to-enc: New file.
60053         * lib/uniconv/u32-strconv-to-enc.c: New file.
60054         * modules/uniconv/u32-strconv-to-enc-tests: New file.
60055         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
60056
60057         * modules/uniconv/u16-strconv-to-enc: New file.
60058         * lib/uniconv/u16-strconv-to-enc.c: New file.
60059         * lib/uniconv/u-strconv-to-enc.h: New file.
60060         * modules/uniconv/u16-strconv-to-enc-tests: New file.
60061         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
60062
60063         * modules/uniconv/u8-strconv-to-enc: New file.
60064         * lib/uniconv/u8-strconv-to-enc.c: New file.
60065         * modules/uniconv/u8-strconv-to-enc-tests: New file.
60066         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
60067
60068         * modules/uniconv/u32-strconv-from-enc: New file.
60069         * lib/uniconv/u32-strconv-from-enc.c: New file.
60070         * modules/uniconv/u32-strconv-from-enc-tests: New file.
60071         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
60072
60073         * modules/uniconv/u16-strconv-from-enc: New file.
60074         * lib/uniconv/u16-strconv-from-enc.c: New file.
60075         * modules/uniconv/u16-strconv-from-enc-tests: New file.
60076         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
60077
60078         * modules/uniconv/u8-strconv-from-enc: New file.
60079         * lib/uniconv/u8-strconv-from-enc.c: New file.
60080         * lib/uniconv/u-strconv-from-enc.h: New file.
60081         * modules/uniconv/u8-strconv-from-enc-tests: New file.
60082         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
60083
60084         * modules/uniconv/u32-conv-from-enc: New file.
60085         * lib/uniconv/u32-conv-from-enc.c: New file.
60086         * modules/uniconv/u32-conv-from-enc-tests: New file.
60087         * tests/uniconv/test-u32-conv-from-enc.c: New file.
60088
60089         * modules/uniconv/u16-conv-from-enc: New file.
60090         * lib/uniconv/u16-conv-from-enc.c: New file.
60091         * lib/uniconv/u-conv-from-enc.h: New file.
60092         * modules/uniconv/u16-conv-from-enc-tests: New file.
60093         * tests/uniconv/test-u16-conv-from-enc.c: New file.
60094
60095         * modules/uniconv/u8-conv-from-enc: New file.
60096         * lib/uniconv/u8-conv-from-enc.c: New file.
60097         * modules/uniconv/u8-conv-from-enc-tests: New file.
60098         * tests/uniconv/test-u8-conv-from-enc.c: New file.
60099
60100         * modules/uniconv/base: New file.
60101         * lib/uniconv.h: New file.
60102
60103 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
60104
60105         * doc/gnulib-tool.texi (Initial import): Update to match current
60106         behavior with strdup module.
60107         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
60108         * lib/memmem.h: Remove; all uses removed.  This is now done
60109         by <string.h>.
60110         * lib/mempcpy.h: Likewise.
60111         * lib/memrchr.h: Likewise.
60112         * lib/stpcpy.h: Likewise.
60113         * lib/stpncpy.h: Likewise.
60114         * lib/strcase.h: Likewise.
60115         * lib/strchrnul.h: Likewise.
60116         * lib/strdup.h: Likewise.
60117         * lib/strndup.h: Likewise.
60118         * lib/strnlen.h: Likewise.
60119         * lib/strpbrk.h: Likewise.
60120         * lib/strsep.h: Likewise.
60121         * lib/strstr.h: Likewise.
60122         * lib/strtok_r.h: Likewise.
60123         * lib/string_.h: New file.
60124         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
60125         Rely on <string.h> instead.
60126         * lib/canon-host.c: Likewise.
60127         * lib/chdir-long.c: Likewise.
60128         * lib/concatpath.c: Likewise.
60129         * lib/exclude.c: Likewise.
60130         * lib/fchdir.c: Likewise.
60131         * lib/getaddrinfo.c: Likewise.
60132         * lib/getcwd.c: Likewise.
60133         * lib/getsubopt.c: Likewise.
60134         * lib/glob.c: Likewise.
60135         * lib/hard-locale.c: Likewise.
60136         * lib/iconvme.c: Likewise.
60137         * lib/javacomp.c: Likewise.
60138         * lib/mempcpy.c: Likewise.
60139         * lib/memrchr.c: Likewise.
60140         * lib/regex_internal.h: Likewise.
60141         * lib/stpncpy.c: Likewise.
60142         * lib/strcasecmp.c: Likewise.
60143         * lib/strchrnul.c: Likewise.
60144         * lib/strdup.c: Likewise.
60145         * lib/striconv.c: Likewise.
60146         * lib/striconveh.c: Likewise.
60147         * lib/striconveha.c: Likewise.
60148         * lib/strncasecmp.c: Likewise.
60149         * lib/strndup.c: Likewise.
60150         * lib/strnlen.c: Likewise.
60151         * lib/strsep.c: Likewise.
60152         * lib/strstr.c: Likewise.
60153         * lib/strtok_r.c: Likewise.
60154         * lib/userspec.c: Likewise.
60155         * lib/w32spawn.h: Likewise.
60156         * lib/xstrndup.c: Likewise.
60157         * lib/mountlist.c (strstr): Remove decl.
60158         * m4/string_h.m4: New file.
60159         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
60160         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
60161         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
60162         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
60163         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
60164         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
60165         Set REPLACE_STRCASECMP if necessary.
60166         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
60167         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
60168         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
60169         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
60170         HAVE_DECL_STRDUP if necessary.
60171         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
60172         since gl_FUNC_STRNDUP does that now.
60173         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
60174         Check for decl here...
60175         (gl_PREREQ_STRNLEN): ... not here.
60176         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
60177         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
60178         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
60179         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
60180         necessary.
60181         * modules/string: New file.
60182         * modules/memmem (Files): Remove special-purpose include file.
60183         (Depends-on): Add string.
60184         (Include): Include <string.h>, not the removed file.
60185         * modules/mempcpy: Likewise.
60186         * modules/memrchr: Likewise.
60187         * modules/stpcpy: Likewise.
60188         * modules/stpncpy: Likewise.
60189         * modules/strcase: Likewise.
60190         * modules/strchrnul: Likewise.
60191         * modules/strdup: Likewise.
60192         * modules/strndup: Likewise.
60193         * modules/strnlen: Likewise.
60194         * modules/strpbrk: Likewise.
60195         * modules/strsep: Likewise.
60196         * modules/strstr: Likewise.
60197         * modules/strtok_r: Likewise.
60198         * tests/test-dirname.c: Don't include "strdup.h", since
60199         <string.h> now suffices.
60200         * tests/test-memmem.c: Don't include "memmem.h", since
60201         <string.h> now suffices.
60202
60203 2007-01-25  Bruno Haible  <bruno@clisp.org>
60204
60205         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
60206         *resultp is 0.
60207
60208         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
60209         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
60210         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
60211         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
60212
60213         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
60214         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
60215         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
60216         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
60217         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
60218         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
60219
60220 2007-01-24  Bruno Haible  <bruno@clisp.org>
60221
60222         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
60223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
60224         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
60225         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
60226         gl_FUNC_FTS_CORE.
60227         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
60228         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
60229         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
60230         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
60231         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
60232         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
60233         gl_FUNC_FCHOWNAT.
60234         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
60235         gl_FUNC_STRFTIME.
60236         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
60237         Reported by Ralf Wildenhues.
60238
60239 2007-01-24  Bruno Haible  <bruno@clisp.org>
60240
60241         Drop AC_REQUIRE calls that are redundant with the module dependencies.
60242         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
60243         gl_GETADDRINFO.
60244         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
60245         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
60246         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
60247
60248 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
60249
60250         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
60251         Don't use 'exit'; just return from 'main'.
60252         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
60253
60254         * lib/fnmatch_.h: Readjust white space and comments to match
60255         glibc, to avoid spurious diffs.
60256
60257 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60258
60259         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
60260         2004-12-01 change by Jakub Jelinek, since this code won't compile
60261         if !LIBC.  Problem reported by Bob Proulx.
60262
60263 2007-01-23  Bruno Haible  <bruno@clisp.org>
60264
60265         * lib/striconveh.c: Include c-strcaseeq.h.
60266         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
60267         * modules/striconveh (Depends-on): Add c-strcaseeq.
60268
60269 2007-01-23  Bruno Haible  <bruno@clisp.org>
60270
60271         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
60272
60273         * modules/c-strcaseeq: New file.
60274         * lib/c-strcaseeq.h: New file.
60275
60276         * modules/streq: New file.
60277         * lib/streq.h: New file.
60278
60279 2007-01-23  Bruno Haible  <bruno@clisp.org>
60280
60281         * modules/striconveha-tests: New file.
60282         * tests/test-striconveha.c: New file.
60283
60284         * lib/striconveha.h: Include <stdbool.h>.
60285         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
60286         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
60287         (mem_iconveha_notranslit): Renamed from mem_iconveha.
60288         (mem_iconveha): New function.
60289         (str_iconveha_notranslit): Renamed from str_iconveha.
60290         (str_iconveha): New function.
60291         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
60292         c-strcase.
60293
60294 2007-01-23  Bruno Haible  <bruno@clisp.org>
60295
60296         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
60297         encodings without forgiving before trying any encoding with handler.
60298         (str_iconveha): Try all encodings without forgiving before trying any
60299         encoding with handler.
60300
60301 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60302
60303         Import the following changes from libc.
60304
60305         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
60306
60307         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
60308
60309         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
60310
60311         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
60312         normal_bracket label.
60313
60314         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
60315
60316         [BZ #361]
60317         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
60318         to normal_bracket after fetching the next character.
60319
60320 2007-01-22  Bruno Haible  <bruno@clisp.org>
60321
60322         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
60323         argument.
60324         * lib/striconveh.c (iconv_carefully_1): New function.
60325         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
60326         argument.
60327         (str_cd_iconveh): Update.
60328         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
60329         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
60330         * tests/test-striconveh.c (MAGIC): New macro.
60331         (new_offsets): New function.
60332         (main): Test call with and without offsets.
60333
60334 2007-01-22  Bruno Haible  <bruno@clisp.org>
60335
60336         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
60337         * modules/sys_select (Makefile.am): Likewise.
60338         * modules/sys_socket (Makefile.am): Likewise.
60339         * modules/sys_time (Makefile.am): Likewise.
60340
60341 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
60342
60343         * modules/gettimeofday (License): Change from GPL to LGPL, since
60344         gettimeofday is a library function.
60345
60346 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60347
60348         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
60349
60350 2007-01-21  Bruno Haible  <bruno@clisp.org>
60351
60352         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
60353
60354 2007-01-21  Bruno Haible  <bruno@clisp.org>
60355
60356         * modules/striconveha: New file.
60357         * lib/striconveha.h: New file.
60358         * lib/striconveha.c: New file.
60359         * MODULES.html.sh (Internationalization functions): Add striconveha.
60360         * lib/striconv.c (str_iconv): Optimize the case of an empty input
60361         string.
60362         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
60363
60364 2007-01-21  Bruno Haible  <bruno@clisp.org>
60365
60366         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
60367         * lib/striconveh.c (str_iconveh): Likewise.
60368
60369 2007-01-21  Bruno Haible  <bruno@clisp.org>
60370
60371         * lib/striconveh.h (mem_iconveh): New declaration.
60372         * lib/striconveh.c (mem_iconveh): New function.
60373         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
60374
60375 2007-01-21  Bruno Haible  <bruno@clisp.org>
60376
60377         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
60378
60379         * lib/striconveh.h (mem_cd_iconveh): Change specification.
60380         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
60381         original result buffer.
60382         (str_cd_iconveh): Update.
60383         * tests/test-striconveh.c (main): Update.
60384
60385         * lib/striconv.h (mem_cd_iconv): Change specification.
60386         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
60387         result buffer.
60388         (str_cd_iconv): Update.
60389         * tests/test-striconv.c (main): Update.
60390
60391 2007-01-21  Bruno Haible  <bruno@clisp.org>
60392
60393         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
60394
60395 2007-01-20  Jim Meyering  <jim@meyering.net>
60396
60397         * lib/userspec.c (parse_with_separator): If a user or group string
60398         starts with "+", skip the corresponding name-to-ID look-up, since
60399         such a look-up must fail: user and group names may not include "+".
60400
60401 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60402
60403         * lib/poll.c: Include sys/time.h and time.h unconditionally,
60404         since we now assume the sys_time module.
60405         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
60406         check for sys/time.h; no longer needed.
60407         * modules/poll (Depends-on): Depend on sys_time.
60408
60409 2007-01-18  Bruno Haible  <bruno@clisp.org>
60410
60411         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
60412         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60413
60414         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
60415         gettimeofday.
60416
60417         * tests/test-gettimeofday.c: Include <time.h>.
60418         (dummy): Remove variable.
60419
60420         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
60421         gl_HEADER_SYS_TIME_H.
60422         (gl_HEADER_SYS_TIME_H): New macro.
60423
60424         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
60425         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60426         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
60427         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
60428         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60429         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
60430         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
60431         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60432         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
60433         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
60434         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60435
60436         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
60437         last change; it caused a compilation error when cross-compiling to
60438         Cygwin.
60439
60440 2007-01-18  Jim Meyering  <jim@meyering.net>
60441
60442         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
60443         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
60444         than the race-prone "test -d sys || mkdir sys".
60445         (configure.ac): Use AC_PROG_MKDIR_P.
60446         * modules/sys_select: Likewise.
60447         * modules/sys_socket: Likewise.
60448         * modules/sys_time: Likewise.
60449
60450 2007-01-18  Eric Blake  <ebb9@byu.net>
60451
60452         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
60453         replace gettimeofday.
60454         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
60455         name, to avoid infinite recursion.
60456
60457 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
60458
60459         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
60460         module sys_time.
60461         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
60462         assume timespec.h defines struct timeval.
60463         * lib/settime.c: Likewise.
60464         * lib/utimens.c: Likewise.
60465         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
60466         since we now assume the gettimeofday module.
60467         * lib/tempname.c (__gen_tempname): Likewise.
60468         * lib/gettimeofday.h: Remove.
60469         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
60470         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
60471         Include <time.h>, for 'time()'.
60472         (localtime_buffer_addr): Also use this workaround if
60473         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
60474         to simplify the uses.  All uses changed.
60475         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
60476         that #undef is inside {}, and 'const' follows type name consistently.
60477         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
60478         (gettimeofday): Do not use the maximum possible value for
60479         tv->tv_usec, since that might break usages other than ls.c.
60480         Instead, we'll leave ls.c alone.  This undoes today's patch
60481         by Bruno.  Add a compile-time warning for 1s-clock resolution;
60482         we've never observed the problem but might as well keep the
60483         canary.
60484         * lib/nanosleep.c: Include timespec.h first, for interface check.
60485         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
60486         now assume the sys_time module.
60487         * lib/tempname.c: Likewise.
60488         * lib/timespec.h: Likewise.
60489         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
60490         needed.
60491         * lib/strftime.c: Likewise.
60492         * lib/timespec.h: Likewise.
60493         * lib/posixtm.c: Include posixtm.h first, for interface check.
60494         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
60495         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
60496         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
60497         * lib/sys_time_.h: New file.
60498         * lib/timespec.h (struct timespec): Use long int, not long.
60499         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
60500         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
60501         Remove obsolescent call to AC_HEADER_TIME.
60502         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60504         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
60505         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
60506         Likewise.
60507         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
60508         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
60509         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
60510         into the sys_time module.  Check for gettimeofday just once.
60511         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
60512         for gettimeofday signature to just check the signature.  Merely
60513         compile it, since linking doesn't test signature.  Improve test for
60514         whether gettimeofday.o is actually needed.
60515         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
60516         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
60517         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
60518         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60519         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
60520         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
60521         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
60522         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
60523         than worrying about sys/time.h.
60524         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
60525         Don't bother worrying about TIME_WITH_SYS_TIME.
60526         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
60527         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
60528         * m4/sys_time_h.m4: New file.
60529         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
60530         Don't include sys/time.h.  Return from main rather than exiting.
60531         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
60532         all uses changed.
60533         * modules/gethrxtime (Depends-on): Add sys_time.
60534         * modules/gettime (Depends-on): Likewise.
60535         * modules/gettimeofday (Depends-on): Likewise.
60536         * modules/nanosleep (Depends-on): Likewise.
60537         * modules/settime (Depends-on): Likewise.
60538         * modules/tempname (Depends-on): Likewise.
60539         * modules/utimens (Depends-on): Likewise.
60540         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
60541         (Include): Change back to <sys/time.h>.
60542         (Maintainer): Add self.
60543         * modules/sys_time: New file.
60544         * modules/tempname (Depends-on): Add gettimeofday.
60545         * tests/test-gettimeofday.c: Include <sys/time.h>
60546         rather than gettimeofday.h.
60547
60548 2007-01-17  Bruno Haible  <bruno@clisp.org>
60549
60550         * gnulib-tool (func_get_license): Revert last patch. Instead, let
60551         the license default to GPL.
60552         (func_create_testdir): Don't complain if a module is LGPL and its
60553         tests module depends on GPLed modules.
60554
60555 2007-01-17  Bruno Haible  <bruno@clisp.org>
60556
60557         * lib/gettimeofday.c (gettimeofday): Add code for the case
60558         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
60559         maximum possible value for tv->tv_usec, rather than the minimum one.
60560
60561 2005-10-08  Martin Lambers  <marlam@marlam.de>
60562 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
60563 2007-01-16  Bruno Haible  <bruno@clisp.org>
60564
60565         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
60566         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
60567         gl_FUNC_GETTIMEOFDAY.
60568         (Include): Add gettimeofday.h.
60569         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
60570         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
60571         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
60572         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
60573         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
60574         * lib/gettimeofday.h: New file.
60575         * lib/gettimeofday.c: Include <sys/timeb.h>.
60576         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
60577         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
60578         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
60579         fall back on time().
60580
60581         * tests/test-gettimeofday.c: New file.
60582         * modules/gettimeofday-tests: New file.
60583
60584 2007-01-16  Eric Blake  <ebb9@byu.net>
60585
60586         * modules/fnmatch (Depends-on): Depend on wchar.
60587         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
60588         * m4/fnmatch.m4: Likewise.
60589         * modules/mbchar (Makefile.am): Assume <wchar.h>.
60590         * m4/mbchar.m4: Likewise.
60591         * modules/mbswidth (Depends-on): Depend on wchar.
60592         * lib/mbswidth.c: Assume <wchar.h>.
60593         * m4/mbswidth.m4: Likewise.
60594         * modules/quotearg (Depends-on): Depend on wchar.
60595         * lib/quotearg.c: Assume <wchar.h>.
60596         * m4/quotearg.m4: Likewise.
60597         * modules/regex (Depends-on): Depend on wchar.
60598         * lib/regex_internal.h: Assume <wchar.h>.
60599         * m4/regex.m4: Likewise.
60600         * modules/stdint (Depends-on): Depend on wchar.
60601         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
60602         * m4/stdint.m4: Likewise.
60603         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
60604         * modules/strftime (Depends-on): Depend on wchar.
60605         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
60606         * modules/strtol (Depends-on): Depend on wchar.
60607         * lib/strtol.c: Assume <wchar.h>.
60608         * modules/wcwidth (Depends-on): Depend on wchar.
60609         * lib/wcwidth.h: Assume <wchar.h>.
60610         * m4/wcwidth.m4: Likewise.
60611
60612 2007-01-16  Bruno Haible  <bruno@clisp.org>
60613
60614         * modules/csharpexec-script: New, created from...
60615         * modules/csharpexec: ... this.
60616
60617 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60618
60619         * modules/javaexec-script: New, created from...
60620         * modules/javaexec: ... this.
60621
60622 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
60623
60624         * modules/poll (Dependencies): Add sys_select.
60625
60626 2007-01-15  Jim Meyering  <jim@meyering.net>
60627
60628         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
60629         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
60630         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
60631         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
60632
60633 2007-01-15  Bruno Haible  <bruno@clisp.org>
60634
60635         * modules/striconveh: New file.
60636         * lib/striconveh.h: New file.
60637         * lib/striconveh.c: New file.
60638         * MODULES.html.sh (Internationalization functions): Add striconveh.
60639
60640         * modules/striconveh-tests: New file.
60641         * tests/test-striconveh.c: New file.
60642
60643 2007-01-15  Bruno Haible  <bruno@clisp.org>
60644
60645         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
60646         not from GNU libiconv or GNU libc.
60647
60648 2007-01-15  Bruno Haible  <bruno@clisp.org>
60649
60650         * doc/gnulib-intro.texi (Copyright): Explain the different license
60651         terms for module descriptions, autoconf macros, tests, documentation.
60652
60653 2007-01-14  Bruno Haible  <bruno@clisp.org>
60654
60655         * modules/striconv-tests: New file.
60656         * tests/test-striconv.c: New file.
60657
60658 2007-01-14  Bruno Haible  <bruno@clisp.org>
60659
60660         * modules/iconv-tests: New file.
60661         * tests/test-iconv.c: New file.
60662
60663 2007-01-14  Bruno Haible  <bruno@clisp.org>
60664
60665         * gnulib-tool (func_get_license): For test modules, use the license of
60666         the main module.
60667
60668 2007-01-14  Bruno Haible  <bruno@clisp.org>
60669
60670         * modules/iconv (Include): Clarify that <iconv.h> can only be included
60671         if iconv is found to exist.
60672
60673 2007-01-14  Bruno Haible  <bruno@clisp.org>
60674
60675         * modules/c-ctype-tests: New file.
60676         * tests/test-c-ctype.c: New file.
60677
60678 2007-01-14  Bruno Haible  <bruno@clisp.org>
60679
60680         * modules/binary-io-tests: New file.
60681         * tests/test-binary-io.sh: New file.
60682         * tests/test-binary-io.c: New file.
60683
60684 2007-01-14  Bruno Haible  <bruno@clisp.org>
60685
60686         * modules/array-oset-tests: New file.
60687         * tests/test-array_oset.c: New file.
60688
60689 2007-01-14  Bruno Haible  <bruno@clisp.org>
60690
60691         * modules/array-list-tests: New file.
60692         * tests/test-array_list.c: New file.
60693
60694 2007-01-14  Bruno Haible  <bruno@clisp.org>
60695
60696         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
60697         and make.
60698         Reported by Simon Josefsson in
60699         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
60700
60701 2007-01-14  Bruno Haible  <bruno@clisp.org>
60702
60703         * modules/allocsa-tests: New file.
60704         * tests/test-allocsa.c: New file.
60705
60706 2007-01-14  Bruno Haible  <bruno@clisp.org>
60707
60708         * modules/fchdir (Depends-on): Add absolute-header.
60709         * modules/unistd (Depends-on): Likewise.
60710
60711 2006-12-30  Bruno Haible  <bruno@clisp.org>
60712
60713         * modules/fchdir: New file.
60714         * modules/unistd (Files): Add lib/unistd_.h.
60715         (Makefile.am): Generate unistd.h from unistd_.h.
60716         * lib/fchdir.c: New file.
60717         * lib/dirent_.h: New file.
60718         * lib/unistd_.h: New file.
60719         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
60720         * m4/fchdir.m4: New file.
60721         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
60722         (gl_HEADER_UNISTD): Invoke it.
60723         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
60724         function.
60725         * lib/backupfile.c (opendir, closedir): Undefine.
60726         * lib/chown.c (open, close): Undefine.
60727         * lib/clean-temp.c (open, close): Undefine.
60728         * lib/copy-file.c (open, close): Undefine.
60729         * lib/execute.c (open, close): Undefine.
60730         * lib/fsusage.c (open, close): Undefine.
60731         * lib/gc-gnulib.c (open, close): Undefine.
60732         * lib/getcwd.c (opendir, closedir): Undefine.
60733         * lib/glob.c (opendir, closedir): Undefine.
60734         * lib/javacomp.c (open, close): Undefine.
60735         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
60736         * lib/openat-proc.c (open, close): Undefine.
60737         * lib/pagealign_alloc.c (open, close): Undefine.
60738         * lib/pipe.c (open, close): Undefine.
60739         * lib/progreloc.c (open, close): Undefine.
60740         * lib/savedir.c (opendir, closedir): Undefine.
60741         * lib/utime.c (open, close): Undefine.
60742         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
60743
60744 2007-01-10  Bruno Haible  <bruno@clisp.org>
60745
60746         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
60747
60748 2007-01-12  Eric Blake  <ebb9@byu.net>
60749
60750         Provide a robust <wchar.h>.  Further simplifications are now
60751         possible in other modules, but not included here.
60752         * modules/wchar: New module.
60753         * m4/wchar.m4: New file.
60754         * lib/wchar_.h: Likewise.
60755         * modules/mbchar (Depends-on): Depend on wchar, as the first use
60756         of the new module.
60757         * MODULES.html.sh (Extended multibyte and wide character utilities):
60758         New section.
60759
60760 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
60761
60762         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
60763         to a reasonable default for memory allocation.
60764         (xreadlink): Don't allocate a huge buffer, to work around a buggy
60765         file system that reports garbage st_size values for symlinks.
60766         Problem reported by Liyang Hu.
60767
60768 2007-01-11  Simon Josefsson  <simon@josefsson.org>
60769
60770         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
60771         Emacs .#* auto-save files).
60772
60773 2007-01-11  Bruno Haible  <bruno@clisp.org>
60774
60775         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
60776         directory.
60777
60778 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
60779
60780         Use @...@ consistently in lib/wctype_.h.
60781         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
60782         on it being set to 1 or 0.
60783         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
60784         go back to AC_SUBSTing it.
60785         * modules/wctype (Makefile.am): Undo previous change.
60786
60787 2007-01-10  Eric Blake  <ebb9@byu.net>
60788
60789         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
60790         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
60791         * modules/wctype (Makefile.am): Likewise.
60792         Reported by Chris McGuire.
60793
60794 2007-01-10  Jim Meyering  <jim@meyering.net>
60795
60796         fts.c: a small readability/maintainability improvement
60797         * lib/fts.c (fts_read): Make this code slightly more readable and
60798         maintainable by hoisting the "sp->fts_cur = p" assignments to
60799         immediately follow the statements that set P.  Derived from
60800         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
60801
60802 2007-01-10  Eric Blake  <ebb9@byu.net>
60803
60804         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
60805         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
60806         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
60807         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
60808         Reported by Chris McGuire.
60809
60810 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60811
60812         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
60813         in sed script.
60814
60815 2007-01-09  Bruno Haible  <bruno@clisp.org>
60816
60817         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
60818         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
60819         variables.
60820         (func_module): Use them.
60821
60822 2007-01-09  Bruno Haible  <bruno@clisp.org>
60823
60824         * modules/unistr/base: New file.
60825         * lib/unistr.h: New file.
60826
60827         * modules/unistr/u8-to-u16: New file.
60828         * lib/unistr/u8-to-u16.c: New file.
60829
60830         * modules/unistr/u8-to-u32: New file.
60831         * lib/unistr/u8-to-u32.c: New file.
60832
60833         * modules/unistr/u16-to-u8: New file.
60834         * lib/unistr/u16-to-u8.c: New file.
60835
60836         * modules/unistr/u16-to-u32: New file.
60837         * lib/unistr/u16-to-u32.c: New file.
60838
60839         * modules/unistr/u32-to-u8: New file.
60840         * lib/unistr/u32-to-u8.c: New file.
60841
60842         * modules/unistr/u32-to-u16: New file.
60843         * lib/unistr/u32-to-u16.c: New file.
60844
60845         * modules/unistr/u8-check: New file.
60846         * modules/unistr/u16-check: New file.
60847         * modules/unistr/u32-check: New file.
60848         * lib/unistr/u8-check.c: New file.
60849         * lib/unistr/u16-check.c: New file.
60850         * lib/unistr/u32-check.c: New file.
60851
60852         * modules/unistr/u8-chr: New file.
60853         * modules/unistr/u16-chr: New file.
60854         * modules/unistr/u32-chr: New file.
60855         * lib/unistr/u8-chr.c: New file.
60856         * lib/unistr/u16-chr.c: New file.
60857         * lib/unistr/u32-chr.c: New file.
60858
60859         * modules/unistr/u8-cmp: New file.
60860         * modules/unistr/u16-cmp: New file.
60861         * modules/unistr/u32-cmp: New file.
60862         * lib/unistr/u8-cmp.c: New file.
60863         * lib/unistr/u16-cmp.c: New file.
60864         * lib/unistr/u32-cmp.c: New file.
60865
60866         * modules/unistr/u8-cpy: New file.
60867         * modules/unistr/u16-cpy: New file.
60868         * modules/unistr/u32-cpy: New file.
60869         * lib/unistr/u8-cpy.c: New file.
60870         * lib/unistr/u16-cpy.c: New file.
60871         * lib/unistr/u32-cpy.c: New file.
60872         * lib/unistr/u-cpy.h: New file.
60873
60874         * modules/unistr/u8-cpy-alloc: New file.
60875         * modules/unistr/u16-cpy-alloc: New file.
60876         * modules/unistr/u32-cpy-alloc: New file.
60877         * lib/unistr/u8-cpy-alloc.c: New file.
60878         * lib/unistr/u16-cpy-alloc.c: New file.
60879         * lib/unistr/u32-cpy-alloc.c: New file.
60880         * lib/unistr/u-cpy-alloc.h: New file.
60881
60882         * modules/unistr/u8-endswith: New file.
60883         * modules/unistr/u16-endswith: New file.
60884         * modules/unistr/u32-endswith: New file.
60885         * lib/unistr/u8-endswith.c: New file.
60886         * lib/unistr/u16-endswith.c: New file.
60887         * lib/unistr/u32-endswith.c: New file.
60888         * lib/unistr/u-endswith.h: New file.
60889
60890         * modules/unistr/u8-mblen: New file.
60891         * modules/unistr/u16-mblen: New file.
60892         * modules/unistr/u32-mblen: New file.
60893         * lib/unistr/u8-mblen.c: New file.
60894         * lib/unistr/u16-mblen.c: New file.
60895         * lib/unistr/u32-mblen.c: New file.
60896
60897         * modules/unistr/u8-mbtouc: New file.
60898         * modules/unistr/u16-mbtouc: New file.
60899         * modules/unistr/u32-mbtouc: New file.
60900         * lib/unistr/u8-mbtouc.c: New file.
60901         * lib/unistr/u16-mbtouc.c: New file.
60902         * lib/unistr/u32-mbtouc.c: New file.
60903
60904         * modules/unistr/u8-mbtouc-safe: New file.
60905         * modules/unistr/u16-mbtouc-safe: New file.
60906         * modules/unistr/u32-mbtouc-safe: New file.
60907         * lib/unistr/u8-mbtouc-safe.c: New file.
60908         * lib/unistr/u16-mbtouc-safe.c: New file.
60909         * lib/unistr/u32-mbtouc-safe.c: New file.
60910
60911         * modules/unistr/u8-move: New file.
60912         * modules/unistr/u16-move: New file.
60913         * modules/unistr/u32-move: New file.
60914         * lib/unistr/u8-move.c: New file.
60915         * lib/unistr/u16-move.c: New file.
60916         * lib/unistr/u32-move.c: New file.
60917         * lib/unistr/u-move.h: New file.
60918
60919         * modules/unistr/u8-next: New file.
60920         * modules/unistr/u16-next: New file.
60921         * modules/unistr/u32-next: New file.
60922         * lib/unistr/u8-next.c: New file.
60923         * lib/unistr/u16-next.c: New file.
60924         * lib/unistr/u32-next.c: New file.
60925
60926         * modules/unistr/u8-prev: New file.
60927         * modules/unistr/u16-prev: New file.
60928         * modules/unistr/u32-prev: New file.
60929         * lib/unistr/u8-prev.c: New file.
60930         * lib/unistr/u16-prev.c: New file.
60931         * lib/unistr/u32-prev.c: New file.
60932
60933         * modules/unistr/u8-set: New file.
60934         * modules/unistr/u16-set: New file.
60935         * modules/unistr/u32-set: New file.
60936         * lib/unistr/u8-set.c: New file.
60937         * lib/unistr/u16-set.c: New file.
60938         * lib/unistr/u32-set.c: New file.
60939         * lib/unistr/u-set.h: New file.
60940
60941         * modules/unistr/u8-startswith: New file.
60942         * modules/unistr/u16-startswith: New file.
60943         * modules/unistr/u32-startswith: New file.
60944         * lib/unistr/u8-startswith.c: New file.
60945         * lib/unistr/u16-startswith.c: New file.
60946         * lib/unistr/u32-startswith.c: New file.
60947         * lib/unistr/u-startswith.h: New file.
60948
60949         * modules/unistr/u8-stpcpy: New file.
60950         * modules/unistr/u16-stpcpy: New file.
60951         * modules/unistr/u32-stpcpy: New file.
60952         * lib/unistr/u8-stpcpy.c: New file.
60953         * lib/unistr/u16-stpcpy.c: New file.
60954         * lib/unistr/u32-stpcpy.c: New file.
60955         * lib/unistr/u-stpcpy.h: New file.
60956
60957         * modules/unistr/u8-stpncpy: New file.
60958         * modules/unistr/u16-stpncpy: New file.
60959         * modules/unistr/u32-stpncpy: New file.
60960         * lib/unistr/u8-stpncpy.c: New file.
60961         * lib/unistr/u16-stpncpy.c: New file.
60962         * lib/unistr/u32-stpncpy.c: New file.
60963         * lib/unistr/u-stpncpy.h: New file.
60964
60965         * modules/unistr/u8-strcat: New file.
60966         * modules/unistr/u16-strcat: New file.
60967         * modules/unistr/u32-strcat: New file.
60968         * lib/unistr/u8-strcat.c: New file.
60969         * lib/unistr/u16-strcat.c: New file.
60970         * lib/unistr/u32-strcat.c: New file.
60971         * lib/unistr/u-strcat.h: New file.
60972
60973         * modules/unistr/u8-strchr: New file.
60974         * modules/unistr/u16-strchr: New file.
60975         * modules/unistr/u32-strchr: New file.
60976         * lib/unistr/u8-strchr.c: New file.
60977         * lib/unistr/u16-strchr.c: New file.
60978         * lib/unistr/u32-strchr.c: New file.
60979
60980         * modules/unistr/u8-strcmp: New file.
60981         * modules/unistr/u16-strcmp: New file.
60982         * modules/unistr/u32-strcmp: New file.
60983         * lib/unistr/u8-strcmp.c: New file.
60984         * lib/unistr/u16-strcmp.c: New file.
60985         * lib/unistr/u32-strcmp.c: New file.
60986
60987         * modules/unistr/u8-strcpy: New file.
60988         * modules/unistr/u16-strcpy: New file.
60989         * modules/unistr/u32-strcpy: New file.
60990         * lib/unistr/u8-strcpy.c: New file.
60991         * lib/unistr/u16-strcpy.c: New file.
60992         * lib/unistr/u32-strcpy.c: New file.
60993         * lib/unistr/u-strcpy.h: New file.
60994
60995         * modules/unistr/u8-strcspn: New file.
60996         * modules/unistr/u16-strcspn: New file.
60997         * modules/unistr/u32-strcspn: New file.
60998         * lib/unistr/u8-strcspn.c: New file.
60999         * lib/unistr/u16-strcspn.c: New file.
61000         * lib/unistr/u32-strcspn.c: New file.
61001         * lib/unistr/u-strcspn.h: New file.
61002
61003         * modules/unistr/u8-strdup: New file.
61004         * modules/unistr/u16-strdup: New file.
61005         * modules/unistr/u32-strdup: New file.
61006         * lib/unistr/u8-strdup.c: New file.
61007         * lib/unistr/u16-strdup.c: New file.
61008         * lib/unistr/u32-strdup.c: New file.
61009         * lib/unistr/u-strdup.h: New file.
61010
61011         * modules/unistr/u8-strlen: New file.
61012         * modules/unistr/u16-strlen: New file.
61013         * modules/unistr/u32-strlen: New file.
61014         * lib/unistr/u8-strlen.c: New file.
61015         * lib/unistr/u16-strlen.c: New file.
61016         * lib/unistr/u32-strlen.c: New file.
61017         * lib/unistr/u-strlen.h: New file.
61018
61019         * modules/unistr/u8-strmblen: New file.
61020         * modules/unistr/u16-strmblen: New file.
61021         * modules/unistr/u32-strmblen: New file.
61022         * lib/unistr/u8-strmblen.c: New file.
61023         * lib/unistr/u16-strmblen.c: New file.
61024         * lib/unistr/u32-strmblen.c: New file.
61025
61026         * modules/unistr/u8-strmbtouc: New file.
61027         * modules/unistr/u16-strmbtouc: New file.
61028         * modules/unistr/u32-strmbtouc: New file.
61029         * lib/unistr/u8-strmbtouc.c: New file.
61030         * lib/unistr/u16-strmbtouc.c: New file.
61031         * lib/unistr/u32-strmbtouc.c: New file.
61032
61033         * modules/unistr/u8-strncat: New file.
61034         * modules/unistr/u16-strncat: New file.
61035         * modules/unistr/u32-strncat: New file.
61036         * lib/unistr/u8-strncat.c: New file.
61037         * lib/unistr/u16-strncat.c: New file.
61038         * lib/unistr/u32-strncat.c: New file.
61039         * lib/unistr/u-strncat.h: New file.
61040
61041         * modules/unistr/u8-strncmp: New file.
61042         * modules/unistr/u16-strncmp: New file.
61043         * modules/unistr/u32-strncmp: New file.
61044         * lib/unistr/u8-strncmp.c: New file.
61045         * lib/unistr/u16-strncmp.c: New file.
61046         * lib/unistr/u32-strncmp.c: New file.
61047
61048         * modules/unistr/u8-strncpy: New file.
61049         * modules/unistr/u16-strncpy: New file.
61050         * modules/unistr/u32-strncpy: New file.
61051         * lib/unistr/u8-strncpy.c: New file.
61052         * lib/unistr/u16-strncpy.c: New file.
61053         * lib/unistr/u32-strncpy.c: New file.
61054         * lib/unistr/u-strncpy.h: New file.
61055
61056         * modules/unistr/u8-strnlen: New file.
61057         * modules/unistr/u16-strnlen: New file.
61058         * modules/unistr/u32-strnlen: New file.
61059         * lib/unistr/u8-strnlen.c: New file.
61060         * lib/unistr/u16-strnlen.c: New file.
61061         * lib/unistr/u32-strnlen.c: New file.
61062         * lib/unistr/u-strnlen.h: New file.
61063
61064         * modules/unistr/u8-strpbrk: New file.
61065         * modules/unistr/u16-strpbrk: New file.
61066         * modules/unistr/u32-strpbrk: New file.
61067         * lib/unistr/u8-strpbrk.c: New file.
61068         * lib/unistr/u16-strpbrk.c: New file.
61069         * lib/unistr/u32-strpbrk.c: New file.
61070         * lib/unistr/u-strpbrk.h: New file.
61071
61072         * modules/unistr/u8-strrchr: New file.
61073         * modules/unistr/u16-strrchr: New file.
61074         * modules/unistr/u32-strrchr: New file.
61075         * lib/unistr/u8-strrchr.c: New file.
61076         * lib/unistr/u16-strrchr.c: New file.
61077         * lib/unistr/u32-strrchr.c: New file.
61078
61079         * modules/unistr/u8-strspn: New file.
61080         * modules/unistr/u16-strspn: New file.
61081         * modules/unistr/u32-strspn: New file.
61082         * lib/unistr/u8-strspn.c: New file.
61083         * lib/unistr/u16-strspn.c: New file.
61084         * lib/unistr/u32-strspn.c: New file.
61085         * lib/unistr/u-strspn.h: New file.
61086
61087         * modules/unistr/u8-strstr: New file.
61088         * modules/unistr/u16-strstr: New file.
61089         * modules/unistr/u32-strstr: New file.
61090         * lib/unistr/u8-strstr.c: New file.
61091         * lib/unistr/u16-strstr.c: New file.
61092         * lib/unistr/u32-strstr.c: New file.
61093         * lib/unistr/u-strstr.h: New file.
61094
61095         * modules/unistr/u8-strtok: New file.
61096         * modules/unistr/u16-strtok: New file.
61097         * modules/unistr/u32-strtok: New file.
61098         * lib/unistr/u8-strtok.c: New file.
61099         * lib/unistr/u16-strtok.c: New file.
61100         * lib/unistr/u32-strtok.c: New file.
61101         * lib/unistr/u-strtok.h: New file.
61102
61103         * modules/unistr/u8-uctomb: New file.
61104         * modules/unistr/u16-uctomb: New file.
61105         * modules/unistr/u32-uctomb: New file.
61106         * lib/unistr/u8-uctomb.c: New file.
61107         * lib/unistr/u16-uctomb.c: New file.
61108         * lib/unistr/u32-uctomb.c: New file.
61109
61110         * MODULES.html.sh (Unicode string functions): Add the new modules.
61111
61112 2007-01-08  Bruno Haible  <bruno@clisp.org>
61113
61114         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
61115         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
61116         subdirectories.
61117
61118 2007-01-08  Karl Berry  <karl@gnu.org>
61119
61120         * doc/error.texi: mention that main() fns must set program_name
61121         when progname is used.
61122
61123 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
61124
61125         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
61126         WCTYPE_H is empty, for the benefit of builds from non-distclean
61127         directories.  Problem reported by Eric Blake in
61128         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
61129
61130 2007-01-08  Bruno Haible  <bruno@clisp.org>
61131
61132         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
61133         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
61134         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
61135         PROVIDE_CANONICALIZE_FILENAME_MODE.
61136         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
61137
61138 2007-01-08  Bruno Haible  <bruno@clisp.org>
61139
61140         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
61141         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
61142         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
61143         * lib/fts.c: Likewise.
61144         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
61145
61146 2006-12-25  Bruno Haible  <bruno@clisp.org>
61147
61148         * modules/utf8-ucs4-safe: New file.
61149         * lib/utf8-ucs4-safe.h: New file.
61150         * lib/unistr/utf8-ucs4-safe.c: New file.
61151
61152         * modules/utf16-ucs4-safe: New file.
61153         * lib/utf16-ucs4-safe.h: New file.
61154         * lib/unistr/utf16-ucs4-safe.c: New file.
61155
61156         * MODULES.html.sh (Unicode string functions): Add the new modules.
61157
61158 2007-01-08  Bruno Haible  <bruno@clisp.org>
61159
61160         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
61161         (Depends-on): Add unitypes.
61162         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61163         (u8_mbtouc_aux): Move out to separate file.
61164         (u8_mbtouc): Use ucs4_t, uint8_t types.
61165         * lib/unistr/utf8-ucs4.c: New file.
61166
61167         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
61168         (Depends-on): Add unitypes.
61169         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
61170         (u16_mbtouc_aux): Move out to separate file.
61171         (u16_mbtouc): Use ucs4_t, uint16_t types.
61172         * lib/unistr/utf16-ucs4.c: New file.
61173
61174         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
61175         (Depends-on): Add unitypes.
61176         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
61177         (u8_uctomb_aux): Move out to separate file.
61178         (u8_uctomb): Use ucs4_t, uint8_t types.
61179         * lib/unistr/ucs4-utf8.c: New file.
61180
61181         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
61182         (Depends-on): Add unitypes.
61183         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
61184         (u16_uctomb_aux): Move out to separate file.
61185         (u16_uctomb): Use ucs4_t, uint16_t types.
61186         * lib/unistr/ucs4-utf16.c: New file.
61187
61188 2006-12-25  Bruno Haible  <bruno@clisp.org>
61189
61190         * modules/unitypes: New file.
61191         * lib/unitypes.h: New file.
61192         * MODULES.html.sh (func_all_modules): New section "Unicode string
61193         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
61194         this section. Add unitypes.
61195
61196 2007-01-08  Bruno Haible  <bruno@clisp.org>
61197
61198         Avoid variable names that conflict with those from libtool.
61199         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
61200         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
61201         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
61202         library_names_spec to acl_library_names_spec, hardcode_* to
61203         acl_hardcode_*.
61204         Reported by Ralf Wildenhues.
61205
61206 2007-01-08  Bruno Haible  <bruno@clisp.org>
61207
61208         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
61209         definition.
61210         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
61211         definition.
61212         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
61213         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
61214         definition.
61215         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
61216         definition.
61217         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
61218         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
61219         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
61220         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
61221         definition.
61222         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
61223         definition.
61224         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
61225         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
61226         GC_USE_<algorithm>.
61227         * lib/gc-libgcrypt.c: Likewise.
61228         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
61229         * modules/gc-arctwo (configure.ac): Likewise.
61230         * modules/gc-des (configure.ac): Likewise.
61231         * modules/gc-hmac-md5 (configure.ac): Likewise.
61232         * modules/gc-hmac-sha1 (configure.ac): Likewise.
61233         * modules/gc-md2 (configure.ac): Likewise.
61234         * modules/gc-md4 (configure.ac): Likewise.
61235         * modules/gc-md5 (configure.ac): Likewise.
61236         * modules/gc-random (configure.ac): Likewise.
61237         * modules/gc-rijndael (configure.ac): Likewise.
61238         * modules/gc-sha1 (configure.ac): Likewise.
61239
61240 2007-01-08  Bruno Haible  <bruno@clisp.org>
61241
61242         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
61243         macro definition.
61244         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
61245         definition.
61246         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
61247         definition.
61248         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
61249         * modules/fcntl-safer (configure.ac): Likewise.
61250         * modules/fopen-safer (configure.ac): Likewise.
61251         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
61252         GNULIB_FWRITEERROR macro definition.
61253
61254 2007-01-08  Bruno Haible  <bruno@clisp.org>
61255
61256         * m4/gnulib-common.m4: New file.
61257         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
61258         (func_get_filelist): Add m4/gnulib-common.m4.
61259
61260 2007-01-08  Bruno Haible  <bruno@clisp.org>
61261
61262         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
61263         command.
61264
61265 2007-01-08  Jim Meyering  <jim@meyering.net>
61266
61267         Use a more robust test for a "can't happen" condition.
61268         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
61269         narrowed the st_size value.  Presuming the "can't happen" condition
61270         is true, that narrowing could conceivably convert an invalid st_size
61271         value into a valid one.  Instead, use a change based on Matthew
61272         Woehlke's original patch.
61273
61274         Slight readability improvement: use an assert-like macro
61275         in place of literal "abort ()" uses.
61276         * lib/fts.c (fts_assert): Define.
61277         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
61278         Use this macro instead of a bare 'abort'.
61279
61280 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
61281
61282         Don't worry about using IRIX 5.3's wctype.h broken definitions;
61283         simply work around them.
61284         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
61285         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
61286         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
61287         declaring.
61288         Don't bother to define as macros, since the standard doesn't require it.
61289         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
61290         longer worry about IRIX 5.3.
61291         (HAVE_WCTYPE_CTMP_BUG): Remove.
61292
61293 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
61294
61295         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
61296         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
61297         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
61298         Problems reported by Georg Schwarz for IRIX 5.3.
61299
61300         * gnulib-tool (autoconf_minversion): Take the maximum version number
61301         found, not the minimum.  Problem reported by James Youngman.
61302
61303 2007-01-03  Karl Berry  <karl@gnu.org>
61304
61305         * doc/error.texi: new file, explaining interaction with progname.
61306         * doc/gnulib.texi: include it.  Update copyright.
61307
61308 2007-01-03  Simon Josefsson  <simon@josefsson.org>
61309
61310         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
61311         AC_CANONICAL_HOST, to improve autobuild outputs.
61312
61313 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
61314             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
61315
61316         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
61317         sockets, server sockets, and other file descriptors.  Count errors
61318         to compute the return value.  Reorder the code a bit to be easier
61319         to follow.  Don't set event bits that were not requested (except
61320         POLLERR and POLLHUP).
61321
61322 2007-01-01  Bruno Haible  <bruno@clisp.org>
61323
61324         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
61325
61326 2007-01-03  Jim Meyering  <jim@meyering.net>
61327
61328         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
61329
61330 2007-01-02  Bruno Haible  <bruno@clisp.org>
61331
61332         * modules/settime (Include): Require timespec.h.
61333         * modules/nanosleep (Include): Likewise.
61334
61335 2007-01-01  Bruno Haible  <bruno@clisp.org>
61336
61337         * gnulib-tool (func_emit_copyright_notice): Bump year.
61338         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
61339
61340 2007-01-01  Bruno Haible  <bruno@clisp.org>
61341
61342         Improve support for OpenBSD.
61343         * build-aux/config.rpath (libname_spec): Export.
61344         (library_names_spec): New variable. Export.
61345         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
61346         library_names_spec from the config.rpath output. Locate shared library
61347         through the name pattern in library_names_spec.
61348
61349 2007-01-01  Eric Blake  <ebb9@byu.net>
61350
61351         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
61352
61353 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
61354
61355         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
61356         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
61357         assume the C locale, and avoid an "eval" that could cause trouble.
61358         Problem with SORT reported by Bob Proulx.
61359
61360         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
61361         Define.  Trivial patch from Henning Nielsen Lund, originally
61362         sent to bug-grep@gnu.org today.
61363
61364 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61365
61366         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
61367         struct stat.  Problem reported by Henning Nielsen Lund.
61368         * lib/acl.c: Include acl.h first, to check interface.  Don't
61369         bother to include sys/types.h and sys/stat.h again.
61370
61371 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
61372
61373         Import the following change from libc; problem reported by
61374         Sven Verdoolaege.
61375
61376         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
61377
61378         [BZ #1373]
61379         * lib/argp.h: Remove __NTH for __argp_usage inline function.
61380
61381 2006-12-28  Jim Meyering  <jim@meyering.net>
61382
61383         * build-aux/announce-gen: Do not assume that the package
61384         builds any of tar.gz, tar.bz2, and .xdelta files.
61385         Suggestion from Simon Josefsson.
61386
61387 2006-12-28  Simon Josefsson  <simon@josefsson.org>
61388
61389         * modules/announce-gen: New file.
61390
61391 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
61392
61393         * lib/mbchar.h: Just include <wctype.h>; the wctype module
61394         handles its gotchas now.
61395         * lib/mbswidth.c: Likewise.
61396         * lib/wcwidth.h: Likewise.
61397         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
61398         and iswcntrl; the wctype module does this stuff now.
61399         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
61400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
61401         * modules/mbchar (Depends-on): Add wctype.
61402         * modules/mbswidth (Depends-on): Likewise.
61403         * modules/wcwidth (Depends-on): Likewise.
61404
61405 2006-12-27  Eric Blake  <ebb9@byu.net>
61406
61407         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
61408         module uses more than what <wctype.h> is required to provide.
61409
61410 2006-12-26  Eric Blake  <ebb9@byu.net>
61411
61412         * gnulib-tool (sed_extract_prog): Avoid space-tab.
61413
61414 2006-12-26  Eric Blake  <ebb9@byu.net>
61415
61416         * modules/absolute-header: New module.
61417         * modules/fcntl (Depends-on): Depend on it.
61418         * modules/inttypes (Depends-on): Likewise.
61419         * modules/stdint (Depends-on): Likewise.
61420         * modules/sys_stat (Depends-on): Likewise.
61421         * modules/wctype (Depends-on): Likewise.
61422         * MODULES.html.sh (Support for building libraries and
61423         executables): Document it.
61424
61425 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61426
61427         * gnulib-tool (SED): Remove, undoing previous change.
61428         The problem was that it broke coreutils on Solaris, because
61429         "sed --posix" leaked into a makefile.
61430         (sed): New alias, if 'alias' and GNU sed.
61431
61432 2006-12-24  Jim Meyering  <jim@meyering.net>
61433
61434         Work around an fchownat bug in glibc-2.4:
61435         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
61436         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
61437         in spite of the -P option.
61438         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
61439         New macros.
61440         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
61441         * modules/openat (Files): Add lib/fchownat.c.
61442         * lib/openat.c (fchownat): Don't define here.  Move to...
61443         * lib/fchownat.c: ...this new file.
61444
61445 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
61446
61447         Fix bug reported by Bruno Haible in
61448         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
61449         where quotearg.c didn't compile on Mac OS X 10.2 because it
61450         lacks <wchar.h> and wint_t.
61451         * lib/wctype_.h (__wctype_wint_t): New type.
61452         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
61453         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
61454         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
61455         Arg is now of type __wctype_wint_t, not wint_t.
61456         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
61457         substitute HAVE_WINT_T.
61458         * modules/wctype (Files): Add m4/wint_t.m4.
61459         (wctype.h): Substitute HAVE_WINT_T.
61460
61461 2006-12-23  Bruno Haible  <bruno@clisp.org>
61462
61463         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
61464
61465 2006-12-23  Bruno Haible  <bruno@clisp.org>
61466
61467         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
61468         S_ISLNK.
61469         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
61470         mingw.
61471
61472 2006-12-22  Bruno Haible  <bruno@clisp.org>
61473
61474         * lib/copy-file.c: Include acl.h.
61475         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
61476         Close the file descriptors only after being done with copy_acl.
61477         * modules/copy-file (Depends-on): Add acl.
61478
61479 2006-12-22  Bruno Haible  <bruno@clisp.org>
61480
61481         * gnulib-tool (SED): New variable.
61482         Use $SED instead of sed everywhere.
61483
61484 2006-12-22  Bruno Haible  <bruno@clisp.org>
61485
61486         * modules/no-c++: New file.
61487         * m4/no-c++.m4: New file.
61488         * MODULES.html.sh (Support for building libraries and executables):
61489         Add no-c++.
61490
61491 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
61492
61493         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
61494         Include <limits.h>, and use its INT_MAX to rewrite the
61495         j loop so that it does not overflow 'int'.  Problem reported by
61496         Ralf Wildenhues in
61497         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
61498         Play it safe by shifting left by 1 rather than multiplying by 2,
61499         as GCC is less likely to optimize this away when the value
61500         is signed (when it assumes overflow leads to undefined behavior).
61501         Also, don't assume time_t uses two's complement.
61502
61503 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
61504
61505         * MODULES.html.sh: New module wctype.
61506         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
61507         * lib/fnmatch.c: Don't bother to include <wchar.h> before
61508         <wctype.h>, since the new wctype module should fix this.
61509         * lib/quotearg.c: Include <wctype.h> unconditionally, since
61510         the wctype module should arrange for it.
61511         * lib/regex_internal.h: Likewise.
61512         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
61513         since the wctype module should handle this now.
61514         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
61515         * modules/fnmatch (Depends-on): Add wctype.
61516         * modules/quotearg (Depends-on): Likewise.
61517         * modules/regex (Depends-on): Likewise.
61518
61519 2006-12-19  Bruno Haible  <bruno@clisp.org>
61520
61521         * lib/strdup.h [C++]: Wrap definitions in extern "C".
61522         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
61523
61524 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61525
61526         * modules/savewd (Depends-on): Fix dependency on fcntl.
61527
61528 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61529
61530         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
61531         conforms to C99, rather than relying on the user's environment
61532         setting of STDINT_H.
61533
61534 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61535         and Eric Blake  <ebb9@byu.net>
61536
61537         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
61538         This is more consistent with the other defines here.
61539         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
61540         Port to z/OS.  Problem reported by Paul Gilmartin.
61541         Change local vars to use gl_ prefix rather than ac_.
61542         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
61543         with other defines.
61544         * modules/double-slash-root: New module.
61545         * modules/dirname (Files): Remove m4/double-slash-root.m4.
61546         (Depends-on): Add double-slash-root.
61547         * MODULES.html.sh (File system functions): Mention new module.
61548
61549 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
61550
61551         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
61552         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
61553         This is for the benefit of gzip, which doesn't do i18n.
61554
61555 2006-12-12  Jim Meyering  <jim@meyering.net>
61556
61557         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
61558         Reported by Andreas Schwab <schwab@suse.de>.
61559
61560 2006-12-12  Bruno Haible  <bruno@clisp.org>
61561
61562         Merge these changes.
61563         2006-09-05  Bruno Haible  <bruno@clisp.org>
61564         * lib/iconvme.c (iconv_string): No need to save and restore errno when
61565         iconv_alloc succeeded.
61566         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
61567         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
61568         test for " && dest " at the end - dest is always != NULL there. Call
61569         iconv with 4xNULL arguments initially, to reset the state. Call iconv
61570         with 2xNULL arguments, also to flush the state storage. Handle the
61571         IRIX iconv behaviour. Realloc the final result, to throw away unused
61572         memory.
61573
61574 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
61575
61576         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
61577         and fchmodat unconditionally, since glibc 2.4 has them.
61578         Problem reported by Arkadiusz Miskiewicz.
61579
61580 2006-12-10  Bruno Haible  <bruno@clisp.org>
61581
61582         * gnulib-tool (func_import): Show the include files only for those
61583         modules that are copied and specified.
61584         Reported by Karl Berry.
61585
61586 2006-12-08  Jim Meyering  <jim@meyering.net>
61587
61588         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
61589         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
61590
61591         * build-aux/announce-gen: Add two new options, both optional:
61592         --bootstrap-tools=TOOL_LIST
61593               a comma-separated list of tools, e.g.,
61594               autoconf,automake,bison,gnulib
61595         --gnulib-snapshot-date=DATE
61596               if gnulib is in the bootstrap tool list,
61597               then report this as the snapshot date.
61598               If not specified, use the current date/time.
61599               If you specify a date here, be sure it's UTC.
61600
61601 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61602
61603         * tests/test-argp-2.sh: Fix test to match actual output.
61604         (func_compare): Fix sed script to be portable.
61605
61606 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
61607
61608         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
61609         workaround for this case.  It is not autoconfigured now; offhand
61610         it's hard to see how to autoconfigure it.
61611
61612 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61613
61614         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
61615         a directory that is about to be chowned.  Such a directory's
61616         initial file permissions should permit the owner only and this
61617         should not be changed until after the chown, since the group and
61618         other bits would be incorrect if they granted permission before
61619         the chown.
61620
61621         Fix porting problem for iswctype reported by Georg Schwarz in:
61622         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
61623         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
61624         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
61625         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
61626         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
61627
61628 2006-12-03  Jim Meyering  <jim@meyering.net>
61629
61630         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
61631         p->fts_statp may not yet be defined.
61632         (fts_read): Instead, set it in the caller, once p->fts_statp is
61633         sure to be defined, and corresponds to a top-level directory.
61634         This bug made du -x fail.  Here's the coreutils test case:
61635         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
61636         Reported by Mike Frysinger.
61637
61638 2006-12-01  Jim Meyering  <jim@meyering.net>
61639
61640         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
61641         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
61642         Reported by Simon Josefsson.
61643
61644 2006-11-30  Jim Meyering  <jim@meyering.net>
61645
61646         * m4/warning.m4: Use the all-permissive copyright notice
61647         recommended by RMS (rather than LGPL).
61648         * m4/vararrays.m4: Likewise.
61649         * m4/flexmember.m4: Likewise.
61650
61651 2006-11-29  Bruno Haible  <bruno@clisp.org>
61652
61653         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61654         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
61655         using +=.
61656         Reported by Simon Josefsson <simon@josefsson.org>.
61657
61658 2006-11-28  James Youngman <jay@gnu.org>
61659
61660         * README: Advise users that they might find the bug-gnulib@gnu.org
61661         and autotools-announce@gnu.org mailing lists useful.
61662
61663 2006-11-28  Bruno Haible  <bruno@clisp.org>
61664
61665         * m4/ptrdiff_max.m4: Remove file.
61666
61667 2006-11-21  Bruno Haible  <bruno@clisp.org>
61668
61669         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
61670         _AC_COMPUTE_INT.
61671         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61672         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
61673         _AC_COMPUTE_INT.
61674         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61675         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
61676         _AC_COMPUTE_INT.
61677         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61678
61679 2006-11-28  Jim Meyering  <jim@meyering.net>
61680
61681         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
61682         warning from "gcc -Wshadow" about shadowing the builtin.
61683
61684 2006-11-27  Bruno Haible  <bruno@clisp.org>
61685
61686         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
61687         _AC_COMPUTE_INT.
61688         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
61689
61690 2006-11-27  Bruno Haible  <bruno@clisp.org>
61691             Paul Eggert  <eggert@cs.ucla.edu>
61692
61693         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
61694
61695 2006-11-26  Bruno Haible  <bruno@clisp.org>
61696
61697         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
61698         noinst_LTLIBRARIES.
61699
61700 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
61701             Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
61704         if compiling with "gcc -ansi".
61705
61706 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
61707
61708         Fix some incompatibilities with gcc -ansi -pedantic.
61709         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
61710         if compiling pedantically with GCC, unless it's C99 or later.
61711         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
61712         it mishandles gcc -ansi -pedantic as well.
61713         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
61714         if gcc -pedantic.
61715         * lib/regexec.c (check_node_accept_bytes): Don't use auto
61716         initializers for struct if -pedantic, unless it's C99 or later.
61717
61718 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
61719
61720         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
61721         Don't close an fd more than once. Identical atimes indicate
61722         success, not failure.
61723
61724 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
61725
61726         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
61727
61728 2006-11-23  Jim Meyering  <jim@meyering.net>
61729
61730         * build-aux/announce-gen: New file.  From coreutils.
61731
61732 2006-11-22  Jim Meyering  <jim@meyering.net>
61733
61734         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
61735         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
61736         (fts_read): Use a temporary to narrow the overused st_size member
61737         before using it in a switch statement.  Reported by Matthew Woehlke.
61738
61739         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
61740         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
61741
61742 2006-11-20  Bruno Haible  <bruno@clisp.org>
61743
61744         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
61745         changequote instead of pairs of brackets.
61746         Reported by Andreas Schwab <schwab@suse.de>.
61747
61748 2006-11-21  Jim Meyering  <jim@meyering.net>
61749
61750         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
61751         so as to remain compatible with older compilers.
61752         Patch from Michael Deutschmann.
61753
61754 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61755
61756         * MODULES.html.sh (File system functions): Add openat.
61757
61758         * lib/openat.h (rpl_fstatat): New macro, if
61759         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
61760         (fstatat): Define to rpl_fstatat under the same conditions,
61761         unless COMPILING_FSTATAT.
61762         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
61763         seems to have the bug.
61764         * lib/fstatat.c: New file.
61765         * modules/openat (Files): Add it.
61766
61767 2006-11-20  Bruno Haible  <bruno@clisp.org>
61768
61769         * Makefile: New file.
61770
61771 2006-11-20  Jim Meyering  <jim@meyering.net>
61772
61773         The beginnings of syntax-related checks for gnulib.
61774         * lib/Makefile: New file.
61775         * lib/t-idcache: New script.  Ensure that the two halves of
61776         idcache.c stay in sync.
61777
61778         * lib/idcache.c: Adjust comments in user- and group- portions to
61779         be more accurate, and to be consistent with one another.
61780
61781 2006-11-20  Jim Meyering  <jim@meyering.net>
61782
61783         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
61784         continue using the flexible array member (thus, this module performs
61785         half as many malloc calls), with the addition that...
61786         (getgroup, getuser): Consistently record a non-match via an empty
61787         "name" string, and map an empty string match to a NULL return value.
61788         * modules/idcache (Depends-on): Re-add flexmember.
61789
61790         * lib/idcache.c (getuser): Remove all uses of the register keyword.
61791         (getuidbyname, getgroup, getgidbyname): Likewise.
61792
61793         Use cleaner syntax: NULL rather than 0.
61794         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
61795
61796 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
61797
61798         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
61799         It mishandled the case where the group was missing.
61800         Problem reported by Greg Schafer.
61801         * modules/idcache: Likewise.
61802
61803 2006-11-18  Jim Meyering  <jim@meyering.net>
61804
61805         * check-module (%exempt_header): Add exception for some
61806         conditionally-included headers.
61807
61808         * modules/i-ring (Depends-on): Add verify.
61809         (License): Change to LGPL.
61810
61811 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61812
61813         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
61814         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
61815         and inttostr.h.  Use snprintf rather than uinttostr, so that
61816         LGPLed code doesn't depend on GPLed.
61817
61818 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
61819
61820         * modules/inline (License): Change from GPL to LGPL.
61821
61822 2006-11-17  Jim Meyering  <jim@meyering.net>
61823
61824         * modules/d-type (License): Switch to LGPL.
61825
61826 2006-11-15  Bruno Haible  <bruno@clisp.org>
61827
61828         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
61829
61830 2006-11-15  Eric Blake  <ebb9@byu.net>
61831
61832         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
61833         the module dependency.
61834
61835 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
61836             Bruno Haible  <bruno@clisp.org>
61837
61838         * gnulib-tool (func_create_testdir): Add license consistency check.
61839
61840 2006-11-15  Eric Blake  <ebb9@byu.net>
61841
61842         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
61843         random "(cached)" in configure output.
61844
61845 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61846
61847         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
61848         test for conforming inttypes.h is both announced and cached.
61849
61850         * MODULES.html.sh (seen_modules, seen_files): New variables.
61851         (func_module): Rewrite to use a few less gnulib-tool and sed
61852         invocations.  Avoid a couple of quadratic algorithms for ...
61853         (missed_modules, missed_files): ... these, with ...
61854         (func_append, func_tmpdir): ... these new functions, from
61855         gnulib-tool.  Analogously, install traps for cleanup.
61856
61857         * tests/test-gc.c (main): Remove unused variables.
61858         * tests/test-read-file.c: Include stdlib.h, for 'free'.
61859
61860 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
61861
61862         * modules/inttostr (License): Change to LGPL.
61863
61864 2006-11-14  Eric Blake  <ebb9@byu.net>
61865
61866         * modules/tempname (License): Change to LGPL.
61867
61868 2006-11-14  Eric Blake  <ebb9@byu.net>
61869
61870         * doc/functions.texi (Function Portability): *printf functions on
61871         Cygwin now understand all POSIX size specifiers.
61872
61873 2006-11-14  Bruno Haible  <bruno@clisp.org>
61874
61875         * modules/c-ctype (License): Change to LGPL.
61876
61877 2006-11-12  Bruno Haible  <bruno@clisp.org>
61878
61879         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
61880         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
61881         for GNOME libraries, for which the include files are installed in
61882         subdirectories of $prefix/include.
61883
61884 2006-11-12  Bruno Haible  <bruno@clisp.org>
61885
61886         * m4/lib-link.m4: Require at least autoconf-2.54.
61887         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
61888         name to underscores for the --with option.
61889
61890 2006-11-13  Bruno Haible  <bruno@clisp.org>
61891
61892         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
61893         the tests directory.
61894         Reported by Ralf Wildenhues.
61895
61896 2006-11-13  Bruno Haible  <bruno@clisp.org>
61897
61898         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
61899         (func_emit_initmacro_end): Undo the override here.
61900         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
61901         Works around the famous automake error in coreutils.
61902
61903 2006-11-13  Eric Blake  <ebb9@byu.net>
61904
61905         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
61906         element, not its node.
61907
61908 2006-11-12  Bruno Haible  <bruno@clisp.org>
61909
61910         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
61911         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
61912
61913 2006-11-12  Bruno Haible  <bruno@clisp.org>
61914
61915         * gnulib-tool: New option --local-symlink.
61916         (func_usage): Document it.
61917         (lsymbolic): New variable.
61918         (func_import, func_create_testdir): If --symlink was not specified,
61919         test whether --local-symlink was specified and the file comes from
61920         the local_gnulib_dir.
61921
61922 2006-11-12  Bruno Haible  <bruno@clisp.org>
61923
61924         * gnulib-tool (func_ln): New function.
61925         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
61926
61927 2006-11-12  Bruno Haible  <bruno@clisp.org>
61928
61929         Finish support for source files in subdirectories.
61930         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
61931         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
61932         AUTOMAKE_OPTIONS.
61933         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
61934
61935 2006-11-12  Bruno Haible  <bruno@clisp.org>
61936
61937         * gnulib-tool (func_get_automake_snippet): Synthesize also an
61938         EXTRA_lib_SOURCES augmentation.
61939         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
61940
61941 2006-11-12  Jim Meyering  <jim@meyering.net>
61942
61943         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
61944         file descriptors.  This also averts a failure on systems with
61945         native openat support when a traversed directory lacks "x" access.
61946         * lib/fts_.h: Include "i-ring.h"
61947         (struct FTS) [fts_fd_ring]: New member.
61948         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
61949         (FCHDIR): Add parentheses.
61950         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
61951         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
61952         When descending, rather than simply closing the previous
61953         fts_cwd_fd value, push that file descriptor onto the ring.
61954         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
61955         (fts_open): Initialize the new fd_ring member.
61956         (fts_close): Clear the ring.
61957         (fts_safe_changedir): When possible, use our new fd_ring to skip
61958         the diropen and fstat and dev/ino comparison that would normally
61959         accompany a virtual `chdir ("..")'.
61960
61961         * modules/fts (Depends-on): Add i-ring.
61962         * modules/i-ring: New module.
61963         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
61964         * m4/i-ring.m4: New file.
61965
61966 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61967
61968         * gnulib-tool (func_create_testdir): Fix replacement of
61969         `build-aux' in configure.ac.  Run autotools in gltests
61970         subdirectory.
61971         (func_create_testdir, func_create_megatestdir, test): There is
61972         no need for '--force' in most autotool invocations in a new
61973         tree.  Actually fail the whole test if any of the tools, or the
61974         configure or make stages fail.
61975
61976         Sync from Automake.
61977         * build-aux/gnupload: Revert last change.  Add pointer to upload
61978         instructions of the GNU Maintenance Instructions.
61979         Suggestion by Karl Berry.
61980
61981 2006-11-10  Jim Meyering  <jim@meyering.net>
61982
61983         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
61984
61985 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
61986
61987         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
61988         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
61989         (bind_textdomain_codeset) [! ENABLE_NLS]:
61990         Evaluate all the arguments.  That way, callers get compatible behavior
61991         if the arguments have side effects.  Also, it avoids some GCC
61992         diagnostics in some cases; Joel E. Denny reported problems when Bison
61993         was configured with --enable-gcc-warnigs.
61994
61995 2006-11-10  Jim Meyering  <jim@meyering.net>
61996
61997         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
61998         relevant options in CFLAGS (like -O, -fno-inline) are taken into
61999         account.
62000
62001 2006-11-10  Jim Meyering  <jim@meyering.net>
62002
62003         * modules/inline: New file/module.
62004         * modules/xalloc (Files): Remove m4/inline.m4.
62005         (Depends-on): Add inline, instead.
62006         * modules/oset: Likewise.
62007         * modules/list: Likewise.
62008
62009 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
62010
62011         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
62012         Problem reported by Matthew Woehlke.
62013
62014 2006-11-09  Bruno Haible  <bruno@clisp.org>
62015
62016         * lib/tempname.c (gen_tempname): Remove variant that invokes
62017         __gen_tempname.
62018         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
62019         __gen_tempname.
62020
62021 2006-11-08  Bruno Haible  <bruno@clisp.org>
62022
62023         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
62024         to 'yes' instead of 'cross-compiling'.
62025
62026 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
62027
62028         * lib/quotearg.h (quotearg_free): New decl.
62029         * lib/quotearg.c (quotearg_free): New function.
62030         (slot0, nslots, slotvec0, slotvec):
62031         Now file-scope so that quotearg_free can get at them.
62032
62033 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62034
62035         Sync from Automake.
62036         * build-aux/gnupload: Add missing 'gnu' to example URL.
62037         Report by Karl Berry.
62038
62039 2006-11-08  Bruno Haible  <bruno@clisp.org>
62040
62041         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
62042         Suggested by Paul Eggert.
62043
62044 2006-11-08  Jim Meyering  <jim@meyering.net>
62045
62046         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
62047         It's already included if !_LIBC.
62048         (fts_safe_changedir): Add a comment.
62049
62050 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62051
62052         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
62053         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
62054         Matthew Woehlke.
62055
62056         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
62057         definitions up, to avoid colliding with change below.
62058         (static_inline) [HAVE_INLINE]: New macro.
62059         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
62060         Provide extern decls when !HAVE_INLINE.  Do not define unless
62061         static_inline is defined, either by us or by xmalloc.c.  Use
62062         static_inline rather than static inline.
62063         (XCALLOC): Optimize sizeof(T) = 1 case.
62064         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
62065
62066 2006-11-07  Bruno Haible  <bruno@clisp.org>
62067
62068         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
62069         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
62070         AC_C_INLINE.
62071         * modules/xalloc (Files): Add m4/inline.m4.
62072
62073 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62074
62075         * README: Fix typo.
62076         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
62077         (Miscellanous Notes): ...from this.
62078
62079 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
62080
62081         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
62082         Mention that offsetof should be used instead of sizeof.
62083         From Bruno Haible.
62084
62085 2006-11-07  Bruno Haible  <bruno@clisp.org>
62086
62087         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
62088
62089 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62090
62091         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62092         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
62093         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62094         (gl_tree_add_before, gl_tree_add_after):
62095         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
62096         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
62097         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
62098         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
62099         (gl_linked_add_after, gl_linked_add_at): Likewise.
62100         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
62101         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
62102         (gl_tree_add_before, gl_tree_add_after): Likewise.
62103         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
62104         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
62105         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
62106
62107 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62108
62109         * lib/gl_oset.h: Use C comment style, not C++ comment style.
62110
62111 2006-11-06  Bruno Haible  <bruno@clisp.org>
62112
62113         * m4/inline.m4: New file.
62114         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
62115         * modules/list (Files): Add m4/inline.m4.
62116         * modules/oset (Files): Likewise.
62117
62118 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
62119
62120         * lib/idcache.c: Include <stddef.h>, for offsetof.
62121         (struct userid.name): Change from char * to a flexible array member.
62122         All uses changed.
62123         * modules/idcache (Depends-on): Add flexmember.
62124
62125         * MODULES.html.sh (Core language properties): New module flexmember.
62126         * modules/flexmember, m4/flexmember.m4: New files.
62127
62128         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
62129         inline functions that are identical with the old xnmalloc_inline,
62130         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
62131         that we can avoid some unnecessary integer multiplications and
62132         divisions in the common case where the element size is known at
62133         compile time.
62134         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
62135         needed.
62136         (xnboundedmalloc): Remove.
62137         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
62138         arguments, for consistency with rest of this header.
62139         (xcharalloc): Rewrite using XNMALLOC.
62140         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
62141         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
62142         versions have been moved to lib/xalloc.h and renamed to be the
62143         non-*_inline versions.
62144         (xmalloc, xrealloc): Implement without reference to the xnmalloc
62145         and xnrealloc functions, since those functions are now inline and
62146         now call us.
62147         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
62148         renaming described above.
62149         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
62150         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
62151         captures the dependency in AC_C_INLINE.
62152
62153         New module canonicalize-lgpl, proposed by Charles Wilson in
62154         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
62155         with a few small changes afterwards.
62156         * MODULES.html.sh (File system functions): New module
62157         canonicalize-lgpl.
62158         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
62159         and canonicalize_file_name.
62160         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
62161         * modules/canonicalize-lgpl: New files.
62162
62163 2006-11-05  Bruno Haible  <bruno@clisp.org>
62164
62165         * gnulib-tool (func_import, func_create_testdir): Create directories
62166         also for files in subdirectories of lib/.
62167
62168 2006-11-05  Bruno Haible  <bruno@clisp.org>
62169
62170         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
62171         ANSI C compliant.
62172
62173 2006-11-03  Bruno Haible  <bruno@clisp.org>
62174
62175         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
62176         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
62177         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
62178         (xnboundedmalloc): New inline function.
62179         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
62180         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
62181         xmalloc.
62182         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
62183         xmalloc.
62184         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
62185         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
62186         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
62187         xmalloc.
62188         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62189         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
62190         xmalloc.
62191         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
62192         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62193         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
62194         xmalloc.
62195         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
62196         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
62197         gl_tree_add_after): Use XMALLOC instead of xmalloc.
62198         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
62199         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
62200         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
62201         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
62202
62203 2006-11-03  Bruno Haible  <bruno@clisp.org>
62204
62205         * lib/c-ctype.h [C++]: Define functions without name mangling.
62206         * lib/fwriteerror.h [C++]: Likewise.
62207         * lib/gcd.h [C++]: Likewise.
62208         * lib/linebreak.h [C++]: Likewise.
62209
62210 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
62211
62212         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
62213         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
62214         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
62215         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
62216         Check for functions and headers just once.
62217         Check for declaration of canonicalize_file_name.
62218         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
62219
62220 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62221
62222         * gnulib-tool (func_import): Fix typo in actioncmd.
62223
62224 2006-11-02  Bruno Haible  <bruno@clisp.org>
62225
62226         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
62227         newline sequence in the Makefile.am snippet as a space, like "make"
62228         does.
62229         Reported by Roger Persson <perrog@gmail.com>.
62230
62231 2006-11-01  Bruno Haible  <bruno@clisp.org>
62232
62233         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
62234         already declared in <string.h>.
62235         * lib/strcase.h (strncasecmp): Don't declare it if yes.
62236
62237 2006-11-01  Bruno Haible  <bruno@clisp.org>
62238
62239         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
62240         * lib/strcase.h: Include <string.h>.
62241         (strcasecmp): Define to rpl_strcasecmp here.
62242
62243 2006-11-01  Bruno Haible  <bruno@clisp.org>
62244
62245         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
62246
62247 2006-11-01  Eric Blake  <ebb9@byu.net>
62248
62249         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
62250
62251         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
62252
62253 2006-10-29  Bruno Haible  <bruno@clisp.org>
62254
62255         Make it compile in C++ mode.
62256         * lib/full-write.c (full_rw): Add a cast.
62257
62258 2006-11-01  Bruno Haible  <bruno@clisp.org>
62259
62260         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
62261         be POSIX compliant.
62262         Reported by Roger Persson <perrog@gmail.com>.
62263
62264 2006-11-01  Eric Blake  <ebb9@byu.net>
62265
62266         * lib/getopt_.h: Fix comments.
62267
62268 2006-10-31  Eric Blake  <ebb9@byu.net>
62269
62270         * modules/tmpdir (Depends-on): Add sys_stat.
62271         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
62272         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
62273         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
62274         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
62275         tempname.
62276
62277 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
62278
62279         Avoid some C++ diagnostics reported by Bruno Haible.
62280         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
62281         xmalloc.
62282         (quotearg_alloc): Use xcharalloc rather than xmalloc.
62283         (struct slotvec): Move to top level.
62284         (quotearg_n_options): Rewrite to avoid xmalloc.
62285         * lib/xalloc.h (xcharalloc): New function.
62286         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
62287         [defined __cplusplus]: Add function template that provides result
62288         type propagation.  This part of the change is from Bruno Haible.
62289
62290 2006-10-29  Bruno Haible  <bruno@clisp.org>
62291
62292         Make it compile in C++ mode.
62293         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
62294         * lib/strnlen1.c (strnlen1): Cast memchr result.
62295         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
62296         * lib/clean-temp.c (string_equals, string_hash): Add casts.
62297         (create_temp_dir): Rename local variable 'template'.
62298         (compile_csharp_using_sscli): Add cast.
62299         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
62300         * lib/findprog.c (find_in_path): Likewise.
62301         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
62302         * lib/wait-process.c (register_slave_subprocess): Likewise.
62303
62304 2006-10-22  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/tsearch: New file.
62307         * lib/tsearch.h: New file.
62308         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
62309         * m4/tsearch.m4: New file.
62310         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
62311
62312 2006-10-29  Eric Blake  <ebb9@byu.net>
62313
62314         * lib/arcfour.c: Assume config.h.
62315         * lib/arctwo.c: Likewise.
62316         * lib/base64.c: Likewise.
62317         * lib/check-version.c: Likewise.
62318         * lib/crc.c: Likewise.
62319         * lib/des.c: Likewise.
62320         * lib/gc-gnulib.c: Likewise.
62321         * lib/gc-libgcrypt.c: Likewise.
62322         * lib/gc-pbkdf2-sha1.c: Likewise.
62323         * lib/getaddrinfo.c: Likewise.
62324         * lib/getdelim.c: Likewise.
62325         * lib/getline.c: Likewise.
62326         * lib/hmac-md5.c: Likewise.
62327         * lib/hmac-sha1.c: Likewise.
62328         * lib/iconvme.c: Likewise.
62329         * lib/md2.c: Likewise.
62330         * lib/md4.c: Likewise.
62331         * lib/memxor.c: Likewise.
62332         * lib/read-file.c: Likewise.
62333         * lib/readline.c: Likewise.
62334         * lib/rijndael-alg-fst.c: Likewise.
62335         * lib/rijndael-api-fst.c: Likewise.
62336         * lib/xgetdomainname.c: Likewise.
62337
62338 2006-10-28  Eric Blake  <ebb9@byu.net>
62339
62340         * lib/xstrndup.c: Assume config.h.
62341
62342 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
62343
62344         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
62345         stat-macros.h is now for our own macros, whereas stat_h is for
62346         macros in the <sys/stat.h> name space.
62347         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
62348         (STAT_MACROS_H): Remove.
62349         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
62350         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
62351         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
62352         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
62353         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
62354         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
62355         Move these macros to ...
62356         * lib/stat_.h: here.  Don't include stat-macros.h.
62357         * lib/canonicalize.c: Don't include stat-macros.h.
62358         * lib/chown.c: Likewise.
62359         * lib/euidaccess.c: Likewise.
62360         * lib/file-type.c: Likewise.
62361         * lib/filemode.c: Likewise.
62362         * lib/glob.c: Likewise.
62363         * lib/isapipe.c: Likewise.
62364         * lib/lchown.c: Likewise.
62365         * lib/lstat.c: Likewise.
62366         * lib/mkdir-p.c: Likewise.
62367         * lib/rmdir.c: Likewise.
62368         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
62369         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
62370         unless mkdir isn't declared, to speed up 'configure'.
62371         Always create sys/stat.h, since it's unlikely any real sys/stat.h
62372         would define all the S_* symbols.
62373         * modules/canonicalize (Depends-on):
62374         Depend on sys_stat, not stat-macros.
62375         * modules/chown: Likewise.
62376         * modules/euidaccess: Likewise.
62377         * modules/filemode: Likewise.
62378         * modules/file-type: Likewise.
62379         * modules/glob: Likewise.
62380         * modules/isapipe: Likewise.
62381         * modules/lchown: Likewise.
62382         * modules/lstat: Likewise.
62383         * modules/mkancesdirs: Likewise.
62384         * modules/rmdir: Likewise.
62385         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
62386         * modules/modechange: Likewise.
62387         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
62388         (configure.ac): Remove gl_STAT_MACROS.
62389         * modules/sys_stat (Depends-on): Remove stat-macros.
62390
62391 2006-10-27  Bruno Haible  <bruno@clisp.org>
62392
62393         * m4/signed.m4: Remove file.
62394         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
62395         invocation.
62396         * modules/vasnprintf (Files): Remove m4/signed.m4.
62397
62398 2006-10-27  Bruno Haible  <bruno@clisp.org>
62399
62400         Update to GNU gettext 0.16.
62401         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
62402         m4/inttypes-h.m4, m4/signed.m4.
62403         * m4/gettext.m4: Update to GNU gettext 0.16.
62404         * m4/intl.m4: New file, from GNU gettext.
62405         * m4/intldir.m4: New file, from GNU gettext.
62406         * config/srclist.txt: Update
62407
62408 2006-10-27  Eric Blake  <ebb9@byu.net>
62409
62410         * MODULES.html.sh: Document tempname.
62411         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
62412         dependencies.
62413         (Files): Move lib/tempname.c...
62414         * modules/tempname: ...to this new module.
62415         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
62416         (gl_PREREQ_TEMPNAME): Move...
62417         * m4/tempname.m4: ...to this new file.
62418         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
62419         * modules/sys_stat (Depends-on): Add stat-macros.
62420         * lib/stat_.h (includes): Pick up stat macros.
62421         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
62422         if stat macros are broken.
62423         * lib/tempname.c (includes): No need to include "stat-macros.h".
62424         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
62425         (direxists, __path_search) [!_LIBC]: Don't compile these in
62426         gnulib; the tmpdir module covers that.
62427         * lib/tempname.h: New file.
62428
62429 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
62430
62431         * COPYING: Explain how gnulib-tool converts licence headers.
62432         Almost all wording by Eric Blake.
62433
62434 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
62435
62436         * lib/mbchar.h (is_basic_table): Make read-only.
62437         * lib/mbchar.c (is_basic_table): Likewise.
62438         Reported by John Darrington.
62439
62440 2006-10-25  Bruno Haible  <bruno@clisp.org>
62441
62442         * lib/progname.h (set_program_name): Undefine before defining.
62443
62444 2006-10-25  Bruno Haible  <bruno@clisp.org>
62445
62446         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
62447         false for non-gcc C++ compilers.
62448         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
62449
62450 2006-10-24  Bruno Haible  <bruno@clisp.org>
62451
62452         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
62453         iconv implementations like Irix iconv.
62454
62455 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62456
62457         * modules/vararrays: New file.
62458         * m4/vararrays.m4: New file, taken from diffutils.
62459         * MODULES.html.sh: New module vararrays.
62460
62461 2006-10-24  Karl Berry  <karl@gnu.org>
62462
62463         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
62464         Don't call GNU Unix.
62465
62466 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62467
62468         * users.txt: Add Libtool.
62469
62470         Sync from Libtool:
62471
62472         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62473
62474         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
62475         to gnulib's policy of including config.h unconditionally.
62476
62477 2006-10-24  Bruno Haible  <bruno@clisp.org>
62478
62479         * modules/wcwidth (Files): Add m4/wint_t.m4.
62480         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
62481         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
62482
62483 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62484
62485         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
62486         to pacify GCC with some -W flags enabled.  Problem reported by
62487         Bruno Haible.
62488
62489 2006-10-24  Jim Meyering  <jim@meyering.net>
62490
62491         * MODULES.html.sh: Remove uinttostr.  It's not a module.
62492         Reported by Karl Berry.
62493
62494 2006-10-23  Bruno Haible  <bruno@clisp.org>
62495
62496         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
62497
62498 2006-10-24  Bruno Haible  <bruno@clisp.org>
62499
62500         * lib/gl_list.h: Use C comment style, not C++ comment style.
62501
62502 2006-10-23  Eric Blake  <ebb9@byu.net>
62503
62504         * lib/getaddrinfo.c (includes): Add missing include.
62505
62506 2006-10-23  Bruno Haible  <bruno@clisp.org>
62507             Paul Eggert  <eggert@cs.ucla.edu>
62508
62509         Ability to rename obstack_free.
62510         * lib/obstack.h (__obstack_free): New macro. Declare instead of
62511         obstack_free.
62512         (obstack_free): Invoke the __obstack_free macro.
62513         * lib/obstack.c (obstack_free): Use __obstack_free macro.
62514
62515 2006-10-23  Bruno Haible  <bruno@clisp.org>
62516             Paul Eggert  <eggert@cs.ucla.edu>
62517
62518         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
62519         __argc, __argv from the declaration. (They are defined as macros on
62520         mingw.)
62521
62522 2006-10-22  Bruno Haible  <bruno@clisp.org>
62523
62524         * doc/gnulib-intro.texi: New file.
62525         * doc/gnulib.texi: Include it.
62526
62527 2006-10-21  Bruno Haible  <bruno@clisp.org>
62528
62529         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
62530         "Introduction", "Miscellanous Notes", "Particular Modules".
62531
62532 2006-10-21  Bruno Haible  <bruno@clisp.org>
62533
62534         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
62535         Change mostlyclean-local rule to avoid sh syntax error from bash
62536         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
62537
62538 2006-10-23  Jim Meyering  <jim@meyering.net>
62539
62540         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
62541         in place of snprintf.
62542
62543         * modules/inttostr (Files): Add lib/uinttostr.c.
62544         * lib/uinttostr.c (inttostr): New file/function.
62545         * lib/inttostr.h (uinttostr): Declare.
62546         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
62547         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
62548         Add uinttostr.
62549         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
62550
62551 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62552
62553         * lib/canonicalize.c (ELOOP): Define if not already defined.
62554         Problem reported by Bruno Haible in
62555         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
62556
62557 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
62558
62559         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
62560         Problem reported by Perry Smith and Ville Laurikari.
62561
62562         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
62563         uses.
62564
62565 2006-10-19  Bruno Haible  <bruno@clisp.org>
62566
62567         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
62568         for mingw.
62569
62570 2006-10-19  Bruno Haible  <bruno@clisp.org>
62571
62572         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
62573         Needed for mingw.
62574
62575 2006-10-19  Bruno Haible  <bruno@clisp.org>
62576
62577         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
62578
62579 2006-10-19  Bruno Haible  <bruno@clisp.org>
62580
62581         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
62582         it.
62583
62584 2006-10-19  Bruno Haible  <bruno@clisp.org>
62585
62586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
62587         invocation.
62588
62589 2006-10-19  Bruno Haible  <bruno@clisp.org>
62590
62591         * gnulib-tool (func_create_testdir): Don't include ftruncate and
62592         mountlist by default.
62593
62594 2006-10-16  Bruno Haible  <bruno@clisp.org>
62595
62596         * lib/c-strstr.c: Include c-strstr.h.
62597
62598 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
62599
62600         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
62601         in a slash.
62602
62603 2006-10-18  Bruno Haible  <bruno@clisp.org>
62604
62605         * lib/lock.h [C++]: Wrap definitions in extern "C".
62606
62607 2006-10-18  Bruno Haible  <bruno@clisp.org>
62608
62609         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
62610         gl_LIBOBJS list.
62611
62612 2006-10-18  Bruno Haible  <bruno@clisp.org>
62613
62614         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
62615
62616 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
62617
62618         * lib/xstrtol.h: Include gettext.h.
62619         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
62620         Problem reported by Eric Blake.
62621         * modules/xstrtol (Depends-on): Add gettext-h.
62622
62623 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
62624
62625         * lib/strftime.c (advance): New macro.
62626         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
62627         incomplete type, so you can't add 0 to it.  Problem and patch
62628         reported by Eelco Dolstra for dietlibc.
62629
62630 2006-10-18  Jim Meyering  <jim@meyering.net>
62631
62632         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
62633         type for a local, and rename it: s/up/user_proc/.
62634
62635 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62636
62637         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
62638         READ_UTMP_USER_PROCESS.
62639         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
62640
62641 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62642
62643         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
62644         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
62645
62646 2006-10-17  Eric Blake  <ebb9@byu.net>
62647
62648         * lib/sigprocmask.c (sigprocmask): Fix typo.
62649
62650         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
62651
62652         * modules/clean-temp (Makefile.am): Don't add to make output...
62653         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
62654         config.h.
62655
62656 2006-10-17  Bruno Haible  <bruno@clisp.org>
62657
62658         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
62659         differently if DEFAULT_TEXT_DOMAIN is set.
62660
62661 2006-10-16  Bruno Haible  <bruno@clisp.org>
62662
62663         * lib/clean-temp.c: Include fwriteerror.h.
62664
62665 2006-10-16  Bruno Haible  <bruno@clisp.org>
62666
62667         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
62668
62669 2006-10-16  Bruno Haible  <bruno@clisp.org>
62670
62671         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
62672         * lib/sigprocmask.h: Include <sys/types.h>.
62673         (sigset_t): Use the system's definition if present.
62674
62675 2006-10-17  Eric Blake  <ebb9@byu.net>
62676
62677         * lib/xvasprintf.c (includes): Assume config.h.
62678         * lib/xasprintf.c (includes): Likewise.
62679
62680 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62681
62682         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
62683         at least as wide as intmax_t.
62684
62685 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
62686
62687         (Imported from Automake.)
62688         * build-aux/gnupload: Update to version 1.1 of directive file.
62689
62690 2006-10-16  Eric Blake  <ebb9@byu.net>
62691
62692         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
62693         match Automake 1.10a.
62694
62695 2006-10-14  Bruno Haible  <bruno@clisp.org>
62696
62697         * modules/sigprocmask: New file.
62698         * lib/sigprocmask.h: New file.
62699         * lib/sigprocmask.c: New file.
62700         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
62701         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
62702         request sigprocmask.o.
62703         (gl_PREREQ_SIGPROCMASK): New macro.
62704         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
62705         (Depends-on): Add sigprocmask.
62706         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
62707         gt_SIGNALBLOCKING. Test for 'raise' only once.
62708         * lib/fatal-signal.c: Include sigprocmask.h.
62709         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
62710         unblock_fatal_signals): Define always.
62711         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
62712         sigprocmask.
62713
62714 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
62715
62716         Sync from Automake.
62717         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
62718         which incorrectly sets the mode of an existing destination
62719         directory.  In some cases the unpatched install-sh could do the
62720         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
62721         system.  We hope this is rare in practice, but it's clearly worth
62722         fixing.  Problem reported by Alex Unleashed in
62723         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
62724         Also, don't bother to check for -m bugs unless we're using -m;
62725         suggested by Stepan Kasal.
62726
62727 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62728
62729         Sync from Automake.
62730         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
62731         `-c' flag, so they appear at the same position as in %FASTDEP%
62732         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
62733         which ignores unknown options only after the first non-option.
62734         Bug report against M4 by Nelson H. F. Beebe.
62735
62736 2006-10-13  Jim Meyering  <jim@meyering.net>
62737
62738         Fix a bug in yesterday's change.
62739         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
62740         p->fts_statp->st_dev would be used uninitialized.
62741         Ensures that we always call fts_stat on the very first entry.
62742         Miklos Szeredi reported that find -xdev stopped working.
62743
62744 2006-10-12  Bruno Haible  <bruno@clisp.org>
62745
62746         * gnulib-tool (func_get_automake_snippet): Append an automatically
62747         computed EXTRA_DIST augmentation.
62748         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
62749         * modules/alloca-opt (Makefile.am): Likewise.
62750         * modules/allocsa (Makefile.am): Likewise.
62751         * modules/arcfour (Makefile.am): Likewise.
62752         * modules/arctwo (Makefile.am): Likewise.
62753         * modules/argmatch (Makefile.am): Likewise.
62754         * modules/argz (Makefile.am): Likewise.
62755         * modules/atexit (Makefile.am): Likewise.
62756         * modules/backupfile (Makefile.am): Likewise.
62757         * modules/byteswap (Makefile.am): Likewise.
62758         * modules/c-strtod (Makefile.am): Likewise.
62759         * modules/c-strtold (Makefile.am): Likewise.
62760         * modules/calloc (Makefile.am): Likewise.
62761         * modules/canon-host (Makefile.am): Likewise.
62762         * modules/canonicalize (Makefile.am): Likewise.
62763         * modules/chdir-long (Makefile.am): Likewise.
62764         * modules/chdir-safer (Makefile.am): Likewise.
62765         * modules/check-version (Makefile.am): Likewise.
62766         * modules/chown (Makefile.am): Likewise.
62767         * modules/cloexec (Makefile.am): Likewise.
62768         * modules/close-stream (Makefile.am): Likewise.
62769         * modules/closeout (Makefile.am): Likewise.
62770         * modules/crc (Makefile.am): Likewise.
62771         * modules/csharpexec (Makefile.am): Likewise.
62772         * modules/cycle-check (Makefile.am): Likewise.
62773         * modules/des (Makefile.am): Likewise.
62774         * modules/dev-ino (Makefile.am): Likewise.
62775         * modules/dirfd (Makefile.am): Likewise.
62776         * modules/dirname (Makefile.am): Likewise.
62777         * modules/dup2 (Makefile.am): Likewise.
62778         * modules/eealloc (Makefile.am): Likewise.
62779         * modules/error (Makefile.am): Likewise.
62780         * modules/euidaccess (Makefile.am): Likewise.
62781         * modules/exclude (Makefile.am): Likewise.
62782         * modules/exitfail (Makefile.am): Likewise.
62783         * modules/fcntl-safer (Makefile.am): Likewise.
62784         * modules/fcntl (Makefile.am): Likewise.
62785         * modules/file-type (Makefile.am): Likewise.
62786         * modules/fileblocks (Makefile.am): Likewise.
62787         * modules/filemode (Makefile.am): Likewise.
62788         * modules/filenamecat (Makefile.am): Likewise.
62789         * modules/fnmatch (Makefile.am): Likewise.
62790         * modules/fopen-safer (Makefile.am): Likewise.
62791         * modules/fpending (Makefile.am): Likewise.
62792         * modules/fprintftime (Makefile.am): Likewise.
62793         * modules/free (Makefile.am): Likewise.
62794         * modules/fsusage (Makefile.am): Likewise.
62795         * modules/ftruncate (Makefile.am): Likewise.
62796         * modules/fts (Makefile.am): Likewise.
62797         * modules/gc-arcfour (Makefile.am): Likewise.
62798         * modules/gc-des (Makefile.am): Likewise.
62799         * modules/gc-hmac-md5 (Makefile.am): Likewise.
62800         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
62801         * modules/gc-md4 (Makefile.am): Likewise.
62802         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
62803         * modules/gc-sha1 (Makefile.am): Likewise.
62804         * modules/gc (Makefile.am): Likewise.
62805         * modules/getaddrinfo (Makefile.am): Likewise.
62806         * modules/getcwd (Makefile.am): Likewise.
62807         * modules/getdelim (Makefile.am): Likewise.
62808         * modules/getdomainname (Makefile.am): Likewise.
62809         * modules/getgroups (Makefile.am): Likewise.
62810         * modules/gethostname (Makefile.am): Likewise.
62811         * modules/gethrxtime (Makefile.am): Likewise.
62812         * modules/getline (Makefile.am): Likewise.
62813         * modules/getloadavg (Makefile.am): Likewise.
62814         * modules/getlogin_r (Makefile.am): Likewise.
62815         * modules/getndelim2 (Makefile.am): Likewise.
62816         * modules/getopt (Makefile.am): Likewise.
62817         * modules/getpagesize (Makefile.am): Likewise.
62818         * modules/getpass-gnu (Makefile.am): Likewise.
62819         * modules/getpass (Makefile.am): Likewise.
62820         * modules/getsubopt (Makefile.am): Likewise.
62821         * modules/gettime (Makefile.am): Likewise.
62822         * modules/gettimeofday (Makefile.am): Likewise.
62823         * modules/getugroups (Makefile.am): Likewise.
62824         * modules/getusershell (Makefile.am): Likewise.
62825         * modules/glob (Makefile.am): Likewise.
62826         * modules/group-member (Makefile.am): Likewise.
62827         * modules/hard-locale (Makefile.am): Likewise.
62828         * modules/hash (Makefile.am): Likewise.
62829         * modules/hmac-md5 (Makefile.am): Likewise.
62830         * modules/hmac-sha1 (Makefile.am): Likewise.
62831         * modules/human (Makefile.am): Likewise.
62832         * modules/idcache (Makefile.am): Likewise.
62833         * modules/imaxabs (Makefile.am): Likewise.
62834         * modules/imaxdiv (Makefile.am): Likewise.
62835         * modules/inet_ntop (Makefile.am): Likewise.
62836         * modules/inet_pton (Makefile.am): Likewise.
62837         * modules/intprops (Makefile.am): Likewise.
62838         * modules/inttostr (Makefile.am): Likewise.
62839         * modules/inttypes (Makefile.am): Likewise.
62840         * modules/isapipe (Makefile.am): Likewise.
62841         * modules/javaversion (Makefile.am): Likewise.
62842         * modules/lchmod (Makefile.am): Likewise.
62843         * modules/lchown (Makefile.am): Likewise.
62844         * modules/localcharset (Makefile.am): Likewise.
62845         * modules/long-options (Makefile.am): Likewise.
62846         * modules/lstat (Makefile.am): Likewise.
62847         * modules/malloc (Makefile.am): Likewise.
62848         * modules/mathl (Makefile.am): Likewise.
62849         * modules/mbchar (Makefile.am): Likewise.
62850         * modules/md2 (Makefile.am): Likewise.
62851         * modules/md4 (Makefile.am): Likewise.
62852         * modules/md5 (Makefile.am): Likewise.
62853         * modules/memcasecmp (Makefile.am): Likewise.
62854         * modules/memchr (Makefile.am): Likewise.
62855         * modules/memcmp (Makefile.am): Likewise.
62856         * modules/memcoll (Makefile.am): Likewise.
62857         * modules/memcpy (Makefile.am): Likewise.
62858         * modules/memmem (Makefile.am): Likewise.
62859         * modules/memmove (Makefile.am): Likewise.
62860         * modules/mempcpy (Makefile.am): Likewise.
62861         * modules/memrchr (Makefile.am): Likewise.
62862         * modules/memset (Makefile.am): Likewise.
62863         * modules/memxor (Makefile.am): Likewise.
62864         * modules/mkancesdirs (Makefile.am): Likewise.
62865         * modules/mkdir-p (Makefile.am): Likewise.
62866         * modules/mkdir (Makefile.am): Likewise.
62867         * modules/mkdtemp (Makefile.am): Likewise.
62868         * modules/mkstemp (Makefile.am): Likewise.
62869         * modules/mktime (Makefile.am): Likewise.
62870         * modules/modechange (Makefile.am): Likewise.
62871         * modules/mountlist (Makefile.am): Likewise.
62872         * modules/nanosleep (Makefile.am): Likewise.
62873         * modules/obstack (Makefile.am): Likewise.
62874         * modules/openat (Makefile.am): Likewise.
62875         * modules/pagealign_alloc (Makefile.am): Likewise.
62876         * modules/pathmax (Makefile.am): Likewise.
62877         * modules/physmem (Makefile.am): Likewise.
62878         * modules/poll (Makefile.am): Likewise.
62879         * modules/posixtm (Makefile.am): Likewise.
62880         * modules/posixver (Makefile.am): Likewise.
62881         * modules/putenv (Makefile.am): Likewise.
62882         * modules/quote (Makefile.am): Likewise.
62883         * modules/quotearg (Makefile.am): Likewise.
62884         * modules/raise (Makefile.am): Likewise.
62885         * modules/read-file (Makefile.am): Likewise.
62886         * modules/readline (Makefile.am): Likewise.
62887         * modules/readlink (Makefile.am): Likewise.
62888         * modules/readtokens (Makefile.am): Likewise.
62889         * modules/readutmp (Makefile.am): Likewise.
62890         * modules/realloc (Makefile.am): Likewise.
62891         * modules/regex (Makefile.am): Likewise.
62892         * modules/rename-dest-slash (Makefile.am): Likewise.
62893         * modules/rename (Makefile.am): Likewise.
62894         * modules/rijndael (Makefile.am): Likewise.
62895         * modules/rmdir (Makefile.am): Likewise.
62896         * modules/rpmatch (Makefile.am): Likewise.
62897         * modules/safe-read (Makefile.am): Likewise.
62898         * modules/safe-write (Makefile.am): Likewise.
62899         * modules/same-inode (Makefile.am): Likewise.
62900         * modules/same (Makefile.am): Likewise.
62901         * modules/save-cwd (Makefile.am): Likewise.
62902         * modules/savedir (Makefile.am): Likewise.
62903         * modules/setenv (Makefile.am): Likewise.
62904         * modules/settime (Makefile.am): Likewise.
62905         * modules/sha1 (Makefile.am): Likewise.
62906         * modules/sig2str (Makefile.am): Likewise.
62907         * modules/snprintf (Makefile.am): Likewise.
62908         * modules/stat-macros (Makefile.am): Likewise.
62909         * modules/stat-time (Makefile.am): Likewise.
62910         * modules/stdbool (Makefile.am): Likewise.
62911         * modules/stdint (Makefile.am): Likewise.
62912         * modules/stdlib-safer (Makefile.am): Likewise.
62913         * modules/stpcpy (Makefile.am): Likewise.
62914         * modules/stpncpy (Makefile.am): Likewise.
62915         * modules/strcase (Makefile.am): Likewise.
62916         * modules/strcasestr (Makefile.am): Likewise.
62917         * modules/strchrnul (Makefile.am): Likewise.
62918         * modules/strcspn (Makefile.am): Likewise.
62919         * modules/strdup (Makefile.am): Likewise.
62920         * modules/strerror (Makefile.am): Likewise.
62921         * modules/strftime (Makefile.am): Likewise.
62922         * modules/strndup (Makefile.am): Likewise.
62923         * modules/strnlen (Makefile.am): Likewise.
62924         * modules/strpbrk (Makefile.am): Likewise.
62925         * modules/strsep (Makefile.am): Likewise.
62926         * modules/strstr (Makefile.am): Likewise.
62927         * modules/strtod (Makefile.am): Likewise.
62928         * modules/strtoimax (Makefile.am): Likewise.
62929         * modules/strtok_r (Makefile.am): Likewise.
62930         * modules/strtol (Makefile.am): Likewise.
62931         * modules/strtoll (Makefile.am): Likewise.
62932         * modules/strtoul (Makefile.am): Likewise.
62933         * modules/strtoull (Makefile.am): Likewise.
62934         * modules/strtoumax (Makefile.am): Likewise.
62935         * modules/strverscmp (Makefile.am): Likewise.
62936         * modules/sys_socket (Makefile.am): Likewise.
62937         * modules/sys_stat (Makefile.am): Likewise.
62938         * modules/sysexits (Makefile.am): Likewise.
62939         * modules/time_r (Makefile.am): Likewise.
62940         * modules/timegm (Makefile.am): Likewise.
62941         * modules/timespec (Makefile.am): Likewise.
62942         * modules/tmpfile-safer (Makefile.am): Likewise.
62943         * modules/trim (Makefile.am): Likewise.
62944         * modules/unistd-safer (Makefile.am): Likewise.
62945         * modules/unlinkdir (Makefile.am): Likewise.
62946         * modules/unlocked-io (Makefile.am): Likewise.
62947         * modules/userspec (Makefile.am): Likewise.
62948         * modules/utime (Makefile.am): Likewise.
62949         * modules/utimecmp (Makefile.am): Likewise.
62950         * modules/utimens (Makefile.am): Likewise.
62951         * modules/vasnprintf (Makefile.am): Likewise.
62952         * modules/vasprintf (Makefile.am): Likewise.
62953         * modules/vsnprintf (Makefile.am): Likewise.
62954         * modules/xalloc (Makefile.am): Likewise.
62955         * modules/xgetcwd (Makefile.am): Likewise.
62956         * modules/xnanosleep (Makefile.am): Likewise.
62957         * modules/xreadlink (Makefile.am): Likewise.
62958         * modules/xstrtod (Makefile.am): Likewise.
62959         * modules/xstrtol (Makefile.am): Likewise.
62960         * modules/xstrtold (Makefile.am): Likewise.
62961         * modules/yesno (Makefile.am): Likewise.
62962         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
62963
62964 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62965
62966         * modules/error (Makefile.am): Distribute files through
62967         EXTRA_DIST, not lib_SOURCES.
62968
62969 2006-10-12  Eric Blake  <ebb9@byu.net>
62970
62971         * modules/error (Makefile.am): Distribute files in /lib.
62972         * modules/obstack (Makefile.am): Likewise.
62973
62974 2006-10-12  Bruno Haible  <bruno@clisp.org>
62975
62976         * modules/acl (Makefile.am): Distribute all files in lib/ through
62977         EXTRA_DIST.
62978         * modules/arcfour (Makefile.am): Likewise.
62979         * modules/arctwo (Makefile.am): Likewise.
62980         * modules/argmatch (Makefile.am): Likewise.
62981         * modules/argz (Makefile.am): Likewise.
62982         * modules/atexit (Makefile.am): Likewise.
62983         * modules/backupfile (Makefile.am): Likewise.
62984         * modules/c-strtod (Makefile.am): Likewise.
62985         * modules/c-strtold (Makefile.am): Likewise.
62986         * modules/calloc (Makefile.am): Likewise.
62987         * modules/canon-host (Makefile.am): Likewise.
62988         * modules/canonicalize (Makefile.am): Likewise.
62989         * modules/chdir-long (Makefile.am): Likewise.
62990         * modules/chdir-safer (Makefile.am): Likewise.
62991         * modules/check-version (Makefile.am): Likewise.
62992         * modules/chown (Makefile.am): Likewise.
62993         * modules/cloexec (Makefile.am): Likewise.
62994         * modules/close-stream (Makefile.am): Likewise.
62995         * modules/closeout (Makefile.am): Likewise.
62996         * modules/crc (Makefile.am): Likewise.
62997         * modules/cycle-check (Makefile.am): Likewise.
62998         * modules/des (Makefile.am): Likewise.
62999         * modules/dirfd (Makefile.am): Likewise.
63000         * modules/dirname (Makefile.am): Likewise.
63001         * modules/dup2 (Makefile.am): Likewise.
63002         * modules/euidaccess (Makefile.am): Likewise.
63003         * modules/exclude (Makefile.am): Likewise.
63004         * modules/exitfail (Makefile.am): Likewise.
63005         * modules/fcntl-safer (Makefile.am): Likewise.
63006         * modules/file-type (Makefile.am): Likewise.
63007         * modules/fileblocks (Makefile.am): Likewise.
63008         * modules/filemode (Makefile.am): Likewise.
63009         * modules/filenamecat (Makefile.am): Likewise.
63010         * modules/fnmatch (Makefile.am): Likewise.
63011         * modules/fopen-safer (Makefile.am): Likewise.
63012         * modules/fpending (Makefile.am): Likewise.
63013         * modules/fprintftime (Makefile.am): Likewise.
63014         * modules/free (Makefile.am): Likewise.
63015         * modules/fsusage (Makefile.am): Likewise.
63016         * modules/ftruncate (Makefile.am): Likewise.
63017         * modules/fts (Makefile.am): Likewise.
63018         * modules/gc (Makefile.am): Likewise.
63019         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
63020         * modules/getaddrinfo (Makefile.am): Likewise.
63021         * modules/getcwd (Makefile.am): Likewise.
63022         * modules/getdelim (Makefile.am): Likewise.
63023         * modules/getdomainname (Makefile.am): Likewise.
63024         * modules/getgroups (Makefile.am): Likewise.
63025         * modules/gethostname (Makefile.am): Likewise.
63026         * modules/gethrxtime (Makefile.am): Likewise.
63027         * modules/getline (Makefile.am): Likewise.
63028         * modules/getloadavg (Makefile.am): Likewise.
63029         * modules/getlogin_r (Makefile.am): Likewise.
63030         * modules/getopt (Makefile.am): Likewise.
63031         * modules/getpass (Makefile.am): Likewise.
63032         * modules/getpass-gnu (Makefile.am): Likewise.
63033         * modules/getsubopt (Makefile.am): Likewise.
63034         * modules/gettime (Makefile.am): Likewise.
63035         * modules/gettimeofday (Makefile.am): Likewise.
63036         * modules/getugroups (Makefile.am): Likewise.
63037         * modules/getusershell (Makefile.am): Likewise.
63038         * modules/glob (Makefile.am): Likewise.
63039         * modules/group-member (Makefile.am): Likewise.
63040         * modules/hard-locale (Makefile.am): Likewise.
63041         * modules/hash (Makefile.am): Likewise.
63042         * modules/hmac-md5 (Makefile.am): Likewise.
63043         * modules/hmac-sha1 (Makefile.am): Likewise.
63044         * modules/human (Makefile.am): Likewise.
63045         * modules/idcache (Makefile.am): Likewise.
63046         * modules/imaxabs (Makefile.am): Likewise.
63047         * modules/imaxdiv (Makefile.am): Likewise.
63048         * modules/inet_ntop (Makefile.am): Likewise.
63049         * modules/inet_pton (Makefile.am): Likewise.
63050         * modules/inttostr (Makefile.am): Likewise.
63051         * modules/isapipe (Makefile.am): Likewise.
63052         * modules/lchown (Makefile.am): Likewise.
63053         * modules/long-options (Makefile.am): Likewise.
63054         * modules/lstat (Makefile.am): Likewise.
63055         * modules/malloc (Makefile.am): Likewise.
63056         * modules/mathl (Makefile.am): Likewise.
63057         * modules/mbchar (Makefile.am): Likewise.
63058         * modules/md2 (Makefile.am): Likewise.
63059         * modules/md4 (Makefile.am): Likewise.
63060         * modules/md5 (Makefile.am): Likewise.
63061         * modules/memcasecmp (Makefile.am): Likewise.
63062         * modules/memchr (Makefile.am): Likewise.
63063         * modules/memcmp (Makefile.am): Likewise.
63064         * modules/memcoll (Makefile.am): Likewise.
63065         * modules/memcpy (Makefile.am): Likewise.
63066         * modules/memmem (Makefile.am): Likewise.
63067         * modules/memmove (Makefile.am): Likewise.
63068         * modules/mempcpy (Makefile.am): Likewise.
63069         * modules/memrchr (Makefile.am): Likewise.
63070         * modules/memset (Makefile.am): Likewise.
63071         * modules/memxor (Makefile.am): Likewise.
63072         * modules/mkancesdirs (Makefile.am): Likewise.
63073         * modules/mkdir (Makefile.am): Likewise.
63074         * modules/mkdir-p (Makefile.am): Likewise.
63075         * modules/mkdtemp (Makefile.am): Likewise.
63076         * modules/mkstemp (Makefile.am): Likewise.
63077         * modules/mktime (Makefile.am): Likewise.
63078         * modules/modechange (Makefile.am): Likewise.
63079         * modules/mountlist (Makefile.am): Likewise.
63080         * modules/nanosleep (Makefile.am): Likewise.
63081         * modules/openat (Makefile.am): Likewise.
63082         * modules/pagealign_alloc (Makefile.am): Likewise.
63083         * modules/physmem (Makefile.am): Likewise.
63084         * modules/poll (Makefile.am): Likewise.
63085         * modules/posixtm (Makefile.am): Likewise.
63086         * modules/posixver (Makefile.am): Likewise.
63087         * modules/putenv (Makefile.am): Likewise.
63088         * modules/quote (Makefile.am): Likewise.
63089         * modules/quotearg (Makefile.am): Likewise.
63090         * modules/raise (Makefile.am): Likewise.
63091         * modules/read-file (Makefile.am): Likewise.
63092         * modules/readline (Makefile.am): Likewise.
63093         * modules/readlink (Makefile.am): Likewise.
63094         * modules/readtokens (Makefile.am): Likewise.
63095         * modules/readutmp (Makefile.am): Likewise.
63096         * modules/realloc (Makefile.am): Likewise.
63097         * modules/regex (Makefile.am): Likewise.
63098         * modules/rename (Makefile.am): Likewise.
63099         * modules/rename-dest-slash (Makefile.am): Likewise.
63100         * modules/rijndael (Makefile.am): Likewise.
63101         * modules/rmdir (Makefile.am): Likewise.
63102         * modules/rpmatch (Makefile.am): Likewise.
63103         * modules/safe-read (Makefile.am): Likewise.
63104         * modules/safe-write (Makefile.am): Likewise.
63105         * modules/same (Makefile.am): Likewise.
63106         * modules/save-cwd (Makefile.am): Likewise.
63107         * modules/savedir (Makefile.am): Likewise.
63108         * modules/setenv (Makefile.am): Likewise.
63109         * modules/settime (Makefile.am): Likewise.
63110         * modules/sha1 (Makefile.am): Likewise.
63111         * modules/sig2str (Makefile.am): Likewise.
63112         * modules/snprintf (Makefile.am): Likewise.
63113         * modules/stdlib-safer (Makefile.am): Likewise.
63114         * modules/stpcpy (Makefile.am): Likewise.
63115         * modules/stpncpy (Makefile.am): Likewise.
63116         * modules/strcase (Makefile.am): Likewise.
63117         * modules/strcasestr (Makefile.am): Likewise.
63118         * modules/strchrnul (Makefile.am): Likewise.
63119         * modules/strcspn (Makefile.am): Likewise.
63120         * modules/strdup (Makefile.am): Likewise.
63121         * modules/strerror (Makefile.am): Likewise.
63122         * modules/strftime (Makefile.am): Likewise.
63123         * modules/strndup (Makefile.am): Likewise.
63124         * modules/strnlen (Makefile.am): Likewise.
63125         * modules/strpbrk (Makefile.am): Likewise.
63126         * modules/strsep (Makefile.am): Likewise.
63127         * modules/strstr (Makefile.am): Likewise.
63128         * modules/strtod (Makefile.am): Likewise.
63129         * modules/strtoimax (Makefile.am): Likewise.
63130         * modules/strtok_r (Makefile.am): Likewise.
63131         * modules/strtol (Makefile.am): Likewise.
63132         * modules/strtoll (Makefile.am): Likewise.
63133         * modules/strtoul (Makefile.am): Likewise.
63134         * modules/strtoull (Makefile.am): Likewise.
63135         * modules/strtoumax (Makefile.am): Likewise.
63136         * modules/strverscmp (Makefile.am): Likewise.
63137         * modules/time_r (Makefile.am): Likewise.
63138         * modules/timegm (Makefile.am): Likewise.
63139         * modules/tmpfile-safer (Makefile.am): Likewise.
63140         * modules/unistd-safer (Makefile.am): Likewise.
63141         * modules/unlinkdir (Makefile.am): Likewise.
63142         * modules/userspec (Makefile.am): Likewise.
63143         * modules/utime (Makefile.am): Likewise.
63144         * modules/utimecmp (Makefile.am): Likewise.
63145         * modules/utimens (Makefile.am): Likewise.
63146         * modules/vasnprintf (Makefile.am): Likewise.
63147         * modules/vasprintf (Makefile.am): Likewise.
63148         * modules/vsnprintf (Makefile.am): Likewise.
63149         * modules/xalloc (Makefile.am): Likewise.
63150         * modules/xgetcwd (Makefile.am): Likewise.
63151         * modules/xnanosleep (Makefile.am): Likewise.
63152         * modules/xreadlink (Makefile.am): Likewise.
63153         * modules/xstrtod (Makefile.am): Likewise.
63154         * modules/xstrtol (Makefile.am): Likewise.
63155         * modules/xstrtold (Makefile.am): Likewise.
63156         * modules/yesno (Makefile.am): Likewise.
63157
63158 2006-10-12  Jim Meyering  <jim@meyering.net>
63159
63160         * m4/getloadavg.m4: Revert the change below.
63161
63162         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
63163         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
63164         fail with a symlink, which is what coreutils' ./bootstrap now
63165         creates by default.
63166
63167 2006-10-12  Bruno Haible  <bruno@clisp.org>
63168
63169         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
63170         mingw.
63171         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
63172         MSVC and mingw explicitly.
63173
63174 2006-10-11  Simon Josefsson  <jas@extundo.com>
63175             Bruno Haible  <bruno@clisp.org>
63176
63177         Add support for multiple gnulib-tool invocations in the scope of a
63178         single configure.ac file.
63179         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
63180         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
63181         with the same contents as the _LIBADD variable.
63182         (func_emit_initmacro_start, func_emit_initmacro_end,
63183         func_emit_initmacro_done): New functions.
63184         (func_import, func_create_testdir): Invoke them. Allow the identifiers
63185         gl_LIBOBJS and gl_LTLIBOBJS.
63186
63187 2006-10-11  Bruno Haible  <bruno@clisp.org>
63188
63189         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
63190         (func_create_testdir): Don't create po/Makefile.am, don't invoke
63191         autoreconf. Instead, invoke autopoint explicitly but move back the
63192         *.m4 files from gnulib.
63193
63194 2006-10-11  Bruno Haible  <bruno@clisp.org>
63195
63196         * gnulib-tool (func_usage): Make module names after --create-testdir
63197         optional.
63198         (func_create_testdir): If no module was specified, use nearly all
63199         modules.
63200
63201 2006-10-12  Jim Meyering  <jim@meyering.net>
63202
63203         Big performance improvement for fts-based tools that use FTS_NOSTAT.
63204         Avoid spurious inode-mismatch problems on non-POSIX file systems.
63205         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
63206         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
63207         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
63208         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
63209         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
63210         (fts_set_stat_required): New function.
63211         (fts_open): Defer the calls to fts_stat, if possible or requested.
63212         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
63213         into fts_stat itself.
63214         (fts_read): Perform any required (deferred) fts_stat call.
63215         (fts_build): Likewise, for the directory we're about to open and read.
63216         In the readdir loop, carefully decide whether each entry will require
63217         an eventual call to fts_stat, using dirent.d_type info if available.
63218         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
63219         a command line argument into this function.  Update all callers.
63220         Map a return value of FTS_DOT to FTS_D for a command line argument.
63221         * modules/fts (Depends-on): Add d-type.  Alphabetize.
63222         Thanks to Miklos Szeredi for his tenacity and for the initial
63223         bug report about "find" failing on a FUSE-based file system.
63224
63225         * lib/fts.c (fts_open): Use consistent indentation.
63226
63227 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63228
63229         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
63230         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
63231         reported by Jim Meyering.  All uses of cache variables renamed
63232         to match Autoconf's.
63233         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
63234         the other one.
63235
63236         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
63237         Fix misspelling in diagnostic.
63238
63239 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63240
63241         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
63242         defined.  Problem reported by Matthew Woehlke.
63243
63244         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
63245         Add support for Tandem NonStop R series.
63246         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
63247         Use new macro.
63248
63249         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
63250         (has_trailing_slash): Omit size arg; all callers changed.
63251         Omit 'inline', since it doesn't help performance and we'd
63252         need to configure it.
63253         Don't count //, ///, etc. as having a trailing slash.
63254         As a side effect, this removes a C99ism reported by Matthew Woehlke.
63255         (rpl_rename_dest_slash): On failure, use rename's errno rather
63256         than (in some cases) an incorrect or junk errno.
63257         Simplify code by removing need to compute length; this does
63258         cause it to make two passes instead of one over the file name,
63259         but it's worth it.
63260
63261         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
63262         change, since Autoconf's version may no longer be appropriate now
63263         that we are using CVS Autoconf's version.  Add support for Tandem.
63264
63265 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63266             Bruno Haible  <bruno@clisp.org>
63267
63268         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
63269         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
63270         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
63271         gl_AC_TYPE_LONG_LONG.
63272
63273         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
63274         instead of HAVE_LONG_LONG.
63275         * lib/printf-args.c (printf_fetchargs): Likewise.
63276         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63277         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63278         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
63279         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
63280         gl_AC_TYPE_LONG_LONG.
63281
63282 2006-10-11  Bruno Haible  <bruno@clisp.org>
63283
63284         * m4/longlong.m4: Add comments.
63285         * m4/ulonglong.m4: Likewise.
63286
63287 2006-10-10  Bruno Haible  <bruno@clisp.org>
63288
63289         Make it possible to #define stpcpy, strdup to aliases.
63290         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
63291         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
63292
63293 2006-10-10  Bruno Haible  <bruno@clisp.org>
63294
63295         Make it possible to #define gcd to an alias.
63296         * lib/gcd.c: Include config.h.
63297
63298 2006-10-10  Bruno Haible  <bruno@clisp.org>
63299
63300         Make it possible to #define c_isascii to an alias.
63301         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
63302         defined. Undefine the macros before defining them, to avoid gcc
63303         warnings.
63304         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
63305         define NO_C_CTYPE_MACROS early.
63306
63307 2006-10-10  Bruno Haible  <bruno@clisp.org>
63308
63309         Make it possible to #define set_program_name to an alias.
63310         * lib/progname.c: Don't undefine set_program_name; instead, undefine
63311         ENABLE_RELOCATABLE early.
63312
63313 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
63314
63315         Port to Tandem NSK OSS, which has 64-bit signed int but at most
63316         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
63317         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
63318         More generally, don't assume that 64-bit signed int is available
63319         if unsigned int is, and vice versa.
63320         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
63321         unsigned symbols, not on their signed counterparts.
63322         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
63323         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
63324         (UINT64_C, UINTMAX_C):
63325         Likewise.
63326         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
63327         unsigned counterparts.
63328         (Have_long_long, Unsigned): New macros.
63329         (Int): Renamed from INT.
63330         (strtoimax): Use the new macros.
63331         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
63332         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
63333         * modules/inttypes (inttypes.h): Substitute
63334         HAVE_UNSIGNED_LONG_LONG_INT.
63335         * modules/stdint (stdint.h): Likewise.
63336         (Files): Add m4/ulonglong.m4.
63337
63338 2006-10-10  Bruno Haible  <bruno@clisp.org>
63339
63340         Fix a gcc -Wshadow warning.
63341         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
63342         to 'bucket'.
63343         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
63344         gl_linked_indexof_from_to): Likewise.
63345         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
63346         Likewise.
63347         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
63348         Likewise.
63349         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
63350         Reported by Eric Blake.
63351
63352 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
63353
63354         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
63355         for NetBSD.  Problem reported by Bruno Haible.
63356
63357 2006-10-09  Jim Meyering  <jim@meyering.net>
63358
63359         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
63360         Patch from Bruno Haible.
63361
63362 2006-10-09  Jim Meyering  <jim@meyering.net>
63363
63364         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
63365         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
63366         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
63367
63368 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63369
63370         Don't include <config.h> twice; this doesn't work in some cases,
63371         e.g., when config.h has "#define intmax_t long long int" and
63372         we include <config.h>, <inttypes.h>, <config.h> in that order.
63373         Problem reported by Matthew Woehlke in:
63374         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
63375         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
63376         * lib/fts-cycle.c: Don't include config.h.
63377         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
63378         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
63379         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
63380         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
63381         inttypes.h.
63382         * lib/xstrtoumax.c: Likewise.
63383         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
63384         __strtol and the like, so that this module is more like its siblings.
63385         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
63386         Remove; no longer needed now that we assume gnulib inttypes.h.
63387
63388 2006-10-08  Bruno Haible  <bruno@clisp.org>
63389
63390         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
63391         option.
63392
63393 2006-10-07  Jim Meyering  <jim@meyering.net>
63394
63395         * modules/inttypes (inttypes.h): Revert what seems to have been
63396         an inadvertent part of today's change: use "|", not "/" in the
63397         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
63398
63399 2006-10-07  Bruno Haible  <bruno@clisp.org>
63400
63401         * modules/sublist: New file.
63402
63403 2006-10-07  Bruno Haible  <bruno@clisp.org>
63404
63405         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
63406         * modules/argz (argz.h): Likewise.
63407         * modules/arpa_inet (arpa/inet.h): Likewise.
63408         * modules/byteswap (byteswap.h): Likewise.
63409         * modules/configmake (configmake.h): Likewise.
63410         * modules/fcntl (fcntl.h): Likewise.
63411         * modules/fnmatch (fnmatch.h): Likewise.
63412         * modules/getopt (getopt.h): Likewise.
63413         * modules/glob (glob.h): Likewise.
63414         * modules/inttypes (inttypes.h): Likewise.
63415         * modules/netinet_in (netinet/in.h): Likewise.
63416         * modules/poll (poll.h): Likewise.
63417         * modules/stdbool (stdbool.h): Likewise.
63418         * modules/stdint (stdint.h): Likewise.
63419         * modules/sys_select (sys/select.h): Likewise.
63420         * modules/sys_socket (sys/socket.h): Likewise.
63421         * modules/sys_stat (sys/stat.h): Likewise.
63422         * modules/sysexits (sysexits.h): Likewise.
63423         * modules/unistd (unistd.h): Likewise.
63424         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
63425         Add a "DO NOT EDIT" comment to the generated file.
63426         (func_import): Likewise for gnulib-comp.m4.
63427
63428 2006-10-07  Bruno Haible  <bruno@clisp.org>
63429
63430         * lib/gl_sublist.h: New file.
63431         * lib/gl_sublist.c: New file.
63432
63433 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
63434
63435         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
63436         name (relative to the original working directory) and the file
63437         name component (relative to the temporary working directory).  All
63438         callers changed.
63439         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
63440         * lib/mkdir-p.c (make_dir_parents): Likewise.
63441         * lib/mkdir-p.h (make_dir_parents): Likewise.
63442
63443 2006-10-06  Eric Blake  <ebb9@byu.net>
63444
63445         Define several macros for use by the clean-temp module.
63446         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
63447         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
63448         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
63449
63450         * lib/clean-temp.h (close_stream_temp): New declaration.
63451         * lib/clean-temp.c (includes): Pull in headers according to what
63452         other modules are in use.
63453         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
63454
63455 2006-10-06  Bruno Haible  <bruno@clisp.org>
63456
63457         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
63458         instead of fopen, fwriteerror.
63459
63460 2006-10-06  Bruno Haible  <bruno@clisp.org>
63461
63462         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
63463         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
63464         int.
63465         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
63466         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
63467         Return an error indicator.
63468         Suggested by Eric Blake.
63469
63470 2006-10-06  Bruno Haible  <bruno@clisp.org>
63471
63472         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
63473         Reported by Eric Blake.
63474
63475 2006-10-06  Bruno Haible  <bruno@clisp.org>
63476
63477         * modules/closeout (Description): Mention stderr too.
63478
63479 2006-10-06  Bruno Haible  <bruno@clisp.org>
63480         and Paul Eggert  <eggert@cs.ucla.edu>
63481
63482         * lib/closeout.c (close_stdout): Also close stderr.
63483         * lib/closeout.h: Update comment.
63484
63485 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
63486
63487         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
63488         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
63489         * lib/dirchownmod.c: Include lchown.h.
63490         * lib/lchown.c: Don't include files that lchown.h now includes.
63491         Don't declare chown, since lchown.h now does that.
63492         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
63493         (lchown): Define to rpl_chown if lchown is declared but
63494         does not exist.  Declare using a prototype if lchown is not
63495         declared.  Add a copyright notice.
63496         * lib/mkstemp.h: Include <unistd.h>.
63497         * lib/openat.c: Include lchown.h.
63498
63499         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
63500         we now test for that separately.
63501         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
63502         rather than O_NOFOLLOW, when testing whether it's possible to
63503         avoid a race condition reliably.
63504         * lib/savewd.c (savewd_chdir): Likewise.
63505
63506         Remove macros that are no longer needed now that stdint.h is
63507         reliable.
63508         * lib/fsusage.c (UINTMAX_MAX): Remove.
63509         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
63510         * lib/utimecmp.c (SIZE_MAX): Remove.
63511
63512         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
63513
63514         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
63515         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
63516         O_NOATIME works.
63517
63518 2006-10-05  Bruno Haible  <bruno@clisp.org>
63519
63520         * lib/gl_list.h (gl_sortedlist_search_from_to,
63521         gl_sortedlist_indexof_from_to): New declarations.
63522         (gl_list_implementation): New fields sortedlist_search_from_to,
63523         sortedlist_indexof_from_to.
63524         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
63525         inline functions.
63526         * lib/gl_list.c (gl_sortedlist_search_from_to,
63527         gl_sortedlist_indexof_from_to): New functions.
63528         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
63529         function.
63530         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
63531         (gl_array_sortedlist_search_from_to): New function.
63532         (gl_array_list_implementation): Update.
63533         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
63534         function.
63535         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
63536         (gl_carray_sortedlist_search_from_to): New function.
63537         (gl_carray_list_implementation): Update.
63538         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
63539         gl_linked_sortedlist_indexof_from_to): New functions.
63540         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63541         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63542         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
63543         gl_tree_sortedlist_indexof_from_to): New functions.
63544         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63545         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63546         Update.
63547         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63548         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
63549         Update.
63550
63551 2006-10-05  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
63554         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
63555         (struct gl_list_implementation): Add fields search_from_to,
63556         indexof_from_to. Remove fields search, indexof.
63557         (gl_list_search): Use the search_from_to method.
63558         (gl_list_search_from, gl_list_search_from_to): New functions.
63559         (gl_list_indexof): Use the indexof_from_to method.
63560         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63561         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
63562         (gl_list_search_from, gl_list_search_from_to): New functions.
63563         (gl_list_indexof): Use the indexof_from_to method.
63564         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
63565         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
63566         gl_array_indexof. Add start_index, end_index arguments.
63567         (gl_array_search_from_to): Renamed from gl_array_search. Add
63568         start_index, end_index arguments.
63569         (gl_array_remove, gl_array_list_implementation): Update.
63570         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
63571         gl_carray_indexof. Add start_index, end_index arguments.
63572         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
63573         start_index, end_index arguments.
63574         (gl_carray_remove, gl_carray_list_implementation): Update.
63575         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
63576         gl_linked_search. Add start_index, end_index arguments.
63577         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
63578         start_index, end_index arguments.
63579         (gl_linked_remove): Update.
63580         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
63581         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
63582         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
63583         field to 'size_t'.
63584         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
63585         gl_tree_search. Add start_index, end_index arguments.
63586         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63587         start_index, end_index arguments.
63588         (gl_tree_remove): Update.
63589         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
63590         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
63591         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
63592         function.
63593         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
63594         gl_tree_search. Add start_index, end_index arguments.
63595         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
63596         start_index, end_index arguments.
63597         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
63598         Update.
63599         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
63600
63601 2006-10-05  Bruno Haible  <bruno@clisp.org>
63602
63603         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
63604
63605         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
63606         fwriteerror_temp): New declarations.
63607         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
63608         (descriptors): New variable.
63609         (cleanup): First, close the descriptors.
63610         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
63611         fclose_temp, fwriteerror_temp): New functions.
63612
63613 2006-10-04  Jim Meyering  <jim@meyering.net>
63614
63615         * lib/fts.c (fts_open): Tiny comment change.
63616
63617 2006-10-04  Bruno Haible  <bruno@clisp.org>
63618
63619         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
63620         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
63621         gl_LOCK_BODY.
63622         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
63623         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
63624         gl_LOCK_EARLY_BODY.
63625         (gl_LOCK): Require gl_LOCK_BODY.
63626
63627 2006-10-04  Bruno Haible  <bruno@clisp.org>
63628
63629         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
63630         (gl_oset_search_atleast): New declaration.
63631         (struct gl_oset_implementation): Add field 'search_atleast'.
63632         (gl_oset_search_atleast): New inline function.
63633         * lib/gl_oset.c (gl_oset_search_atleast): New function.
63634         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
63635         (gl_array_oset_implementation): Update.
63636         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
63637         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
63638         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
63639
63640 2006-10-04  Bruno Haible  <bruno@clisp.org>
63641
63642         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
63643
63644 2006-10-03  Bruno Haible  <bruno@clisp.org>
63645
63646         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
63647         from gl_avltreehash_list_implementation.
63648
63649 2006-10-03  Bruno Haible  <bruno@clisp.org>
63650
63651         * lib/gl_oset.c (gl_oset_add): Fix return type.
63652
63653 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
63654
63655         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
63656
63657 2006-10-02  Eric Blake  <ebb9@byu.net>
63658
63659         * modules/strnlen (Depends-on): Add extensions.
63660
63661 2006-10-02  Eric Blake  <ebb9@byu.net>
63662
63663         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
63664         definition in 2.60+.
63665
63666 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
63667
63668         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
63669         checks.
63670
63671 2006-10-02  Bruno Haible  <bruno@clisp.org>
63672
63673         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
63674         to the AUTOMAKE_OPTIONS.
63675         Reported by Jim Meyering.
63676
63677 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
63678
63679         Work around bug in Solaris 10 /proc file system:
63680         /proc/self/fd/NNN/.. isn't the parent directory of
63681         the directory whose file descriptor is NNN.  This needs to
63682         be worked around at run time, not compile time, since a
63683         program might be built on Solaris 8, where things work, and
63684         run on Solaris 10.
63685         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
63686         to use the following interface instead:
63687         (OPENAT_BUFFER_SIZE): New macro.
63688         (openat_proc_name): New function.
63689         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
63690         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
63691         Likewise.
63692         * lib/openat-proc.c: New file.
63693         * modules/openat (Files): Add lib/openat-proc.c.
63694         (Depends-on): Add same-inode, stdbool.
63695         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
63696
63697 2006-09-29  Bruno Haible  <bruno@clisp.org>
63698
63699         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
63700         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
63701         argument. Set stdout_closed before testing for ferror, not after.
63702         (fwriteerror, fwriteerror_no_ebadf): New functions.
63703
63704 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63705
63706         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
63707
63708 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
63709
63710         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
63711         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
63712
63713 2006-09-28  Jim Meyering  <jim@meyering.net>
63714
63715         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
63716         Include <unistd.h>.
63717
63718 2006-09-28  Bruno Haible  <bruno@clisp.org>
63719
63720         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
63721         * modules/linkedhash-list (Depends-on): Likewise.
63722         * modules/rbtreehash-list (Depends-on): Likewise.
63723
63724 2006-09-28  Bruno Haible  <bruno@clisp.org>
63725
63726         * lib/strndup.h: Simplify the redefinition of strndup.
63727         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
63728         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
63729
63730 2006-09-28  Bruno Haible  <bruno@clisp.org>
63731
63732         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
63733         * lib/gl_linkedhash_list.c: Likewise.
63734         * lib/gl_rbtreehash_list.c: Likewise.
63735
63736 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
63737
63738         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
63739         getaddrinfo.
63740
63741         * lib/__fpending.h: Don't include <stdio_ext.h> unless
63742         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
63743         it causes <stdio_ext.h> to cause a compile-time error.
63744         Problem reported by Nelson H. F. Beebe.
63745         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
63746         of HAVE_DECL___PENDING.
63747
63748         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
63749         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
63750         declaration.
63751
63752 2006-09-27  Jim Meyering  <jim@meyering.net>
63753
63754         This file could end up with a definition for a function
63755         named __strndup, rather than rpl_strndup on a system with
63756         incomplete weak_alias support.
63757         * lib/strndup.c (strndup): Rename from __strndup.
63758         Remove #defines that used to map __strndup to strndup.
63759         Don't use K&R prototypes.
63760         Remove LIBC-related code, since this file is not sync'd with glibc.
63761         * lib/strndup.h: Revamp, accordingly.
63762         * m4/strndup.m4: Modernize.
63763
63764 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
63765
63766         * modules/savewd (Depends-on): Add 'raise'.
63767         * lib/savewd.c: Include <signal.h>, for 'raise'.
63768
63769 2006-09-26  Jim Meyering  <jim@meyering.net>
63770
63771         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
63772         when we detect Darwin 8.7.0's acl_get_file bug.
63773         Rearrange to perform the new (below) run-test while $LIBS
63774         contains any acl-related library.  Set USE_ACL at the end.
63775         (gl_ACL_GET_FILE): New function.
63776
63777 2006-09-26  Eric Blake  <ebb9@byu.net>
63778
63779         * lib/verror.c: Include <config.h> unconditionally.
63780
63781 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
63782
63783         * modules/clock-time (Maintainer): Add self.
63784         * modules/getlogin_r (Depends-on): Add extensions.
63785
63786 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63787
63788         * modules/clock-time: New module.
63789         * modules/nanosleep (Depends-on): Add clock-time.
63790         * modules/gethrxtime (Depends-on): Likewise.
63791         * modules/gettime (Depends-on): Likewise.
63792         * modules/settime (Depends-on): Likewise.
63793
63794         * modules/fts-lgpl: Depend on openat.
63795         * modules/mkancesdirs: Depend on savewd.
63796         * modules/mkdir-p: Likewise.
63797
63798 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63799
63800         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
63801
63802         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
63803         `gl_have_arbitrary_file_name_length_limit' to
63804         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
63805         actually works between configure runs.
63806
63807 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63808             Bruno Haible  <bruno@clisp.org>
63809
63810         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
63811
63812 2006-09-25  Jim Meyering  <jim@meyering.net>
63813
63814         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
63815         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
63816
63817 2006-09-25  Eric Blake  <ebb9@byu.net>
63818
63819         * gnulib-tool (func_import, func_create_testdir): Fix typos in
63820         exec's in 2006-09-18 patch when shuffling fds.
63821
63822 2006-09-25  Bruno Haible  <bruno@clisp.org>
63823
63824         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
63825         Reported by Jim Meyering.
63826
63827 2006-09-24  Jim Meyering  <jim@meyering.net>
63828
63829         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
63830         compare a pointer against a literal "0".  That caused failures with
63831         at least HP-UX's hpcc.
63832
63833 2006-09-22  Simon Josefsson  <jas@extundo.com>
63834
63835         * modules/gc-sha1:
63836         * modules/gc-md4:
63837         * modules/gc-hmac-sha1:
63838         * modules/gc-hmac-md5:
63839         * modules/gc-des:
63840         * modules/gc-arcfour: Distribute more files.
63841
63842 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63843
63844         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
63845         (gl_linked_iterator_from_to): Initialize struct completely.
63846         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
63847         (gl_tree_iterator_from_to): Likewise
63848         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
63849         * lib/gl_array_list.c [lint] (gl_array_iterator)
63850         (gl_array_iterator_from_to): Likewise.
63851         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
63852         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
63853         (gl_carray_iterator_from_to): Likewise.
63854
63855         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
63856         * lib/md4.c (md4_process_block): Remove unused variable.
63857         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
63858         parentheses for clarity.
63859
63860 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63861
63862         * modules/bison-i18n (Depends-on): Add gettext.
63863
63864 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63865
63866         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
63867         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
63868         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
63869         also add missing comma that caused broken test.
63870         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
63871         stdlib.h, for `abort'.
63872         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
63873         variables.
63874         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
63875         include unistd.h if present, for `rmdir'.
63876         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
63877         variables.
63878         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
63879         in the process include standard headers for prototypes.
63880         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
63881         gets declared on GNU/Linux.
63882         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
63883         unistd.h, for `rmdir'.
63884         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
63885
63886         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
63887         always true.
63888         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
63889
63890         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
63891
63892 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63893
63894         * gnulib-tool (func_version): Create output all at once.  This
63895         may help avoid triggering unnecessary SIGPIPEs, and at any
63896         rate it doesn't hurt.
63897
63898 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63899             Bruno Haible  <bruno@clisp.org>
63900
63901         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
63902         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
63903         * m4/signed.m4 (bh_C_SIGNED): Likewise.
63904
63905         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
63906         (gl_FUNC_VASPRINTF): Invoke it.
63907
63908 2006-09-22  Bruno Haible  <bruno@clisp.org>
63909
63910         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
63911         getloadavg.c as first argument.
63912
63913 2006-09-22  Bruno Haible  <bruno@clisp.org>
63914
63915         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
63916         at the beginning of the gl_INIT macro.
63917         * modules/getloadavg (configure.ac): Pass $gl_source_base to
63918         gl_GETLOADAVG.
63919
63920 2006-09-22  Bruno Haible  <bruno@clisp.org>
63921
63922         * gnulib-tool (func_create_megatestdir): Don't include the config-h
63923         module.
63924         Suggested by Ralf Wildenhues.
63925
63926 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
63927
63928         Import this patch from libc:
63929
63930         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
63931
63932         * lib/regex_internal.c (re_string_reconstruct): Handle
63933         offset < pstr->valid_raw_len && pstr->offsets_needed case.
63934         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
63935         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
63936         re_string_context_at.
63937
63938         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
63939         now requires it.
63940         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
63941         gl_REGEX now does it for us.
63942         (gl_REGEX): Add test taken from
63943         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
63944
63945         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
63946         Check that large offsets work.  Modernize Autoconf usages.
63947         Prefer "yes" to mean a good thing rather than a bad.
63948         Don't put "#define mkstemp" in config.h, as this might interfere
63949         with standard system headers that "#define mkstemp mkstemp64".
63950
63951         * modules/mkstemp (Depends-on): Add extensions, so that
63952         mkstemp is visible on some platforms.
63953         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
63954         (Include): Change to "mkstemp.h" from <stdlib.h>.
63955         (Files): Add mkstemp.h.
63956
63957         * lib/mkstemp.h: New file, since some standard headers
63958         #define mkstemp.
63959         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
63960         Include "mkstemp.h".
63961         Make the _LIBC code resemble glibc original more,
63962         e.g., use K&R style.
63963         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
63964         (mkstemp): Remove, since mkstemp.h does this for us.
63965         * lib/stdlib--.h: Include mkstemp.h.
63966
63967         Import this patch from libc:
63968
63969         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63970
63971         * lib/tempname.c (__gen_tempname): Change attempts_min
63972         into a macro.  Use preprocessor to decide how to initialize
63973         attempts [Coverity CID 67].
63974
63975 2006-09-20  Bruno Haible  <bruno@clisp.org>
63976
63977         * lib/mkdtemp.c: Import from libc.
63978         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
63979                 * sysdeps/posix/tempname.c (__gen_tempname): Change
63980                 attempts_min into a macro.  Use preprocessor to decide how to
63981                 initialize attempts [Coverity CID 67].
63982         2001-11-27  Paul Eggert  <eggert@twinsun.com>
63983                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
63984                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
63985
63986 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63987
63988         * gnulib-tool (func_exit): New function, to allow to pass the
63989         exit status portably through the trap.  Use everywhere.
63990         (--help, --version): Signal a write error.
63991         (trap): catch SIGPIPE, for write errors.
63992         Exit at the end of the trap, with the correct exit status.
63993
63994 2006-09-19  Karl Berry  <karl@gnu.org>
63995
63996         * doc/gnulib.texi: note about the license texinfo files.
63997
63998 2006-09-19  Eric Blake  <ebb9@byu.net>
63999
64000         * gnulib-tool: Avoid space-tab.
64001
64002 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64003
64004         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
64005         that prevented coreutils 6.1 from building.  Problem reported
64006         by Petter Reinholdtsen.
64007
64008 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
64009
64010         * gnulib-tool (avoidlist): Fix typo that broke options like
64011         --avoid=lock that are used by coreutils bootstrap.
64012
64013 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
64014
64015         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
64016         more systematically.
64017
64018 2006-09-18  Jim Meyering  <jim@meyering.net>
64019
64020         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
64021
64022 2006-09-18  Bruno Haible  <bruno@clisp.org>
64023
64024         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
64025
64026 2006-09-18  Bruno Haible  <bruno@clisp.org>
64027
64028         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
64029         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
64030         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
64031         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
64032         * m4/gettext.m4: Require autoconf >= 2.52.
64033         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
64034         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
64035         of gl_cv_header_inttypes_h.
64036
64037 2006-09-18  Bruno Haible  <bruno@clisp.org>
64038
64039         * lib/javaversion.c: Include configmake.h.
64040
64041 2006-09-18  Bruno Haible  <bruno@clisp.org>
64042
64043         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
64044         avoid that the while loops be executed in a subshell.
64045
64046 2006-09-18  Bruno Haible  <bruno@clisp.org>
64047
64048         * MODULES.html.sh (func_module): Break long lines.
64049         Suggested by Bruce Korb <bkorb@gnu.org>.
64050
64051 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64052
64053         Speed up by a factor of 1.12.
64054         * gnulib-tool (nl): New variable.
64055         (func_import): Rewrite include directive extraction to only read each
64056         directive once.
64057
64058 2006-09-17  Bruno Haible  <bruno@clisp.org>
64059
64060         * modules/javaversion (Makefile.am): Remove DEFS setting.
64061         (Depends-on): Add configmake, for PKGDATADIR definition.
64062
64063 2006-09-17  Bruno Haible  <bruno@clisp.org>
64064
64065         * gnulib-tool (func_create_testdir): Rewrite all files at once.
64066
64067 2006-09-17  Bruno Haible  <bruno@clisp.org>
64068
64069         * gnulib-tool (func_append): New function, stolen from libtool.m4.
64070         (func_modules_transitive_closure, func_modules_add_dummy,
64071         func_modules_to_filelist, func_import, func_create_testdir,
64072         func_create_megatestdir, ...): Use it wherever possible.
64073         Suggested by Ralf Wildenhues.
64074
64075 2006-09-16  Karl Berry  <karl@gnu.org>
64076
64077         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
64078         to avoid sectioning errors.
64079         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
64080         [ifinfo]: blank line after @center-ed titles.
64081         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
64082         Spell FSF address consistently with others.
64083         (These changes approved by rms.)
64084
64085 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64086
64087         Speed up by a factor of 1.61.
64088         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
64089         already checked module names again.
64090
64091 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64092
64093         Speed up by a factor of 1.13.
64094         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
64095         for new_files, and the input to func_add_or_update.
64096
64097 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64098
64099         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
64100         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
64101
64102 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64103
64104         * modules/mkancesdirs (Depends-on): Add fcntl.
64105         * modules/savewd: New file.
64106         * MODULES.html.sh (File system functions): Add savewd.
64107
64108         * modules/configmake (Makefile.am): Add support for the
64109         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
64110
64111 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64112
64113         * m4/savewd.m4: New file.
64114
64115 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
64116
64117         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
64118         (dirchownmod): New arg FD.  All callers changed.
64119         Use FD rather than opening the directory ourself, as opening is
64120         now the caller's responsibility.
64121         * lib/dirchownmod.h: Likewise.
64122         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
64123         hosts that require <sys/types.h> before <sys/stat.h>.  Include
64124         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
64125         (test_dir): Remove.
64126         (mkancesdirs): Return length of prefix of FILE that has already
64127         been made, or -2 if there is a child doing the work.  Redo
64128         algorithm so that it is O(N) rather than O(N**2).  Optimize away
64129         ".", and treat ".." specially since it might stray back into
64130         already-created areas.  Use a subprocess if necessary.  New arg
64131         WD; all users changed.  MAKE_DIR function should now return 1
64132         if it creates a directory that is not readable.  Return -2 if
64133         a child process is spun off.
64134         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
64135         Adjust signature to match code.
64136         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
64137         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
64138         all users changed.
64139         * lib/savewd.c, lib/savewd.h: New files.
64140
64141 2006-09-15  Jim Meyering  <jim@meyering.net>
64142
64143         * modules/rename-dest-slash: New module.
64144         * MODULES.html.sh (posix_compat): Add it here.
64145
64146         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
64147
64148 2006-09-15  Jim Meyering  <jim@meyering.net>
64149
64150         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
64151         file.
64152
64153         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
64154
64155 2006-09-15  Jim Meyering  <jim@meyering.net>
64156
64157         * lib/rename-dest-slash.c (has_trailing_slash): Use
64158         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
64159         (rpl_rename_dest_slash): Perform the cheaper trailing slash
64160         test before testing whether SRC is a directory.
64161         Suggestions from Bruno Haible.
64162
64163         Avoid a warning about an unused variable.
64164         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
64165         into the #ifdef block where it's used.
64166
64167         * lib/rename-dest-slash.c: New file.
64168
64169 2006-09-14  Bruno Haible  <bruno@clisp.org>
64170
64171         * lib/allocsa.c: Include <config.h> unconditionally.
64172         * lib/asnprintf.c: Likewise.
64173         * lib/asprintf.c: Likewise.
64174         * lib/c-strcasecmp.c: Likewise.
64175         * lib/c-strcasestr.c: Likewise.
64176         * lib/c-strncasecmp.c: Likewise.
64177         * lib/c-strstr.c: Likewise.
64178         * lib/classpath.c: Likewise.
64179         * lib/clean-temp.c: Likewise.
64180         * lib/concatpath.c: Likewise.
64181         * lib/copy-file.c: Likewise.
64182         * lib/csharpcomp.c: Likewise.
64183         * lib/csharpexec.c: Likewise.
64184         * lib/execute.c: Likewise.
64185         * lib/fatal-signal.c: Likewise.
64186         * lib/findprog.c: Likewise.
64187         * lib/fwriteerror.c: Likewise.
64188         * lib/gl_array_list.c: Likewise.
64189         * lib/gl_array_oset.c: Likewise.
64190         * lib/gl_avltree_list.c: Likewise.
64191         * lib/gl_avltree_oset.c: Likewise.
64192         * lib/gl_avltreehash_list.c: Likewise.
64193         * lib/gl_carray_list.c: Likewise.
64194         * lib/gl_linked_list.c: Likewise.
64195         * lib/gl_linkedhash_list.c: Likewise.
64196         * lib/gl_list.c: Likewise.
64197         * lib/gl_oset.c: Likewise.
64198         * lib/gl_rbtree_list.c: Likewise.
64199         * lib/gl_rbtree_oset.c: Likewise.
64200         * lib/gl_rbtreehash_list.c: Likewise.
64201         * lib/imaxabs.c: Likewise.
64202         * lib/imaxdiv.c: Likewise.
64203         * lib/javacomp.c: Likewise.
64204         * lib/javaexec.c: Likewise.
64205         * lib/javaversion.c: Likewise.
64206         * lib/linebreak.c: Likewise.
64207         * lib/localcharset.c: Likewise.
64208         * lib/lock.c: Likewise.
64209         * lib/mbchar.c: Likewise.
64210         * lib/mbswidth.c: Likewise.
64211         * lib/mkdtemp.c: Likewise.
64212         * lib/pipe.c: Likewise.
64213         * lib/printf-args.c: Likewise.
64214         * lib/printf-parse.c: Likewise.
64215         * lib/progname.c: Likewise.
64216         * lib/progreloc.c: Likewise.
64217         * lib/readlink.c: Likewise.
64218         * lib/sh-quote.c: Likewise.
64219         * lib/stpcpy.c: Likewise.
64220         * lib/stpncpy.c: Likewise.
64221         * lib/strcasecmp.c: Likewise.
64222         * lib/strcasestr.c: Likewise.
64223         * lib/strcspn.c: Likewise.
64224         * lib/striconv.c: Likewise.
64225         * lib/strncasecmp.c: Likewise.
64226         * lib/strnlen1.c: Likewise.
64227         * lib/strstr.c: Likewise.
64228         * lib/strtok_r.c: Likewise.
64229         * lib/tls.c: Likewise.
64230         * lib/tmpdir.c: Likewise.
64231         * lib/unicodeio.c: Likewise.
64232         * lib/unsetenv.c: Likewise.
64233         * lib/vasnprintf.c: Likewise.
64234         * lib/vasprintf.c: Likewise.
64235         * lib/wait-process.c: Likewise.
64236         * lib/xallocsa.c: Likewise.
64237         * lib/xsetenv.c: Likewise.
64238         * lib/xstriconv.c: Likewise.
64239
64240 2006-09-13  Simon Josefsson  <jas@extundo.com>
64241
64242         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
64243         that internally, suggested by Ralf Wildenhues
64244         <Ralf.Wildenhues@gmx.de>.
64245
64246 2006-09-13  Simon Josefsson  <jas@extundo.com>
64247
64248         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
64249         @LIBOBJS@.
64250         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
64251
64252 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
64253
64254         * lib/_fpending.c: Include <config.h> unconditionally, since we no
64255         longer worry about uses that don't define HAVE_CONFIG_H.
64256         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
64257         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
64258         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
64259         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
64260         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
64261         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
64262         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
64263         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
64264         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
64265         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
64266         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
64267         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
64268         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
64269         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
64270         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
64271         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
64272         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
64273         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
64274         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
64275         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
64276         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
64277         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
64278         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
64279         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
64280         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
64281         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
64282         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
64283         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
64284         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
64285         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
64286         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
64287         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
64288         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
64289         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
64290         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
64291         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
64292         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
64293         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
64294         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
64295         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
64296         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
64297         Likewise.
64298
64299 2006-09-13  Eric Blake  <ebb9@byu.net>
64300
64301         * lib/getopt.c: Fix typo in last commit.
64302
64303 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
64304
64305         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
64306         dgettext.
64307
64308 2006-09-12  Jim Meyering  <jim@meyering.net>
64309
64310         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
64311         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
64312         Reported by Nelson H. F. Beebe.
64313
64314 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
64315
64316         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
64317         program_invocation_name and program_invocation_short_name are
64318         initialized.
64319         * lib/argp-namefrob.h: Move declarations of program_invocation_name
64320         and program_invocation_short_name to argp.h, so they are visible
64321         to user programs.
64322         * lib/argp.h: Likewise
64323
64324 2006-09-10  Bruno Haible  <bruno@clisp.org>
64325
64326         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
64327         m4/inttypes_h.m4, m4/uintmax_t.m4.
64328
64329 2006-09-10  Bruno Haible  <bruno@clisp.org>
64330
64331         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
64332         gl_AC_TYPE_UINTMAX_T.
64333
64334 2006-09-10  Bruno Haible  <bruno@clisp.org>
64335
64336         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
64337
64338 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
64339
64340         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
64341         convention.  Text proposed by Bruno Haible.
64342         (struct argp_option): Document the use of N_() wrappers.
64343
64344         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
64345         '\v', and translate the two parts separately, instead of feeding
64346         the whole string to gettext.  This allows to exclude
64347         '\v' from the strings visible to the translator by writing doc
64348         strings as N_("..") "\v" N_("..").
64349
64350 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
64351
64352         * config/srclist.txt: Undo latest change; the bug was fixed.
64353
64354 2006-09-09  Bruno Haible  <bruno@clisp.org>
64355
64356         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
64357         assignments if building a library without libtool.
64358         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
64359         in func_emit_lib_Makefile_am.
64360         (func_import): When building a static library libfoo.a, arrange to
64361         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
64362         (func_create_testdir): Likewise.
64363         * modules/gc (configure.ac, Makefile.am): If building statically,
64364         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
64365         * modules/iconvme (configure.ac, Makefile.am): Likewise.
64366         * modules/striconv (configure.ac, Makefile.am): Likewise.
64367         Based on a suggestion by Ralf Wildenhues.
64368
64369 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64370
64371         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
64372         Check for unistd.h too, since Autoconf doesn't assume POSIX.
64373         Also:
64374
64375         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64376         Add year_2050_test to catch glibc bug 2821
64377         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64378
64379         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64380         Prefer #ifdef to #if.
64381
64382         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
64383         Return from 'main' instead of calling 'exit'.
64384
64385 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64386
64387         * lib/mktime.c (guess_time_tm): Fix bug where mktime
64388         returned the maximum time_t value rather than (time_t) -1.
64389         Problem originally reported by William Bardwell
64390         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
64391
64392         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64393         Moved to here ...
64394         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
64395         ... from here.
64396
64397 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
64398
64399         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
64400         2821 is fixed.
64401
64402 2006-09-08  Jim Meyering  <jim@meyering.net>
64403
64404         Don't make generated files read-only.  That would bother too many
64405         people.  However, do retain the ability to work when targets are
64406         read-only: remove the destination and temporary files before writing
64407         them (when generated via sed or echo), or by using the -f option for
64408         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
64409         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64410         * modules/byteswap, modules/configmake, modules/fcntl:
64411         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64412         * modules/localcharset, modules/netinet_in, modules/poll:
64413         * modules/stdbool, modules/stdint, modules/sys_select:
64414         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64415
64416 2006-09-08  Jim Meyering  <jim@meyering.net>
64417
64418         Avoid new build failure on FreeBSD 6.0.
64419         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
64420         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
64421         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
64422
64423 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64424
64425         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
64426
64427 2006-09-07  Jim Meyering  <jim@meyering.net>
64428
64429         Fix global typo in last change: use chmod u-w, not chmod u-x.
64430         Spotted by Paul Eggert and Bruce Korb.
64431         * modules/alloca-opt, modules/argz, modules/arpa_inet:
64432         * modules/byteswap, modules/configmake, modules/fcntl:
64433         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
64434         * modules/localcharset, modules/netinet_in, modules/poll:
64435         * modules/stdbool, modules/stdint, modules/sys_select:
64436         * modules/sys_socket, modules/sys_stat, modules/sysexits:
64437
64438 2006-09-06  Jim Meyering  <jim@meyering.net>
64439
64440         Make generated files be read-only.
64441         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
64442         Ensure that each generated file is now read-only.
64443         * modules/argz: Likewise.
64444         * modules/arpa_inet: Likewise.
64445         * modules/byteswap: Likewise.
64446         * modules/configmake: Likewise.
64447         * modules/fcntl: Likewise.
64448         * modules/fnmatch: Likewise.
64449         * modules/getopt: Likewise.
64450         * modules/glob: Likewise.
64451         * modules/inttypes: Likewise.
64452         * modules/netinet_in: Likewise.
64453         * modules/poll: Likewise.
64454         * modules/stdbool: Likewise.
64455         * modules/stdint: Likewise.
64456         * modules/sys_select: Likewise.
64457         * modules/sys_socket: Likewise.
64458         * modules/sys_stat: Likewise.
64459         * modules/sysexits: Likewise.
64460         * modules/localcharset: Same as above, but continue using temporary
64461         file named "t-$@" (why different?) rather than the "$@-t" used
64462         everywhere else.
64463
64464         * modules/sysexits (Makefile.am): Replace literal occurrences
64465         of "sysexit.h" more readable, and more consistent, "$@".
64466
64467 2006-09-06  Bruno Haible  <bruno@clisp.org>
64468
64469         * modules/striconv: New file.
64470         * modules/xstriconv: New file.
64471         * MODULES.html.sh (Internationalization functions): Add striconv,
64472         xstriconv.
64473
64474 2006-09-06  Bruno Haible  <bruno@clisp.org>
64475
64476         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
64477         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
64478         not using libtool correctly.
64479
64480 2006-09-06  Bruno Haible  <bruno@clisp.org>
64481
64482         * lib/striconv.h: New file.
64483         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
64484         iconvstring.c.
64485         * lib/xstriconv.h: New file.
64486         * lib/xstriconv.c: New file.
64487
64488 2006-09-06  Bruno Haible  <bruno@clisp.org>
64489
64490         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
64491         lib_..._LDFLAGS.
64492
64493 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64494
64495         * lib/argz_.h: Sync from Libtool.
64496
64497         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
64498                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
64499
64500         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
64501
64502 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64503
64504         * modules/trim: New file.
64505
64506 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
64507
64508         * lib/trim.h: New file.
64509         * lib/trim.c: New file.
64510
64511 2006-09-05  Bruno Haible  <bruno@clisp.org>
64512
64513         * MODULES.html.sh (String handling): Add trim.
64514
64515 2006-09-04  Karl Berry  <karl@gnu.org>
64516
64517         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
64518         until next release.
64519
64520 2006-09-03  Bruno Haible  <bruno@clisp.org>
64521
64522         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
64523         correctly.
64524
64525 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64526
64527         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
64528         not gl_GETLOADAVG.  Omit unneeded semicolons.
64529         Problems reported by Ralf Wildenhues in
64530         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64531         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
64532         at the end, which is the usual gnulib style.
64533
64534         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
64535         of doing all the work ourselves.
64536         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
64537         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
64538
64539 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64540
64541         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
64542         Problem reported by Ralf Wildenhues in
64543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
64544
64545         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
64546         HAVE_STRUCT_STATFS_F_FSTYPENAME.
64547
64548 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
64549
64550         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
64551         yesterday's patch by changing test -n to test -z.
64552
64553 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64554
64555         * modules/getloadavg (Files): Add m4/getloadavg.m4.
64556         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
64557         the former is now obsolescent.
64558
64559         * modules/chdir-long (Depends-on): Add fcntl.
64560
64561 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64562
64563         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
64564         obsolescent, and programs should use gnulib instead.
64565         * m4/getloadavg.m4: New file, with contents taken from Autoconf
64566         but with prefixes changed.
64567
64568 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
64569
64570         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
64571         or stdbool.h, because they might not exist while configuring.
64572
64573         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
64574         Don't include unistd.h or limits.h; not needed, since chdir-long.h
64575         does that for us.
64576         (O_DIRECTORY): Remove.
64577
64578 2006-08-31  Eric Blake  <ebb9@byu.net>
64579
64580         * gnulib-tool: Don't let emacs change spaces to TAB.
64581
64582 2006-08-31  Bruno Haible  <bruno@clisp.org>
64583
64584         * gnulib-tool: When calling func_import more than once, do it in a
64585         subshell.
64586         Reported by Eric Blake <ebb9@byu.net>.
64587
64588 2006-08-31  Bruno Haible  <bruno@clisp.org>
64589
64590         * gnulib-tool (nl): Remove variable.
64591         (sed_transform_lib_file): Use more robust test for config-h module.
64592         (func_import): Fix typo in 2006-08-25 patch.
64593
64594 2006-08-31  Bruno Haible  <bruno@clisp.org>
64595
64596         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
64597         specified, augment Makefile.am variables instead of assigning them.
64598
64599 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64600
64601         Work around a bug in both the Linux and SunOS 64-bit kernels:
64602         nanosleep mishandles sleeps for longer than 2**31 seconds.
64603         Problem reported by Frank v Waveren in
64604         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64605         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
64606         Check for nanosleep bug.
64607         (LIB_NANOSLEEP): Append clock_gettime library if needed.
64608
64609 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64610
64611         Work around a bug in both the Linux and SunOS 64-bit kernels:
64612         nanosleep mishandles sleeps for longer than 2**31 seconds.
64613         Problem reported by Frank v Waveren in
64614         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
64615         * lib/nanosleep.c (BILLION): New constant.
64616         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
64617         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
64618         implementation.
64619
64620 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64621
64622         * modules/nanosleep (Depends-on): Add gettime.
64623
64624 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
64625         and Simon Josefsson  <jas@extundo.com>
64626         and Oskar Liljeblad  <oskar@osk.mine.nu>
64627
64628         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
64629         * gnulib-tool (func_import): New license type 'unmodifiable license
64630         text'.
64631         * modules/fdl: Use it.  Longer description.
64632         * module/gpl, module/lgpl: New files.
64633
64634 2006-08-30  Jim Meyering  <jim@meyering.net>
64635
64636         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
64637         shadowing the parameter.
64638
64639 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64640
64641         Sync from Libtool:
64642
64643         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
64644
64645         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
64646         sharing with gnulib.  Report by Eric Blake.
64647
64648 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64649
64650         * modules/isapipe: New file.
64651         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
64652
64653 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64654
64655         * modules/configmake (Makefile.am): Add a comment, and omit
64656         the CONFIGMAKE_ prefix from generated macro names.  Suggested
64657         by Bruno Haible.
64658
64659 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64660
64661         * m4/isapipe.m4: New file.
64662
64663 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
64664
64665         * lib/isapipe.c, lib/isapipe.h: New files.
64666
64667 2006-08-29  Jim Meyering  <jim@meyering.net>
64668
64669         * modules/configmake (Makefile.am): Make configmake.h depend on
64670         Makefile.  Otherwise, a stale configmake.h could hang around.
64671
64672 2006-08-29  Eric Blake  <ebb9@byu.net>
64673
64674         * lib/error.c (error_at_line, print_errno_message): Match libc, after
64675         resolution of upstream bug 3044.
64676
64677 2006-08-29  Bruno Haible  <bruno@clisp.org>
64678
64679         * modules/localcharset (Depends-on): Add configmake.
64680         (Makefile.am): Remove setting of LIBDIR through DEFS.
64681
64682 2006-08-29  Bruno Haible  <bruno@clisp.org>
64683
64684         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
64685         defined.
64686
64687 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64688
64689         * modules/fcntl: New file.
64690         * modules/chdir-safer (Depends-on): Add fcntl.
64691         * modules/fts: Likewise.
64692         * modules/mkdir-p: Likewise.
64693
64694         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
64695         This undoes the most recent change, since we're now addressing the
64696         problem in a different way.
64697
64698         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
64699         into output, since the output might be called Makefile.am even
64700         if $makefile_name is something different.
64701         (func_import): Use $makefile_am rather than
64702         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
64703         empty.
64704
64705         * modules/inttypes (Files): Add m4/inttypes-h.m4.
64706
64707 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64708
64709         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
64710         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
64711         recent change to stdint.m4, since we're now addressing the problem in a
64712         different way.
64713
64714 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64715
64716         * m4/fcntl_h.m4: New file.
64717
64718 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
64719
64720         * lib/fcntl_.h: New file.
64721         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
64722         the fcntl module.
64723         * lib/dirchownmod.c: Likewise.
64724         * lib/fts.c: Likewise.
64725
64726         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
64727         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
64728         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
64729         just before including <inttypes.h>, to avoid circular inclusion.
64730
64731 2006-08-28  Jim Meyering  <jim@meyering.net>
64732
64733         * doc/visibility.texi: Actually read and correct the grammar of the
64734         sentence affected by yesterday's change.
64735
64736 2006-08-28  Eric Blake  <ebb9@byu.net>
64737
64738         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
64739         needs wrapper.
64740
64741 2006-08-28  Eric Blake  <ebb9@byu.net>
64742
64743         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
64744
64745 2006-08-28  Eric Blake  <ebb9@byu.net>
64746
64747         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
64748
64749 2006-08-28  Bruno Haible  <bruno@clisp.org>
64750
64751         * modules/c-strstr: New file, from GNU gettext.
64752         * MODULES.html.sh (String handling): Add c-strstr.
64753
64754 2006-08-28  Bruno Haible  <bruno@clisp.org>
64755
64756         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
64757         macros.
64758         Reported by Eric Blake.
64759
64760 2006-08-28  Bruno Haible  <bruno@clisp.org>
64761
64762         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
64763         (VASNPRINTF): Return a string of length > INT_MAX without failing.
64764         * lib/vasprintf.c: Include errno.h, limits.h.
64765         (EOVERFLOW): New fallback definition.
64766         (vasprintf): Test here whether the string length is > INT_MAX.
64767         * lib/vsnprintf.c: Include errno.h, limits.h.
64768         (EOVERFLOW): New fallback definition.
64769         (vsnprintf): Fix bug when generated string was too long for the buffer.
64770         Test here whether the string length is > INT_MAX.
64771
64772 2006-08-28  Bruno Haible  <bruno@clisp.org>
64773
64774         * lib/inttypes_.h (SCNX*): Remove definitions.
64775         Reported by Eric Blake.
64776
64777 2006-08-28  Bruno Haible  <bruno@clisp.org>
64778
64779         * lib/c-strstr.h: New file, from GNU gettext.
64780         * lib/c-strstr.c: New file, from GNU gettext.
64781
64782 2006-08-28  Bruno Haible  <bruno@clisp.org>
64783
64784         * gnulib-tool: Reorder some statements.
64785
64786 2006-08-28  Bruno Haible  <bruno@clisp.org>
64787
64788         * gnulib-tool: New option --makefile-name.
64789         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
64790         $makefile_name.
64791         (func_import): Write $makefile_name to the cache file, and read it from
64792         there unless explicitly specified. Use $makefile_name as file name
64793         instead of Makefile.am. Adjust the recommendations accordingly.
64794
64795 2006-08-28  Bruno Haible  <bruno@clisp.org>
64796
64797         * gnulib-tool (func_verify_module): Check against misapplying patch.
64798
64799 2006-08-28  Bruno Haible  <bruno@clisp.org>
64800
64801         * gnulib-tool (func_relativize, func_relconcat): New functions.
64802         Give an error if --local-dir is given with --update.
64803         Remove trailing slashes from $local_gnulib_dir.
64804         (func_import): Store the relativized $local_gnulib_dir in
64805         gnulib-cache.m4, and read it from there if not specified explicitly.
64806
64807 2006-08-28  Bruno Haible  <bruno@clisp.org>
64808
64809         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
64810         is the current directory. Respect also $local_gnulib_dir.
64811
64812 2006-08-28  Bruno Haible  <bruno@clisp.org>
64813             Simon Josefsson  <jas@extundo.com>
64814
64815         BeOS portability.
64816         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
64817
64818 2006-08-27  Jim Meyering  <jim@meyering.net>
64819
64820         * doc/visibility.texi: Remove duplicate word: "pointer".
64821
64822 2006-08-26  Bruno Haible  <bruno@clisp.org>
64823
64824         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
64825         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
64826         (Makefile.am): Create inttypes.h from inttypes_.h.
64827         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
64828
64829         * modules/imaxabs: New file.
64830
64831         * modules/imaxdiv: New file.
64832
64833 2006-08-26  Bruno Haible  <bruno@clisp.org>
64834
64835         * m4/inttypes.m4: New file.
64836         * m4/_inttypes_h.m4: Remove file.
64837         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
64838         PRI_MACROS_BROKEN.
64839         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
64840
64841         * m4/imaxabs.m4: New file.
64842
64843         * m4/imaxdiv.m4: New file.
64844
64845 2006-08-26  Bruno Haible  <bruno@clisp.org>
64846
64847         * lib/inttypes_.h: New file.
64848         * lib/inttypes.h: Remove file.
64849         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
64850
64851         * lib/imaxabs.c: New file.
64852
64853         * lib/imaxdiv.c: New file.
64854
64855 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64856
64857         New config-h module, so that "make" output needn't be cluttered
64858         by -DHAVE_CONFIG_H.
64859         * MODULES.html.sh (Support for building libraries and executables):
64860         Add config-h.
64861         * modules/config-h: New file.
64862         * gnulib-tool (nl, sed_transform_lib_file): New vars.
64863         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
64864         the config-h module is used.
64865
64866         New configmake module, so that "make" output needn't be cluttered
64867         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
64868         * MODULES.html.sh (Support for building libraries and executables):
64869         Add configmake.
64870         * modules/configmake: New file.
64871
64872 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
64873
64874         * m4/config-h.m4: New file.
64875
64876 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64877
64878         * config/srclist.txt: Add elisp-comp.
64879
64880 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
64881
64882         * MODULES.html.sh (Support for building libraries and executables):
64883         Add elisp-comp.
64884         * build-aux/elisp-comp: New file.
64885         * modules/elisp-comp: New file.
64886
64887 2006-08-24  Bruno Haible  <bruno@clisp.org>
64888
64889         * gnulib-tool (func_create_testdir): Use non-default values of
64890         sourcebase and m4base.
64891
64892 2006-08-24  Bruno Haible  <bruno@clisp.org>
64893
64894         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
64895         HTML structure.
64896
64897 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
64898
64899         * modules/openat (Depends-on): Add lchown.
64900
64901 2006-08-23  Bruno Haible  <bruno@clisp.org>
64902
64903         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
64904         of gl_LOCK_EARLY instead of gl_LOCK.
64905
64906 2006-08-23  Bruno Haible  <bruno@clisp.org>
64907
64908         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
64909         on OSF/1 to no.
64910         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
64911
64912 2006-08-23  Bruno Haible  <bruno@clisp.org>
64913
64914         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
64915         as unusable.
64916
64917         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
64918         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
64919         (gl_LOCK): New macro.
64920
64921 2006-08-22  Simon Josefsson  <jas@extundo.com>
64922
64923         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
64924         to md5 module.
64925
64926 2006-08-22  Simon Josefsson  <jas@extundo.com>
64927
64928         * MODULES.html.sh: Add "Support for maintaining and release
64929         projects".
64930
64931         * build-aux/gnupload: New file, from coreutils.
64932
64933 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64934
64935         Avoid the need for AC_LIBSOURCES in m4 macros.
64936         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
64937         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
64938         * modules/check-version (EXTRA_DIST): Add check-version.h.
64939         * modules/crc (EXTRA_DIST): Add crc.h.
64940         * modules/des (EXTRA_DIST): Add des.h.
64941         * modules/gc (EXTRA_DIST): Add gc.h.
64942         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
64943         * modules/getline (EXTRA_DIST): Add getline.h.
64944         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
64945         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
64946         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
64947         * modules/md2 (EXTRA_DIST): Add md2.h.
64948         * modules/md4 (EXTRA_DIST): Add md4.h.
64949         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
64950         * modules/read-file (EXTRA_DIST): Add read-file.h.
64951         * modules/readline (EXTRA_DIST): Add readline.h.
64952         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
64953         rijndael-api-fst.h.
64954
64955 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64956
64957         * m4/rijndael.m4 (gl_ARCFOUR):
64958         * m4/arctwo.m4 (gl_ARCTWO):
64959         * m4/check-version.m4 (gl_CHECK_VERSION):
64960         * m4/crc.m4 (gl_CRC):
64961         * m4/des.m4 (gl_DES):
64962         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
64963         * m4/gc.m4 (gl_GC):
64964         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
64965         * m4/getline.m4 (gl_FUNC_GETLINE):
64966         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
64967         * m4/hmac-md5.m4 (gl_HMAC_MD5):
64968         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
64969         * m4/md2.m4 (gl_MD2):
64970         * m4/md4.m4 (gl_MD4):
64971         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
64972         * m4/read-file.m4 (gl_FUNC_READ_FILE):
64973         * m4/readline.m4 (gl_FUNC_READLINE):
64974         * m4/rijndael.m4 (gl_RIJNDAEL):
64975         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
64976         to get the necessary .h files and whatnot.
64977
64978 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
64979
64980         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
64981         gnulib rather than the other way around.
64982         * config/srclistvars.sh (COREUTILS): Remove.
64983
64984 2006-08-22  Jim Meyering  <jim@meyering.net>
64985
64986         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
64987
64988         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
64989
64990 2006-08-22  Eric Blake  <ebb9@byu.net>
64991
64992         * modules/regexprops-generic: New file.
64993         * MODULES.html.sh (Support for building documentation): List it.
64994
64995 2006-08-22  Eric Blake  <ebb9@byu.net>
64996
64997         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
64998         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
64999         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
65000         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
65001
65002 2006-08-22  Bruno Haible  <bruno@clisp.org>
65003
65004         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
65005         and lib_LTLIBRARIES like the other lib_* variables.
65006
65007 2006-08-22  Bruno Haible  <bruno@clisp.org>
65008
65009         * build-aux/x-to-1.in: New file, from GNU gettext.
65010
65011 2006-08-22  Bruno Haible  <bruno@clisp.org>
65012
65013         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
65014         <utmpx.h> exists.
65015
65016 2006-08-22  Bruno Haible  <bruno@clisp.org>
65017
65018         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
65019         <utmpx.h> exists.
65020
65021 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65022
65023         BeOS portability.
65024         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
65025         exist.
65026         Problem reported by Bruno Haible.
65027
65028 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65029
65030         Avoid the need for AC_LIBSOURCES in m4 macros.
65031         * modules/acl (EXTRA_DIST): Add acl.h.
65032         * modules/argmatch (Files): Add m4/argmatch.m4.
65033         (configure.ac): Add gl_ARGMATCH.
65034         (EXTRA_DIST): Renamed from lib_SOURCES, for
65035         consistency with the other modules.  Remove argmatch.c.
65036         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
65037         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
65038         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
65039         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
65040         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
65041         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
65042         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
65043         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
65044         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
65045         * modules/closeout (EXTRA_DIST): Add closeout.h.
65046         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
65047         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
65048         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
65049         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
65050         dirname.h; remove basename.c and stripslash.c.
65051         * modules/exclude (EXTRA_DIST): Add exclude.h.
65052         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
65053         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
65054         * modules/file-type (EXTRA_DIST): Add file-type.h.
65055         * modules/filemode (EXTRA_DIST): Add filemode.h.
65056         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
65057         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65058         * modules/fpending (EXTRA_DIST): Add __fpending.h.
65059         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
65060         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
65061         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
65062         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
65063         * modules/getdate (EXTRA_DIST): Add getdate.c.
65064         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
65065         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
65066         * modules/getpass (EXTRA_DIST): Add getpass.h.
65067         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
65068         * modules/group-member (EXTRA_DIST): Add group-member.h.
65069         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
65070         * modules/hash (EXTRA_DIST): Add hash.h.
65071         * modules/human (EXTRA_DIST): Add human.h.
65072         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
65073         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
65074         * modules/lchown (EXTRA_DIST): Add lchown.h.
65075         * modules/long-options (EXTRA_DIST): Add long-options.h.
65076         * modules/lstat (EXTRA_DIST): Add lstat.h.
65077         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
65078         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
65079         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
65080         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
65081         * modules/memxor (EXTRA_DIST): Add memxor.h.
65082         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
65083         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
65084         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
65085         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
65086         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
65087         * modules/physmem (EXTRA_DIST): Add physmem.h.
65088         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
65089         * modules/posixver (EXTRA_DIST): Add posixver.h.
65090         * modules/quote (EXTRA_DIST): Add quote.h.
65091         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
65092         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
65093         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
65094         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
65095         regex_internal.h regexec.c.
65096         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
65097         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
65098         * modules/same (EXTRA_DIST): Add same.h.
65099         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
65100         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
65101         * modules/savedir (EXTRA_DIST): Add savedir.h.
65102         * modules/sha1 (EXTRA_DIST): Add sha1.h.
65103         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
65104         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
65105         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
65106         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
65107         * modules/strdup (EXTRA_DIST): Add strdup.h.
65108         * modules/strftime (EXTRA_DIST): Add strftime.h.
65109         * modules/strndup (EXTRA_DIST): Add strndup.h.
65110         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
65111         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
65112         * modules/time_r (EXTRA_DIST): Add time_r.h.
65113         * modules/timespec (EXTRA_DIST): Add timespec.h.
65114         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
65115         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
65116         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
65117         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
65118         * modules/userspec (EXTRA_DIST): Add userspec.h.
65119         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
65120         * modules/utimens (EXTRA_DIST): Add utimens.h.
65121         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
65122         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
65123         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
65124         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
65125         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
65126         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
65127         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
65128         * modules/yesno (EXTRA_DIST): Add yesno.h.
65129
65130 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
65131
65132         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
65133
65134         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
65135         * m4/dev-ino.m4, same-inode.m4: Remove.
65136
65137         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
65138         * m4/acl.m4 (AC_FUNC_ACL):
65139         * m4/backupfile.m4 (gl_BACKUPFILE):
65140         * m4/c-strtod.m4 (gl_C99_STRTOLD):
65141         * m4/canon-host.m4 (gl_CANON_HOST):
65142         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
65143         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
65144         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
65145         * m4/cloexec.m4 (gl_CLOEXEC):
65146         * m4/close-stream.m4 (gl_CLOSE_STREAM):
65147         * m4/closeout.m4 (gl_CLOSEOUT):
65148         * m4/dirfd.m4 (gl_FUNC_DIRFD):
65149         * m4/dirname.m4 (gl_DIRNAME):
65150         * m4/exclude.m4 (gl_EXCLUDE):
65151         * m4/exitfail.m4 (gl_EXITFAIL):
65152         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
65153         * m4/file-type.m4 (gl_FILE_TYPE):
65154         * m4/filemode.m4 (gl_FILEMODE):
65155         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
65156         * m4/fpending.m4 (gl_FUNC_FPENDING):
65157         * m4/fprintftime.m4 (gl_FPRINTFTIME):
65158         * m4/fts.m4 (gl_FUNC_FTS):
65159         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
65160         * m4/getdate.m4 (gl_GETDATE):
65161         * m4/gethrxtime.m4 (gl_GETHRXTIME):
65162         * m4/getpagesize.m4 (gl_GETPAGESIZE):
65163         * m4/getpass.m4 (gl_FUNC_GETPASS):
65164         * m4/gettime.m4 (gl_GETTIME):
65165         * m4/getugroups.m4 (gl_GETUGROUPS):
65166         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
65167         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
65168         * m4/hard-locale.m4 (gl_HARD_LOCALE):
65169         * m4/hash.m4 (gl_HASH):
65170         * m4/idcache.m4 (gl_IDCACHE):
65171         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
65172         * m4/lchown.m4 (gl_FUNC_LCHOWN):
65173         * m4/long-options.m4 (gl_LONG_OPTIONS):
65174         * m4/lstat.m4 (gl_FUNC_LSTAT):
65175         * m4/md5.m4 (gl_MD5):
65176         * m4/memcasecmp.m4 (gl_MEMCASECMP):
65177         * m4/memcoll.m4 (gl_MEMCOLL):
65178         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
65179         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
65180         * m4/memxor.m4 (gl_MEMXOR):
65181         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
65182         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
65183         * m4/modechange.m4 (gl_MODECHANGE):
65184         * m4/mountlist.m4 (gl_MOUNTLIST):
65185         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
65186         * m4/openat.m4 (gl_FUNC_OPENAT):
65187         * m4/pathmax.m4 (gl_PATHMAX):
65188         * m4/physmem.m4 (gl_PHYSMEM):
65189         * m4/posixtm.m4 (gl_POSIXTM):
65190         * m4/posixver.m4 (gl_POSIXVER):
65191         * m4/quote.m4 (gl_QUOTE):
65192         * m4/quotearg.m4 (gl_QUOTEARG):
65193         * m4/readtokens.m4 (gl_READTOKENS):
65194         * m4/readutmp.m4 (gl_READUTMP):
65195         * m4/regex.m4 (gl_REGEX):
65196         * m4/safe-read.m4 (gl_SAFE_READ):
65197         * m4/safe-write.m4 (gl_SAFE_WRITE):
65198         * m4/same.m4 (gl_SAME):
65199         * m4/save-cwd.m4 (gl_SAVE_CWD):
65200         * m4/savedir.m4 (gl_SAVEDIR):
65201         * m4/settime.m4 (gl_SETTIME):
65202         * m4/sha1.m4 (gl_SHA1):
65203         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
65204         * m4/stat-macros.m4 (gl_STAT_MACROS):
65205         * m4/stat-time.m4 (gl_STAT_TIME):
65206         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
65207         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
65208         * m4/strdup.m4 (gl_FUNC_STRDUP):
65209         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
65210         * m4/strndup.m4 (gl_FUNC_STRNDUP):
65211         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
65212         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
65213         * m4/time_r.m4 (gl_TIME_R):
65214         * m4/timespec.m4 (gl_TIMESPEC):
65215         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
65216         * m4/unlinkdir.m4 (gl_UNLINKDIR):
65217         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
65218         * m4/userspec.m4 (gl_USERSPEC):
65219         * m4/utimecmp.m4 (gl_UTIMECMP):
65220         * m4/utimens.m4 (gl_UTIMENS):
65221         * m4/xalloc.m4 (gl_XALLOC):
65222         * m4/xgetcwd.m4 (gl_XGETCWD):
65223         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
65224         * m4/xreadlink.m4 (gl_XREADLINK):
65225         * m4/xstrtod.m4 (gl_XSTRTOD):
65226         * m4/yesno.m4 (gl_YESNO):
65227         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
65228         to get the necessary .h files and whatnot.
65229
65230 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
65231             Bruno Haible  <bruno@clisp.org>
65232
65233         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
65234         /bin/sh understanding of '!' conditional negation.
65235
65236 2006-08-21  Jim Meyering  <jim@meyering.net>
65237
65238         * modules/openat (Depends-on): Really alphabetize.
65239
65240         * modules/acl (Depends-on): Add error and quote.
65241
65242         * check-module (find_included_lib_files): Add at-func.c to the
65243         ok-to-include-more-than-once white list.
65244
65245         * modules/openat (Depends-on): Add lstat.  Alphabetize.
65246
65247 2006-08-21  Bruno Haible  <bruno@clisp.org>
65248
65249         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65250         Emit a pkgdata_DATA variable only if some snippets add contents to it.
65251         Reported by Martin Lambers <marlam@marlam.de>.
65252
65253 2006-08-21  Bruno Haible  <bruno@clisp.org>
65254
65255         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
65256         specify an installation location, don't emit a noinst_LIBRARIES or
65257         noinst_LTLIBRARIES assignment.
65258
65259 2006-08-21  Bruno Haible  <bruno@clisp.org>
65260
65261         BeOS portability.
65262         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
65263         BeOS has mbrtowc() but no <wctype.h>.
65264
65265 2006-08-21  Bruno Haible  <bruno@clisp.org>
65266
65267         BeOS portability.
65268         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
65269         exist.
65270
65271 2006-08-21  Bruno Haible  <bruno@clisp.org>
65272
65273         BeOS portability.
65274         * lib/mbchar.h: Include <wctype.h> only if it exists.
65275
65276 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65277
65278         Remove files that are no longer needed by their respective modules.
65279         * m4/obstack.m4: Remove.
65280         * m4/strerror_r.m4: Remove.
65281         * m4/uint32_t.m4: Remove.
65282         * m4/uintptr_t.m4: Remove.
65283         * m4/ullong_max.m4: Remove.
65284         * m4/xstrtoimax.m4: Remove.
65285         * m4/xstrtoumax.m4: Remove.
65286
65287         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
65288         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
65289         dependencies now capture this.
65290
65291         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
65292         Do not use AC_LIBSOURCES, since gnulib modules now do this.
65293         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
65294         * m4/human.m4 (gl_HUMAN): Likewise.
65295         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
65296         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
65297
65298         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
65299
65300         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
65301         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
65302         stdint.
65303         * m4/human.m4 (gl_HUMAN): Likewise.
65304         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
65305         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
65306         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65307         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65308         * m4/xstrtol (gl_XSTRTOL): Likewise.
65309
65310         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
65311         AC_TYPE_LONG_LONG_INT.
65312         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
65313         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
65314         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
65315         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
65316
65317         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
65318         on stdbool.
65319
65320         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
65321         (gl_PREREQ_XSTRTOUL): Remove.
65322
65323         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
65324
65325         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
65326         mode.
65327
65328 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65329
65330         Add and change modules to make it easier for coreutils to use
65331         gnulib-tool.
65332         * modules/backupfile (Files): Remove m4/d-ino.m4.
65333         (Depends-on): Add d-ino.
65334         * modules/cycle-check (Depends-on): Add stdint.
65335         (lib_SOURCES): Add cycle-check.h.
65336         * modules/d-ino: New module.
65337         * modules/d-type: New module.
65338         * modules/error (Files): Remove m4/strerror_r.m4.
65339         * modules/filemode (Files): Add m4/st_dm_mode.m4.
65340         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
65341         m4/inttypes_h.m4, m4/uintmax_t.m4.
65342         (Depends-on): Add stdint.
65343         (lib_SOURCES): Add fsusage.h.
65344         * modules/getcwd (Files): Remove d-ino.m4.
65345         (Depends-on): Add d-ino.
65346         * modules/getndelim2 (Depends-on): Add stdint.
65347         * modules/glob (Files): Remove m4/d-type.m4.
65348         (Depends-on): Add d-type.
65349         * modules/host-os: New module.
65350         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
65351         m4/inttypes_h.m4, m4/uintmax_t.m4.
65352         * Depends-on: Add stdint.
65353         (lib_SOURCES): Add human.h.
65354         * modules/inttostr (Files): Remove m4/intmax_t.m4,
65355         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
65356         m4/uintmax_t.m4, m4/ulonglong.m4.
65357         (Depends-on): Add stdint.
65358         (EXTRA_DIST): Add inttostr.h.
65359         * modules/lchmod: New module.
65360         * modules/link-follow: New module.
65361         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
65362         (Depends-on): Add lchmod.
65363         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
65364         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
65365         (Depends-on): Add stdint.
65366         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
65367         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
65368         (Depends-on): Add stdint.
65369         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
65370         * modules/perl: New module.
65371         * modules/regex (Depends-on): Add stdint.
65372         * modules/rmdir-errno: New module.
65373         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65374         m4/intmax_t.m4.
65375         (Depends-on): Add stdint.
65376         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
65377         m4/uintmax_t.m4.
65378         (Depends-on): Add stdint.
65379         * modules/unlink-busy: New module.
65380         * modules/utimecmp (Depends-on): Add stdint.
65381         * modules/uptime: New module.
65382         * modules/winsz-ioctl: New module.
65383         * modules/winsz-termios: New module.
65384         * modules/xnanosleep (Depends-on): Add nanosleep.
65385         * modules/ullong_max: Remove.
65386         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
65387         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
65388         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
65389         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
65390         (Depends-on): Add inttypes.
65391         (lib_SOURCES): Add xstrtol.h.
65392         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
65393         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
65394         * MODULES.html.sh: Move 'assert' into the assert section.
65395         Move 'dummy' into the linking section.
65396         Remove ullong_max.
65397         Add section for compatibility checks for POSIX:2001 functions,
65398         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
65399         winsz-ioctl, and winsz-termios into it.
65400         Add lchmod.
65401         Add top-level Misc section and put host-os, perl, and uptime
65402         into it.
65403
65404 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
65405
65406         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
65407         now assume the stdint module.  Do not include inttypes.h.
65408         * lib/fsusage.h: Likewise.
65409         * lib/getndelim2.c: Likewise.
65410         * lib/human.h: Likewise.
65411         * lib/inttostr.h: Likewise.
65412         * lib/obstack.c: Likewise.
65413         * lib/regex_internal.h: Likewise.
65414         * lib/tempname.c: Likewise.
65415         * lib/utimecmp.c: Likewise.
65416         * lib/xstrtol.h: Likewise.
65417
65418         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
65419
65420         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
65421         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
65422         * lib/xtime.h: Likewise.
65423
65424 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65425
65426         * modules/openat (Files): Add lib/fchmodat.c.
65427         Fixes problem reported by Jay Youngman.
65428
65429 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
65430
65431         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
65432         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
65433
65434 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
65435             Bruno Haible  <bruno@clisp.org>
65436
65437         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
65438         and is a script that invokes bison. Tighten the code. Add comments.
65439
65440 2006-08-18  Jim Meyering  <jim@meyering.net>
65441
65442         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
65443         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
65444         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
65445         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
65446
65447 2006-08-18  Bruno Haible  <bruno@clisp.org>
65448
65449         * modules/bison-i18n: New file.
65450         * MODULES.html.sh (Internationalization functions): Add it.
65451
65452 2006-08-18  Bruno Haible  <bruno@clisp.org>
65453
65454         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
65455         sys/statvfs.h. When getmntinfo was found, check its declaration and
65456         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
65457
65458 2006-08-18  Bruno Haible  <bruno@clisp.org>
65459
65460         * m4/bison-i18n.m4: New file, from bison.
65461
65462 2006-08-18  Bruno Haible  <bruno@clisp.org>
65463
65464         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
65465         (ME_DUMMY): Treat "kernfs" as a dummy.
65466         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
65467
65468 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65469
65470         Update from coreutils.
65471
65472         2006-08-15  Jim Meyering  <jim@meyering.net>
65473
65474         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
65475
65476         2006-01-17  Jim Meyering  <jim@meyering.net>
65477
65478         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
65479
65480         2006-01-11  Jim Meyering  <jim@meyering.net>
65481
65482         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
65483         Check for the lchmod function.
65484
65485 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
65486
65487         Update from coreutils.
65488
65489         * lib/__fpending.h: Add copyright notice.
65490         * lib/fprintftime.h: Likewise.
65491         * lib/savedir.c: Use (C) in copyright notice.
65492         * lib/savedir.h: Likewise.
65493
65494         2006-08-15  Jim Meyering  <jim@meyering.net>
65495
65496         * lib/at-func.c: New file, with the logic of all emulated at-functions.
65497         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
65498         in support of the EXPECTED_ERRNO macro.
65499         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
65500         definitions.  Instead, define the appropriate symbols and include
65501         "at-func.c".
65502         * lib/mkdirat.c (mkdirat): Likewise.
65503         * lib/fchmodat.c (fchmodat): Likewise.
65504         (ENOSYS): Remove definition.
65505         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
65506         it.  Don't include "unistd--.h" -- it wasn't ever used.
65507
65508         2006-01-17  Jim Meyering  <jim@meyering.net>
65509
65510         Rewrite fts.c not to change the current working directory,
65511         by using openat, fstatat, fdopendir, etc..
65512
65513         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
65514         (HAVE_OPENAT_SUPPORT): Define.
65515         [_LIBC] (fchdir): Don't undef or define; no longer used.
65516         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
65517         Now, this `function' always succeeds, and consumes its file descriptor
65518         parameter -- so callers must not close such FDs.  Update callers.
65519         (diropen_fd, opendirat, cwd_advance_fd): New functions.
65520         (diropen): Add parameter, SP.  Adjust all callers.
65521         Implement using diropen_fd, rather than open.
65522         (fts_open): Initialize new member, fts_cwd_fd.
65523         Remove fts_rft-setting code.
65524         (fts_close): Close fts_cwd_fd, if necessary.
65525         (__opendir2): Define in terms of opendir or opendirat,
65526         depending on whether the FST_NOCHDIR flag is set.
65527         (fts_build): Since fts_safe_changedir consumes its FD, and since
65528         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
65529         and close the dup'd file descriptor upon failure.
65530         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
65531         (fts_safe_changedir): Tweak semantics to reflect that this function
65532         now calls cwd_advance_fd and hence consumes its FD argument.
65533         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
65534         [struct FTS] (fts_rft): Remove now-unused member.
65535         [struct FTS] (fts_cycle.state): Improve comment.
65536
65537         * lib/openat.c (openat_needs_fchdir): New function.
65538         * lib/openat.h (openat_needs_fchdir): Declare it.
65539
65540 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
65541
65542         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
65543         Problem and fix reported by Pádraig Brady in
65544         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
65545
65546 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65547
65548         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
65549
65550 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65551
65552         * lib/memcoll.c (memcoll): Optimize for the common case where the
65553         arguments are bytewise equal.
65554
65555 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65556
65557         * doc/regexprops-generic.texi: Add a copyright notice.
65558
65559 2006-08-15  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/tmpdir (License): Change to LGPL.
65562
65563 2006-08-15  Bruno Haible  <bruno@clisp.org>
65564
65565         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
65566         module.
65567
65568 2006-08-14  Simon Josefsson  <jas@extundo.com>
65569
65570         * config/srclist.txt: Add gnupload.
65571
65572 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65573
65574         Change copyright notice from LGPL 2 to GPL 2, since that's the
65575         standard form used in the gnulib repository.
65576         * tests/test-lock.c: Likewise.
65577         * tests/test-stdint.c: Likewise.
65578         * tests/test-tls.c: Likewise.
65579
65580         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
65581         prelude-manager.  User shorter URLs for GNU projects, without '?'.
65582         Add copyright notice.
65583
65584         * check-module: Add copyright notice.  Output a copyright
65585         notice if "--version" is specified.
65586         * modules/COPYING: New file.
65587         * tests/test-getaddrinfo.c: Add copyright notice.
65588         * tests/test-verify.c: Likewise.
65589
65590 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65591
65592         Change copyright notice from LGPL 2 to GPL 2, since that's the
65593         standard form used in the gnulib repository.
65594         * lib/lock.c: LGPL -> GPL.
65595         * lib/lock.h: Likewise.
65596         * lib/strnlen1.c: Likewise.
65597         * lib/strnlen1.h: Likewise.
65598         * lib/tls.c: Likewise.
65599         * lib/tls.h: Likewise.
65600         * lib/tmpdir.c: Likewise.
65601
65602         * lib/TODO: Remove; this belongs only in coreutils.
65603
65604 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65605
65606         Add copyright notices to long-enough files that lack them, since
65607         otherwise the files aren't clearly free.  Use the same notice that
65608         getdate.texi already uses.
65609         * doc/alloca-opt.texi: Add copyright notice.
65610         * doc/alloca.texi: Likewise.
65611         * doc/ctime.texi: Likewise.
65612         * doc/functions.texi: Likewise.
65613         * doc/gcd.texi: Likewise.
65614         * doc/gnulib-tool.texi: Likewise.
65615         * doc/inet_ntoa.texi: Likewise.
65616         * doc/visibility.texi: Likewise.
65617
65618         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
65619         * doc/quote.texi: Add copyright notice.
65620
65621         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
65622         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
65623         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
65624         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
65625         is now obsolete, and give a pointer to the Sun list.
65626         Add copyright notice.
65627
65628 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65629
65630         * config/srclistvars.sh: Add copyright notice.
65631
65632 2006-08-14  Eric Blake  <ebb9@byu.net>
65633
65634         Import the following change from libc:
65635
65636         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
65637
65638         Upstream bug 2997.
65639         * lib/misc/error.c: Add space between program name and message if file
65640         name is missing.
65641
65642 2006-08-12  Karl Berry  <karl@gnu.org>
65643
65644         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
65645         remove, these originate in gnulib now.
65646
65647 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65648
65649         * doc/Makefile (standards.info standards.html standards.dvi):
65650         Also depend on make-stds.texi.
65651
65652 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
65653
65654         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
65655         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
65656
65657         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
65658         in wchar_t.  Problem reported by Eric Blake.
65659
65660         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
65661         LEN is smaller than SIZE.  Suggested by Bruno Haible.
65662         Also, help the compiler to keep LEN in a register.
65663
65664 2006-08-11  Eric Blake  <ebb9@byu.net>
65665
65666         * users.txt: Sort.  Add tar.
65667
65668 2006-08-11  Bruno Haible  <bruno@clisp.org>
65669
65670         * users.txt: New file.
65671
65672 2006-08-11  Bruno Haible  <bruno@clisp.org>
65673
65674         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
65675         before <wchar.h>. Needed for OSF/1 and BSD/OS.
65676
65677 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65678
65679         * modules/snprintf (Depends-on): Remove minmax.
65680         (Maintainer): Add self and Bruno.
65681
65682 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65683
65684         * lib/.cppi-disable: Add snprintf.h, socket_.h.
65685         * lib/snprintf.c: Include <errno.h> and <limits.h>.
65686         (EOVERFLOW): Define if the system does not.
65687         Do not include "minmax.h"; it wasn't used.
65688         (snprintf): Don't assume size_t promotes to an unsigned type.
65689         Fix bug when generated string was too long for the buffer: the
65690         buffer's contents are supposed to be the initial prefix of the
65691         output.  Don't assume vasnprintf returns EOVERFLOW if the size
65692         exceeds INT_MAX; do the check ourselves.
65693
65694         Import the following changes from libc:
65695
65696         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
65697
65698         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
65699         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
65700         set wc to the byte which couldn't be converted.
65701         (re_string_reconstruct): Don't clear valid_raw_len before calling
65702         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
65703         tip_context using re_string_context_at.
65704
65705         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
65706
65707         * lib/posix/regex.h: g++ still cannot handled [restrict].
65708
65709         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
65710
65711         * lib/posix/regex.h: Remove special handling for VMS.
65712
65713 2006-08-10  Jim Meyering  <jim@meyering.net>
65714
65715         * modules/same-inode: New module.
65716         * modules/dev-ino: New module.
65717         * modules/cycle-check: Depend on these modules, rather than simply
65718         including their .h files.
65719         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
65720         required via m4/cycle-check.m4.
65721         * modules/same: Depend on new same-inode module, rather than
65722         including same-inode.h.
65723         * modules/chdir-safer: New file.
65724
65725         * modules/chown (Depends-on): Add stat-macros.
65726
65727 2006-08-10  Jim Meyering  <jim@meyering.net>
65728
65729         * m4/cycle-check.m4: New file.
65730         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
65731         * m4/dev-ino.m4, m4/same-inode.m4: New files.
65732
65733 2006-08-10  Eric Blake  <ebb9@byu.net>
65734
65735         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
65736         in from original proposal.
65737
65738 2006-08-10  Eric Blake  <ebb9@byu.net>
65739         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
65740
65741         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
65742         namespace.
65743
65744 2006-08-10  Bruno Haible  <bruno@clisp.org>
65745
65746         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
65747         as well.
65748
65749 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65750
65751         Sync from coreutils.
65752
65753         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
65754
65755         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
65756         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
65757
65758 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * modules/restrict: Remove; no longer needed now that we assume
65761         Autoconf 2.59 or later.
65762         * MODULES.html.sh: Remove 'restrict'.
65763         * modules/argp (Depends-on): Remove 'restrict'.
65764         * modules/base64 (Depends-on): Likewise.
65765         * modules/gc (Depends-on): Likewise.
65766         * modules/getaddrinfo (Depends-on): Likewise.
65767         * modules/glob (Depends-on): Likewise.
65768         * modules/inet_ntop (Depends-on): Likewise.
65769         * modules/inet_pton (Depends-on): Likewise.
65770         * modules/memxor (Depends-on): Likewise.
65771         * modules/regex (Depends-on): Likewise.
65772         * modules/strtok_r (Depends-on): Likewise.
65773         * modules/time_r (Depends-on): Likewise.
65774
65775 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
65776
65777         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
65778         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
65779         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65780         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
65781         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
65782         * m4/memxor.m4 (gl_MEMXOR): Likewise.
65783         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
65784         gl_C_RESTRICT replaced by AC_C_RESTRICT.
65785
65786         Merge from coreutils.
65787         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
65788         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
65789         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
65790         * m4/time_r.m4 (gl_TIME_R): Likewise.
65791
65792 2006-08-09  Karl Berry  <karl@gnu.org>
65793
65794         * config/srclist.txt: no more gettext-tools, per Bruno.
65795
65796 2006-08-08  Eric Blake  <ebb9@byu.net>
65797
65798         * modules/verror: New module.
65799         * MODULES.html.sh: Document it.
65800
65801 2006-08-08  Eric Blake  <ebb9@byu.net>
65802
65803         * lib/verror.h, lib/verror.c: New files.
65804
65805 2006-08-08  Eric Blake  <ebb9@byu.net>
65806
65807         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
65808         verror_at_line output complies with GNU Coding Standards even when
65809         file is NULL.
65810
65811 2006-08-07  Bruno Haible  <bruno@clisp.org>
65812
65813         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
65814         versions of AIX.
65815         Reported by Ralf Wildenhues.
65816
65817 2006-08-07  Bruno Haible  <bruno@clisp.org>
65818
65819         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
65820         in an AC_DEFUN. Needed so that the autoconf snippets can use
65821         AC_REQUIRE.
65822
65823 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65824
65825         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65826         Initialize pkgdata_DATA.
65827         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
65828         overriding it.
65829
65830 2006-08-06  Eric Blake  <ebb9@byu.net>
65831
65832         * lib/error.h: Fold in some upstream changes from glibc.
65833         * lib/error.c: Likewise.
65834
65835 2006-08-04  Bruno Haible  <bruno@clisp.org>
65836
65837         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65838         Make the mostlyclean-local rule depend on mostlyclean-generic.
65839         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
65840
65841 2006-07-31  Bruno Haible  <bruno@clisp.org>
65842
65843         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
65844         <stdlib.h>, <string.h>.
65845
65846 2006-07-30  Bruno Haible  <bruno@clisp.org>
65847
65848         * modules/readlink (License): Change to LGPL.
65849
65850 2006-07-30  Bruno Haible  <bruno@clisp.org>
65851
65852         * modules/javaversion (Makefile.am): Distribute javaversion.java and
65853         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
65854         set PKGDATADIR to point to it.
65855
65856 2006-07-30  Bruno Haible  <bruno@clisp.org>
65857
65858         * modules/csharpexec (configure.ac): Comment out macro invocation.
65859         * modules/javaexec (configure.ac): Likewise.
65860         * modules/javacomp-script (configure.ac): Likewise.
65861
65862         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
65863
65864 2006-07-30  Bruno Haible  <bruno@clisp.org>
65865
65866         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
65867         linked-list.
65868
65869 2006-07-30  Bruno Haible  <bruno@clisp.org>
65870
65871         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
65872
65873 2006-07-30  Bruno Haible  <bruno@clisp.org>
65874
65875         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65876         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
65877         get removed.
65878
65879 2006-07-29  Bruno Haible  <bruno@clisp.org>
65880
65881         Make it possible for gnulib-tool to work with locally modified or
65882         augmented gnulib repositories.
65883         * gnulib-tool (func_usage): Document --local-dir option.
65884         (local_gnulib_dir): New variable.
65885         Handle --local-dir option.
65886         (func_lookup_file): New function.
65887         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
65888         (func_get_description, func_get_filelist, func_get_description,
65889         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
65890         func_get_automake_snippet, func_get_include_directive,
65891         func_get_license, func_get_maintainer): Use func_lookup_file.
65892         (func_import, func_create_testdir): Use func_lookup_file.
65893
65894 2006-07-29  Bruno Haible  <bruno@clisp.org>
65895
65896         * modules/setenv (Depends-on): Add unistd.
65897
65898 2006-07-29  Bruno Haible  <bruno@clisp.org>
65899
65900         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
65901
65902 2006-07-29  Bruno Haible  <bruno@clisp.org>
65903
65904         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
65905
65906 2006-07-29  Bruno Haible  <bruno@clisp.org>
65907
65908         * gnulib-tool (import, update): If there is no Makefile.am, look at
65909         aclocal.m4, instead of bailing out.
65910
65911 2006-07-29  Bruno Haible  <bruno@clisp.org>
65912
65913         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
65914         Categorize the options by when they are useful.
65915
65916 2006-07-29  Bruno Haible  <bruno@clisp.org>
65917
65918         * gnulib-tool (func_usage): Document option --no-libtool.
65919         Handle option --no-libtool.
65920         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
65921         for changed semantics of $libtool variable.
65922         (func_import): Likewise. If libtool is not used, show this through
65923         an option --no-libtool.
65924         (func_create_testdir): Update.
65925
65926 2006-07-29  Bruno Haible  <bruno@clisp.org>
65927
65928         * gnulib-tool (func_import): Extend error message about missing
65929         --doc-base.
65930
65931 2006-07-29  Bruno Haible  <bruno@clisp.org>
65932
65933         * gnulib-tool (func_import): Don't create the $docbase directory if
65934         there is no file to store there.
65935
65936 2006-07-29  Bruno Haible  <bruno@clisp.org>
65937
65938         * gnulib-tool (autoconf_minversion): If a --dir option is given and
65939         relevant, look for configure.ac there, not in the current directory.
65940         Also use a simple search for AC_PREREQ, not "autoconf --trace".
65941
65942 2006-07-29  Bruno Haible  <bruno@clisp.org>
65943
65944         * gnulib-tool (SORT): New variable.
65945         (func_usage): Undocument --assume-autoconf option.
65946         Remove --assume-autoconf option handling.
65947         (autoconf_minversion): Determine from the contents of configure.ac.
65948         (func_import): Remove autoconf_minversion handling.
65949         Suggested by Eric Blake.
65950
65951 2006-07-29  Bruno Haible  <bruno@clisp.org>
65952
65953         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
65954
65955 2006-07-29  Bruno Haible  <bruno@clisp.org>
65956
65957         * config/srclist.txt (*setenv.[ch]): Remove rules.
65958
65959 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65960
65961         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
65962
65963 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65964
65965         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
65966         arpa/inet.h.
65967
65968 2006-07-28  Simon Josefsson  <jas@extundo.com>
65969
65970         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
65971         * modules/inet_pton (Depends-on): Likewise.
65972
65973 2006-07-28  Simon Josefsson  <jas@extundo.com>
65974
65975         * m4/netinet_in_h.m4: New file.
65976
65977 2006-07-28  Simon Josefsson  <jas@extundo.com>
65978
65979         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
65980         #include's.
65981
65982 2006-07-28  Simon Josefsson  <jas@extundo.com>
65983
65984         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
65985         #include's.
65986
65987 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
65988
65989         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
65990         setgid on directories only if they set these bits.
65991         * lib/modechange.h: Remove obsolete comment about masks.
65992
65993 2006-07-28  Eric Blake  <ebb9@byu.net>
65994
65995         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
65996         macro expansion.
65997
65998 2006-07-28  Bruno Haible  <bruno@clisp.org>
65999
66000         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
66001
66002 2006-07-28  Bruno Haible  <bruno@clisp.org>
66003
66004         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
66005
66006 2006-07-28  Bruno Haible  <bruno@clisp.org>
66007
66008         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
66009         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
66010         Define fallbacks.
66011         Avoids link error on FreeBSD 4.x.
66012         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
66013
66014         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
66015         encoding.
66016         * lib/mbswidth.c (iswcntrl): Likewise.
66017
66018 2006-07-27  Bruno Haible  <bruno@clisp.org>
66019
66020         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
66021         test.
66022
66023 2006-07-27  Bruno Haible  <bruno@clisp.org>
66024
66025         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
66026         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
66027         defined.
66028
66029 2006-07-26  Eric Blake  <ebb9@byu.net>
66030
66031         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
66032
66033 2006-07-26  Eric Blake  <ebb9@byu.net>
66034
66035         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
66036         like mingw that lack mkstemp.
66037         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
66038         avoid compilation warning on mingw.
66039
66040 2006-07-26  Bruno Haible  <bruno@clisp.org>
66041
66042         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
66043         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
66044         INT_FAST*_MIN, INTPTR_MIN.
66045
66046 2006-07-25  Bruno Haible  <bruno@clisp.org>
66047
66048         * modules/version-etc (Depends-on): Add stdarg.
66049
66050 2006-07-25  Bruno Haible  <bruno@clisp.org>
66051
66052         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
66053         complex commands.
66054
66055 2006-07-25  Bruno Haible  <bruno@clisp.org>
66056
66057         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
66058         defined in <stdarg.h> or config.h.
66059
66060 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66061
66062         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
66063         (gl_STDIO_SAFER): Remove.
66064
66065 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
66066
66067         * MODULES.html.sh (File stream based Input/Output):
66068         Add fopen-safer, tmpfile-safer; remove stdio-safer.
66069         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
66070         * modules/fopen-safer, modules/tmpfile-safer: New files.
66071         * modules/stdio-safer: Remove.
66072
66073 2006-07-24  Bruno Haible  <bruno@clisp.org>
66074
66075         * modules/tmpdir: New file.
66076         * MODULES.html.sh (File system functions): Add it.
66077
66078 2006-07-24  Bruno Haible  <bruno@clisp.org>
66079
66080         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
66081         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
66082
66083 2006-07-24  Bruno Haible  <bruno@clisp.org>
66084
66085         * modules/clean-temp: New file.
66086
66087 2006-07-24  Bruno Haible  <bruno@clisp.org>
66088
66089         * m4/tmpdir.m4: New file, from GNU gettext.
66090
66091 2006-07-24  Bruno Haible  <bruno@clisp.org>
66092
66093         * lib/tmpdir.h: New file, from GNU gettext.
66094         * lib/tmpdir.c: New file, from GNU gettext.
66095
66096 2006-07-24  Bruno Haible  <bruno@clisp.org>
66097
66098         * lib/clean-temp.h: New file, from GNU gettext.
66099         * lib/clean-temp.c: New file, from GNU gettext.
66100
66101 2006-07-23  Eric Blake  <ebb9@byu.net>
66102
66103         * modules/stdio-safer (Files): Add tmpfile-safer.c.
66104         (Depends-on): Add binary-io.
66105
66106 2006-07-23  Eric Blake  <ebb9@byu.net>
66107
66108         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
66109
66110 2006-07-23  Eric Blake  <ebb9@byu.net>
66111
66112         * lib/tmpfile-safer.c: New file.
66113         * lib/stdio-safer.h (fopen_safer): Add prototype.
66114         * lib/stdio--.h (tmpfile): Make safer.
66115
66116 2006-07-23  Bruno Haible  <bruno@clisp.org>
66117
66118         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
66119         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
66120         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
66121         gl_linked_remove_at): Use it.
66122
66123 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66124         and Simon Josefsson <jas@extundo.com>
66125
66126         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
66127
66128         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
66129
66130 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66131
66132         * modules/close-stream: New file.
66133         * modules/closeout (Description): Make it clear that it exits
66134         with a diagnostic on error.
66135         (Depends-on): Add close-stream.  Remove fpending, stdbool.
66136         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
66137
66138 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66139
66140         * m4/close-stream.m4: New file.
66141
66142 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66143
66144         * lib/close-stream.c, lib/close-stream.h: New files.
66145
66146 2006-07-22  Bruno Haible  <bruno@clisp.org>
66147
66148         Merge from GNU gettext 0.15.
66149
66150         2006-05-01  Bruno Haible  <bruno@clisp.org>
66151
66152                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
66153
66154         2006-07-22  Bruno Haible  <bruno@clisp.org>
66155
66156                 * modules/javaversion: New file.
66157                 * MODULES.html.sh (Java): Add javaversion.
66158
66159         2006-03-12  Bruno Haible  <bruno@clisp.org>
66160
66161                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
66162
66163         2005-12-04  Bruno Haible  <bruno@clisp.org>
66164
66165                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
66166                 (untested).
66167
66168         2006-06-21  Bruno Haible  <bruno@clisp.org>
66169
66170                 Avoid warnings from recent versions of mcs.
66171                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
66172                 -o, -L, -r any more. Use options documented since mcs-1.0
66173                 instead. Similarly for -g.
66174
66175         2005-12-04  Bruno Haible  <bruno@clisp.org>
66176
66177                 * build-aux/csharpcomp.sh.in: Suffix for resources is
66178                 .resources, not .resource.
66179
66180         2005-07-09  Bruno Haible  <bruno@clisp.org>
66181
66182                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
66183                 add a .dll suffix.
66184                 Reported by Mark Junker <mjscod@gmx.de>.
66185
66186         2006-07-22  Bruno Haible  <bruno@clisp.org>
66187
66188                 * modules/gettext: Upgrade to gettext-0.15.
66189                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
66190                 m4/visibility.m4.
66191                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
66192
66193 2006-07-22  Bruno Haible  <bruno@clisp.org>
66194
66195         Merge from GNU gettext 0.15.
66196
66197         2006-03-25  Bruno Haible  <bruno@clisp.org>
66198
66199                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
66200
66201         2006-07-21  Bruno Haible  <bruno@clisp.org>
66202
66203                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
66204                 "1.1".
66205
66206         2006-05-09  Bruno Haible  <bruno@clisp.org>
66207
66208                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
66209                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
66210                 for the conftestver execution.
66211
66212         2006-05-01  Bruno Haible  <bruno@clisp.org>
66213
66214                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
66215                 optional target-version argument. Verify that the compiler
66216                 groks source of the specified source-version, or add -source
66217                 option as necessary. Verify that the compiler produces
66218                 bytecode in the specified target-version, or add -target and
66219                 -source options as necessary. Make the result of the test
66220                 available as variable CONF_JAVAC. Also log error output in
66221                 config.log.
66222
66223         2006-03-11  Bruno Haible  <bruno@clisp.org>
66224
66225                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
66226
66227         2006-05-09  Bruno Haible  <bruno@clisp.org>
66228
66229                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
66230                 CLASSPATH_SEPARATOR to a semicolon.
66231
66232         2006-03-12  Bruno Haible  <bruno@clisp.org>
66233
66234                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
66235                 available as variable CONF_JAVA, for subsequent autoconf
66236                 tests. Also log error output in config.log.
66237
66238         2006-07-19  Bruno Haible  <bruno@clisp.org>
66239
66240                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
66241                 that getline works on glibc2 systems. Needed to avoid trouble
66242                 in relocatable.c.
66243                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
66244
66245         2005-12-04  Bruno Haible  <bruno@clisp.org>
66246
66247                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
66248                 launcher (untested).
66249
66250         2005-12-04  Bruno Haible  <bruno@clisp.org>
66251
66252                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
66253
66254         2006-07-22  Bruno Haible  <bruno@clisp.org>
66255
66256                 * gettext.m4: Update from GNU gettext-0.15.
66257                 * nls.m4: Likewise.
66258                 * po.m4: Likewise.
66259                 * inttypes-pri.m4: Likewise.
66260                 * inttypes-h.m4: Renamed from inttypes.m4.
66261                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
66262
66263 2006-07-22  Bruno Haible  <bruno@clisp.org>
66264
66265         Merge from GNU gettext 0.15.
66266
66267         2005-07-05  Bruno Haible  <bruno@clisp.org>
66268
66269                 * printf-args.c (printf_fetchargs): Work around broken
66270                 definition of wint_t on mingw.
66271
66272         2005-02-12  Bruno Haible  <bruno@clisp.org>
66273
66274                 * xallocsa.h: Add extern "C" for C++.
66275
66276         2006-05-17  Bruno Haible  <bruno@clisp.org>
66277
66278                 Cygwin portability.
66279                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
66280
66281         2006-04-30  Bruno Haible  <bruno@clisp.org>
66282
66283                 * progreloc.c: Include <mach-o/dyld.h> if available.
66284                 (find_executable): Use _NSGetExecutablePath when possible.
66285
66286         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
66287
66288                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
66289                 function.
66290
66291         2005-12-29  Bruno Haible  <bruno@clisp.org>
66292
66293                 * progreloc.c (set_program_name_and_installdir): Fix
66294                 compilation error.
66295
66296         2005-12-04  Bruno Haible  <bruno@clisp.org>
66297
66298                 Cygwin portability.
66299                 * progreloc.c: Include <windows.h> also on Cygwin.
66300                 (find_executable): Add support for Cygwin.
66301                 (set_program_name_and_installdir): Handle also platforms with
66302                 nonempty EXEEXT.
66303
66304         2006-07-11  Bruno Haible  <bruno@clisp.org>
66305
66306                 * javacomp.c: Fix a comment.
66307                 Reported by Jim Meyering.
66308
66309         2006-04-30  Bruno Haible  <bruno@clisp.org>
66310
66311                 * javacomp.h (compile_java_class): Add source_version,
66312                 target_version arguments.
66313                 * javacomp.c: Rewritten to choose only a compiler that
66314                 respects the specified source_version and target_version.
66315
66316         2006-06-27  Bruno Haible  <bruno@clisp.org>
66317
66318                 Assume correct S_ISDIR macro.
66319                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
66320
66321         2006-07-22  Bruno Haible  <bruno@clisp.org>
66322
66323                 * javaversion.h: New file, from GNU gettext.
66324                 * javaversion.c: New file, from GNU gettext.
66325                 * javaversion.java: New file, from GNU gettext.
66326                 * javaversion.class: New file, from GNU gettext.
66327
66328         2006-05-17  Bruno Haible  <bruno@clisp.org>
66329
66330                 Cygwin portability.
66331                 * javaexec.c (execute_java_class): Test for jview program
66332                 also on Cygwin.
66333
66334         2006-04-09  Bruno Haible  <bruno@clisp.org>
66335
66336                 * fatal-signal.c: Don't include string.h.
66337                 (at_fatal_signal): Use a copying loop instead of memcpy.
66338
66339         2005-12-04  Bruno Haible  <bruno@clisp.org>
66340
66341                 * csharpexec.c: Add support for 'clix' launcher (untested).
66342                 (execute_csharp_using_sscli): New function.
66343                 (execute_csharp_program): Call it.
66344
66345         2006-06-21  Bruno Haible  <bruno@clisp.org>
66346
66347                 Avoid warnings from recent versions of mcs.
66348                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
66349                 -o, -L, -r any more. Use options documented since mcs-1.0
66350                 instead. Similarly for -g.
66351
66352         2005-07-09  Bruno Haible  <bruno@clisp.org>
66353
66354                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
66355                 add a .dll suffix.
66356                 Reported by Mark Junker <mjscod@gmx.de>.
66357
66358         2006-06-17  Bruno Haible  <bruno@clisp.org>
66359
66360                 * config.charset: Update for NetBSD 3.0.
66361
66362         2006-05-17  Bruno Haible  <bruno@clisp.org>
66363
66364                 Cygwin portability.
66365                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
66366
66367         2006-05-16  Bruno Haible  <bruno@clisp.org>
66368
66369                 * localcharset.c [CYGWIN]: Include <windows.h>.
66370                 (get_charset_aliases): For Cygwin, return the same CPxxx
66371                 aliases list as under WIN32.
66372                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
66373                 the environment variables. Fall back to GetACP().
66374
66375         2006-04-05  Bruno Haible  <bruno@clisp.org>
66376
66377                 * config.charset: Update Juan Manuel Guerrero's address.
66378
66379         2005-02-12  Bruno Haible  <bruno@clisp.org>
66380
66381                 * allocsa.h: Add extern "C" for C++.
66382
66383         2005-02-10  Bruno Haible  <bruno@clisp.org>
66384
66385                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
66386                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
66387
66388         2006-07-22  Bruno Haible  <bruno@clisp.org>
66389
66390                 * gettext.h: Update to GNU gettext-0.15.
66391
66392 2006-07-22  Bruno Haible  <bruno@clisp.org>
66393
66394         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
66395         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
66396         lib-prefix.m4, longdouble.m4, ssize_t.m4.
66397
66398 2006-07-21  Eric Blake  <ebb9@byu.net>
66399
66400         * modules/stdlib-safer: New file.
66401         * MODULES.html.sh (File stream based Input/Output): Add
66402         stdlib-safer.
66403
66404 2006-07-21  Eric Blake  <ebb9@byu.net>
66405
66406         * lib/stdlib-safer.h: New file from coreutils, required by
66407         stdlib--.h.
66408
66409 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
66410
66411         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
66412
66413 2006-07-20  Bruno Haible  <bruno@clisp.org>
66414
66415         * gnulib-tool: Recognize new option --assume-autoconf.
66416         (autoconf_minversion): New variable.
66417         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
66418
66419 2006-07-20  Bruno Haible  <bruno@clisp.org>
66420
66421         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
66422
66423 2006-07-19  Derek R. Price  <derek@ximbiot.com>
66424
66425         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
66426         Reindent and repaginate.
66427
66428 2006-07-19  Derek Price  <derek@ximbiot.com>
66429
66430         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
66431         Correct grammar.
66432
66433 2006-07-17  Bruno Haible  <bruno@clisp.org>
66434
66435         * modules/list: New file.
66436         * modules/array-list: New file.
66437         * modules/carray-list, modules/carray-list-tests: New files.
66438         * modules/linked-list, modules/linked-list-tests: New files.
66439         * modules/avltree-list, modules/avltree-list-tests: New files.
66440         * modules/rbtree-list, modules/rbtree-list-tests: New files.
66441         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
66442         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
66443         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
66444         * modules/oset: New file.
66445         * modules/array-oset: New file.
66446         * modules/avltree-oset, modules/avltree-oset-tests: New files.
66447         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
66448         * tests/test-carray_list.c: New file.
66449         * tests/test-linked_list.c: New file.
66450         * tests/test-avltree_list.c: New file.
66451         * tests/test-rbtree_list.c: New file.
66452         * tests/test-linkedhash_list.c: New file.
66453         * tests/test-avltreehash_list.c: New file.
66454         * tests/test-rbtreehash_list.c: New file.
66455         * tests/test-avltree_oset.c: New file.
66456         * tests/test-rbtree_oset.c: New file.
66457         * MODULES.html.sh (Container data structures): New section.
66458
66459 2006-07-17  Bruno Haible  <bruno@clisp.org>
66460
66461         * m4/gl_list.m4: New file.
66462
66463 2006-07-17  Bruno Haible  <bruno@clisp.org>
66464
66465         * lib/gl_list.h: New file.
66466         * lib/gl_list.c: New file.
66467         * lib/gl_array_list.h: New file.
66468         * lib/gl_array_list.c: New file.
66469         * lib/gl_carray_list.h: New file.
66470         * lib/gl_carray_list.c: New file.
66471         * lib/gl_linked_list.h: New file.
66472         * lib/gl_linked_list.c: New file.
66473         * lib/gl_anylinked_list1.h: New file.
66474         * lib/gl_anylinked_list2.h: New file.
66475         * lib/gl_avltree_list.h: New file.
66476         * lib/gl_avltree_list.c: New file.
66477         * lib/gl_anyavltree_list1.h: New file.
66478         * lib/gl_anyavltree_list2.h: New file.
66479         * lib/gl_rbtree_list.h: New file.
66480         * lib/gl_rbtree_list.c: New file.
66481         * lib/gl_anyrbtree_list1.h: New file.
66482         * lib/gl_anyrbtree_list2.h: New file.
66483         * lib/gl_anytree_list1.h: New file.
66484         * lib/gl_anytree_list2.h: New file.
66485         * lib/gl_linkedhash_list.h: New file.
66486         * lib/gl_linkedhash_list.c: New file.
66487         * lib/gl_anyhash_list1.h: New file.
66488         * lib/gl_anyhash_list2.h: New file.
66489         * lib/gl_avltreehash_list.h: New file.
66490         * lib/gl_avltreehash_list.c: New file.
66491         * lib/gl_rbtreehash_list.h: New file.
66492         * lib/gl_rbtreehash_list.c: New file.
66493         * lib/gl_anytreehash_list1.h: New file.
66494         * lib/gl_anytreehash_list2.h: New file.
66495
66496         * lib/gl_oset.h: New file.
66497         * lib/gl_oset.c: New file.
66498         * lib/gl_array_oset.h: New file.
66499         * lib/gl_array_oset.c: New file.
66500         * lib/gl_avltree_oset.h: New file.
66501         * lib/gl_avltree_oset.c: New file.
66502         * lib/gl_rbtree_oset.h: New file.
66503         * lib/gl_rbtree_oset.c: New file.
66504         * lib/gl_anytree_oset.h: New file.
66505
66506 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66507
66508         * m4/mkancesdirs.m4: New file.
66509         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
66510         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
66511         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
66512         it.
66513
66514 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66515
66516         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
66517         * lib/mkancesdirs.h: New files.
66518         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
66519         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
66520         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
66521         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
66522         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
66523         callers changed.  Revamp internals significantly, by not
66524         attempting to create directories that are temporarily more
66525         permissive than the final results.  Do not attempt to use
66526         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
66527         This removes some race conditions, fixes some bugs, and simplifies
66528         things.  Use new dirchownmod function to do owner and mode changes.
66529         * lib/mkdir-p.h: Likewise.
66530         * lib/modechange.c (octal_to_mode): New function.
66531         (struct mode_change): New member mentioned.
66532         (make_node_op_equals): New arg mentioned.  All callers changed.
66533         (mode_compile): Keep track of which mode bits the user has explicitly
66534         mentioned.
66535         (mode_adjust): New arg DIR, so that we implement the X op correctly.
66536         New arg PMODE_BITS, to keep track of which mode bits the user
66537         mentioned; it treats S_ISUID and S_ISGID speciall.
66538         All callers changed.
66539         * lib/modechange.h: Likewise.
66540
66541 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
66542
66543         * MODULES.html.sh: Add mkancestors.
66544         * modules/mkancesdirs: New module.
66545         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
66546         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
66547         The chdir-safer and afs files are now orphans; I'll remove them
66548         unless someone speaks up.
66549         Add lib/dirchownmod.c, lib/dirchownmod.h.
66550         (Depends-on): Remove alloca, chown, save-cwd, dirname.
66551         Add lchown, mkancesdirs.
66552         (Maintainer): Add self.
66553
66554 2006-07-15  Karl Berry  <karl@gnu.org>
66555
66556         * gnulib-tool: help message wording/arrangement.
66557
66558 2006-07-14  Simon Josefsson  <jas@extundo.com>
66559
66560         * doc/gnulib.texi (Libtool and Windows): New section.
66561
66562 2006-07-12  Simon Josefsson  <jas@extundo.com>
66563
66564         * modules/gendocs (License): Fix license, approved by Karl.
66565
66566 2006-07-12  Eric Blake  <ebb9@byu.net>
66567
66568         * MODULES.html.sh: Add gendocs.
66569
66570 2006-07-11  Eric Blake  <ebb9@byu.net>
66571
66572         * modules/fdl: New module, to install doc/fdl.texi.
66573         * MODULES.html.sh: Add new section for documentation modules.
66574         * gnulib-tool: Avoid space-tab.
66575         (--doc-base): New option, to manage files from doc.
66576
66577 2006-07-11  Eric Blake  <ebb9@byu.net>
66578
66579         * m4/absolute-header.m4: Fix comments to match recent change.
66580
66581 2006-07-11  Eric Blake  <ebb9@byu.net>
66582
66583         * gnulib-tool: List --doc-base before --tests-base.
66584
66585 2006-07-11  Derek R. Price  <derek@ximbiot.com>
66586
66587         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
66588
66589 2006-07-11  Bruno Haible  <bruno@clisp.org>
66590
66591         * README: Mention where to put documentation.
66592
66593 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66594
66595         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
66596
66597 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66598
66599         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
66600         to stdint.m4.
66601
66602 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
66603
66604         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
66605         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
66606         "no/such/file/stdint.h" when there is no such file, so that
66607         the resulting C code can be parsed by dodgy compilers.
66608         Problems reported by Bob Proulx.
66609
66610 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66611
66612         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
66613         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66614         macros into the GNU _D_EXACT_NAMLEN.
66615         * lib/savedir.c:  Likewise.
66616         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
66617
66618 2006-07-10  Derek R. Price  <derek@ximbiot.com>
66619         and Paul Eggert  <eggert@cs.ucla.edu>
66620
66621         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
66622         * m4/savedir.m4:
66623         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
66624         macros into the GNU _D_EXACT_NAMLEN.
66625
66626 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66627
66628         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
66629         around the absolute name, to work around a problem with the HP-UX
66630         11.23 native C compiler, reported by Bob Proulx.
66631
66632 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66633
66634         * doc/maintain.texi, make-stds.texi: Sync from
66635         <http://savannah.gnu.org/projects/gnustandards>.
66636
66637 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
66638
66639         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
66640
66641 2006-07-09  Jim Meyering  <jim@meyering.net>
66642
66643         * m4/glob.m4: Remove a doubled word in a comment.
66644
66645 2006-07-09  Jim Meyering  <jim@meyering.net>
66646
66647         * lib/argp-pv.c: Remove a doubled word in a comment.
66648         * lib/check-version.c (check_version): Likewise.
66649         * lib/javacomp.c (compile_java_class): Likewise.
66650
66651 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66652
66653         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
66654         for the benefit of people using Autoconf 2.60.  If you want to
66655         support older Autoconf versions you can copy m4/onceonly_2_57.m4
66656         (or m4/onceonly.m4, if pre-2.57) manually.
66657
66658 2006-07-08  Jim Meyering  <jim@meyering.net>
66659
66660         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
66661         comment.
66662         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
66663         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
66664         comment.
66665
66666 2006-07-08  Jim Meyering  <jim@meyering.net>
66667
66668         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
66669
66670 2006-07-07  Simon Josefsson  <jas@extundo.com>
66671
66672         * tests/test-crc.c: Change expected crc value, the test vector
66673         were probably computed using the old broken crc.c?
66674
66675 2006-07-06  Simon Josefsson  <jas@extundo.com>
66676
66677         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
66678         now the canonical place for the M4 file).
66679
66680         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
66681         from the sys_socket dependency now.
66682
66683         * modules/inet_pton (Files): Ditto.
66684
66685         * modules/inet_ntop (Files): Ditto.
66686
66687 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
66688
66689         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
66690         not gl_PREREQ_GETUSERSHELL.
66691
66692 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66693
66694         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
66695         with only one argument, for Autoconf 2.60.
66696         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
66697         expand to nothing, so add a shell command to avoid syntax error.
66698         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
66699
66700 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66701
66702         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
66703
66704 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66705
66706         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
66707         no longer needed.  Check for isblank decl.
66708         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
66709         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
66710         of existence.
66711
66712 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66713
66714         * lib/getloadavg.c: Use __VMS, not VMS.
66715         * lib/getopt.c: Likewise.
66716         * lib/getpagesize.h: Likewise.
66717         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
66718         and probably does not work.
66719
66720 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
66721
66722         * lib/.cppi-disable: Add wcwidth.
66723         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
66724         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
66725         (ISGRAPH): Remove.  All uses changed to isgraph.
66726         (FOLD) [!defined _LIBC]: Remove special case.
66727         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
66728         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
66729         HAVE_ISBLANK.
66730         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
66731         case.
66732
66733 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
66734
66735         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
66736         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
66737         brackets.  Other minor changes to suppress some compiler
66738         warnings.
66739
66740 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66741         and Paul Eggert  <eggert@cs.ucla.edu>
66742
66743         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
66744         of invoking obsolescent AC_HEADER_DIRENT macro.
66745         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
66746         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
66747         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
66748         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
66749         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
66750         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
66751         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
66752         * m4/readdir.m4: Remove; no longer needed.
66753
66754 2006-07-06  Derek R. Price  <derek@ximbiot.com>
66755         and Paul Eggert  <eggert@cs.ucla.edu>
66756
66757         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
66758         Don't worry about this obsolete case any more.
66759         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
66760         directories.
66761         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
66762         worry about this obsolete case any more.
66763         * lib/fts.c: Likewise.
66764         * lib/getcwd.c: Likewise.
66765         * lib/glob.h: Likewise.
66766         * lib/savedir.c: Likewise.
66767
66768 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66769
66770         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
66771         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
66772         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
66773         needed.
66774         All uses removed.
66775         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66776         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66777         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
66778         needed.
66779         * m4/getdate.m4 (gl_GETDATE): Likewise.
66780         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66781         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66782         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66783         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66784         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
66785         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66786         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
66787         needed.
66788
66789 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
66790
66791         * lib/memcasecmp.c: Include <limits.h>.
66792         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
66793         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
66794         Don't assume isdigit succeeds only on '0' through '9'.
66795
66796 2006-07-05  Eric Blake  <ebb9@byu.net>
66797
66798         * modules/getaddrinfo (Depends-on): Add snprintf.
66799
66800 2006-07-05  Eric Blake  <ebb9@byu.net>
66801
66802         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
66803         to avoid 'header present but could not be compiled' on cygwin.
66804
66805 2006-07-05  Eric Blake  <ebb9@byu.net>
66806
66807         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
66808         missing from netdb.h.
66809         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
66810
66811 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66812
66813         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
66814         no longer needed.
66815         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
66816         * m4/getdate.m4 (gl_GETDATE): Likewise.
66817         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
66818         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
66819         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
66820         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
66821         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
66822
66823 2006-07-05  Derek R. Price  <derek@ximbiot.com>
66824
66825         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
66826         All uses of is_space replaced by isspace.
66827         * lib/exit.h: Don't talk about STDC_HEADERS.
66828         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
66829         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
66830         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
66831         replaced by isprint etc.
66832         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
66833         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66834         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
66835         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
66836         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
66837         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
66838
66839 2006-07-05  Bruno Haible  <bruno@clisp.org>
66840
66841         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
66842         the function exists, before testing against AIX.
66843         Reported by Martin Lambers <marlam@marlam.de>.
66844
66845 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66846
66847         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
66848         From Mark D. Baushke.
66849
66850 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
66851
66852         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
66853         to the absolute name, not just one, to bypass Sun C 5.8's
66854         "warning: #include of /usr/include/... may be non-portable".
66855
66856 2006-07-04  Eric Blake  <ebb9@byu.net>
66857
66858         * modules/dirname-tests: New test module.
66859         * tests/test-dirname.c: New file, replacing dirname.c
66860         TEST_DIRNAME section that was recently deleted.
66861
66862 2006-07-04  Bruno Haible  <bruno@clisp.org>
66863
66864         Assume ANSI C header files and <ctype.h> functions.
66865         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
66866         (mbsnwidth): Use isprint, iscntrl instead.
66867
66868 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66869
66870         Merge from coreutils.
66871         * MODULES.html.sh: Add xstrtold.
66872         * modules/xstrtold: New file.
66873         * modules/cycle-check (Files): Add lib/same-inode.h.
66874         * modules/dirname (Files): Add m4/double-slash-root.m4.
66875         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
66876         * modules/mkdir-p (Files): Add lib/same-inode.h.
66877         * modules/same (Files): Add lib/same-inode.h.
66878
66879 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66880
66881         * m4/absolute-header.m4: Renamed from full-header-path.m4.
66882         This is to keep the terminology clean; POSIX talks about
66883         "absolute pathnames", not "full pathnames", but the GNU
66884         Coding Standards say to use "path" for something else;
66885         so use "absolute" to keep both sides happy.
66886         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
66887         Set gl_absolute_header, not gl_full_header_path.
66888         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
66889         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
66890         All uses changed.
66891
66892         Merge from coreutils.
66893
66894         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66895
66896         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
66897         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
66898         want to require the building of c-strtod.o.
66899         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
66900         needs -lm directly.
66901         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
66902
66903         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
66906         --as-needed option if available.  Problem reported by Albert Chin in
66907         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
66908         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
66909         cc merely issues a bunch of annoying warnings for --as-needed
66910         (this problem was reported by Bob Proulx).  Also, try linking with
66911         -lm to detect a bug in binutils 2.16 (this problem was reported
66912         by Ralf Wildenhues).
66913
66914         2006-06-18  Jim Meyering  <jim@meyering.net>
66915
66916         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
66917         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
66918         macro.
66919         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
66920         also check for glibc-2.4's abort-inducing bug.
66921
66922         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
66923         Low-probability clean-up should be to use rmdir to get rid of
66924         the just-created directory, not unlink.
66925
66926         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
66927         configure fail, and request a bug report to inform us about it.
66928         Add a comment that, barring reports to the contrary, in 2007 we'll
66929         assume ftruncate is universally available.
66930
66931         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66932
66933         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
66934
66935         2006-03-12  Jim Meyering  <jim@meyering.net>
66936
66937         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
66938         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
66939         * m4/same.m4 (gl_SAME): Likewise.
66940         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
66941
66942         2006-03-11  Eric Blake  <ebb9@byu.net>
66943
66944         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
66945         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
66946         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
66947         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
66948
66949 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
66950
66951         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
66952         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
66953         reported by Mark D. Baushke, one in
66954         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
66955
66956         Merge from coreutils.
66957
66958         * lib/.cppi-disable: Add stdint_.h.
66959         * lib/.cvsignore: Add stdint.h.
66960
66961         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
66962
66963         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
66964         both double and long double versions.
66965         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
66966         * lib/xstrtold.c: New file.
66967         * lib/xstrtod.h (xstrtold): New decl.
66968
66969         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
66970
66971         * lib/filemode.c (setst): Remove.
66972         (strmode): Rewrite to avoid setst.  This makes the code shorter,
66973         (arguably) clearer, and the generated code is a bit smaller on my
66974         Debian GNU/Linux stable x86 host.
66975
66976         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
66977
66978         * lib/filemode.c: Include "filemode.h" first, to test the interface.
66979         Assume that filemode.h includes sys/types.h and sys/stat.h.
66980         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
66981         (ftypelet): Reorder to put common cases first, for efficiency.
66982         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
66983         to do 'M'.
66984         (strmode): Renamed from mode_string, and now stores 12 bytes instead
66985         of 10, for compatibility with FreeBSD.  All callers changed.
66986         (filemodestring): Now stores 12 bytes instead of 10, and sets file
66987         types that can't be deduced solely from st_mode.  First arg is now a
66988         const pointer.
66989         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
66990         (strmode): Renamed from mode_string.
66991         (filemodestring): New decl.
66992         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
66993         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
66994         needed.
66995         (S_ISPORT, S_ISWHT): New macros, if not already defined.
66996
66997         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
66998
66999         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
67000         fsusage.h now does that.  Include fsusage.h first, to test interface.
67001         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
67002         at most one method (the old code could have generated decls that
67003         didn't conform to C89, not that this was ever exercised).
67004         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
67005
67006         2006-03-19  Jim Meyering  <jim@meyering.net>
67007
67008         Work even in a chroot where d_ino values for entries in "/"
67009         don't match the stat.st_ino values for the same names.
67010         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
67011         number, iterate through all entries again, using lstat instead.
67012         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
67013         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
67014
67015         * lib/getcwd.c (__getcwd): Clarify a comment.
67016         Use memcpy in place of a call to strcpy.
67017
67018         2006-03-12  Jim Meyering  <jim@meyering.net>
67019
67020         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
67021         matches that of the current directory (which we're about to chdir ".."
67022         out of), then save the dev-ino of the parent, instead.
67023
67024         * lib/same-inode.h (SAME_INODE): New file/macro.
67025         * lib/chdir-safer.c (SAME_INODE): Remove definition.
67026         Include "same-inode.h", instead.
67027         * lib/same.c: Likewise.
67028         * lib/cycle-check.h: Include "same-inode.h".
67029         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
67030         * lib/cycle-check.c (SAME_INODE): Remove definition.
67031         * lib/root-dev-ino.h: Include "same-inode.h".
67032
67033         2006-03-11  Eric Blake  <ebb9@byu.net>
67034
67035         * lib/same.c (same_name): s/base_name/last_component/
67036         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
67037         * lib/filenamecat.c (file_name_concat): Likewise.
67038
67039         2006-03-11  Eric Blake  <ebb9@byu.net>,
67040                     Paul Eggert  <eggert@cs.ucla.edu>
67041
67042         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
67043         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
67044         drive prefix.
67045         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
67046         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
67047         (last_component): New method.
67048         * lib/dirname.c (dir_len): Determine when drive letters need a
67049         subsequent slash.  Preserve // when it is special.
67050         (dir_name): Don't append dot when drive letter is absolute.
67051         [TEST_DIRNAME]: Move into a full-blown gnulib test.
67052         * lib/basename.c (base_name): New semantics - malloc the result.
67053         Preserve // when it is special.  Preserve relative files that look
67054         like drive letters.
67055         (base_len): Preserve // when it is special.
67056         (last_component): New method, similar to old base_name semantics.
67057         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
67058         base_name.  Strip redundant slashes from ///.
67059
67060 2006-07-03  Jim Meyering  <jim@meyering.net>
67061
67062         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
67063         macro is used before the first cycle_check call.
67064
67065 2006-07-03  Eric Blake  <ebb9@byu.net>
67066
67067         * modules/dirname (Depends-on): Add xstrndup.
67068
67069 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67070
67071         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
67072         test cases, so that config.log is a bit easier to follow.
67073
67074 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
67075
67076         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
67077         both are 64 bits, since this seems to be the tradition, and this
67078         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
67079         we ever run into a host that prefers long long to long in this
67080         case, we'll need another configure-time test.  Problem reported by
67081         Jim Meyering.
67082
67083 2006-07-02  Eric Blake  <ebb9@byu.net>
67084
67085         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
67086
67087 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67088
67089         * modules/inttypes (Depends-on): No longer depends on stdint.
67090         * modules/stdint (Description): Say more about assumptions.
67091         Say that the fast types might differ.  Say macros are used.
67092         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
67093         (Makefile.am): Revise list of substituted symbols to match
67094         new stdint.m4.
67095         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
67096         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
67097         * tests/test-stdint.c (verify_same_types)
67098         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
67099         the code conforms to C99/C89.
67100         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
67101         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
67102
67103 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67104
67105         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
67106         but fix a bug, by requiring at least 64 bits.
67107         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
67108         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
67109         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
67110         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
67111
67112         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
67113         changes.  Make 2.59 a prerequisite.  Check and substitute for
67114         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
67115         inttypes.h.  Do not use special include files; just use the
67116         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
67117         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
67118         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
67119         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
67120         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
67121         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
67122         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
67123         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
67124         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
67125         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
67126         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
67127         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
67128         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
67129         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
67130         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
67131         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
67132         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
67133         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
67134         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
67135         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
67136         WINT_MAX.  Check for C99 conformance more strictly, by detecting
67137         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
67138         not check for things that C99 does not require, e.g., int8_t.  If
67139         a test isn't needed unless <stdint.h> isn't working, and is
67140         unlikely to be needed for any other reason, then don't do it
67141         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
67142         size_t, since we assume C89 freestanding at least.  Do not check
67143         for sig_atomic_t, wchar_t, or wint_t, since the code now does
67144         the right thing even if the types are not defined.  Instead use:
67145         (gl_STDINT_TYPE_PROPERTIES): New macro.
67146         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
67147         testing whether <sys/types.h> clashes, as Autoconf does this for
67148         us now.  All uses removed.
67149         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
67150         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
67151         (gl_CHECK_TYPE_SAME):
67152         Remove; no longer needed.
67153         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
67154         exists, since we'll return 0 anyway in that case.
67155         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
67156
67157 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
67158
67159         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
67160         possible collision with system files.
67161         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
67162         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
67163         WCHAR_MIN and WCHAR_MAX in this case.
67164         (<stddef.h>): Do not include; no longer needed.
67165         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
67166         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
67167         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
67168         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
67169         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
67170         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
67171         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
67172         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
67173         !defined(__c99))]: Include in this case too, since it's harmless
67174         now.
67175         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
67176         dangerous to do so.
67177         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
67178         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
67179         (_STDINT_MIN, _STDINT_MAX): New macros.
67180         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
67181         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
67182         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
67183         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
67184         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
67185         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
67186         macros, not typedefs; this simplifies things quite a bit.
67187         Use long int for all types narrower than int64_t.
67188         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
67189         Define in terms of long long int or int64_t or long int,
67190         not int64_t or int32_t.  This saves some compile-time testing.
67191         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
67192         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
67193         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
67194         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
67195         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
67196         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
67197         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
67198         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
67199         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
67200         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
67201         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67202         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67203         undef any previous version and define our own version, for
67204         simplicity and consistency with the new macros for types.
67205         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
67206         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
67207         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
67208         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
67209         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
67210         @WINT_T_SUFFIX@ to keep things simple here.
67211         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
67212         Simplify by assuming typical 8/16/32/64 host, since we're
67213         already doing that elsewhere anyway.
67214         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
67215         and assume long long int is 64 bits if available.  This
67216         speeds up 'configure'.
67217
67218 2006-07-01  Eric Blake  <ebb9@byu.net>
67219
67220         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
67221         Reported by Andreas Buening.
67222
67223 2006-07-01  Eric Blake  <ebb9@byu.net>
67224
67225         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
67226
67227 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
67228
67229         * lib/getaddrinfo.c: fixed typo
67230
67231 2006-06-29  Jim Meyering  <jim@meyering.net>
67232
67233         * modules/strftime (Maintainer): Add my name, since with the
67234         FPRINTFTIME changes strftime.c has forked from glibc.
67235
67236 2006-06-29  Eric Blake  <ebb9@byu.net>
67237
67238         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
67239
67240 2006-06-29  Eric Blake  <ebb9@byu.net>
67241
67242         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
67243
67244 2006-06-29  Eric Blake  <ebb9@byu.net>
67245
67246         * lib/stat_.h: New file.
67247
67248 2006-06-29  Eric Blake  <ebb9@byu.net>
67249
67250         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
67251         unused static function.
67252
67253 2006-06-29  Eric Blake  <ebb9@byu.net>
67254
67255         * doc/functions.texi (Function Portability): Document missing lstat
67256         on mingw.
67257
67258 2006-06-29  Eric Blake  <ebb9@byu.net>
67259
67260         * MODULES.html.sh: Add sys_stat.
67261         * modules/sys_stat: New module.
67262         * modules/mkstemp (Depends-on): Add sys_stat.
67263
67264 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67265
67266         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
67267
67268 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67269
67270         * m4/c-bs-a.m4: Removed.
67271
67272 2006-06-29  Derek R. Price  <derek@ximbiot.com>
67273
67274         * lib/strftime.c: Assume strftime() exists.
67275
67276 2006-06-29  Derek Price  <derek@ximbiot.com>
67277
67278         * modules/c-bs-a: Removed - \a is C89.
67279         * MODULES.html.sh: Remove c-bs-a.
67280
67281 2006-06-29  Bruno Haible  <bruno@clisp.org>
67282
67283         * modules/wcwidth (License): Change to LGPL.
67284
67285 2006-06-28  Simon Josefsson  <jas@extundo.com>
67286
67287         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
67288         on _WIN32.
67289
67290         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
67291         getnameinfo.
67292
67293 2006-06-28  Simon Josefsson  <jas@extundo.com>
67294
67295         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
67296
67297 2006-06-28  Simon Josefsson  <jas@extundo.com>
67298
67299         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
67300         functions there.  It will succeed on Windows XP, but on Windows
67301         2000 and (presumably) earlier, it will fail, and use the internal
67302         re-implementation.
67303         (use_win32_p): New function.
67304         (getaddrinfo): Use strtoul on servname, to support numeric ports.
67305         Support AI_NUMERICSERV to disable getservbyname.
67306         (getnameinfo): New function, only supports
67307         NI_NUMERICHOST|NI_NUMERICSERV for now.
67308
67309         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
67310         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
67311         getnameinfo.
67312
67313 2006-06-28  Eric Blake  <ebb9@byu.net>
67314
67315         * modules/wcwidth: New file.
67316         * modules/mbchar (Depends-on): Add wcwidth.
67317         * modules/mbswidth (Depends-on): Add wcwidth.
67318         * MODULES.html.sh: Add wcwidth.
67319
67320 2006-06-28  Eric Blake  <ebb9@byu.net>
67321
67322         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
67323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
67324
67325 2006-06-28  Eric Blake  <ebb9@byu.net>
67326
67327         * lib/xvasprintf.h: Fix comments.
67328
67329 2006-06-28  Eric Blake  <ebb9@byu.net>
67330
67331         * lib/mbchar.h (wcwidth): Include wcwidth.h.
67332         * lib/mbswidth.c (wcwidth): Move from here...
67333         * lib/wcwidth.h: ...to this new file.
67334
67335 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67336
67337         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
67338
67339         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
67340         it's obsolete.
67341         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
67342
67343 2006-06-28  Derek R. Price  <derek@ximbiot.com>
67344
67345         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
67346         Autoconf 2.60 says this stuff was obsolete.
67347
67348 2006-06-28  Bruno Haible  <bruno@clisp.org>
67349
67350         * modules/wcwidth (Files): Add m4/wchar_t.m4.
67351
67352 2006-06-28  Bruno Haible  <bruno@clisp.org>
67353
67354         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
67355         gt_TYPE_WCHAR_T.
67356
67357 2006-06-28  Bruno Haible  <bruno@clisp.org>
67358
67359         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
67360         declaration for wcwidth.
67361         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
67362
67363 2006-06-28  Bruno Haible  <bruno@clisp.org>
67364
67365         * lib/mkdtemp.c [MINGW]: Include <io.h>.
67366         (mkdir): Define using _mkdir.
67367
67368 2006-06-28  Bruno Haible  <bruno@clisp.org>
67369
67370         * lib/getaddrinfo.h: Fix POSIX URL.
67371         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
67372         _WIN32.
67373         (use_win32_p): Make static.
67374         (getaddrinfo): Reject service name if it is empty or does not consist
67375         solely of decimal digits, or if its value is > 65535.
67376         (getnameinfo): Remove useless casts.
67377
67378 2006-06-27  Simon Josefsson  <jas@extundo.com>
67379
67380         * modules/sys_select: New file, suggested by Bruno Haible, Paul
67381         Eggert and Martin Lambers.
67382
67383 2006-06-27  Simon Josefsson  <jas@extundo.com>
67384
67385         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
67386         Eggert and Martin Lambers.
67387
67388 2006-06-27  Bruno Haible  <bruno@clisp.org>
67389
67390         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
67391         result to 0, not to empty.
67392         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
67393
67394 2006-06-27  Bruno Haible  <bruno@clisp.org>
67395
67396         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
67397
67398 2006-06-26  Simon Josefsson  <jas@extundo.com>
67399
67400         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
67401         present.
67402
67403 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
67404
67405         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
67406         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
67407         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
67408
67409 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
67410
67411         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
67412
67413 2006-06-26  Bruno Haible  <bruno@clisp.org>
67414
67415         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
67416
67417 2006-06-26  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
67420
67421 2006-06-26  Bruno Haible  <bruno@clisp.org>
67422
67423         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
67424         SGI C compiler in pre-C99 mode.
67425         Suggested by Mark D. Baushke and Larry Jones.
67426
67427 2006-06-26  Bruno Haible  <bruno@clisp.org>
67428
67429         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
67430         WCHAR_MAX.
67431         Reported by Mark D. Baushke and Larry Jones.
67432
67433 2006-06-26  Bruno Haible  <bruno@clisp.org>
67434
67435         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
67436         in pre-C99 mode.
67437         Suggested by Mark D. Baushke and Larry Jones.
67438
67439 2006-06-23  Simon Josefsson  <jas@extundo.com>
67440             Bruno Haible  <bruno@clisp.org>
67441
67442         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
67443         Emit mostlyclean-local rule.
67444         (func_emit_tests_Makefile_am): Likewise.
67445         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
67446
67447 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
67448
67449         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
67450
67451 2006-06-23  Bruno Haible  <bruno@clisp.org>
67452
67453         * tests/test-stdint.c: Update to match ISO C 99 Technical
67454         Corrigendum 1.
67455
67456 2006-06-23  Bruno Haible  <bruno@clisp.org>
67457
67458         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
67459
67460 2006-06-23  Bruno Haible  <bruno@clisp.org>
67461
67462         * lib/stdint_.h: Treat IRIX like OpenBSD.
67463
67464 2006-06-23  Bruno Haible  <bruno@clisp.org>
67465
67466         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
67467         ISO C 99 Technical Corrigendum 1.
67468
67469 2006-06-22  Simon Josefsson  <jas@extundo.com>
67470
67471         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
67472         MinGW.
67473
67474 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
67475
67476         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
67477         needed.  Some compiler complained about some of them.  Problem reported
67478         by Larry Jones in
67479         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
67480
67481 2006-06-21  Simon Josefsson  <jas@extundo.com>
67482
67483         * tests/test-getaddrinfo.c: New file.
67484
67485         * modules/getaddrinfo-tests: New file.
67486
67487         * MODULES.html.sh: Add inet_pton.
67488
67489         * modules/inet_pton: New file.
67490
67491 2006-06-21  Simon Josefsson  <jas@extundo.com>
67492
67493         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
67494         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
67495         of using the (limited) gnulib implementation on Windows XP.
67496
67497         * m4/inet_pton.m4: New file.
67498
67499 2006-06-21  Simon Josefsson  <jas@extundo.com>
67500
67501         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
67502         variable.
67503
67504         * lib/socket_.h: Don't define WINVER.
67505
67506         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
67507         slightly modified to work in gnulib.
67508
67509 2006-06-21  Simon Josefsson  <jas@extundo.com>
67510
67511         * doc/gnulib.texi (Windows sockets): Add.
67512
67513 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67514
67515         * lib/read-file.c (fread_file): Start with buffer allocation of
67516         0 bytes rather than 1 byte; this simplifies the code.
67517         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
67518         code to free buffer and save/restore errno.
67519         (internal_read_file): Remove unused local.
67520
67521 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67522
67523         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
67524         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
67525         Problem reported by Denis Excoffier in
67526         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
67527
67528 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
67529
67530         * modules/sys_socket, modules/socklen: Include sys/types since
67531         FreeBSD 4.x's sys/socket.h needs it.
67532
67533 2006-06-19  Simon Josefsson  <jas@extundo.com>
67534
67535         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
67536
67537 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
67538
67539         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
67540
67541 2006-06-19  Bruno Haible  <bruno@clisp.org>
67542
67543         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
67544         and FULL_PATH_INTTYPES_H in angle brackets.
67545         Reported by Mark D. Baushke <mdb@gnu.org>.
67546
67547 2006-06-17  Eric Blake  <ebb9@byu.net>
67548
67549         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
67550         errno.
67551
67552 2006-06-17  Bruno Haible  <bruno@clisp.org>
67553
67554         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
67555         <sys/inttypes.h>.
67556
67557 2006-06-17  Bruno Haible  <bruno@clisp.org>
67558
67559         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
67560         whether errno is declared. Assume <errno.h> declares errno.
67561
67562 2006-06-17  Bruno Haible  <bruno@clisp.org>
67563
67564         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
67565
67566 2006-06-17  Bruno Haible  <bruno@clisp.org>
67567
67568         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
67569         problem on Solaris 2.5.1.
67570
67571 2006-06-16  Eric Blake  <ebb9@byu.net>
67572
67573         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
67574         * lib/unicodeio.c [!defined errno]: Likewise.
67575         * lib/strtol.c [!defined errno]: Likewise.
67576         * lib/strtod.c [!defined errno]: Likewise.
67577
67578 2006-06-15  Eric Blake  <ebb9@byu.net>
67579
67580         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
67581
67582 2006-06-15  Eric Blake  <ebb9@byu.net>
67583
67584         * config/srclist.txt (ssize_t.m4): Lose sync.
67585
67586 2006-06-15  Bruno Haible  <bruno@clisp.org>
67587
67588         * modules/stdint (Files): Include m4/full-header-path.m4,
67589         m4/size_max.m4, m4/wchar_t.m4.
67590         (Makefile.am): Many more substitutions.
67591         * modules/stdint-tests: New file.
67592         * tests/test-stdint.c: New file.
67593
67594 2006-06-15  Bruno Haible  <bruno@clisp.org>
67595
67596         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
67597         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
67598         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
67599         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
67600         gl_CHECK_TYPE_SAME): New macros.
67601
67602 2006-06-15  Bruno Haible  <bruno@clisp.org>
67603
67604         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
67605
67606 2006-06-15  Bruno Haible  <bruno@clisp.org>
67607
67608         * lib/stdint_.h: Rewritten to be fully auto-configured.
67609         Fixes bug on HP-UX/IA64.
67610
67611 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
67612
67613         * lib/getdate.y (__attribute__): Don't define if already defined.
67614         Problem reported by Larry Jones.
67615         * lib/utimens.c (__attribute__): Likewise.
67616
67617 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
67620         reported by Andreas Schwab.
67621
67622 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67623             Bruno Haible  <bruno@clisp.org>
67624
67625         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
67626         check for the declaration of strnlen and a run test that exposes the
67627         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
67628         rpl_strndup.
67629
67630 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67631             Bruno Haible  <bruno@clisp.org>
67632
67633         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
67634
67635 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67636
67637         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
67638         compile test, for Tru64 4.0D.
67639
67640 2006-05-28  Karl Berry  <karl@gnu.org>
67641
67642         * config/srclist.txt (printf-args.c): lose sync.
67643
67644 2006-05-26  Martin Lambers  <marlam@marlam.de>
67645
67646         * lib/getpass.c: Updates the test for the native W32 API, and adds
67647         missing includes, thus fixing compilation warnings.
67648
67649 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
67650
67651         * lib/exclude.c (exclude_fnmatch): New function.
67652         (excluded_file_name): Call exclude_fnmatch.
67653         * lib/exclude.h (excluded_file_name): New prototype
67654
67655 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
67656
67657         * lib/tempname.c (small_open, large_open): New macros.
67658         (__open, __open64) [!_LIBC]: Remove.
67659         (__gen_tempname): Use small_open and large_open instead of __open
67660         and __open64.  This fixes a portability bug on HP-UX 11.11i
67661         reported by Simon Wing-Tang in
67662         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
67663
67664 2006-05-24  Bruno Haible  <bruno@clisp.org>
67665
67666         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
67667         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
67668         Reported by Thorsten Maerz <torte@netztorte.de> via
67669         Aaron Stone <aaron@serendipity.cx>.
67670
67671 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67672
67673         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
67674         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
67675         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
67676         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
67677         not really conditional on the cache.
67678         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
67679
67680 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
67681
67682         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
67683         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
67684         (my_usleep): Don't mishandle maximum value.
67685
67686 2006-05-19  Jim Meyering  <jim@meyering.net>
67687
67688         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
67689
67690 2006-05-17  Bruno Haible  <bruno@clisp.org>
67691
67692         Cygwin portability.
67693         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
67694
67695 2006-05-17  Bruno Haible  <bruno@clisp.org>
67696
67697         * lib/stdint_.h: Fix recognition of Cygwin.
67698
67699 2006-05-15  Bruno Haible  <bruno@clisp.org>
67700
67701         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
67702         on libtool patch by Ralf Wildenhues.
67703
67704 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
67705
67706         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
67707         test for C99 conformance; (bool) 0.5 is an integer constant
67708         expression, but (bool) -0.5 is not.  Problem reported by Fedor
67709         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
67710
67711 2006-05-11  Simon Josefsson  <jas@extundo.com>
67712
67713         * m4/xvasprintf.m4: Fix obvious typo.
67714
67715 2006-05-11  Jim Meyering  <jim@meyering.net>
67716
67717         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
67718         James Lemley.
67719
67720 2006-05-10  Simon Josefsson  <jas@extundo.com>
67721
67722         * lib/md4.c: Typo fix, update copyright years.
67723         (K1, K2): Don't use L because it turn computations into 64-bit on
67724         64-bit platforms.
67725
67726 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
67727
67728         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
67729         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
67730         unwanted sign propagation, e.g., on hosts with 64-bit int.
67731         There still are some problems with reeelly weird theoretical hosts
67732         (e.g., 33-bit int) but it's not worth worrying about now.
67733         * lib/sha1.c (rol): Likewise.
67734         (K1, K2, K3, K4): Remove unnecessary L suffix.
67735
67736 2006-05-10  Bruno Haible  <bruno@clisp.org>
67737
67738         * lib/des.c: Cast to avoid warnings.
67739
67740 2006-05-09  Bruno Haible  <bruno@clisp.org>
67741
67742         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
67743         (Depends-on): Depend also on xsize, stdarg.
67744         (configure.ac): Add gl_XVASPRINTF.
67745
67746 2006-05-09  Bruno Haible  <bruno@clisp.org>
67747
67748         * m4/xvasprintf.m4: New file.
67749
67750 2006-05-09  Bruno Haible  <bruno@clisp.org>
67751
67752         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
67753         (EOVERFLOW): Define fallback value.
67754         (xstrcat): New function.
67755         (xvasprintf): Recognize the special case of a string concatenation.
67756
67757 2006-05-08  Eric Blake  <ebb9@byu.net>
67758
67759         * gnulib-tool (func_version): Base copyright year on CVS date.
67760         (func_emit_copyright_notice): New function.
67761         (func_emit_lib_Makefile_am): Use it.
67762         (func_emit_tests_Makefile_am): Likewise.
67763         (func_import): Likewise.
67764
67765 2006-05-08  Bruno Haible  <bruno@clisp.org>
67766
67767         * modules/stdarg: New file.
67768         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
67769
67770 2006-05-08  Bruno Haible  <bruno@clisp.org>
67771
67772         * m4/stdarg.m4: New file, from GNU gettext.
67773
67774 2006-05-08  Bruno Haible  <bruno@clisp.org>
67775
67776         * config/srclist.txt (build-aux/config.rpath): different from latest
67777         release.
67778
67779 2006-05-08  Bruno Haible  <bruno@clisp.org>
67780
67781         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
67782
67783 2006-05-05  Jim Meyering  <jim@meyering.net>
67784
67785         * m4/warning.m4: New file, derived from bison's file by the same name.
67786
67787 2006-05-03  Bruno Haible  <bruno@clisp.org>
67788
67789         * lib/stdint_.h: Shorter URL.
67790         * lib/inttypes.h: Likewise.
67791
67792 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67793
67794         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
67795
67796 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67797
67798         * lib/verify.h: Document the internals better.  Most of this change
67799         was written by Bruno Haible.
67800
67801 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67802
67803         * doc/verify.texi: New file, partly based on a proposal by
67804         Bruno Haible.
67805
67806 2006-05-02  Bruno Haible  <bruno@clisp.org>
67807
67808         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
67809         test from here...
67810         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
67811
67812 2006-04-29  Bruno Haible  <bruno@clisp.org>
67813
67814         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
67815         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
67816
67817 2006-04-29  Bruno Haible  <bruno@clisp.org>
67818
67819         * gnulib-tool: Make --update option actually work.
67820
67821 2006-04-29  Bruno Haible  <bruno@clisp.org>
67822
67823         * doc/gcd.texi: New file.
67824         * doc/gnulib.texi: Include it.
67825
67826 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
67827
67828         * lib/getdate.y (get_date): When adding relative date, start with the
67829         initial time, not with the result of the first mktime call.
67830
67831 2006-04-25  Bruno Haible  <bruno@clisp.org>
67832
67833         * gnulib-tool (func_import): Output the include directives in three
67834         blocks, sorted separately.
67835         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67836
67837 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67838
67839         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
67840         to define main with arguments, for C++.  Reported by Eric Blake.
67841         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
67842         Prefer 'int main ()' to 'int main (void)', for C++.
67843         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
67844         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
67845         for 'main', for C99 and C++.
67846
67847 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
67848
67849         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
67850         Don't assume that exit status -1 is valid.
67851         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
67852         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
67853         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
67854         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
67855         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
67856         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
67857         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
67858         functions can be used without declaring them, or that you can
67859         exit with status -1.
67860         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
67861
67862 2006-04-24  Karl Berry  <karl@gnu.org>
67863
67864         * config/srclist.txt (longdouble.m4): sync lost.
67865
67866 2006-04-24  Eric Blake  <ebb9@byu.net>
67867
67868         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
67869
67870 2006-04-24  Bruno Haible  <bruno@clisp.org>
67871
67872         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
67873         poll() implementation in AIX.
67874         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
67875
67876 2006-04-24  Bruno Haible  <bruno@clisp.org>
67877
67878         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
67879         assigned exactly once.
67880
67881 2006-04-23  Claudio Fontana  <claudio@gnu.org>
67882             Bruno Haible  <bruno@clisp.org>
67883
67884         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
67885         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
67886         for AM_CPPFLAGS.
67887
67888 2006-04-23  Bruno Haible  <bruno@clisp.org>
67889
67890         * modules/copy-file: Depend on unistd.
67891         * modules/execute: Likewise.
67892         * modules/fatal-signal: Likewise.
67893         * modules/findprog: Likewise.
67894         * modules/mkdtemp : Likewise.
67895         * modules/pipe: Likewise.
67896         * modules/wait-process: Likewise.
67897
67898 2006-04-23  Bruno Haible  <bruno@clisp.org>
67899
67900         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
67901         condition was already detected.
67902         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67903
67904 2006-04-23  Bruno Haible  <bruno@clisp.org>
67905
67906         * lib/copy-file.c: Include <unistd.h> unconditionally.
67907         * lib/execute.c: Likewise.
67908         * lib/fatal-signal.c: Likewise.
67909         * lib/findprog.c: Likewise.
67910         * lib/mkdtemp.c: Likewise.
67911         * lib/pipe.h: Likewise.
67912         * lib/pipe.c: Likewise.
67913         * lib/wait-process.h: Likewise.
67914
67915 2006-04-23  Bruno Haible  <bruno@clisp.org>
67916
67917         * gnulib-tool (func_usage): Fix --import description. Document
67918         --update.
67919         (func_import): Create temporary file in a temporary directory, if
67920         --dry-run is specified. Silence errors from 'grep' when there are no
67921         m4 files in $m4dir.
67922         (func_create_testdir): Silence errors from 'grep' when there are no
67923         m4 files in $m4dir.
67924         Reported by Karl Berry <karl@freefriends.org>.
67925
67926 2006-04-20  Bruno Haible  <bruno@clisp.org>
67927
67928         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
67929         one argument, so that the code will be portable to Autoconf 2.60.
67930         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
67931         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
67932         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
67933
67934 2006-04-19  Derek Price  <derek@ximbiot.com>
67935             Eric Blake  <ebb9@byu.net>
67936
67937         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
67938         rather than "/full/path.h".  Update comment to match.  Shorten &
67939         generalize m4_translit call via AS_TR_CPP.
67940
67941 2006-04-19  Derek Price  <derek@ximbiot.com>
67942             Eric Blake  <ebb9@byu.net>
67943
67944         * lib/inttypes.h: Correct grammar in comment.
67945
67946 2006-04-18  Derek Price  <derek@ximbiot.com>
67947             Paul Eggert  <eggert@cs.ucla.edu>
67948
67949         * modules/inttypes: New file.
67950         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
67951
67952 2006-04-18  Derek Price  <derek@ximbiot.com>
67953             Paul Eggert  <eggert@cs.ucla.edu>
67954
67955         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
67956         New files.
67957
67958 2006-04-18  Derek Price  <derek@ximbiot.com>
67959             Paul Eggert  <eggert@cs.ucla.edu>
67960
67961         * lib/inttypes.h: New file.
67962         * lib/strtoimax.c: Assume <inttypes.h>.
67963
67964 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
67965
67966         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
67967         isn't mounted.  Problem reported by Kir Kolyshkin.
67968
67969 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67970
67971         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
67972         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
67973         Derek R. Price.
67974         * lib/regex.h (RE_DUP_MAX): Update comment to match current
67975         implementation.
67976
67977 2006-04-12  Eric Blake  <ebb9@byu.net>
67978
67979         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
67980         is now done automatically by the corresponding Autoconf macro.
67981
67982 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
67983
67984         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
67985         time_r.h.
67986
67987 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
67988
67989         Merge regex changes from libc, removing some of our
67990         POSIX-conformance changes that were rejected and redoing them in a
67991         less-intrusive way.
67992
67993         * lib/regcomp.c (re_compile_internal, init_dfa):
67994         Length arg is now size_t, not Idx.  All uses changed.
67995         (peek_token): Forward decl now says internal_function.
67996         (__re_error_msgid, __re_error_msgid_idx):
67997         Now static rather than extern with attribute_hidden.
67998         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
67999         For some reason libc prefers K&R style defns for external functions.
68000         (regerror) [!defined _LIBC]: Likewise.
68001         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
68002         (seek_collating_symbol_entry, lookup_collation_sequence_value):
68003         (build_range_exp, build_collating_symbol):
68004         Use K&R-style defn.
68005         (re_compile_fastmap): Use '\0' to memset, not 0.
68006         (utf8_sb_map): Make the calculations more obvious.
68007         (init_dfa, parse_bracket_exp, build_charclass_op):
68008         Call calloc and cast result, as glibc does.
68009         (init_word_char, fetch_token, peek_token, peek_token_bracket):
68010         (build_range_exp, build_collating_symbol):
68011         Now internal functions.
68012
68013         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
68014
68015         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
68016         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
68017         Don't depend on VMS; depend on __VMS instead, for POSIX
68018         namespace cleanness.
68019         (regoff_t): Define to ssize_t, not long int.
68020
68021         Remove the REG_ macros named below.  Instead, make the old names
68022         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
68023         __USE_GNU_REGEX.
68024         (REG_BACKSLASH_ESCAPE_IN_LISTS):
68025         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
68026         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
68027         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
68028         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
68029         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
68030         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
68031         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
68032         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
68033         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
68034         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
68035         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
68036         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
68037         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
68038         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
68039         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
68040         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
68041         (REG_NREGS):
68042         Remove.  All uses replaced by the old RE_* names.
68043         (RE_BACKSLASH_ESCAPE_IN_LISTS):
68044         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
68045         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
68046         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
68047         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
68048         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
68049         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
68050         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
68051         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
68052         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
68053         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
68054         Don't bother having these macros be independent of each others'
68055         values, since they no longer exist in the POSIX name space.
68056
68057         Rename the following member names back to their old names,
68058         unless !__USE_GNU_REGEX.  All uses changed back.
68059         (buffer): Renamed from re_buffer.
68060         (allocated): Renamed from re_allocated.
68061         (used): Renamed from re_used.
68062         (syntax): Renamed from re_syntax.
68063         (fastmap): Renamed from re_fastmap.
68064         (translate): Renamed from re_translate.
68065         (can_be_null): Renamed from re_can_be_null.
68066         (regs_allocated): Renamed from re_regs_allocated.
68067         (fastmap_accurate): Renamed from re_fastmap_accurate.
68068         (no_sub): Renamed from re_no_sub.
68069         (not_bol): Renamed from re_not_bol.
68070         (not_eol): Renamed from re_not_eol.
68071         (newline_anchor): Renamed from re_newline_anchor.
68072         (num_regs): Renamed from rm_num_regs.
68073         (start): Renamed from rm_start.
68074         (end): Renamed from rm_end.
68075
68076         (free_state): Move up a bit.
68077
68078         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
68079         #define to be empty.
68080         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
68081         when that is what is intended.
68082         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
68083         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
68084         (MAX): New macro.
68085         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
68086         All uses changed back to re_malloc, etc.  It's now the caller's
68087         responsibility to check for overflow; all callers changed.
68088         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
68089         (re_x2nrealloc): Remove.
68090         (free_state): Remove decl.
68091
68092         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
68093         (re_set_registers, re_exec):
68094         Use K&R-style defn.
68095
68096         2006-01-31  Roland McGrath  <roland@redhat.com>
68097
68098         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
68099         Reported by Mike Frysinger <vapier@gentoo.org>.
68100
68101         2006-01-15  Andreas Jaeger  <aj@suse.de>
68102
68103         [BZ #1950]
68104         * lib/regex_internal.c (re_string_reconstruct): Adjust for
68105         build_wcs_upper_buffer change.
68106         (build_wcs_upper_buffer): Change return type.
68107
68108         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
68109
68110         * lib/regex_internal.h: Include <stdint.h> if available.
68111
68112         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
68113
68114         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
68115
68116         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
68117
68118         * lib/regcomp.c: Adjust for changed secondary hash function.
68119
68120         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
68121
68122         * lib/regex.h: Pretty printing.
68123         Clean up namespace a bit.
68124
68125         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
68126
68127         * lib/regexec.c (update_cur_sifted_state, check_arrival,
68128         check_arrival_add_next_nodes): Avoid using uninitialized variable.
68129
68130         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
68131                     Ulrich Drepper  <drepper@redhat.com>
68132
68133         [BZ #1302]
68134         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
68135         changed.
68136         (bitset_word_t): Renamed from bitset_word.  All uses changed.
68137
68138         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
68139
68140         [BZ #281]
68141         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
68142         * lib/regcomp.c: Remove unnecessary uses of
68143         unsigned RE_TRANSLATE_TYPE.
68144         * lib/regex_internal.h: Likewise.
68145         * lib/regex_internal.c: Likewise.
68146         * lib/regexec.c: Likewise.
68147         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
68148
68149         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
68150
68151         * lib/regexec.c (find_recover_state): Remove unnecessary
68152         initialization.
68153         (transit_state_bkref): Make DFA a const pointer.
68154         (get_subexp): Likewise.
68155         (check_arrival): Likewise.
68156         (update_cur_sifted_state): Likewise.
68157         (re_search_internal): Likewise.
68158         (prune_impossible_nodes): Likewise.
68159         (acquire_init_state_context): Likewise.
68160         (proceed_next_node): Likewise.
68161         (set_regs): Likewise.
68162         (free_fail_stack_return): Likewise.
68163         (check_arrival_expand_ecl): Mark DFA parameter as const.
68164         (check_arrival_expand_ecl_sub): Likewise.
68165         (check_subexp_limits): Likewise.
68166         (sub_epsilon_src_nodes):  Likewise.
68167         (add_epsilon_src_nodes):  Likewise.
68168         (merge_state_array): Likewise.
68169         (update_regs): Likewise.
68170         (build_trtable): Likewise.
68171         (sift_states_backward): Mark MCTX parameter as const.
68172         (build_sifted_states): Likewise.
68173         (update_cur_sifted_state): Likewise.
68174         (sift_states_mkref): Likewise.
68175         (check_arrival_expand_ecl): Mark eclosure as const.
68176         (check_dst_limits_calc_pos_1): Likewise.
68177         * lib/regex_internal.h (re_match_context_t): Make dfa a const
68178         pointer.
68179
68180         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
68181
68182         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
68183         (transit_state_sb): Likewise.
68184         (transit_state_mb): Likewise.
68185         (sift_states_iter_mb): Likewise.
68186         (check_arrival_add_next_nodes): Likewise.
68187         (check_node_accept_bytes): Change first parameter to pointer-to-const.
68188         [_LIBC] (re_search_2_stub): Use mempcpy.
68189
68190         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
68191         mbrtowc for very simple UTF-8 case.
68192
68193         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
68194         a pointer-to-const.
68195         (re_acquire_state_context): Likewise.
68196         * lib/regex_internal.h: Adjust prototypes.
68197
68198         * lib/regex.c: Prevent using C++ compilers.
68199
68200         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
68201         (re_acquire_state_context): Likewise.
68202
68203 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68204
68205         * modules/regex (Depends-on): Add ssize_t.
68206
68207 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68208
68209         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
68210         translation table.
68211
68212 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
68213
68214         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
68215
68216 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
68217             Bruno Haible  <bruno@clisp.org>
68218
68219         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
68220         <sys/types.h> and <inttypes.h>.
68221
68222 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68223
68224         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
68225         `__error_t_defined', so argp.h will not typedef the former.
68226
68227 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
68228
68229         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
68230         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
68231         glibc names.  Even if glibc is changed to conform to POSIX, the
68232         traditional names will be available anyway, since regex depends on
68233         the extensions module.  Also, fix a longstanding typo in the
68234         implementation of Spencer ERE test #75 from grep 2.3.  Problems
68235         reported by Emanuele Giaquinta.  Also, change sense of cached
68236         variable, so that the message makes sense.
68237
68238 2006-03-24  Simon Josefsson  <jas@extundo.com>
68239
68240         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
68241         including some doc fixes.
68242         (base64_encode_alloc): Fix +1 bug on allocation failures.
68243
68244 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68245
68246         * lib/base64.c (base64_encode): Do not read past end of array with
68247         unsanitized input on systems with CHAR_BIT > 8.
68248
68249 2006-03-24  Eric Blake  <ebb9@byu.net>
68250
68251         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
68252
68253 2006-03-22  Karl Berry  <karl@gnu.org>
68254
68255         * config/srclist.txt (*setenv.[ch]): get from coreutils.
68256         * config/srclistvars.sh (COREUTILS): new var.
68257
68258 2006-03-17  Jim Meyering  <jim@meyering.net>
68259
68260         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
68261         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
68262
68263 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68264
68265         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
68266         no longer needs it.  Instead, check that regoff_t is as least
68267         as wide as ptrdiff_t.
68268
68269         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
68270         so that our regex.h stays compatible with the installed regex.
68271         This is helpful for installers who configure --without-included-regex.
68272         Problem reported by Emanuele Giaquinta.
68273
68274 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
68275
68276         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
68277         Typedef to long int, not to off_, as POSIX will likely change
68278         in that direction.
68279
68280 2006-03-15  Eric Blake  <ebb9@byu.net>
68281
68282         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
68283
68284 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68285
68286         * lib/argp-help.c (validate_uparams): Fix typo
68287         * lib/argp-parse.c (argp_default_options): Consistently begin help
68288         messages with a lowercase letter.
68289
68290 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
68291
68292         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
68293         overrun buffers and shouldn't be used (much as gets shouldn't be
68294         used).
68295         * lib/time_r.c (asctime_r, ctime_r): Likewise.
68296
68297 2006-03-08  Simon Josefsson  <jas@extundo.com>
68298
68299         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
68300         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68301
68302 2006-03-08  Simon Josefsson  <jas@extundo.com>
68303
68304         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
68305         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68306
68307 2006-03-08  Simon Josefsson  <jas@extundo.com>
68308
68309         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
68310         signal that configure disabled the device.
68311
68312 2006-03-08  Simon Josefsson  <jas@extundo.com>
68313
68314         * build-aux/maint.mk: Fix refresh-po, to handle no translated
68315         languages.
68316
68317 2006-03-07  Simon Josefsson  <jas@extundo.com>
68318
68319         * modules/getopt (Depends-on): Add unistd.
68320
68321         * modules/unistd: New file.
68322
68323 2006-03-07  Simon Josefsson  <jas@extundo.com>
68324
68325         * modules/gc-random: New file.
68326
68327 2006-03-07  Simon Josefsson  <jas@extundo.com>
68328
68329         * m4/unistd_h.m4: New file.
68330
68331 2006-03-07  Simon Josefsson  <jas@extundo.com>
68332
68333         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
68334         test to be side-effect free by storing the result in the cache
68335         variable gl_cv_lib_readline, and moving the assignment of
68336         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
68337         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68338
68339 2006-03-07  Simon Josefsson  <jas@extundo.com>
68340
68341         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
68342         error on missing devices (the functions will return an error).
68343
68344         * m4/gc.m4: Move random stuff to gc-random.m4
68345
68346 2006-03-07  Simon Josefsson  <jas@extundo.com>
68347
68348         * lib/unistd_.h: New file.
68349
68350 2006-03-07  Simon Josefsson  <jas@extundo.com>
68351
68352         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
68353
68354 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68355
68356         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
68357         Problem reported by Juan Manuel Guerrero.
68358
68359 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68360
68361         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
68362         the unistd module.
68363         * lib/getlogin_r.c: Likewise.
68364         * lib/getlogin_r.h: Likewise.
68365         * lib/glob.c: Likewise.
68366         * lib/pagealign_alloc.c: Likewise.
68367         * lib/unistd_.h: Remove; no longer needed.
68368
68369 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
68370
68371         * MODULES.html.sh (Support for systems lacking POSIX:2001):
68372         Add unistd.
68373         * modules/c-stack (Depends-on): Add unistd.
68374         * modules/getlogin_r: Likewise.
68375         * modules/glob: Likewise.
68376         * modules/pagealign_alloc: Likewise.
68377         * modules/unistd (Files): Remove lib/unistd_.h.
68378         (EXTRA_DIST): Remove.
68379         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
68380         need unistd_.h.
68381         (MOSTLYCLEANFILES): Remove unistd.h-t.
68382
68383 2006-03-03  Simon Josefsson  <jas@extundo.com>
68384
68385         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
68386
68387 2006-03-03  Simon Josefsson  <jas@extundo.com>
68388
68389         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
68390         libidn and bison.
68391
68392 2006-03-03  Simon Josefsson  <jas@extundo.com>
68393
68394         * build-aux/maint.mk: Add indent target.
68395
68396 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
68397
68398         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
68399         our replacement poll.h in any case, to avoid a differing
68400         declaration from a system header.  Seen on AIX.
68401
68402 2006-03-01  Simon Josefsson  <jas@extundo.com>
68403
68404         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
68405         <kasal@ucw.cz>.
68406
68407 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68408
68409         * modules/gettime (Depends-on): Add extensions module.
68410         * modules/nanosleep (Depends-on): Likewise.
68411         * modules/settime (Depends-on): Likewise.
68412
68413 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
68414
68415         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
68416         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
68417         pedantically.
68418         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
68419         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
68420
68421         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
68422         not "==".  Reported by Ralf Wildenhues.
68423
68424 2006-03-01  Karl Berry  <karl@gnu.org>
68425
68426         * doc/Copyright/request-*: new files, synced from gnuorg.
68427
68428 2006-03-01  Karl Berry  <karl@gnu.org>
68429
68430         * config/srclist.txt (Copyright/*): new entries.
68431
68432 2006-02-28  Simon Josefsson  <jas@extundo.com>
68433
68434         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
68435
68436 2006-02-27  Simon Josefsson  <jas@extundo.com>
68437
68438         * lib/base64.h: Indent #define's.  From Jim Meyering
68439         <jim@meyering.net>.
68440
68441 2006-02-27  Jim Meyering  <jim@meyering.net>
68442
68443         Revert the change of 2006-02-24, so these files can continue
68444         to be sync'd from gettext.
68445         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
68446         of `config.h'.
68447
68448 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
68449
68450         * modules/intprops: New file.
68451         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68452         Add intprops.
68453         * modules/getloadavg (Files): Remove lib/intprops.h.
68454         (Depends-on): Add intprops.
68455         * modules/human: Likewise.
68456         * modules/inttostr: Likewise.
68457         * modules/openat: Likewise.
68458         * modules/sig2str: Likewise.
68459         * modules/userspec: Likewise.
68460         * modules/utimecmp: Likewise.
68461         * modules/xnanosleep: Likewise.
68462         * modules/xstrtol: Likewise.
68463
68464 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
68465
68466         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
68467         * modules/lock-tests (TESTS): Use $(EXEEXT).
68468         * modules/tls-tests: Likewise.
68469         * modules/argp-tests: Likewise.
68470         (check_PROGRAMS): New var, replacing...
68471         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
68472
68473 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68474
68475         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
68476         `config.h'.
68477
68478 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
68479
68480         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
68481
68482 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68483
68484         Sync from coreutils.
68485         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
68486         gl_CHDIR_SAFER.
68487
68488 2006-02-22  Jim Meyering  <jim@meyering.net>
68489
68490         Sync from coreutils.
68491         * m4/chdir-safer.m4: New file.
68492
68493 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
68494
68495         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
68496         AT_FDCWD exceeds INT_MAX.
68497         * lib/openat.h (AT_FDCWD): Likewise.
68498
68499 2006-02-17  Eric Blake  <address@hidden>
68500
68501         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
68502
68503 2006-02-16  Simon Josefsson  <jas@extundo.com>
68504
68505         * modules/getaddrinfo (Depends-on): Add sys_socket.
68506
68507 2006-02-15  Simon Josefsson  <jas@extundo.com>
68508
68509         * build-aux/maint.mk: Add dsyntax-check rule.
68510
68511 2006-02-15  Eric Blake  <ebb9@byu.net>
68512
68513         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
68514         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
68515         'present but cannot compile' warnings on cygwin.
68516         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
68517         use ws2tcpip.h if sys/socket.h works.
68518         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
68519         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
68520
68521 2006-02-14  Simon Josefsson  <jas@extundo.com>
68522
68523         * modules/maintainer-makefile (Files): Rename.
68524
68525         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
68526         and (the local) Makefile.cfg to maint-cfg.mk.
68527
68528         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
68529         to the latter.
68530
68531         * modules/maintainer-makefile: New module.
68532
68533         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
68534         severaly stripped to make it possible to build it up from scratch
68535         with reliable tests.
68536
68537         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
68538         fixes to permit overriding the default actions when configure and
68539         makefile are not available.
68540
68541 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
68542
68543         Sync from coreutils.
68544         * modules/lstat (Depends-on): Don't depend on xalloc.
68545         (License): Change from GPL to LGPL, since this is now simply a
68546         replacement for a libc function.
68547
68548 2006-02-14  Jim Meyering  <jim@meyering.net>
68549
68550         Sync from coreutils.
68551
68552         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
68553         failure on deficient systems, and simplify gnulib lgpl dependencies.
68554         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
68555         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
68556
68557         * lib/xalloc-die.c: Remove unused definition of N_.
68558
68559 2006-02-14  Jim Meyering  <jim@meyering.net>
68560
68561         Sync from coreutils.
68562         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
68563         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
68564         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
68565         double-quote uses of that variable, to accommodate the rare case in
68566         which getmntent is available in none of the libraries checked.  This
68567         happens at least on FreeBSD 5.0.
68568
68569 2006-02-13  Simon Josefsson  <jas@extundo.com>
68570
68571         * gnulib-tool (Usage): Fix --import, from
68572         karl@freefriends.org (Karl Berry).
68573
68574 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
68575
68576         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
68577
68578 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
68579
68580         * lib/argp-namefrob.h: Restore changes accidentally lost during the
68581         "autoupdate" on 2005-12-12.
68582
68583 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68584
68585         * modules/closeout (Depends-on): Remove atexit.
68586
68587 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
68588
68589         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
68590         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
68591
68592 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
68593
68594         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
68595         __EXTENSIONS__ if this causes compilation to fail.  Problem
68596         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
68597         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
68598
68599 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
68600
68601         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
68602         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
68603         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
68604         All uses changed.
68605
68606 2006-01-26  Simon Josefsson  <jas@extundo.com>
68607
68608         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
68609         prototype is visible on mingw32.
68610
68611         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
68612         for mingw32.
68613
68614         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
68615         mingw32).
68616
68617 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
68618
68619         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
68620         attempt to open for write; this always fails, at least on POSIX
68621         hosts.  This reinstates the 2006-01-09 change, which was
68622         inadvertently removed.
68623
68624 2006-01-26  Bruno Haible  <bruno@clisp.org>
68625
68626         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
68627         Reported by Paul Eggert.
68628
68629 2006-01-26  Bruno Haible  <bruno@clisp.org>
68630             Paul Eggert  <eggert@cs.ucla.edu>
68631
68632         * lib/stdbool_.h (_Bool)
68633         [(! (defined __cplusplus || defined __BEOS__)
68634           && !defined __GNUC__
68635           && !(defined __HP_cc || defined __xlc__
68636                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
68637                || defined __sgi))]:
68638         #define to signed char in these cases too; this simplifies
68639         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
68640         etc., separately) and makes it more conservative.
68641
68642 2006-01-25  Simon Josefsson  <jas@extundo.com>
68643
68644         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
68645         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
68646         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
68647
68648 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
68649
68650         * lib/argp-namefrob.h: Bugfix. Remove stray #
68651
68652 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
68653
68654         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
68655         so that we test the test.
68656         Check for yet another HP-UX cc bug involving *bool |= bool.
68657
68658 2006-01-25  Karl Berry  <karl@gnu.org>
68659
68660         * config/srclist.txt (vasnprintf.c): sync lost.
68661
68662 2006-01-25  Jim Meyering  <jim@meyering.net>
68663
68664         Sync from the stable (b5) branch of coreutils:
68665
68666         * lib/fts.c (fts_children): Don't let close() clobber errno from
68667         failed fchdir().
68668
68669         * lib/fts.c (fts_stat): When following a symlink-to-directory,
68670         don't necessarily interpret stat-fails+lstat-succeeds as indicating
68671         a dangling symlink.  That can also happen at least for ELOOP.
68672         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
68673         FYI, this bug predates the inclusion of fts.c in coreutils.
68674
68675         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
68676         in their own block, so pre-c99 compilers don't object.
68677
68678         Avoid the double-free (first in fts_read, second in fts_close) that
68679         would occur when an `active' directory is made inaccessible (e.g.,
68680         via chmod a-x) during a traversal.
68681         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
68682         before returning.  Reproduce this failure by
68683         mkdir -p a/b; cd a; chmod a-x . b
68684         Reported by Stavros Passas.
68685
68686 2006-01-25  Jim Meyering  <jim@meyering.net>
68687
68688         * lib/fileblocks.c: Remove more useless parentheses.
68689         * lib/readutmp.h: Likewise.
68690
68691 2006-01-25  Bruno Haible  <bruno@clisp.org>
68692
68693         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
68694         warnings.
68695         Reported by Paul Eggert.
68696
68697 2006-01-25  Bruno Haible  <bruno@clisp.org>
68698
68699         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
68700         rid of a trap command. For Solaris sh.
68701         Reported by Mark D. Baushke <mdb@gnu.org>.
68702
68703 2006-01-24  Simon Josefsson  <jas@extundo.com>
68704
68705         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
68706         Bruno.
68707
68708 2006-01-24  Karl Berry  <karl@gnu.org>
68709
68710         * config/srclist.txt (argp-namefrob.h): sync lost.
68711
68712 2006-01-24  Jim Meyering  <jim@meyering.net>
68713
68714         * modules/openat (Files): Add lib/intprops.h.
68715         From Mark D. Baushke.
68716
68717 2006-01-24  Jim Meyering  <jim@meyering.net>
68718
68719         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
68720         Reported by Mark D. Baushke.
68721
68722 2006-01-24  Jim Meyering  <jim@meyering.net>
68723
68724         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
68725
68726 2006-01-24  Bruno Haible  <bruno@clisp.org>
68727
68728         * modules/strnlen (Maintainer): Change from glibc to all.
68729
68730 2006-01-24  Bruno Haible  <bruno@clisp.org>
68731
68732         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
68733         Patch by Paul Eggert.
68734
68735 2006-01-24  Bruno Haible  <bruno@clisp.org>
68736
68737         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
68738         already has it.
68739         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
68740         2005-11-26.
68741
68742         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
68743         'signed char' to avoid problems with the built-in _Bool type.
68744         Reported by Paul Eggert on 2005-11-26.
68745
68746 2006-01-24  Bruno Haible  <bruno@clisp.org>
68747
68748         * gnulib-tool (func_import): Avoid constructing complicated sed
68749         expressions inside backquote.
68750         Report and solution by Mark D. Baushke <mdb@gnu.org>.
68751
68752 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
68753
68754         These changes imported from libc.
68755         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
68756         test and two separate function calls.
68757         * lib/strndup.c (__strndup): Add libc_hidden_def.
68758
68759 2006-01-23  Simon Josefsson  <jas@extundo.com>
68760
68761         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
68762         Remove the test_*_SOURCES variable: automake infers it by default.
68763         * modules/tls-tests: Likewise.
68764
68765 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68766
68767         Work around porting bugs reported by Dieter in
68768         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
68769         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
68770         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
68771         Include "getopt.h" first, to check interface.
68772         (getenv): Declare only if defined HAVE_DECL_GETENV &&
68773         !HAVE_DECL_GETENV.
68774         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
68775         (__strndup): Revert to K&R-style function dfns, the glibc style.
68776         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
68777         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
68778         Include strnlen.h first, to get prototype properly.
68779         (strnlen): Renamed from __strnlen.
68780         Remove weak alias.
68781
68782 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68783
68784         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
68785
68786 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
68787
68788         * config/srclist.txt: Adjust to reflect glibc reorganization.
68789         This affects only comments.
68790
68791 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
68792
68793          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
68794          Reported by Bruce Korb <bkorb@gnu.org>.
68795
68796 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
68797
68798         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
68799         to pacify gcc -Wswitch-default.
68800
68801 2006-01-22  Bruno Haible  <bruno@clisp.org>
68802
68803         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
68804         temporary buffer for sprintf, take into account the precision also
68805         for 'd', 'i', 'u', 'o', 'x', 'X'.
68806
68807 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68808
68809         * modules/argp-tests: New module
68810         * tests/test-argp.c: New file
68811         * tests/test-argp-2.sh: New file
68812
68813 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
68814
68815         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
68816         (__argp_base_name): Removed
68817         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
68818         typo.
68819         (__argp_base_name): Provide macro definition or extern declaration
68820         depending on the configuration
68821
68822 2006-01-20  Simon Josefsson  <jas@extundo.com>
68823
68824         * modules/inet_ntop (Depends-on): Depend on sys_socket.
68825
68826 2006-01-20  Simon Josefsson  <jas@extundo.com>
68827
68828         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
68829
68830 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
68831
68832         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
68833         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
68834         Suggested by Bruno Haible.
68835
68836 2006-01-20  Karl Berry  <karl@gnu.org>
68837
68838         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
68839         until changes propagate, I guess.
68840
68841 2006-01-19  Simon Josefsson  <jas@extundo.com>
68842
68843         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
68844
68845 2006-01-19  Simon Josefsson  <jas@extundo.com>
68846
68847         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
68848
68849 2006-01-19  Simon Josefsson  <jas@extundo.com>
68850
68851         * gnulib-tool: Set check_PROGRAMS.
68852
68853         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68854         modules/des-tests, modules/gc-arcfour-tests,
68855         modules/gc-arctwo-tests, modules/gc-des-tests,
68856         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68857         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68858         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68859         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68860         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68861         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
68862         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
68863         test_*_SOURCES.
68864
68865 2006-01-18  Simon Josefsson  <jas@extundo.com>
68866
68867         * modules/socklen (Depends-on): Depend on sys_socket.
68868
68869 2006-01-18  Simon Josefsson  <jas@extundo.com>
68870
68871         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
68872         modules/des-tests, modules/gc-arcfour-tests,
68873         modules/gc-arctwo-tests, modules/gc-des-tests,
68874         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
68875         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
68876         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
68877         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
68878         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
68879         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
68880         $(EXEEXT) to automake TESTS variable, for mingw32.
68881
68882 2006-01-17  Simon Josefsson  <jas@extundo.com>
68883
68884         * modules/socklen (Include): Need sys/socket.h.
68885
68886 2006-01-17  Bruno Haible  <bruno@clisp.org>
68887
68888         * modules/ssize_t (Include): Add <sys/types.h>.
68889
68890 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
68891
68892         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
68893         it's not portable and it doesn't work with cross-compiles.
68894         Problem reported by Bruno Haible.  Fix missing-$ typo in
68895         'test "gl_cv_ignore_unused_libraries" ...' that prevented
68896         -zignore from being used with Sun's C compiler.
68897
68898 2006-01-12  Simon Josefsson  <jas@extundo.com>
68899
68900         * lib/base64.c: Fix warning, reported by Bruno Haible
68901         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
68902
68903 2006-01-12  Bruno Haible  <bruno@clisp.org>
68904
68905         * modules/ldd: New file.
68906         * build-aux/ldd.sh.in: New file.
68907         * MODULES.html.sh (Support for building libraries and executables): Add
68908         ldd.
68909
68910 2006-01-12  Bruno Haible  <bruno@clisp.org>
68911
68912         * m4/ldd.m4: New file.
68913
68914 2006-01-12  Bruno Haible  <bruno@clisp.org>
68915
68916         * gnulib-tool (func_import, func_create_testdir): Don't go into an
68917         endless loop while replacing $auxdir with build-aux.
68918
68919 2006-01-11  Simon Josefsson  <jas@extundo.com>
68920
68921         * lib/stdint_.h (SIZE_MAX): Add missing (.
68922
68923 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
68924
68925         Sync from coreutils.
68926         * lib/md5.c: Fix commentary typos.
68927         (alignof, UNALIGNED_P): No need for a GCC-specific version.
68928         * lib/md5.h (__attribute__): Remove; unused.
68929         * lib/sha1.c: Fix commentary to match md5 better.
68930         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
68931         so that we don't need to worry about alignment.  All uses changed.
68932         This merges the 2005-10-28 md5 change into sha1.
68933
68934 2006-01-11  Jim Meyering  <jim@meyering.net>
68935
68936         Sync from coreutils.
68937         * lib/md5.c (OP): Fix spacing.
68938
68939 2006-01-11  Bruno Haible  <bruno@clisp.org>
68940
68941         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68942         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
68943         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
68944
68945 2006-01-11  Bruno Haible  <bruno@clisp.org>
68946
68947         Ensure automatic ordering between gl_LOCK and gl_ARGP.
68948         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
68949         the "early" section as well.
68950
68951 2006-01-11  Bruno Haible  <bruno@clisp.org>
68952
68953         Avoid "ar: no archive members specified" error on MacOS X.
68954         * gnulib-tool (func_modules_add_dummy): New function.
68955         (func_import, func_create_testdir): Invoke it.
68956
68957 2006-01-11  Bruno Haible  <bruno@clisp.org>
68958
68959         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
68960         with $auxdir in AC_CONFIG_FILES statements.
68961
68962 2006-01-11  Bruno Haible  <bruno@clisp.org>
68963
68964         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68965         Initialize also noinst_HEADERS to empty.
68966
68967 2006-01-11  Bruno Haible  <bruno@clisp.org>
68968
68969         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
68970         variables.
68971         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
68972         autoreconf.
68973
68974 2006-01-11  Bruno Haible  <bruno@clisp.org>
68975
68976         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
68977         overridable by the user.
68978         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
68979
68980 2006-01-10  Simon Josefsson  <jas@extundo.com>
68981
68982         * modules/sys_socket: New file.
68983
68984 2006-01-10  Simon Josefsson  <jas@extundo.com>
68985
68986         * m4/sys_socket_h.m4: New file.
68987
68988 2006-01-10  Simon Josefsson  <jas@extundo.com>
68989
68990         * lib/socket_.h: New file.
68991
68992 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68993
68994         * modules/readutmp (Maintainer): Add myself.
68995
68996 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
68997
68998         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
68999         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
69000         People who are still concerned with buggy memcmp implementations
69001         can invoke gl_FUNC_MEMCMP themselves.
69002
69003 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
69004
69005         * lib/regex_internal.h (BITSET_WORD_BITS):
69006         Work around a bug in 64-bit PGC (before version 6.1-2), where the
69007         preprocessor mishandles large unsigned values as if they were signed.
69008         Problem reported by Claudio Fontana in
69009         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
69010
69011 2006-01-10  Jim Meyering  <jim@meyering.net>
69012
69013         Avoid the double-free (first in fts_read, second in fts_close) that
69014         would occur when an `active' directory is made inaccessible (e.g.,
69015         via chmod a-x) during a traversal.
69016         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
69017         before returning.  Reproduce this failure by
69018         mkdir -p a/b; cd a; chmod a-x . b
69019         Reported by Stavros Passas.
69020
69021         Sync from coreutils.
69022         * lib/sha1.c: Tweak grammar in a comment.
69023
69024 2006-01-10  Jim Meyering  <jim@meyering.net>
69025
69026         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
69027         Patch by Joerg Sonnenberger.
69028
69029 2006-01-10  Bruno Haible  <bruno@clisp.org>
69030
69031         * modules/readutmp: Depend on module free.
69032         * modules/strtok_r: Depend on module restrict.
69033
69034 2006-01-10  Bruno Haible  <bruno@clisp.org>
69035
69036         * modules/gettext (configure.ac): Add an invocation of
69037         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
69038
69039 2006-01-10  Bruno Haible  <bruno@clisp.org>
69040
69041         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
69042         Reported by Werner Lemberg <wl@gnu.org>.
69043
69044 2006-01-10  Bruno Haible  <bruno@clisp.org>
69045
69046         * lib/localcharset.c: Update from GNU gettext.
69047
69048 2006-01-10  Bruno Haible  <bruno@clisp.org>
69049
69050         * lib/argp.h (__const): Remove macro. Use const instead.
69051         * lib/argp-fmtstream.h (__const): Likewise.
69052         * lib/glob_.h (__const): Remove macro.
69053         * lib/glob-libc.h: Use const instead of __const.
69054
69055 2006-01-10  Bruno Haible  <bruno@clisp.org>
69056
69057         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
69058         variable.
69059         Needed to avoid an automake error regarding the 'gettext' module.
69060
69061 2006-01-09  Simon Josefsson  <jas@extundo.com>
69062
69063         * modules/inet_ntop (Depends-on): Add restrict.
69064
69065 2006-01-09  Simon Josefsson  <jas@extundo.com>
69066
69067         * modules/gc-rijndael-tests (License): Put under LGPL.
69068
69069         * modules/gc-des-tests (License): Likewise.
69070
69071         * modules/gc-arcfour-tests (License): Likewise.
69072
69073         * modules/gc-arctwo-tests (License): Likewise.
69074
69075         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
69076
69077         * modules/gc-hmac-sha1-tests (Files): Likewise.
69078
69079         * modules/gc-hmac-md5-tests (License): Likewise.
69080
69081         * modules/gc-sha1-tests (License): Likewise.
69082
69083         * modules/gc-md5-tests (License): Likewise.
69084
69085         * modules/gc-md4-tests (License): Likewise.
69086
69087         * modules/gc-md2-tests (License): Likewise.
69088
69089         * modules/gc-tests (License): Likewise.
69090
69091         * modules/des-tests (License): Likewise.
69092
69093         * modules/md4-tests (License): Likewise.
69094
69095         * modules/md2-tests (License): Likewise.
69096
69097 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69098
69099         Sync from coreutils:
69100
69101         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
69102         * modules/lib-ignore: New file.
69103         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
69104         chdir-safer.m4, lchmod.m4.
69105         * modules/openat: Add mkdirat.c, openat-priv.h.
69106
69107 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69108
69109         Sync from coreutils.
69110         * m4/lib-ignore.m4: New file.
69111         * m4/lchmod.m4: New file.
69112
69113 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69114
69115         Sync from coreutils.
69116         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
69117         for write access: POSIX says that must fail.
69118         * lib/fts.c (diropen): Likewise.
69119         * lib/save-cwd.c (save_cwd): Likewise.
69120         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
69121         well, for minor improvements on hosts that lack O_DIRECTORY.
69122         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
69123         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
69124         Fall back on chown if open failed with EACCES.
69125
69126         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
69127         Report an error at compile-time if only a 1-second nominal clock
69128         resolution is found.
69129
69130         * lib/lchmod.h: New file.
69131         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
69132         (make_dir_parents): Use lchown rather than chown, and
69133         lchmod rather than chmod.
69134
69135         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
69136         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
69137         "proc" reported by n0dalus.
69138
69139         * lib/mountlist.c: Include <limits.h>.
69140         (dev_from_mount_options)
69141         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
69142         New function.  It no longer assumes "dev=" has the System V meaning
69143         on Linux (since it doesn't).  It also parses "dev=" more carefully.
69144         (read_file_system_list)
69145         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
69146         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
69147         dev= in that case.
69148
69149         * lib/posixtm.h (PDS_PRE_2000): New macro.
69150         * lib/posixtm.c (year): Arg is now syntax_bits rather than
69151         allow_century.  All usages changed.  Reject dates outside the range
69152         1969-1999 if PDS_PRE_2000 is used.
69153
69154 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
69155
69156         Sync from coreutils.
69157         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
69158         (Time of day items): Mention the possibility of leap seconds.
69159         Problem reported by Dr. David Alan Gilbert.
69160
69161 2006-01-09  Jim Meyering  <jim@meyering.net>
69162
69163         Sync from coreutils.
69164
69165         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
69166
69167         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
69168
69169         * lib/modechange.c (mode_compile): Reject an invalid mode string
69170         that starts with an octal digit.  From Andreas Gruenbacher.
69171
69172         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
69173         and dup to open_safer and dup_safer, respectively.
69174         (openat_permissive): Fix typo in comment.
69175
69176         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
69177         "gettext.h"; either no longer needed or are guaranteed by openat.h.
69178         (_): Remove; no longer needed.
69179         (openat): Renamed from rpl_openat; no need for rpl_openat
69180         since openat.h renames openat for us.
69181         Replace most of the body with a call to openat_permissive,
69182         to avoid duplicate code.
69183         Port to (probably hypothetical) environments were mode_t is
69184         wider than int.
69185         (openat_permissive): Require mode arg, so that we can check
69186         types better.  Put it just after flags.  Change cwd failure
69187         indicator from pointer-to-bool to pointer-to-errno-value.
69188         All callers changed.
69189         Invoke openat_save_fail and/or openat_restore_fail if
69190         cwd_errno is null, so that openat can call us.
69191         (openat_permissive, fdopendir, fstatat, unlinkat):
69192         Simplify errno handling to avoid some duplicate code,
69193         as it's OK to set errno on success.
69194         * lib/openat.h: Revamp code so that function macros depend on
69195         __OPENAT_PREFIX only, not also on AT_FDCWD.
69196         (openat_ro): Remove.  Caller changed to use openat_permissive.
69197         (openat_permissive): Now a macro, if not a function.
69198         (openat_restore_fail, openat_save_fail): Now always functions,
69199         since mkdirat needs them even if __OPENAT_PREFIX is defined.
69200
69201         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
69202         and openat.c.
69203         * lib/mkdirat.c: Include openat-priv.h.
69204         Remove definitions of macros defined therein.
69205         * lib/openat.c: Likewise.
69206
69207         * lib/mkdirat.c (mkdirat): New file and function.
69208         * lib/openat.h (mkdirat): Declare.
69209
69210         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
69211
69212         * lib/openat.h (openat_permissive): Declare.
69213         (openat_ro): Define.
69214
69215         * lib/openat.c (EXPECTED_ERRNO): New macro.
69216         (openat_permissive): New function -- used in remove.c rewrite.
69217         (all functions): Set errno just before returning, only if there
69218         was an actual failure.
69219         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
69220
69221         Emulate openat-family functions using Linux's procfs, if possible.
69222         Idea and some code based on Ulrich Drepper's glibc changes.
69223
69224         * lib/openat.c: (BUILD_PROC_NAME): New macro.
69225         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
69226         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
69227         before falling back on save_cwd and restore_cwd.
69228         (fdopendir, fstatat, unlinkat): Likewise.
69229
69230         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
69231         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
69232
69233         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
69234         as second argument to va_arg.  Otherwise, some versions of gcc
69235         warn that `if this code is reached, the program will abort'.
69236
69237 2006-01-09  Jim Meyering  <jim@meyering.net>
69238
69239         Sync from coreutils.
69240         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
69241         Require openat-priv.h.
69242
69243 2006-01-09  Bruno Haible  <bruno@clisp.org>
69244
69245         * modules/strnlen (Include): Use strnlen.h.
69246
69247 2006-01-09  Bruno Haible  <bruno@clisp.org>
69248
69249         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
69250
69251 2006-01-09  Bruno Haible  <bruno@clisp.org>
69252
69253         * lib/sysexit_.h (EX_OK): New macro.
69254         Suggested by Martin Lambers <marlam@marlam.de>.
69255
69256 2006-01-09  Bruno Haible  <bruno@clisp.org>
69257
69258         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
69259         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
69260
69261 2006-01-09  Bruno Haible  <bruno@clisp.org>
69262
69263         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
69264         numbers.
69265
69266 2006-01-09  Bruno Haible  <bruno@clisp.org>
69267
69268         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
69269         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
69270         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
69271         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
69272
69273 2006-01-09  Bruno Haible  <bruno@clisp.org>
69274
69275         * build-aux/javacomp.sh.in: New file, moved from lib/.
69276         * modules/javacomp-script (Files): Update.
69277         (configure.ac): Add AC_CONFIG_FILES invocation.
69278         (EXTRA_DIST): Remove variable.
69279
69280         * build-aux/javaexec.sh.in: New file, moved from lib/.
69281         * modules/javaexec (Files): Update.
69282         (configure.ac): Add AC_CONFIG_FILES invocation.
69283         (EXTRA_DIST): Remove javaexec.sh.in.
69284
69285         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
69286         * modules/csharpcomp-script (Files): Update.
69287         (configure.ac): Add AC_CONFIG_FILES invocation.
69288         (EXTRA_DIST): Remove variable.
69289
69290         * build-aux/csharpexec.sh.in: New file, moved from lib/.
69291         * modules/csharpexec (Files): Update.
69292         (configure.ac): Add AC_CONFIG_FILES invocation.
69293         (EXTRA_DIST): Remove csharpexec.sh.in.
69294
69295 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69296
69297         Sync from coreutils.
69298
69299         Add POSIX ACL support
69300         * lib/acl.h (copy_acl, set_acl): Add declarations.
69301         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
69302         systems other than Linux.
69303         (chmod_or_fchmod): New function: use fchmod when possible,
69304         and chmod otherwise.
69305         (file_has_acl): Add a POSIX ACL implementation, with a
69306         Linux-specific subcase.
69307         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
69308         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
69309         acls are unsupported.
69310         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
69311         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
69312         are unsupported.
69313
69314 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
69315
69316         Sync from coreutils.
69317         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
69318
69319 2006-01-07  Bruno Haible  <bruno@clisp.org>
69320
69321         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
69322         gl_EARLY.
69323
69324 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69325
69326         * lib/strftime.c (tzname): Don't declare if it is already #defined.
69327         Problem reported for Mingw by Mark Junker.
69328
69329 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
69330
69331         * README: Gnulib normally doesn't generate a tarball.
69332
69333 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
69334
69335         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
69336         long int, not int, for nanosecond counts, so that people who are
69337         used to POSIX struct timespec won't be surprised.  Reported by Jim
69338         Meyering.
69339
69340 2005-12-28  Bruno Haible  <bruno@clisp.org>
69341
69342         * build-aux/config.rpath: Update from GNU gettext.
69343
69344 2005-12-16  Jim Meyering  <jim@meyering.net>
69345
69346         * modules/fprintftime: New module.
69347         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
69348
69349 2005-12-16  Jim Meyering  <jim@meyering.net>
69350
69351         * m4/fprintftime.m4: New file.
69352
69353 2005-12-16  Jim Meyering  <jim@meyering.net>
69354
69355         * lib/fprintftime.c, lib/fprintftime.h: New files.
69356
69357 2005-12-15  Simon Josefsson  <jas@extundo.com>
69358
69359         * modules/socklen (configure.ac): Fix M4 macro name, to align with
69360         new m4/socklen.m4.
69361
69362 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69363
69364         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
69365         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
69366
69367 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
69368
69369         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
69370         * lib/argp-help.c (fill_in_uparams): Check if the constructed
69371         struct uparams is valid. Fall back to the default values if it is
69372         not.
69373
69374 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69375
69376         * modules/argp (Files): Add argp-pin.c
69377         (Depends-on): dirname
69378         (lib_SOURCES): Add argp-pin.c
69379
69380 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69381
69382         * m4/argp.m4:  Check if program_invocation_name and
69383         program_invocation_short_name are declared and define appropriate
69384         macros if they are not.
69385
69386 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
69387
69388         * lib/argp-help.c (__argp_base_name): New function
69389         (__argp_short_program_name): Rewrite using __argp_base_name
69390         * lib/argp-namefrob.h: Define program_invocation_name and
69391         program_invocation_short_name if requested
69392         (__argp_base_name): Add prototype
69393         * lib/argp-parse.c (argp_def): Use gettext wrappers
69394         (argp_default_parser): Use __argp_base_name
69395         * lib/argp-pin.c: New file. Defines program_invocation_name and
69396         program_invocation_short_name on systems that lack them.
69397
69398 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69399
69400         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
69401         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69402         porting problem reported by Georg Schwarz in
69403         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69404
69405 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
69406
69407         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
69408         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
69409         porting problem reported by Georg Schwarz in
69410         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
69411
69412 2005-12-05  Bruno Haible  <bruno@clisp.org>
69413
69414         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
69415         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
69416         Reported by Mark Junker <mjscod@gmx.de>.
69417
69418 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
69419
69420         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
69421         Use implementation from Albert Chin, with some
69422         comments/corrections by Stepan Kasal and myself.
69423
69424 2005-12-02  Bruno Haible  <bruno@clisp.org>
69425
69426         * gnulib-tool (func_import): Accept GPLed build tool modules when
69427         --lgpl is given.
69428         * modules/csharpcomp-script: New file.
69429         * modules/csharpcomp: Depend on it.
69430         * modules/javacomp-script: New file.
69431         * modules/javacomp: Depend on it.
69432         Suggested by Simon Josefsson.
69433
69434 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
69435
69436         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
69437         statement, to work around an HP-UX 10.20 compiler bug reported by
69438         Peter O'Gorman.
69439
69440 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69441
69442         * modules/savedir (Depends-on): Add openat.
69443
69444 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
69445
69446         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
69447         (uintmax_t) [defined uintmax_t]: Do not declare.
69448         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
69449         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
69450         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
69451         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
69452         sake of portability to weird hosts that C allows (though we don't
69453         know of any practical examples).
69454
69455         * lib/savedir.h (fdsavedir): New decl.
69456         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
69457         contains most of the former guts of savedir.
69458         (savedir): Use savedirstream.
69459         Include "openat.h".
69460
69461 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
69462
69463         * modules/obstack (Files): Add m4/ulonglong.m4.
69464         Problem reported by Davide Angelocola.
69465
69466 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
69467
69468         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
69469         coreutils no longer futzes with rounding modes.
69470
69471 2005-11-14  Jim Meyering  <jim@meyering.net>
69472
69473         * lib/mkstemp-safer.c: Include <config.h>, required for possible
69474         replacement of mkstemp.
69475
69476 2005-11-10  Simon Josefsson  <jas@extundo.com>
69477
69478         * lib/readline.c: Remove EOL.
69479
69480 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69481
69482         * modules/gethrxtime (Depends-on): Add gettime.
69483
69484 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69485
69486         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
69487         or gettimeofday; no longer needed.
69488
69489 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
69490
69491         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
69492         time business.
69493         (gethrxtime) [! (HAVE_NANOUPTIME
69494         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
69495         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
69496         our own approximation.
69497
69498 2005-11-08  Eric Blake  <ebb9@byu.net>
69499
69500         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69501
69502 2005-11-08  Eric Blake  <ebb9@byu.net>
69503
69504         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
69505
69506 2005-11-04  Bruno Haible  <bruno@clisp.org>
69507
69508         * gnulib-tool: Implement --update mode.
69509
69510 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69511
69512         Fix porting problem reported by Theodoros V. Kalamatianos.
69513         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
69514         Don't assume that futimes failing means we must fail.
69515
69516 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
69517
69518         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
69519         variables to suggest the intended function of the PATH_MAX check.
69520
69521 2005-10-30  Kean Johnston  <jkj@sco.com>
69522
69523         Trivial changes to support SCO systems.
69524         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
69525         as PATH_MAX.
69526         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
69527         where __ptr is null when no I/O is pending.
69528
69529 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
69530
69531         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
69532         leave errno alone.  Problem reported by Dmitry V. Levin.
69533
69534 2005-10-28  Simon Josefsson  <jas@extundo.com>
69535
69536         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
69537         Test more.
69538
69539         * tests/test-gc-md2.c, tests/test-md2.c: New files.
69540
69541         * modules/md2, modules/md2-tests: New files.
69542
69543 2005-10-28  Simon Josefsson  <jas@extundo.com>
69544
69545         * m4/inet_ntop.m4: More tests.
69546
69547         * m4/gc-md2.m4, md2.m4: New file.
69548
69549 2005-10-28  Simon Josefsson  <jas@extundo.com>
69550
69551         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
69552         "restrict" keywords, as per POSIX.  Protect the function
69553         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
69554         Don't use K&R prototypes.  Check the sprintf return values.
69555         Re-define EAFNOSUPPORT if not present.  Indent.
69556
69557         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
69558         suggested by Bruno Haible <bruno@clisp.org>.
69559
69560         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
69561
69562         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
69563
69564         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
69565         libgcrypt).
69566
69567         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
69568
69569         * lib/md2.h, lib/md2.c: New files.
69570
69571 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
69572
69573         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
69574         errno alone.  Problem reported by Frederic Jolliton.
69575
69576 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
69577
69578         * modules/verify (License): Change from GPL to LGPL.  This is a
69579         tiny module and there are apparently near-equivalents that are
69580         under the BSD license.
69581
69582 2005-10-24  Simon Josefsson  <jas@extundo.com>
69583
69584         * modules/sha1: Relicense to LGPL.
69585
69586 2005-10-24  Simon Josefsson  <jas@extundo.com>
69587
69588         * lib/md4.h: Shrink buffer size, now that we changed the type.
69589
69590 2005-10-23  Simon Josefsson  <jas@extundo.com>
69591
69592         * gnulib-tool (func_import): Fix --tests-base.
69593
69594 2005-10-22  Simon Josefsson  <jas@extundo.com>
69595
69596         * modules/arcfour (Depends-on): Need stdint.
69597
69598 2005-10-22  Simon Josefsson  <jas@extundo.com>
69599
69600         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
69601         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
69602
69603 2005-10-22  Simon Josefsson  <jas@extundo.com>
69604
69605         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
69606         suggested by Bruno Haible <bruno@clisp.org>.
69607
69608 2005-10-22  Simon Josefsson  <jas@extundo.com>
69609
69610         * lib/crc.h: Include stddef.h, for size_t.
69611
69612 2005-10-22  Simon Josefsson  <jas@extundo.com>
69613
69614         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
69615         arcfour_context struct (simplify test vector testing in GNU
69616         Shishi).
69617
69618 2005-10-21  Simon Josefsson  <jas@extundo.com>
69619
69620         * modules/des, modules/des-tests: New files.
69621
69622         * modules/gc-des, modules/gc-des-tests: New files.
69623
69624         * tests/test-des.c, tests/test-gc-des.c: New file.
69625
69626 2005-10-21  Simon Josefsson  <jas@extundo.com>
69627
69628         * modules/arctwo, modules/arctwo-tests: New files.
69629
69630         * tests/test-arctwo.c: New file.
69631
69632         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
69633
69634         * tests/test-gc-arctwo.c: New file.
69635
69636 2005-10-21  Simon Josefsson  <jas@extundo.com>
69637
69638         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
69639         Bruno Haible <bruno@clisp.org>.
69640
69641         * m4/gc-des.m4: New file.
69642
69643 2005-10-21  Simon Josefsson  <jas@extundo.com>
69644
69645         * m4/arctwo.m4: New file.
69646
69647         * m4/gc-arctwo.m4: New file.
69648
69649 2005-10-21  Simon Josefsson  <jas@extundo.com>
69650
69651         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
69652         block.
69653
69654 2005-10-21  Simon Josefsson  <jas@extundo.com>
69655
69656         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
69657         <bruno@clisp.org>.
69658
69659         * lib/hmac-sha1.c (hmac_sha1): Likewise.
69660
69661         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
69662         Bruno Haible <bruno@clisp.org>.
69663
69664         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
69665         <bruno@clisp.org>.
69666
69667 2005-10-21  Simon Josefsson  <jas@extundo.com>
69668
69669         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
69670
69671 2005-10-21  Simon Josefsson  <jas@extundo.com>
69672
69673         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
69674
69675 2005-10-21  Simon Josefsson  <jas@extundo.com>
69676
69677         * lib/des.h, lib/des.c: New files.
69678
69679         * lib/gc-gnulib.c: Support DES.c
69680
69681 2005-10-21  Simon Josefsson  <jas@extundo.com>
69682
69683         * lib/arctwo.h, lib/arctwo.c: New files.
69684
69685         * lib/gc-gnulib.c: Support ARCTWO.
69686
69687 2005-10-21  Simon Josefsson  <jas@extundo.com>
69688
69689         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
69690         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
69691
69692 2005-10-21  Simon Josefsson  <jas@extundo.com>
69693
69694         * gnulib-tool (func_import, func_create_testdir): Define automake
69695         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
69696         Makefile.am snippet),
69697         suggested by Bruno Haible <bruno@clisp.org>.
69698
69699         * modules/gc (Makefile.am): Use it.
69700
69701 2005-10-21  Bruno Haible  <bruno@clisp.org>
69702
69703         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
69704         patch.
69705
69706 2005-10-19  Simon Josefsson  <jas@extundo.com>
69707
69708         * tests/test-gc-rijndael.c: New file.
69709
69710         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
69711
69712 2005-10-19  Simon Josefsson  <jas@extundo.com>
69713
69714         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
69715         interface too.
69716
69717 2005-10-19  Simon Josefsson  <jas@extundo.com>
69718
69719         * tests/test-gc-arcfour.c: New file.
69720
69721         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
69722
69723 2005-10-19  Simon Josefsson  <jas@extundo.com>
69724
69725         * modules/gc-md4, modules/gc-md4-tests: New file.
69726
69727         * tests/test-gc-md4.c: New file.
69728
69729 2005-10-19  Simon Josefsson  <jas@extundo.com>
69730
69731         * m4/gc-md4.m4: New file.
69732
69733 2005-10-19  Simon Josefsson  <jas@extundo.com>
69734
69735         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
69736         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
69737         <kasal@ucw.cz>.
69738
69739 2005-10-19  Simon Josefsson  <jas@extundo.com>
69740
69741         * m4/gc-arcfour.m4: New file.
69742
69743         * m4/gc-rijndael.m4: New file.
69744
69745 2005-10-19  Simon Josefsson  <jas@extundo.com>
69746
69747         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
69748
69749 2005-10-19  Simon Josefsson  <jas@extundo.com>
69750
69751         * lib/gc-gnulib.c: Support ARCFOUR.
69752
69753 2005-10-19  Simon Josefsson  <jas@extundo.com>
69754
69755         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
69756         support.
69757
69758         * lib/gc.h: Add ECB enum type.
69759
69760         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
69761
69762 2005-10-18  Simon Josefsson  <jas@extundo.com>
69763
69764         * tests/test-md5.c: New file.
69765
69766         * modules/md5-tests: New file.
69767
69768 2005-10-18  Simon Josefsson  <jas@extundo.com>
69769
69770         * tests/test-md4.c: New file.
69771
69772         * modules/md4, modules/md4-tests: New files.
69773
69774 2005-10-18  Simon Josefsson  <jas@extundo.com>
69775
69776         * m4/md4.m4: New file.
69777
69778 2005-10-18  Simon Josefsson  <jas@extundo.com>
69779
69780         * lib/md4.h, lib/md4.c: New files, based on md5.?.
69781
69782 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
69783
69784         * gnulib-tool (func_create_testdir): Omit the second check whether
69785         BUILT_SOURCES in nonempty.
69786
69787 2005-10-17  Simon Josefsson  <jas@extundo.com>
69788
69789         * tests/test-rijndael.c: New file.
69790
69791 2005-10-17  Simon Josefsson  <jas@extundo.com>
69792
69793         * modules/sha1: Depend on stdint instead of md5.
69794
69795         * modules/md5: Depend on stdint, remove uint32_t.
69796
69797 2005-10-17  Simon Josefsson  <jas@extundo.com>
69798
69799         * modules/gc-sha1-tests: New file.
69800
69801         * tests/test-gc-sha1.c: New file.
69802
69803 2005-10-17  Simon Josefsson  <jas@extundo.com>
69804
69805         * m4/md5.m4: Remove call to uint32_t.m4.
69806
69807 2005-10-17  Simon Josefsson  <jas@extundo.com>
69808
69809         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
69810
69811         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
69812         md5.h.
69813
69814         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
69815
69816         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
69817
69818 2005-10-17  Simon Josefsson  <jas@extundo.com>
69819
69820         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
69821
69822 2005-10-17  Simon Josefsson  <jas@extundo.com>
69823
69824         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
69825
69826 2005-10-17  Simon Josefsson  <jas@extundo.com>
69827
69828         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
69829
69830         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
69831
69832 2005-10-17  Bruno Haible  <bruno@clisp.org>
69833
69834         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
69835         that it can also be used in a test.
69836
69837 2005-10-16  Bruno Haible  <bruno@clisp.org>
69838
69839         * gnulib-tool (func_emit_tests_Makefile_am): Also define
69840         TESTS_ENVIRONMENT, so that individual tests can augment it.
69841
69842         * gnulib-tool (func_create_testdir): Use an intermediate target for
69843         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
69844         macros, like $(ALLOCA_H), which cannot be passed through the command
69845         line.
69846
69847 2005-10-15  Simon Josefsson  <jas@extundo.com>
69848
69849         * modules/rijndael-tests: New file.
69850
69851         * modules/rijndael: New file.
69852
69853 2005-10-15  Simon Josefsson  <jas@extundo.com>
69854
69855         * m4/rijndael.m4: New file.
69856
69857 2005-10-15  Simon Josefsson  <jas@extundo.com>
69858
69859         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
69860
69861         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
69862
69863 2005-10-14  Simon Josefsson  <jas@extundo.com>
69864
69865         * tests/test-arcfour.c: New file.
69866
69867         * modules/arcfour, modules/arcfour-tests: New files.
69868
69869 2005-10-14  Simon Josefsson  <jas@extundo.com>
69870
69871         * m4/arcfour.m4: New file.
69872
69873 2005-10-14  Simon Josefsson  <jas@extundo.com>
69874
69875         * lib/arcfour.h, lib/arcfour.c: New files.
69876
69877 2005-10-14  Roland McGrath  <roland@redhat.com>
69878
69879         Import from libc.  [BZ #1331]
69880         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
69881         macro argument.
69882         Reported by Matej Vela <vela@debian.org>.
69883
69884 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69885
69886         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
69887         include <wchar.h>; no longer needed.
69888
69889 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
69890
69891         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
69892
69893 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
69894         and  Ulrich Drepper  <drepper@redhat.com>
69895
69896         Import from libc.
69897         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
69898         instead of inline stream orientation test and two separate
69899         function calls.  Pay no attention to USE_IN_LIBIO.
69900
69901 2005-10-13  Simon Josefsson  <jas@extundo.com>
69902
69903         * modules/gc-hmac-md5-tests: New file.
69904
69905         * tests/test-gc-hmac-sha1.c: New file.
69906
69907         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
69908
69909         * modules/gc-hmac-md5-tests: New file.
69910
69911         * tests/test-gc-md5.c: New file.
69912
69913         * modules/gc-md5-tests: New file.
69914
69915 2005-10-13  Simon Josefsson  <jas@extundo.com>
69916
69917         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
69918         Move memory allocation outside of loop.
69919
69920 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
69921
69922         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
69923         intermediate directory is in a read-only file system.  Problem
69924         reported by Eric Blake.
69925
69926 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
69927
69928         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
69929
69930 2005-10-12  Simon Josefsson  <jas@extundo.com>
69931
69932         * tests/test-hmac-sha1.c: New file.
69933
69934         * modules/hmac-sha1-tests: New file.
69935
69936         * modules/hmac-sha1: New file.
69937
69938 2005-10-12  Simon Josefsson  <jas@extundo.com>
69939
69940         * modules/gc-sha1: New file.
69941
69942 2005-10-12  Simon Josefsson  <jas@extundo.com>
69943
69944         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
69945
69946         * tests/test-gc-pbkdf2-sha1.c: New file.
69947
69948 2005-10-12  Simon Josefsson  <jas@extundo.com>
69949
69950         * modules/gc-md5, modules/gc-hmac-md5: New files.
69951
69952         * modules/gc (Files): Remove md5, memxor and hmac files.
69953
69954 2005-10-12  Simon Josefsson  <jas@extundo.com>
69955
69956         * m4/gc-pbkdf2-sha1.m4: New file.
69957
69958         * m4/gc-hmac-sha1.m4: New file.
69959
69960         * m4/gc-sha1: New file.
69961
69962         * m4/hmac-sha1.m4: New file.
69963
69964 2005-10-12  Simon Josefsson  <jas@extundo.com>
69965
69966         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
69967
69968         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
69969
69970 2005-10-12  Simon Josefsson  <jas@extundo.com>
69971
69972         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
69973         suggested by Bruno Haible <bruno@clisp.org>.
69974
69975 2005-10-12  Simon Josefsson  <jas@extundo.com>
69976
69977         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
69978
69979 2005-10-12  Simon Josefsson  <jas@extundo.com>
69980
69981         * lib/gc-pbkdf2-sha1.c: New file.
69982
69983         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
69984
69985 2005-10-12  Simon Josefsson  <jas@extundo.com>
69986
69987         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
69988
69989         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
69990
69991 2005-10-12  Simon Josefsson  <jas@extundo.com>
69992
69993         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
69994         GC_USE_HMAC_MD5, respectively.
69995
69996         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
69997         (gc_md5): Fix typo.
69998
69999         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
70000
70001         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
70002
70003         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
70004
70005 2005-10-12  Bruno Haible  <bruno@clisp.org>
70006
70007         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
70008         Reported by Stepan Kasal <kasal@ucw.cz>.
70009
70010 2005-10-11  Simon Josefsson  <jas@extundo.com>
70011
70012         * tests/test-crc.c: New file.
70013
70014         * modules/crc, modules/crc-tests: New files.
70015
70016 2005-10-11  Simon Josefsson  <jas@extundo.com>
70017
70018         * m4/crc.m4: New file.
70019
70020 2005-10-11  Simon Josefsson  <jas@extundo.com>
70021
70022         * lib/gc.h: Add gc_hash and gc_hash_buffer.
70023
70024         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
70025
70026         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
70027
70028 2005-10-11  Simon Josefsson  <jas@extundo.com>
70029
70030         * lib/crc.h, lib/crc.c: New files.
70031
70032         * lib/gc.h (gc_hash_buffer): Add doc.
70033
70034 2005-10-11  Bruno Haible  <bruno@clisp.org>
70035
70036         * modules/c-strcasestr: New file.
70037         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
70038
70039 2005-10-11  Bruno Haible  <bruno@clisp.org>
70040
70041         * modules/c-strcase: New file.
70042         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
70043
70044 2005-10-11  Bruno Haible  <bruno@clisp.org>
70045
70046         * lib/strcasecmp.c: Include limits.h.
70047         (strcasecmp): Avoid integer overflow on exotic platforms.
70048         * lib/strncasecmp.c: Include limits.h.
70049         (strncasecmp): Avoid integer overflow on exotic platforms.
70050         Reported by Paul Eggert.
70051
70052 2005-10-11  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/c-strcasestr.h: New file, from GNU gettext.
70055         * lib/c-strcasestr.c: New file, from GNU gettext.
70056
70057 2005-10-11  Bruno Haible  <bruno@clisp.org>
70058
70059         * lib/c-strcase.h: New file, from GNU gettext.
70060         * lib/c-strcasecmp.c: New file, from GNU gettext.
70061         * lib/c-strncasecmp.c: New file, from GNU gettext.
70062
70063 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * modules/mempcpy (License): GPL -> LGPL.
70066         * modules/strchrnul (License): Likewise.
70067         * modules/sysexits (License): Likewise.
70068
70069 2005-10-08  Simon Josefsson  <jas@extundo.com>
70070
70071         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
70072
70073 2005-10-07  Simon Josefsson  <jas@extundo.com>
70074
70075         * m4/memxor.m4: Remove gl_C_RESTRICT call.
70076
70077 2005-10-06  Simon Josefsson  <jas@extundo.com>
70078
70079         * tests/test-hmac-md5.c: New file.
70080
70081         * modules/hmac-md5-tests: New file.
70082
70083         * modules/hmac-md5: New file.
70084
70085 2005-10-06  Simon Josefsson  <jas@extundo.com>
70086
70087         * m4/hmac-md5.m4: New file.
70088
70089         * m4/memxor.m4: Require gl_C_RESTRICT.
70090
70091 2005-10-06  Simon Josefsson  <jas@extundo.com>
70092
70093         * lib/memxor.c (memxor): Avoid casts and warnings.
70094
70095 2005-10-06  Simon Josefsson  <jas@extundo.com>
70096
70097         * lib/hmac-md5.c: New file.
70098
70099         * lib/hmac.h: New file.
70100
70101 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
70102
70103         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
70104         promotes to int, not unsigned int, to catch the AIX 5.3
70105         compiler bug.
70106
70107 2005-10-05  Simon Josefsson  <jas@extundo.com>
70108
70109         * modules/memxor: New file.
70110
70111         * modules/iconv (Files): Move config.rpath to havelib, it is used
70112         there.
70113
70114         * modules/havelib (Files): Add config.rpath.
70115
70116 2005-10-05  Simon Josefsson  <jas@extundo.com>
70117
70118         * m4/memxor.m4: New file.
70119
70120 2005-10-05  Simon Josefsson  <jas@extundo.com>
70121
70122         * lib/memxor.c (memxor): Fix compiler error.
70123
70124         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
70125         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
70126
70127         * lib/memxor.h, lib/memxor.c: New files.
70128
70129         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
70130         we assume all systems have it, suggested by Jim Meyering
70131         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
70132         any systems lack sys/socket.h; mingw32 is known to lack it, but we
70133         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
70134         same reasons.
70135
70136 2005-10-05  Simon Josefsson  <jas@extundo.com>
70137
70138         * config/srclist.txt: Add glibc bug 1423 for md5.h.
70139
70140 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
70141
70142         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
70143         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
70144         needed, since the source code now assumes these .h files.
70145
70146 2005-10-05  Derek Price  <derek@ximbiot.com>
70147
70148         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
70149
70150 2005-10-05  Bruno Haible  <bruno@clisp.org>
70151
70152         * modules/stdint (License): Change to LGPL.
70153
70154 2005-10-04  Simon Josefsson  <jas@extundo.com>
70155
70156         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
70157         D. Baushke" <mdb@gnu.org>.
70158
70159 2005-10-04  Bruno Haible  <bruno@clisp.org>
70160
70161         * lib/verify.h (verify_true): Provide alternative definition for C++.
70162
70163 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
70164
70165         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
70166         (SSIZE_MAX): New macro, if not already defined.
70167         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
70168         than 2 GiB.
70169
70170 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70171
70172         Sync from coreutils.
70173         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
70174         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
70175         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
70176         ULLONG_MAX doesn't work with 2.7.2.1.
70177
70178 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70179
70180         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
70181         From Ben Pfaff.
70182
70183         * modules/exclude (Depends-on): Depend on verify.
70184         * modules/strtoimax (Depends-on): Likewise.
70185         * modules/utimecmp (Depends-on): Likewise.
70186
70187 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
70188
70189         * lib/exclude.c: Include verify.h.
70190         (verify): Remove.  All callers changed to use verify.h's version.
70191         * lib/strtoimax.c: Likewise.
70192         * lib/utimecmp.c: Likewis.e
70193
70194         Sync from coreutils.
70195         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
70196         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
70197         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
70198         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
70199         bother returning ENOSYS if settimeofday or stime fails; just let
70200         them return whatever errno they want to return.
70201         * lib/utimens.c: Include unistd.h, for dup2.
70202         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
70203         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
70204
70205 2005-10-02  Jim Meyering  <jim@meyering.net>
70206
70207         Sync from coreutils.
70208         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
70209         from glibc-2.2.5 that fails for read-only files.
70210
70211 2005-10-02  Jim Meyering  <jim@meyering.net>
70212
70213         Sync from coreutils.
70214         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
70215         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
70216         `#if HAVE_CONFIG_H'.
70217         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
70218         Remove AT_FDCWD test.
70219         Do not consume the fd unless successful.
70220         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
70221         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
70222         block, so that we don't even try to compile it if settimeofday is
70223         available.  This works around a compilation failure on OSF1 V5.1,
70224         due to stime requiring a `long int*' while tv_sec is `int'.
70225
70226 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
70227
70228         Sync from coreutils.
70229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
70230         against `yes', rather than just testing for nonempty.
70231
70232 2005-10-01  Simon Josefsson  <jas@extundo.com>
70233
70234         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
70235         and Darwin.
70236
70237         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
70238         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
70239         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
70240         freeaddrinfo and gai_strerror are declared by the POSIX headers.
70241         Check if struct addrinfo is declared.
70242
70243 2005-10-01  Simon Josefsson  <jas@extundo.com>
70244
70245         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
70246         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
70247         AI_* and EAI_* definitions.  Protect function declarations.
70248
70249 2005-10-01  Jim Meyering  <jim@meyering.net>
70250
70251         Sync from coreutils.
70252
70253         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
70254         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
70255         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
70256         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70257         in the inet and nsl libraries.  Required on Solaris 5.7.
70258
70259 2005-10-01  Jim Meyering  <jim@meyering.net>
70260
70261         Sync from coreutils.
70262         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
70263         in the inet and nsl libraries.  Required on Solaris 5.7.
70264
70265 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
70266
70267         * lib/getdelim.c (getdelim): Remove unused variables.
70268
70269 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
70270
70271         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
70272         so that the code works even with ancient cpp.  Portability problem
70273         with GCC 2.7.2.1 reported by Thomas M.Ott.
70274
70275 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
70276
70277         * modules/regex (Depends-on): Add strcase.
70278
70279         * modules/gethostname (Licence): Change from GPL to LGPL, since
70280         gethostname.c is a trivial implementation of a standard library
70281         function.
70282         * modules/poll (License): Change from GPL to LGPL, since it's
70283         derived from LGPL code.
70284
70285 2005-09-27  Jim Meyering  <jim@meyering.net>
70286
70287         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
70288         HAVE_CONFIG_H.
70289
70290         * lib/intprops.h (signed_type_or_expr__): Define.
70291         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
70292         for unsigned types.
70293
70294 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * lib/verify.h (verify_expr): Remove, replacing with:
70297         (verify_true): New macro that returns true instead of void.
70298         (verify_type__): Remove.
70299         (verify): Use verify_true rather than verify_type__.
70300
70301 2005-09-26  Bruno Haible  <bruno@clisp.org>
70302
70303         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
70304         is necessary.
70305         (lib_SOURCES): Remove mbchar.c.
70306         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
70307         (Files): Add m4/mbrtowc.m4.
70308         * modules/mbiter: Likewise.
70309         * modules/mbuiter: Likewise.
70310
70311 2005-09-26  Bruno Haible  <bruno@clisp.org>
70312
70313         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
70314         compile mbchar.c if they are not both present.
70315         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
70316         * m4/mbiter.m4 (gl_MBITER): Likewise.
70317         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
70318         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
70319         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
70320
70321 2005-09-25  Jim Meyering  <jim@meyering.net>
70322
70323         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
70324         also uses socklen_t.
70325
70326 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
70327
70328         * lib/utimens.c (ENOSYS): Define if not already defined.
70329         (futimens): Support having a null PATH if the file descriptor
70330         is nonnegative.
70331
70332         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
70333         Remove.
70334         (__attribute): Define to empty unless GCC 3.1 or later.
70335         This works around a core dump on OpenBSD 3.4, which has GCC
70336         2.95.3, which dumps core when given __attribute__(()).  It also
70337         simplifies other tests, since we really don't want to bother with
70338         worrying about which ancient version of GCC supported what.
70339         Original problem reported by Yoann Vandoorselaere, with part of
70340         the fix suggested by Derek Price.
70341
70342 2005-09-24  Jim Meyering  <jim@meyering.net>
70343
70344         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
70345         so we can once again use a positive bitfield width of 1 -- now we
70346         don't have to explain why we were using a bitfield width of 2.
70347
70348 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70349
70350         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
70351         and similarly for the other external symbols.  Problem reported
70352         by James Gallager.
70353
70354         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
70355         bug reported by Jim Meyering.
70356
70357         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
70358         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
70359         not needed, since socklen is a prerequisite module.
70360
70361 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
70362
70363         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
70364         Problem reported by Eric Blake.
70365         (getaddrinfo): Initialize se so that it's not garbage.
70366         Redo internal storage allocation so that it doesn't make unportable
70367         assumptions about alignment.
70368         Fix a memory leak.
70369
70370         * lib/utimens.c (futimens): Use futimesat if available.
70371         Prefer it to futimes since it doesn't have the futimes bug.
70372
70373         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
70374         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
70375         Instead, declare a function that returns a pointer to an array,
70376         and use verify_type__ to declare the size of the array.
70377         Problem and germ of a solution reported by Bruno Haible.
70378         (verify_type__): Use 2, not 1, for bitfield size, to avoid
70379         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
70380
70381 2005-09-23  Jim Meyering  <jim@meyering.net>
70382
70383         Sync from coreutils.
70384         Correct build failure (socklen_t not defined) on at least
70385         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
70386         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
70387
70388 2005-09-23  Jim Meyering  <jim@meyering.net>
70389
70390         * modules/getaddrinfo (Depends-on): Add socklen.
70391
70392 2005-09-23  Bruno Haible  <bruno@clisp.org>
70393
70394         * tests/test-verify.c: New file.
70395
70396 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70397
70398         Sync from coreutils.
70399
70400         * modules/argmatch (Depends-on): Add verify.
70401         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
70402         unistd-safer.
70403         * modules/save-cwd (Depends-on): Likewise.
70404
70405         * modules/openat (Files): Add lib/openat-die.c.
70406         (Depends-on): Remove error, exitfail.
70407         Add dirname.
70408
70409         * modules/verify: New file.
70410         * MODULES.html.sh (Diagnostics <assert.h>): New section,
70411         with "verify" module.
70412
70413 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70414
70415         Sync from coreutils.
70416
70417         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
70418         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
70419         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
70420         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
70421         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
70422         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
70423         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
70424         Don't bother checking for string.h, stdlib.h, unistd.h.
70425         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
70426         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
70427         module's job.
70428         * m4/jm-macros.m4 (gl_MACROS): Likewise.
70429         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
70430
70431         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
70432         (gl_GETDATE): Use it.
70433
70434         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
70435
70436 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70437
70438         Sync from coreutils.
70439
70440         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
70441         stat-time.h.
70442         * lib/argmatch.h: Include verify.h
70443         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
70444         (ARGMATCH_ASSERT): Remove; unused.
70445         * lib/canonicalize.c: Assume STDC_HEADERS.
70446         * lib/exclude.c: Include "strcase.h".
70447         * lib/regex_internal.h [!defined _LIBC]: Likewise.
70448         * lib/getusershell.c: Include stdio--.h rather than stdio.h
70449         and stdio-safer.h.
70450         (getusershell): Call fopen, not fopen_safer.
70451         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
70452         Do not include unistd-safer.h.
70453         (save_cwd): Don't call fd_safer; no longer needed
70454         now that we include fcntl--.h.
70455
70456         * lib/getdate.y (relative_time): New type.
70457         (RELATIVE_TIME_0): New constant.
70458         (parser_control): Use relative_time instead of doing it ourselves.
70459         (%union): Add new relative_time rel member.
70460         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
70461         Now typeless.
70462         (relunit, relunit_snumber): Now of type rel.
70463         (zone, rel, relunit, get_date): Adjust to above changes.
70464
70465         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
70466         Do not include unistd-safer.h.
70467         (getloadavg): Don't call fd_safer; no longer needed
70468         now that we include fcntl--.h.
70469
70470         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
70471         (make_dir_parents): Treat ENOSYS like EEXIST.
70472
70473         Improve quality of diagnostics on restore_cwd failure.
70474         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
70475         (make_dir_parents): Last arg is now int * (for errno), not bool *.
70476         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
70477         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
70478         each time through the loop.  Do not diagnose restore_cwd failure;
70479         that is the caller's job (and perhaps the caller does not care).
70480
70481         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
70482         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
70483         If the file already exists but is not a directory, don't bother
70484         to try to make its parents.
70485         Close potential file descriptor leak if we can't chdir("/") (!).
70486         Don't always return true if chdir($PWD) fails; return true only
70487         if the requested action was done successfully (except for the
70488         chdir($PWD)).
70489         Don't log final directory unless we actually made it.
70490         Refactor to avoid duplicate code to fix up permissions.
70491         Don't attempt to fix up parent permissions if chdir($PWD) fails.
70492
70493         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
70494         to make it a bit faster and (I hope) clearer.
70495         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
70496         Fix bug in formats like %2N.
70497
70498         * lib/verify.h: New file.
70499
70500 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
70501
70502         Sync from coreutils.
70503         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
70504
70505 2005-09-22  Jim Meyering  <jim@meyering.net>
70506
70507         Sync from coreutils.
70508
70509         * m4/lstat.m4 (gl_FUNC_LSTAT):
70510         Use AC_LIBSOURCES to require lstat.c and lstat.h.
70511         Remove obsolete comment.
70512         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
70513         * m4/xstrtod.m4: Likewise.
70514
70515         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
70516
70517 2005-09-22  Jim Meyering  <jim@meyering.net>
70518
70519         Sync from coreutils.
70520
70521         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
70522
70523         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
70524         the .tm_year member, since otherwise gcc-4.0 would now warn about
70525         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
70526
70527         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
70528         order to avoid an unsuppressible warning from gcc on 64-bit systems.
70529
70530         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
70531         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
70532         when run in a time zone for which daylight savings time is in effect
70533         for the starting date.
70534
70535         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
70536         stop us from restricting permissions of just-created absolute-named
70537         directories.
70538         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
70539         to restore initial working directory.
70540         * lib/mkdir-p.c (make_dir_parents): New parameter:
70541         different_working_dir, to tell caller if/when we change the working
70542         directory and are unable to return to the initial one.
70543         * lib/mkdir-p.h (make_dir_parents): Update prototype.
70544         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
70545         `return false'.  This fixes a bug introduced on 2004-07-30.
70546
70547         * lib/openat.c (fdopendir): Be sure to close the supplied
70548         file descriptor before returning.  This makes our replacement
70549         implementation a little closer to Solaris's, where fdopendir
70550         ties the file descriptor to the returned DIR* pointer.
70551         * lib/openat.c (unlinkat): New function.
70552         * lib/openat.h (unlinkat): Add prototype.
70553         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
70554         (openat_restore_fail): Rename from openat_restore_die.
70555         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
70556
70557         Provide an alternative to exiting immediately upon save_cwd or
70558         restore_cwd failure.  Now, an application can arrange e.g.,
70559         to perform a longjump in that case.
70560         * lib/openat.c: Include dirname.h.
70561         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
70562         (rpl_openat, fdopendir, fstatat): Call openat_save_die
70563         and openat_restore_die rather than calling error directly.
70564         Don't include "error.h" or "exitfail.h"; they're no longer needed.
70565
70566         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
70567         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
70568         define.
70569
70570         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
70571         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
70572                             int utc, int nanoseconds);
70573         Background:
70574         date should not have to allocate a megabyte of virtual memory to
70575         handle a format argument like +%1048575T.  When implemented with
70576         strftime, it must allocate such a buffer, use strftime to fill it
70577         in, print it, then free it.
70578         With fprintftime, it simply prints everything and exits.
70579         With no need for memory allocation, that's one fewer way to fail.
70580         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
70581         optional field width, not before, so we accept %9:z, not %:9z.
70582         (my_strftime): Be sure to use L_('x') for literals.
70583
70584         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
70585         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
70586         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
70587         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
70588         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
70589         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
70590         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
70591         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
70592         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
70593         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
70594         * lib/xgethostname.c, lib/xreadlink.c:
70595         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
70596
70597         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
70598         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
70599         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
70600         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
70601         and don't include <sys/file.h>).
70602
70603 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
70604
70605         Sync from coreutils.
70606
70607         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
70608         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
70609         [!LDAV_DONE]: Avoid unused variable warning.
70610
70611 2005-09-21  Bruno Haible  <bruno@clisp.org>
70612
70613         * lib/unicodeio.h (unicode_to_mb): New declaration.
70614
70615 2005-09-20  Derek Price  <derek@ximbiot.com>
70616
70617         * lib/getaddrinfo.c: Don't include <netdb.h> included from
70618         getaddrinfo.h.
70619
70620 2005-09-20  Bruno Haible  <bruno@clisp.org>
70621
70622         * gnulib-tool: Remove trailing slashes from the values specified for
70623         --source-base, --m4-base, --tests-base, --aux-dir.
70624         Suggested by Simon Josefsson <jas@extundo.com>.
70625
70626 2005-09-20  Bruno Haible  <bruno@clisp.org>
70627
70628         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
70629         func_modules_to_filelist, func_import, func_create_testdir): Make all
70630         sorting results locale-independent, so that gnulib-cache.m4 doesn't
70631         change when gnulib-tool is invoked in a different locale.
70632
70633 2005-09-19  Simon Josefsson  <jas@extundo.com>
70634
70635         * m4/socklen.m4: Fix typo.
70636
70637 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70638
70639         Use a consistent style for including <config.h>.
70640         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
70641         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
70642         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
70643         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
70644         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
70645         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
70646         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
70647         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
70648         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
70649         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
70650         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
70651         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
70652         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
70653         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
70654         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
70655         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
70656         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
70657         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
70658         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
70659         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
70660         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
70661         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
70662         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
70663         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
70664         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
70665         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
70666         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
70667         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
70668         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
70669         lib/xstrtoumax.c, lib/yesno.c:
70670         Standardize inclusion of config.h.
70671         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
70672         lib/inttostr.h:  Removed inclusion of config.h from header files.
70673         * lib/inttostr.c:  Adjusted in-tree users.
70674         * lib/timespec.h: Remove superfluous warning to include config.h.
70675         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
70676         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
70677         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
70678         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
70679         config.h with HAVE_CONFIG_H.
70680
70681 2005-09-19  Jim Meyering  <jim@meyering.net>
70682
70683         * modules/pathmax (License): Change to LGPL.
70684
70685 2005-09-19  Derek Price  <derek@ximbiot.com>
70686
70687         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
70688
70689 2005-09-19  Bruno Haible  <bruno@clisp.org>
70690
70691         * gnulib-tool (import): Provide default for --tests-base.
70692
70693 2005-09-19  Bruno Haible  <bruno@clisp.org>
70694
70695         * doc/quote.texi: New file, extracted from gnulib.texi.
70696         * doc/ctime.texi: New file, extracted from gnulib.texi.
70697         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
70698         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
70699         * doc/gnulib.texi: Include them.
70700
70701 2005-09-18  Bruno Haible  <bruno@clisp.org>
70702
70703         Portability fix.
70704         * gnulib-tool (func_readlink): New function.
70705         (func_ln_if_changed): Use it.
70706
70707 2005-09-18  Bruno Haible  <bruno@clisp.org>
70708
70709         * gnulib-tool: Support --with-tests also with --import.
70710         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
70711         (func_import): Use variables $testsbase and $inctests. Emit a
70712         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
70713         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
70714         SUBDIRS += $testsdir.
70715         (func_create_testdir): Update.
70716
70717 2005-09-18  Bruno Haible  <bruno@clisp.org>
70718
70719         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
70720         instead of $dry_run.
70721         (func_cp_if_changed, func_mv_if_changed): Remove functions.
70722         (func_ln_if_changed): Don't handle dry-run here.
70723         (func_import): In dry-run mode, detect more precisely which actions
70724         would be performed, and don't use "...ing" verbs.
70725
70726 2005-09-18  Bruno Haible  <bruno@clisp.org>
70727
70728         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
70729         (func_import): Use join on two temporary files instead of three nested
70730         loops, in order to determine which files are new or old.
70731
70732 2005-09-18  Bruno Haible  <bruno@clisp.org>
70733
70734         * gnulib-tool (func_import): Comment out code that spits out the
70735         new files with --dry-run.
70736
70737 2005-09-18  Bruno Haible  <bruno@clisp.org>
70738
70739         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
70740
70741 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70742
70743         * lib/stat-time.h: New file.
70744         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
70745         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
70746         in a different way.
70747         (timespec_cmp): New function.
70748         * lib/utimecmp.c: Include stat-time.h.
70749         (SYSCALL_RESOLUTION): Depend on whether various struct stat
70750         members exist, not on the obsolescent ST_MTIM_NSEC.
70751         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
70752
70753 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
70756
70757 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
70758
70759         * MODULES.html.sh (File system functions): Add stat-time.
70760         * modules/stat-time: New file.
70761         * modules/timespec (Files): Remove m4/st_mtim.m4; this
70762         is now done in a different way, by the stat-time module.
70763         * modules/utimecmp (Depends-on): Add stat-time.
70764
70765 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70766
70767         * m4/st_mtim.m4: Remove.  Superseded by...
70768         * m4/stat-time.m4: New file.
70769         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
70770         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
70771
70772 2005-09-15  Derek Price  <derek@ximbiot.com>
70773
70774         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
70775
70776 2005-09-15  Derek Price  <derek@ximbiot.com>
70777
70778         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
70779         * lib/regex_internal.c: Ditto, using this...
70780         (__GNUC_PREREQ): ...new macro.
70781         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
70782         using...
70783         (__GNUC_PREREQ): ...this new macro.
70784
70785         * lib/strstr.h: Include string.h. Define strstr as a macro here.
70786
70787 2005-09-15  Derek Price  <derek@ximbiot.com>
70788             Paul Eggert  <eggert@cs.ucla.edu>
70789
70790         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
70791         changes, consolidating in...
70792         * lib/regex_internal.h: ...this file.
70793
70794 2005-09-13  Jim Meyering  <jim@meyering.net>
70795
70796         * lib/canon-host.c: Filter through gnu indent and reword comments
70797         slightly.
70798         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
70799
70800 2005-09-13  Derek Price  <derek@ximbiot.com>
70801
70802         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
70803         failure.
70804         Reported by Jim Meyering  <jim@meyering.net>.
70805
70806 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
70807
70808         * lib/base64.c: Typo.
70809         (base64_encode): Put b64str in initialized data section.
70810
70811 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
70812
70813         Merge glibc and coreutils changes into gnulib, plus a few
70814         extra fixes.
70815         * lib/md5.c: Use #error rather than a string.
70816         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
70817         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
70818         (__attribute__): Define to empty for non recent-GCC.
70819         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
70820         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
70821         Renamed from their non-__ counterparts, with new macros replacing
70822         them if not _LIBC.  Add __THROW attribute.
70823         (rol): Remove.
70824         (struct md5_ctx): Align buffer if using GCC.
70825         * lib/sha1.h (struct sha1_ctx): Likewise.
70826         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
70827         The old name was backwards.
70828         (NOTSWAP): Remove; not used.
70829         (rol): New macro, moved here from md5.h.
70830         (sha1_process_block): Remove a FIXME that doesn't make sense.
70831
70832 2005-09-12  Derek Price  <derek@ximbiot.com>
70833
70834         Return usable errors from canon-host.
70835         * lib/canon-host.h: New file.
70836         * lib/canon-host.c (canon_host): Wrap...
70837         (canon_host_r): ...this new function, which now relies exclusively on
70838         getaddrinfo.
70839         (ch_strerror): New function.
70840         (last_cherror): New global.
70841         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
70842         interface.
70843         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
70844         void *.
70845         (freeaddrinfo): Free ai->ai_canonname when set.
70846
70847 2005-09-12  Derek Price  <derek@ximbiot.com>
70848
70849         Make canon-host require getaddrinfo.
70850         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
70851         AC_LIBSOURCE canon-host.h.  Call...
70852         (gl_PREREQ_CANON_HOST): ...this new function, which requires
70853         gl_GETADDRINFO.
70854         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
70855
70856 2005-09-12  Derek Price  <derek@ximbiot.com>
70857
70858         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
70859         LGPL.
70860         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
70861
70862 2005-09-12  Derek Price  <derek@ximbiot.com>
70863
70864         * lib/gai_strerror.c: Include config.h when available.  Include
70865         getaddrinfo.h before other headers to test interface.
70866         Reported by Larry Jones <lawrence.jones@ugs.com>.
70867
70868 2005-09-12  Derek Price  <derek@ximbiot.com>
70869             Paul Eggert  <eggert@cs.ucla.edu>
70870
70871         * modules/glob (Files): Add glob-libc.h.
70872
70873 2005-09-12  Derek Price  <derek@ximbiot.com>
70874             Paul Eggert  <eggert@cs.ucla.edu>
70875
70876         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
70877         glob_.h, glob-libc.h.
70878         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
70879
70880 2005-09-12  Derek Price  <derek@ximbiot.com>
70881             Paul Eggert  <eggert@cs.ucla.edu>
70882
70883         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
70884         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
70885         protecting things that should be done only in gnulib contexts.
70886         * lib/glob_.h: New file, containing only the glob things needed for
70887         gnulib.
70888         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
70889         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
70890         (glob, globfree, glob_pattern_p): Now defined simply in terms of
70891         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
70892         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
70893         and to respect the namespace rules better.
70894
70895 2005-09-08  Simon Josefsson  <jas@extundo.com>
70896
70897         * modules/socklen: New file.
70898
70899 2005-09-08  Simon Josefsson  <jas@extundo.com>
70900
70901         * m4/socklen.m4: New file.
70902
70903 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70904
70905         * modules/utimens (Files): Add m4/utimbuf.m4, since
70906         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
70907         Reported by Sergey Poznyakoff.
70908
70909 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70910
70911         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
70912         definitions, since that's the preferred style in glibc.
70913         Fix a minor spacing issue, and update copyright notice to match
70914         glibc's.
70915
70916 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70917
70918         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
70919
70920 2005-09-06  Simon Josefsson  <jas@extundo.com>
70921
70922         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
70923         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
70924
70925 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70926
70927         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
70928         warning.
70929
70930 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
70931
70932         * config/srclist.txt: Add glibc bug 1302.
70933
70934 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
70935
70936         Change bitset word type from unsigned int to unsigned long int,
70937         as this has better performance on typical 64-bit hosts.
70938         Port bitset code to hosts with unusual word sizes.
70939         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
70940         (build_collating_symbol):
70941         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
70942         argument is a bitset.  This is merely a style issue, but it makes
70943         it clearer that an entire array is expected.
70944         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
70945         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
70946         Port to the case where bitset_word is not the same as unsigned int.
70947         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
70948         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
70949         Likewise.
70950         * lib/regexec.c (check_dst_limits_calc_pos_1,
70951         check_subexp_matching_top):
70952         (build_trtable, group_nodes_into_DFAstates):
70953         Likewise.
70954         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
70955         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
70956         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
70957         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
70958         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
70959         * lib/regcomp.c (optimize_subexps, lower_subexp):
70960         Work even if bitset_word has holes in its bitwise representation.
70961         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
70962         * lib/regexec.c (check_dst_limits_calc_pos_1,
70963         check_subexp_matching_top):
70964         Likewise.
70965         * lib/regex_internal.c (re_string_reconstruct):
70966         Don't assume UCHAR_MAX == 255.
70967         * lib/regex_internal.h (bitset_set_all): Likewise.
70968         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
70969         All uses changed.
70970         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
70971         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
70972         All uses changed.
70973         (BITSET_WORD_MAX): New macro.
70974         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
70975         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
70976         (bitset_empty, bitset_copy):
70977         Prefer sizeof (bitset) to multiplying it out ourselves.
70978         (bitset_not_merge): Remove; unused.
70979         (bitset_contain): Return bool, not unsigned int with one bit on.
70980         All callers changed.
70981         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
70982         alignment than re_node_set; do this by defining a new internal
70983         type struct dests_alloc and using it to allocate memory.
70984
70985 2005-09-05  Bruno Haible  <bruno@clisp.org>
70986
70987         * gnulib-tool (func_import): Fix comparison in handling of symbolic
70988         links.
70989
70990 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
70991
70992         * modules/size_max (Makefile.am): Add size_max.h
70993
70994 2005-09-04  Derek Price  <derek@ximbiot.com>
70995
70996         * gnulib-tool (func_import): Fix reversed $symbolic logic.
70997
70998 2005-09-03  Simon Josefsson  <jas@extundo.com>
70999
71000         * gnulib-tool: Fix typo.
71001
71002 2005-09-03  Simon Josefsson  <jas@extundo.com>
71003
71004         * config/srclist.txt: Add glibc bug 1293.
71005
71006 2005-09-03  Derek Price  <derek@ximbiot.com>
71007
71008         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
71009         From Larry Jones <lawrence.jones@ugs.com>.
71010
71011 2005-09-02  Simon Josefsson  <jas@extundo.com>
71012
71013         * modules/socklen: New file.
71014
71015 2005-09-02  Simon Josefsson  <jas@extundo.com>
71016
71017         * modules/havelib: New module.
71018
71019         * modules/gettext, modules/iconv, modules/lock, modules/readline:
71020         Use havelib.
71021
71022 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71023
71024         Check for arithmetic overflow when calculating sizes, to prevent
71025         some buffer-overflow issues.  These patches are conservative, in the
71026         sense that when I couldn't determine whether an overflow was possible,
71027         I inserted a run-time check.
71028         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
71029         macros.
71030         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
71031         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
71032         (re_xnrealloc, re_x2nrealloc): New inline functions.
71033         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
71034         parse_bracket_exp):
71035         (build_equiv_class, build_charclass): Check for arithmetic overflow
71036         in size expression calculations.
71037         * lib/regex_internal.c (re_string_realloc_buffers):
71038         (build_wcs_upper_buffer, re_node_set_add_intersect):
71039         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
71040         (re_dfa_add_node, register_state): Likewise.
71041         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
71042         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
71043         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
71044         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
71045
71046 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
71047
71048         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
71049         m4/ulonglong.m4.  Problem reported by Martin Lambers.
71050
71051 2005-09-02  Bruno Haible  <bruno@clisp.org>
71052
71053         Support for lib vs. lib64 distinction on biarch platforms.
71054         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
71055         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
71056         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
71057
71058 2005-09-02  Bruno Haible  <bruno@clisp.org>
71059
71060         * gnulib-tool (import): In the other first-use case, provide defaults
71061         as well.
71062
71063 2005-09-02  Bruno Haible  <bruno@clisp.org>
71064
71065         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
71066         patches not yet found in the latest gettext release.
71067
71068 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
71071         to avoid a collision with bits/local_lim.h in glibc.
71072         All uses changed.  Problem reported by Dmitry V. Levin in
71073         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
71074
71075         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
71076         bugs in int versus size_t comparisons.
71077         (re_string_context_at): Fix bug where the code assumed that
71078         Idx is signed.
71079
71080         Use bool where appropriate.
71081         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
71082         All callers changed.
71083         (calc_eclosure_iter): Likewise, for ROOT arg.
71084         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
71085         (build_charclass_op): Likewise, for NON_MATCH arg.
71086         * lib/regex_internal.c (re_string_allocate, re_string_construct):
71087         (re_string_construct_common): Likewise, for ICASE arg.
71088         * lib/regexec.c (re_search_2_stub, re_search_stub):
71089         Likewise, for RET_LEN arg.
71090         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
71091         (set_regs): Likewise, for FL_BACKTRACK arg.
71092         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
71093         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
71094         (calc_eclosure_iter, parse_bracket_exp):
71095         Use bool for internal variables that are booleans.
71096         * lib/regexec.c (re_search_internal, check_matching,
71097         proceed_next_node):
71098         (set_regs, build_sifted_states, sift_states_bkref):
71099         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
71100         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71101         (find_collation_sequence_value):
71102         Likewise.
71103         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
71104         (re_node_set_compare):
71105         Return bool, not int. All callers changed.
71106         * lib/regexec.c (check_halt_node_context, check_dst_limits):
71107         (build_trtable, check_node_accept): Likewise.
71108         * lib/regex_internal.h: Include stdbool.h.
71109
71110         Fix bugs uncovered when converting to bool.
71111         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
71112         failure instead of charging ahead blindly.
71113         * lib/regex_internal.c (register_state): Likewise.
71114         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
71115         for freeing internal storage.
71116         (group_nodes_into_DFA_states): Use unsigned int, not int, for
71117         bitset pieces used as boolean, to avoid undefined behavior
71118         on hosts that do int overflow checking.
71119
71120 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
71121
71122         * config/srclist.txt: Add glibc bugs 1285-1287.
71123
71124 2005-09-01  Jim Meyering  <jim@meyering.net>
71125
71126         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
71127         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
71128         Require gl_STAT_MACROS, too.
71129
71130 2005-09-01  Bruno Haible  <bruno@clisp.org>
71131
71132         * gnulib-tool (import): In the first-use case, provide defaults.
71133
71134 2005-09-01  Bruno Haible  <bruno@clisp.org>
71135
71136         * gnulib-tool (func_import): Remove the .tmp files.
71137
71138 2005-09-01  Bruno Haible  <bruno@clisp.org>
71139
71140         * gnulib-tool (func_import): Fix handling of symbolic links.
71141
71142 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71143
71144         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
71145         old glibc regex code mishandles strings longer than 2**31 bytes.
71146         This patch fixes this when the regex code is used in gnulib
71147         (i.e., outside glibc).
71148
71149         This patch should not affect the use of the regex code inside
71150         glibc.  No doubt this problem also needs to be handled for glibc
71151         as well, but the result will be an incompatible change to the
71152         glibc ABI, and the old ABI will have to be supported too.  That
71153         can be the the subject for another patch.
71154
71155         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
71156         governing whether the rest of this patch is active.  By default,
71157         the macro is disabled and the patch has no effect.
71158         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
71159         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
71160         (struct re_pattern_buffer, re_search, re_search_2, re_match):
71161         (re_match_2, re_set_registers): Use the new types.
71162         * lib/regex_internal.h (Idx, re_hashval_t): New types.
71163         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
71164         New macros.
71165         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
71166         (re_string_context_at, bin_tree_t, re_dfastate_t):
71167         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
71168         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
71169         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
71170         (re_string_char_size_at, re_string_wchar_at):
71171         (re_string_elem_size_at):
71172         Use the new types and macros to port to 64-bit hosts.
71173         Use unsigned types for internal values, so that the code
71174         mostly works even for arrays larger than SSIZE_MAX.
71175         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
71176         (search_duplicated_node, calc_eclosure_iter, fetch_number):
71177         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
71178         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
71179         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
71180         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
71181         (calc_inveclosure, parse_dup_op, build_range_exp):
71182         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
71183         (fetch_number, create_token_tree, mark_opt_subexp):
71184         Likewise.
71185         * lib/regex_internal.c (re_string_construct_common,
71186         create_ci_newstate):
71187         (create_cd_newstate, re_string_allocate, re_string_construct):
71188         (re_string_realloc_buffers, build_wcs_upper_buffer):
71189         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71190         (re_string_reconstruct, re_string_peek_byte_case):
71191         (re_string_fetch_byte_case, re_string_context_at):
71192         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71193         (re_node_set_init_copy, re_node_set_add_intersect):
71194         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71195         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71196         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71197         (re_acquire_state, re_acquire_state_context, register_state):
71198         Likewise.
71199         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
71200         search_cur_bkref_entry):
71201         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
71202         (re_search_internal, re_search_2_stub, re_search_stub)
71203         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
71204         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
71205         (update_cur_sifted_state, check_dst_limits):
71206         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71207         (check_subexp_limits, sift_states_bkref, merge_state_array):
71208         (check_subexp_matching_top, get_subexp, get_subexp_sub):
71209         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
71210         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71211         (expand_bkref_cache, check_node_accept_bytes):
71212         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
71213         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
71214         (acquire_init_state_context, check_halt_node_context):
71215         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
71216         (sift_states_backward, clean_state_log_if_needed):
71217         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
71218         (find_recover_state, transit_state_sb, transit_state_mb):
71219         (transit_state_bkref, build_trtable, match_ctx_clean):
71220         Likewise.
71221         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
71222         to work around an assumption that REG_MISSING is negative.
71223
71224         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
71225         (seek_collating_symbol_entry) [defined _LIBC]:
71226         (lookup_collation_sequence_value) [defined _LIBC]:
71227         (build_range_exp, build_collating_symbol) [defined _LIBC]:
71228         Use prototypes rather than old-style function definitions.
71229         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
71230         (transit_state_sb) [0]:
71231         (find_collation_sequence_value) [defined _LIBC]: Likewise.
71232
71233         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
71234         rm_eo.
71235
71236         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
71237         (optimize_subexps, lower_subexp):
71238         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
71239         since the signed shift might overflow.  Use 1u<<31 instead.
71240         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
71241         Likewise.
71242         * lib/regexec.c (check_dst_limits_calc_pos_1,
71243         check_subexp_matching_top): Likewise.
71244
71245         * lib/regcomp.c (optimize_subexps, lower_subexp):
71246         Use CHAR_BIT rather than 8, for clarity.
71247         * lib/regexec.c (check_dst_limits_calc_pos_1):
71248         (check_subexp_matching_top): Likewise.
71249         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
71250         have to worry about portability issues when shifting it left.
71251         Remove no-longer-needed test for table_size > 0.
71252         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
71253         in a word, as the resulting behavior is undefined.
71254         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
71255         in one case, a <= should have been an <, and in another case the
71256         whole test was missing.
71257         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
71258         the standard name CHAR_BIT.
71259         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
71260         this is not true on one's complement and signed-magnitude hosts.
71261
71262         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
71263         next_last_offset.
71264         (struct re_dfa_t): Remove unused member states_alloc.
71265         * lib/regcomp.c (init_dfa): Don't initialize unused members.
71266
71267 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71268
71269         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
71270         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
71271         and large-file glibc and in 32-bit large-file Solaris.
71272
71273 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71274
71275         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
71276         lengths fit in regoff_t; this isn't true if regoff_t is the same
71277         width as size_t.
71278         * lib/regex.c (re_search_internal): 5th arg is LAST_START
71279         (= START + RANGE) instead of RANGE.  This avoids overflow
71280         problems when regoff_t is the same width as size_t.
71281         All callers changed.
71282         (re_search_2_stub): Check for overflow when adding the
71283         sizes of the two strings.
71284         (re_search_stub): Check for overflow when adding START
71285         to RANGE; if it occurs, substitute the extreme value.
71286
71287 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
71288
71289         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
71290
71291 2005-08-31  Jim Meyering  <jim@meyering.net>
71292
71293         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
71294         a pointer-to-const.
71295         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
71296         (register_state): Likewise.
71297         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
71298         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
71299         (group_nodes_into_DFAstates): Likewise.
71300
71301 2005-08-31  Jim Meyering  <jim@meyering.net>
71302
71303         * check-module: Add a FIXME comment.
71304
71305 2005-08-31  Eric Blake  <ebb9@byu.net>
71306
71307         * modules/unistd-safer (Files): Add unistd--.h.
71308         * modules/stdio-safer (Files): Add stdio--.h.
71309
71310 2005-08-31  Derek Price  <derek@ximbiot.com>
71311
71312         * lib/getdelim.c (getdelim): Return EOF on EOF.
71313         Reported by Larry Jones <lawrence.jones@ugs.com>.
71314
71315 2005-08-31  Bruno Haible  <bruno@clisp.org>
71316
71317         Avoid unnecessary diffs in the generated lib/Makefile.am.
71318         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
71319         the generated files.
71320         (func_import): Don't set cmd.
71321
71322 2005-08-31  Bruno Haible  <bruno@clisp.org>
71323
71324         * lib/strstr.c: Include <stddef.h>, for NULL.
71325         * lib/strcasestr.c: Likewise.
71326         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
71327
71328 2005-08-31  Bruno Haible  <bruno@clisp.org>
71329
71330         * gnulib-tool: New option --macro-prefix.
71331         (func_import): Use macro_prefix.
71332         (import): Handle option --macro-prefix.
71333
71334 2005-08-31  Bruno Haible  <bruno@clisp.org>
71335
71336         * gnulib-tool (import): Rename most ac_* variables to cached_*.
71337         Also use new variables cached_lgpl, cached_libtool.
71338
71339 2005-08-31  Bruno Haible  <bruno@clisp.org>
71340
71341         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
71342         always instantiating them.
71343
71344 2005-08-31  Bruno Haible  <bruno@clisp.org>
71345
71346         * gnulib-tool (func_import): Read the previous cached settings
71347         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
71348         earlier added by gnulib but are now dropped. Warn when a gnulib file
71349         overwrites a non-gnulib file.
71350
71351 2005-08-31  Bruno Haible  <bruno@clisp.org>
71352
71353         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
71354         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
71355         projects that don't keep autogenerated files in CVS. Put into
71356         actioncmd only the specified modules, not the transitive closure.
71357
71358 2005-08-31  Bruno Haible  <bruno@clisp.org>
71359
71360         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
71361         Create directories that shall be filled.
71362         (import): Don't look for gl_* macros in configure.ac. Recurse across
71363         all directories containing a gnulib-cache.m4 files, if meaningful.
71364
71365 2005-08-31  Bruno Haible  <bruno@clisp.org>
71366
71367         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
71368         (import): Set seen_libtool when we see gl_LIBTOOL.
71369
71370 2005-08-31  Bruno Haible  <bruno@clisp.org>
71371
71372         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
71373         declaration macro definitions from generated gnulib.m4.
71374
71375 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
71376
71377         * lib/iconvme.h: Add prototype for iconv_alloc.
71378
71379 2005-08-29  Simon Josefsson  <jas@extundo.com>
71380
71381         * lib/iconvme.c: Fix errno.
71382
71383 2005-08-29  Bruno Haible  <bruno@clisp.org>
71384
71385         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
71386         that it works when the directory contains spaces.
71387
71388 2005-08-29  Bruno Haible  <bruno@clisp.org>
71389
71390         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
71391
71392 2005-08-29  Bruno Haible  <bruno@clisp.org>
71393
71394         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
71395         Emit more advice.
71396
71397 2005-08-29  Bruno Haible  <bruno@clisp.org>
71398         and Stepan Kasal  <kasal@ucw.cz>
71399
71400         * check-module: If more parameters are given, check each of them
71401         separately; add more exceptions, as noted by Jim Meyering.
71402         (check_module): New procedure.
71403         (%exempt_header): Now contains all exceptions.
71404
71405 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
71406
71407         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
71408
71409 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
71410
71411         * lib/iconvme.c: Split iconv_string into iconv_alloc.
71412
71413 2005-08-28  Bruno Haible  <bruno@clisp.org>
71414
71415         * m4/gnulib-tool.m4: New file.
71416
71417 2005-08-27  Jim Meyering  <jim@meyering.net>
71418
71419         * modules/unistd-safer (Files): Add pipe-safer.c.
71420         * modules/fcntl-safer (Files): Add creat-safer.c.
71421
71422 2005-08-27  Jim Meyering  <jim@meyering.net>
71423
71424         * m4/stdlib-safer.m4: New file.  From coreutils.
71425         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
71426         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
71427         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
71428         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
71429         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
71430
71431 2005-08-27  Jim Meyering  <jim@meyering.net>
71432
71433         * lib/fopen-safer.c: Merge minor changes from coreutils.
71434         * lib/dup-safer.c: Likewise.
71435         * lib/fd-safer.c: Likewise.
71436
71437         Merge from coreutils.
71438         * lib/stdio--.h: New file.
71439         * lib/stdlib--.h: New file.
71440         * lib/mkstemp-safer.c: New file.
71441
71442         GNU tar needs these.
71443         * lib/pipe-safer.c: New file.
71444         * lib/creat-safer.c: New file.
71445         * lib/fcntl--.h (creat): Define to creat_safer.
71446         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
71447         * lib/unistd--.h (pipe): Define to pipe_safer.
71448         * lib/unistd-safer.h: Declare pipe_safer.
71449
71450 2005-08-26  Simon Josefsson  <jas@extundo.com>
71451
71452         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
71453         Haible <bruno@clisp.org>.
71454
71455 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
71456
71457         * lib/regex_internal.h: Remove all references to
71458         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
71459         or better.
71460         (bitset_not, bitset_merge, bitset_not_merge):
71461         (bitset_mask, re_string_allocate, re_string_construct):
71462         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
71463         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
71464         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
71465         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
71466         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71467         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71468         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
71469         (re_acquire_state_context):
71470         Remove unnecessary forward decls.
71471         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
71472         Put __attribute at function definition,
71473         now that the function decl has been removed.
71474         * lib/regex_internal.c (re_string_peek_byte_case):
71475         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
71476         Likewise.
71477
71478 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
71479
71480         * m4/regex.m4: Add AC_PREREQ(2.50).
71481         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
71482
71483 2005-08-25  Simon Josefsson  <jas@extundo.com>
71484
71485         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
71486         __fsetlocking.
71487
71488 2005-08-25  Simon Josefsson  <jas@extundo.com>
71489
71490         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
71491         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
71492         GLIBC specific code.
71493
71494 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71495
71496         Make regex safe for g++.  This fixes one real bug (an "err"
71497         that should have been "*err").  g++ problem reported by
71498         Sam Steingold.
71499         * lib/regex_internal.h (re_calloc): New macro, consistent with
71500         re_malloc etc.  All callers of calloc changed to use re_calloc.
71501         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
71502         not int.  All callers changed.
71503         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
71504         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
71505         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
71506         (find_recover_state): Change "err" to "*err"; this fixes what
71507         appears to be a real bug.
71508         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
71509         versus int.
71510
71511 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71512
71513         * modules/regex (Depends-on): Add malloc, since the code
71514         assumes that !malloc(0) means failure.
71515
71516 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71517
71518         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
71519
71520         alloca modernization/simplification for regex.
71521         * lib/regex.c: Remove portability cruft for alloca.  This no longer
71522         needs to be at the start of the file, and can be moved into
71523         regex_internal.h and simplified.
71524         * lib/regex_internal.h: Include <alloca.h>.
71525         (__libc_use_alloca) [!defined _LIBC]: New macro.
71526         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
71527         now works outside glibc.
71528
71529 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71530
71531         * config/srclist.txt: Add glibc bugs 1241, 1245.
71532
71533 2005-08-25  Jim Meyering  <jim@meyering.net>
71534
71535         * lib/open-safer.c: Include <config.h>.
71536         Otherwise, we'd lose LARGEFILE support in any file using
71537         e.g. "fcntl--.h"
71538
71539 2005-08-25  Bruno Haible  <bruno@clisp.org>
71540
71541         * m4/minmax.m4: Require autoconf 2.52.
71542         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
71543         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
71544         alternatives of translit over the alphabet.
71545         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
71546
71547 2005-08-24  Simon Josefsson  <jas@extundo.com>
71548
71549         * tests/test-getpass.c: New file.
71550
71551 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71552
71553         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
71554         for GNU regex features.
71555
71556 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71557
71558         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
71559         * lib/regex.h (regerror): Likewise.
71560
71561         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
71562         requires this.  (The code never needed it.)
71563
71564         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
71565         All uses of recently-renamed identifiers changed to use the new,
71566         POSIX-compliant names.  The code will build and run just fine
71567         without these changes, but it's better to eat our own dog food
71568         and use the standard-conforming names.
71569
71570         * lib/regex.h: Fix a multitude of POSIX name space violations.
71571         These changes have an effect only for programs that define
71572         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
71573         do not change anything for programs compiled in the normal way.
71574         Also, there is no effect on the ABI.
71575
71576         (_REGEX_SOURCE): New macro.
71577         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
71578         defined and _GNU_SOURCE is not; this fixes a name space violation.
71579
71580         Rename the following macros to obey POSIX requirements.
71581         The old names are still visible as macros if _REGEX_SOURCE is defined.
71582         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
71583         RE_BACKSLASH_ESCAPE_IN_LISTS.
71584         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
71585         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
71586         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
71587         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
71588         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
71589         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
71590         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
71591         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
71592         (REG_INTERVALS): renamed from RE_INTERVALS.
71593         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
71594         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
71595         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
71596         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
71597         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
71598         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
71599         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
71600         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
71601         RE_UNMATCHED_RIGHT_PAREN_ORD.
71602         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
71603         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
71604         (REG_DEBUG): renamed from RE_DEBUG.
71605         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
71606         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
71607         unusual, since we can't clash with the POSIX REG_ICASE.
71608         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
71609         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
71610         (REG_NO_SUB): renamed from RE_NO_SUB.
71611         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
71612         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
71613         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
71614         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
71615         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
71616         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
71617         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
71618         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
71619         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
71620         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
71621         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
71622         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
71623         RE_SYNTAX_POSIX_MINIMAL_BASIC.
71624         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
71625         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
71626         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
71627         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
71628         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
71629         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
71630         (REG_FIXED): Renamed from REGS_FIXED.
71631         (REG_NREGS): Renamed from RE_NREGS.
71632
71633         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
71634         of other REG_* macros, since POSIX says the user is allowed to
71635         #undef these macros selectively.
71636
71637         (reg_errcode_t): Update comment stating what other tables need
71638         to be consistent.
71639
71640         Rename the following enum values to obey POSIX requirements.
71641         The old names are still visible as macros.
71642         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
71643         is not defined, since GNU is supposed to be a superset of POSIX as
71644         much as possible, and since we want reg_errcode_t to be a signed
71645         type for implementation consistency.
71646         (_REG_NOERROR): Renamed from REG_NOERROR.
71647         (_REG_NOMATCH): Renamed from REG_NOMATCH.
71648         (_REG_BADPAT): Renamed from REG_BADPAT.
71649         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
71650         (_REG_ECTYPE): Renamed from REG_ECTYPE.
71651         (_REG_EESCAPE): Renamed from REG_EESCAPE.
71652         (_REG_ESUBREG): Renamed from REG_ESUBREG.
71653         (_REG_EBRACK): Renamed from REG_EBRACK.
71654         (_REG_EPAREN): Renamed from REG_EPAREN.
71655         (_REG_EBRACE): Renamed from REG_EBRACE.
71656         (_REG_BADBR): Renamed from REG_BADBR.
71657         (_REG_ERANGE): Renamed from REG_ERANGE.
71658         (_REG_ESPACE): Renamed from REG_ESPACE.
71659         (_REG_BADRPT): Renamed from REG_BADRPT.
71660         (_REG_EEND): Renamed from REG_EEND.
71661         (_REG_ESIZE): Renamed from REG_ESIZE.
71662         (_REG_ERPAREN): Renamed from REG_ERPAREN.
71663         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
71664         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
71665         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
71666         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
71667
71668         (_REG_RE_NAME, _REG_RM_NAME): New macros.
71669         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
71670         changed.  But support the old name if the new one is not defined
71671         and if _REGEX_SOURCE.
71672
71673         Change the following member names in struct re_pattern_buffer.
71674         The old names are still supported if !_REGEX_SOURCE.
71675         The new names are always supported, regardless of _REGEX_SOURCE.
71676         (re_buffer): Renamed from buffer.
71677         (re_allocated): Renamed from allocated.
71678         (re_used): Renamed from used.
71679         (re_syntax): Renamed from syntax.
71680         (re_fastmap): Renamed from fastmap.
71681         (re_translate): Renamed from translate.
71682         (re_can_be_null): Renamed from can_be_null.
71683         (re_regs_allocated): Renamed from regs_allocated.
71684         (re_fastmap_accurate): Renamed from fastmap_accurate.
71685         (re_no_sub): Renamed from no_sub.
71686         (re_not_bol): Renamed from not_bol.
71687         (re_not_eol): Renamed from not_eol.
71688         (re_newline_anchor): Renamed from newline_anchor.
71689
71690         Change the following member names in struct re_registers.
71691         The old names are still supported if !_REGEX_SOURCE.
71692         The new names are always supported, regardless of _REGEX_SOURCE.
71693         (rm_num_regs): Renamed from num_regs.
71694         (rm_start): Renamed from start.
71695         (rm_end): Renamed from end.
71696
71697         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
71698         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
71699         Prepend __ to parameter names.
71700
71701         Undo yesterday's changes.
71702
71703 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71704
71705         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
71706         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
71707         lib/regex.c.
71708
71709 2005-08-24  Jim Meyering  <jim@meyering.net>
71710
71711         Sync from coreutils.
71712         * m4/fcntl-safer.m4: New file.
71713
71714         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
71715         and object files for this module.
71716
71717 2005-08-24  Jim Meyering  <jim@meyering.net>
71718
71719         Sync from coreutils.
71720         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
71721
71722 2005-08-24  Jim Meyering  <jim@meyering.net>
71723
71724         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
71725         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
71726
71727 2005-08-24  Jim Meyering  <jim@meyering.net>
71728
71729         * modules/fcntl-safer: New module.
71730         * modules/fts (Depends-on): Add fcntl-safer.
71731         * MODULES.html.sh (File descriptor based Input/Output):
71732         Add fcntl-safer.
71733
71734 2005-08-24  Bruno Haible  <bruno@clisp.org>
71735
71736         Support for unit test modules.
71737         * modules/README: Mention tests modules.
71738         * modules/TEMPLATE-TESTS: New file.
71739         * gnulib-tool: New options --extract-tests-module, --with-tests and
71740         --tests-base (unused for the moment).
71741         (testsbase, inctests): New variables.
71742         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
71743         (func_verify_module): Exclude TEMPLATE-TESTS.
71744         (func_verify_nontests_module, func_verify_tests_module): New functions.
71745         (func_get_dependencies): Add implicit dependency for tests modules.
71746         (func_get_tests_module): New function.
71747         (func_modules_transitive_closure): When --with-tests was specified,
71748         include the unit tests as well, unless explicitly avoided.
71749         (func_emit_lib_Makefile_am): Ignore the tests modules here.
71750         (func_emit_tests_Makefile_am): New function.
71751         (func_create_testdir): When --with-tests was specified, emit a
71752         tests/ directory.
71753         * MODULES.html.sh (Future developments): Update.
71754
71755 2005-08-24  Bruno Haible  <bruno@clisp.org>
71756
71757         * modules/tls-tests: New file.
71758         * tests/test-tls.c: New file, from GNU gettext.
71759
71760 2005-08-24  Bruno Haible  <bruno@clisp.org>
71761
71762         * modules/lock-tests: New file.
71763         * tests/test-lock.c: New file, from GNU gettext.
71764
71765 2005-08-24  Bruno Haible  <bruno@clisp.org>
71766
71767         * lib/lock.h: Add multiple inclusion guard.
71768         * lib/tls.h: Add multiple inclusion guard.
71769
71770 2005-08-24  Bruno Haible  <bruno@clisp.org>
71771
71772         * gnulib-tool: Add support for the --aux-dir option to
71773         --create-testdir, --create-megatestdir, --test, --megatest.
71774         (func_create_testdir, func_create_megatestdir): Optionally emit a
71775         AC_CONFIG_AUX_DIR directive.
71776         (create-testdir, create-megatestdir, test, megatest): Provide a
71777         default value for $auxdir.
71778
71779 2005-08-24  Bruno Haible  <bruno@clisp.org>
71780
71781         * gnulib-tool (import): Use compound statement instead of subshell
71782         where possible.
71783
71784 2005-08-24  Bruno Haible  <bruno@clisp.org>
71785
71786         * gnulib-tool (import): Change --aux-dir default to "build-aux".
71787
71788 2005-08-24  Bruno Haible  <bruno@clisp.org>
71789
71790         * gnulib-tool (func_version): Update.
71791
71792 2005-08-24  Bruno Haible  <bruno@clisp.org>
71793
71794         * gnulib-tool (func_import, func_create_testdir,
71795         func_create_megatestdir): Quote all autoconf macro arguments.
71796
71797 2005-08-24  Bruno Haible  <bruno@clisp.org>
71798
71799         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
71800         option --force, because --force causes the aclocal.m4 of each
71801         subdirectory to be newer than the corresponding config.h.in.
71802
71803 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71804
71805         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
71806         All contents moved to gl_REGEX.
71807         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
71808         assume that it does.
71809
71810 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71811
71812         * lib/regex.h (REG_NOSYS)
71813         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
71814         Define, since POSIX requires it as of 2001.
71815         (_REG_ENOSYS)
71816         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
71817         New private symbol, used to keep the enum signed in all cases.
71818         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
71819         Youngman in
71820         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
71821
71822         * lib/regex_internal.c (re_string_skip_chars, register_state):
71823         (calc_state_hash):
71824         Remove forward decls; no longer needed now that we use prototypes.
71825         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
71826         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
71827         (clean_state_log_if_needed): Likewise.
71828
71829 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71830
71831         * config/srclist.txt: Add glibc bugs 1231-1233.
71832
71833 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71834
71835         Fix problems reported by Sam Steingold in
71836         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
71837         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
71838         assumed that reg_errcode_t is a signed type, which is not
71839         necessarily true if _XOPEN_SOURCE is not defined.
71840         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
71841         since some compilers warn about it otherwise.
71842
71843 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71844
71845         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
71846         (init_word_char, create_initial_state, duplicate_node_closure):
71847         (fetch_token, peek_token_bracket, build_range_exp):
71848         (build_collating_symbol): Remove forward decls; no longer needed
71849         now that we use prototypes.
71850
71851         * lib/regcomp.c:
71852         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
71853         (re_compile_fastmap_iter, regcomp, regerror, regfree):
71854         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
71855         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
71856         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
71857         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
71858         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
71859         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
71860         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
71861         (build_range_exp, build_collating_symbol, parse_bracket_exp):
71862         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
71863         (build_charclass, build_charclass_op, fetch_number, create_tree):
71864         (create_token_tree, mark_opt_subexp, duplicate_tree):
71865         Use prototypes rather than old-style definitions.
71866
71867         * lib/regex_internal.c:
71868         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
71869         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
71870         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
71871         (re_string_reconstruct, re_string_peek_byte_case):
71872         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
71873         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
71874         (re_node_set_init_copy, re_node_set_add_intersect):
71875         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
71876         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
71877         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
71878         (re_acquire_state, re_acquire_state_context, register_state):
71879         (create_ci_newstate, create_cd_newstate, free_state):
71880         Likewise.
71881         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
71882         re_search_2):
71883         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
71884         (re_search_internal, prune_impossible_nodes):
71885         (acquire_init_state_context, check_matching, static):
71886         (check_halt_node_context, check_halt_state_context, proceed_next_node):
71887         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
71888         (update_regs, sift_states_backward, build_sifted_states):
71889         (clean_state_log_if_needed, merge_state_array):
71890         (update_cur_sifted_state, add_epsilon_src_nodes):
71891         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
71892         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
71893         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
71894         (find_recover_state, check_subexp_matching_top, transit_state_mb):
71895         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
71896         (check_arrival, check_arrival_add_next_nodes):
71897         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
71898         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
71899         (check_node_accept_bytes, check_node_accept, extend_buffers):
71900         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
71901         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
71902         (sift_ctx_init):
71903         Likewise.
71904
71905         * lib/regex_internal.h:
71906         (re_string_allocate, re_string_construct, re_string_reconstruct):
71907         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
71908         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
71909         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
71910         (re_string_context_at, re_string_peek_byte_case):
71911         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
71912         is defined, since we now use prototypes always.
71913
71914         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
71915         C89 or better.  All uses removed.
71916
71917 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71918
71919         * config/srclist.txt: Add glibc bugs 1220-1227.
71920
71921 2005-08-20  Jim Meyering  <jim@meyering.net>
71922
71923         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
71924         of unused local, dfa.
71925
71926 2005-08-20  Bruno Haible  <bruno@clisp.org>
71927
71928         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
71929
71930 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71931
71932         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
71933         (re_node_set_insert_last, re_dfa_add_node):
71934         Rename local variables to avoid GCC shadowing warnings.
71935
71936 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71937
71938         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
71939         [defined lint]: Suppress bogus uninitialized-variable warnings.
71940
71941         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
71942         and let the caller return REG_ESPACE if out of space.  This
71943         removes an uninitialied-variable warning with GCC 4.0.1, and also
71944         avoids taking the address of a local variable.  All callers
71945         changed.
71946
71947 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71948
71949         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
71950         $LIBCSRC/posix/regexec.c.
71951         Add glibc bug 1217 for regcomp.c.
71952
71953 2005-08-19  Jim Meyering  <jim@meyering.net>
71954
71955         * lib/regexec.c (proceed_next_node): Redo local variables to
71956         avoid GCC shadowing warnings.
71957
71958 2005-08-18  Bruno Haible  <bruno@clisp.org>
71959
71960         * lib/strstr.c (strstr): Fix return value in multibyte case.
71961         * lib/strcasestr.c (strcasestr): Likewise.
71962
71963 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71964
71965         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
71966
71967 2005-08-17  Jim Meyering  <jim@meyering.net>
71968
71969         Make the %s format (seconds since the epoch) work for a negative
71970         number and when used with a zero-padded field width, e.g. %015s.
71971
71972         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
71973         label so that it precedes the code to set `digits'.  Otherwise,
71974         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
71975         print `00-22'.  Now, it prints `-0022', as it should.
71976
71977 2005-08-17  Bruno Haible  <bruno@clisp.org>
71978
71979         * modules/strstr (Files): Add m4/mbrtowc.m4.
71980         (Depends-on): Add mbuiter.
71981
71982 2005-08-17  Bruno Haible  <bruno@clisp.org>
71983
71984         * modules/strcasestr: New file.
71985         * MODULES.html.sh (String handling, based on ANSI C 89): Add
71986         strcasestr.
71987
71988 2005-08-17  Bruno Haible  <bruno@clisp.org>
71989
71990         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
71991
71992 2005-08-17  Bruno Haible  <bruno@clisp.org>
71993
71994         * modules/mbuiter: New file.
71995         * MODULES.html.sh (Extended multibyte and wide character utilities):
71996         Add mbuiter.
71997
71998 2005-08-17  Bruno Haible  <bruno@clisp.org>
71999
72000         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
72001         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
72002
72003 2005-08-17  Bruno Haible  <bruno@clisp.org>
72004
72005         * m4/strcasestr.m4: New file.
72006
72007 2005-08-17  Bruno Haible  <bruno@clisp.org>
72008
72009         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
72010         * lib/strstr.c: Completely rewritten, with multibyte locale support.
72011
72012 2005-08-17  Bruno Haible  <bruno@clisp.org>
72013
72014         * lib/strcasestr.h: New file.
72015         * lib/strcasestr.c: New file.
72016
72017 2005-08-17  Bruno Haible  <bruno@clisp.org>
72018
72019         * lib/strcasecmp.c: Use mbuiter.h.
72020
72021 2005-08-17  Bruno Haible  <bruno@clisp.org>
72022
72023         * lib/mbuiter.h: New file.
72024
72025 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
72026
72027         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
72028         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
72029         and gl_GETOPT are both invoked via different paths (as happens
72030         with GNU tar CVS because it uses both argp and getopt), the former
72031         wins.
72032
72033 2005-08-16  Bruno Haible  <bruno@clisp.org>
72034
72035         * modules/tls: New file.
72036         * MODULES.html.sh (Multithreading): Add tls.
72037
72038 2005-08-16  Bruno Haible  <bruno@clisp.org>
72039
72040         * modules/strnlen1: New file.
72041         * MODULES.html.sh (String handling): Add strnlen1.
72042
72043 2005-08-16  Bruno Haible  <bruno@clisp.org>
72044
72045         * modules/strcase (Files): Add m4/mbrtowc.m4.
72046         (Depends-on): Add strnlen1, mbchar.
72047
72048 2005-08-16  Bruno Haible  <bruno@clisp.org>
72049
72050         * modules/mbiter: New file.
72051         * MODULES.html.sh (Extended multibyte and wide character utilities):
72052         Add mbiter.
72053
72054 2005-08-16  Bruno Haible  <bruno@clisp.org>
72055
72056         * modules/mbfile: New file.
72057         * MODULES.html.sh (Extended multibyte and wide character utilities):
72058         Add mbfile.
72059
72060 2005-08-16  Bruno Haible  <bruno@clisp.org>
72061
72062         * modules/mbchar: New file.
72063         * MODULES.html.sh (Extended multibyte and wide character utilities):
72064         New section.
72065
72066 2005-08-16  Bruno Haible  <bruno@clisp.org>
72067
72068         * m4/tls.m4: New file, from GNU gettext.
72069
72070 2005-08-16  Bruno Haible  <bruno@clisp.org>
72071
72072         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
72073         always.
72074         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
72075
72076 2005-08-16  Bruno Haible  <bruno@clisp.org>
72077
72078         * m4/mbiter.m4: New file.
72079
72080 2005-08-16  Bruno Haible  <bruno@clisp.org>
72081
72082         * m4/mbfile.m4: New file.
72083
72084 2005-08-16  Bruno Haible  <bruno@clisp.org>
72085
72086         * m4/mbchar.m4: New file.
72087
72088 2005-08-16  Bruno Haible  <bruno@clisp.org>
72089
72090         * lib/tls.h: New file, from GNU gettext.
72091         * lib/tls.c: New file, from GNU gettext.
72092
72093 2005-08-16  Bruno Haible  <bruno@clisp.org>
72094
72095         * lib/strnlen1.h: New file.
72096         * lib/strnlen1.c: New file.
72097
72098 2005-08-16  Bruno Haible  <bruno@clisp.org>
72099
72100         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
72101         (mbi_init): Update.
72102         (mbi_avail, mbi_advance): Let the iteration end before the terminating
72103         NUL byte, not after it.
72104
72105 2005-08-16  Bruno Haible  <bruno@clisp.org>
72106
72107         * lib/strcase.h (strcasecmp): Add note in comments.
72108         * lib/strncasecmp.c: Use code from strcasecmp.c.
72109         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
72110         (strcasecmp): Work correctly in multibyte locales.
72111
72112 2005-08-16  Bruno Haible  <bruno@clisp.org>
72113
72114         * lib/mbiter.h: New file.
72115
72116 2005-08-16  Bruno Haible  <bruno@clisp.org>
72117
72118         * lib/mbfile.h: New file.
72119
72120 2005-08-16  Bruno Haible  <bruno@clisp.org>
72121
72122         * lib/mbchar.h: New file.
72123         * lib/mbchar.c: New file.
72124
72125 2005-08-16  Bruno Haible  <bruno@clisp.org>
72126
72127         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
72128         the valid ones. Makes the comparison operations transitive:
72129         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
72130         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
72131
72132 2005-08-15  Simon Josefsson  <jas@extundo.com>
72133
72134         * modules/ssize_t (License): Change to 'unlimited'.
72135
72136         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
72137
72138 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
72139
72140         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
72141         Add comments for each pending glibc patch.
72142
72143 2005-08-15  Bruno Haible  <bruno@clisp.org>
72144
72145         * lib/regex.h (__restrict_arr): Don't define to __restrict if
72146         __cplusplus is defined.
72147
72148 2005-08-14  Jim Meyering  <jim@meyering.net>
72149
72150         Sync from coreutils.
72151
72152         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
72153         Use the hash-table-based cycle-detection code not just when
72154         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
72155         Reported by James Youngman in
72156         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
72157         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
72158         FTS_TIGHT_CYCLE_CHECK.
72159         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
72160         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
72161         once again.
72162         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
72163         * lib/fts.c (fd_safer): Remove decl.
72164         Include fcntl--.h rather than unistd-safer.h
72165         (fts_safe_changedir): Don't call fd_safer; no longer needed
72166         now that we include fcntl--.h.
72167
72168 2005-08-12  Simon Josefsson  <jas@extundo.com>
72169
72170         * modules/getndelim2: Use ssize_t module.
72171         * modules/getnline: Likewise.
72172         * modules/safe-read: Likewise.
72173         * modules/xreadlink: Likewise.
72174
72175         * modules/ssize_t: New file.
72176
72177 2005-08-12  Simon Josefsson  <jas@extundo.com>
72178
72179         * m4/readline.m4: Look for termcap, curses or ncurses if required.
72180
72181 2005-08-12  Simon Josefsson  <jas@extundo.com>
72182
72183         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72184         ssize_t.
72185
72186 2005-08-12  Simon Josefsson  <jas@extundo.com>
72187
72188         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
72189         readline, getdelim and check_version.
72190         (Support for systems lacking ISO C 99: Sizes of integer types):
72191         Add size_max.
72192
72193 2005-08-12  Bruno Haible  <bruno@clisp.org>
72194
72195         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
72196
72197 2005-08-11  Simon Josefsson  <jas@extundo.com>
72198
72199         * modules/readline: New file.
72200
72201         * modules/strnlen (Files): Add strnlen.h.
72202
72203 2005-08-11  Simon Josefsson  <jas@extundo.com>
72204
72205         * m4/readline.m4: New file.
72206
72207 2005-08-11  Simon Josefsson  <jas@extundo.com>
72208
72209         * lib/readline.h, readline.c: New file.
72210
72211 2005-08-11  Simon Josefsson  <jas@extundo.com>
72212
72213         * doc/gnulib.texi (Initial import, Finishing touches): Mention
72214         gl_AVOID.
72215
72216 2005-08-11  Bruno Haible  <bruno@clisp.org>
72217
72218         * lib/strnlen.h (strnlen): Change parameter name to match comment.
72219
72220 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
72221
72222         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
72223
72224 2005-08-10  Simon Josefsson  <jas@extundo.com>
72225
72226         * tests/test-iconvme.c: New file.
72227
72228 2005-08-10  Simon Josefsson  <jas@extundo.com>
72229
72230         * m4/strnlen.m4: New file.
72231
72232         * m4/strndup.m4: Don't check for strnlen declaration, done in
72233         strnlen.m4.
72234
72235 2005-08-10  Simon Josefsson  <jas@extundo.com>
72236
72237         * lib/strndup.c: Use strnlen.h.
72238
72239         * lib/strnlen.h: New file.
72240
72241 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72242
72243         * README: Typos.
72244
72245 2005-08-02  Simon Josefsson  <jas@extundo.com>
72246
72247         * modules/readline: New file.
72248
72249 2005-08-02  Simon Josefsson  <jas@extundo.com>
72250
72251         * modules/getdelim: New file.
72252
72253         * modules/getline: Rewrite, don't use getndelim2.
72254
72255 2005-08-02  Simon Josefsson  <jas@extundo.com>
72256
72257         * m4/getline.m4: Separate out getdelim stuff into separate module.
72258
72259         * m4/getdelim.m4: New file.
72260
72261 2005-08-02  Simon Josefsson  <jas@extundo.com>
72262
72263         * lib/getline.h, getline.c: Rewrite.
72264
72265         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
72266
72267 2005-07-31  Bruno Haible  <bruno@clisp.org>
72268
72269         * lib/lock.h (gl_lock_initializer): New macro.
72270         (gl_lock_define_initialized): Use it.
72271         (gl_rwlock_initializer): New macro.
72272         (gl_rwlock_define_initialized): Use it.
72273         (gl_recursive_lock_initializer): New macro.
72274         (gl_recursive_lock_define_initialized): Use it.
72275
72276 2005-07-30  Karl Berry  <karl@gnu.org>
72277
72278         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
72279         Report from Ben Pfaff, regarding getopt.
72280
72281 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
72282
72283         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
72284         normal way.
72285         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
72286         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
72287         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
72288         (gl_GETOPT): Use the new macros.  Most of the implementation
72289         is moved to the new macros.  This is for programs like Emacs
72290         that don't want all the functionality of gl_GETOPT.
72291
72292 2005-07-26  Bruno Haible  <bruno@clisp.org>
72293
72294         * m4/lock.m4: Update from GNU gettext.
72295
72296 2005-07-26  Bruno Haible  <bruno@clisp.org>
72297
72298         * lib/lock.h: Update from GNU gettext.
72299         * lib/lock.c: Update from GNU gettext.
72300
72301 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
72302
72303         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
72304         obsolescent AC_TRY_RUN.  Include the default includes files, for
72305         'exit'.
72306
72307 2005-07-24  Bruno Haible  <bruno@clisp.org>
72308
72309         * modules/visibility: New file.
72310         * MODULES.html.sh (Misc): Add visibility.
72311
72312 2005-07-24  Bruno Haible  <bruno@clisp.org>
72313
72314         * m4/visibility.m4: New file.
72315
72316 2005-07-24  Bruno Haible  <bruno@clisp.org>
72317
72318         * doc/visibility.texi: New file.
72319
72320 2005-07-22  Bruno Haible  <bruno@clisp.org>
72321
72322         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
72323         $(ALLOCA_H), redundant through BUILT_SOURCES.
72324         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
72325         redundant through BUILT_SOURCES.
72326         * modules/byteswap (Makefile.am): Remove explicit dependency on
72327         $(BYTESWAP_H), redundant through BUILT_SOURCES.
72328         * modules/fnmatch (Makefile.am): Remove explicit dependency on
72329         $(FNMATCH_H), redundant through BUILT_SOURCES.
72330         * modules/getopt (Makefile.am): Remove explicit dependency on
72331         $(GETOPT_H), redundant through BUILT_SOURCES.
72332         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
72333         redundant through BUILT_SOURCES.
72334         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
72335         redundant through BUILT_SOURCES.
72336         * modules/stdbool (Makefile.am): Remove explicit dependency on
72337         $(STDBOOL_H), redundant through BUILT_SOURCES.
72338         * modules/stdint (Makefile.am): Remove explicit dependency on
72339         $(STDINT_H), redundant through BUILT_SOURCES.
72340         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
72341         Remove explicit dependency on $(SYSEXITS_H).
72342         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
72343
72344 2005-07-18  Simon Josefsson  <jas@extundo.com>
72345
72346         * lib/check-version.c (check_version): Accept identical versions too.
72347
72348 2005-07-18  Bruno Haible  <bruno@clisp.org>
72349
72350         * modules/lock: New file.
72351         * MODULES.html.sh (Multithreading): New section.
72352
72353 2005-07-18  Bruno Haible  <bruno@clisp.org>
72354
72355         * m4/lock.m4: New file, from GNU gettext.
72356
72357 2005-07-18  Bruno Haible  <bruno@clisp.org>
72358
72359         * lib/lock.h: New file, from GNU gettext.
72360         * lib/lock.c: New file, from GNU gettext.
72361
72362 2005-07-18  Bruno Haible  <bruno@clisp.org>
72363
72364         * lib/lock.h (gl_once_t): New type.
72365         (gl_once_define, gl_once): New macros.
72366         * lib/lock.c (fresh_once): New variable.
72367         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
72368         functions.
72369
72370 2005-07-16  Simon Josefsson  <jas@extundo.com>
72371
72372         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
72373         workaround, suggested by Bruno.
72374
72375 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72376
72377         * modules/xalloc (Depends-on): Add xalloc-die.
72378         * modules/xvasprintf (Depends-on): Add xalloc-die.
72379
72380 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
72381
72382         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
72383         with a minor change.
72384
72385 2005-07-15  Bruno Haible  <bruno@clisp.org>
72386
72387         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
72388         When using lib/poll.c, define poll as rpl_poll.
72389
72390 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
72391
72392         * modules/argp (Depends-on): Remove unlocked-io.
72393
72394 2005-07-14  Derek Price  <derek@ximbiot.com>
72395
72396         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
72397         for glob symlink bug.
72398
72399 2005-07-14  Bruno Haible  <bruno@clisp.org>
72400
72401         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
72402         Instead, test for *_unlocked function declarations directly.
72403
72404 2005-07-11  Simon Josefsson  <jas@extundo.com>
72405
72406         * modules/size_max: New file.
72407
72408         * modules/xsize: Depend on size_max module for size_max.m4.
72409
72410 2005-07-11  Simon Josefsson  <jas@extundo.com>
72411
72412         * lib/size_max.h: New file.
72413
72414 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
72415
72416         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
72417         copyright symbol and the year.
72418         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
72419         (version_etc_va): Use parameterized copyright notice.
72420         Reword to conform to the current GNU coding standards.
72421
72422 2005-07-11  Karl Berry  <karl@gnu.org>
72423
72424         * doc/gnulib.texi (Quoting): new node.
72425         (Initial import): more info, from Patrice.
72426
72427 2005-07-11  Bruno Haible  <bruno@clisp.org>
72428
72429         * gnulib-tool (func_usage): Document option --avoid.
72430         (Command line options): Handle --avoid.
72431         (func_acceptable): New function.
72432         (func_modules_transitive_closure): Use it.
72433
72434 2005-07-11  Bruno Haible  <bruno@clisp.org>
72435
72436         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
72437         Reported by Jim Meyering.
72438
72439 2005-07-10  Bruno Haible  <bruno@clisp.org>
72440
72441         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
72442         Needed when size_t is smaller than 'unsigned int'.
72443         Reported by Paul Eggert.
72444
72445 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72446
72447         * modules/argp (Depends-on): Add unlocked-io
72448
72449 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
72450
72451         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
72452         block of defines.
72453
72454 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72455
72456         * config/srclist.txt: Comment out regcomp.c, since we have a porting
72457         fix now.
72458
72459 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
72460         and Paul Eggert  <eggert@cs.ucla.edu>
72461
72462         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
72463         in wint_t, not wchar_t.  Remove now-unnecessary cast.
72464
72465 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72466
72467         * modules/regex (Files): Add lib/regex_internal.c,
72468         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
72469         (Depends-on): Add extensions.
72470         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
72471
72472 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72473
72474         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
72475         pathconf.
72476         * m4/same.m4 (gl_SAME): Likewise.
72477         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
72478
72479         * m4/regex.m4: Adjust to new libc regex implementation.
72480         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
72481         all the .c and .h parts of (the new) regex.
72482         Quote the m4 stuff better.
72483         Check for RE_ICASE bug of old gnulib.
72484         Check for REG_STARTEND of recent libc.
72485         Rename local variables from jm_* to gl_*.
72486         Quote operand of "test -f".
72487         Say "recent enough" version of libc, not "version 2".
72488         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
72489         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
72490         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
72491         Remove check for btowc, isascii.
72492         Require AM_LANGINFO_CODESET.
72493
72494 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72495
72496         * lib/regex.c, regex.h: Sync from libc.
72497         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
72498         * lib/regexec.c:
72499         New files, synced from libc, except that regex_internal.h
72500         currently has a small porting fix.
72501
72502 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
72503
72504         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
72505         regex_internal.c, regexec.c.
72506         Add regex_internal.h too, but as a comment, since the libc version
72507         is currently broken in gnulib mode.
72508
72509 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72510
72511         Support programs like Emacs that use gnulib but not gettext.
72512         * MODULES.html.sh (Internationalization functions): Add gettext-h.
72513         * modules/gettext-h: New file.
72514         * modules/gettext (Files): Remove lib/gettext.h.
72515         (Depends-on): Add gettext-h.
72516         (Makefile.am): Remove lib_SOURCES.
72517         * modules/argmatch, modules/c-stack, modules/closeout:
72518         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
72519         * modules/execute, modules/file-type, modules/getaddrinfo:
72520         * modules/getopt, modules/human, modules/javacomp:
72521         * modules/javaexec, modules/mkdir-p, modules/obstack:
72522         * modules/openat, modules/pagealign_alloc, modules/pipe:
72523         * modules/quotearg, modules/regex, modules/rpmatch:
72524         * modules/unicodeio, modules/userspec, modules/version-etc:
72525         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
72526         * modules/xsetenv:
72527         Depend on gettext-h, not gettext.
72528
72529 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72530
72531         * gnulib-tool (func_import): Add support for 'public domain' license.
72532         * modules/alloca, modules/atexit, modules/memmove:
72533         Now public domain, not GPL.
72534         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
72535         * modules/realloc, modules/strerror, modules/strtod:
72536         Now LGPL, not GPL.
72537
72538 2005-07-05  Bruno Haible  <bruno@clisp.org>
72539
72540         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
72541         autoconf CVS. Needed for mingw.
72542
72543 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72544
72545         Remove the dependency of the strftime module on the tzset module.
72546         * modules/strftime (Depends-on): Remove dependency on tzset.
72547
72548 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72549
72550         Remove the dependency of the strftime module on the tzset module.
72551         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
72552         gl_FUNC_TZSET_CLOBBER.
72553
72554 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
72555
72556         Remove the dependency of the strftime module on the tzset module.
72557         * lib/strftime.c (my_strftime)
72558         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
72559         Copy the input structure, to work around some of the bug with
72560         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
72561         Solaris releases, you should also use the tzset module, but we won't
72562         require it as a dependency any more since we don't want LGPLed code
72563         to depend on GPLed code.
72564
72565 2005-07-02  Jim Meyering  <jim@meyering.net>
72566
72567         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
72568         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
72569         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
72570         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
72571
72572 2005-07-02  Jim Meyering  <jim@meyering.net>
72573
72574         * lib/backupfile.c (backup_args): Change a `0' to NULL.
72575
72576 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
72577
72578         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
72579         declares only 'struct timespec;' (!).
72580
72581 2005-07-01  Jim Meyering  <jim@meyering.net>
72582
72583         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
72584         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
72585         * lib/save-cwd.c, tempname.c:
72586         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
72587         and don't include <sys/file.h>).
72588
72589 2005-06-29  Jim Meyering  <jim@meyering.net>
72590
72591         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
72592         type name.  Use the variable name instead.
72593         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
72594         Likewise.
72595
72596 2005-06-28  Simon Josefsson  <jas@extundo.com>
72597
72598         * modules/check-version (Files): Add check-version.m4.
72599
72600 2005-06-28  Simon Josefsson  <jas@extundo.com>
72601
72602         * m4/check-version.m4: New file, suggested by Jim Meyering
72603         <jim@meyering.net>.
72604
72605 2005-06-28  Simon Josefsson  <jas@extundo.com>
72606
72607         * lib/check-version.h, lib/check-version.c: New files.
72608
72609 2005-06-28  Simon Josefsson  <jas@extundo.com>
72610
72611         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
72612         collision with global variable.  Better indentation.  Don't
72613         increment buffer pointer beyond buffer end.  Based on comments
72614         from Paul Eggert <eggert@cs.ucla.edu>.
72615
72616         * lib/base64.h: Indent.
72617
72618 2005-06-28  Simon Josefsson  <jas@extundo.com>
72619
72620         * doc/gnulib.texi (Library version handling): New section.
72621
72622 2005-06-28  Jim Meyering  <jim@meyering.net>
72623
72624         * check-module (find_included_lib_files): Hard-code another
72625         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
72626         but modules/fts-lgpl (correctly) does not list those files.
72627
72628         * modules/canonicalize (Files): Add lib/pathmax.h.
72629
72630 2005-06-25  Simon Josefsson  <jas@extundo.com>
72631
72632         * modules/check-version: New file.
72633
72634 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
72635
72636         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
72637         initializer of struct addrinfo, as an indication that we don't
72638         care how many members the structure has.
72639
72640 2005-06-24  Derek Price  <derek@ximbiot.com>
72641         and Bruno Haible  <bruno@clisp.org>
72642
72643         Remove stat module & update lstat.
72644         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
72645         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72646         * m4/stat.m4: Remove this file.
72647
72648 2005-06-24  Derek Price  <derek@ximbiot.com>
72649         and Bruno Haible  <bruno@clisp.org>
72650
72651         Remove stat module & update lstat.
72652         * lib/stat.c: Remove this file...
72653         (slash_aware_lstat): ...moving this content and its support...
72654         * lib/lstat.c (rpl_lstat): ...into here.
72655         * lib/lstat.h: New file.
72656
72657 2005-06-24  Derek Price  <derek@ximbiot.com>
72658         and Bruno Haible  <bruno@clisp.org>
72659
72660         Remove stat module & update lstat.
72661         * config/srclist.txt (libc sources): Remove stat.
72662
72663 2005-06-24  Derek Price  <derek@ximbiot.com>
72664         and Bruno Haible  <bruno@clisp.org>
72665
72666         Remove stat module & update lstat.
72667         * MODULES.html.sh (stat): Remove.
72668         * MODULES.html: Regenerated.
72669         * modules/lstat (Description): Correct function name.
72670         (Files): Add "lstat.h".
72671         (Depends-on): Remove stat, add xalloc, stat-macros.
72672         * modules/stat: Remove this file.
72673         (Include): Add "lstat.h", remove <sys/stat.h>.
72674
72675 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
72676
72677         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
72678         (ranged_convert): Don't save conversion in a temporary struct.
72679         This causes a warning with GCC 4.0.0, and anyway in the typical
72680         case it's not worth the extra 100 bytes or so of code.
72681         (ranged_convert, __mktime_internal): When calling a function via a
72682         pointer P, use P () rather than (*P) (), as we now assume C89 or
72683         better.
72684
72685 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
72686
72687         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
72688         "who -r" failed to give output.  Problem reported by Tim Waugh.
72689
72690         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
72691         (xcalloc): Use it to avoid needless tests.
72692         Problem reported by Jim Meyering.
72693
72694 2005-06-20  Derek Price  <derek@ximbiot.com>
72695
72696         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
72697         unnecessary for Autoconfs > 2.59c.
72698
72699 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
72700
72701         * lib/argp.h (__option_is_short): Check upper limit of
72702         __key. Isprint() requires its argument to have the value
72703         of an unsigned char or EOF.
72704
72705 2005-06-16  Jim Meyering  <jim@meyering.net>
72706
72707         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
72708         when either N or S is zero.
72709
72710 2005-06-16  Derek Price  <derek@ximbiot.com>
72711
72712         * m4/bison.m4: Declare YACC & YFLAGS precious.
72713
72714 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
72715
72716         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
72717         multibyte string or pattern, fall back on unibyte matching.
72718         Problem reported by James Youngman.
72719
72720 2005-06-08  Bruno Haible  <bruno@clisp.org>
72721
72722         * modules/csharpcomp: New file.
72723         * MODULES.html.sh (C#): Add csharpcomp.
72724
72725 2005-06-08  Bruno Haible  <bruno@clisp.org>
72726
72727         * m4/csharpcomp.m4: New file, from GNU gettext.
72728
72729 2005-06-08  Bruno Haible  <bruno@clisp.org>
72730
72731         * lib/csharpcomp.h: New file, from GNU gettext.
72732         * lib/csharpcomp.c: New file, from GNU gettext.
72733         * lib/csharpcomp.sh.in: New file, from GNU gettext.
72734
72735 2005-06-08  Bruno Haible  <bruno@clisp.org>
72736
72737         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
72738         warning on mingw.
72739
72740 2005-06-07  Derek Price  <derek@ximbiot.com>
72741
72742         Sync from CVS.
72743         * lib/glob_.h: Indent nested #ifdef.
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         * lib/mkdir-p.c: Renamed from makepath.c.
72751         (make_dir_parents): Renamed from make_path.  All callers changed.
72752         * lib/mkdir-p.h: Likewise.  All includers changed.
72753         * lib/filenamecat.c: Renamed from path-concat.c.
72754         (file_name_concat): Renamed from path_concat.  All callers changed.
72755         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
72756         * lib/filenamecat.h: Likewise.  All includers changed.
72757         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
72758         in comments or local variable names.
72759         * lib/basename.c: Likewise.
72760         * lib/canonicalize.c, canonicalize.h: Likewise.
72761         * lib/dirname.c, dirname.h: Likewise.
72762         * lib/euidaccess.c: Likewise.
72763         * lib/exclude.c: Likewise
72764         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
72765         * lib/fsusage.c, fsuage.h: Likewise.
72766         * lib/fts.c, fts_.h: Likewise.
72767         * lib/getcwd.c: Likewise.
72768         * lib/getloadavg.c: Likewise.
72769         * lib/mkstemp.c: Likewise.
72770         * lib/mountlist.c, mountlist.h: Likewise.
72771         * lib/openat.c, openat.h: Likewise.
72772         * lib/readlink-stub.c: Likewise.
72773         * lib/readutmp.c, readutmp.h: Likewise.
72774         * lib/rename.c: Likewise.
72775         * lib/rmdir.c: Likewise.
72776         * lib/same.c: Likewise.
72777         * lib/savedir.c: Likewise.
72778         * lib/stripslash.c: Likewise.
72779         * lib/tempname.c: Likewise.
72780         * lib/xreadlink.c: Likewise.
72781         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
72782         All uses changed.
72783         * lib/exclude.h: Likewise.
72784
72785         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
72786         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72787         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
72788         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72789         * lib/pathmax.h: Include <limits.h> unconditionally, since other
72790         files have been getting away with it for years (MORE/BSD 4.3
72791         is extinct now).
72792         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
72793         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
72794
72795         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
72796         Define to 256, not 255, as per modern POSIX.
72797
72798 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         Sync from coreutils.
72801         Use "file name" when talking about file names, instead of "filename"
72802         or "path", as per the GNU coding standards.
72803         * MODULES.html.sh: mkdir-p renamed from makepath.
72804         filenamecat renamed from path-concat.
72805         * modules/filenamecat: Renamed from modules/path-concat.
72806         (Files): filenamecat.h and filenamecat.c renamed from
72807         path-concat.h and path-concat.c.
72808         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
72809         (Include): filenamecat.h, not path-concat.h.
72810         * modules/mkdir-p: Renamed from modules/makepath.
72811         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
72812         makepath.c.
72813         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
72814         (Include): mkdir-p.h, not makepath.h.
72815
72816 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
72817
72818         Sync from coreutils.
72819         * m4/mkdir-p.m4: Renamed from makepath.m4.
72820         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
72821         Rename files from makepath.c to mkdir-p.c, and from
72822         makepath.h to mkdir-p.h.
72823         * m4/filenamecat.m4: Renamed from path-concat.m4.
72824         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
72825         Rename files from path-concat.c to filenamecat.c,
72826         and from path-concat.h to filenamecat.h.
72827         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
72828         "file name" in local variables or comments.
72829         * m4/rename.m4: Likewise.
72830
72831 2005-06-01  Bruno Haible  <bruno@clisp.org>
72832
72833         * modules/csharpexec: New file.
72834         * MODULES.html.sh (C#): New section.
72835
72836 2005-06-01  Bruno Haible  <bruno@clisp.org>
72837
72838         * m4/csharp.m4: New file, from GNU gettext.
72839         * m4/csharpexec.m4: New file, from GNU gettext.
72840
72841 2005-06-01  Bruno Haible  <bruno@clisp.org>
72842
72843         * lib/csharpexec.h: New file, from GNU gettext.
72844         * lib/csharpexec.c: New file, from GNU gettext.
72845         * lib/csharpexec.sh.in: New file, from GNU gettext.
72846
72847 2005-05-31  Derek Price  <derek@ximbiot.com>
72848             Paul Eggert  <eggert@cs.ucla.edu>
72849
72850         Sync from cvs.
72851         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72852
72853 2005-05-31  Derek Price  <derek@ximbiot.com>
72854             Paul Eggert  <eggert@cs.ucla.edu>
72855
72856         Sync from cvs.
72857         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
72858
72859 2005-05-29  Derek Price  <derek@ximbiot.com>
72860
72861         * config/srclist.txt (glob_.h, glob.c): Add these files.
72862
72863 2005-05-29  Derek Price  <derek@ximbiot.com>
72864
72865         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
72866         * modules/glob: New file.
72867         * modules/getlogin_r: Add link to POSIX spec in description.
72868
72869 2005-05-29  Derek Price  <derek@ximbiot.com>
72870             Paul Eggert  <eggert@cs.ucla.edu>
72871
72872         * m4/glob.m4: New file.
72873
72874 2005-05-29  Derek Price  <derek@ximbiot.com>
72875             Paul Eggert  <eggert@cs.ucla.edu>
72876
72877         * lib/glob_.h, lib/glob.c: New files.
72878
72879 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72880
72881         * modules/fts (Files): Remove m4/inttypes-pri.m4.
72882         * modules/fts-lgpl (Depends-on): Remove gettext.
72883
72884 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72885
72886         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
72887         and don't require gt_INTTYPES_PRI.
72888
72889 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
72890
72891         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
72892
72893         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
72894         the configuration hassle isn't worth it.
72895         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
72896         (LONGEST_MODIFIER, PRIuMAX): Remove.
72897
72898 2005-05-27  Bruno Haible  <bruno@clisp.org>
72899
72900         * lib/getlogin_r.h: Remove second include of <stddef.h>.
72901
72902 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
72903
72904         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
72905         _POSIX_PTHREAD_SEMANTICS for Solaris.
72906
72907 2005-05-25  Derek Price  <derek@ximbiot.com>
72908
72909         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
72910
72911 2005-05-25  Derek Price  <derek@ximbiot.com>
72912             Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * modules/getlogin_r, m4/getlogin_r.m4: New files.
72915         * lib/getlogin_r.c, getlogin_r.h: New files.
72916
72917 2005-05-25  Bruno Haible  <bruno@clisp.org>
72918             Derek Price  <derek@ximbiot.com>
72919
72920         * lib/getlogin_r.h: Simplify API documentation.
72921
72922 2005-05-23  Derek Price  <derek@ximbiot.com>
72923
72924         * modules/minmax (Files): Add m4/minmax.m4.
72925         (configure.ac): Add gl_MINMAX.
72926
72927 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
72928
72929         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
72930         so that unistd-safer.h (GPL'ed code) need not be included.
72931
72932 2005-05-22  Bruno Haible  <bruno@clisp.org>
72933
72934         * m4/minmax.m4: New file.
72935         Based on a patch by Derek Price <derek@ximbiot.com>.
72936
72937 2005-05-22  Bruno Haible  <bruno@clisp.org>
72938
72939         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
72940         (INT64_MIN): Fix definition.
72941         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
72942
72943         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
72944         NEED_SIGNED_INT_TYPES.
72945
72946         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
72947         HAVE_SYSTEM_INTTYPES.
72948
72949 2005-05-22  Bruno Haible  <bruno@clisp.org>
72950
72951         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
72952         Also include <sys/param.h> if it defines MIN, MAX.
72953         Based on a patch by Derek Price <derek@ximbiot.com>.
72954
72955 2005-05-21  Jim Meyering  <jim@meyering.net>
72956
72957         * modules/fts (Files): Add m4/inttypes-pri.m4.
72958         (Depends-on): Add lstat and remove gettext.  Alphabetize.
72959
72960 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         New fts module.
72963         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
72964         (setup_dir, free_dir): New functions.
72965         (enter_dir, leave_dir): Define trivial
72966         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
72967         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
72968         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
72969         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
72970         Move to fts-cycle.c.
72971         (fts_open): Use setup_dir.
72972         (fts_close): Use free_dir.
72973         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
72974         This adds a label and some gotos, but the alternatives were messier.
72975         Check for memory allocation failure when entering a dir.
72976         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
72977         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
72978         (FTS): New member fts_cycle, that is a union that contains the
72979         old active_dir_ht and cycle_state.  All uses changed to mention
72980         fts_cycle.ht and fts_cycle.state.
72981         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
72982         fts.c, with the following changes:
72983         (setup_dir, free_dir): New functions.
72984         (enter_dir): Now returns bool.  Return true if successful, false
72985         if memory exhausted.  All callers changed.
72986         Do not bother partly cleaning up on
72987         memory allocation failure; that is free_dir's job.
72988         However, free ad if hash_insert fails, to avoid memory leak.
72989         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
72990         fts->fts_options to see which union member to use.
72991
72992 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
72995         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
72996
72997 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
72998
72999         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
73000
73001 2005-05-20  Jim Meyering  <jim@meyering.net>
73002
73003         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
73004         Now a macro, to pacify GCC.
73005
73006 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73007
73008         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
73009         of -1.
73010
73011 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
73012
73013         * lib/chown.c (rpl_chown): Return -1 on failure.
73014
73015 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73016
73017         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
73018         Don't check for stddef.h.
73019         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
73020         don't use its results.
73021         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
73022         since we include them unconditionally.  Don't require
73023         AM_STDBOOL_H, since stdbool is a prerequisite.
73024         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
73025         since we assume C89 or better.
73026         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
73027         as we don't use their results.
73028         Don't check for fchdir, memmove, memset, strrchr, as we use
73029         them unconditionally.
73030         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
73031         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
73032
73033 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
73036         Include <stddef.h> unconditionally, since we assume C89 now.
73037         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
73038         * lib/fts.c: Include fts_.h first, to check interface.
73039         Do not include intprops.h; no longer needed.
73040         Include cycle-check.h and hash.h, since fts_.h no longer does.
73041         Remove unnecessary casts of closedir to void.
73042         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
73043         decide whether to decrement nlinks.
73044         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
73045         (FTS): Use struct hash_table * instead of Hash_table, so that
73046         we no longer need to include hash.h here.
73047
73048 2005-05-18  Jim Meyering  <jim@meyering.net>
73049
73050         * modules/dirfd (License): Change to LGPL.  Most of the code
73051         is already in the public domain.
73052
73053 2005-05-18  Jim Meyering  <jim@meyering.net>
73054
73055         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
73056         Reported by Yoann Vandoorselaere.
73057
73058 2005-05-17  Jim Meyering  <jim@meyering.net>
73059
73060         * m4/fts.m4: New file, from coreutils.
73061
73062 2005-05-17  Jim Meyering  <jim@meyering.net>
73063
73064         * lib/fts.c, lib/fts_.h: New files, from coreutils.
73065
73066 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73067
73068         Sync from coreutils.
73069         * m4/unlinkdir.m4: New file.
73070
73071 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         Sync from coreutils.
73074         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
73075         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
73076         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
73077         White space changes only.
73078         * lib/makepath.c (make_path): Port to hosts where leading "//" is
73079         special.
73080         * lib/yesno.c: Include getline.h, not ctype.h.
73081         (yesno): Don't remove leading white space; POSIX doesn't allow it.
73082         Use getline to remove arbitrary restriction on response length.
73083
73084 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73085
73086         * config/srclist-update: Spell out "Street" in FSF postal
73087         mail address; this is the style the FSF seems to prefer.
73088
73089         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
73090         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
73091         this updates FSF postal mail address.
73092
73093         Sync from coreutils.
73094         * modules/unlinkdir: New file.
73095         * modules/yesno (Depends-on): Add getline.
73096         * MODULES.html.sh (File system functions): Add unlinkdir.
73097
73098 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73099
73100         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
73101         lib/strsep.h:
73102         Change the initial comment to refer to GPL, not LGPL.
73103         gnulib-tool will change it to LGPL as needed.
73104
73105         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
73106         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
73107         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
73108         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
73109         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
73110         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
73111         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
73112         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
73113         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
73114         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
73115         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
73116         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
73117         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
73118         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
73119         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
73120         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
73121         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
73122         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
73123         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
73124         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
73125         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
73126         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
73127         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
73128         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
73129         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
73130         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
73131         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
73132         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
73133         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
73134         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
73135         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
73136         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
73137         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
73138         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
73139         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
73140         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
73141         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
73142         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
73143         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
73144         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
73145         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
73146         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
73147         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
73148         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
73149         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
73150         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
73151         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
73152         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
73153         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
73154         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
73155         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
73156         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
73157         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
73158         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
73159         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
73160         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
73161         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
73162         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
73163         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
73164         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
73165         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
73166         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
73167         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
73168         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
73169         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
73170         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
73171         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
73172         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
73173         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
73174         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
73175         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
73176         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
73177         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
73178         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
73179         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
73180         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
73181         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
73182         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
73183         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
73184         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
73185         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
73186         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
73187         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
73188         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
73189         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
73190         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
73191         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
73192         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
73193         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
73194         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
73195         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
73196         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
73197         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
73198         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
73199         lib/yesno.c, lib/yesno.h:
73200         Update FSF postal mail address.
73201
73202 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
73203
73204         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
73205         tests/test-memmem.c, tests/test-stpncpy.c:
73206         Update FSF postal mail address.
73207
73208 2005-05-13  Bruno Haible  <bruno@clisp.org>
73209
73210         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
73211         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
73212         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
73213         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
73214         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
73215         Add support for 64-bit integers in the MSVC compiler.
73216
73217 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
73218
73219         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
73220
73221 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
73222
73223         * gnulib-tool (func_import): Sort and uniquify recommended includes.
73224
73225 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
73226
73227         * doc/getdate.texi (General date syntax): Don't say that date
73228         date --iso-8601=ns generates acceptable dates; it doesn't yet.
73229         Problem reported by Nic Ferrier.
73230
73231 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73232
73233         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
73234         specified in ai_socktype. Fix invalid ai_protocol
73235         check. ai_protocol is usually set to 0 or depending on
73236         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
73237         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
73238         ai_socktype / ai_protocol in the returned addrinfo structure.
73239
73240 2005-05-10  Simon Josefsson  <jas@extundo.com>
73241
73242         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
73243         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
73244
73245 2005-05-10  Karl Berry  <karl@gnu.org>
73246
73247         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
73248         (from http://www.gnu.org/licenses).
73249         * doc/COPYING.LIB: also rename to COPYING.LESSER.
73250         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
73251         fdl.texi suffices.
73252
73253 2005-05-10  Karl Berry  <karl@gnu.org>
73254
73255         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
73256         (COPYING.DOC): remove.
73257
73258         * config/srclist-update: new FSF address.
73259
73260 2005-05-10  Derek Price  <derek@ximbiot.com>
73261
73262         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
73263         possible.
73264
73265 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73266             Bruno Haible  <bruno@clisp.org>
73267
73268         * modules/inet_ntop: New file.
73269         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
73270         inet_ntop.
73271
73272 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73273             Bruno Haible  <bruno@clisp.org>
73274
73275         * m4/inet_ntop.m4: New file.
73276
73277 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73278             Bruno Haible  <bruno@clisp.org>
73279
73280         * lib/inet_ntop.h: New file.
73281         * lib/inet_ntop.c: New file, from glibc with modifications.
73282
73283 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
73284
73285         * modules/time_r (License): Change to LGPL.
73286         * modules/extensions (License): Change to LGPL.  Actually,
73287         the license is more permissive than that, but currently gnulib-tool
73288         doesn't know how to handle more-permissive licenses.
73289
73290         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
73291         Problem reported by Dave Love.
73292
73293 2005-05-08  Jim Meyering  <jim@meyering.net>
73294
73295         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
73296         blank.
73297
73298 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
73299
73300         * modules/argmatch (Depends-on): Add stdbool.
73301         * modules/backupfile (Depends-on): Likewise.
73302         * modules/chdir-long (Depends-on): Likewise.
73303         * modules/closeout (Depends-on): Likewise.
73304         * modules/cycle-check (Depends-on): Likewise.
73305         * modules/dirname (Depends-on): Likewise.
73306         * modules/fnmatch (Depends-on): Likewise.
73307         * modules/fsusage (Depends-on): Likewise.
73308         * modules/fwriteerror (Depends-on): Likewise.
73309         * modules/getcwd (Depends-on): Likewise.
73310         * modules/getloadavg (Depends-on): Likewise.
73311         * modules/hard-locale (Depends-on): Likewise.
73312         * modules/makepath (Depends-on): Likewise.
73313         * modules/mountlist (Depends-on): Likewise.
73314         * modules/nanosleep (Depends-on): Likewise.
73315         * modules/posixtm (Depends-on): Likewise.
73316         * modules/quotearg (Depends-on): Likewise.
73317         * modules/readtokens (Depends-on): Likewise.
73318         * modules/readtokens0 (Depends-on): Likewise.
73319         * modules/readutmp (Depends-on): Likewise.
73320         * modules/save-cwd (Depends-on): Likewise.
73321         * modules/strftime (Depends-on): Likewise.
73322         * modules/userspec (Depends-on): Likewise.
73323         * modules/utimecmp (Depends-on): Likewise.
73324         * modules/xgetcwd (Depends-on): Likewise.
73325         * modules/xnanosleep (Depends-on): Likewise.
73326         * modules/xstrtod (Depends-on): Likewise.
73327         * modules/yesno (Depends-on): Likewise.
73328
73329 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
73330
73331         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
73332         needless checks.
73333
73334 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73335
73336         Merge from coreutils.  Among other things,
73337         add bulletproofing for cases where stdin, stdout, or stderr are closed.
73338         * lib/fd-safer.c: New file.
73339         * lib/fcntl-safer.h, open-safer.c: Remove.
73340         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
73341         * lib/dup-safer.c: Include unistd-safer.h first.
73342         Don't include errno.h.
73343         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
73344         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
73345         * lib/file-type.c: Rely on file-type.h change.
73346         * lib/getloadavg.c: Include unistd-safer.h.
73347         (getloadavg): Use safer open.
73348         * lib/getusershell.c: Include "stdio-safer.h".
73349         (getusershell): Use safer fopen.
73350         * lib/long-options.c (long_options): Use NULL rather than 0.
73351         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
73352         'free'.
73353         * lib/modechange.c: Likewise.
73354         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
73355         (MODE_DONE): New constant.
73356         (struct mode_change): Remove 'next' member.
73357         (make_node_op_equals): New function; like the old one of the
73358         same name, except it allocates an array.
73359         (mode_compile, mode_create_from_ref): Use it.
73360         (mode_compile): Allocate result as an array, not a linked list.
73361         Parse octal string ourself, so that we catch mistakes like "+0".
73362         (mode_adjust): Arg is an array, not a linked list.
73363         * lib/modechange.c: Include stat-macros.h, xalloc.h.
73364         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
73365         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
73366         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
73367         Remove.  This is now stat-macros.h's job.
73368         (talloc): Remove.  All callers replaced by xalloc, so that
73369         our invokers don't have to worry about reporting memory failures.
73370         (make_node_op_equals): Remove.
73371         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73372         New constants.
73373         (struct mode_change): Moved here from modechange.h.
73374         (mode_append_entry): Remove.
73375         (mode_compile): Remove MASKED_OPS arg, since it encouraged
73376         apps to have incorrect behavior.  Use simpler algorithm for head
73377         and tail.  Don't futz with umask; that's now the job of mode_adjust.
73378         Detect more invalid usages rather than having somewhat-random behavior.
73379         Don't insert an "a=" action, as that leads to incorrect behavior.
73380         (mode_compile, mode_create_from_ref): Return NULL on error instead
73381         of an enum, since now there's only one way to have an error.  All
73382         callers changed.
73383         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
73384         at the correct time.  Simplify calculation of "+u" and its ilk.
73385         Don't mishandle "+X".
73386         (mode_free): Remove "register" and localize decls.
73387         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
73388         (struct mode_change): Move to modechange.c; callers don't
73389         need to see this stuff.
73390         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
73391         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
73392         (mode_change, mode_adjust): Reflect the new signatures noted above.
73393         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
73394         that might redefine system include files.
73395         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
73396         (my_usleep): Use NULL rather than (void *) 0.
73397         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
73398         Use siginterrupt to specify that system calls should be interrupted.
73399         (rpl_nanosleep): Move initialization of suspended closer to call of
73400         my_usleep.
73401         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
73402         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
73403         (desirable_utmp_entry): New function.
73404         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
73405         using x2nrealloc, to simplify logic.
73406         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
73407         size calculation.  Do not assume utmp file is a regular file.
73408         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
73409         (READ_UTMP_CHECK_PIDS): New constant.
73410         * lib/save-cwd.c: Include unistd-safer.h.
73411         (save_cwd): Use fd_safer.
73412         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
73413         [!_LIBC] Include "stat-macros.h" instead.
73414         * lib/unistd-safer.h (fd_safer): New decl.
73415
73416 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73417
73418         * modules/getloadavg (Depends-on): Add unistd-safer.
73419         * modules/getusershell (Depends-on): Add stdio-safer.
73420         * modules/lstat (Depends-on): Remove xalloc.
73421         * modules/mkstemp (Depends-on): Add stat-macros.
73422         * modules/modechange (Depends-on): Remove xstrtol.
73423         Add stat-macros, xalloc.
73424         * modules/save-cwd (Depends-on): Add unistd-safer.
73425         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
73426         * modules/unistd-safer (Files): Add lib/fd-safer.c
73427         (Makefile.am): Remove lib_SOURCES.
73428
73429         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
73430         Remove fcntl-safer; unistd-safer supersedes it.
73431
73432 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73433
73434         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
73435         AC_HEADER_STAT.
73436         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
73437         (gl_PREREQ_CHOWN): Remove.
73438         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
73439         it.  Don't require AC_HEADER_STAT.
73440         (gl_PREREQ_LSTAT): Remove.
73441         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
73442         Don't require AC_HEADER_STAT.
73443         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
73444         (gl_PREREQ_RMDIR): Remove.
73445         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
73446         mention stat-macros.h or AC_HEADER_STAT, since we'll make
73447         the stat-macros module a prerequisite.
73448         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
73449         * m4/filemode.m4 (gl_FILEMODE): Likewise.
73450         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
73451         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
73452         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
73453         variable names.
73454         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
73455         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
73456         variable prefixes.
73457         * m4/fcntl-safer.m4: Remove.
73458         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
73459         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
73460         Invoke gl_PREREQ_FD_SAFER.
73461         (gl_PREREQ_FD_SAFER): New macro.
73462         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
73463         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
73464         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
73465         Remove duplicate call to AC_LIBOBJ(readutmp).
73466         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
73467
73468         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
73469         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
73470
73471 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
73472
73473         * MODULES.html.sh (Misc): Add byteswap.
73474
73475 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73476
73477         * modules/getcwd (Depends-on): Add extensions.
73478         * modules/openat (Depends-on): Likewise.
73479
73480 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73481
73482         * modules/byteswap: New file.
73483
73484 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73485
73486         * m4/byteswap.m4: New file.
73487
73488 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
73489
73490         * lib/byteswap_.h: New file.
73491
73492 2005-04-25  Karl Berry  <karl@gnu.org>
73493
73494         * m4/gettext.m4: Update from GNU gettext 0.14.4.
73495
73496 2005-04-25  Albert Chin  <china@thewrittenword.com>
73497
73498         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
73499         Toolkit C bug.
73500
73501 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
73502
73503         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
73504         (func_ln_if_changed): Remove forcibly for no error message
73505         in case file does not exist.
73506
73507 2005-04-19  Simon Josefsson  <jas@extundo.com>
73508
73509         * gnulib-tool (Options): Make --symlink mean --symbolic.
73510
73511 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
73512
73513         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
73514
73515 2005-04-16  Simon Josefsson  <jas@extundo.com>
73516
73517         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
73518
73519 2005-04-15  Simon Josefsson  <jas@extundo.com>
73520
73521         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
73522
73523 2005-04-15  Simon Josefsson  <jas@extundo.com>
73524
73525         * gnulib-tool: Rename --symlink to --symbolic.
73526
73527 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
73528
73529         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
73530         symbolic links to files instead of copying/moving.  Add --aux-dir,
73531         specifying directory relative --dir where auxiliary build tools
73532         are placed.
73533
73534 2005-04-14  Bruno Haible  <bruno@clisp.org>
73535
73536         * modules/allocsa (License): Change to LGPL.
73537         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
73538
73539 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
73540
73541         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
73542         that "UTC +1 second" continues to work.  Problem reported
73543         by Dmitry V. Levin.
73544         (relunit_snumber): New rule.
73545         (relunit): Use it.
73546
73547 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73548
73549         * lib/getdate.y (universal_time_zone_table): New constant.
73550         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
73551         universal_time_zone_table.
73552         (lookup_zone): Prefer universal_time_zone_table to
73553         local_time_zone_table, so that "GMT" time stamps are allowed in
73554         London during the summer.  Problem reported by Ian Abbott.
73555
73556 2005-04-12  Jim Meyering  <jim@meyering.net>
73557
73558         * lib/human.c (humblock): Set *options even when returning due to
73559         xstrtoumax conversion failure.  Thanks to a used-uninitialized
73560         warning from gcc-4.
73561
73562 2005-04-09  Jim Meyering  <jim@meyering.net>
73563
73564         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
73565         -Wuninitialized: initialize tm0.tm_year.
73566
73567 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
73568
73569         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
73570         count, since there's no maximum.  All uses changed.
73571         Add member dsts_seen.
73572         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
73573         not being INT_MAX.
73574         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
73575         Use pc_rels_seen to decide whther a date is absolute.
73576
73577         * lib/getdate.y (number): Don't overwrite year.
73578         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
73579         check.
73580
73581 2005-04-02  Simon Josefsson  <jas@extundo.com>
73582
73583         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
73584         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
73585
73586 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
73587
73588         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
73589         where no absolute path name can be longer than PATH_MAX.
73590
73591 2005-03-27  Jim Meyering  <jim@meyering.net>
73592
73593         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
73594
73595 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
73598         "one's complement" -> "ones' complement" in comment, as per Knuth.
73599         "value of type" -> "type or expression" in comment.
73600         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
73601
73602 2005-03-26  Jim Meyering  <jim@meyering.net>
73603
73604         Comment nits.
73605         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
73606         Correct typos: s/or/of/.
73607
73608 2005-03-26  Jim Meyering  <jim@meyering.net>
73609
73610         * modules/check-include-files: Move to ../ and rename to...
73611         * check-module: ...this.
73612
73613 2005-03-25  Jim Meyering  <jim@meyering.net>
73614
73615         * modules/xvasprintf (Files): Add xalloc.h.
73616
73617 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
73618
73619         * modules/gettext (Files): config/config.rpath ->
73620         build-aux/config.rpath
73621         * modules/iconv (Files): Likewise.
73622         Problem reported by Oskar Liljeblad.
73623
73624 2005-03-23  Jim Meyering  <jim@meyering.net>
73625
73626         * modules/check-include-files: New script to check for
73627         missing dependencies, multiple includes, etc.
73628
73629         * modules/c-strtold (Depends-on): Add xalloc.
73630         * modules/c-strtod (Depends-on): Add xalloc.
73631         * modules/hash (Depends-on): Add xalloc.
73632         (Files): Remove lib/xalloc.h.
73633
73634         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
73635         * modules/userspec (Files): Add lib/inttostr.h.
73636
73637 2005-03-23  Jim Meyering  <jim@meyering.net>
73638
73639         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
73640
73641 2005-03-22  Jim Meyering  <jim@meyering.net>
73642
73643         * modules/stat-macros: New module.
73644         * modules/canonicalize, modules/euidaccess, modules/file-type,
73645         * modules/filemode, modules/lchown, modules/makepath,
73646         * modules/rmdir, modules/stat: Depend on new stat-macros module
73647         rather than listing lib/stat-macros.h manually.
73648         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
73649
73650 2005-03-22  Jim Meyering  <jim@meyering.net>
73651
73652         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
73653
73654 2005-03-22  Bruno Haible  <bruno@clisp.org>
73655
73656         * config/srclist.txt: Replace target directory 'config' with
73657         'build-aux'.
73658         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
73659         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
73660         ../build-aux/.
73661
73662 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
73663
73664         * modules/chdir-long (Depends-on): Add mempcpy.
73665
73666         * modules/acl, modules/backupfile, modules/c-strtod,
73667         modules/c-strtold, modules/canon-host, modules/canonicalize,
73668         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
73669         modules/exclude, modules/exitfail, modules/file-type,
73670         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
73671         modules/getdate, modules/getline, modules/getpagesize,
73672         modules/getpass, modules/getugroups, modules/group-member,
73673         modules/hard-locale, modules/hash, modules/human, modules/idcache,
73674         modules/inttostr, modules/long-options, modules/makepath,
73675         modules/md5, modules/memcasecmp, modules/memcoll,
73676         modules/modechange, modules/mountlist, modules/path-concat,
73677         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
73678         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
73679         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
73680         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
73681         modules/strftime, modules/strndup, modules/strverscmp,
73682         modules/timespec, modules/unlocked-io, modules/userspec,
73683         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
73684         modules/yesno:
73685         Remove lib_SOURCES line from Makefile.am section, as this is now
73686         done automatically by the corresponding Autoconf macro.
73687
73688 2005-03-21  Jim Meyering  <jim@meyering.net>
73689
73690         Changes imported from coreutils.
73691
73692         * lib/cycle-check.c: Don't include xalloc.h.
73693
73694         * lib/path-concat.c: Don't include assert.h.
73695         (path_concat): Remove assertion that would have triggered
73696         for ABASE starting with more than one slash.
73697         Reported by Andreas Schwab.
73698
73699         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
73700         properly when ABASE is an absolute file name.
73701         Correct the description of this function.
73702         Include <assert.h>.
73703         Add an assertion and a test driver.
73704         This fixes a bug introduced on 2004-07-02.
73705         Andreas Schwab reported the resulting failure of cp --parents:
73706         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
73707
73708 2005-03-21  Jim Meyering  <jim@meyering.net>
73709
73710         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
73711         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
73712
73713 2005-03-21  Jim Meyering  <jim@meyering.net>
73714         and  Paul Eggert  <eggert@cs.ucla.edu>
73715
73716         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
73717         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
73718         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
73719         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
73720         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
73721         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
73722         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
73723         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
73724         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
73725         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
73726         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
73727         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
73728         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
73729         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
73730         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
73731         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
73732         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
73733         for these modules.
73734
73735 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
73736
73737         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
73738         (which shouldn't happen), generate nothing instead of returning 0
73739         immediately, so that nstrftime (NULL, ...) doesn't return 0.
73740
73741 2005-03-16  Bruno Haible  <bruno@clisp.org>
73742
73743         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
73744         HAVE_LONGLONG_64BIT.
73745
73746 2005-03-16  Bruno Haible  <bruno@clisp.org>
73747
73748         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
73749         HAVE_LONGLONG_64BIT.
73750
73751 2005-03-16  Bruno Haible  <bruno@clisp.org>
73752
73753         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
73754         HAVE_LONGLONG_64BIT.
73755
73756 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73757
73758         * lib/strftime.c (my_strftime): Prepend space to format so that we can
73759         reliably distinguish strftime failure from empty output on POSIX
73760         hosts.
73761
73762 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
73763
73764         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
73765         (iconv_string): Don't guess a size-zero buffer, as that might cause
73766         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
73767         result would be 'too large', where 'too large' is (heuristically)
73768         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
73769         overflow concerns.  This will prevent some unwanted malloc failures
73770         when the inputs are very large.
73771
73772 2005-03-15  Karl Berry  <karl@gnu.org>
73773
73774         * config/srclist.txt (config.rpath): from gettext.
73775         * config/config.rpath: update.
73776
73777 2005-03-15  Bruno Haible  <bruno@clisp.org>
73778
73779         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
73780         to 'negate'.
73781
73782         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
73783         variable.
73784
73785         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
73786         results.
73787
73788 2005-03-14  Simon Josefsson  <jas@extundo.com>
73789
73790         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
73791         <fx@gnu.org>.
73792
73793 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
73794
73795         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
73796         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
73797         intprops.h.
73798         * lib/strtol.c: Likewise.
73799
73800 2005-03-14  Jim Meyering  <jim@meyering.net>
73801
73802         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
73803         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
73804         to be nonzero so that we (and caller) can detect the difference
73805         between a valid zero-length expansion and an error return, even
73806         when the underlying strftime fails before writing anything into
73807         that location.
73808
73809 2005-03-14  Bruno Haible  <bruno@clisp.org>
73810
73811         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
73812         Update from GNU gettext 0.14.3.
73813
73814 2005-03-10  Jim Meyering  <jim@meyering.net>
73815
73816         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
73817
73818 2005-03-10  Jim Meyering  <jim@meyering.net>
73819
73820         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
73821         so that this module works on systems without fchdir.
73822
73823 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
73824
73825         Factor int-properties macros into a single file, except for
73826         glibc-related files.
73827         * lib/intprops.h: New file.
73828         * lib/getloadavg.c: Include it instead of limits.h.
73829         (INT_STRLEN_BOUND): Remove.
73830         * lib/human.c: Include intprops.h.
73831         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
73832         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
73833         302/1000.
73834         * lib/inttostr.h: Include intprops.h instead of limits.h.
73835         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
73836         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
73837         for consistency with intprops.h.
73838         (time_t_is_integer, twos_complement_arithmetic): Use them.
73839         * lib/sig2str.h: Include <signal.h>, intprops.h.
73840         (INT_STRLEN_BOUND): Remove.
73841         * lib/strftime.c (TYPE_SIGNED): Remove.
73842         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
73843         * lib/strtol.c: Adjust comments to match intprops.h.
73844         * lib/userspec.c: Include intprops.h.
73845         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
73846         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
73847         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
73848         instead of rolling our own expressions.
73849         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
73850
73851         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
73852         instead of int.
73853         (my_strftime): Do not mishandle years close to INT_MAX, by doing
73854         the right thing even if adding 1900 would overflow.  Similarly
73855         for tm_mon + 1 and tm_yday + 1.
73856         Make %Y always equivalent to %C%y, and similarly for %G and %g.
73857         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
73858         (DO_SIGNED_NUMBER): New macro.
73859         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
73860
73861 2005-03-07  Bruno Haible  <bruno@clisp.org>
73862
73863         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
73864
73865 2005-03-07  Bruno Haible  <bruno@clisp.org>
73866
73867         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
73868
73869 2005-03-04  Derek R. Price  <derek@ximbiot.com>
73870
73871         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
73872         (func_import): Only replace files via --import when they have actually
73873         changed.
73874
73875 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73876
73877         * m4/mmap-anon.m4: New file.
73878         * m4/pagealign_alloc.m4: New file.
73879
73880 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73881             Bruno Haible  <bruno@clisp.org>
73882
73883         * modules/pagealign_alloc: New file.
73884         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
73885
73886 2005-03-03  Derek R. Price  <derek@ximbiot.com>
73887             Bruno Haible  <bruno@clisp.org>
73888
73889         * lib/pagealign_alloc.h: New file.
73890         * lib/pagealign_alloc.c: New file.
73891
73892 2005-03-03  Bruno Haible  <bruno@clisp.org>
73893
73894         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
73895         Use an all-permissive copyright notice, recommended by RMS.
73896
73897 2005-03-02  Bruno Haible  <bruno@clisp.org>
73898
73899         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
73900         of AIX, the replacement has to be done only after <string.h> is
73901         included, therefore not in config.h. stpncpy.h does the replacement,
73902         and stpncpy.c uses it.
73903
73904 2005-03-02  Bruno Haible  <bruno@clisp.org>
73905
73906         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
73907         stpncpy.c uses it.
73908
73909 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73910
73911         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
73912         The workaround isn't strictly needed for POSIX conformance, and
73913         it's too much of a pain to configure and maintain.  We'll ask
73914         people to fix their kernels instead.
73915         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
73916         (NANOSLEEP_BUG_WORKAROUND): Remove.
73917         (xnanosleep): Remove the workaround.
73918
73919 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73920
73921         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
73922         Reported by Derek Price.
73923         (Include): Add "timespec.h".
73924
73925         * modules/xnanosleep (Depends-on): Remove gethrxtime.
73926
73927 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
73928
73929         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
73930         to detect nanosleep bug.
73931
73932 2005-03-01  Bruno Haible  <bruno@clisp.org>
73933
73934         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
73935
73936 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
73937
73938         * modules/gethrxtime: New file.
73939         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
73940         (Depends-on): Add gethrxtime.
73941         (configure.ac): Add gl_XNANOSLEEP.
73942         (Makefile.am): Remove lib_SOURCES line.
73943
73944 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73945
73946         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
73947         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
73948
73949 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
73950
73951         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
73952         * lib/timespec.h (gettime): Return void, since it always
73953         succeeds now.  All uses changed.
73954         * lib/gettime.c (gettime): Likewise.
73955         [HAVE_NANOTIME]: Prefer nanotime.
73956         Assume gettimeofday succeeds, as POSIX requires.
73957         Assime time () succeeds, since other code already does.
73958         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
73959         (timespec_subtract): Remove.
73960         (NANOSLEEP_BUG_WORKAROUND): New constant.
73961         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
73962         things considerably.  Use it only on GNU/Linux hosts, since the
73963         workaround shouldn't be needed elsewhere.
73964
73965 2005-02-24  Bruno Haible  <bruno@clisp.org>
73966
73967         * modules/gettext (Files): Add m4/glibc2.m4.
73968
73969 2005-02-24  Bruno Haible  <bruno@clisp.org>
73970
73971         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
73972         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
73973         * m4/progtest.m4:
73974         Update from GNU gettext 0.14.2.
73975         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
73976
73977 2005-02-24  Bruno Haible  <bruno@clisp.org>
73978
73979         * lib/localcharset.c: Update from GNU gettext 0.14.2.
73980         * lib/config.charset: Update from GNU gettext 0.14.2.
73981
73982 2005-02-24  Bruno Haible  <bruno@clisp.org>
73983
73984         * lib/gettext.h: Update from GNU gettext 0.14.2.
73985
73986 2005-02-23  Simon Josefsson  <jas@extundo.com>
73987
73988         * m4/iconvme.m4: New file.
73989
73990 2005-02-23  Jim Meyering  <jim@meyering.net>
73991
73992         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
73993         change.
73994         Thanks to Bruno Haible for catching it.
73995
73996 2005-02-22  Simon Josefsson  <jas@extundo.com>
73997
73998         * modules/iconvme: New file.
73999
74000         * MODULES.html.sh: Add iconvme.
74001
74002 2005-02-22  Simon Josefsson  <jas@extundo.com>
74003
74004         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
74005
74006 2005-02-22  Simon Josefsson  <jas@extundo.com>
74007
74008         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
74009
74010 2005-02-22  Jim Meyering  <jim@meyering.net>
74011
74012         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
74013         s/ifndef/ifdef/.
74014
74015 2005-02-20  Neil Conway  <neilc@samurai.com>
74016
74017         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
74018         returned by OSX/Darwin if the specified buffer is not large
74019         enough for the hostname.
74020
74021 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74022
74023         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
74024         pass it to _help, otherwise the latter coredumps trying to
74025         dereference state.root_argp.
74026
74027 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74028
74029         * modules/chdir-long (Depends-on): Add memrchr.
74030         * modules/memrchr (Files): Add lib/memrchr.h.
74031         (Include): "memrchr.h".
74032
74033 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74034
74035         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
74036
74037 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
74038
74039         * lib/memrchr.h: New file.
74040         * lib/chdir-long.c: Include it.
74041         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
74042         Don't bother including stddef.h.
74043
74044 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
74045
74046         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
74047         inclusion.
74048         Include <sys/types.h>, for dev_t.
74049         (ME_DUMMY, ME_REMOTE): Move from here....
74050         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
74051         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
74052         Dmitry V. Levin.
74053         Include mountlist.h first, to test the interface.
74054
74055 2005-01-29  Bruno Haible  <bruno@clisp.org>
74056
74057         * lib/progname.c (program_name): Initialize.
74058         Needed when linking statically on MacOS X.
74059
74060 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74061
74062         Sync from coreutils.
74063         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
74064         (Depends-on): Add c-strtod.
74065         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
74066
74067 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
74068
74069         Sync from coreutils.
74070         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
74071
74072         Remove files that are specific to coreutils.
74073         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
74074
74075 2005-01-28  Bruno Haible  <bruno@clisp.org>
74076
74077         * modules/javacomp: New file.
74078         * MODULES.html.sh (Java): Add javacomp.
74079
74080 2005-01-28  Bruno Haible  <bruno@clisp.org>
74081
74082         * m4/javacomp.m4: New file, from GNU gettext.
74083
74084 2005-01-28  Bruno Haible  <bruno@clisp.org>
74085
74086         * lib/javacomp.sh.in: New file, from GNU gettext.
74087         * lib/javacomp.h: New file, from GNU gettext.
74088         * lib/javacomp.c: New file, from GNU gettext.
74089
74090 2005-01-26  Simon Josefsson  <jas@extundo.com>
74091
74092         * lib/gai_strerror.c: Use GPL in header.
74093
74094 2005-01-26  Bruno Haible  <bruno@clisp.org>
74095
74096         * modules/javaexec: New file.
74097         * MODULES.html.sh (Java): Add javaexec.
74098
74099 2005-01-26  Bruno Haible  <bruno@clisp.org>
74100
74101         * m4/javaexec.m4: New file, from GNU gettext.
74102
74103 2005-01-26  Bruno Haible  <bruno@clisp.org>
74104
74105         * lib/javaexec.sh.in: New file, from GNU gettext.
74106         * lib/javaexec.h: New file, from GNU gettext.
74107         * lib/javaexec.c: New file, from GNU gettext.
74108
74109 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74110
74111         * modules/lchown (Depends-on): Remove lchown.h
74112
74113 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74114
74115         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
74116         must be defined if the header file was not found, in order
74117         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
74118
74119 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74120
74121         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
74122         initializers for struct pentry_state.
74123         (__argp_error): Check return value of __asprintf
74124         (__argp_failure): Translate error message
74125
74126         * lib/argp-parse.c: Removed braces around the expansion of N_()
74127
74128 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74129
74130         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
74131         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
74132         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
74133         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
74134         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
74135         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
74136         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
74137         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
74138         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
74139         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
74140         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
74141         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
74142         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
74143         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
74144         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
74145         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
74146         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
74147         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
74148         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
74149         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
74150         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
74151         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
74152         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
74153         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
74154         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
74155         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
74156         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
74157         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
74158         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
74159         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
74160         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
74161         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
74162         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
74163         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
74164         xstrtol.m4, xstrtoumax.m4, yesno.m4:
74165         Use an all-permissive copyright notice, recommended by RMS.
74166
74167 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
74168
74169         * modules/chdir-long (Depends-on): Remove mempcpy.
74170
74171 2005-01-21  Jim Meyering  <jim@meyering.net>
74172
74173         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
74174         same value as for Solaris 9.
74175
74176         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
74177         component length.  This included changing the parameter to be
74178         of type `char *' rather than `char const *'.
74179         * lib/chdir-long.h (chdir_long): Update prototype.
74180
74181         * lib/openat.c (fdopendir, fstatat): New functions.
74182         * lib/openat.h: Include headers required for use of DIR and struct
74183         stat.
74184         [AT_SYMLINK_NOFOLLOW]: Define.
74185         (fdopendir, fstatat): Add prototypes.
74186
74187 2005-01-21  Bruno Haible  <bruno@clisp.org>
74188
74189         * modules/classpath: New file.
74190         * MODULES.html.sh (Java): Add classpath.
74191
74192 2005-01-21  Bruno Haible  <bruno@clisp.org>
74193
74194         * lib/classpath.h: New file, from GNU gettext.
74195         * lib/classpath.c: New file, from GNU gettext.
74196
74197 2005-01-20  Simon Josefsson  <jas@extundo.com>
74198
74199         * modules/version-etc-fsf: New file.
74200
74201 2005-01-20  Simon Josefsson  <jas@extundo.com>
74202
74203         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
74204         * lib/version-etc.c: Remove version_etc_copyright.
74205         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
74206         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
74207
74208 2005-01-20  Simon Josefsson  <jas@extundo.com>
74209
74210         * lib/base64.h (isbase64): Add.
74211
74212         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
74213         using a unsigned prototype, don't inline.
74214         (base64_decode): Use it.
74215
74216 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74217
74218         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
74219         it.
74220
74221 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74222
74223         * lib/save-cwd.c (save_cwd): Remove code to support the case
74224         where fchdir is missing or flaky.
74225
74226 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
74227
74228         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
74229
74230 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
74231
74232         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
74233         AC_LIBSOURCES now does this.
74234         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
74235         with new ullong_max module.
74236
74237 2005-01-19  Bruno Haible  <bruno@clisp.org>
74238
74239         * modules/sh-quote: New file.
74240         * MODULES.html.sh (Executing programs): Add sh-quote.
74241
74242 2005-01-19  Bruno Haible  <bruno@clisp.org>
74243
74244         * lib/sh-quote.h: New file, from GNU gettext.
74245         * lib/sh-quote.c: New file, from GNU gettext.
74246
74247 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         Merge from coreutils.
74250         * m4/ullong_max.m4: New file.
74251         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
74252         (gl_MACROS): Assume localeconv exists.
74253
74254 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74255
74256         Merge changes from coreutils, as described below in several
74257         changelogs dated today.
74258
74259         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
74260         (O_DIRECTORY): Remove; not needed here, since "." must be
74261         a directory.  All uses removed.
74262         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
74263         universal on Suns, and we also need to test for IRIX.
74264         Revamp code to use 'if' rather than '#if'.
74265         Avoid unnecessary comparison of cwd->desc to 0.
74266
74267         * lib/utimens.c (futimens): Robustify the previous patch, by checking
74268         for known valid error numbers rather than observed invalid ones.
74269
74270 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
74271
74272         * modules/ullong_max: New file.
74273
74274         * modules/chdir-long, modules/openat: New files.
74275         * modules/save-cwd (Depends-on): Depend on chdir-long.
74276         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
74277
74278 2005-01-18  Jim Meyering  <jim@meyering.net>
74279
74280         Merge from coreutils.
74281         * m4/chdir-long.m4, m4/openat.m4: New files.
74282         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
74283         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
74284         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
74285         is sane and DOES follow symlinks.  Besides, testing 20 different
74286         systems found no broken chown implementations.
74287         Prompted by a change in rsync's copy of this macro.
74288         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
74289
74290         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
74291
74292         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
74293         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
74294         NULL-means-set-to-current-time semantics.
74295         Remove temporary file immediately, rather than waiting
74296         for configure's at-exit trap code to do it.
74297
74298 2005-01-18  Jim Meyering  <jim@meyering.net>
74299
74300         * lib/version-etc.c (version_etc_copyright): Update copyright date.
74301
74302         * lib/utimens.c (futimens): Account for the fact that futimes
74303         can also fail with errno == ENOSYS or errno == ENOENT.
74304         Patch from Dmitry V. Levin.
74305
74306         Change the name of the robust chdir function from chdir to chdir_long.
74307         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
74308         (restore_cwd): Use chdir_long, not chdir.
74309         * lib/chdir-long.c: Renamed from chdir.c.
74310         * lib/chdir-long.h: Renamed from chdir.h.
74311         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
74312         Hurd.
74313
74314 2005-01-18  Bruno Haible  <bruno@clisp.org>
74315
74316         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
74317         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
74318         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
74319         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
74320         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
74321         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
74322         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
74323         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
74324         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
74325         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
74326         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
74327         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
74328         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
74329         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
74330         Use an all-permissive copyright notice, recommended by RMS.
74331
74332 2005-01-18  Bob Proulx  <bob@proulx.com>
74333
74334         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
74335         simplify offsetof() macro construct to avoid compile failure with
74336         native HP-UX 11.0 ANSI C compiler.
74337
74338 2005-01-17  Bruno Haible  <bruno@clisp.org>
74339
74340         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
74341         redundant because stpncpy.m4 takes care of it.
74342
74343 2005-01-17  Bruno Haible  <bruno@clisp.org>
74344
74345         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
74346
74347 2005-01-17  Bruno Haible  <bruno@clisp.org>
74348
74349         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
74350         used.
74351
74352 2005-01-17  Bruno Haible  <bruno@clisp.org>
74353
74354         * lib/fwriteerror.h (fwriteerror): Change specification to include
74355         fclose.
74356         * lib/fwriteerror.c: Include <stdbool.h>.
74357         (fwriteerror): At the end, close the file stream. Record whether
74358         stdout was already closed.
74359
74360 2005-01-17  Bruno Haible  <bruno@clisp.org>
74361
74362         * lib/execute.c (environ): Declare if needed.
74363         * lib/pipe.c (environ): Likewise.
74364         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
74365
74366 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74367
74368         * modules/argp: Depend on vsnprintf
74369
74370 2005-01-10  Jim Meyering  <jim@meyering.net>
74371
74372         * modules/closeout (Depends-on): Add atexit.
74373
74374 2005-01-06  Bruno Haible  <bruno@clisp.org>
74375
74376         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
74377
74378 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74379
74380         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
74381         definitions to be after all include files, to avoid collisions.
74382         Problem reported by Bob Proulx.
74383
74384 2005-01-04  Jim Meyering  <jim@meyering.net>
74385
74386         Changes imported from coreutils.
74387         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
74388         as the mkstemp template, use a temporary directory and an
74389         8.3-friendly template to avoid trouble on systems like DJGPP.
74390         Reported by Juan M. Guerrero via Stepan Kasal.
74391         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
74392         close. Remove the temporary directory right away, rather than waiting
74393         for configure's at-exit trap code to do it.
74394         Suggestion from Stepan Kasal.
74395
74396 2005-01-01  Simon Josefsson  <jas@extundo.com>
74397
74398         * gnulib-tool: Print #include directives when --import'ing.
74399
74400 2004-12-28  Simon Josefsson  <jas@extundo.com>
74401
74402         * tests/test-base64.c: Include required header files.  Remove
74403         unused variables.
74404
74405 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74406
74407         * modules/error (Depends-on): Remove gettext.
74408
74409 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74410
74411         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
74412         not needed.  This removes a dependency on the gettext module.
74413         [defined _LIBC]: Do not include <libintl.h>; not needed.
74414
74415 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74416
74417         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
74418         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
74419
74420 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
74421
74422         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
74423         HAVE_DECL_STRTOLD.
74424
74425 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74426
74427         * modules/getdate (Depends-on): Remove alloca-opt.
74428
74429 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74430
74431         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
74432
74433 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74434
74435         * lib/argp-parse.c: Include <stddef.h>.
74436         (alignof, alignto): New macros.
74437         (parser_init): Don't assume that void * is aligned sufficiently
74438         for struct option.
74439
74440         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
74441         need to extend the stack.
74442         (YYINITDEPTH): New macro, so that the initial stack isn't overly
74443         large.
74444
74445 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74446
74447         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
74448
74449 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74450
74451         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
74452         (2004-10-24) change.  Apparently this was a false alarm.
74453
74454         * modules/getdate: Depend on alloca-opt, not alloca.
74455
74456 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
74457
74458         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
74459         Remove now-obsolete comment about AIX.
74460         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
74461         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
74462         (YYMAXDEPTH): New macro.
74463
74464 2004-12-18  Simon Josefsson  <jas@extundo.com>
74465
74466         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
74467
74468 2004-12-18  Bruno Haible  <bruno@clisp.org>
74469
74470         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
74471
74472 2004-12-18  Bruno Haible  <bruno@clisp.org>
74473
74474         * lib/fatal-signal.c (fatal_signals): Make non-const.
74475         (init_fatal_signals): New function.
74476         (uninstall_handlers, install_handlers): Ignore signals that were set to
74477         SIG_IGN.
74478         (at_fatal_signal): Call init_fatal_signals.
74479         (init_fatal_signal_set): Likewise. Ignore signals that were set to
74480         SIG_IGN.
74481         Reported by Paul Eggert.
74482
74483 2004-12-18  Bruno Haible  <bruno@clisp.org>
74484
74485         * doc/alloca.texi: New file.
74486         * doc/alloca-opt.texi: New file.
74487
74488 2004-12-17  Jim Meyering  <jim@meyering.net>
74489
74490         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
74491         Otherwise, install-sh could exit with improper exit status when
74492         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
74493
74494 2004-12-16  Simon Josefsson  <jas@extundo.com>
74495
74496         * tests/test-base64.c: Add license.
74497
74498 2004-12-15  Stepan Kasal  <address@hidden>
74499
74500         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
74501
74502 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
74503
74504         * modules/getcwd (Files): Add m4/d-ino.m4.
74505         Suggested by Mark D. Baushke.
74506
74507 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74508
74509         * lib/getdate.y (textint): New member "negative".
74510         (time_zone_hhmm): New function.
74511         Expect 14 shift-reduce conflicts, not 13.
74512         (o_colon_minutes): New rule.
74513         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
74514         (yylex): Set the "negative" member of signed numbers.
74515
74516 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
74517
74518         * doc/getdate.texi (Time of day items, Time zone items):
74519         Describe new formats +00:00, UTC+00:00.
74520
74521 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
74522
74523         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
74524         spurious "-l"s.  Problem reported by Stepan Kasal.
74525
74526 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
74527
74528         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
74529         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
74530
74531 2004-12-04  Simon Josefsson  <jas@extundo.com>
74532
74533         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
74534         Vandoorselaere <yoann@prelude-ids.org>.
74535
74536 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74537
74538         Changes imported from coreutils.
74539         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
74540         exist.
74541         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
74542
74543 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74544
74545         Changes imported from coreutils.
74546         * lib/hard-locale.c: Assume <locale.h> exists.
74547         Include "strdup.h".
74548         (GLIBC_VERSION): New macro.
74549         (hard_locale): Assume setlocale exists.
74550         Rewrite to avoid #ifdef.
74551         Use strdup rather than malloc + strcpy.
74552         * lib/human.c: Assume <locale.h> exists.
74553         (human_readable): Assume localeconv exists.
74554
74555 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         * modules/hard-locale (Depends-on): Add strdup.
74558
74559 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
74560
74561         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
74562         convert T2, not T.  (Imported from libc.)
74563
74564 2004-11-30  Simon Josefsson  <jas@extundo.com>
74565
74566         * modules/restrict (License): Change to LGPL.
74567
74568 2004-11-30  Simon Josefsson  <jas@extundo.com>
74569
74570         * m4/restrict.m4: Add copyright and copying conditions.
74571
74572 2004-11-30  Simon Josefsson  <jas@extundo.com>
74573
74574         * m4/base64.m4: New file.
74575
74576 2004-11-30  Simon Josefsson  <jas@extundo.com>
74577
74578         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
74579         base64.
74580
74581         * tests/test-base64.c: New file.
74582
74583         * modules/base64: New file.
74584
74585 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74586
74587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
74588         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
74589
74590         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
74591
74592 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
74593
74594         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
74595         (__getcwd.c): Don't restore errno; glibc doesn't.
74596         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
74597         first, falling back to our code only if its results look suspicious.
74598         Ensure that the resulting buffer is only as large as necessary.
74599
74600         * lib/readutmp.c: Include readutmp.h first.
74601         Include <errno.h>, since readutmp.h no longer does that.
74602         * lib/readutmp.h: Don't include <errno.h>,
74603         <sys/param.h>, <time.h>; not needed to establish interface.
74604         (errno): Remove decl.
74605         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
74606         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
74607         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
74608
74609 2004-11-28  Simon Josefsson  <jas@extundo.com>
74610
74611         * lib/base64.h, base64.c: New file.
74612
74613 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74614
74615         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
74616
74617 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74618
74619         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
74620         (Depends-on): Remove pathmax, same.  Add mempcpy.
74621         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
74622         (Makefile.am): Append getcwd.h to lib_SOURCES.
74623         (Include): Add getcwd.h.
74624         (Maintainer): Change from Jim Meyering to "all, glibc",
74625         since getdate now uses intended-for-glibc code.
74626         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
74627         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
74628
74629 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74630
74631         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
74632         HP's ANSI C compiler.
74633         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
74634         Declaring int functions causes warnings on some modern systems and
74635         shouldn't be needed to compile on ancient ones.
74636         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
74637         defined.
74638
74639         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
74640         with the following changes.
74641         (__set_errno): Parenthesize properly.
74642         Include <stdbool.h>.
74643         (MIN, MAX, MATCHING_INO): New macros.
74644         (__getcwd): Define with prototype, not K&R form.
74645         Use heuristics to allocate default buffer on stack if possible.
74646         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
74647         behavior, and to avoid the PATH_MAX limit when computing
74648         ../../../../...
74649         Use MATCHING_INO to compare inode number to file.
74650         Check for arithmetic overflow in size calculations.
74651         Fix bug in reallocation of dot array that caused getcwd to fail
74652         on directories nested deeper than 75.
74653         Be more careful about saving errno on error.
74654         Do not use realloc; use only free+malloc, as this is a bit
74655         more flexible and avoids a needless copy operation.
74656         Do not inspect st_dev and st_ino for symbolic links; POSIX
74657         doesn't specify the latter.
74658         Check for closedir errors.
74659         Avoid needless casts.
74660         Use "#ifdef weak_alias" around weak_alias, to be like other
74661         glibc code.
74662         The following changes to getcwd.c have effect only when used in
74663         gnulib; they have no effect inside glibc proper.
74664         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
74665         as alloca isn't used.
74666         (alloca, __alloca): Likewise.
74667         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
74668         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
74669         unconditionally, as gnulib assumes C89 or better.
74670         Do not include <sys/param.h>.
74671         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
74672         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
74673         better.
74674         (NULL) [!defined NULL]: Remove; we assume C89 or better.
74675         Include <dirent.h> in a way that is compatible with modern Autoconf.
74676         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
74677         New macros, if not already defined.
74678         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
74679         Use "_LIBC", not "defined _LIBC", for consistency.
74680         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
74681         a mempcpy module.
74682         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
74683         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
74684         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
74685         credit only to Jim Meyering and adjust the copyright dates.
74686         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
74687         <stdlib.h>, <unistd.h>, "pathmax.h".
74688         Instead, include "xgetcwd.h" (first) and "getcwd.h".
74689         (INITIAL_BUFFER_SIZE): Remove.
74690         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
74691
74692 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
74693
74694         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
74695         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
74696         Use the _ONCE methods, for efficiency.
74697         Check for fcntl.h.  In test program, include <errno.h>
74698         and <fcntl.h> if available.  Remove old K&R cruft from
74699         test program.  Check for common errors in GNU/Linux,
74700         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
74701         don't do AC_LIBOBJ, as that's getcwd.m4's job.
74702         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
74703         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
74704         name accordingly.
74705         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
74706         accommodate new getcwd.c.
74707         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
74708         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
74709         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
74710         that's all we need now.
74711
74712 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74713
74714         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
74715         argp-parse.c depends on getopt internals, that means we should
74716         always use our getopt, to be on the safe side.
74717         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
74718         order not to spoil the result of an eventual previous invocation
74719         of gl_GETOPT_SUBSTITUTE.
74720
74721 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
74722
74723         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
74724         redefinition warnings. To avoid them, include the defines
74725         in `#if !defined __need_getopt ... #endif'. The only place
74726         where __getopt_argv_const is used is in definitions
74727         of getopt_long and getopt_long_only below, which are as well
74728         protected by `#ifndef __need_getopt'.
74729         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
74730         __need_getopt after including <stdio.h> and <unistd.h> These
74731         headers might have defined it.
74732
74733 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74734
74735         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
74736
74737 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
74738
74739         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
74740         (futimens): New function, which uses futimes if available.
74741         (futimens, utimens): Support timespec==NULL, with same semantics
74742         as utime and utimens.
74743         * lib/utimens.h (futimens): New decl.
74744
74745 2004-11-23  Jim Meyering  <jim@meyering.net>
74746
74747         * lib/getopt_.h: Remove trailing blanks.
74748
74749 2004-11-23  Jim Meyering  <jim@meyering.net>
74750
74751         * lib/__fpending.c: Add comment.
74752
74753 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * modules/canonicalize (Depends-on): Add xreadlink.
74756         Problem reported by James Youngman.
74757
74758 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
74761         New macros.
74762         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
74763         optopt): Use them instead of invoking ## directly; otherwise, the
74764         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
74765
74766 2004-11-19  Bruno Haible  <bruno@clisp.org>
74767
74768         * lib/strtok_r.c: Move comments from here...
74769         * lib/strtok_r.h: ... to here.
74770
74771 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74772
74773         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
74774         implementations that mishandle size_t overflow.
74775
74776 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74777
74778         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
74779         might fail.  Problem reported by Yoann Vandoorselaere.
74780         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
74781         implementations that mishandle size_t overflow.
74782
74783 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74784
74785         * modules/canon-host (Depends-on): Add strdup.
74786
74787 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74788
74789         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
74790
74791 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * lib/canon-host.c: Include "strdup.h".
74794         (canon_host): Use getaddrinfo if available, so that IPv6 works.
74795         Use strdup instead of malloc/strcpy to duplicate strings.
74796
74797         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
74798         (human_space_before_unit): New constant.
74799         * lib/human.c (human_readable): Support it.
74800
74801         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
74802         (xgetcwd): Set errno correctly when failing.
74803         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
74804         the failure is actually due to a PATH_MAX problem.
74805
74806         Further getopt changes to make it more likely that glibc will
74807         buy the changes back.
74808         * lib/getopt.c (POSIXLY_CORRECT): New constant.
74809         (getopt): Use it, so to preserve glibc semantic
74810         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
74811         when compiling for libc.
74812         * lib/getopt_.h (__getopt_argv_const): Bring it back.
74813         (getopt_long, getopt_long_only): Use it.
74814
74815         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74816         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
74817         (getopt): Argv is now char * const *, as per standard.
74818         (_getopt_internal_r, _getopt_internal): Argv is now char **,
74819         not char *__getopt_argv_const *.
74820         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74821         _getopt_long_only_r): Likewise.
74822         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
74823         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74824         _getopt_long_r, _getopt_long_only_r): Likewise.
74825         * lib/getopt_.h (__getopt_argv_const): Remove.
74826         (getopt): Argv is now char * const *, as per standard.
74827
74828         * lib/getdate.y (tORDINAL): New token.
74829         (day, relunit): Allow it for relative times.
74830         (relative_time_table): Use tORDINAL for ordinals.
74831
74832 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74833
74834         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
74835         Document that "second" isn't allowed as an ordinal number.
74836
74837 2004-11-16  Jim Meyering  <jim@meyering.net>
74838
74839         * modules/closeout (Depends-on): Add fpending.
74840
74841 2004-11-15  Jim Meyering  <jim@meyering.net>
74842
74843         * lib/closeout.c: Include "__fpending.h" once again.
74844         Include <stdbool.h>.
74845         (close_stdout): Don't fail just because stdout was closed initially,
74846         since some programs don't write to stdout in the normal course of
74847         operation (other than --version and --help), and we don't want this
74848         function to make e.g. `touch file >&-' fail.
74849         But do fail if it was closed and someone has tried to write to it.
74850         E.g., `printf foo >&-' must fail.
74851
74852 2004-11-13  Jim Meyering  <jim@meyering.net>
74853
74854         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
74855
74856 2004-11-12  Simon Josefsson  <jas@extundo.com>
74857
74858         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
74859         small doc fix is still pending.
74860
74861 2004-11-11  Simon Josefsson  <jas@extundo.com>
74862
74863         * modules/strtok_r: New file.
74864
74865         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74866         strtok_r.
74867
74868 2004-11-11  Simon Josefsson  <jas@extundo.com>
74869
74870         * m4/strtok_r.m4: New file.
74871
74872         * m4/getopt.m4: Replace opterr.
74873
74874 2004-11-11  Simon Josefsson  <jas@extundo.com>
74875
74876         * lib/strtok_r.h, strtok_r.c: New file.
74877
74878 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74879
74880         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
74881         of replacing opterr, getopt, etc.  This should handle the
74882         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
74883
74884 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
74885
74886         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
74887         we can stop lying to compilers about the constness of argv when we
74888         are compiled outside glibc.
74889         (getopt, getopt_long, getopt_long_only): Use it.
74890         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
74891         _getopt_internal, getopt): Likewise.
74892         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
74893         _getopt_long_only_r): Likewise.
74894         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
74895         _getopt_long_r, _getopt_long_only_r): Likewise.
74896
74897         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
74898         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
74899         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
74900         the other external symbols.
74901         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
74902         declaration, since the above renaming now works around collisions.
74903
74904 2004-11-11  Jim Meyering  <jim@meyering.net>
74905
74906         * lib/linebreak.c: Remove trailing blanks.
74907         * lib/alloca_.h: Likewise.
74908         * lib/acosl.c: Likewise.
74909         * lib/euidaccess.c: Likewise.
74910         * lib/allocsa.h: Likewise.
74911
74912 2004-11-10  Simon Josefsson  <jas@extundo.com>
74913
74914         * m4/getaddrinfo.m4: New file.
74915
74916 2004-11-10  Simon Josefsson  <jas@extundo.com>
74917
74918         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
74919
74920 2004-11-10  Simon Josefsson  <jas@extundo.com>
74921
74922         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74923         getaddrinfo.
74924
74925         * modules/getaddrinfo: New file.
74926
74927 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74928
74929         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
74930
74931 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
74932
74933         * lib/mktime.c (SHR): New macro, which is a portable
74934         substitute for >> that should work even on Crays.
74935         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
74936         Problem reported by Mark D. Baushke in
74937         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
74938         * lib/getdate.y (SHR): Likewise.
74939         (tm_diff): Use it.
74940         * lib/strftime.c (SHR): Likewise.
74941         (tm_diff): Use it.
74942         * lib/quotearg.c (struct quoting_options): Use unsigned int for
74943         quote_these_too, so that right shifts are well defined.  All uses
74944         changed.
74945
74946 2004-11-10  Jim Meyering  <jim@meyering.net>
74947
74948         Ensure that no close failure goes unreported.
74949         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
74950         return early when it seems there's nothing to flush.
74951         Don't include __fpending.h.
74952
74953 2004-11-10  Jim Meyering  <jim@meyering.net>
74954
74955         * modules/closeout (Depends-on): Remove fpending.
74956
74957 2004-11-10  Jim Meyering  <jim@meyering.net>
74958
74959         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
74960
74961 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74962
74963         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
74964         gl_FUNC_STRFTIME.
74965         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
74966         and AC_REQUIRE when possible, to avoid duplicate checks.
74967         Check for <wchar.h>.
74968
74969 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74970
74971         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
74972
74973 2004-11-09  Bruno Haible  <bruno@clisp.org>
74974
74975         * m4/sockpfaf.m4: New file.
74976
74977 2004-11-05  Bruno Haible  <bruno@clisp.org>
74978
74979         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
74980         Reported by Mark D. Baushke <mdb@cvshome.org>.
74981
74982 2004-11-04  Bruno Haible  <bruno@clisp.org>
74983
74984         2004-09-11  Bruno Haible  <bruno@clisp.org>
74985                 * allocsa.valgrind: New file.
74986         2004-02-06  Bruno Haible  <bruno@clisp.org>
74987                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
74988                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
74989                 Reported by Christopher Seip <chris.seip@hp.com>.
74990
74991 2004-11-04  Bruno Haible  <bruno@clisp.org>
74992
74993         * modules/allocsa (Files): Add lib/allocsa.valgrind.
74994         (Makefile.am): Distribute it.
74995
74996 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74997
74998         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
74999         with errno == ERANGE if the buffer is too small.
75000         Problem reported by Mark D. Baushke.
75001
75002 2004-11-03  Albert Chin  <china@thewrittenword.com>
75003             Paul Eggert  <eggert@cs.ucla.edu>
75004
75005         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
75006         equivalent, substitute $ac_type for equivalent type rather than
75007         blindly using uint32_t *always* which won't work if uint32_t is not
75008         available.  Define _UINT32_T to work around typedef of uint32_t if
75009         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
75010         2.5.1.
75011
75012 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75013
75014         * m4/jm-macros.m4: Sync from coreutils.
75015         (gl_MACROS): Check for mbrlen, for pathchk.
75016         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
75017
75018 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75019
75020         * lib/xreadlink.c (MAXSIZE): New macro.
75021         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
75022         size does not exceed MAXSIZE.  Avoid cast.
75023         As suggested by Mark D. Baushke in
75024         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
75025         if readlink fails with buffer size just under MAXSIZE, try again
75026         with MAXSIZE.
75027
75028 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
75029
75030         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
75031
75032 2004-11-02  Derek R. Price  <derek@ximbiot.com>
75033         and  Paul Eggert  <eggert@cs.ucla.edu>
75034
75035         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
75036         (get_date): Overparenthesize to avoid GCC warning.
75037
75038 2004-11-02  Bruno Haible  <bruno@clisp.org>
75039
75040         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
75041         returns void.
75042
75043 2004-11-02  Bruno Haible  <bruno@clisp.org>
75044
75045         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
75046         function returns void.
75047
75048 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75049
75050         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
75051         fflush_unlocked, flockfile, funlockfile, funlockfile,
75052         fputs_unlocked, putc_unlocked.
75053
75054 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
75055
75056         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75057         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
75058         already declared.
75059
75060 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75061
75062         * modules/getdate (Files): Add doc/getdate.texi.
75063         (Depends-on): Add setenv, xalloc.
75064
75065 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75066
75067         * lib/getdate.y: Add support for TZ="foo" within a date string.
75068         Fix some bugs near time_t boundaries.  Reject dates with
75069         out-of-range components, e.g., "Sept 31".
75070         Include <stdlib.h>, "setenv.h", "xalloc.h".
75071         (ISDIGIT_LOCALE): Remove; unused.
75072         Note that the TZ and time functions used here are not reentrant.
75073         (mktime_ok, get_tz): New functions.
75074         (TZBUFSIZE): New constant.
75075         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
75076         This requires that we sometimes generate our own TZ="XXX..." setting.
75077
75078 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75079
75080         * doc/getdate.texi: New file, from coreutils with modifications for
75081         the new TZ parsing.
75082
75083 2004-10-27  Derek R. Price  <derek@ximbiot.com>
75084
75085         * lib/mktime.c (not_equal_tm): Remove redundant check.
75086
75087 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75088
75089         * modules/regex (lib_SOURCES): Add regex.c.
75090         Reported by James Youngman in
75091         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
75092
75093 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75094
75095         * lib/getdate.y: Use Bison 1.875 features, and some minor
75096         code cleanups.  This change does not affect semantics.
75097         Don't include <stdlib.h>; no longer needed.
75098         Don't include unlocked-io.h; only the "#if TEST" code uses
75099         stdio, and performance isn't crucial there.
75100         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
75101         Bison 1.875 features as described below.
75102         All uses of "PC." replaced by "pc->".
75103         (YYSTYPE): Add a forward declaration.
75104         (yylex, yyerror): Use full prototypes in forward decls.
75105         Use "%pure-parser" rather than obsolescent "%pure_parser".
75106         Use %parse-param and %lex-param instead of obsolescent
75107         YYPARSE_PARAM and YYLEX_PARAM.
75108         (meridian_table, month_and_day_table, time_units_table,
75109         relative_time_table, time_zone_table, military_table,
75110         lookup_zone, lookup_word, get_date):
75111         Use NULL instead of 0 where appropriate.
75112         (to_hour): Avoid abort (), to avoid a dependency on
75113         stdlib.h.
75114         (yyerror, yylex): Now accepts parser_control * arg.
75115         (main) [TEST]: Use '\0' rather than 0 for char.
75116
75117 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75118
75119         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
75120
75121 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
75122
75123         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
75124         It's now the caller's responsibility to handle the case where
75125         !HAVE_GETPAGESIZE && !defined getpagesize.
75126
75127         * lib/mktime.c (leapyear): Arg is long int, not int.
75128
75129 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
75130
75131         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
75132
75133 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75134
75135         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
75136         missing.  Problem reported by James Youngman.
75137
75138 2004-10-16  Simon Josefsson  <jas@extundo.com>
75139
75140         * gnulib-tool: Fix comments.  Fix parse problem.
75141         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
75142
75143 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
75144
75145         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
75146         implementation of getopt_long.  Problem reported by Alexander Taler in:
75147         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
75148
75149 2004-10-15  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool: Untabify. Initialize supplied_libname.
75152         (func_usage): More homogenous output.
75153         (func_modules_transitive_closure, func_modules_to_filelist,
75154         func_emit_lib_Makefile_am): New functions.
75155         (func_import): New function, extracted from big case statement. Use
75156         func_get_license, func_modules_transitive_closure,
75157         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
75158         opt_lgpl. Don't use test -a, as it's not portable.
75159         (func_create_testdir): Use func_modules_transitive_closure,
75160         func_modules_to_filelist, func_emit_lib_Makefile_am.
75161
75162 2004-10-15  Bruno Haible  <bruno@clisp.org>
75163
75164         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
75165
75166 2004-10-15  Bruno Haible  <bruno@clisp.org>
75167
75168         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
75169         the portions belonging to each module.
75170         Suggested by Derek Robert Price <derek@ximbiot.com>.
75171
75172 2004-10-12  Simon Josefsson  <jas@extundo.com>
75173
75174         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
75175         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
75176         to real functions.
75177
75178 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75179
75180         * modules/vsnprintf: New file.
75181
75182 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75183
75184         * m4/vsnprintf.m4: New file.
75185
75186 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75187
75188         * lib/vsnprintf.h: New file.
75189         * lib/vsnprintf.c: New file.
75190
75191 2004-10-11  Bruno Haible  <bruno@clisp.org>
75192
75193         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
75194         vsnprintf.
75195
75196 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75197
75198         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
75199
75200 2004-10-07  Bruno Haible  <bruno@clisp.org>
75201
75202         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
75203         fits into the provided buffer.
75204
75205 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75206
75207         * lib/diacrit.c, diacrit.h: Add GPL notice.
75208
75209         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
75210         notice.
75211         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
75212         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
75213         This avoids a potential constant-folding bug.
75214
75215 2004-10-05  Bruno Haible  <bruno@clisp.org>
75216
75217         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
75218         for the declaration of strsep.
75219
75220 2004-10-05  Bruno Haible  <bruno@clisp.org>
75221
75222         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
75223
75224 2004-10-04  Simon Josefsson  <jas@extundo.com>
75225
75226         * modules/memmem: New file.
75227         * tests/test-memmem.c: New file.
75228         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
75229
75230 2004-10-04  Simon Josefsson  <jas@extundo.com>
75231
75232         * m4/memmem.m4: New file.
75233
75234 2004-10-04  Simon Josefsson  <jas@extundo.com>
75235
75236         * lib/memmem.h: New file.
75237         * lib/memmem.c: New file, taken from glibc.
75238
75239 2004-10-04  Simon Josefsson  <jas@extundo.com>
75240
75241         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
75242         '#ifdef USE_UNLOCKED_IO'.
75243
75244 2004-10-04  Simon Josefsson  <jas@extundo.com>
75245
75246         * config/srclist.txt: Add memmem from glibc.
75247
75248 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75249
75250         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
75251
75252         * modules/argmatch, modules/argp, modules/closeout, modules/error,
75253         modules/exclude, modules/getdate, modules/getline,
75254         modules/getndelim2, modules/getpass, modules/getpass-gnu,
75255         modules/getusershell, modules/linebuffer, modules/md5,
75256         modules/mountlist, modules/posixtm, modules/readtokens,
75257         modules/readutmp, modules/regex, modules/sha1,
75258         modules/version-etc, modules/yesno:
75259         Remove dependency on unlocked-io.
75260
75261 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75262
75263         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
75264
75265         * m4/unlocked-io.m4: Add copyright notice.
75266         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
75267
75268 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75269
75270         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
75271         * lib/xmalloc.c (xmemdup): Likewise.
75272         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
75273         XFREE): Remove these long-obsolescent macros.
75274         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
75275         * lib/xstrdup.c: Remove.
75276
75277         * lib/regex.c (re_comp): Cast gettext return value to char *,
75278         Problem reported by Martin Neitzel via Mark D. Baushke.
75279
75280 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
75281
75282         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
75283         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
75284         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
75285         regex.c, sha1.c, version-etc.c, yesno.c:
75286         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
75287         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
75288         the includer's responsibility.
75289
75290         Sync from coreutils.
75291
75292         * lib/modechange.c (mode_compile): Don't decrement a pointer that
75293         points to the start of a string, as the C Standard says the
75294         resulting behavior is undefined.
75295
75296         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
75297         simple -> simple_backups, numbered_existing ->
75298         numbered_existing_backups, numbered -> numbered_backups
75299         to avoid shadowing problems.  All uses changed.
75300         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
75301         * lib/backupfile.c (check_extension, numbered_backup):
75302         Rename locals to avoid shadowing 'basename'.
75303         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
75304         once.
75305
75306         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
75307         * lib/.cvsignore: Add getopt.h.
75308
75309 2004-10-04  Bruno Haible  <bruno@clisp.org>
75310
75311         * modules/README: New file.
75312         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
75313         not a module.
75314
75315 2004-10-02  Jim Meyering  <jim@meyering.net>
75316
75317         * lib/dirfd.h, getpagesize.h: Add copyright notice.
75318
75319 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75320
75321         * modules/strsep: New file.
75322
75323 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75324
75325         * m4/strsep.m4: New file.
75326
75327 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
75328
75329         * lib/strsep.h: New file.
75330         * lib/strsep.c: New file.
75331
75332 2004-10-01  Simon Josefsson  <jas@extundo.com>
75333
75334         * lib/snprintf.c (snprintf): Handle size==0.
75335
75336 2004-10-01  Simon Josefsson  <jas@extundo.com>
75337             Bruno Haible  <bruno@clisp.org>
75338
75339         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
75340         (snprintf): Declare 'args'.
75341
75342 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
75343
75344         * lib/snprintf.c: Remove comments as to why each header is needed.
75345
75346 2004-10-01  Bruno Haible  <bruno@clisp.org>
75347
75348         * MODULES.html.sh: Add strsep.
75349
75350 2004-09-30  Simon Josefsson  <jas@extundo.com>
75351
75352         * modules/snprintf: New file.
75353
75354 2004-09-30  Simon Josefsson  <jas@extundo.com>
75355
75356         * m4/snprintf.m4: New file.
75357
75358 2004-09-30  Simon Josefsson  <jas@extundo.com>
75359
75360         * lib/snprintf.h, lib/snprintf.c: New files.
75361
75362 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
75363
75364         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
75365         (hol_entry_help): Never translate an empty string.
75366         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
75367         * lib/argp.h (OPTION_NO_TRANS): New option.
75368
75369 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75370
75371         * modules/argp (Maintainer): Replace Simon Josefsson
75372         by Sergey Poznyakoff.
75373
75374 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75375
75376         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
75377         changes merged back into glibc.
75378
75379 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
75380
75381         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
75382
75383 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
75384
75385         * lib/xvasprintf.c: Include xalloc.h.
75386         (xvasprintf): Use xalloc_die, not xmalloc_die.
75387
75388 2004-09-29  Bruno Haible  <bruno@clisp.org>
75389
75390         * modules/alloca-opt: New file, derived from modules/alloca.
75391         * modules/allocsa: Depend on alloca-opt instead of alloca.
75392         * modules/setenv: Likewise.
75393         * modules/vasnprintf: Likewise.
75394         * MODULES.html.sh: Add alloca-opt.
75395
75396 2004-09-28  Simon Josefsson  <jas@extundo.com>
75397
75398         * gnulib-tool: New parameter --lgpl, to asseert that modules are
75399         LGPL, and to replace license template from GPL to LGPL.
75400
75401 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75402
75403         * modules/dummy: Change license to LGPL.
75404
75405 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
75406
75407         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
75408
75409 2004-09-24  Simon Josefsson  <jas@extundo.com>
75410
75411         * modules/minmax (License): Change from GPL to LGPL.
75412
75413 2004-09-23  Simon Josefsson  <jas@extundo.com>
75414
75415         * gnulib-tool (--import): Typo.
75416
75417 2004-09-23  Simon Josefsson  <jas@extundo.com>
75418
75419         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
75420
75421 2004-09-22  Bruno Haible  <bruno@clisp.org>
75422
75423         * modules/*: Add 'License' field.
75424         * gnulib-tool: Accept --extract-license option.
75425         (func_get_license): New function.
75426
75427 2004-09-21  Bruno Haible  <bruno@clisp.org>
75428
75429         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
75430         Reported by Simon Josefsson.
75431
75432 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75433
75434         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
75435         gl_AC_TYPE_LONG_LONG.
75436
75437 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75438
75439         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
75440
75441 2004-09-18  Simon Josefsson  <jas@extundo.com>
75442         and  Paul Eggert  <eggert@cs.ucla.edu>
75443
75444         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
75445         calls with autoreconf.  Define GL_LIB.
75446
75447 2004-09-14  Karl Berry  <karl@gnu.org>
75448
75449         * config/srclist.txt: unsync setenv.c, sigh.
75450
75451 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75452
75453         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
75454         Problem reported by Bruno Haible in:
75455         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
75456
75457 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75458
75459         * config/srclist.txt: Comment out argp-pvh.c.
75460
75461 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
75462
75463         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
75464         in case some system header has #define'd it.  Problem reported by
75465         Soeren D. Schulze in
75466         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
75467
75468 2004-09-09  Karl Berry  <karl@gnu.org>
75469
75470         * regex.[ch]: delete from the root.  These were supposed to be
75471                 synced with emacs cvs, but this has not happened for about
75472                 a year, and anyway nothing else uses emacs regex.[ch].
75473                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
75474                 lib/regex[.ch] is untouched.
75475
75476 2004-09-09  Bruno Haible  <bruno@clisp.org>
75477
75478         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
75479
75480 2004-09-09  Bruno Haible  <bruno@clisp.org>
75481
75482         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
75483         modifications.
75484         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
75485
75486 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75487
75488         * modules/xvasprintf: New file.
75489         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
75490
75491 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
75492
75493         * lib/xvasprintf.h: New file.
75494         * lib/xvasprintf.c: New file.
75495         * lib/xasprintf.c: New file.
75496
75497 2004-09-08  Bruno Haible  <bruno@clisp.org>
75498
75499         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
75500
75501 2004-09-08  Bruno Haible  <bruno@clisp.org>
75502
75503         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
75504         length is > INT_MAX.
75505         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
75506         more.
75507
75508 2004-09-08  Bruno Haible  <bruno@clisp.org>
75509
75510         * lib/stdint_.h: New file, taken from GNU clisp.
75511
75512 2004-09-08  Bruno Haible  <bruno@clisp.org>
75513             Oskar Liljeblad  <oskar@osk.mine.nu>
75514
75515         * modules/stdint: New file.
75516         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
75517
75518 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75519
75520         Import from coreutils.
75521         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
75522         strings on unbounded length.  alloca's performance benefits aren't
75523         that important here.
75524         (V_STRDUP): Remove.
75525         (parse_with_separator): New function, with most of the internals
75526         of the old parse_user_spec.  Allow user to omit both user and group,
75527         for compatibility with FreeBSD.
75528         Clone only the user name, not the entire spec.
75529         Do not set *uid, *gid unless entirely successful.
75530         Avoid memory leak in some failing cases.
75531         Fix regression for USER.GROUP reported by Dmitry V. Levin in
75532         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
75533         (parse_user_spec): Rewrite to use parse_with_separator.
75534
75535 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75536
75537         * modules/userspec: Don't depend on alloca.
75538
75539 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
75540
75541         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
75542
75543 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
75544
75545         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
75546         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
75547         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
75548
75549 2004-08-16  Simon Josefsson  <jas@extundo.com>
75550
75551         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
75552         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
75553         Add --dry-run for --import.
75554         Let user provided command line parameters override configure.ac
75555         settings.
75556
75557 2004-08-12  Simon Josefsson  <jas@extundo.com>
75558
75559         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
75560         as discussed with Paul Eggert in threads rooted at
75561         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
75562         and
75563         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
75564         Before, the test was empty, and relied on ELIDE_CODE in source
75565         code.)
75566         (gl_PREREQ_GETOPT): New macro.
75567         (gl_GETOPT): Use them.
75568
75569 2004-08-12  Simon Josefsson  <jas@extundo.com>
75570
75571         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
75572         * lib/getopt_.h: Renamed from getopt.h.
75573
75574 2004-08-12  Simon Josefsson  <jas@extundo.com>
75575
75576         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
75577         Change default library name from libfoo to libgnu.
75578         Now, if you have a configure.ac that says:
75579                 gl_SOURCE_BASE(gl)
75580                 gl_M4_BASE(gl/m4)
75581                 gl_MODULES(error getopt etcetera)
75582                 gl_INIT
75583         you can import all you need by running:
75584                 ../gnulib/gnulib-tool --import
75585
75586         * modules/getopt (Files): Rename getopt.h to getopt_.h.
75587         (Makefile.am): Rewrite, use logic from argz.
75588         (Include): Use <getopt.h> instead of "getopt.h".
75589
75590 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * modules/argp (Files): Add m4/unlocked-io.m4.
75593         (Depends-on): Add extensions.
75594
75595 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75596
75597         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
75598         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
75599         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
75600         Check for program_invocation_name, program_invocation_short_name,
75601         flockfile, funlockfile, features.h, _getopt_long_only_r.
75602
75603 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75604
75605         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
75606         its complicated substitute.
75607         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
75608         and program_invocation_name.
75609         (__argp_basename) [!_LIBC]: Remove; the only use was
75610         replaced by its body.
75611         (__argp_short_program_name): Change condition from
75612         !defined __argp_short_program_name to
75613         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
75614         to match argp-namefrob.h.
75615         (__argp_failure): Don't assume strerror_r returns char *.
75616         * lib/argp-parse.c (N_): Define unconditionally.
75617         (argp_default_options): Fill out initializers with 0 to avoid
75618         gcc warnings.
75619
75620 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
75621
75622         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
75623         getopt1.c.
75624
75625 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75626
75627         Merge from coreutils.
75628
75629         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
75630
75631         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
75632         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
75633
75634 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75635
75636         Merge from coreutils.
75637
75638         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
75639         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
75640         for Reliant Unix 5.43.
75641
75642         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
75643         (union fooround): Use uintmax_t, not long int.
75644         The rest is a merge from libc:
75645         [defined _LIBC]: Include <shlib-compat.h>.
75646         (_obstack) [defined _LIBC]: Remove after 2.3.4.
75647
75648         * lib/settime.c (settime): Recode to avoid warning with
75649         Sun Forte C 6U2.
75650
75651         * lib/strverscmp.c: Convert to UTF-8.
75652
75653 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
75656         m4/uintmax_t.m4.
75657
75658 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75659
75660         * modules/xalloc-die: New file.
75661         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
75662
75663         * modules/md5 (Files): Add m4/uint32_t.m4.
75664         * modules/sha1: Renamed from modules/sha.
75665         (Files):
75666         Rename lib/sha.h to lib/sha1.h.
75667         Rename lib/sha.c to lib/sha1.c.
75668         Rename m4/sha.m4 to m4/sha1.m4.
75669         (lib_SOURCES): Likewise.
75670         (configure.ac): Rename gl_SHA to gl_SHA1.
75671         (Include): sha.h -> sha1.h.
75672
75673 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75674
75675         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
75676         * m4/sha1.m4: Renamed from sha.m4.
75677         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
75678
75679 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * lib/obstack.h (obstack_empty_p):
75682         Don't assume that chunk->contents is suitably aligned.
75683         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
75684         Likewise. Problem reported by Benno in
75685         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
75686
75687         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
75688         readable.  This could be improved further but it'd take some work.
75689
75690 2004-08-08  Simon Josefsson  <jas@extundo.com>
75691
75692         * modules/xgethostname (Depends-on): Remove exit and error (not
75693         used).
75694
75695         * modules/getpass-gnu: Add getpass.h.
75696         (Depends-on): Add stdbool.
75697         * modules/getpass: Add getpass.h.
75698
75699 2004-08-08  Simon Josefsson  <jas@extundo.com>
75700
75701         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
75702         Check getpass declaration.
75703
75704 2004-08-08  Simon Josefsson  <jas@extundo.com>
75705
75706         * lib/xgethostname.c: Don't include error.h (not used).
75707
75708         * lib/getpass.h: Add.
75709         * lib/getpass.c: Include getpass.h first.
75710
75711 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
75712
75713         * lib/xalloc-die.c: New file.
75714         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
75715         All uses removed.
75716         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
75717         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
75718         xalloc-die.c.
75719         (_, N_, xalloc_die): Move to xalloc-die.c.
75720         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
75721         so that we needn't mess with xalloc_msg_memory_exhausted.
75722
75723         * lib/sha1.h: Renamed from sha.h.
75724         (SHA1_H): Renamed from _SHA_H.
75725         (sha1_ctx): Renamed from sha_ctx.
75726         (sha1_init_ctx): Renamed from sha_init_ctx.
75727         (sha1_process_block): Renamed from sha_process_block.
75728         (sha1_process_bytes): Renamed from sha_process_bytes.
75729         (sha1_finish_ctx): Renamed from sha_finish_ctx.
75730         (sha1_read_ctx): Renamed from sha_read_ctx.
75731         (sha1_stream): Renamed from sha_stream.
75732         (sha1_buffer): Renamed from sha_buffer.
75733         * lib/sha1.c: Likewise; renamed from sha.c.
75734         Do not include <sys/types.h>.
75735         Include <stddef.h> rather than <stdlib.h>.
75736
75737 2004-08-08  Bruno Haible  <bruno@clisp.org>
75738
75739         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
75740         FILESYSTEM_PREFIX_LEN.
75741         * lib/progreloc.c: Likewise.
75742         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
75743
75744 2004-08-06  Simon Josefsson  <jas@extundo.com>
75745
75746         * modules/progname (Depends-on): Don't depend on stdbool.
75747
75748 2004-08-06  Simon Josefsson  <jas@extundo.com>
75749
75750         * modules/getsubopt: New file.
75751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75752         getsubopt.
75753
75754 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75755
75756         More merge from coreutils.
75757
75758         * m4/utimens.m4, m4/utimecmp.m4: New files.
75759         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
75760         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
75761         prereq.m4, sha.m4: Import changes from coreutils.
75762
75763 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         More merge from coreutils.
75766         * modules/raise, modules/readtokens0, modules/utimens:
75767         * modules/utimecmp, module/xnanosleep: New files.
75768         * modules/strftime: Add lib/strftime.h.
75769         Change include from <time.h> to "strftime.h".
75770         * modules/yesno: Add lib/yesno.h.
75771         * modules/backupfile: Remove lib/addext.c.
75772         * modules/euidaccess: Add stat-macros.h.
75773         * modules/canonicalize, modules/euidaccess,
75774         modules/filemode, modules/lchown, modules/makepath,
75775         modules/rmdir, modules/stat: Likewise.
75776
75777 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
75778
75779         Merge from tar.
75780         * lib/argp-help.c (make_hol, hol_append): Don't assume that
75781         SIZE_MAX is a valid preprocessor constant.
75782         (__argp_basename): Change from "#ifndef _LIBC"
75783         to "#ifndef __argp_short_program_name", so that
75784         we don't compile these functions for tar.
75785
75786         More merges from coreutils.
75787         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
75788         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
75789         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
75790         * lib/addext.c: Remove; no longer needed.
75791         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
75792         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
75793         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
75794         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
75795         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
75796         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
75797         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
75798         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
75799         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
75800         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
75801         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
75802         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
75803         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
75804         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
75805         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
75806         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
75807         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
75808         Import changes from coreutils.
75809
75810 2004-08-05  Simon Josefsson  <jas@extundo.com>
75811
75812         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
75813
75814 2004-08-05  Simon Josefsson  <jas@extundo.com>
75815
75816         * m4/getsubopt.m4: New file.
75817
75818 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75819
75820         Merge from coreutils.
75821
75822         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
75823         * m4/getcwd-path-max.m4: New files.
75824
75825         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
75826         FILESYSTEM_PREFIX_LEN ->
75827         FILE_SYSTEM_PREFIX_LEN.
75828         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
75829         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
75830         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
75831         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
75832
75833         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
75834         prerequisite modules now handle the DOS stuff.
75835         Don't check for unistd.h.
75836
75837 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75838
75839         Merge from coreutils.
75840
75841         * lib/.gdb-history: Remove; this doesn't belong here.
75842
75843         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
75844         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
75845         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
75846         * lib/getcwd.c: New files.
75847
75848         * lib/dirname.h: Include <stdbool.h>.
75849         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
75850         for consistency with POSIX terminology.  All uses changed.
75851         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
75852         (strip_trailing_slashes): Use bool for booleans.
75853         * lib/stripslash.c (strip_trailing_slashes): Likewise.
75854
75855         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
75856         sometimes returns a positive errno value even when it succeeds.
75857         (print_errno_message) [!LIBC]: Fall back on strerror if
75858         __strerror_r fails.
75859
75860         * lib/path-concat.c (mempcpy): Don't define if a system header defines
75861         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
75862         (longest_relative_suffix): New function.
75863         (path_concat): Use it.  Assume first argument is not NULL.
75864         Port to DOS.  Omit redundant separators.
75865         Report an error instead of returning NULL.
75866         Use mempcpy instead of memcpy.
75867         (xpath_concat): Remove: not declared or used.
75868
75869         * lib/same.h: Include <stdbool.h>
75870         (same_name): Return bool, not int.
75871         * lib/same.c (same_name): Likewise.
75872         (errno): Don't declare; we assume C89 or better now.
75873
75874         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
75875         if not already defined.
75876
75877         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
75878         * lib/dup-safer.c (errno): Likewise.
75879
75880 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
75881
75882         Merge from coreutils.
75883         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
75884         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
75885         * modules/path-concat: Don't depend on strdup.
75886
75887 2004-08-03  Simon Josefsson  <jas@extundo.com>
75888
75889         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
75890         * lib/progname.h: Don't include stdbool.h.
75891
75892 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75893
75894         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
75895         * MODULES.html.sh (func_all_modules): Remove fatal.
75896
75897 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75898
75899         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
75900
75901 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
75902
75903         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
75904         working.
75905
75906 2004-08-02  Simon Josefsson  <jas@extundo.com>
75907
75908         * lib/getsubopt.h: New file, with comments from Bruno Haible.
75909         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
75910         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
75911
75912 2004-08-01  Simon Josefsson  <jas@extundo.com>
75913
75914         * lib/xgetdomainname.c: Include stdlib.h, for free().
75915
75916 2004-07-19  Bruno Haible  <bruno@clisp.org>
75917
75918         * MODULES.html.sh (func_all_modules): Add dummy.
75919
75920 2004-07-16  Simon Josefsson  <jas@extundo.com>
75921
75922         * modules/dummy: New file.
75923
75924 2004-07-16  Simon Josefsson  <jas@extundo.com>
75925
75926         * lib/dummy.c: New file.
75927
75928 2004-07-16  Bruno Haible  <bruno@clisp.org>
75929
75930         * lib/backupfile.h: Add extern "C" for C++.
75931         * lib/closeout.h: Likewise.
75932         * lib/copy-file.h: Likewise.
75933         * lib/findprog.h: Likewise.
75934         * lib/full-write.h: Likewise.
75935         * lib/pathname.h: Likewise.
75936         * lib/progname.h: Likewise.
75937         * lib/stpcpy.h: Likewise.
75938         * lib/stpncpy.h: Likewise.
75939         * lib/strcase.h: Likewise.
75940         * lib/strstr.h: Likewise.
75941         * lib/xalloc.h: Likewise.
75942
75943         * lib/mbswidth.h: Add extern "C" for C++.
75944         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
75945
75946 2004-07-13  Robert Millan  <robertmh@gnu.org>
75947
75948         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
75949
75950 2004-07-09  Simon Josefsson  <jas@extundo.com>
75951
75952         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
75953         failed without this.)
75954
75955 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75956
75957         * modules/chown (Files): Add lib/fchown-stub.c, since
75958         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
75959
75960 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
75961
75962         * lib/fchown-stub.c: New file.
75963
75964 2004-06-24  Jim Meyering  <jim@meyering.net>
75965
75966         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
75967
75968 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75969
75970         * modules/argz: Omit "#include".
75971
75972         * MODULES.html.sh (func_all_modules): Add calloc, to match
75973         2004-06-01 addition of calloc module.
75974
75975 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75976
75977         * m4/argz.m4: New file, which is autoupdated from libtool.
75978
75979 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75980
75981         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
75982         libtool.
75983
75984 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
75985
75986         * config/srclist-update: Don't insist on "USA." before the
75987         close-comment, as libtool omits the period and puts the */ on a
75988         separate line.
75989         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
75990         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
75991
75992 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
75993
75994         * modules/argz: New file.
75995         * MODULES.html.sh (func_all_modules): Add argz.
75996
75997 2004-06-12  Jim Meyering  <jim@meyering.net>
75998         and  Paul Eggert  <eggert@cs.ucla.edu>
75999
76000         * modules/hash (Files): Add lib/xalloc.h.
76001         * modules/pipe (Depends-on): Add wait-process.
76002         * modules/stat (Depends-on): Add xalloc.
76003         * modules/userspec (Files): Add lib/userspec.h.
76004         * modules/xstrto
76005
76006         Upgrade from gettext-0.13.
76007         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
76008         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
76009         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
76010
76011 2004-06-10  Jim Meyering  <jim@meyering.net>
76012
76013         * lib/calloc.c: New file.
76014
76015 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * lib/getdate.y (yylex): Allow space between sign and number.
76018         Problem reported by Dan Jacobson.
76019
76020 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76021
76022         Merge from coreutils CVS.
76023
76024         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
76025         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
76026         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
76027         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
76028         xstrtol.m4: Fix copyright date and/or serial number.
76029
76030         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
76031         See if we need an fchown replacement.
76032         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
76033         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
76034         and use the replacement function if we detect either defect.
76035
76036         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
76037         gl_UTIMECMP.
76038
76039 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
76040         and  Jim Meyering  <jim@meyering.net>
76041
76042         Merge from coreutils CVS.
76043
76044         * lib/stat-macros.h: New file, with contents from file-type.h
76045         and coreutils' system.h.
76046         * lib/file-type.c: Include "stat-macros.h".
76047         * lib/file-type.h (file_type): Move all macro definitions to new file,
76048         stat-macros.h.
76049
76050         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
76051         Wrap old code with this conditional.
76052         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
76053         function that does not dereference symlinks.
76054         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
76055
76056         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
76057         dependency problems.
76058         (xreadlink): Accept new arg SIZE, for efficiency.
76059         All decls and uses changed.
76060         * lib/xreadlink.h: Include <stddef.h>, for size_t.
76061
76062         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
76063         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
76064
76065         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
76066         sysexits.h.
76067
76068 2004-06-01  Jim Meyering  <jim@meyering.net>
76069
76070         * m4/calloc.m4: New file.
76071
76072 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
76073
76074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
76075         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
76076         Also, fix a typo in a diagnostic.
76077
76078 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76079
76080         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
76081         or AC_FUNC_REALLOC.
76082
76083 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
76084
76085         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
76086         macros to be defined.
76087         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
76088         the allocator returns NULL because the requested size is zero.
76089
76090 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
76093         var.  Add comment explaining why libc still defines it.  This
76094         merges the following patch from glibc:
76095         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
76096
76097 2004-05-20  Andreas Schwab  <schwab@suse.de>
76098
76099         * m4/free.m4: Replace free if it not known to work, not the other
76100         way round.
76101
76102 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
76103
76104         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
76105         present in glibc since revision 1.1 of this file.
76106         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
76107         obstack_alignment_mask, obstack_alloc, obstack_base,
76108         obstack_blank, obstack_blank_fast, obstack_chunk_size,
76109         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
76110         obstack_grow0, obstack_init, obstack_int_grow,
76111         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
76112         obstack_next_free, obstack_object_size, obstack_ptr_grow,
76113         obstack_ptr_grow_fast, obstack_room): Remove declarations of
76114         nonexistent functions.
76115
76116 2004-05-18  Karl Berry  <karl@gnu.org>
76117
76118         * config/srclist.txt: break link for vasnprintf.c.
76119
76120 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76121
76122         Port obstack to the AS/400, where pointers are 16 bytes wide and
76123         you cannot cast an integer to a valid pointer.  This patch is
76124         currently waiting to be integrated into glibc; see
76125         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
76126
76127         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
76128         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
76129         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
76130         (struct obstack): temp member is now a union of a pointer and
76131         an integer, instead of an integer.  All integer uses changed.
76132         This does not affect the physical layout of struct obstack,
76133         except on hosts (like the AS/400) where the size or alignment of
76134         void * is greater than that of ptrdiff_t.
76135         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
76136         __STDC__)]: Store temporary in pointer member of union, not
76137         integer member.
76138         * lib/obstack.c: Include <stddef.h>, for offsetof.
76139         (struct fooalign): Remove; it doesn't need a name.
76140         (union fooround): Change double to long double, and add void *.
76141         (DEFAULT_ALIGNMENT): Use offsetof to compute.
76142         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
76143         not a macro.  Hence the values are always int; so remove all
76144         casts-to-int in uses.
76145
76146 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
76147
76148         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
76149         we can get this patch merged into glibc.
76150
76151 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76152             Paul Eggert  <eggert@cs.ucla.edu>
76153
76154         * m4/argp: Depend on alloca.
76155
76156 2004-05-17  Derek R. Price  <derek@ximbiot.com>
76157             Paul Eggert  <eggert@cs.ucla.edu>
76158
76159         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
76160         freecoding.
76161
76162 2004-05-17  Bruno Haible  <bruno@clisp.org>
76163
76164         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
76165         precision that consists of a '.' followed by an empty digit string.
76166         Patch by Tor Lillqvist <tml@iki.fi>.
76167
76168 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76169
76170         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
76171         for backward compatibility with older code.  We need our own
76172         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
76173         it under some other name, and our alloca.h will define it.
76174
76175 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
76176             Derek Price  <derek@ximbiot.com>
76177
76178         * lib/alloca.c: Include <alloca.h>, to get our interface.
76179         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
76180         include <alloca.h> first.  Use C89 prototype for alloca; this
76181         requires including <stddef.h> for size_t.  Use extern "C" if C++.
76182         Use #elif for simplicity, since we can assume C89 now.
76183         Don't try to source the system alloca.h since it will not be found
76184         and to prevent recursively including its replacement.
76185         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
76186         * lib/regex.c: Likewise.
76187
76188 2004-05-16  Derek Price  <derek@ximbiot.com>
76189             Paul Eggert  <eggert@cs.ucla.edu>
76190
76191         getline cleanup.  This changes the getndelim2 API: both order of
76192         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
76193         no delimiter).
76194
76195         * lib/getline.c: Don't include stddef.h or stdio.h, since our
76196         interface does that.
76197         (getline): Always use getdelim, so that we don't have two
76198         copies of this code.
76199         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
76200         if available.
76201         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
76202         (GETNDELIM2_MAXIMUM): New macro.
76203         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
76204         instead of the old practice of delim2==0.  All callers changed.
76205         Return -1 on overflow, instead of returning junk.
76206         Do not set *linesize unless allocation succeeds.
76207         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
76208         that we include sys/types.h.
76209         * lib/getnline.h: Likewise.
76210         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
76211         (getndelim2): Reorder arguments.
76212         * lib/getnline.c (getnline, getndelim):
76213         Don't discard the NMAX argument.
76214         (getnline): Invoke getndelim, to avoid code duplication.
76215         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
76216         of (size_t) -1 by callers of the getnline family.
76217
76218 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76219
76220         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
76221         Check for gettimeofday.
76222         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
76223         Check for settimeofday, stime.
76224
76225 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
76226
76227         * lib/nanosleep.c (suspended): Change its type from int to
76228         sig_atomic_t volatile.
76229         (first_call): Make it private to rpl_nanosleep, and have it
76230         be zero initially as that's a bit faster.
76231         (my_usleep): Round up fractional times instead of truncating them,
76232         as this is the usual meaning for 'sleep'.
76233
76234         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
76235         doesn't work.
76236         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
76237         (ENOSYS): Define if not defined.
76238         (settime): Fall back on stime if it exists and settimeofday fails.
76239         But don't bother with fallbacks if a method fails with errno == EPERM.
76240
76241 2004-05-11  Jim Meyering  <jim@meyering.net>
76242
76243         Prior to this change, the save_cwd caller required read access to the
76244         current directory on most systems (ones with the fchdir function).
76245
76246         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
76247         fails, try write-only, and finally, resort to using xgetcwd.
76248
76249 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
76250
76251         * lib/obstack.c, obstack.h: Import changes from libc.
76252
76253 2004-04-28  Bruno Haible  <bruno@clisp.org>
76254
76255         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
76256         also implicitly appends .exe to executables.
76257         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
76258         accepts Windows pathnames.
76259         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76260         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76261         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
76262         Treat Cygwin like Windows, since it now accepts Windows pathnames.
76263         Reported by Derek Robert Price <derek@ximbiot.com>.
76264
76265 2004-04-21  Karl Berry  <karl@gnu.org>
76266
76267         * config/srclist.txt (localcharset.c): break sync.
76268
76269 2004-04-20  Paul Eggert  <eggert@twinsun.com>
76270
76271         * m4/host-os.m4: Add a copyright notice.
76272
76273 2004-04-20  Jim Meyering  <jim@meyering.net>
76274
76275         Change UTILS_ to gl_ in AC_DEFINE'd names.
76276         Change utils_- and jm_-prefixed variables, too.
76277         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
76278         UTILS_FUNC_MKDIR_TRAILING_SLASH.
76279         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
76280
76281         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
76282         Don't emit trailing blanks.
76283         Also rename jm_-prefixed variables to have gl_ prefix.
76284
76285         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
76286         Also rename jm_-prefixed variables to have gl_ prefix.
76287
76288         * m4/jm-macros.m4: Reflect the renamings.
76289         * m4/prereq.m4: Likewise.
76290
76291 2004-04-20  Jim Meyering  <jim@meyering.net>
76292
76293         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
76294         memory.
76295
76296 2004-04-20  Jim Meyering  <jim@meyering.net>
76297             Bruno Haible  <bruno@clisp.org>
76298
76299         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
76300         memory when realloc fails.
76301
76302 2004-04-19  Jim Meyering  <jim@meyering.net>
76303
76304         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
76305         now that readutmp.c may call `free (0)'.
76306
76307 2004-04-19  Bruno Haible  <bruno@clisp.org>
76308
76309         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
76310         * m4/inttypes_h.m4: Likewise.
76311         * m4/stdint_h.m4: Likewise.
76312         * m4/intmax_t.m4: Likewise.
76313         * m4/uintmax_t.m4: Likewise.
76314
76315 2004-04-18  Jim Meyering  <jim@meyering.net>
76316
76317         * m4/prereq.m4: Don't forbid jm_ prefix.
76318
76319         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
76320         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
76321         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
76322         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
76323         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
76324         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
76325         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
76326         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
76327         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
76328         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
76329         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
76330         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
76331         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
76332         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
76333         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
76334         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
76335         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
76336         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
76337         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
76338
76339 2004-04-18  Jim Meyering  <jim@meyering.net>
76340
76341         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
76342         failure, don't leak memory and do call END_UTMP_ENT.
76343
76344 2004-04-16  Jim Meyering  <jim@meyering.net>
76345
76346         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
76347         coreutils' stat program.
76348         (gl_PREREQ): Don't require jm_PREREQ_STAT.
76349
76350 2004-04-11  Paul Eggert  <eggert@twinsun.com>
76351
76352         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
76353         C89.
76354         (CHAR_BIT): Remove, since we assume C89.
76355         Include <stdint.h> if available, as per current Autoconf CVS advice.
76356
76357 2004-03-31  Jim Meyering  <jim@meyering.net>
76358
76359         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
76360         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
76361         * m4/xalloc.m4: Likewise.
76362
76363 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76364
76365         Merge from coreutils.
76366
76367         * m4/inttostr.m4: New file.
76368         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
76369         Require AM_STDBOOL_H and gl_TIMESPEC instead.
76370         Require gl_CLOCK_TIME.
76371         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
76372
76373 2004-03-30  Paul Eggert  <eggert@twinsun.com>
76374
76375         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
76376         not bool, to be more consistent with Unix conventions.
76377         Suggested by Bruno Haible.
76378
76379         Merge from coreutils.
76380
76381         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
76382         * lib/umaxtostr.c: New files.
76383
76384         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
76385         the usual <time.h> dance.
76386         (get_date): Change signature to support fractional time stamps.
76387         All callers changed.
76388         * lib/getdate.y: Include "getdate.h" first, as we can now
76389         assume C89 and don't need to worry about 'const'.
76390         Similarly, include "unlocked-io.h" near start, not in middle.
76391         Include <limits.h>.
76392         (textint.value): Use long int rather than int.
76393         (textint.digits): Use size_t rather than int.
76394         (BILLION, LOG10_BILLION): New constants.
76395         (parser_control): New member rel_ns.  Members day_ordinal,
76396         time_zone, month, day, hour, minutes, rel_year, rel_month,
76397         rel_day, rel_hour, rel_minutes, rel_seconds
76398         are now long int, not int.  Member seconds is now struct timespec,
76399         not int.  New member timespec_seen.  Members dates_seen, days_seen,
76400         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
76401         not int.
76402         (%union.intval): Now long int, not int.
76403         New member timespec.
76404         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
76405         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
76406         (spec): Now is a timespec or an item list.
76407         (timespec, items): New nonterminals.
76408         (time, rel, relunit, number, get_date):
76409         Add support for fractional seconds.
76410         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
76411         (gmtime, localtime, mktime): Remove decls; not needed with C89.
76412         (to_hour): First arg is now long int, not int.
76413         (to_year): Returns long int, not int.
76414         Don't treat year -70 like 70.
76415         (tm_diff): Returns long int, not int.
76416         (lookup_word): Use bool instead of int when appropriate.
76417         (yylex): Use size_t for count, not int.
76418         Detect overflow when parsing large integer constants.
76419         Add support for fractions.
76420         (get_date): Make pointers 'const' if possible.
76421         Use more-portable code to detect integer overflow.
76422         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
76423         Don't use ctime; it's not reliable if the year has >4 digits.
76424
76425         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
76426         This is for compatibility with BSD.
76427
76428         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
76429         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
76430         From coreutils' system.h.
76431
76432         * lib/userspec.c: Don't include "posixver.h".
76433         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
76434         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
76435         compatible extension.  Simplify code by removing a boolean int
76436         that was always nonzero if a string was nonnull.
76437
76438 2004-03-30  Jim Meyering  <jim@meyering.net>
76439
76440         Merge from coreutils.
76441
76442         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
76443         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
76444         on some systems one must include <grp.h> before it.
76445         Reported by Christian Krackowizer.
76446
76447 2004-03-30  Jim Meyering  <jim@meyering.net>
76448
76449         Merge from coreutils.
76450
76451         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
76452
76453         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
76454         an empty input stream.
76455
76456         * lib/readtokens.c: Include <stdbool.h>.
76457         (readtoken): Use `size_t' rather than int/long.
76458         All callers adjusted.
76459         Use `bool' rather than `int' where appropriate.
76460         Use memset rather than an explicit loop.
76461         Use x2nrealloc rather than xrealloc.
76462         Allow the use of `\0' as a delimiter.
76463         (readtokens): Likewise.
76464         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
76465
76466 2004-03-30  Jim Meyering  <jim@meyering.net>
76467
76468         * m4/realloc.m4: Remove file, since now it does no more than
76469         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
76470         the `configure.ac' section of module/realloc.
76471         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
76472
76473 2004-03-30  Bruno Haible  <bruno@clisp.org>
76474
76475         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
76476         nonnull.
76477
76478 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76479
76480         Merge changes to getloadavg.c from coreutils and Emacs.
76481
76482         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
76483         Define to an expression, not to the empty string.
76484         Include cloexec.h and xalloc.h.
76485         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
76486         Use set_cloexec_flag rather than rolling our own.
76487         * lib/cloexec.c, lib/cloexec.h: New files.
76488
76489 2004-03-29  Paul Eggert  <eggert@twinsun.com>
76490
76491         * m4/cloexec.m4: New file.
76492
76493 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76494
76495         * lib/getopt.h: Sync with libc CVS.
76496
76497 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76498             Bruno Haible  <bruno@clisp.org>
76499
76500         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
76501         mbswidth.
76502
76503 2004-03-18  Paul Eggert  <eggert@twinsun.com>
76504             Bruno Haible  <bruno@clisp.org>
76505
76506         * lib/mbswidth.h: Include <wchar.h> only if
76507         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
76508         <wchar.h>.
76509         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
76510
76511 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76512
76513         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
76514         Sync with libc CVS.
76515         * lib/getopt_int.h: New file, also synced from libc.
76516
76517 2004-03-09  Paul Eggert  <eggert@twinsun.com>
76518
76519         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
76520         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
76521         Bring back getopt.c, getopt.h, getopt1.c.
76522
76523 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76524
76525         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
76526         All uses changed.  Check for sa_sigaction member; this fixes
76527         a bug first reported by Jason Andrade in
76528         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76529
76530 2004-03-07  Paul Eggert  <eggert@twinsun.com>
76531
76532         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
76533         '#if' expressions.  Unlike the code it replaces, it does not
76534         depend on (defined _SC_PAGESIZE).  However, it does depend on
76535         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
76536         first reported by Jason Andrade in
76537         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
76538
76539 2004-02-25  Simon Josefsson  <jas@extundo.com>
76540
76541         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
76542
76543 2004-02-25  Simon Josefsson  <jas@extundo.com>
76544
76545         * lib/strdup.h: New file.
76546         * lib/strdup.c: Include it.
76547         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
76548         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
76549
76550 2004-02-23  Karl Berry  <karl@gnu.org>
76551
76552         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
76553         (from fencepost.gnu.org:/gd/gnuorg).
76554
76555 2004-02-23  Karl Berry  <karl@gnu.org>
76556
76557         * config/srclistvars.sh (GNUORG) [karl]: redefine.
76558         * config/srclist.txt: add maintain/standards documents.
76559
76560 2004-02-18  Bruno Haible  <bruno@clisp.org>
76561
76562         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
76563         Reported by Derek Robert Price <derek@ximbiot.com>.
76564
76565 2004-02-16  Karl Berry  <karl@gnu.org>
76566
76567         * config/mkinstalldirs, install-sh: update from automake.
76568
76569 2004-02-06  Karl Berry  <karl@gnu.org>
76570
76571         * m4/po.m4: update from gettext 0.14.1.
76572
76573 2004-02-06  Karl Berry  <karl@gnu.org>
76574
76575         * lib/config.charset: update from gettext 0.14.1.
76576
76577 2004-02-05  Paul Eggert  <eggert@twinsun.com>
76578
76579         Add comments and code, prompted by suggestions from Bruno Haible
76580         for sh-quote.
76581         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
76582         describing the enum quoting_style values.
76583         * lib/quotearg.c (quotearg_alloc): New function.
76584         (quotearg_buffer_restyled): Treat lone { and } as special.
76585         Treat = as special.  Work around bug with older shells
76586         that "see" a '\' that is really the 2nd byte of a multibyte char.
76587         Quote empty string with shell_quoting_style.
76588
76589 2004-02-03  Bruno Haible  <bruno@clisp.org>
76590
76591         * m4/pipe.m4: New file, from GNU gettext.
76592
76593 2004-02-03  Bruno Haible  <bruno@clisp.org>
76594
76595         * lib/pipe.h: New file, from GNU gettext.
76596         * lib/pipe.c: New file, from GNU gettext.
76597
76598 2004-01-27  Bruno Haible  <bruno@clisp.org>
76599
76600         * m4/execute.m4: New file, from GNU gettext.
76601
76602 2004-01-27  Bruno Haible  <bruno@clisp.org>
76603
76604         * lib/execute.h: New file, from GNU gettext.
76605         * lib/execute.c: New file, from GNU gettext.
76606         * lib/w32spawn.h: New file, from GNU gettext.
76607
76608 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76609
76610         Merge from diffutils.
76611
76612         * lib/file-type.c (file_type): Add typed memory objects.
76613         * lib/file-type.h (S_TYPEISTMO): New macro.
76614
76615         * lib/c-stack.h (c_stack_action): Remove argv argument.
76616         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
76617         (die): Don't calculate message unless segv_action returns.
76618         (get_stack_location, min_address_from_argv, max_address_from_argv,
76619         volatile stack_base, volatile_stack_size): Remove.
76620         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
76621         that every segmentation violation is a stack overflow.  (Ouch!)
76622         See Debian bug 136249 (still outstanding) for more info about why
76623         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
76624
76625 2004-01-24  Paul Eggert  <eggert@twinsun.com>
76626
76627         Exit-status fix from coreutils.
76628
76629         Use exit_failure consistently in place of EXIT_FAILURE,
76630         so that program exit statuses are consistent on failure.
76631
76632         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
76633         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
76634         * lib/argmatch.h: Comment fix to match the above.
76635         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
76636         Now a macro referring to exit_failure, instead of a separate
76637         variable.  Include "exitfail.h" to get it.
76638         * lib/xstrtol.h: Include "exitfail.h".
76639         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
76640
76641         * lib/long-options.c (parse_long_options): Use prototype
76642         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
76643         for clarity.
76644
76645 2004-01-21  Jim Meyering  <jim@meyering.net>
76646
76647         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
76648         so as not to conflict with a different-sized __mktime_internal
76649         function in GNU libc.
76650         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
76651         Problem building statically-linked `ls' reported by Michael Brunnbauer.
76652
76653 2004-01-20  Karl Berry  <karl@gnu.org>
76654
76655         * config/config.guess: update from config.
76656
76657         * config/srclistvars.sh: GNUWWWLICENSES for karl.
76658
76659 2004-01-20  Bruno Haible  <bruno@clisp.org>
76660
76661         Safer stack allocation.
76662         * lib/setenv.c: Include allocsa.h.
76663         (alloca): Remove fallback definition.
76664         (freea): Remove macro.
76665         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
76666         instead of freea.
76667
76668 2004-01-20  Bruno Haible  <bruno@clisp.org>
76669
76670         * m4/eealloc.m4: New file, from GNU gettext.
76671
76672 2004-01-20  Bruno Haible  <bruno@clisp.org>
76673
76674         * m4/allocsa.m4: New file, from GNU gettext.
76675
76676 2004-01-20  Bruno Haible  <bruno@clisp.org>
76677
76678         * lib/xallocsa.h: New file, from GNU gettext.
76679         * lib/xallocsa.c: New file, from GNU gettext.
76680
76681 2004-01-20  Bruno Haible  <bruno@clisp.org>
76682
76683         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
76684
76685 2004-01-20  Bruno Haible  <bruno@clisp.org>
76686
76687         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
76688         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
76689         specially.
76690
76691 2004-01-20  Bruno Haible  <bruno@clisp.org>
76692
76693         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
76694         patch.
76695
76696 2004-01-20  Bruno Haible  <bruno@clisp.org>
76697
76698         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
76699
76700 2004-01-20  Bruno Haible  <bruno@clisp.org>
76701
76702         * lib/eealloc.h: New file.
76703
76704 2004-01-20  Bruno Haible  <bruno@clisp.org>
76705
76706         * lib/binary-io.h: Avoid warnings on Cygwin.
76707
76708 2004-01-20  Bruno Haible  <bruno@clisp.org>
76709
76710         * lib/allocsa.h: New file, from GNU gettext.
76711         * lib/allocsa.c: New file, from GNU gettext.
76712
76713 2004-01-18  Karl Berry  <karl@gnu.org>
76714
76715         * doc/gpl.texi, doc/lgpl.texi: new files.
76716
76717 2004-01-18  Karl Berry  <karl@gnu.org>
76718
76719         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
76720         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
76721
76722 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76723
76724         Merge from coreutils.
76725
76726         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
76727         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
76728         (gl_DEFAULT_POSIX2_VERSION): Move
76729         the documentation from 'configure' into 'config.hin',
76730         so that 'configure --help' isn't burdened by it and
76731         we don't have to worry about its formatting there.
76732         Reword the documentation so that it's more succinct
76733         and can be run together into a single paragraph.
76734         * m4/same.m4 (gl_SAME): Check for pathconf.
76735
76736 2004-01-15  Paul Eggert  <eggert@twinsun.com>
76737
76738         Merge from coreutils.
76739
76740         * lib/posixver.c: Include posixver.h.
76741
76742         * lib/same.c: Include <stdbool.h>, <limits.h>.
76743         (_POSIX_NAME_MAX): Define if not defined.
76744         (MIN): New macro.
76745         (same_name): If file names are silently truncated, report
76746         that the file names are the same if they are the same after
76747         the silent truncation.
76748
76749         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
76750         conversion function.
76751         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
76752         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
76753         longer needed.
76754
76755 2004-01-15  Jim Meyering  <jim@meyering.net>
76756
76757         Merge from coreutils.
76758
76759         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
76760         if no library is required.
76761         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
76762         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
76763         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
76764         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
76765         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
76766         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
76767         value, $ac_cv_search_crypt, if it's "none required".
76768         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
76769         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
76770         not gl_FUNC_GETLOADAVG.
76771         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
76772         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
76773
76774 2004-01-15  Jim Meyering  <jim@meyering.net>
76775
76776         Merge from coreutils.
76777
76778         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
76779         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
76780         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
76781
76782         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
76783         optional configure-time default.
76784
76785         * lib/version-etc.c (version_etc_copyright): Update copyright date.
76786
76787         * lib/xreadlink.c (xreadlink): Correct outdated comment.
76788
76789 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
76790
76791         Merge from coreutils.
76792
76793         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
76794         value, $ac_cv_search_nanosleep, if it's "none required".
76795
76796 2004-01-14  Paul Eggert  <eggert@twinsun.com>
76797
76798         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
76799         with like-named macro in fnmatch.c.
76800         (EXT): Use an internal constant instead.
76801
76802         Merge fnmatch patches from glibc.
76803         * lib/fnmatch.c (mbsinit): Remove define.
76804         Add libc_hidden_ver (__fnmatch, fnmatch).
76805         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
76806         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
76807
76808 2004-01-14  Karl Berry  <karl@gnu.org>
76809
76810         * config/install-sh: update from automake.
76811
76812 2004-01-13  Karl Berry  <karl@gnu.org>
76813
76814         * config/install-sh: update from automake.
76815
76816 2004-01-09  Karl Berry  <karl@gnu.org>
76817
76818         * config/install-sh: update from automake.
76819
76820 2004-01-05  Karl Berry  <karl@gnu.org>
76821
76822         * config/config.{sub,guess}: update from config.
76823
76824 2003-12-31  Karl Berry  <karl@gnu.org>
76825
76826         * config/depcomp: update from automake.
76827
76828 2003-12-14  Karl Berry  <karl@gnu.org>
76829
76830         * lib/config.charset: update from gettext-runtime.
76831
76832 2003-12-03  Paul Eggert  <eggert@twinsun.com>
76833
76834         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
76835         Bug reported by Alfred M. Szmidt.
76836
76837 2003-12-03  Bruno Haible  <bruno@clisp.org>
76838
76839         * m4/gettext.m4: Upgrade from gettext-0.13.
76840         * m4/po.m4: Upgrade from gettext-0.13.
76841         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
76842         * m4/intmax.m4: New file, from gettext-0.13.
76843         * m4/printf-posix.m4: New file, from gettext-0.13.
76844
76845 2003-11-29  Karl Berry  <karl@gnu.org>
76846
76847         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
76848
76849 2003-11-25  Paul Eggert  <eggert@twinsun.com>
76850             Bruno Haible  <bruno@clisp.org>
76851
76852         * lib/printf-parse.h: Don't include sys/types.h.
76853         (ARG_NONE): New macro.
76854         (char_directive): Change type of *arg_index fields to size_t.
76855         * lib/printf-parse.c: Don't include sys/types.h.
76856         (SSIZE_MAX): Remove macro.
76857         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
76858         Remove unnecessary overflow check.
76859         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
76860         fields.
76861
76862 2003-11-25  Bruno Haible  <bruno@clisp.org>
76863
76864         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
76865
76866 2003-11-25  Bruno Haible  <bruno@clisp.org>
76867
76868         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
76869         gt_TYPE_SSIZE_T.
76870
76871 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76872
76873         * modules/alloca: Remove dependency on xalloc.
76874
76875 2003-11-24  Paul Eggert  <eggert@twinsun.com>
76876
76877         * lib/alloca.c: Remove dependency on xalloc module.
76878         (xalloc_die): Remove.
76879         (memory_full) [!defined emacs]: New macro.
76880         [!defined emacs]: Don't include xalloc.h.
76881         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
76882         address arithmetic overflows.  Change datatypes a bit to avoid
76883         unnecessary casts.
76884
76885 2003-11-22  Jim Meyering  <jim@meyering.net>
76886
76887         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
76888         s/size/size_t/.
76889
76890 2003-11-21  Karl Berry  <karl@gnu.org>
76891
76892         * config/config.{sub,guess}: update from config.
76893
76894 2003-11-18  Karl Berry  <karl@gnu.org>
76895
76896         * config/config.{sub,guess}: update from config.
76897
76898         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
76899
76900 2003-11-17  Paul Eggert  <eggert@twinsun.com>
76901
76902         * README: Mention that S+T cannot overflow if S is the size of
76903         an existing object and T is sufficiently small.
76904
76905 2003-11-17  Jim Meyering  <jim@meyering.net>
76906
76907         On systems without utime and without a utimes function capable of
76908         dealing with a NULL struct utimbuf* argument, this utime replacement
76909         could -- in unusual circumstances -- leak a file descriptor.
76910         * lib/utime.c: Include <unistd.h> and <errno.h>.
76911         (utime_null): Be sure to close `fd' and to preserve errno.
76912         Reported by Geoff Collyer via Arnold Robbins.
76913
76914 2003-11-17  Bruno Haible  <bruno@clisp.org>
76915
76916         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
76917         (Depends-on): Add xsize.
76918
76919 2003-11-17  Bruno Haible  <bruno@clisp.org>
76920
76921         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
76922
76923 2003-11-17  Bruno Haible  <bruno@clisp.org>
76924
76925         * lib/vasnprintf.c (alloca): Remove fallback definition.
76926         (freea): Remove definition.
76927         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
76928         Reported by Paul Eggert.
76929
76930 2003-11-16  Paul Eggert  <eggert@twinsun.com>
76931             Bruno Haible  <bruno@clisp.org>
76932
76933         Protect against address arithmetic overflow.
76934         * lib/printf-args.h: Include stddef.h.
76935         (arguments): Change type of field 'count' to size_t.
76936         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
76937         'unsigned int' where appropriate.
76938         * lib/printf-parse.h: Include sys/types.h.
76939         (char_directive): Change type of *arg_index fields to ssize_t.
76940         (char_directives): Change type of fields 'count', max_*_length to
76941         size_t.
76942         * lib/printf-parse.c: Include sys/types.h and xsize.h.
76943         (SSIZE_MAX): Define fallback value.
76944         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
76945         instead of 'int' where appropriate. Check a_allocated, d_allocated
76946         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
76947         * lib/vasnprintf.c: Include xsize.h.
76948         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
76949         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
76950         overflow. Avoid wraparound when converting a width or precision from
76951         decimal to binary.
76952
76953 2003-11-16  Bruno Haible  <bruno@clisp.org>
76954
76955         Update from GNU gettext.
76956         * lib/printf-parse.c: Generalize to it can be compiled for wide
76957         strings.
76958         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
76959         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
76960         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
76961         SNPRINTF): New macros.
76962         Don't include <alloca.h> if the file is used inside libintl.
76963         (local_wcslen): New function, for Solaris 2.5.1.
76964         (VASNPRINTF): Use it instead of wcslen.
76965
76966 2003-11-16  Bruno Haible  <bruno@clisp.org>
76967
76968         * lib/xsize.h (xmax): New function.
76969         (xsum, xsum3, xsum4): Declare as "pure" functions.
76970
76971 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76972
76973         * modules/xalloc (Files): Undo latest change, since xalloc.h
76974         no longer needs SIZE_MAX or PTRDIFF_MAX.
76975
76976 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76977
76978         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
76979         gl_PTRDIFF_MAX.
76980
76981 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76982
76983         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
76984         "return", to pacify some unknown compiler.  Problem reported
76985         by Joerg Schilling.
76986
76987 2003-11-12  Paul Eggert  <eggert@twinsun.com>
76988
76989         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
76990         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
76991         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
76992         heuristic is just as accurate as far as we know, and it removes a
76993         dependency on size_max.m4 and ptrdiff_max.m4.
76994
76995 2003-11-11  Bruno Haible  <bruno@clisp.org>
76996
76997         * modules/xsize (Files): Add m4/size_max.m4.
76998         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
76999
77000 2003-11-11  Bruno Haible  <bruno@clisp.org>
77001
77002         * m4/size_max.m4: New file.
77003         * m4/ptrdiff_max.m4: New file.
77004         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
77005         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
77006         (gl_XALLOC): Invoke it.
77007
77008 2003-11-11  Bruno Haible  <bruno@clisp.org>
77009
77010         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
77011         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
77012         defined.
77013
77014 2003-11-10  Paul Eggert  <eggert@twinsun.com>
77015
77016         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
77017         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
77018         rejected some allocations of exactly SIZE_MAX - 2 bytes.
77019         From Bruno Haible.
77020         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
77021         not (size_t) -1, since it's defined here.
77022
77023 2003-11-09  Karl Berry  <karl@gnu.org>
77024
77025         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
77026
77027 2003-11-06  Paul Eggert  <eggert@twinsun.com>
77028
77029         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
77030         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
77031         Reject sizes of exactly SIZE_MAX bytes.
77032         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
77033         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
77034
77035 2003-11-05  Bruno Haible  <bruno@clisp.org>
77036
77037         * lib/xsize.h: Include limits.h, to avoid a possible collision with
77038         SIZE_MAX defined in <limits.h> on Solaris.
77039
77040 2003-11-04  Jim Meyering  <jim@meyering.net>
77041
77042         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
77043         variable names, rather than @VAR@.
77044         * modules/poll: Likewise.
77045
77046 2003-11-04  Bruno Haible  <bruno@clisp.org>
77047
77048         * modules/xsize: New file.
77049         * modules/linebreak: Depend on xsize.
77050         * MODULES.html.sh (func_all_modules): Add xsize.
77051
77052 2003-11-04  Bruno Haible  <bruno@clisp.org>
77053
77054         * m4/xsize.m4: New file.
77055
77056 2003-11-04  Bruno Haible  <bruno@clisp.org>
77057
77058         * lib/xsize.h: New file.
77059         * lib/linebreak.c: Include xsize.h.
77060         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
77061         argument for overflow.
77062         Suggested by Paul Eggert.
77063
77064 2003-11-03  Karl Berry  <karl@gnu.org>
77065
77066         * config/config.{guess,sub}: update from config.
77067
77068 2003-11-03  Jim Meyering  <jim@meyering.net>
77069
77070         * modules/userspec (lib_SOURCES): Add userspec.h.
77071         (Include): Add "userspec.h".
77072         Improve description.
77073
77074 2003-11-03  Jim Meyering  <jim@meyering.net>
77075
77076         * lib/userspec.c: Include "userspec.h".
77077         * lib/userspec.h: New file.
77078
77079 2003-11-03  Bruno Haible  <bruno@clisp.org>
77080
77081         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
77082
77083 2003-11-03  Bruno Haible  <bruno@clisp.org>
77084
77085         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
77086         available, to avoid (extremely rare) race condition.
77087         Suggested by Paul Eggert.
77088
77089 2003-11-02  Karl Berry  <karl@gnu.org>
77090
77091         * config/srclist.txt (vasprintf.c): sync broken, sigh.
77092
77093 2003-10-31  Paul Eggert  <eggert@twinsun.com>
77094
77095         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
77096         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
77097         (read_filesystem_list): Set and use me_type_malloced.
77098         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
77099         whatever the type happens to be), for brevity and consistency.
77100         Check for size calculation overflow on Alphas running OSF/1.
77101
77102 2003-10-31  Jim Meyering  <jim@meyering.net>
77103
77104         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
77105
77106         * lib/linebuffer.c: Include <string.h> for declaration of memset.
77107
77108 2003-10-30  Paul Eggert  <eggert@twinsun.com>
77109             Bruno Haible  <bruno@clisp.org>
77110
77111         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
77112         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
77113
77114 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
77115
77116         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
77117         netbsd*-gnu*.  Suggested by Robert Millan.
77118
77119 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77120
77121         * modules/group-member: Depend on stdbool.
77122
77123 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77124
77125         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
77126
77127 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77128
77129         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
77130         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
77131         after the 'gnu' in these cases.  This fixes some bugs in the
77132         previous change, and is based on suggestions by Robert Millan.
77133
77134 2003-10-29  Paul Eggert  <eggert@twinsun.com>
77135
77136         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
77137         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
77138         no longer needed.
77139         * lib/quotearg.c (quotearg_n_options): Use it.
77140         * lib/group-member.c: Include <stdbool.h>.
77141         (free_group_info): Arg is now const *; don't free arg.
77142         (get_group_info): Now returns bool and accepts struct group_info *,
77143         rather than returning a malloc'ed struct group_info *.
77144         All uses changed.  Check for overflow in internal size calculation.
77145
77146         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
77147         rather than xmalloc/xrealloc.
77148         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
77149         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
77150         conformance bug: the old code used a pointer after freeing the
77151         storage that it addressed.
77152         * lib/hash.c (hash_initialize): Simplify the code by using
77153         xalloc_oversized rather than doing it by hand.
77154         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
77155         the buffer preserved.  Use free and xmalloc instead.
77156         * lib/quotearg.c (quotearg_n_options): Likewise.
77157         Use a simpler test for size overflow.  Don't use xalloc_oversized
77158         because unsigned int might be wider than size_t (!); this suggests
77159         that we should switch from unsigned int to size_t for slot numbers.
77160
77161 2003-10-28  Paul Eggert  <eggert@twinsun.com>
77162
77163         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
77164         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
77165         NetBSD kernels.  Requested by Richard Stallman.
77166
77167 2003-10-27  Paul Eggert  <eggert@twinsun.com>
77168
77169         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
77170         to allocate the returned structure.  Do not allocate a subarray,
77171         as x2nrealloc will do that.
77172         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
77173         instead of xnrealloc.
77174         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
77175
77176 2003-10-27  Bruno Haible  <bruno@clisp.org>
77177
77178         * lib/stdbool_.h: Better support for BeOS.
77179
77180 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77181
77182         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
77183         now uses inline.
77184
77185 2003-10-26  Paul Eggert  <eggert@twinsun.com>
77186
77187         * lib/xalloc.h (xalloc_oversized): New static inline function, for
77188         callers that want to do their own size-overflow checking.  Include
77189         <stdbool.h>, since xalloc_oversized returns bool.
77190         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
77191         to use xalloc_oversized.
77192
77193         Add two functions x2realloc, x2nrealloc, for programs that grow
77194         arrays dynamically by doubling their sizes.
77195         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
77196         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
77197         New functions.
77198
77199         Port to C99 semantics for 'inline' of external functions.
77200         Bug reported by Bruno Haible.
77201         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
77202         with the old contents of xnmalloc.
77203         (xnmalloc, xmalloc): Use it.
77204         (xnrealloc_inline): New static inline function,
77205         with the old contents of xnrealloc.
77206         (xnrealloc, xrealloc): Use it.
77207
77208         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
77209         that.
77210
77211 2003-10-26  Karl Berry  <karl@gnu.org>
77212
77213         * config/srclist.txt (COPYING.DOC): no longer available from
77214         /gd/gnuorg; don't know where the ultimate source is.
77215
77216 2003-10-25  Paul Eggert  <eggert@twinsun.com>
77217
77218         Fix several address-calculation bugs in the hash modules,
77219         plus some minor code cleanup.
77220
77221         * lib/hash.h: Include <stdbool.h>, for bool.
77222         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
77223         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
77224         hash_get_n_entries, hash_get_max_bucket_length,
77225         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
77226         hash_rehash): Use size_t rather than unsigned.
77227         * lib/hash.c (struct hash_table, hash_get_n_buckets,
77228         hash_get_n_buckets_used, hash_get_n_entries,
77229         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
77230         hash_get_entries, hash_do_for_each, hash_string, is_prime,
77231         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
77232         Likewise.
77233         (SIZE_MAX): Define if not defined.
77234         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
77235         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
77236         hash_print):
77237         Use const * when possible.
77238         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
77239         (check_tuning): Fix bug: if tuning parameters were very close to
77240         0 or 1, rounding errors could have caused subscript violations.
77241         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
77242         (hash_initialize): Add 'fail:' label
77243         to free table and return NULL, and use it to simplify code.
77244         Use calloc rather than clearing the storage ourself.
77245         (hash_initialize, hash_rehash): Check for arithmetic overflow in
77246         buffer size calculations.
77247         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
77248         Include <stddef.h>, for size_t.
77249         * lib/hash-pjw.c (hash_pjw): Likewise.
77250         Switch to method described by Bruno Haible.
77251         Include <limits.h>, for CHAR_BIT.
77252         (SIZE_BITS): New macro.
77253
77254 2003-10-23  Paul Eggert  <eggert@twinsun.com>
77255
77256         * m4/getline.m4 (AM_FUNC_GETLINE):
77257         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
77258         hosts.  Problem reported by Derek Robert Price in
77259         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
77260         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
77261         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
77262
77263 2003-10-21  Paul Eggert  <eggert@twinsun.com>
77264
77265         * lib/getndelim2.c (getndelim2): When size calculation overflows,
77266         ceiling the allocation at NMAX bytes rather than silently
77267         discarding input bytes before NMAX is reached.  This makes
77268         a difference only if NMAX exceeds SIZE_MAX / 2.
77269
77270         * lib/obstack.c: Merge from glibc.
77271         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
77272         Add libc_hidden_def (_obstack_newchunk).
77273         (_obstack_free) [! defined _LIBC]: Remove.
77274         [defined _LIBC]: Make a strong alias from obstack_free, rather than
77275         a clone of the function body.
77276         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
77277         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
77278
77279         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
77280         glibc.
77281         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
77282         arg to memcpy.
77283
77284         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
77285         (obstack_ptr_grow_fast, obstack_int_grow_fast):
77286         Don't use lvalue casts, as GCC plans to remove support for them
77287         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
77288         was also present in the non-GCC version, indicating that this
77289         code had always been buggy and had never been widely used.
77290         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
77291         Use the fast variant of each macro, rather than copying the
77292         definiens of the fast variant; that way, we'll be more likely to
77293         catch future bugs in the fast variants.
77294
77295 2003-10-20  Bruno Haible  <bruno@clisp.org>
77296
77297         * modules/wait-process: New file.
77298         * MODULES.html.sh (func_all_modules): Add wait-process.
77299
77300 2003-10-20  Bruno Haible  <bruno@clisp.org>
77301
77302         * m4/wait-process.m4: New file.
77303
77304 2003-10-20  Bruno Haible  <bruno@clisp.org>
77305
77306         * lib/wait-process.h: New file, from GNU gettext.
77307         * lib/wait-process.c: New file, from GNU gettext.
77308
77309 2003-10-19  Jim Meyering  <jim@meyering.net>
77310
77311         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
77312         HPUX 10.20.
77313
77314 2003-10-18  Karl Berry  <karl@gnu.org>
77315
77316         * config/config.guess: update from config.
77317
77318 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77319
77320         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
77321         (getgroups): First arg is int, not size_t.
77322         Don't let 'free' mangle errno.
77323
77324 2003-10-16  Paul Eggert  <eggert@twinsun.com>
77325
77326         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
77327
77328 2003-10-16  Karl Berry  <karl@gnu.org>
77329
77330         * config/config.{guess,sub}: update from config.
77331
77332 2003-10-16  Jim Meyering  <jim@meyering.net>
77333
77334         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
77335         memcpy.
77336
77337 2003-10-15  Paul Eggert  <eggert@twinsun.com>
77338
77339         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
77340         (SIZE_MAX): Remove.
77341         (new_exclude, add_exclude_file): Initial size no longer needs to
77342         be a power of 2.
77343         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
77344         our own address arithmetic overflow checking.
77345
77346         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
77347         (fnmatch): Do not alloca more than 2000 wide characters;
77348         instead, use malloc for large buffers.
77349         Check for address arithmetic overflow, and return -1
77350         with errno set to ENOMEM in that case.
77351         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
77352         (NEW_PATTERN): Do not alloca more than 8000 bytes;
77353         instead, return -1.  Check for address arithmetic overflow.
77354
77355 2003-10-14  Paul Eggert  <eggert@twinsun.com>
77356
77357         Handle invalid suffixes and overflow independently, so that
77358         callers can treat them independently as needed.  Fix some bugs in
77359         suffix handling, e.g., "100k@" was not diagnosed as an invalid
77360         suffix for a human-readable blocksize.  The major caller-visible
77361         change is the addition of a new
77362         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
77363         that both overflow and suffix chars were found.
77364
77365         * lib/human.c (humblock): Don't check separately for invalid suffix
77366         char; that is xstrtoumax's job (now that its bug is fixed).
77367         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
77368         INTMAX_MAX]: New macros.
77369         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
77370         TYPE_MAXIMUM): New macros.
77371         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
77372         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
77373         if overflow occurs, as it's what __strtol does and it's more useful
77374         in practice.
77375         (__xstrtol): If __strtol reports some error other than ERANGE,
77376         reflect it to the caller as LONGINT_INVALID.  If it reports
77377         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
77378         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
77379         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
77380         value.
77381         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
77382         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
77383         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
77384         [defined UINTMAX_MAX]: New macros.
77385
77386 2003-10-14  Bruno Haible  <bruno@clisp.org>
77387
77388         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
77389
77390 2003-10-14  Bruno Haible  <bruno@clisp.org>
77391
77392         * m4/sig_atomic_t: New file, from GNU gettext.
77393         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
77394
77395 2003-10-14  Bruno Haible  <bruno@clisp.org>
77396
77397         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
77398         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
77399         Also use volatile where needed.
77400
77401 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77402
77403         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
77404         Change maintainer from Bruno Haible to 'all'.
77405
77406 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77407
77408         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
77409
77410 2003-10-12  Paul Eggert  <eggert@twinsun.com>
77411
77412         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
77413         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
77414         and define in terms of the other primitives.
77415         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
77416         (SIZE_MAX): Define if not already defined.
77417         (array_size_overflow): New function.
77418         (xalloc_die): Abort instead of exiting if 'error' returns.
77419         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
77420         (xmalloc, xrealloc): Use them.
77421         (xcalloc): Check for address arithmetic overflow.
77422         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
77423         a bit faster than strcpy.
77424
77425 2003-10-10  Simon Josefsson  <jas@extundo.com>
77426
77427         * modules/argp (Depends-on): Add restrict and strcase.
77428
77429 2003-10-10  Simon Josefsson  <jas@extundo.com>
77430
77431         * m4/argp.m4: Add AC_C_INLINE.
77432
77433 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77434
77435         Merge getpass from libc, plus a few fixes.
77436
77437         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
77438         Include <stdbool.h>.
77439         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
77440         __fsetlocking to empty.
77441         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
77442         do include <bits/libc-lock.h>.
77443         Do not include <fcntl.h>; not needed.
77444         [_LIBC]: Include <wchar.h>.
77445         (NOTCANCEL_MODE): New macro.
77446         (flockfile, funlockfile) [_LIBC]: New macros.
77447         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
77448         [!_LIBC]: New macros.
77449         (call_fclose): New function.
77450         (getpass): Use it.  Save tty stream separately; this simplifies the
77451         code and makes it more reliable if stdin happens to equal stdout.
77452         Invoke __fsetlocking on tty.
77453         Handle thread cancellation if needed.
77454         Namespace cleanup (use __tcgetattr, __getline).
77455         Use bool for Booleans.
77456         [USE_IN_LIBIO]: Handle wide streams.
77457         [!_LIBC]: Unconditionally do the fseek, since we don't know what
77458         stream might go where.
77459
77460         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
77461         doesn't have to include <stdio.h> before us.
77462         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
77463         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
77464         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
77465         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
77466         if not declared, so that we can use getpass.c code from libc without
77467         rewriting it.
77468         (flockfile, ftrylockfile, funlockfile): New macros.
77469
77470 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77471
77472         * modules/getpass: Depend on stdbool.
77473
77474 2003-10-08  Paul Eggert  <eggert@twinsun.com>
77475
77476         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
77477
77478 2003-10-07  Karl Berry  <karl@gnu.org>
77479
77480         * config/config.{guess,sub}: update from config.
77481
77482 2003-10-06  Jim Meyering  <jim@meyering.net>
77483             Bruno Haible  <bruno@clisp.org>
77484
77485         This lets translators provide better translations for the
77486         "Written by ..." part of --version output.
77487         * lib/version-etc.h: Include stdarg.h.
77488         (version_etc_copyright): Declare as readonly.
77489         (version_etc): Make this function variadic with a NULL-terminated list
77490         of author name strings.
77491         (version_etc_va): New declaration.
77492         * lib/version-etc.c: Include stdarg.h, stdlib.h.
77493         (version_etc_copyright): Declare as readonly.
77494         (version_etc_va): New function. Provide a different translatable string
77495         for each possible number of authors < 10. Abbreviate when there are 10
77496         authors or more.
77497         (version_etc): Make this function variadic. Call version_etc_va.
77498         Suggestion from Gary V. Vaughan.
77499
77500         * lib/long-options.h (parse_long_options): Change prototype: the
77501         authors string is moved to the end and becomes variadic.
77502         * lib/long-options.c: Include stdarg.h.
77503         (parse_long_options): Make this function variadic, too.
77504         Call version_etc_va, not version_etc.
77505
77506 2003-10-06  Bruno Haible  <bruno@clisp.org>
77507
77508         * modules/version-etc-2: Remove file.
77509         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
77510
77511 2003-10-06  Bruno Haible  <bruno@clisp.org>
77512
77513         * modules/fatal-signal: New file.
77514         * MODULES.html.sh (func_all_modules): Add fatal-signal.
77515
77516 2003-10-06  Bruno Haible  <bruno@clisp.org>
77517
77518         * m4/fatal-signal.m4: New file.
77519         * m4/signalblocking.m4: New file, from GNU gettext.
77520
77521 2003-10-06  Bruno Haible  <bruno@clisp.org>
77522
77523         * lib/version-etc-2.h: Remove file.
77524         * lib/version-etc-2.c: Remove file.
77525
77526 2003-10-06  Bruno Haible  <bruno@clisp.org>
77527
77528         * lib/fatal-signal.h: New file, from GNU gettext.
77529         * lib/fatal-signal.c: New file, from GNU gettext.
77530
77531 2003-10-05  Paul Eggert  <eggert@twinsun.com>
77532
77533         * README: Rework advice for preventing empty .o files.
77534         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
77535         not <sys/types.h>.
77536
77537 2003-10-04  Karl Berry  <karl@gnu.org>
77538
77539         * lib/argp*: update from libc.
77540
77541 2003-10-04  Karl Berry  <karl@gnu.org>
77542
77543         * config/config.{guess,sub}: update from config.
77544
77545 2003-10-02  Bruno Haible  <bruno@clisp.org>
77546
77547         * modules/lchown (Include): Add lchown.h.
77548         * modules/time_r (Include): Use "..." syntax.
77549         * modules/xgetdomainname (Include): Add xgetdomainname.h.
77550
77551 2003-10-01  Simon Josefsson  <jas@extundo.com>
77552
77553         * MODULES.html.sh (func_all_modules): Move gethostname from section
77554         'based on' to section 'lacking' POSIX:2001.
77555
77556 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
77557
77558         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
77559         to output mode on the same stream.
77560
77561 2003-09-29  Paul Eggert  <eggert@twinsun.com>
77562
77563         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
77564         Fix arg typo in previous patch.
77565
77566 2003-09-28  Jim Meyering  <jim@meyering.net>
77567
77568         * lib/error.c: Correct cpp indentation.
77569
77570 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77571
77572         * modules/free: New file.
77573
77574 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77575
77576         * m4/free.m4: New file.
77577
77578 2003-09-27  Paul Eggert  <eggert@twinsun.com>
77579
77580         * lib/minmax.h (MIN, MAX)
77581         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
77582         Omit the special code that used __typeof__, since we worry that
77583         it could be more trouble than it's worth.  See:
77584         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
77585         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
77586
77587         * lib/free.c: New file.
77588
77589 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
77590
77591         Trivial fixes to Makefile.am parts of module listings.
77592         * modules/strstr: Append strstr.h to lib_SOURCES.
77593         * modules/strcase: Likewise, for strcase.h.
77594
77595 2003-09-27  Karl Berry  <karl@gnu.org>
77596
77597         * config/mkinstalldirs: update from automake.
77598
77599 2003-09-26  Paul Eggert  <eggert@twinsun.com>
77600
77601         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
77602         (error_tail): Do not loop, reallocating temporary buffer, since
77603         the output cannot contain more wide characters than the input
77604         contains bytes, the size must be big enough already.  This avoids
77605         one potential size overflow calculation.  Check for size overflow
77606         when calculating temporary buffer size.  Free temporary buffer
77607         when done, if it was allocated with malloc; this plugs a memory
77608         leak.  Remove casts from void * to pointers, that are no longer
77609         needed now that we're assuming C89 or better.
77610
77611         Merge error changes from glibc.
77612
77613         * lib/error.c, error.h: Update copyright notice header to match glibc.
77614         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
77615         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
77616         Disable cancellation while printing error.
77617         * lib/error.h: Prepend __ to parameter names.
77618
77619 2003-09-26  Jim Meyering  <jim@meyering.net>
77620
77621         * lib/error.c (error_tail): Move some declarations
77622         into inner scope where the local variables are used.
77623
77624 2003-09-26  Bruno Haible  <bruno@clisp.org>
77625
77626         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
77627         stpncpy().
77628         Don't define stpncpy through config.h; it's now done through stpncpy.h.
77629
77630 2003-09-26  Bruno Haible  <bruno@clisp.org>
77631
77632         * lib/stpncpy.h (gnu_stpncpy): New declaration.
77633         (stpncpy): Define as alias for gnu_stpncpy.
77634         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
77635
77636 2003-09-25  Simon Josefsson  <jas@extundo.com>
77637
77638         * lib/xgetdomainname.h: New file.
77639         * lib/xgetdomainname.c: New file.
77640
77641 2003-09-25  Simon Josefsson  <jas@extundo.com>
77642             Bruno Haible  <bruno@clisp.org>
77643
77644         * modules/getdomainname: New file.
77645         * modules/xgetdomainname: New file.
77646         * MODULES.html.sh (func_all_modules): Add getdomainname,
77647         xgetdomainname.
77648
77649 2003-09-25  Simon Josefsson  <jas@extundo.com>
77650             Bruno Haible  <bruno@clisp.org>
77651
77652         * m4/getdomainname.m4: New file.
77653
77654 2003-09-25  Simon Josefsson  <jas@extundo.com>
77655             Bruno Haible  <bruno@clisp.org>
77656
77657         * lib/getdomainname.h: New file.
77658         * lib/getdomainname.c: New file.
77659
77660 2003-09-25  Karl Berry  <karl@gnu.org>
77661
77662         * lib/argp-fmtstream.c, argp-help.c: update from libc.
77663
77664 2003-09-25  Karl Berry  <karl@gnu.org>
77665
77666         * config/install-sh: update from automake.
77667
77668 2003-09-25  Bruno Haible  <bruno@clisp.org>
77669
77670         * modules/version-etc-2: New file, from modules/version-etc with
77671         modifications.
77672         * MODULES.html.sh (func_all_modules): Add version-etc-2.
77673
77674 2003-09-25  Bruno Haible  <bruno@clisp.org>
77675
77676         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
77677         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
77678
77679 2003-09-24  Simon Josefsson  <jas@extundo.com>
77680
77681         * modules/xgethostname: Add xgethostname.h.
77682
77683 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77684
77685         * lib/linebuffer.c (freebuffer): Don't free the argument, just
77686         the buffer associated with the argument.  Bug reported by
77687         Simon Josefsson.
77688
77689 2003-09-24  Paul Eggert  <eggert@twinsun.com>
77690
77691         * README: Document assumptions that 'int' is at least 32 bits
77692         wide, that integer arithmetic is 2's complement without overflow,
77693         that there are no holes in integer values, that adding sizes of
77694         two nonoverlapping objects can't overflow, and that all-bits-zero
77695         yields scalar zero.  Fix spelling and capitalization typos.
77696
77697 2003-09-19  Karl Berry  <karl@gnu.org>
77698
77699         * lib/argp.h: update from libc.
77700
77701 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77702
77703         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
77704         to avoid spurious warnings like "AC_RUN_IFELSE was called before
77705         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
77706
77707 2003-09-17  Paul Eggert  <eggert@twinsun.com>
77708
77709         * gnulib-tool: Use "test -h", not "test -L", for portability
77710         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
77711         (tags_regexp): Remove, since \| doesn't conform to POSIX.
77712         (sed_extract_prog): Issue s commands one-by-one, rather than
77713         using \| in one s command.
77714
77715 2003-09-16  Paul Eggert  <eggert@twinsun.com>
77716
77717         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
77718         input error, instead of returning NULL the next time we are called
77719         (and therefore losing track of errno).
77720
77721 2003-09-16  Bruno Haible  <bruno@clisp.org>
77722
77723         * gnulib-tool (func_create_testdir): Warn about duplicated
77724         dependencies.
77725
77726 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77727
77728         * modules/argmatch, modules/fatal, modules/obstack,
77729         modules/xalloc, modules/xgethostname: Sort dependencies by
77730         importance, not alphabetically.
77731
77732 2003-09-15  Paul Eggert  <eggert@twinsun.com>
77733
77734         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
77735         fails, so that the caller gets the proper errno.
77736
77737         * lib/readutmp.c (read_utmp): Likewise.
77738         Check for fstat error.  Close stream and free storage
77739         when failing.
77740
77741 2003-09-14  Karl Berry  <karl@gnu.org>
77742
77743         * config/srclist.txt (strdup.c): disable for c89 changes.
77744
77745 2003-09-14  Jim Meyering  <jim@meyering.net>
77746
77747         * lib/getloadavg.c: Correct cpp indentation.
77748         * lib/strdup.c: Likewise.
77749         * lib/vasnprintf.c: Likewise.
77750
77751 2003-09-14  Bruno Haible  <bruno@clisp.org>
77752
77753         * modules/fwriteerror: New file.
77754         * MODULES.html.sh (func_all_modules): Add fwriteerror.
77755
77756 2003-09-14  Bruno Haible  <bruno@clisp.org>
77757
77758         * lib/fwriteerror.h: New file.
77759         * lib/fwriteerror.c: New file.
77760
77761 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77762
77763         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
77764         modules/xgethostname, modules/xalloc: Depend on exit.
77765
77766 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77767
77768         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
77769
77770         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
77771         and AC_MINIX, too, so that their extensions are available.
77772
77773         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
77774         This macro has been superseded by gl_BACKUPFILE.
77775
77776         More patches to assume C89 or better.
77777
77778         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
77779
77780         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
77781         unconditionally.
77782         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
77783         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
77784         Include <string.h>, <stdlib.h> unconditionally.
77785         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
77786         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
77787         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
77788         headers or for string.h.
77789         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
77790         or strtoul.
77791
77792         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
77793         headers.
77794         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
77795         * m4/userspec.m4 (gl_USERSPEC): Likewise.
77796         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
77797         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
77798         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
77799         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
77800         memcpy, memset.
77801         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
77802         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
77803         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
77804         strtol.
77805         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
77806         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
77807         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
77808         strtoul.
77809
77810 2003-09-12  Paul Eggert  <eggert@twinsun.com>
77811
77812         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
77813         * lib/obstack.c [!defined _LIBC]: Likewise.
77814         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
77815         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
77816         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
77817
77818         More changes to assume C89 or better.
77819
77820         * lib/error.c (error_tail): Assume vprintf.
77821
77822         * lib/argmatch.c (getenv): Remove decl.
77823         * lib/progreloc.c (get_full_program_name): Define via prototype.
77824         * lib/setenv.c (clearenv): Likewise.
77825         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
77826         needed.
77827         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
77828         (malloc, memcpy): Remove decls.
77829         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
77830         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
77831         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77832         (memcpy): Remove macro.
77833         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
77834         (__P): Remove.  All uses removed.
77835         (PTR): Remove.  All uses changed to void *.
77836         (CHAR_BIT, NULL): Remove.
77837         (spaces, zeros, memset_space, memset_zero)
77838         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
77839         Remove.
77840         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
77841         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
77842         Define with prototype.
77843         Remove now-unnecessary prototype decl.
77844         (extra_args_spec): Assume ANSI C.  All uses changed.
77845         (extra_args_spec_iso): Remove.
77846         (my_strftime, emacs_strftimeu): Define via prototype.
77847         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
77848         unconditionally.
77849         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
77850         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
77851         (strtoul, strtol): Remove decls.
77852         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
77853         LONG_MAX): Remove.
77854         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
77855         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
77856         (LOCALE_PARAM_PROTO): New macro.
77857         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
77858         (INTERNAL (strtol), strtol): Define with a prototype.
77859         (PARAMS): Remove.  All uses removed.
77860         * lib/tempname.c: Include <string.h> unconditionally.
77861         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
77862         * lib/xgethostname.c (main): Define with a prototype.
77863         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
77864         Include <stdlib.h> unconditionally.
77865         (calloc, malloc, realloc, free): Remove decls.
77866         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
77867         Include <stdlib.h> unconditionally.  Sort include file names.
77868         (strtod): Remove.
77869         (xstrtod): Define with a prototype.
77870         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
77871         (strtol, strtoul): Remove decls.
77872
77873 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77874
77875         More patches to assume C89 or better.
77876         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
77877         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
77878         string.h, memchr, STDC_HEADERS.
77879
77880 2003-09-11  Paul Eggert  <eggert@twinsun.com>
77881
77882         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
77883         Include <stdlib.h>, <string.h> unconditionally.
77884         Remove now-unnecessary cast to char *.
77885         * lib/strnlen.c: Include <string.h> unconditionally.
77886         * lib/yesno.c (yesno): Define with a prototype.
77887
77888 2003-09-11  Bruno Haible  <bruno@clisp.org>
77889
77890         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
77891
77892 2003-09-10  Jim Meyering  <jim@meyering.net>
77893
77894         * lib/error.c: Correct indentation of cpp directives.
77895
77896 2003-09-10  Bruno Haible  <bruno@clisp.org>
77897
77898         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
77899         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
77900         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
77901         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
77902         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
77903         <stdlib.h> and <string.h> checks.
77904         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
77905         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
77906
77907 2003-09-10  Bruno Haible  <bruno@clisp.org>
77908
77909         * lib/strcspn.c: Include <string.h> unconditionally.
77910         * lib/strpbrk.c: Include <string.h> unconditionally.
77911         * lib/strstr.c: Include <string.h> unconditionally.
77912         * lib/unicodeio.c: Include <string.h> unconditionally.
77913         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
77914         * lib/unsetenv.c: Likewise.
77915         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
77916         * lib/yesno.c: Include <stdlib.h> unconditionally.
77917         (rpmatch): Add prototype.
77918
77919 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77920
77921         More patches to assume C89 or better.
77922         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
77923         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
77924         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
77925         or for string.h.
77926         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
77927         stdlib.h.
77928         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
77929         C headers.
77930         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
77931         string.h.
77932         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
77933         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
77934         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
77935         or for string.h.
77936         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
77937         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
77938         C headers.
77939         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
77940         memcpy.
77941         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
77942         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
77943         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
77944         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
77945         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
77946         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
77947         string.h, free.
77948         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
77949         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
77950         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
77951         C headers, or for string.h.
77952         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
77953         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
77954         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
77955         headers, memory.h, stdlib.h, string.h, strings.h.
77956         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
77957         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
77958         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
77959         strchr.
77960         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
77961         headers, memory.h, string.h.
77962         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
77963         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
77964         free.
77965         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
77966         headers.
77967         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
77968         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
77969         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
77970         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
77971         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
77972
77973 2003-09-09  Paul Eggert  <eggert@twinsun.com>
77974
77975         More K&R removal.
77976
77977         * lib/acosl.c (main): Use a prototype.
77978         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
77979         tanl.c: Likewise.
77980
77981         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
77982
77983         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
77984         (getopt, etopt_long, getopt_long_only, _getopt_internal)
77985         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
77986         with a prototype.
77987         * lib/getopt.c (const): Remove macro.
77988         Include <string.h> unconditionally.
77989         (my_index): Remove; all uses changed to strchr.
77990         (strlen): Remove decl.
77991         (exchange): Remove forward decl; no longer needed.
77992         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
77993         Define with prototype.
77994         * lib/getopt1.c (const): Remove macro.
77995         (getopt_long, getopt_long_only, main): Define with prototype.
77996
77997         * lib/getugroups.c: Include <string.h> unconditionally.
77998
77999         * lib/getusershell.c: Include <stdlib.h> unconditionally.
78000         (getusershell, setusershell, endusershell, readname, main):
78001         Define with prototypes.
78002
78003         * lib/group-member.c: Include group-member.h first.
78004         Include <stdlib.h> unconditionally.
78005
78006         * lib/hard-locale.c: Include hard-locale.h first.
78007         Include <stdlib.h>, <string.h> unconditionally.
78008
78009         * lib/hash.c (free, malloc): Remove decls.
78010         Include <stdlib.h> unconditionally.
78011
78012         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
78013         (getenv): Do not declare.
78014
78015         * lib/idcache.c: Include <string.h> unconditionally.
78016
78017         * lib/long-options.c: Include long-options.h first, to test interface.
78018         Include <stdlib.h> unconditionally.
78019
78020         * lib/makepath.c: Include makepath.h first, to test interface.
78021         Include <stdlib.h> and <string.h> unconditionally.
78022
78023         * lib/linebuffer.c: Include <stdlib.h>.
78024         (free): Remove decl.
78025
78026         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
78027         stddef.h. rpl_malloc returns void *, not char *.
78028         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
78029         prototype.
78030
78031         * lib/md5.h: Include <limits.h> unconditionally.
78032         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
78033         (__P): Remove; all uses removed.
78034         * lib/md5.c: Include "md5.h" first.
78035         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
78036         md5_buffer, md5_process_bytes, md5_process_block):
78037         Define with prototypes.
78038         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
78039         * lib/sha.c: Include "sha.h" first.
78040         Include <stdlib.h>, <string.h> unconditionally.
78041
78042         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
78043         * lib/memcmp.c (__ptr_t): Likewise.
78044         * lib/memrchr.c (__ptr_t): Likewise.
78045         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
78046         Include <string.h> unconditionally.
78047         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
78048         * lib/memchr.c: Include <stdlib.h> unconditionally.
78049         * lib/memchr.c (LONG_MAX): Remove.
78050         * lib/memrchr.c (LONG_MAX): Likewise.
78051         * lib/memchr.c (__memchr): Define via a prototype.
78052         * lib/memrchr.c (__memrchr): Likewise.
78053         * lib/memcmp.c (__P): Remove, and remove all uses.
78054         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
78055         Remove forward decls; no longer needed.
78056         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
78057         Use types required by C89 in prototype.
78058
78059         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
78060         * lib/savedir.c: Likewise.
78061         * lib/mkdir.c (free): Remove decl.
78062         * lib/rmdir.c (rmdir): Define with a prototype.
78063         * lib/savedir.c: Include savedir.h first, to test interface.
78064
78065         * lib/mktime.c (STDC_HEADERS): Remove.
78066         Include <stdlib.h>, <string.h> unconditionally.
78067
78068         * lib/modechange.c: Include <stdlib.h> unconditionally.
78069         (malloc): Remove decl.
78070
78071         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
78072         (free): Remove decl.
78073
78074         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
78075         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
78076         (This type really should be intptr_t, but that's a C99ism.)
78077         (_obstack_memcpy): Remove: all uses changed to memcpy.
78078         Include <string.h> unconditionally.
78079         (struct obstack): Assume __STDC__ for types of members
78080         chunkfun, freefun, extra_arg.
78081         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
78082         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
78083         obstack_begin, obstack_specify_allocation,
78084         obstack_specify_allocation_with_arg, obstack_chunkfun,
78085         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
78086         Remove unprototyped decls and the macros that use them.
78087         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
78088         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
78089         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
78090         (defined __STDC__ && __STDC__)]:
78091         Remove nonprototyped code.
78092         Include <stdlib.h> unconditionally.
78093         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
78094         _obstack_allocated_p, _obstack_free, obstack_free,
78095         _obstack_memory_used, print_and_abort):
78096         Define using prototypes.
78097         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
78098         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
78099         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
78100         obstack_next_free, obstack_object_size, obstack_room) [0]:
78101         Remove unused, unprototyped code.
78102
78103         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
78104
78105         * lib/physmem.c (physmem_total, physmem_available, main): Define
78106         with prototypes.
78107
78108         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
78109         (main): Define with a prototype.
78110
78111         * lib/posixver.c (getenv): Remove decl.
78112
78113         * lib/putenv.c (malloc): Returns void *, not char *.
78114         Include <string.h> unconditionally.
78115         (strchr, memcpy, NULL): Do not define.
78116
78117         * lib/readtokens.c: Include readtokens.h first, to test interface.
78118         Include <stdlib.h>, <string.h> unconditionally.
78119         (init_tokenbuffer): Define with a prototype.
78120
78121         * lib/regex.c (PARAMS): Remove.  All uses removed.
78122         All uses of _RE_ARGS removed, too.
78123         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
78124         unconditionally.
78125         (bzero): Assume memset exists.
78126         (memcmp, memcpy, NULL): Remove.
78127         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
78128         char, or assignments to local vars of type signed char.
78129         (init_syntax_once, PREFIX(extract_number_and_incr),
78130         PREFIX(print_partial_compiled_pattern),
78131         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
78132         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
78133         PREFIX(regex_grow_registers), PREFIX(regex_compile),
78134         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
78135         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
78136         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
78137         wcs_compile_range, byte_compile_range, truncate_wchar,
78138         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
78139         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
78140         count_mbs_length, wcs_re_match_2_internal,
78141         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
78142         PREFIX(alt_match_null_string_p),
78143         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
78144         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
78145         regfree, PREFIX(extract_number)): Define with prototype.  Remove
78146         now-unnecessary declaration, if any.
78147         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
78148         regcomp, regexec):
78149         Remove now-unnecessary casts among pointer types.
78150         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
78151
78152         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
78153         (free): Remove decl.
78154
78155         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
78156
78157         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
78158         (free): Remove decl.
78159
78160         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
78161         * lib/xgetcwd.c: Likewise.
78162
78163         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
78164         (free): Remove decl.
78165
78166         * lib/strchrnul.c (strchrnul): Define with a prototype.
78167         Fix bug: c_in was not converted to char before searching.
78168
78169         The following changes are not K&R related:
78170
78171         * lib/group-member.h: Include <sys/types.h>, so that this file is
78172         self-contained.
78173         * lib/makepath.h: Likewise.
78174
78175         * lib/getusershell.c (readname, default_index, line_size, readname):
78176         Use size_t, not int, for sizes.
78177         (readname): If the size overflows, report an error instead of
78178         looping forever.
78179
78180 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78181
78182         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
78183         libc.
78184
78185 2003-09-09  Paul Eggert  <eggert@twinsun.com>
78186
78187         * README: New section: portability guidelines.
78188
78189 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78190
78191         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
78192         C89 spec.
78193
78194 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
78195
78196         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
78197
78198 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78199
78200         Assume C89 or better; remove K&R cruft.
78201         A few of these changes were first proposed by Derek Robert Price
78202         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
78203
78204         * lib/addext.c: Include <string.h> unconditionally.
78205         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
78206         Don't declare getenv or malloc.
78207
78208         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
78209         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
78210         (NULL): Remove.
78211         (find_stack_direction, alloca): Use prototypes.
78212
78213         * lib/atexit.c (atexit): Define using a prototype.
78214
78215         * lib/basename.c, dirname.c, stripslash.c:
78216         Include <string.h> unconditionally.
78217
78218         * lib/bcopy.c: Include <stddef.h>.
78219         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
78220
78221         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
78222
78223         * lib/error.h (error, error_at_line, error_print_progname)
78224         [! (defined (__STDC__) && __STDC__)]: Remove decls.
78225         * lib/error.c: Include error.h first, to check interface.
78226         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78227         (VA_START): Remove; all uses changeed to va_start.
78228         (exit, strerror): Remove decls.
78229         (error_print_progname): Prototype uncondionally.
78230         Don't include <errno.h>; no longer needed.
78231         (private_strerror): Remove.
78232         (error_tail): Always define.
78233         (error, error_at_line): Assume C89 or better; always use prototypes.
78234         * lib/fatal.c: Include "fatal.h" first, to test interface.
78235         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
78236         (VA_START): Remove; all uses changed to va_start.
78237         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
78238         this case.
78239         (exit): Remove decl.
78240         (fatal): Prototype unconditionally.  Assume va_start works.
78241         Abort at end, to pacify gcc.
78242
78243         * lib/euidaccess.c (main): Define with a prototype.
78244
78245         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
78246
78247         * lib/exitfail.c: Include <stdlib.h> unconditionally.
78248
78249         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
78250         prototypes.
78251         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
78252         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
78253         (getenv): Remove decl.
78254         (fnmatch): Define using a prototype.
78255         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
78256         (FCT): Define using a prototype.
78257
78258         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
78259
78260         * lib/gethostname.c: Include <stddef.h>.
78261         (gethostname): Define with prototype.  Length is size_t, not int.
78262
78263 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78264
78265         Assume C89 or better; remove K&R cruft.
78266         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
78267         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
78268         string.h, getenv, malloc.
78269         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
78270         headers.
78271         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
78272         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
78273         do not check for strerror.
78274         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
78275         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
78276         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
78277         do not check for doprnt or vprintf.
78278         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
78279         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
78280
78281 2003-09-08  Paul Eggert  <eggert@twinsun.com>
78282
78283         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
78284         getversion.c should have been removed then, but was accidentally
78285         preserved.
78286
78287         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
78288         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
78289
78290 2003-09-08  Karl Berry  <karl@gnu.org>
78291
78292         * config/config.sub, config.guess, srclistvars.sh: update from savannah
78293                 config, forget about prep.
78294
78295         * config/depcomp, missing: update from automake.
78296
78297 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78298
78299         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
78300         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78301
78302 2003-09-07  Paul Eggert  <eggert@twinsun.com>
78303
78304         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
78305         copy_tm_result.  Bug reported by Simon Josefsson in
78306         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
78307
78308 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78309
78310         * m4/time_r.m4: New file.
78311         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
78312         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
78313         is. Check for timegm declaration.
78314         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
78315         Do not check for gmtime_r.
78316         Replace mktime if __mktime_internal does not exist and if mktime
78317         hasn't been replaced already.
78318
78319 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78320
78321         * lib/time_r.c, lib/time_r.h: New files.
78322
78323         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
78324         __localtime_r.
78325         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
78326         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
78327
78328         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
78329         __gmtime_r.
78330         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
78331         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
78332         Include <time_r.h>.
78333
78334         * lib/timegm.c: Switch to glibc implementation, with the following
78335         changes:
78336         [defined HAVE_CONFIG_H]: Include <config.h>.
78337         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
78338         (__mktime_internal) [!defined _LIBC]: New decl.
78339         (__gmtime_r) [!defined _LIBC]: New macro and function.
78340         (timegm): Use a prototype, since gnulib assumes C89.
78341         Do not bother declaring tmp to be const, as it's not really usefu.
78342         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
78343         (timegm): Declare only if HAVE_DECL_TIMEGM.
78344
78345 2003-09-06  Paul Eggert  <eggert@twinsun.com>
78346
78347         * MODULES.html.sh (func_all_modules): Add time_r.
78348         * modules/time_r: New file.
78349         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
78350         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
78351
78352 2003-09-03  Paul Eggert  <eggert@twinsun.com>
78353
78354         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
78355         Bug reported by Lute Kamstra in
78356         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
78357
78358         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
78359         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
78360         course with correspondingly smaller numbers for tomorrow and
78361         yesterday.  From Tadayoshi Funaba.  Originally installed into
78362         sh-utils on 1999-08-07, but the patch got lost (I guess during the
78363         coreutils merge?).
78364
78365 2003-08-31  Simon Josefsson  <jas@extundo.com>
78366
78367         * modules/timegm: New file.
78368         * MODULES.html.sh (func_all_modules): Add timegm.
78369
78370 2003-08-31  Simon Josefsson  <jas@extundo.com>
78371
78372         * m4/timegm.m4: New file.
78373
78374 2003-08-31  Simon Josefsson  <jas@extundo.com>
78375
78376         * lib/timegm.h: New file.
78377         * lib/timegm.c: New file.  Based on
78378         wget-1.8.2/src/http.c:mktime_from_utc.
78379
78380 2003-08-31  Karl Berry  <karl@gnu.org>
78381
78382         * lib/argp.h: update from libc.
78383
78384 2003-08-28  Bruno Haible  <bruno@clisp.org>
78385
78386         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
78387         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
78388         followed by '#define fnmatch fnmatch_posix' gives an error.
78389
78390 2003-08-28  Bruno Haible  <bruno@clisp.org>
78391
78392         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
78393         warning on QNX, which defines O_BINARY to 000000.
78394
78395 2003-08-27  Jim Meyering  <jim@meyering.net>
78396
78397         * m4/mkstemp.m4: Require that the system mkstemp be able to create
78398         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
78399         would fail after 32.  Reported by Danny Levinson.  Details here:
78400         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
78401
78402 2003-08-24  Bruno Haible  <bruno@clisp.org>
78403
78404         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
78405         MSVC7 <stdio.h> is included later.
78406
78407 2003-08-22  Simon Josefsson  <jas@extundo.com>
78408
78409         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
78410
78411 2003-08-20  Karl Berry  <karl@gnu.org>
78412
78413         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
78414
78415 2003-08-20  Bruno Haible  <bruno@clisp.org>
78416
78417         * modules/progname: New file.
78418         * MODULES.html.sh (func_all_modules): Add progname.
78419
78420 2003-08-20  Bruno Haible  <bruno@clisp.org>
78421
78422         * lib/progname.h: New file, from GNU gettext.
78423         * lib/progname.c: New file, from GNU gettext.
78424         * lib/progreloc.c: New file, from GNU gettext.
78425
78426 2003-08-19  Jim Meyering  <jim@meyering.net>
78427
78428         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
78429         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
78430
78431 2003-08-19  Bruno Haible  <bruno@clisp.org>
78432
78433         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
78434         more.
78435
78436 2003-08-19  Bruno Haible  <bruno@clisp.org>
78437
78438         * lib/xstrdup.c: Assume <string.h> exists.
78439
78440 2003-08-18  Paul Eggert  <eggert@twinsun.com>
78441
78442         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
78443         in makefile rules.
78444
78445 2003-08-18  Jim Meyering  <jim@meyering.net>
78446
78447         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
78448         * m4/lib-ld.m4: Likewise.
78449
78450 2003-08-18  Jim Meyering  <jim@meyering.net>
78451
78452         * lib/setenv.h: Indent nested cpp directive.
78453         * lib/vasnprintf.c: Remove trailing blanks.
78454
78455 2003-08-17  Simon Josefsson  <jas@extundo.com>
78456
78457         * modules/xstrndup: New file.
78458         * MODULES.html.sh (func_all_modules): Add xstrndup.
78459
78460 2003-08-17  Simon Josefsson  <jas@extundo.com>
78461
78462         * modules/argp: Fix autoconf macro name. Add more dependencies.
78463
78464 2003-08-17  Simon Josefsson  <jas@extundo.com>
78465
78466         * m4/xstrndup.m4: New file.
78467
78468 2003-08-17  Simon Josefsson  <jas@extundo.com>
78469
78470         * m4/argp.m4: New file.
78471
78472 2003-08-17  Simon Josefsson  <jas@extundo.com>
78473             Bruno Haible  <bruno@clisp.org>
78474
78475         * lib/xstrndup.h: New file.
78476         * lib/xstrndup.c: New file.
78477
78478 2003-08-17  Bruno Haible  <bruno@clisp.org>
78479
78480         * modules/strndup (Files, Include): Add lib/strndup.h.
78481
78482 2003-08-17  Bruno Haible  <bruno@clisp.org>
78483
78484         * modules/euidaccess (Files): Add lib/euidaccess.h.
78485
78486 2003-08-17  Bruno Haible  <bruno@clisp.org>
78487
78488         * lib/strndup.h: New file.
78489
78490 2003-08-17  Bruno Haible  <bruno@clisp.org>
78491
78492         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
78493         like AC_GNU_SOURCE.
78494         * modules/extensions (configure.ac): Comment out the invocation of
78495         gl_USE_SYSTEM_EXTENSIONS.
78496
78497 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78498
78499         Merges from coreutils, etc.
78500         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
78501         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
78502         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
78503         fixing a typo.
78504         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
78505         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
78506
78507 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78508
78509         Document merge from coreutils.
78510         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
78511         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
78512         * modules/utime: Add m4/utimes-null.m4.
78513
78514 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78515
78516         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
78517         space, undoing this 2003-08-12 change:
78518         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78519
78520 2003-08-16  Paul Eggert  <eggert@twinsun.com>
78521
78522         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
78523         strtoul.c from libc, undoing this 2003-08-12 change:
78524         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
78525
78526 2003-08-16  Jim Meyering  <jim@meyering.net>
78527
78528         Merges from coreutils.
78529         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
78530         prefix.  Adjust cache variables similarly.  Create 500 rather than
78531         just 300 files, to exercise bug on Darwin6.5, too.
78532         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
78533         $missing_dir.
78534         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
78535         AM_SYS_POSIX_TERMIOS.
78536         Reported by mkc@mathdogs.com.
78537         Also change use of $am_cv_sys_posix_termios
78538         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
78539         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
78540         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
78541         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
78542         in /proc/mounts until it finds one with matching device number.  This
78543         is unnecessary when the FILE argument *is* a mount point.  No stat call
78544         is necessary in that case.  So, disable the statvfs-testing code on
78545         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
78546         as RedHat bug# 84846.
78547         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78548         to 1MB, so as not to render systems with no stack size limit (e.g.,
78549         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78550         Include <unistd.h>.  On some systems,
78551         it is required for the definition of _SC_PAGESIZE.
78552
78553 2003-08-16  Jim Meyering  <jim@meyering.net>
78554
78555         Merge from coreutils.
78556         * lib/xstrtoimax.c: #else #if -> #elif.
78557         * lib/xstrtoumax.c: Likewise.
78558
78559 2003-08-16  Jim Meyering  <jim@meyering.net>
78560
78561         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
78562         * m4/utimes.m4: Removed.
78563         * m4/utimes-null.m4: Renamed from utimes.m4.
78564
78565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
78566         to 1MB, so as not to render systems with no stack size limit (e.g.,
78567         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
78568         Include <unistd.h>.  On some systems,
78569         it is required for the definition of _SC_PAGESIZE.
78570
78571 2003-08-16  Jim Meyering  <jim@meyering.net>
78572         and Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         Merges from coreutils, etc.
78575
78576         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
78577         using the latest version from cvs.  This avoids problems with #line
78578         directives using a vendor (Sun) compiler.
78579         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
78580         Don't set GETGROUPS_LIB here; now it's
78581         done via getgroups.m4's wrapper function.
78582         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
78583         rather than just in sh-util/configure.in, so that the
78584         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
78585         same.
78586         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
78587         AC_FUNC_GETLOADAVG where to find getloadavg.c.
78588         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
78589         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
78590         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
78591         Remove code that is now done by the newly-required macros.
78592         Append $(EXEEXT) to DF_PROG.
78593         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
78594         Do not invoke or require the following here,
78595         since prereq.m4 or some gnulib .m4 now does this for us:
78596         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
78597         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
78598         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
78599         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
78600         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
78601         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
78602         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
78603         AC_FUNC_OBSTACK.
78604         Do not replace the following functions, as this is now the job
78605         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
78606         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
78607         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
78608         atexit getpass, strdup, getpagesize.
78609         Replace 'raise'.
78610         Do not check for the following functions, as this is now the job
78611         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
78612         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
78613         setregid.
78614         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
78615         Check for sys/sysctl.h.
78616         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
78617         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
78618         of checking for ssize_t ourselves.
78619
78620         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
78621         Require every macro that gnulib/modules/* suggests for us.
78622         (jm_PREREQ_ADDEXT): New macro.
78623         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
78624         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
78625
78626         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
78627         (gl_PHYSMEM): Use it.
78628         Also check for `table' function.
78629         Check for new headers and functions.
78630         Add check for sys/sysmp.h.
78631         With suggestions from Kaveh Ghazi.
78632         Ignore headers that are present but cannot be compiled.  This
78633         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
78634         C 5.4.
78635
78636 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78637
78638         Document merge from coreutils.
78639         * modules/userspec: Depend on posixver.
78640         * modules/strftime: Depend on tzset.
78641
78642 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78643
78644         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
78645         rather than tab, after '#' in shell-script copyright notices.
78646         Suggested by Bruno Haible.
78647
78648 2003-08-15  Paul Eggert  <eggert@twinsun.com>
78649
78650         * config/srclist-update: Use three spaces, rather than tab, after '#'
78651         in shell-script copyright notices.  Suggested by Bruno Haible.
78652         Remove unnecessary parenthesization in regular expression.
78653
78654 2003-08-15  Jim Meyering  <jim@meyering.net>
78655
78656         Merge from coreutils.
78657         * lib/xgethostname.c: Include <stdlib.h>.
78658         (xghostname): Don't exit for anything other than memory-related
78659         failure; just return NULL.
78660         * lib/userspec.c: Include "posixver.h".
78661         (parse_user_spec): Accept `.' as a separator only
78662         in pre-POSIX-200112 mode.
78663         * lib/strtoimax.c: Use #elif rather than #else #if.
78664         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
78665         Remove function, now that we can rely on a working tzset function.
78666         [!_LIBC]: Ensure that the required autoconf test has been run.
78667         [!defined _NL_CURRENT && HAVE_STRFTIME]:
78668         Use underlying_strftime for %r.
78669         * lib/sha.c: Merge in some clean-up and optimization changes from
78670         glibc.
78671         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
78672         Ensure that it is a multiple of 64.
78673         Rearrange loop exit tests so as to avoid performing an
78674         additional fread after encountering an error or EOF.
78675         * lib/realloc.c: Update copyright date.
78676
78677 2003-08-15  Jim Meyering  <jim@meyering.net>
78678         and Paul Eggert  <eggert@twinsun.com>
78679
78680         Merge from coreutils.
78681         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
78682         member but strut utmpx does not.  Needed for AIX 4.3.3.
78683         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
78684
78685 2003-08-15  Jim Meyering  <jim@meyering.net>
78686         and Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         Merges from coreutils, etc.
78689         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
78690         Require gl_FUNC_TZSET_CLOBBER.
78691         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
78692         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
78693         members.
78694
78695 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78696
78697         Help the merge from coreutils.
78698         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
78699         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
78700         * m4/tzset.m4: Use it too.
78701
78702 2003-08-14  Paul Eggert  <eggert@twinsun.com>
78703
78704         * modules/tzset: New file.
78705
78706 2003-08-14  Jim Meyering  <jim@meyering.net>
78707
78708         Merges from coreutils.
78709         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
78710         variable names, rather than @FNMATCH_H@.
78711         * modules/alloca: Likewise for $(ALLOCA_H).
78712
78713         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
78714         the three copies of the literal target, `fnmatch.h'.
78715         * modules/alloca (alloca.h): Likewise.
78716
78717 2003-08-14  Jim Meyering  <jim@meyering.net>
78718
78719         Merge from coreutils.
78720         * m4/tzset.m4: New file.
78721         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
78722         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
78723         otherwise, AIX 5.1 systems would end up using the latter.
78724         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
78725         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
78726         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
78727         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
78728
78729 2003-08-14  Jim Meyering  <jim@meyering.net>
78730
78731         Merge from coreutils.
78732         * lib/obstack.h: Whitespace changes.
78733         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
78734         and xcalloc return values.
78735         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
78736         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
78737         hang on OSF/1 5.1 for DIR on both local and remote file systems.
78738         Reported by (and fix confirmed by) Nelson H. F. Beebe.
78739         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
78740         error from mntctl.
78741         Use mntctl's return value to drive the entry-processing loop, since
78742         we can't rely on the value of the vmt_length member in the last
78743         entry.  On some systems doing so could result in exhausting
78744         virtual memory.  Based in part on a patch from Mike Jetzer.
78745
78746 2003-08-14  Jim Meyering  <jim@meyering.net>
78747         and Paul Eggert  <eggert@twinsun.com>
78748
78749         Merges from coreutils, plus other fixes.
78750         * lib/physmem.c: Merge in portability changes from gcc/libiberty
78751         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
78752         for credits and details.  Thanks to Kaveh Ghazi for helping
78753         to keep these files in sync.
78754         (ARRAY_SIZE): Define it.
78755         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
78756         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
78757         (memcasecmp): Don't assume size_t fits in unsigned int.
78758         Remove casts and duplicate code.
78759         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
78760         (memcpy): Remove definition.
78761         Merge in some clean-up and optimization changes from glibc.
78762         [BLOCKSIZE]: Move definition to top of file.
78763         Ensure that it is a multiple of 64.
78764         Rearrange loop exit tests so as to avoid performing an
78765         additional fread after encountering an error or EOF.
78766         * lib/md5.h (md5_uintptr): Define.
78767         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
78768         return to the initial working directory.  Preserve errno
78769         for caller.
78770         * lib/idcache.c: Include "xalloc.h".
78771         (xmalloc, xrealloc): Remove decls.
78772         (getuser): Remove casts no longer required in C89.
78773         * lib/human.c: Include stdio.h, for sprintf.
78774         * lib/group-member.c: Include "xalloc.h".
78775         (xmalloc, xrealloc): Remove decls.
78776         (get_group_info): Remove casts no longer required in C89.
78777         * lib/getusershell.c (readname): Remove casts no longer required in
78778         C89.
78779         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
78780         * lib/getline.c: Whitespace fix, from coreutils.
78781
78782 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78783
78784         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
78785         Check for isascii.
78786
78787         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78788         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78789         Undo previous (whitespace-only) change.
78790
78791 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78792
78793         * lib/exclude.c: Include <ctype.h>
78794         (IN_CTYPE_DOMAIN): New macro.
78795         (is_space): New fn.
78796         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
78797         and empty lines.
78798
78799         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78800         Undo previous (whitespace-only) change.
78801
78802 2003-08-13  Paul Eggert  <eggert@twinsun.com>
78803
78804         * config/srclist-update: Change update back to the old behavior,
78805         leaving whitespace alone.  Use one 'sed' command rather than a
78806         pipeline.
78807         (fixlicense): Now a variable, not a function.
78808         (remove_trailing_blanks): Remove.
78809         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
78810         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78811         Undo previous (whitespace-only) change.
78812
78813 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78814
78815         Merge from coreutils.
78816         * modules/euidaccess: Add lib_SOURCES, include for new
78817         file euidaccess.h
78818
78819 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78820
78821         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
78822         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
78823         Normalize leading white space and remove trailing white space.
78824
78825         Merge from coreutils
78826         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
78827
78828         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
78829         0.12.1.  These files are now being upgraded automatically by
78830         ../config/srclist-update.
78831
78832 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78833
78834         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
78835         Normalize leading white space and remove trailing white space.
78836         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
78837         notice, as per ../config/srclist-update.
78838
78839         Merge from coreutils.
78840         * lib/euidaccess.h: New file.
78841         * lib/euidaccess.c: Include it.
78842         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
78843         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
78844         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
78845
78846 2003-08-12  Paul Eggert  <eggert@twinsun.com>
78847
78848         * config/srclist-update: Add copyright notice.
78849         (remove_id_lines, remove_trailing_blanks): New constants.
78850         (fixfile): Use them to normalize spacing a bit in copied files.
78851         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
78852         Normalize leading white space and remove trailing white space.
78853
78854         * config/texinfo.tex: Sync with texinfo.
78855
78856         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
78857         strtoul.c from libc, to merge coreutils whitespace changes.
78858
78859         * config/srclist.txt: Get the following m4 files from gettext:
78860         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
78861         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
78862         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
78863         wint_t.m4.
78864
78865 2003-08-12  Karl Berry  <karl@gnu.org>
78866
78867         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
78868         been made.
78869
78870 2003-08-11  Paul Eggert  <eggert@twinsun.com>
78871
78872         * modules/gnu-source, m4/gnu-source.m4:
78873         Remove; we're assuming Autoconf 2.54 or later now.
78874         Suggested by Bruno Haible.
78875         * MODULES.html.sh (func_all_modules): Remove gnu-source.
78876
78877 2003-08-11  Bruno Haible  <bruno@clisp.org>
78878
78879         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
78880
78881 2003-08-11  Bruno Haible  <bruno@clisp.org>
78882
78883         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
78884         (vasnprintf): Use it instead of wcslen.
78885
78886 2003-08-11  Bruno Haible  <bruno@clisp.org>
78887
78888         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
78889         value to ensure that _Bool promotes to int. Use #define for _Bool when
78890         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
78891
78892 2003-08-10  Karl Berry  <karl@gnu.org>
78893
78894         * lib/regex.h: update from libc (whitespace fix).
78895
78896 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78897
78898         Merge some files from coreutils.  These changes were
78899         originally made by Jim Meyering.
78900         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
78901         many older Unixes require this.
78902         * lib/alloca.c (alloca): Remove cast to argument of free;
78903         no longer needed in C89.
78904         * lib/alloca_.h, regex.h: Fix white space to match
78905         what GNU indent does.
78906
78907 2003-08-09  Paul Eggert  <eggert@twinsun.com>
78908
78909         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
78910         apparently Emacs's Unicode mode got confused before my 2003-08-05
78911         checkin.
78912
78913 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78914
78915         * m4/extensions.m4: New file.
78916         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
78917         Require gl_USE_SYSTEM_EXTENSIONS.
78918         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
78919         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
78920
78921 2003-08-08  Paul Eggert  <eggert@twinsun.com>
78922
78923         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
78924         * modules/extensions, modules/gnu-source: New files.
78925         * modules/timespec, modules/unlocked-io: Depend on extensions.
78926
78927 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78928
78929         * modules/restrict: New file.
78930         * MODULES.html.sh (func_all_modules): Add restrict.
78931         * modules/regex: Depend on restrict.
78932
78933 2003-08-07  Paul Eggert  <eggert@twinsun.com>
78934
78935         * m4/restrict.m4: New file.
78936         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
78937
78938 2003-08-07  Bruno Haible  <bruno@clisp.org>
78939
78940         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
78941         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
78942
78943 2003-08-07  Bruno Haible  <bruno@clisp.org>
78944
78945         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
78946         makes the module 'getndelim2' compatible with the module 'getline'.
78947
78948 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78949
78950         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
78951         byte with "\201" to avoid glitches when editing that source file
78952         with multi-gnome-terminal.
78953
78954 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78955
78956         * lib/bumpalloc.h: Remove.
78957
78958 2003-08-05  Paul Eggert  <eggert@twinsun.com>
78959
78960         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
78961         * modules/bumpalloc: Remove.
78962
78963 2003-08-04  Paul Eggert  <eggert@twinsun.com>
78964
78965         * lib/getloadavg.c: Change copyright notice and spacing to conform to
78966         GNU coding style.
78967
78968         Merge from coreutils.
78969         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
78970         1. From glibc.
78971         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
78972         from Karl Berry, implemented by Jim Meyering.
78973         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
78974         from Dmitry V. Levin.
78975         Remove anachronistic cast of xrealloc.
78976         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
78977         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
78978         type. Otherwise, it wouldn't compile with at least /bin/cc on
78979         ymp-cray-unicos9.0.2.X.
78980         Combine two mostly-identical uses of alloca into one.
78981         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
78982
78983 2003-08-04  Dave Love  <d.love@dl.ac.uk>
78984
78985         [From Emacs.]
78986
78987         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
78988         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
78989         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
78990         obsolete NLIST_NAME_UNION.
78991         [__GNU__]: Undef BSD and FSCALE.
78992         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
78993
78994 2003-08-03  Paul Eggert  <eggert@twinsun.com>
78995
78996         * lib/stdbool_.h (_Bool): Make it signed char, instead of
78997         an enum type, so that it's guaranteed to promote to int.  See:
78998         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
78999
79000 2003-08-03  Karl Berry  <karl@gnu.org>
79001
79002         * config/depcomp: update from automake.
79003
79004 2003-07-31  Paul Eggert  <eggert@twinsun.com>
79005
79006         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
79007         (strerror): Don't assume that a printable int fits in 14 bytes.
79008
79009 2003-07-31  Bruno Haible  <bruno@clisp.org>
79010
79011         * modules/getpass-gnu: New file.
79012         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
79013
79014 2003-07-31  Bruno Haible  <bruno@clisp.org>
79015
79016         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
79017
79018 2003-07-24  Karl Berry  <karl@gnu.org>
79019
79020         * config/missing: update from automake.
79021
79022 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
79023             Bruno Haible  <bruno@clisp.org>
79024
79025         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
79026         * lib/getline.c (getline, getdelim): Likewise.
79027         Remove _GNU_SOURCE define; now it's defined in config.h through
79028         m4/getline.m4.
79029
79030 2003-07-23  Karl Berry  <karl@gnu.org>
79031
79032         * config/config.sub: update from prep.
79033
79034 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79035
79036         * modules/xalloc (Depends-on): Add exitfail.
79037         * modules/xmemcoll: Likewise.
79038
79039 2003-07-22  Paul Eggert  <eggert@twinsun.com>
79040
79041         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
79042         over-parenthesization in macros.
79043
79044         Sync with coreutils.
79045
79046         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
79047         required by C99.
79048
79049         Use `exit_failure' for xalloc and xmemcoll instead of their own
79050         private exit-failure variables.
79051         * lib/xalloc.h (xalloc_exit_failure): Remove.
79052         * lib/xmalloc.c: Likewise.  Include exitfail.h.
79053         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
79054         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
79055         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
79056         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
79057
79058 2003-07-20  Jim Meyering  <jim@meyering.net>
79059
79060         * modules/closeout (Depends-on): Add exitfail.
79061         Suggestion from Bruno Haible.
79062
79063 2003-07-19  Karl Berry  <karl@gnu.org>
79064
79065         * config/config.sub: update from prep.
79066
79067 2003-07-18  Paul Eggert  <eggert@twinsun.com>
79068
79069         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
79070         Remove.
79071         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
79072         to test that it can stand by itself.  Include "exitfail.h".
79073         Clients should set exit_failure instead.
79074         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
79075
79076 2003-07-18  Bruno Haible  <bruno@clisp.org>
79077
79078         * modules/getndelim2: New file.
79079         * modules/getline: Share files with module getndelim2.
79080         * modules/getnline: Depend on getndelim2 instead of sharing files with
79081         it. Add getnline.c to lib_SOURCES.
79082         * MODULES.html.sh (func_all_modules): Add getndelim2.
79083
79084 2003-07-18  Bruno Haible  <bruno@clisp.org>
79085
79086         * m4/getndelim2.m4: New file.
79087         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
79088         invoke gl_PREREQ_GETNDELIM2.
79089         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
79090         gl_PREREQ_GETNDELIM2.
79091         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
79092         gl_GETNDELIM2.
79093
79094 2003-07-18  Bruno Haible  <bruno@clisp.org>
79095
79096         * lib/getndelim2.h: New file.
79097         * lib/getndelim2.c: Make into a module of its own. Include config.h,
79098         getndelim2.h.
79099         (getndelim2): Make non-static. Change return type to ssize_t.
79100         * lib/getline.h: Change argument names.
79101         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
79102         * lib/getnline.c: Include getndelim2.h.
79103
79104 2003-07-18  Andreas Schwab  <schwab@suse.de>
79105
79106         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
79107
79108 2003-07-17  Karl Berry  <karl@gnu.org>
79109
79110         * config/config.sub: update from prep.
79111
79112 2003-07-17  Bruno Haible  <bruno@clisp.org>
79113
79114         * modules/getnline: New file.
79115         * modules/getline: Add lib/getndelim2.c to source file list.
79116         * MODULES.html.sh (func_all_modules): Add getnline.
79117
79118 2003-07-17  Bruno Haible  <bruno@clisp.org>
79119
79120         * m4/getnline.m4: New file.
79121
79122 2003-07-17  Bruno Haible  <bruno@clisp.org>
79123
79124         * m4/Makefile.am.in: Remove file.
79125         * m4/Makefile.am: Remove file.
79126         * m4/Makefile.in: Remove file.
79127
79128 2003-07-17  Bruno Haible  <bruno@clisp.org>
79129
79130         * lib/getnline.h: New file.
79131         * lib/getnline.c: New file.
79132         * lib/getndelim2.c: New file, extracted from getline.c.
79133         (getndelim2): Renamed from getdelim2, with added nmax argument.
79134         * lib/getline.c: Include getndelim2.c.
79135         (getdelim2): Moved out to getndelim2.c.
79136         (getline, getdelim): Update.
79137
79138 2003-07-17  Bruno Haible  <bruno@clisp.org>
79139
79140         * lib/Makefile.am: Remove file.
79141         * lib/Makefile.in: Remove file.
79142
79143 2003-07-17  Bruno Haible  <bruno@clisp.org>
79144
79145         * configure.in: Remove file.
79146         * Makefile.in: Remove file.
79147
79148 2003-07-17  Bruno Haible  <bruno@clisp.org>
79149
79150         * MODULES.html.sh: Put the </BODY> right before </HTML>.
79151
79152 2003-07-16  Karl Berry  <karl@gnu.org>
79153
79154         * config/srclist-update: was running fixlicense twice, which caused
79155                 texinfo.tex to be nullified for some reason.  Simplify,
79156                 $gplsrc is no longer needed as far as I can see?
79157
79158 2003-07-16  Jim Meyering  <jim@meyering.net>
79159
79160         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
79161
79162 2003-07-15  Paul Eggert  <eggert@twinsun.com>
79163
79164         * config/srclist.txt: Get the following files from gettext-runtime/intl
79165         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
79166         ref-del.sin.  From Bruno Haible.
79167         * config/srclist-update (fixfile): Change grep pattern again, since the
79168         previous fix didn't work (there was another trailing $).  Use
79169         '[$]' to escape the $s.
79170
79171 2003-07-15  Karl Berry  <karl@gnu.org>
79172
79173         * lib/vasnprintf.c: update from gettext.
79174
79175 2003-07-15  Karl Berry  <karl@gnu.org>
79176
79177         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
79178         gets expanded when surrounded by '$'.
79179
79180 2003-07-15  Jim Meyering  <jim@meyering.net>
79181
79182         * modules/save-cwd: Don't depend on error.  From Derek Price.
79183
79184 2003-07-15  Jim Meyering  <jim@meyering.net>
79185
79186         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
79187
79188 2003-07-14  Simon Josefsson  <jas@extundo.com>
79189
79190         * modules/mempcpy: New file.
79191         * MODULES.html.sh (func_all_modules): Add mempcpy.
79192
79193 2003-07-14  Simon Josefsson  <jas@extundo.com>
79194
79195         * m4/mempcpy.m4: New file.
79196
79197 2003-07-14  Simon Josefsson  <jas@extundo.com>
79198
79199         * lib/mempcpy.h: New file.
79200         * lib/mempcpy.c: New file.
79201
79202 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79203
79204         * modules/getdate, modules/posixtm: Depend on mktime.
79205
79206 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79207
79208         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
79209         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
79210         unicodeio.c, unicodeio.h, unlocked-io.h:
79211         Switch from LGPL to GPL.
79212
79213 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79214
79215         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
79216         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
79217         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
79218         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
79219         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
79220         updated automatically by ../config/srclist-update.  This changes
79221         their license from LPGL to GPL.
79222
79223 2003-07-14  Paul Eggert  <eggert@twinsun.com>
79224
79225         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
79226         assumed to refer to the root of the most recent stable gettext version.
79227         * config/srclistvars.sh: Add defaults for eggert.
79228         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
79229         Match "This program" as well as "The program".  This is needed
79230         for gettext.
79231
79232 2003-07-14  Jim Meyering  <jim@meyering.net>
79233
79234         Don't emit diagnostics.  Let callers do that.
79235         * lib/save-cwd.c: Don't include "error.h".
79236         (save_cwd): Don't call error.  Ensure that errno is valid
79237         when returning nonzero.
79238
79239         * lib/save-cwd.h (restore_cwd): Update prototype.
79240         * lib/save-cwd.c (restore_cwd): Remove two parameters.
79241         Simplify.  Don't call error upon failure.  Let callers do that.
79242         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
79243         when auditing is enabled.  But don't bother updating the #if.
79244
79245 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
79246
79247         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
79248         it breaks C++ compilation.
79249         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
79250
79251 2003-07-10  Simon Josefsson  <jas@extundo.com>
79252
79253         * modules/strchrnul (Makefile.am): Add strchrnul.h.
79254
79255 2003-07-10  Jim Meyering  <jim@meyering.net>
79256
79257         * m4/clock_time.m4: Remove trailing blank.
79258         * m4/intmax_t.m4: Likewise.
79259
79260 2003-07-10  Jim Meyering  <jim@meyering.net>
79261
79262         * lib/vasnprintf.c: Remove trailing blanks.
79263         Make cpp indentation consistent.
79264
79265 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79266
79267         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
79268         posixver.c, strftime.c, strnlen.c, strverscmp.c:
79269         Switch from LGPL to GPL.
79270
79271 2003-07-09  Paul Eggert  <eggert@twinsun.com>
79272
79273         * config/srclist.txt: Sort sublists.  Add
79274         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
79275         that differ from gnulib for one reason or another; we'd like this list
79276         to be smaller but for now let's document what we have.
79277
79278 2003-07-08  Paul Eggert  <eggert@twinsun.com>
79279
79280         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
79281         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
79282         and sweeter "eval x=$x".
79283         * config/srclist.txt: Get lib/argp* from glibc.
79284
79285 2003-07-07  Paul Eggert  <eggert@twinsun.com>
79286
79287         * lib/mktime.c: Fix some boundary cases and remove need for floating
79288         point.
79289
79290         Issue a compile-time diagnostic if time_t is floating point, or if
79291         two's complement arithmetic is not in effect, or if arithmetic
79292         right shift does not propagate the sign.  These assumptions were
79293         all in the original code but they weren't checked.
79294
79295         (TIME_T_MIDPOINT, verify): New macros.
79296         (__isleap): Remove; it has integer overflow problems.
79297         (leapyear): New function, without those problems.
79298         (ydhms_tm_diff): Remove; splitting into two parts.
79299         (ydhms_diff): New function, containing the arithmetic part of
79300         the old ydhms_tm_diff function.  Issue a compile-time
79301         diagnostic if we are not using C99 integer division.
79302         Avoid casts when possible.
79303         (guess_time_tm): New function, containing the checking part of
79304         the old ydhms_tm_diff function.  Return the new value, rather than
79305         the difference between it and the old.  Accept a new argument T
79306         so that *T specifies the old value.  Check for overflow in the result.
79307
79308         (__mktime_internal): Use a time_t offset, not a long int offset.
79309         This undoes the 2003-06-04 change, which is no longer needed now
79310         that we have better overflow checking.
79311         (localtime_offset): Likewise.
79312
79313         (__mktime_internal): Avoid harmful overflow on hosts where time_t
79314         and long are 64-bit but int is only 32-bit.
79315         (ydhms_diff): Use long int to store year1 and yday1.
79316         Issue a compile-time diagnostic if long int is not wide enough.
79317
79318         (__mktime_internal): Use long int to store adjusted year and yday.
79319         Use plain C rather than preprocessor commands, if that doesn't
79320         affect efficiency.
79321         Check for overflow (and try to repair) after each probe
79322         rather than checking only at the very end.  This avoids some bugs
79323         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
79324         does not equal GMT offset at maximum time).
79325         Use integer to check for overflow rather than floating point; this
79326         is more portable to non-IEEE hosts, and is a tad faster.
79327         When we detect that we are oscillating between two values,
79328         don't check whether tm_isdst has the requested value, since
79329         we already know the answer.  When tm_isdst has the wrong value,
79330         use a different heuristic to find the right one, based on the
79331         extreme values actually observed in practice in tz2003a,
79332         rather than the (overly optimistic) "previous 3 calendar quarters".
79333
79334         (not_equal_tm, print_tm, check_result): Use "const T" rather than
79335         "T const" to accommodate glibc style.
79336         (check_result): Use less-confusing report format.  "long" -> "long int.
79337         (main): Likewise.
79338         Don't loop if the iteration overflows time_t.
79339         Allow a negative step in the iteration.
79340
79341 2003-07-06  Karl Berry  <karl@gnu.org>
79342
79343         * config/depcomp: update from automake.
79344         * config/config.sub: update from prep.
79345
79346 2003-07-03  Karl Berry  <karl@gnu.org>
79347
79348         * config/config.guess: update from prep.
79349
79350 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79351
79352         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
79353         xreadlink.c now includes it unconditionally.
79354
79355 2003-07-01  Paul Eggert  <eggert@twinsun.com>
79356
79357         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
79358         having it depend on HAVE_SYS_TYPES_H.
79359
79360 2003-07-01  Bruno Haible  <bruno@clisp.org>
79361
79362         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
79363         <sys/types.h> should be sufficient.
79364         Reported by Paul Eggert.
79365
79366 2003-06-26  Karl Berry  <karl@gnu.org>
79367
79368         * config/depcomp: update from automake.
79369
79370 2003-06-26  Bruno Haible  <bruno@clisp.org>
79371
79372         * modules/human: Depend on module stdbool.
79373
79374 2003-06-25  Bruno Haible  <bruno@clisp.org>
79375
79376         * modules/readlink: New file.
79377         * modules/xreadlink: Depend on it.
79378         * MODULES.html.sh (func_all_modules): Add readlink.
79379
79380 2003-06-25  Bruno Haible  <bruno@clisp.org>
79381
79382         * m4/readlink.m4: New file.
79383
79384 2003-06-25  Bruno Haible  <bruno@clisp.org>
79385
79386         * lib/readlink.c: New file.
79387
79388 2003-06-22  Karl Berry  <karl@gnu.org>
79389
79390         * config/srclist.txt: update mkinstalldirs from automake.
79391         * config/mkinstalldirs: update.
79392
79393 2003-06-22  Bruno Haible  <bruno@clisp.org>
79394
79395         Portability to mingw32.
79396         * m4/ssize_t.m4: New file, from GNU gettext.
79397         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
79398         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
79399
79400 2003-06-22  Bruno Haible  <bruno@clisp.org>
79401
79402         * modules/safe-read: Add m4/ssize_t.m4.
79403         * modules/xreadlink: Add m4/ssize_t.m4.
79404
79405 2003-06-20  Bruno Haible  <bruno@clisp.org>
79406
79407         Assume C89, so PARAMS isn't needed.
79408         * lib/unicodeio.h (PARAMS): Remove.
79409         * lib/unicodeio.c: Don't use PARAMS.
79410
79411 2003-06-18  Karl Berry  <karl@gnu.org>
79412
79413         * config/config.{guess,sub}: update from prep.
79414
79415 2003-06-18  Jim Meyering  <jim@meyering.net>
79416
79417         Merge changes from coreutils.
79418         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
79419         Remove explicit declarations of xmalloc and realloc.
79420         Include xalloc.h.
79421         (read_utmp): Remove anachronistic cast of xmalloc.
79422
79423 2003-06-17  Paul Eggert  <eggert@twinsun.com>
79424
79425         Assume C89, so PARAMS isn't needed.
79426         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
79427         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
79428         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
79429         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
79430         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
79431         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
79432         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
79433         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
79434         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
79435         lib/xstrtod.h, lib/xstrtol.h: Likewise.
79436         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
79437         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
79438         no longer needed. Anyway, config.h should always be included before any
79439         other file.
79440
79441 2003-06-11  Simon Josefsson  <jas@extundo.com>
79442
79443         * modules/sysexits: New file.
79444         * MODULES.html.sh (func_all_modules): Add sysexits.
79445
79446 2003-06-11  Simon Josefsson  <jas@extundo.com>
79447
79448         * lib/sysexit_.h: New file.
79449
79450 2003-06-11  Derek Price  <derek@ximbiot.com>
79451
79452         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
79453         necessary.
79454
79455 2003-06-11  Bruno Haible  <bruno@clisp.org>
79456
79457         * m4/sysexits.m4: New file.
79458
79459 2003-06-10  Simon Josefsson  <jas@extundo.com>
79460
79461         * lib/argp.h: New file, from glibc.
79462         * lib/argp-ba.c: New file, from glibc.
79463         * lib/argp-eexst.c: New file, from glibc.
79464         * lib/argp-fmtstream.c: New file, from glibc.
79465         * lib/argp-fmtstream.h: New file, from glibc.
79466         * lib/argp-fs-xinl.c: New file, from glibc.
79467         * lib/argp-help.c: New file, from glibc.
79468         * lib/argp-namefrob.h: New file, from glibc.
79469         * lib/argp-parse.c: New file, from glibc.
79470         * lib/argp-pv.c: New file, from glibc.
79471         * lib/argp-pvh.c: New file, from glibc.
79472         * lib/argp-xinl.c: New file, from glibc.
79473
79474 2003-06-10  Simon Josefsson  <jas@extundo.com>
79475
79476         * modules/strchrnul: New file.
79477
79478 2003-06-10  Simon Josefsson  <jas@extundo.com>
79479
79480         * modules/argp: New file.
79481
79482 2003-06-10  Simon Josefsson  <jas@extundo.com>
79483
79484         * m4/strchrnul.m4: New file.
79485
79486 2003-06-10  Simon Josefsson  <jas@extundo.com>
79487
79488         * lib/strchrnul.h: New file.
79489         * lib/strchrnul.c: New file.
79490
79491 2003-06-10  Bruno Haible  <bruno@clisp.org>
79492
79493         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
79494
79495 2003-06-07  Karl Berry  <karl@gnu.org>
79496
79497         * config/config.{guess,sub}: update from prep.
79498
79499 2003-06-07  Jim Meyering  <jim@meyering.net>
79500
79501         * modules/strtod: Use $(...) notation, not @...@ for
79502         AC_REPLACE'd variables.
79503         * modules/localcharset: Likewise.
79504
79505 2003-06-07  Jim Meyering  <jim@meyering.net>
79506
79507         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
79508         in place of my name in the copyright comment.
79509         Remove definition and uses of __P.
79510
79511         From coreutils.
79512         * lib/stat.c: Don't declare xmalloc explicitly.
79513         Instead, include "xalloc.h".
79514         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
79515         xrealloc, and xcalloc return values.
79516         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
79517         Improve comment.
79518         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
79519
79520 2003-06-07  Bruno Haible  <bruno@clisp.org>
79521
79522         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
79523         avoid AC_CONFIG_LINKS.
79524         * modules/fnmatch (Makefile.am): Use explicit creation rule for
79525         fnmatch.h, to avoid AC_CONFIG_LINKS.
79526         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
79527
79528 2003-06-07  Bruno Haible  <bruno@clisp.org>
79529
79530         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
79531         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
79532         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79533         directory.
79534         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
79535         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
79536         directory.
79537
79538 2003-06-06  Jim Meyering  <jim@meyering.net>
79539
79540         Merge from coreutils.
79541         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
79542         Consolidate declarations and initializations of *_base* locals.
79543
79544         Merge from coreutils.
79545         This avoids a core dump on systems without GNU putenv,
79546         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
79547         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
79548         (unsetenv): New static function, from GNU libc.
79549         (rpl_putenv): Use it.
79550
79551         * lib/modechange.c: Remove trailing blanks.
79552
79553         Merge from coreutils.
79554         * lib/fsusage.c: Remove declaration of statfs.
79555         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
79556
79557         * lib/posixtm.c: Include <stdbool.h> unconditionally.
79558
79559 2003-06-06  Jim Meyering  <jim@meyering.net>
79560
79561         * lib/stdbool_.h: Renamed from stdbool.h.in.
79562
79563 2003-06-06  Jim Meyering  <jim@meyering.net>
79564             Bruno Haible  <bruno@clisp.org>
79565
79566         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
79567         Adjust Makefile.am snippet not to redirect directly to target.
79568         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
79569
79570 2003-06-05  Paul Eggert  <eggert@twinsun.com>
79571
79572         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
79573         mismatch, look in future quarters as well as past.  This fixes a
79574         bug when processing fall-backwards gaps immediately after a long
79575         period of daylight-saving time.
79576
79577         * lib/mktime.c: Assume freestanding C89 or better.
79578         (HAVE_LIMITS_H): Remove.  Assume it's 1.
79579         (__P): Remove; not used.
79580         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
79581         (mktime, not_equal_tm, print_tm, check_result,
79582         main): Use prototypes.  Use const * where appropriate.
79583         (main): Fix typo in testing code that uncovered by above changes.
79584         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
79585
79586 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79587
79588         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
79589         locale.h, localeconv.  This merges changes from coreutils.
79590
79591         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
79592         It can be removed after the next Autoconf is released.
79593         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
79594         needed.
79595
79596 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79597
79598         * lib/mktime.c: Fix Debian bug 177940
79599         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
79600         (localtime_offset): Now long int, not time_t, because we want it
79601         to be guaranteed to be signed.  All uses changed.
79602         (__mktime_internal): If overflow would occur when adding offset,
79603         don't add it.
79604
79605         Merge 'human' changes from coreutils.  Rewrite to support
79606         locale-specific notations like thousands separators.
79607         * lib/human.c: Simplify authorship notice.
79608         Include human.h immediately after config.h.
79609         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
79610         <limits.h>: Do not include, since human.h does.
79611         (SIZE_MAX, UINTMAX_MAX): New macros.
79612         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
79613         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
79614         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
79615         (power_letter): Renamed from suffixes.
79616         (generate_suffix_backwards): Remove.
79617         (adjust_value): Now takes int style (because of human.h changes)
79618         and long double value (for greater precision on some platforms).
79619         (group_number): New function.
79620         (human_readable): Use it.  Use integer options, not enum.
79621         Put the options before the sizes in the arg list.
79622         Support all the new options.
79623         The old human_readable function has been removed;
79624         use inttostr.h instead.
79625         (human_readable, default_block_size, humblock):
79626         Use uintmax_t, not int, for block sizes.
79627         (human_readable_inexact, block_size_types): Remove.
79628         (block_size_opts): New constant.
79629         (human_options): Renamed from human_block_size, with new signature
79630         that allows block sizes up to UINTMAX_MAX.  All callers changed.
79631         * lib/human.h: Add copyright and authorship notice.
79632         Include <limits.h> and <stdbool.h> unconditionally.
79633         (PARAMS): Remove.  All uses removed.
79634         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
79635         (enum human_inexact_style): Remove tag; now a nameless enum.
79636         (human_floor, human_ceiling, human_round_to_even): Now have
79637         values 2, 0, 1 rather than -1, 1, 0.
79638         (human_group_digits, human_suppress_point_zero, human_autoscale,
79639         human_base_1024, human_SI, human_B): New constants.
79640         (human_readable_inexact, human_block_size): Remove.
79641         (human_readable): Size args are now uintmax_t, not int.
79642         (human_options): New decl.
79643
79644         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
79645         unnecessary now that we assume C89 or better.  This change
79646         imported from coreutils.
79647
79648         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79649         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
79650         in the 2003-05-30 sync from glibc.
79651
79652         .h files should stand alone, but we shouldn't include <sys/types.h>
79653         if we can get away with just <stddef.h>.
79654
79655         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
79656         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
79657         rather than <sys/types.h>, as we merely need size_t.
79658         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
79659         to get size_t.
79660         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
79661         Include <stdio.h>, to get FILE.
79662         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
79663         memcasecmp.h has included <stddef.h> and all we need is size_t.
79664         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
79665         our interface, instead of including <sys/types.h>
79666
79667 2003-06-04  Paul Eggert  <eggert@twinsun.com>
79668
79669         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
79670         now, as glibc mktime is buggy on non-glibc systems.
79671
79672 2003-06-03  Karl Berry  <karl@gnu.org>
79673
79674         * config/config.sub: update from prep.
79675
79676 2003-06-02  Paul Eggert  <eggert@twinsun.com>
79677
79678         [from coreutils]
79679         Fix some minor time-related bugs with POSIX time arguments.
79680         Some valid time stamps were being rejected (notably -1, and
79681         time stamps before 1900 on 64-bit hosts).  And some invalid
79682         time stamps were being accepted, e.g. September 31.
79683
79684         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
79685         that we can return (time_t) -1 successfully.
79686         * lib/posixtm.c: Likewise.
79687         [HAVE_STDBOOL_H]: Include <stdbool.h>.
79688         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
79689         (t): Remove static var.
79690         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
79691         of static var.  All uses changed.
79692         (year): Do not reject years before 1900; they can occur with
79693         64-bit time_t.
79694         (posix_time_parse): Do not check for out-of-range components;
79695         that is now the caller's responsibility, since our checks were
79696         only approximations.
79697         (posixtime): Use mktime to check for out-of-range components,
79698         since it knows them exactly.
79699         If mktime returns (time_t) -1, check whether an error actually occurred
79700         by invoking localtime on -1.
79701         (main) [TEST_POSIXTIME]: Check for input data errors, and report
79702         posixtime failures better.
79703         Improve the test data (in comments only).
79704
79705 2003-06-02  Karl Berry  <karl@gnu.org>
79706
79707         * config/mkinstalldirs (version): new variable.
79708         (--version): new option.
79709         (usage): improve message.
79710
79711 2003-05-30  Karl Berry  <karl@gnu.org>
79712
79713         * lib/mktime.c: update from libc.
79714
79715 2003-05-30  Bruno Haible  <bruno@clisp.org>
79716
79717         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
79718         * config/config.rpath: Upgrade to gettext-0.12.1.
79719
79720 2003-05-30  Bruno Haible  <bruno@clisp.org>
79721
79722         * m4/gettext.m4: Upgrade to gettext-0.12.1.
79723         * m4/nls.m4: New file, from gettext-0.12.1.
79724         * m4/po.m4: New file, from gettext-0.12.1.
79725         * m4/progtest.m4: Upgrade to gettext-0.12.1.
79726
79727 2003-05-30  Bruno Haible  <bruno@clisp.org>
79728
79729         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
79730         * lib/localcharset.h: Likewise.
79731         * lib/localcharset.c: Likewise.
79732
79733 2003-05-29  Karl Berry  <karl@gnu.org>
79734
79735         * config/config.rpath: update from gettext.
79736
79737 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79738
79739         Assume the headers required for C89 freestanding compilers.
79740         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
79741         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
79742         * m4/human.m4 (gl_HUMAN): Likewise.
79743         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
79744         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
79745         * m4/userspec.m4 (gl_USERSPEC): Likewise.
79746         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
79747         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79748         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
79749
79750 2003-05-28  Paul Eggert  <eggert@twinsun.com>
79751
79752         Assume the headers required for C89 freestanding compilers.
79753         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
79754         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
79755         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
79756         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
79757         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
79758         define, since <limits.h> is guaranteed to do that.
79759         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
79760         * lib/exclude.c: Include <stdbool.h> unconditionally.
79761         * lib/tempname.c: Include <stddef.h> unconditionally.
79762         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
79763         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
79764         <stddef.h> does that.
79765         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
79766         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
79767         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
79768         needed.
79769         * lib/xstrtol.c: Likewise.
79770         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
79771         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
79772
79773         * lib/addext.c (addext): Use assignment rather than cast, to avoid
79774         warnings on some platforms.
79775
79776         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
79777         arbitrarily.
79778
79779 2003-05-26  Jim Meyering  <jim@meyering.net>
79780
79781         Merge in a change from coreutils:
79782         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
79783         that is guaranteed to be `no'.  Use `no_such_member' to indicate
79784         that condition, rather than `-1' which is slightly misleading.
79785         Change the name of the cache variable to have the gl_ prefix.
79786         Prompted by a patch from Richard Dawe for DJGPP.
79787
79788 2003-05-24  Karl Berry  <karl@gnu.org>
79789
79790         * config/config.guess: update from prep.
79791
79792 2003-05-22  Karl Berry  <karl@gnu.org>
79793
79794         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
79795
79796 2003-05-20  Karl Berry  <karl@gnu.org>
79797
79798         * config/config.guess: update from prep.
79799
79800 2003-05-18  Karl Berry  <karl@gnu.org>
79801
79802         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
79803         might actually be set by the user.
79804
79805         * config/depcomp, install-sh, mdate-sh: update from automake.
79806
79807 2003-05-17  Bruno Haible  <bruno@clisp.org>
79808
79809         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
79810         invalid expansion for AC_EGREP_CPP.
79811         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
79812         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
79813         Suggested by Akim Demaille <akim@epita.fr> in
79814         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
79815
79816 2003-05-12  Jim Meyering  <jim@meyering.net>
79817
79818         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
79819         the space-padded-by-default conversion specifiers, %e, %k, %l.
79820
79821 2003-05-12  Bruno Haible  <bruno@clisp.org>
79822
79823         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
79824         the string is longer than 4 KB.
79825
79826 2003-05-11  Karl Berry  <karl@gnu.org>
79827
79828         * config/config.{guess,sub}: update from prep.
79829
79830 2003-05-09  Bruno Haible  <bruno@clisp.org>
79831
79832         * modules/error: Add m4/strerror_r.m4 to file list.
79833
79834 2003-05-03  Bruno Haible  <bruno@clisp.org>
79835
79836         Upgrade to Unicode-4.0.
79837         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
79838         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
79839         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
79840         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
79841         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
79842         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
79843         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
79844         Change width of U+E0100..U+E01EF from 1 to 0.
79845
79846 2003-04-25  Jim Meyering  <jim@meyering.net>
79847
79848         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
79849         of type size_t, not int.
79850
79851 2003-04-25  Bruno Haible  <bruno@clisp.org>
79852
79853         * lib/copy-file.c: Include <stddef.h>, for size_t.
79854
79855 2003-04-21  Paul Eggert  <eggert@twinsun.com>
79856
79857         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
79858         code which expansion is under static control.  Patch imported from
79859         Akim Demaille's patch to Bison; see
79860         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
79861
79862 2003-04-14  Bruno Haible  <bruno@clisp.org>
79863
79864         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
79865
79866 2003-04-11  Jim Meyering  <jim@meyering.net>
79867
79868         Merge changes from Coreutils.
79869
79870         2003-03-22  Jim Meyering  <jim@meyering.net>
79871
79872         * lib/strftime.c (widen): Cast alloca return value to proper type.
79873
79874         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
79875
79876         From GNU libc.
79877         * lib/strftime.c (my_strftime): Handle very large width
79878         specifications for numeric values correctly.  Improve checks for
79879         overflow.
79880
79881         2003-01-19  Jim Meyering  <jim@meyering.net>
79882
79883         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
79884         definitions.
79885         (nl_get_alt_digit) [! defined my_strftime]: Define.
79886         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
79887         _nl_get_alt_digit and _nl_get_walt_digit.
79888
79889         * lib/strftime.c (my_strftime): Merge in locale-related changes from
79890         libc. These changes have no effect outside of _LIBC.
79891
79892 2003-04-10  Bruno Haible  <bruno@clisp.org>
79893
79894         * modules/findprog: New file.
79895         * MODULES.html.sh (func_all_modules): Add it.
79896
79897 2003-04-10  Bruno Haible  <bruno@clisp.org>
79898
79899         * m4/findprog.m4: New file.
79900         * m4/eaccess.m4: New file.
79901
79902 2003-04-10  Bruno Haible  <bruno@clisp.org>
79903
79904         * lib/findprog.h: New file, from GNU gettext.
79905         * lib/findprog.c: New file, from GNU gettext.
79906
79907 2003-04-05  Jim Meyering  <jim@meyering.net>
79908
79909         Merge changes from Coreutils.
79910
79911         * lib/exclude.h (PARAMS): Remove definition and uses.
79912         * lib/exclude.c: Remove uses of `PARAMS'.
79913
79914         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
79915         Add test-cases for DOS filenames. Declare program_name.
79916         (main): Set up program_name.  Patch by Rich Dawe.
79917
79918         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
79919         error from mntctl.
79920         Use mntctl's return value to drive the entry-processing loop, since
79921         we can't rely on the value of the vmt_length member in the last
79922         entry.  On some systems doing so could result in exhausting
79923         virtual memory.  Based in part on a patch from Mike Jetzer.
79924
79925 2003-04-04  Bruno Haible  <bruno@clisp.org>
79926
79927         * modules/linebreak: New file.
79928         * MODULES.html.sh (func_all_modules): Add it.
79929
79930 2003-04-04  Bruno Haible  <bruno@clisp.org>
79931
79932         * m4/linebreak.m4: New file.
79933
79934 2003-04-04  Bruno Haible  <bruno@clisp.org>
79935
79936         * lib/linebreak.h: New file, from GNU gettext.
79937         * lib/linebreak.c: New file, from GNU gettext with slight
79938         modifications.
79939         * lib/lbrkprop.h: New file, from GNU gettext.
79940
79941 2003-04-03  Bruno Haible  <bruno@clisp.org>
79942
79943         * modules/utf8-ucs4: New file.
79944         * modules/utf16-ucs4: New file.
79945         * modules/ucs4-utf8: New file.
79946         * modules/ucs4-utf16: New file.
79947         * MODULES.html.sh (func_all_modules): Add them.
79948
79949 2003-04-03  Bruno Haible  <bruno@clisp.org>
79950
79951         * m4/utf-ucs4.m4: New file.
79952         * m4/ucs4-utf.m4: New file.
79953
79954 2003-04-03  Bruno Haible  <bruno@clisp.org>
79955
79956         * lib/utf8-ucs4.h: New file, from GNU gettext.
79957         * lib/utf16-ucs4.h: New file, from GNU gettext.
79958         * lib/ucs4-utf8.h: New file, from GNU gettext.
79959         * lib/ucs4-utf16.h: New file, from GNU gettext.
79960
79961 2003-04-02  Bruno Haible  <bruno@clisp.org>
79962
79963         * modules/binary-io: New file.
79964         * MODULES.html.sh (func_all_modules): Add it.
79965
79966 2003-04-02  Bruno Haible  <bruno@clisp.org>
79967
79968         * lib/binary-io.h: New file, from GNU gettext.
79969
79970 2003-04-01  Bruno Haible  <bruno@clisp.org>
79971
79972         * modules/pathname: New file.
79973         * MODULES.html.sh (func_all_modules): Add it.
79974
79975 2003-04-01  Bruno Haible  <bruno@clisp.org>
79976
79977         * lib/pathname.h: New file, from GNU gettext.
79978         * lib/concatpath.c: New file, from GNU gettext.
79979
79980 2003-03-30  Bruno Haible  <bruno@clisp.org>
79981
79982         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
79983
79984 2003-03-30  Bruno Haible  <bruno@clisp.org>
79985
79986         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
79987         function chown() doesn't exist.
79988
79989 2003-03-28  Bruno Haible  <bruno@clisp.org>
79990
79991         * modules/copy-file: New file.
79992         * MODULES.html.sh (func_all_modules): Add it.
79993
79994 2003-03-28  Bruno Haible  <bruno@clisp.org>
79995
79996         * m4/copy-file.m4: New file.
79997
79998 2003-03-28  Bruno Haible  <bruno@clisp.org>
79999
80000         * lib/copy-file.h: New file, from GNU gettext.
80001         * lib/copy-file.c: New file, from GNU gettext.
80002
80003 2003-03-18  Jim Meyering  <jim@meyering.net>
80004
80005         * lib/quote.c (quote_n): Fix typo in comment.
80006
80007 2003-03-18  Bruno Haible  <bruno@clisp.org>
80008
80009         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
80010         checking.
80011         * m4/onceonly_2_57.m4: Likewise.
80012
80013 2003-03-17  Bruno Haible  <bruno@clisp.org>
80014
80015         * m4/onceonly.m4: Require autoconf 2.54 or newer.
80016         (m4_quote): Remove macro.
80017         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
80018
80019 2003-03-14  Jim Meyering  <jim@meyering.net>
80020
80021         Merge changes from Coreutils.
80022         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
80023         to be const, in order to avoid warnings.
80024         (obstack_room): Likewise.
80025         (obstack_empty_p): Likewise.
80026
80027 2003-03-14  Bruno Haible  <bruno@clisp.org>
80028
80029         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
80030         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
80031
80032 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80033
80034         Merge changes from Bison.
80035         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
80036         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
80037         when compiling Bison 1.875's `bitset bset = obstack_alloc
80038         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
80039         * lib/hash.c: Include <stdbool.h> unconditionally.
80040
80041 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80042
80043         * m4/onceonly.m4 (m4_quote): New macro.
80044         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
80045         Quote AC_FOREACH variable-expansions properly.
80046
80047 2003-03-13  Paul Eggert  <eggert@twinsun.com>
80048
80049         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
80050
80051 2003-03-09  Paul Eggert  <eggert@twinsun.com>
80052
80053         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
80054         Reported by Bruce Becker; see:
80055         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
80056
80057 2003-03-03  Paul Eggert  <eggert@twinsun.com>
80058             Bruno Haible  <bruno@clisp.org>
80059
80060         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
80061         Reported by John Hughes, see
80062         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
80063
80064 2003-02-20  Bruno Haible  <bruno@clisp.org>
80065
80066         * MODULES.html.sh (func_all_modules): Add poll.
80067
80068 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80069
80070         * modules/poll: New file.
80071
80072 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80073
80074         * lib/poll_.h: New file.
80075         * lib/poll.c: New file.
80076
80077 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
80078
80079         * m4/poll.m4: New file.
80080
80081 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80082
80083         * modules/mathl: New file.
80084
80085 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80086
80087         * lib/mathl.h: New file.
80088         * lib/acosl.c: New file.
80089         * lib/asinl.c: New file.
80090         * lib/atanl.c: New file.
80091         * lib/ceill.c: New file.
80092         * lib/cosl.c: New file.
80093         * lib/expl.c: New file.
80094         * lib/floorl.c: New file.
80095         * lib/frexpl.c: New file.
80096         * lib/ldexpl.c: New file.
80097         * lib/logl.c: New file.
80098         * lib/sincosl.c: New file.
80099         * lib/sinl.c: New file.
80100         * lib/sqrtl.c: New file.
80101         * lib/tanl.c: New file.
80102         * lib/trigl.c: New file.
80103         * lib/trigl.h: New file.
80104
80105 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
80106
80107         * m4/mathl.m4: New file.
80108
80109 2003-02-18  Bruno Haible  <bruno@clisp.org>
80110
80111         * MODULES.html.sh (func_all_modules): Add mathl.
80112
80113 2003-02-17  Bruno Haible  <bruno@clisp.org>
80114
80115         * modules/mkdtemp: New module.
80116         * MODULES.html.sh (func_all_modules): Add it.
80117
80118 2003-02-17  Bruno Haible  <bruno@clisp.org>
80119
80120         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
80121
80122 2003-02-17  Bruno Haible  <bruno@clisp.org>
80123
80124         * lib/mkdtemp.h: New file, from GNU gettext.
80125         * lib/mkdtemp.c: New file, from GNU gettext.
80126
80127 2003-02-02  Jim Meyering  <jim@meyering.net>
80128
80129         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
80130         e.g. glibc-2.2.93.
80131
80132 2003-01-31  Bruno Haible  <bruno@clisp.org>
80133
80134         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
80135         'rpl_rename'.
80136         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
80137         'rpl_strnlen'.
80138         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
80139         'rpl_strtod'.
80140         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
80141         'rpl_utime'.
80142
80143 2003-01-31  Bruno Haible  <bruno@clisp.org>
80144
80145         * lib/rename.c: #undef rename before defining rpl_rename.
80146         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
80147
80148 2003-01-30  Bruno Haible  <bruno@clisp.org>
80149
80150         * modules/vasnprintf, modules/vasprintf: New modules.
80151         * MODULES.html.sh (func_all_modules): Add them.
80152
80153 2003-01-30  Bruno Haible  <bruno@clisp.org>
80154
80155         * m4/signed.m4: New file, from GNU gettext.
80156         * m4/longdouble.m4: New file, from GNU gettext.
80157         * m4/wchar_t.m4: New file, from GNU gettext.
80158         * m4/wint_t.m4: New file, from GNU gettext.
80159         * m4/vasnprintf.m4: New file.
80160         * m4/vasprintf.m4: New file.
80161
80162 2003-01-30  Bruno Haible  <bruno@clisp.org>
80163
80164         * lib/printf-args.h: New file, from GNU gettext.
80165         * lib/printf-args.c: New file, from GNU gettext.
80166         * lib/printf-parse.h: New file, from GNU gettext.
80167         * lib/printf-parse.c: New file, from GNU gettext.
80168         * lib/vasnprintf.h: New file, from GNU gettext.
80169         * lib/vasnprintf.c: New file, from GNU gettext.
80170         * lib/asnprintf.c: New file, from GNU gettext.
80171         * lib/vasprintf.h: New file, from GNU gettext with modifications.
80172         * lib/vasprintf.c: New file, from GNU gettext.
80173         * lib/asprintf.c: New file, from GNU gettext.
80174
80175 2003-01-29  Bruno Haible  <bruno@clisp.org>
80176
80177         * modules/stpncpy: New module.
80178         * MODULES.html.sh (func_all_modules): Add it.
80179
80180 2003-01-29  Bruno Haible  <bruno@clisp.org>
80181
80182         * m4/stpncpy.m4: New file.
80183
80184 2003-01-29  Bruno Haible  <bruno@clisp.org>
80185
80186         * lib/stpncpy.h: New file, from GNU gettext with modifications.
80187         * lib/stpncpy.c: New file, from GNU gettext with modifications.
80188
80189 2003-01-28  Bruno Haible  <bruno@clisp.org>
80190
80191         * modules/c-ctype: New module.
80192         * MODULES.html.sh (func_all_modules): Add it.
80193
80194 2003-01-28  Bruno Haible  <bruno@clisp.org>
80195
80196         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
80197         Paul Eggert.
80198         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
80199         Paul Eggert.
80200
80201 2003-01-27  Bruno Haible  <bruno@clisp.org>
80202
80203         * modules/xsetenv: New module.
80204         * MODULES.html.sh (func_all_modules): Add it.
80205
80206 2003-01-27  Bruno Haible  <bruno@clisp.org>
80207
80208         * lib/xsetenv.h: New file, from GNU gettext.
80209         * lib/xsetenv.c: New file, from GNU gettext.
80210
80211 2003-01-23  Jim Meyering  <jim@meyering.net>
80212
80213         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
80214         from working on systems without dirfd (at least Irix and OSF1/Tru64).
80215
80216 2003-01-23  Bruno Haible  <bruno@clisp.org>
80217
80218         * modules/minmax: New module.
80219         * MODULES.html.sh (func_all_modules): Add it.
80220
80221 2003-01-23  Bruno Haible  <bruno@clisp.org>
80222
80223         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
80224         Eggert.
80225
80226 2003-01-22  Bruno Haible  <bruno@clisp.org>
80227
80228         * modules/exit: New module.
80229         * MODULES.html.sh (func_all_modules): Add it.
80230
80231 2003-01-22  Bruno Haible  <bruno@clisp.org>
80232
80233         * lib/exit.h: New file, from GNU gettext.
80234
80235 2003-01-19  Bruno Haible  <bruno@clisp.org>
80236
80237         * gnulib-tool: Recognize option --extract-maintainer.
80238         (func_get_maintainer): New function.
80239         * modules/*: Add Maintainer entry.
80240
80241 2003-01-16  Jim Meyering  <jim@meyering.net>
80242
80243         * m4/regex.m4: The `regex' struct is both input and output.
80244         Initialize it before each use.  Patch by Tim Waugh.
80245
80246 2003-01-16  Bruno Haible  <bruno@clisp.org>
80247
80248         * MODULES.html.sh: Add a table of contents. Add the module name as
80249         leftmost column. Add hyperlinks.
80250
80251 2003-01-15  Bruno Haible  <bruno@clisp.org>
80252
80253         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
80254
80255 2003-01-15  Bruno Haible  <bruno@clisp.org>
80256
80257         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
80258         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
80259         suffix.
80260
80261 2003-01-15  Bruno Haible  <bruno@clisp.org>
80262
80263         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
80264
80265 2003-01-15  Bruno Haible  <bruno@clisp.org>
80266
80267         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
80268         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
80269
80270 2003-01-14  Jim Meyering  <jim@meyering.net>
80271
80272         * lib/same.c (same_name): Tweak a comment.
80273
80274 2003-01-14  Bruno Haible  <bruno@clisp.org>
80275
80276         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
80277         when a string comparison is sufficient.
80278
80279 2003-01-14  Bruno Haible  <bruno@clisp.org>
80280
80281         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
80282         'unsigned int'.
80283
80284 2003-01-14  Bruno Haible  <bruno@clisp.org>
80285
80286         * lib/hash-pjw.c: Add comment about low quality of this function.
80287
80288 2003-01-13  Bruno Haible  <bruno@clisp.org>
80289
80290         * modules/stpcpy: Distribute lib/stpcpy.h.
80291         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
80292
80293 2003-01-13  Bruno Haible  <bruno@clisp.org>
80294
80295         * modules/*: Add a description.
80296         * modules/strpbrk: Fix Makefile.am snippet.
80297         * modules/strtoimax: Fix dependencies.
80298         * modules/strtoumax: Likewise.
80299
80300 2003-01-13  Bruno Haible  <bruno@clisp.org>
80301
80302         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
80303         * modules/alloca (Makefile.am): All object files depend on alloca.h.
80304         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
80305
80306 2003-01-13  Bruno Haible  <bruno@clisp.org>
80307
80308         * gnulib-tool (func_create_testdir): Store config/* files in the main
80309         directory.
80310         * config.rpath: Move to ...
80311         * config/config.rpath: ... here.
80312         * modules/gettext: Contains config/config.rpath, not config.rpath.
80313         * modules/iconv: Likewise.
80314
80315 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80316
80317         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80318         to avoid collisions with libcurses and libreadline.
80319
80320         * m4/getstr.m4: Remove.
80321         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
80322
80323 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80324
80325         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80326         to avoid collisions with libcurses and libreadline.
80327
80328         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
80329         * lib/getstr.h, getstr.c: Remove.
80330         * lib/getline.c: Include "getline.h", to check interface.
80331         Move body of old getstr.c here: this defines MIN_CHUNK and
80332         declares getdelim2, which is renamed from getstr.
80333         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
80334
80335         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
80336         All uses changed.
80337         * lib/linebuffer.h: Likewise.
80338         (readline): Remove backward-compatibility macro.
80339
80340 2003-01-12  Paul Eggert  <eggert@twinsun.com>
80341
80342         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
80343         to avoid collisions with libcurses and libreadline.
80344         * getstr: Remove.
80345         * MODULES.html.sh: Remove getstr.
80346         * modules/getline: Depend on unlocked-io, not getstr.
80347
80348 2003-01-12  Jim Meyering  <jim@meyering.net>
80349
80350         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
80351
80352 2003-01-10  Bruno Haible  <bruno@clisp.org>
80353
80354         * modules/alloca: Change Makefile.am requirements. Simplify Include
80355         requirements. Add lib/alloca_.h to file list.
80356
80357 2003-01-10  Bruno Haible  <bruno@clisp.org>
80358
80359         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
80360
80361 2003-01-10  Bruno Haible  <bruno@clisp.org>
80362
80363         * lib/alloca_.h: New file.
80364         * lib/getdate.y: Unconditionally include alloca.h.
80365         * lib/makepath.c: Likewise.
80366         * lib/setenv.c: Likewise.
80367         * lib/userspec.c: Likewise.
80368
80369 2003-01-09  Karl Berry  <karl@gnu.org>
80370
80371         * MODULES.html.sh: include `dirname $0` in PATH, to find
80372         gnulib-tool.
80373
80374 2003-01-09  Bruno Haible  <bruno@clisp.org>
80375
80376         * modules/stdbool: Change configure.ac, Makefile.am requirements.
80377         Simplify Include requirements. Add lib/stdbool.h.in to file list.
80378
80379 2003-01-09  Bruno Haible  <bruno@clisp.org>
80380
80381         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
80382
80383 2003-01-09  Bruno Haible  <bruno@clisp.org>
80384
80385         * lib/stdbool.h.in: New file.
80386
80387 2003-01-09  Bruno Haible  <bruno@clisp.org>
80388
80389         * gnulib-tool (func_all_modules): Ignore files ending in ~.
80390         * MODULES.html.sh: Likewise.
80391
80392 2003-01-08  Jim Meyering  <jim@meyering.net>
80393
80394         * lib/full-write.c: Undefine and define-away `const' after inclusion
80395         of errno.h, not before.  Suggestion from Bruno Haible.
80396
80397 2003-01-08  Bruno Haible  <bruno@clisp.org>
80398
80399         * modules/full-read: Depend on full-write.
80400
80401 2003-01-08  Bruno Haible  <bruno@clisp.org>
80402
80403         * lib/safe-read.c: Include specification header first, to ensure its
80404         selfcontainedness.
80405         * lib/full-write.c: Likewise.
80406
80407 2003-01-07  Jim Meyering  <jim@meyering.net>
80408
80409         * lib/full-write.c: Rework so that it may serve to define full_read,
80410         too.
80411         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
80412
80413 2003-01-07  Bruno Haible  <bruno@clisp.org>
80414
80415         * lib/strtoimax.c: Include <stdint.h> as an alternative to
80416         <inttypes.h>.
80417         * lib/xstrtol.h: Likewise.
80418         * lib/xstrtoimax.c: Likewise.
80419         * lib/xstrtoumax.c: Likewise.
80420         * lib/human.h: Likewise.
80421
80422         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
80423         on systems that have <inttypes.h> but not <stdint.h>.
80424
80425 2003-01-07  Bruno Haible  <bruno@clisp.org>
80426
80427         * MODULES.html.sh: Add copyright notice.
80428         (missed_files): Omit CVS directory entries.
80429         (func_module): Make it work with sed-3.02.
80430         * MODULES.txt: Remove file.
80431
80432 2003-01-06  Jim Meyering  <jim@meyering.net>
80433
80434         * lib/version-etc.c: Update year in translatable copyright string.
80435
80436 2003-01-03  Karl Berry  <karl@gnu.org>
80437
80438         * config/config.{guess,sub}: update from prep.
80439
80440 2003-01-02  Karl Berry  <karl@gnu.org>
80441
80442         * doc/COPYING.DOC: belatedly updated to 1.2.
80443
80444 2003-01-01  Karl Berry  <karl@gnu.org>
80445
80446         * gnulib-tool (func_verify_module): report module name $module in
80447         error message, not $1.
80448         * gnulib-tool (create-testdir): don't complain if destdir couldn't
80449         be created, only if it doesn't exist.
80450         * gnulib-tool (last_checkin_date): don't expand the $Date here.
80451
80452 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80453
80454         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
80455
80456 2002-12-31  Paul Eggert  <eggert@twinsun.com>
80457
80458         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
80459         memcmp if strcoll doesn't work.
80460
80461 2002-12-31  Bruno Haible  <bruno@clisp.org>
80462
80463         * lib/utime.c (utime_null): No need to call ftruncate if the file was
80464         nonempty.
80465
80466 2002-12-31  Bruno Haible  <bruno@clisp.org>
80467
80468         * lib/memcoll.c (STRCOLL): New macro.
80469         (memcoll): Use it.
80470
80471 2002-12-31  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/localcharset.h: New file.
80474         * lib/localcharset.c: Include it.
80475         * lib/unicodeio.c: Likewise.
80476
80477 2002-12-31  Bruno Haible  <bruno@clisp.org>
80478
80479         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
80480         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
80481
80482 2002-12-31  Bruno Haible  <bruno@clisp.org>
80483
80484         * lib/getline.h: Include <stddef.h>, for size_t.
80485
80486         * lib/unicodeio.h: Include <stddef.h>, for size_t.
80487         * lib/unicodeio.c: Don't include <stddef.h>.
80488
80489 2002-12-31  Bruno Haible  <bruno@clisp.org>
80490
80491         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
80492         HAVE_TM_ZONE.
80493
80494 2002-12-24  Karl Berry  <karl@gnu.org>
80495
80496         * config/config.guess: update from prep.
80497
80498 2002-12-24  Bruno Haible  <bruno@clisp.org>
80499
80500         General infrasructure.
80501         * m4/README: Rewritten.
80502         * m4/onceonly.m4: New file.
80503         * m4/onceonly_2_57.m4: New file.
80504
80505         Module atexit.
80506         * m4/atexit.m4: New file.
80507
80508         Module strtod.
80509         * m4/strtod.m4: New file.
80510
80511         Module strtol.
80512         * m4/strtol.m4: New file.
80513
80514         Module strtoul.
80515         * m4/strtoul.m4: New file.
80516
80517         Module memchr.
80518         * m4/memchr.m4: New file.
80519
80520         Module memcmp.
80521         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
80522         (jm_FUNC_MEMCMP): Invoke it.
80523
80524         Module memcpy.
80525         * m4/memcpy.m4: New file.
80526
80527         Module memmove.
80528         * m4/memmove.m4: New file.
80529
80530         Module memset.
80531         * m4/memset.m4: New file.
80532
80533         Module strcspn.
80534         * m4/strcspn.m4: New file.
80535
80536         Module strpbrk.
80537         * m4/strpbrk.m4: New file.
80538
80539         Module strstr.
80540         * m4/strstr.m4: New file.
80541
80542         Module strerror.
80543         * m4/strerror.m4: New file.
80544
80545         Module mktime.
80546         * m4/mktime.m4: Renamed from jm-mktime.m4.
80547         (gl_PREREQ_MKTIME): New macro.
80548         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
80549
80550         Module malloc.
80551         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
80552         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
80553         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
80554
80555         Module realloc.
80556         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
80557         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
80558         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
80559
80560         Module strftime.
80561         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
80562         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
80563         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
80564         gl_TM_GMTOFF.
80565         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
80566
80567         Module xalloc.
80568         * m4/xalloc.m4: New file.
80569
80570         Module alloca.
80571         * m4/alloca.m4: New file.
80572
80573         Module putenv.
80574         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
80575         (jm_FUNC_PUTENV): Invoke it.
80576
80577         Module setenv.
80578         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
80579         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
80580         when invoked twice.
80581         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
80582         gt_FUNC_SETENV.
80583
80584         Module memrchr.
80585         * m4/memrchr.m4: New file.
80586
80587         Module stpcpy.
80588         * m4/stpcpy.m4: New file.
80589
80590         Module strcase.
80591         * m4/strcase.m4: New file.
80592
80593         Module strdup.
80594         * m4/strdup.m4: New file.
80595
80596         Module strnlen.
80597         * m4/strnlen.m4: New file.
80598
80599         Module strndup.
80600         * m4/strndup.m4: New file.
80601
80602         Module xstrtod.
80603         * m4/xstrtod.m4: New file.
80604
80605         Module xstrtol.
80606         * m4/xstrtol.m4: New file.
80607
80608         Module getdate.
80609         * m4/getdate.m4: New file.
80610
80611         Module unlocked-io.
80612         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
80613         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
80614         * m4/jm-glibc-io.m4n: Remove file.
80615
80616         Module long-options.
80617         * m4/long-options.m4: New file.
80618
80619         Module md5.
80620         * m4/md5.m4: New file.
80621
80622         Module sha.
80623         * m4/sha.m4: New file.
80624
80625         Module getstr.
80626         * m4/getstr.m4: New file.
80627
80628         Module getline.
80629         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
80630         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
80631         <sys/types.h>, for size_t. Use the function name gnu_getline, not
80632         simply getline. Infoke gl_PREREQ_GETLINE.
80633
80634         Module obstack.
80635         * m4/obstack.m4: New file.
80636
80637         Module hash.
80638         * m4/hash.m4: New file.
80639
80640         Module readtokens.
80641         * m4/readtokens.m4: New file.
80642
80643         Module strverscmp.
80644         * m4/strverscmp.m4: New file.
80645
80646         Module stdbool.
80647         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
80648         OSF/1.
80649
80650         Module strtoll.
80651         * m4/strtoll.m4: New file.
80652
80653         Module strtoull.
80654         * m4/strtoull.m4: New file.
80655
80656         Module strtoimax.
80657         * m4/strtoimax.m4: New file.
80658
80659         Module strtoumax.
80660         * m4/strtoumax.m4: New file.
80661
80662         Module xstrtoimax.
80663         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
80664         jm_AC_PREREQ_XSTRTOIMAX.
80665         Moved the strtol prerequisites to strtol.m4.
80666         Moved the strtoll prerequisites to strtoll.m4.
80667         Moved the strtoimax prerequisites to strtoimax.m4.
80668
80669         Module xstrtoumax.
80670         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
80671         jm_AC_PREREQ_XSTRTOUMAX.
80672         Moved the strtoul prerequisites to strtoul.m4.
80673         Moved the strtoull prerequisites to strtoull.m4.
80674         Moved the strtoumax prerequisites to strtoumax.m4.
80675
80676         Module chown.
80677         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
80678         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
80679
80680         Module dup2.
80681         * m4/dup2.m4: New file.
80682
80683         Module ftruncate.
80684         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
80685         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
80686
80687         Module getgroups.
80688         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
80689         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
80690
80691         Module gettimeofday.
80692         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
80693         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
80694         gl_PREREQ_GETTIMEOFDAY.
80695
80696         Module mkdir.
80697         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
80698         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
80699
80700         Module mkstemp.
80701         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
80702         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
80703         jm_AC_TYPE_UINTMAX_T.
80704         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
80705
80706         Module stat.
80707         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
80708         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
80709
80710         Module lstat.
80711         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
80712         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
80713
80714         Module timespec.
80715         * m4/timespec.m4 (gl_TIMESPEC): New macro.
80716         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
80717         * m4/st_mtim.m4: Indentation.
80718
80719         Module nanosleep.
80720         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
80721         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
80722         gl_PREREQ_NANOSLEEP.
80723
80724         Module regex.
80725         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
80726         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
80727         (gl_REGEX): New macro.
80728
80729         Module rename.
80730         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
80731         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
80732
80733         Module rmdir.
80734         * m4/rmdir.m4: New file.
80735
80736         Module utime.
80737         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
80738         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
80739         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
80740
80741         Module dirname.
80742         * m4/dirname.m4: New file.
80743
80744         Module getopt.
80745         * m4/getopt.m4: New file.
80746
80747         Module unistd-safer.
80748         * m4/unistd-safer.m4: New file.
80749
80750         Module fnmatch.
80751         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
80752         declaration.
80753         (gl_PREREQ_FNMATCH_EXTRA): New macro.
80754         (gl_FUNC_FNMATCH_POSIX): New macro.
80755         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
80756         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
80757         simply fnmatch.
80758
80759         Module exclude.
80760         * m4/exclude.m4: New file.
80761
80762         Module human.
80763         * m4/human.m4: New file.
80764
80765         Module acl.
80766         * m4/acl.m4: Nop.
80767
80768         Module backupfile.
80769         * m4/backupfile.m4: New file.
80770         * m4/d-ino.m4: Indentation.
80771
80772         Module fsusage.
80773         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
80774         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
80775         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
80776
80777         Module dirfd.
80778         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
80779         requirements.
80780
80781         Module euidaccess.
80782         * m4/euidaccess.m4: New file.
80783
80784         Module file-type.
80785         * m4/file-type.m4: New file.
80786
80787         Module fileblocks.
80788         * m4/fileblocks.m4: New file.
80789
80790         Module filemode.
80791         * m4/filemode.m4: New file.
80792
80793         Module isdir.
80794         * m4/isdir.m4: New file.
80795
80796         Module lchown.
80797         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
80798         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
80799
80800         Module makepath.
80801         * m4/makepath.m4: New file.
80802
80803         Module modechange.
80804         * m4/modechange.m4: New file.
80805
80806         Module mountlist.
80807         * m4/mountlist.m4: New file.
80808         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
80809         Indentation.
80810
80811         Module path-concat.
80812         * m4/path-concat.m4: New file.
80813
80814         Module pathmax.
80815         * m4/pathmax.m4: New file.
80816
80817         Module same.
80818         * m4/same.m4: New file.
80819
80820         Module save-cwd.
80821         * m4/save-cwd.m4: New file.
80822
80823         Module savedir.
80824         * m4/savedir.m4: New file.
80825
80826         Module xgetcwd.
80827         * m4/xgetcwd.m4: New file.
80828         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
80829
80830         Module xreadlink.
80831         * m4/xreadlink.m4: New file.
80832
80833         Module safe-read.
80834         * m4/safe-read.m4: New file.
80835
80836         Module safe-write.
80837         * m4/safe-write.m4: New file.
80838
80839         Module closeout.
80840         * m4/closeout.m4: New file.
80841
80842         Module stdio-safer.
80843         * m4/stdio-safer.m4: New file.
80844
80845         Module getpass.
80846         * m4/getpass.m4: New file.
80847
80848         Module getugroups.
80849         * m4/getugroups.m4: New file.
80850
80851         Module group-member.
80852         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
80853         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
80854
80855         Module idcache.
80856         * m4/idcache.m4: New file.
80857
80858         Module userspec.
80859         * m4/userspec.m4: New file.
80860
80861         Module gettime.
80862         * m4/clock_time.m4: New file.
80863         * m4/gettime.m4: New file.
80864
80865         Module settime.
80866         * m4/settime.m4: New file.
80867
80868         Module posixtm.
80869         * m4/posixtm.m4: New file.
80870
80871         Module gethostname.
80872         * m4/gethostname.m4: New file.
80873
80874         Module canon-host.
80875         * m4/canon-host.m4: New file.
80876
80877         Module gettext.
80878         * m4/codeset.m4: New file, from gettext-0.11.5.
80879         * m4/gettext.m4: New file, from gettext-0.11.5.
80880         * m4/glibc21.m4: New file, from gettext-0.11.5.
80881         * m4/iconv.m4: New file, from gettext-0.11.5.
80882         * m4/intdiv0.m4: New file, from gettext-0.11.5.
80883         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
80884         * m4/inttypes.m4: New file, from gettext-0.11.5.
80885         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
80886         * m4/isc-posix.m4: New file, from gettext-0.11.5.
80887         * m4/lcmessage.m4: New file, from gettext-0.11.5.
80888         * m4/lib-ld.m4: New file, from gettext-0.11.5.
80889         * m4/lib-link.m4: New file, from gettext-0.11.5.
80890         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
80891         * m4/progtest.m4: New file, from gettext-0.11.5.
80892         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
80893         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
80894         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
80895
80896         Module localcharset.
80897         * m4/localcharset.m4: New file.
80898
80899         Module hard-locale.
80900         * m4/hard-locale.m4: New file.
80901
80902         Module mbswidth.
80903         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
80904         onceonly macros.
80905         * m4/mbrtowc.m4: Add comment.
80906
80907         Module memcasecmp.
80908         * m4/memcasecmp.m4: New file.
80909
80910         Module memcoll.
80911         * m4/memcoll.m4: New file.
80912
80913         Module unicodeio.
80914         * m4/unicodeio.m4: New file.
80915
80916         Module rpmatch.
80917         * m4/rpmatch.m4: New file.
80918
80919         Module yesno.
80920         * m4/yesno.m4: New file.
80921
80922         Module exitfail.
80923         * m4/exitfail.m4: New file.
80924
80925         Module c-stack.
80926         * m4/c-stack.m4 (gl_C_STACK): New macro.
80927         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
80928
80929         Module error.
80930         * m4/error.m4 (gl_ERROR): New macro.
80931         (jm_PREREQ_ERROR): Use onceonly macros.
80932
80933         Module fatal.
80934         * m4/fatal.m4: New file.
80935
80936         Module getloadavg.
80937         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
80938         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
80939
80940         Module getpagesize.
80941         * m4/getpagesize.m4: New file.
80942
80943         Module getusershell.
80944         * m4/getusershell.m4: New file.
80945
80946         Module physmem.
80947         * m4/physmem.m4: New file.
80948
80949         Module posixver.
80950         * m4/posixver.m4: New file.
80951
80952         Module quotearg.
80953         * m4/quotearg.m4: New file.
80954
80955         Module quote.
80956         * m4/quote.m4: New file.
80957
80958         Module readutmp.
80959         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
80960
80961         Module sig2str.
80962         * m4/sig2str.m4: New file.
80963
80964         Other.
80965         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
80966         ulonglong.m4.
80967         * m4/intmax_t.m4: New file.
80968         * m4/d-type.m4: Indentation.
80969         * m4/jm-macros.m4: Update.
80970         * m4/prereq.m4 (jm_PREREQ): Update.
80971         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
80972         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
80973         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
80974         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
80975         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
80976         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
80977         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
80978         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
80979         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
80980         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
80981         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
80982         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
80983         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
80984         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
80985         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
80986         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
80987         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
80988         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
80989         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
80990
80991 2002-12-24  Bruno Haible  <bruno@clisp.org>
80992
80993         * MODULES.txt: Update according to m4/ changes.
80994
80995         Module gettext.
80996         * config.rpath: New file, from gettext-0.11.5.
80997
80998         * modules/*: New module descriptions.
80999         * gnulib-tool: New file.
81000         * MODULES.html.sh: New file.
81001
81002 2002-12-21  Karl Berry  <karl@gnu.org>
81003
81004         * doc/fdl.texi: update to version 1.2.
81005
81006 2002-12-19  Karl Berry  <karl@gnu.org>
81007
81008         * config/config.guess: update from prep.
81009
81010 2002-12-18  Bruno Haible  <bruno@clisp.org>
81011
81012         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
81013         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
81014
81015 2002-12-17  Bruno Haible  <bruno@clisp.org>
81016
81017         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
81018         stdlib.h, string.h.
81019
81020 2002-12-17  Bruno Haible  <bruno@clisp.org>
81021
81022         * lib/canon-host.c (strdup): Remove unused declaration.
81023
81024         * lib/fsusage.c: Include full_read.h.
81025         (get_fs_usage): Use full_read instead of safe_read.
81026
81027         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
81028
81029 2002-12-12  Karl Berry  <karl@gnu.org>
81030
81031         * config/config.guess: update from prep.
81032
81033 2002-12-11  Bruno Haible  <bruno@clisp.org>
81034
81035         * m4/setenv.m4: New file, from gettext-0.11.5.
81036
81037 2002-12-11  Bruno Haible  <bruno@clisp.org>
81038
81039         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
81040         not unsetenv().
81041         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
81042         modifications:
81043
81044         2002-12-11  Bruno Haible  <bruno@clisp.org>
81045
81046                 * setenv.c (alloca): Fall back to malloc.
81047                 (freea): New macro.
81048                 (setenv): Use freea() to free memory allocated with alloca().
81049
81050         2002-11-13  Bruno Haible  <bruno@clisp.org>
81051
81052                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
81053                 function declarations.
81054                 * unsetenv.c (unsetenv): Likewise.
81055
81056         2002-03-04  Bruno Haible  <bruno@clisp.org>
81057
81058                 Portability to AIX 4.3.3.
81059                 * unsetenv.c: New file, extracted from setenv.c.
81060                 * setenv.c: Move the unsetenv() function to unsetenv.c.
81061
81062         2001-12-20  Bruno Haible  <bruno@clisp.org>
81063
81064                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
81065                 use malloc instead. For SunOS 4.
81066
81067         2001-12-11  Bruno Haible  <bruno@clisp.org>
81068
81069                 * setenv.c: Declare alloca.
81070                 (compar_fn_t): New typedef.
81071                 (KNOWN_VALUE, STORE_VALUE): Use it.
81072
81073         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
81074         setenv.h.
81075
81076 2002-12-10  Paul Eggert  <eggert@twinsun.com>
81077
81078         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
81079         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
81080         Choose values that are less likely to collide with system fnmatch
81081         options.
81082         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
81083         defined (e.g., a pure POSIX system).
81084         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
81085         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
81086
81087 2002-12-06  Paul Eggert  <eggert@twinsun.com>
81088
81089         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
81090         a pain in practice to deal with generated m4 files.  This change
81091         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
81092
81093         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
81094         and jm-glibc-io.m4, as they are no longer a special case.
81095         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
81096         kludge and the auto-generation stuff.  Check only whether the
81097         functions are declared, not whether they exist, since older hosts
81098         that don't declare the functions can't use the optimization anyway.
81099
81100 2002-12-06  Jim Meyering  <jim@meyering.net>
81101
81102         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
81103
81104         Merge in changes from libc's misc/error.c, in preparation
81105         for the merge of gnulib's changes back into libc.
81106
81107         * lib/error.c (_): Define only if not already defined.
81108         Move definition to follow all #include directives.
81109         Include unlocked-io.h only if !_LIBC.
81110         [_LIBC]: Include <libio/libioP.h>.
81111         [USE_IN_LIBIO]: Include <libio/iolibio.h>
81112         (fflush): Tweak definition to use INTUSE.
81113         (putc): Define.
81114
81115 2002-12-05  Paul Eggert  <eggert@twinsun.com>
81116
81117         * lib/alloca.c [defined emacs]: Include "lisp.h".
81118         (xalloc_die) [defined emacs]: New macro.
81119         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
81120         [! defined emacs]: Include <xalloc.h>.
81121         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
81122         (pointer): Typedef to POINTER_TYPE *.
81123         (malloc): Remove decl; we now always use xmalloc.
81124         (alloca): Use old-style definition, since Emacs needs this.
81125         Check for arithmetic overflow when computing combined size.
81126
81127 2002-12-04  Paul Eggert  <eggert@twinsun.com>
81128
81129         Do not generate unlocked-io.h automatically, since it's easier to
81130         maintain it by hand.
81131
81132         * lib/unlocked-io.h: New file, from GNU diffutils,
81133         but with proper copyright notice and attribution.
81134         * lib/gen-uio: Remove.
81135         * lib/Makefile.am: Add copyright notice.
81136         (libfetish_a_SOURCES): Add unlocked-io.h.
81137         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
81138         (DISTCLEANFILES, io_functions): Remove macros.
81139         (EXTRA_DIST): Remove gen_uio.
81140         (unlocked-io.h): Remove rule.
81141
81142 2002-12-04  Jim Meyering  <jim@meyering.net>
81143
81144         Reflect the fact that stat.c and lstat.c are no longer generated.
81145         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
81146         (DISTCLEANFILES): Likewise.
81147         (EXTRA_DIST): Likewise.
81148         (all_local): Don't depend on stat.c or lstat.c.
81149         (stat.c, lstat.c): Remove rules.
81150         (EXTRA_DIST): Remove xstat.in.
81151
81152         * lib/xstat.in: Remove file.  Contents moved into stat.c.
81153         * lib/stat.c: New file.  Contents mostly from xstat.in.
81154         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
81155         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
81156
81157         * lib/safe-read.c: Rework so that it may serve to define safe_write,
81158         too.
81159         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
81160
81161 2002-12-03  Jim Meyering  <jim@meyering.net>
81162
81163         * lib/safe-read.c, safe-write.c: Change variable names and comments,
81164         but not semantics, to minimize the differences between these two files.
81165         (safe_read): Change comment to mention SAFE_READ_ERROR.
81166
81167         * lib/safe-read.c (IS_EINTR): Define.
81168         (safe_read): Use IS_EINTR in place of in-function cpp directives.
81169
81170 2002-12-02  Jim Meyering  <jim@meyering.net>
81171
81172         * lib/safe-read.c (EINTR): Define.
81173         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
81174         (INT_MAX): Provide fallback.
81175         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
81176
81177         * lib/safe-read.h (SAFE_READ_ERROR): Define.
81178
81179 2002-12-02  Bruno Haible  <bruno@clisp.org>
81180
81181         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
81182         Define, taken from safe-read.c.
81183         (INT_MAX): Provide fallback.
81184         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
81185         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
81186
81187         * lib/safe-read.c (EINTR): Remove definition.
81188         (safe_read): Don't use EINTR if it is absent.
81189
81190 2002-12-01  Jim Meyering  <jim@meyering.net>
81191
81192         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
81193         zero.
81194         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
81195
81196 2002-11-27  Paul Eggert  <eggert@twinsun.com>
81197
81198         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
81199         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
81200         with `if (! (value < limit)) abort ();', for readability.
81201
81202 2002-11-26  Karl Berry  <karl@gnu.org>
81203
81204         * lib/strdup.c: copy from libc again, with jim's ok.
81205         * lib/.cppi-disable: re-add strdup.c
81206
81207 2002-11-25  Karl Berry  <karl@gnu.org>
81208
81209         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
81210         instead of "strtol.c".
81211
81212 2002-11-25  Karl Berry  <karl@gnu.org>
81213
81214         * config/install-sh: update from automake for variable quoting, $0 in
81215         error msgs, etc.
81216
81217         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
81218         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
81219         entry.
81220
81221 2002-11-25  Jim Meyering  <jim@meyering.net>
81222
81223         * lib/mktime.c: Sync from libc, now that it has the latest fix.
81224
81225 2002-11-24  Karl Berry  <karl@gnu.org>
81226
81227         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
81228         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
81229
81230 2002-11-24  Jim Meyering  <jim@meyering.net>
81231
81232         Update from coreutils:
81233
81234         * lib/mktime.c: Merge in changes from libc.
81235
81236         Avoid a link-time failure on some Linux systems.
81237         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
81238         (otherwise).
81239         (__mon_yday): Declare with the STATIC attribute.
81240         (__mktime_internal): Likewise.
81241         Based on a report from Greg Schafer.
81242
81243 2002-11-23  Jim Meyering  <jim@meyering.net>
81244
81245         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
81246         Use `unsigned', not `int', as type of index.
81247
81248         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
81249
81250         * lib/fsusage.c: Remove unneeded parentheses around operands of
81251         `defined'.
81252
81253 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81254
81255         * lib/quotearg.h: Allow multiple inclusion by surrounding with
81256         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
81257         so that we can be included first.
81258         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
81259         * lib/quotearg.c: Include quotearg.h immediately after config.h.
81260         No need to include stddef.h or sys/types.h any more.
81261         Surround local include files with "", not "<>".
81262         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
81263         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
81264         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
81265         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
81266         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
81267         (ISPRINT): Remove; no longer needed now that we assume C89.
81268
81269         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
81270         Preserve errno.
81271
81272         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
81273         quotearg_char): Use SIZE_MAX rather than
81274         (size_t) -1 when we are talking about "infinity".
81275
81276         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
81277
81278 2002-11-22  Paul Eggert  <eggert@twinsun.com>
81279
81280         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
81281         hint that one should use `if (! x) abort ();' rather than `assert
81282         (x);', and anyway it's one less thing to worry about configuring.
81283         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
81284         hash_rehash, hash_insert): Use abort rather than assert.
81285
81286 2002-11-22  Bruno Haible  <bruno@clisp.org>
81287
81288         * lib/safe-read.h: Assume C89. Add comments.
81289         (safe_read): Change return type to size_t.
81290         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
81291         byte counts > SSIZE_MAX correctly.
81292         * lib/safe-write.h: New file.
81293         * lib/safe-write.c: New file.
81294         * lib/full-read.h: New file.
81295         * lib/full-read.c: New file.
81296         * lib/full-write.h: Assume C89. Add comments.
81297         * lib/full-write.c: Include safe-write.h.
81298         (full_write): Rewritten to use safe_write.
81299         Suggested by Jim Meyering and Paul Eggert.
81300
81301 2002-11-21  Jim Meyering  <jim@meyering.net>
81302
81303         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
81304
81305         Merge in changes from the coreutils.
81306
81307         2002-09-25  Paul Eggert  <eggert@twinsun.com>
81308         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
81309         <stdint.h>.
81310         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
81311         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
81312         int.  Work more efficiently if X is the same width as uintmax_t.
81313         Do not compare X to -1, to avoid bogus compiler warning.
81314         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
81315         Don't assume that f_frsize and f_bsize are the same type.
81316
81317         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
81318         warning on FreeBSD.
81319
81320         * lib/makepath.c (make_path): Restore umask *before* creating the final
81321         component.
81322         (make_path): Minor reformatting.
81323
81324         * lib/xmalloc.c: Adjust to work with new autoconf macros,
81325         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
81326         HAVE_MALLOC/HAVE_REALLOC.
81327
81328         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
81329         dummy ones.  At least on GNU/Linux systems, `auto' means something
81330         else.
81331         From Michael Stone.
81332
81333 2002-11-21  Bruno Haible  <bruno@clisp.org>
81334
81335         Remove case insensitive option matching.
81336         * lib/argmatch.h (argcasematch): Remove declaration.
81337         (ARGCASEMATCH): Remove macro.
81338         (__xargmatch_internal): Remove case_sensitive argument.
81339         (XARGMATCH): Update.
81340         (XARGCASEMATCH): Remove macro.
81341         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
81342         case_sensitive argument.
81343         (argcasematch): Remove function.
81344         (__xargmatch_internal): Remove case_sensitive argument.
81345         (main): Use XARGMATCH instead of XARGCASEMATCH.
81346
81347         * lib/xmalloc.c: Change compile-time error message. Add comment about
81348         required autoconf version.
81349
81350 2002-11-20  Paul Eggert  <eggert@twinsun.com>
81351
81352         Merge argmatch cleanups from Bison.  Assume C89.
81353
81354         * lib/argmatch.c: Include config.h here, not in argmatch.h.
81355         Include stdlib.h, for EXIT_FAILURE.
81356         Always include <string.h>, since we assume C89.
81357         (EXIT_FAILURE): Remove pre-C89 bug workaround.
81358         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
81359         Include <stddef.h> instead, since it's all we need for size_t.
81360         (PARAMS): Remove.  All uses removed.
81361         (ARRAY_CARDINALITY): Do not bother to #undef.
81362         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
81363         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81364         Remove unnecessary parentheses.
81365         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
81366         Insert necessary parentheses.
81367         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
81368         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
81369
81370 2002-11-19  Bruno Haible  <bruno@clisp.org>
81371
81372         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
81373         * lib/mbswidth.h: Include <stddef.h>, for size_t.
81374
81375         * lib/mbswidth.h (PARAMS): Remove macro.
81376         (mbswidth, mbsnwidth): Use ANSI C function declarations.
81377         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
81378
81379         * lib/gcd.h (PARAMS): Remove macro.
81380         (gcd): Use ANSI C function declarations.
81381         * lib/gcd.c (gcd): Likewise.
81382
81383 2002-11-15  Bruno Haible  <bruno@clisp.org>
81384
81385         * lib/strcspn.c: Include <stddef.h>.
81386         (strcspn): Use ANSI C function declaration. Change return type to
81387         size_t. Use NULL.
81388         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
81389         (strpbrk): Use NULL.
81390         * lib/strpbrk.h (PARAMS): Remove macro.
81391         (strpbrk): Use ANSI C function declaration.
81392         * lib/strstr.c: Don't include <sys/types.h>.
81393         * lib/strstr.h (PARAMS): Remove macro.
81394         (strstr): Use ANSI C function declarations.
81395
81396 2002-11-14  Karl Berry  <karl@gnu.org>
81397
81398         * config/mkinstalldirs: `do' on separate line, instead of
81399         `for var; do'.
81400
81401 2002-11-06  Bruno Haible  <bruno@clisp.org>
81402
81403         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
81404         * lib/gcd.c (gcd): Likewise.
81405
81406 2002-11-05  Bruno Haible  <bruno@clisp.org>
81407
81408         * lib/gcd.h: New file, from gettext-0.11.5.
81409         * lib/gcd.c: New file, from gettext-0.11.5.
81410
81411 2002-11-05  Bruno Haible  <bruno@clisp.org>
81412
81413         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81414         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81415         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81416         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
81417
81418         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
81419         <libintl.h>.
81420         * lib/makepath.c: Include gettext.h instead of <locale.h> and
81421         <libintl.h>.
81422
81423         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
81424         * lib/human.c: Include gettext.h instead of <libintl.h>.
81425         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
81426         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
81427         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
81428         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
81429         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
81430         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
81431         (textdomain): Remove definition.
81432         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
81433
81434         * lib/long-options.c: Remove include of <libintl.h> and definition of
81435         _.
81436         * lib/same.c: Remove include of <libintl.h> and definition of _.
81437
81438 2002-11-04  Owen Taylor  <otaylor@redhat.com>
81439
81440         * lib/config.charset: A few additions for Solaris.
81441
81442 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81443
81444         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
81445         * lib/localcharset.c (locale_charset): Declare as extern "C".
81446
81447 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
81448
81449         * lib/config.charset: msdos in uk_UA uses CP1125.
81450
81451 2002-11-04  Bruno Haible  <bruno@clisp.org>
81452
81453         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
81454         * lib/strcase.h: New file, from GNU gettext-0.11.5.
81455         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
81456         * lib/strstr.h: New file, from GNU gettext-0.11.5.
81457         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
81458
81459 2002-11-04  Bruno Haible  <bruno@clisp.org>
81460
81461         * lib/localcharset.c (locale_charset): Don't return an empty string.
81462
81463 2002-11-04  Bruno Haible  <bruno@clisp.org>
81464
81465         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
81466         aliases.
81467
81468 2002-11-04  Bruno Haible  <bruno@clisp.org>
81469
81470         * lib/config.charset: Update for newest glibc. Add canonical names
81471         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
81472
81473 2002-11-04  Bruno Haible  <bruno@clisp.org>
81474
81475         * lib/config.charset: Add support for NetBSD.
81476
81477 2002-11-04  Bruno Haible  <bruno@clisp.org>
81478
81479         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
81480
81481 2002-11-01  Bruno Haible  <bruno@clisp.org>
81482
81483         * configure.in: Add AC_CONFIG_AUX_DIR call.
81484         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
81485         test/Makefile.
81486         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
81487
81488 2002-09-28  Karl Berry  <karl@gnu.org>
81489
81490         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
81491         installed automake until the next release, since changes have been
81492         made.
81493
81494 2002-09-25  Karl Berry  <karl@gnu.org>
81495
81496         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
81497         * lib/getopt*: copy from libc/posix.
81498         * lib/gettext.h: copy from gettext.
81499         * lib/.cppi-disable: add strdup.c, gettext.h.
81500
81501 2002-09-25  Karl Berry  <karl@gnu.org>
81502
81503         * config/srclist.txt: enable gettext.h check.
81504         * config/config.{guess,sub}: update from prep.
81505         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
81506                 from automake 1.6.3.
81507         See srclist*.
81508
81509 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
81510
81511         * regex.c (PATFETCH): Remove the translating fetch.
81512         (PATFETCH_RAW): Rename to PATFETCH.
81513         (set_image_of_range): New fun.
81514         (SET_RANGE_TABLE_WORK_AREA): Use it.
81515         (regex_compile): Don't translate the pattern chars so eagerly.
81516         Only do it when inserting an `exactn' bytecode or when handling
81517         a char-range.
81518         (mutually_exclusive_p): Avoid empty statement.
81519
81520 2002-07-06  Jim Meyering  <meyering@lucent.com>
81521
81522         * m4/README: Don't mention Makefile.am.in.
81523         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
81524
81525 2002-07-01  Jim Meyering  <meyering@lucent.com>
81526
81527         * lib/c-stack.c: Include sys/time.h.
81528         From Volker Borchert.
81529
81530 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81531
81532         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
81533
81534 2002-06-26  Paul Eggert  <eggert@twinsun.com>
81535
81536         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
81537         New macro.  Use it uniformly instead of
81538         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
81539         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
81540         reported by Vin Shelton.
81541
81542 2002-06-22  Paul Eggert  <eggert@twinsun.com>
81543
81544         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
81545         Do not assume SA_SIGINFO behavior.
81546         Bug reported by Jim Meyering on NetBSD 1.5.2.
81547
81548 2002-06-22  Jim Meyering  <meyering@lucent.com>
81549
81550         * m4/c-stack.m4: New file, from diffutils-2.8.2.
81551         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
81552
81553         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
81554         now that configure.ac uses AC_GNU_SOURCE.
81555         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
81556         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
81557
81558         Update to latest tools.  Suggestions from Paul Eggert.
81559         * m4/stdbool.m4: New file, from diffutils-2.8.2.
81560         * m4/gnu-source.m4: Update from diffutils-2.8.2.
81561         * m4/fnmatch.m4: Likewise.
81562         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
81563         to AC_HEADER_STDBOOL
81564
81565 2002-06-22  Jim Meyering  <meyering@lucent.com>
81566
81567         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
81568         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
81569
81570 2002-06-22  Jim Meyering  <meyering@lucent.com>
81571
81572         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
81573
81574         * lib/exitfail.c, exitfail.h: Likewise.
81575         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
81576
81577         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
81578         of fnmatch.h.
81579         (EXTRA_DIST): Add fnmatch_loop.c.
81580         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
81581
81582         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
81583         * lib/fnmatch.c: Update from diffutils-2.8.2.
81584         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
81585         * lib/fnmatch.h: Remove file.
81586
81587 2002-06-21  Jim Meyering  <meyering@lucent.com>
81588
81589         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
81590         * m4/mbrtowc.m4: Likewise.
81591
81592         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
81593         * m4/mbswidth.m4: Reflect name change:
81594         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
81595         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
81596
81597         * m4/lib-link.m4: Update from gettext-0.11.2.
81598         * m4/gettext.m4: Likewise.
81599
81600         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
81601         From Alfred M. Szmidt.
81602
81603 2002-06-18  Paul Eggert  <eggert@twinsun.com>
81604
81605         * lib/file-type.h: Report an error if neither S_ISREG nor
81606         S_IFREG is defined, instead of using a test specific to glibc
81607         2.2.  This should be safe, since POSIX requires S_ISREG and
81608         Unix Version 7 had S_IFREG.  We don't need to check for
81609         <sys/types.h> since we don't use any symbols that it defines.
81610
81611 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
81612
81613         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
81614         $@-t, so that each temporary file name is unique and valid in the first
81615         8 characters, for operation under DOS.
81616
81617 2002-06-15  Paul Eggert  <eggert@twinsun.com>
81618
81619         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
81620
81621 2002-06-15  Jim Meyering  <meyering@lucent.com>
81622
81623         Work even with DJGPP 2.03, which lacks support for symlinks.
81624         From Richard Dawe.
81625         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
81626         is defined.
81627         * lib/lchown.c (S_ISLNK): Likewise.
81628
81629 2002-06-15  Jim Meyering  <meyering@lucent.com>
81630
81631         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
81632         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
81633         have been included before this file.
81634
81635 2002-06-14  Jim Meyering  <meyering@lucent.com>
81636
81637         * lib/file-type.h: Use the version from diffutils-2.8.2.
81638         * lib/file-type.c: Likewise.
81639
81640 2002-06-07  Jim Meyering  <meyering@lucent.com>
81641
81642         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
81643         They're needed at least for NetBSD 1.5.2.
81644         ($statxfs_includes): Include those same headers.
81645         ($statxfs_includes): Include sys/vfs.h if available.
81646         ($statxfs_includes): Likewise for sys/statvfs.h.
81647         Check for the following members in both structs statfs and statvfs:
81648         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
81649
81650 2002-06-01  Jim Meyering  <meyering@lucent.com>
81651
81652         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
81653         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
81654
81655 2002-05-28  Jim Meyering  <meyering@lucent.com>
81656
81657         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
81658         Reported by Volker Borchert.
81659
81660 2002-05-27  Jim Meyering  <meyering@lucent.com>
81661
81662         Fix a problem seen only on nonconforming systems whereby ls.c's
81663         use of localtime, and then of gettimeofday would cause trouble:
81664         the localtime call used to initialize rpl_gettimeofday's save
81665         mechanism would clobber ls's current local time information so
81666         that in any long listing the first file would always be listed
81667         with date 1970-01-01.  Analysis by Volker Borchert.
81668
81669         * lib/gettimeofday.c (localtime): Undefine.
81670         (rpl_localtime): New function.
81671
81672 2002-05-27  Jim Meyering  <meyering@lucent.com>
81673
81674         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
81675         localtime.
81676
81677         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
81678         use the replacement function; it wouldn't resolve at link time.
81679         Reported by Volker Borchert.
81680
81681 2002-05-22  Jim Meyering  <meyering@lucent.com>
81682
81683         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
81684         file-type.h.
81685         * lib/file-type.h: New file.
81686         * lib/file-type.c (file_type): New file/function.  Extracted from
81687         diffutils.
81688
81689 2002-04-30  Jim Meyering  <meyering@lucent.com>
81690
81691         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
81692
81693 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81694
81695         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
81696
81697 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81698
81699         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
81700         Do not check for alloca.h (no longer used) or stdbool.h (was never
81701         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
81702
81703 2002-04-29  Paul Eggert  <eggert@twinsun.com>
81704
81705         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
81706
81707 2002-04-29  Jim Meyering  <meyering@lucent.com>
81708
81709         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
81710         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
81711         Use AC_FUNC_STRNLEN here instead.
81712
81713         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
81714         With autoconf-2.53a, it's part of AC_PROG_CC.
81715
81716 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81717
81718         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
81719         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
81720
81721 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81722
81723         * lib/sig2str.h, lib/sig2str.c: New files.
81724         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
81725
81726 2002-04-28  Paul Eggert  <eggert@twinsun.com>
81727
81728         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
81729         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
81730         of 127, since 64 is the largest conceivable number for ancient
81731         nonstandard hosts.
81732         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
81733
81734 2002-04-28  Jim Meyering  <meyering@lucent.com>
81735
81736         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
81737
81738 2002-04-24  Jim Meyering  <meyering@lucent.com>
81739
81740         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
81741         (jm_PREREQ): Use it.
81742
81743         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
81744         mach/mach.h fcntl.h.
81745         Check for this function: setlocale.
81746
81747 2002-04-24  Jim Meyering  <meyering@lucent.com>
81748
81749         * lib/gettext.h: New file, from Gettext.
81750         * lib/Makefile.am (INCLUDES): Remove -I../intl.
81751         (libfetish_a_SOURCES): Add gettext.h.
81752
81753 2002-04-16  Jim Meyering  <meyering@lucent.com>
81754
81755         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
81756         ut_pid, ut_id, ut_exit.
81757
81758 2002-04-16  Jim Meyering  <meyering@lucent.com>
81759
81760         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
81761         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
81762         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
81763
81764 2002-04-12  Jim Meyering  <meyering@lucent.com>
81765
81766         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
81767         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
81768         existence of the getmntinfo function.  Needed for Darwin 5.3.
81769
81770         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
81771         This is necessary at least on Darwin 5.3.
81772
81773         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
81774         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
81775         strnlen.o in the library, and that makes some versions of ranlib
81776         object.
81777
81778 2002-04-12  Jim Meyering  <meyering@lucent.com>
81779
81780         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
81781
81782 2002-04-09  Jim Meyering  <meyering@lucent.com>
81783
81784         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
81785         to be more precise.  Rather than saying we're checking whether the
81786         function `works', say what we're testing.
81787         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
81788         Reported by Bruno Haible.
81789
81790 2002-03-10  Jim Meyering  <meyering@lucent.com>
81791
81792         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
81793         Suggestion from Santiago Vila.
81794
81795 2002-03-08  Jim Meyering  <meyering@lucent.com>
81796
81797         * lib/rename.c: Mention that this wrapper is needed also on
81798         mips-dec-ultrix4.4 systems.
81799
81800 2002-03-02  Jim Meyering  <meyering@lucent.com>
81801
81802         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
81803         not HAVE_CLOCK_SETTIME.
81804
81805 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81806
81807         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
81808         Check for clock_settime.
81809
81810 2002-02-27  Paul Eggert  <eggert@twinsun.com>
81811
81812         * lib/nanosleep.h: Rename to....
81813         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
81814
81815         * lib/gettime.c: New file.
81816         * lib/settime.c: New file.
81817         * lib/stime.c: Remove.
81818
81819         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
81820         timespec.h.  Remove nanosleep.h.
81821
81822 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81823
81824         * m4/acl.m4: New file.
81825         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
81826         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
81827
81828 2002-02-25  Paul Eggert  <eggert@twinsun.com>
81829
81830         * lib/acl.c, lib/acl.h: New files.
81831         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
81832
81833 2002-02-24  Jim Meyering  <meyering@lucent.com>
81834
81835         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
81836         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
81837         cause trouble.  Reported by Nelson Beebe.
81838
81839 2002-02-23  Paul Eggert  <eggert@twinsun.com>
81840
81841         * lib/path-concat.c (xpath_concat): Reorder code to pacify
81842         compilers that don't know that xalloc_die never returns.
81843
81844 2002-02-20  Jim Meyering  <meyering@lucent.com>
81845
81846         * lib/getdate.c: Regenerate using bison-1.33.
81847
81848 2002-02-17  Jim Meyering  <meyering@lucent.com>
81849
81850         * config/config.guess (main): Don't use `head -1'; it's no longer
81851         portable. Use `sed 1q' instead.
81852
81853 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
81854
81855         * m4/codeset.m4: Upgrade to gettext-0.11.
81856         * m4/gettext.m4: Upgrade to gettext-0.11.
81857         * m4/glibc21.m4: Upgrade to gettext-0.11.
81858         * m4/iconv.m4: Upgrade to gettext-0.11.
81859         * m4/isc-posix.m4: Upgrade to gettext-0.11.
81860         * m4/lcmessage.m4: Upgrade to gettext-0.11.
81861         * m4/lib-ld.m4: New file, from gettext-0.11.
81862         * m4/lib-link.m4: New file, from gettext-0.11.
81863         * m4/lib-prefix.m4: New file, from gettext-0.11.
81864         * m4/progtest.m4: Upgrade to gettext-0.11.
81865
81866 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81867
81868         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
81869         (jm_PREREQ): Use it.
81870
81871 2002-02-15  Paul Eggert  <eggert@twinsun.com>
81872
81873         * lib/posixver.c, lib/posixver.h: New files.
81874         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81875
81876 2002-02-02  Paul Eggert  <eggert@twinsun.com>
81877             Bruno Haible  <bruno@clisp.org>
81878
81879         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
81880         (fwrite_success_callback): New declaration.
81881         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
81882         print_unicode_char. Call failure callback instead of error.
81883         (fwrite_success_callback): New function.
81884         (exit_failure_callback): New function.
81885         (fallback_failure_callback): New function.
81886         (print_unicode_char): Call unicode_to_mb.
81887
81888 2002-01-26  Jim Meyering  <meyering@lucent.com>
81889
81890         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
81891         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
81892
81893 2002-01-26  Jim Meyering  <meyering@lucent.com>
81894
81895         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
81896
81897 2002-01-22  Paul Eggert  <eggert@twinsun.com>
81898
81899         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
81900
81901 2002-01-22  Jim Meyering  <meyering@lucent.com>
81902
81903         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
81904         Otherwise, some versions of automake would omit the rule that makes
81905         Makefile from Makefile.in.
81906
81907 2002-01-21  Paul Eggert  <eggert@twinsun.com>
81908
81909         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
81910         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
81911         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
81912         (memcoll): Set errno to zero if there is no error.
81913
81914         * lib/quotearg.c (quotearg_buffer_restyled):
81915         Fix bug with quoting buffers containing NUL when backslashing escapes.
81916         This bug was exposed by the other changes in this patch.
81917         (quotearg_n_options): New arg ARGSIZE.
81918         All callers changed.
81919         (quoting_options_from_style): New function.
81920         (quotearg_n_style): Use it.
81921         (quotearg_n_style_mem): New function.
81922
81923         * lib/quotearg.h (quotearg_n_style_mem): New function.
81924
81925 2002-01-19  Jim Meyering  <meyering@lucent.com>
81926
81927         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
81928         Remove useless quotes: DF_PROG="df".
81929         * m4/strnlen.m4: New file.
81930
81931 2002-01-16  Paul Eggert  <eggert@twinsun.com>
81932
81933         * lib/backupfile.c (ISDIGIT): Comment fix.
81934         * lib/getdate.y (ISDIGIT): Likewise.
81935         * lib/posixtm.c (ISDIGIT, year): Likewise.
81936         * lib/strverscmp.c (ISDIGIT): Likewise.
81937         * lib/userspec.c (ISDIGIT): Likewise.
81938
81939 2002-01-16  Jim Meyering  <meyering@lucent.com>
81940
81941         * lib/getdate.y: Add three semicolons, each just before a closing
81942         brace. Bison (as of version 1.31) no longer papers over that mistake.
81943
81944 2002-01-05  Jim Meyering  <meyering@lucent.com>
81945
81946         * lib/version-etc.c (version_etc_copyright): Update copyright year.
81947
81948 2001-12-19  Paul Eggert  <eggert@twinsun.com>
81949
81950         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
81951         not silently exit merely because the output buffer happens to
81952         have nothing pending.
81953
81954 2001-12-18  Paul Eggert  <eggert@twinsun.com>
81955
81956         See the big note in ../ChangeLog.
81957         * lib/human.c (suffixes): Prefer K to k for 1024.
81958         (generate_suffix_backwards): New function.
81959         (human_readable_inexact): Use it.
81960         * lib/xstrtol.c (__xstrtol): If there is no number but there
81961         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
81962         Accept 'K' as well as 'k'.
81963
81964 2001-12-15  Jim Meyering  <meyering@lucent.com>
81965
81966         * lib/regex.h (__restrict_arr): Update from libc.
81967
81968         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
81969         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
81970         (STREQ): Define.
81971
81972 2001-12-14  Jim Meyering  <meyering@lucent.com>
81973
81974         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
81975         Suggestion from Bruno Haible.
81976
81977 2001-12-10  Jim Meyering  <meyering@lucent.com>
81978
81979         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
81980         xrealloc, Instead, include "xalloc.h".
81981         (initbuffer): Don't cast xmalloc return value to char*.
81982         (readline): Reword comment.
81983         Don't cast xrealloc return value to char*
81984         Return NULL, not 0.
81985
81986 2001-12-09  Jim Meyering  <meyering@lucent.com>
81987
81988         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
81989         about `signed and unsigned type in conditional expression'.
81990         * lib/posixtm.c (posix_time_parse): Likewise.
81991
81992         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
81993
81994         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
81995         to avoid a pedantic warning.
81996
81997         * lib/getstr.c: Don't include assert.h.
81998         (getstr): Remove warning-evoking assertions.
81999         Return -1 if offset parameter is out of bounds.
82000         Change the type of a local from int to size_t.
82001
82002         * lib/strftime.c (my_strftime_localtime_r): Include this function
82003         definition in the `#if ! HAVE_TM_GMTOFF' block.
82004
82005         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
82006         Include xalloc.h instead.
82007
82008 2001-12-02  Jim Meyering  <meyering@lucent.com>
82009
82010         * lib/tempname.c: Don't declare getenv, thus reverting the change of
82011         2001-11-18.  It's no longer necessary, now that stdlib.h is always
82012         included.
82013
82014         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
82015         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
82016
82017 2001-11-30  Akim Demaille  <akim@epita.fr>
82018
82019         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
82020         before being defined.
82021
82022 2001-11-27  Paul Eggert  <eggert@twinsun.com>
82023
82024         * lib/quotearg.h (quotearg_n, quotearg_n_style):
82025         First arg is int, not unsigned.
82026         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
82027         (SIZE_MAX, UINT_MAX): New macros.
82028         (quotearg_n_options): Abort if N is negative.
82029         Avoid overflow check on hosts where size_t is 64 bits and int
82030         is 32 bits, as overflow is impossible there.
82031         Fix off-by-one typo that caused unnecessary reallocation.
82032
82033 2001-11-27  Jim Meyering  <meyering@lucent.com>
82034
82035         * lib/tempname.c: Merge with version from libc.
82036         * lib/regex.c: Likewise.
82037
82038         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
82039         systems for which STDC_HEADERS is 0, it was not included, resulting in
82040         a warning about an integer-to-pointer conversion problem with getenv.
82041         Reported by Volker Borchert.
82042
82043 2001-11-26  Jim Meyering  <meyering@lucent.com>
82044
82045         * lib/gtod.h: Remove file.
82046         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
82047         * lib/gettimeofday.c: Don't include gtod.h.
82048         (GTOD_init): Remove function.
82049         (rpl_gettimeofday): Do its job here instead, rather than aborting.
82050         Suggestion from Volker Borchert.
82051
82052 2001-11-23  Jim Meyering  <meyering@lucent.com>
82053
82054         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
82055         it.
82056         * lib/hash.c (struct hash_table): Define it here instead.
82057
82058 2001-11-22  Jim Meyering  <meyering@lucent.com>
82059
82060         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
82061
82062 2001-11-20  Jim Meyering  <meyering@lucent.com>
82063
82064         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
82065         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
82066
82067 2001-11-19  Jim Meyering  <meyering@lucent.com>
82068
82069         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
82070         directory.  Use "conftestXXXXXX" as the template.
82071         Suggestion from Paul Eggert.
82072
82073         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
82074         immediately, so the test doesn't mistakenly hit the max-open-files
82075         limit.
82076
82077 2001-11-18  Paul Eggert  <eggert@twinsun.com>
82078
82079         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
82080         (TEMPORARIES): New macro.
82081         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
82082         removes an artificial limitation (e.g. HP-UX 10.20, where
82083         TMP_MAX is 17576).
82084
82085 2001-11-18  Jim Meyering  <meyering@lucent.com>
82086
82087         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
82088
82089 2001-11-18  Jim Meyering  <meyering@lucent.com>
82090
82091         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
82092         on SunOS 4.
82093
82094         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
82095         files will be created before anything else.
82096
82097 2001-11-17  Paul Eggert  <eggert@twinsun.com>
82098
82099         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
82100         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
82101
82102 2001-11-17  Jim Meyering  <meyering@lucent.com>
82103
82104         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
82105         Prompted by a report from Bob Proulx.
82106
82107         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
82108         Instead, require UTILS_FUNC_MKSTEMP.
82109
82110 2001-11-17  Jim Meyering  <meyering@lucent.com>
82111
82112         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
82113         Now, that's done as part of AC_FUNC_STRTOD.
82114
82115 2001-11-17  Jim Meyering  <meyering@lucent.com>
82116
82117         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
82118         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
82119         rather than group writable.  Patch by Juan F. Codagnone.
82120
82121         * lib/readtokens.c: Remove explicit declarations of xmalloc and
82122         xrealloc, Instead, include "xalloc.h".
82123
82124         * lib/mountlist.c: Include unlocked-io.h after all system headers.
82125         Remove explicit declarations of xmalloc, xrealloc,
82126         and xstrdup.  Instead, include "xalloc.h".
82127
82128         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
82129         unlocked-io.h.
82130         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
82131         Likewise.
82132         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
82133
82134         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
82135         Reported by Padraig Brady.
82136
82137         * lib/mkstemp.c: #undef mkstemp.
82138         Include config.h.
82139         (rpl_mkstemp): Rename from mkstemp.
82140         Protoize.
82141
82142 2001-11-16  Jim Meyering  <meyering@lucent.com>
82143
82144         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
82145         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
82146         determine the amount of total physical memory, use pstat_getstatic.
82147         HPUX-11 doesn't define _SC_PHYS_PAGES.
82148         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
82149         If sysconf couldn't be used to determine the amount of available
82150         physical memory, use both pstat_getstatic and pstat_getdynamic.
82151         Based on a patch from Bob Proulx.
82152
82153 2001-11-10  Jim Meyering  <meyering@lucent.com>
82154
82155         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
82156         (jm_PREREQ): Use it.
82157
82158 2001-11-09  Jim Meyering  <meyering@lucent.com>
82159
82160         * m4/jm-macros.m4: Require autoconf-2.52f.
82161         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
82162         Use these AC_-prefixed names, not the AM_-prefixed ones.
82163
82164         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
82165
82166 2001-11-05  Jim Meyering  <meyering@lucent.com>
82167
82168         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
82169
82170 2001-11-04  Jim Meyering  <meyering@lucent.com>
82171
82172         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
82173         $DEFS.
82174
82175 2001-11-03  Jim Meyering  <meyering@lucent.com>
82176
82177         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
82178         of AC_DEFUN.
82179
82180         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
82181         know the name of the variable in the macro definition.
82182
82183 2001-11-03  Jim Meyering  <meyering@lucent.com>
82184
82185         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
82186         in argmatch_to_argument call.
82187
82188         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
82189         argument.
82190
82191         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
82192         e.g., a fault due to an attempt to free a NULL pointer.
82193
82194 2001-11-01  Jim Meyering  <meyering@lucent.com>
82195
82196         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
82197         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
82198
82199 2001-11-01  Jim Meyering  <meyering@lucent.com>
82200
82201         * lib/dirfd.c, lib/dirfd.h: New files.
82202         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
82203
82204         * lib/hash.c (hash_print) [TESTING]: Clean up.
82205
82206 2001-10-22  Paul Eggert  <eggert@twinsun.com>
82207
82208         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
82209         to avoid a warning if -Wall.
82210
82211 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
82212
82213         * README: New file
82214         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
82215         (per RMS's instructions, this is now the canonical source)
82216         * lgpl/, gpl/: New directories.
82217
82218 2001-10-21  Paul Eggert  <eggert@twinsun.com>
82219
82220         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
82221
82222 2001-10-21  Jim Meyering  <meyering@lucent.com>
82223
82224         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
82225         this code would end up calling gettext even in packages built
82226         with --disable-nls.
82227         * lib/getopt.c (_): Likewise.
82228         * lib/regex.c (_): Likewise.
82229
82230 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82231
82232         * m4/error.m4 (jm_PREREQ_ERROR):
82233         Do not invoke AC_CHECK_FUNCS with strerror_r, as
82234         AC_FUNC_STRERROR_R does that.
82235         Check for strerror declaration.
82236
82237         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
82238         are supposed to have them these days.
82239         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
82240         Merge changes from latest Autoconf CVS.
82241         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
82242         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
82243         POSIX decided to standardize on the int flavor of strerror_r.
82244
82245 2001-10-20  Paul Eggert  <eggert@twinsun.com>
82246
82247         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
82248         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
82249         Use strerror_r that is only a macro, even if it is not a function.
82250         (strerror): Check for HAVE_DECL_STRERROR before declaring.
82251         (private_strerror): Use prototypes, not old-style function definition.
82252         (print_errno_message): New function.
82253         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
82254         char*-flavored one.
82255         (error_tail, error, error_at_line): Use it.
82256
82257 2001-10-11  Jim Meyering  <meyering@lucent.com>
82258
82259         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
82260         and quote_n (1, ... to avoid clobbering a buffer.
82261
82262 2001-10-05  Jim Meyering  <meyering@lucent.com>
82263
82264         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
82265         hash-pjw.h.
82266         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
82267         * lib/hash-pjw.h: New file.
82268
82269 2001-09-30  Jim Meyering  <meyering@lucent.com>
82270
82271         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
82272         `struct fsstat' has the `f_fstypename' member.
82273         Use that to define FS_TYPE, which is now used to make
82274         the getfsstat link test tighter.
82275
82276 2001-09-30  Jim Meyering  <meyering@lucent.com>
82277
82278         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
82279         Include <sys/ucred.h>, for Apple Darwin.
82280         Include sys/mount.h and sys/fs_types.h only if available.
82281         (FS_TYPE): Define.
82282         (read_filesystem_list): Use FS_TYPE.
82283
82284 2001-09-29  Paul Eggert  <eggert@twinsun.com>
82285
82286         * lib/exclude.c (excluded_filename): 0 -> false, since it's
82287         a boolean context.
82288
82289 2001-09-29  Jim Meyering  <meyering@lucent.com>
82290
82291         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82292         [one-argument getmntent function]): Include stdio.h before mntent.h.
82293         SunOS 4.1.x needs it for the declaration of `FILE'.
82294         Patch by Volker Borchert.
82295
82296         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
82297         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
82298         sys/fs_types.h, and make the link-test for getfsstat guard #include
82299         directives with appropriate #if HAVE_*_H tests so that we can
82300         detect getfsstat on Apple Darwin1.3.7 systems.
82301         Reported by Nelson Beebe.
82302         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
82303
82304 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82305
82306         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82307         #defines strtoimax.  Also treat the other strto* functions
82308         like strtoimax.
82309
82310         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82311         Check for strtoul and strtoumax,
82312         as those declarations are made even in the signed case.
82313         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
82314         Likewise, for strtol and strtoimax.
82315
82316 2001-09-28  Paul Eggert  <eggert@twinsun.com>
82317
82318         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
82319         #defines strtoimax.  Also treat the other strto* functions
82320         like strtoimax.
82321
82322         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
82323         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
82324         (strtoimax, strtoumax): Do not declare if already defined as a macro.
82325
82326 2001-09-26  Jim Meyering  <meyering@lucent.com>
82327
82328         Most macros in unlocked-io.h had the wrong number of arguments.
82329         * lib/gen-uio: New script.
82330         (USE_UNLOCKED_IO): Define to 1 if not already defined.
82331         * lib/unlocked-io.hin: Remove file.
82332         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
82333         rather than trying to embed it here.
82334         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
82335         Reported by Padraig Brady.
82336
82337 2001-09-25  Volker Borchert  <bt@teknon.de>
82338
82339         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
82340         `result'.
82341
82342 2001-09-24  Jim Meyering  <meyering@lucent.com>
82343
82344         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
82345
82346 2001-09-23  Jim Meyering  <meyering@lucent.com>
82347
82348         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
82349         instead of the mere test for existence of mntent.h.  The latter
82350         would get a false-positive on AIX 3.4 systems.
82351         In the outer getmntent if-block, don't die if neither of the getmntent
82352         tests succeeds.  Instead, just fall through and continue with the
82353         remaining tests.
82354
82355 2001-09-23  Jim Meyering  <meyering@lucent.com>
82356
82357         * lib/mountlist.c: Remove useless parentheses in #if directives.
82358         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
82359         the deprecated MOUNTED symbol is no longer defined in mntent.h.
82360
82361 2001-09-22  Jim Meyering  <meyering@lucent.com>
82362
82363         * m4/gettext.m4: New file.  From gettext.
82364         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
82365         * m4/progtest.m4: Likewise
82366         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
82367         * m4/glibc21.m4: Likewise.
82368
82369         * m4/libintl.m4: Remove.  No longer used.
82370
82371 2001-09-22  Jim Meyering  <meyering@lucent.com>
82372
82373         * lib/localcharset.c: Update from latest gettext.
82374         * lib/config.charset: Likewise.
82375
82376 2001-09-20  Jim Meyering  <meyering@lucent.com>
82377
82378         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
82379         strtoimax.
82380         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
82381         strtoumax.
82382
82383 2001-09-20  Jim Meyering  <meyering@lucent.com>
82384
82385         * lib/xstrtol.c (strtoimax): Guard declaration with
82386         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
82387         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
82388         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
82389         (strtoumax): Likewise, for completeness (it wasn't necessary).
82390
82391 2001-09-17  Paul Eggert  <eggert@twinsun.com>
82392
82393         * lib/strtoimax.c (HAVE_LONG_LONG):
82394         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
82395         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
82396         to work around bug in IBM C compiler.
82397
82398 2001-09-17  Jim Meyering  <meyering@lucent.com>
82399
82400         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
82401         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
82402         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
82403         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
82404         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
82405         whenever the right hand side need not be expanded by the shell.
82406
82407 2001-09-16  Paul Eggert  <eggert@twinsun.com>
82408
82409         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
82410         library.  It's not correct, as some older glibcs are buggy.
82411         fnmatch wasn't fixed until glibc 2.2.
82412
82413         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
82414         special shell magic here.
82415
82416 2001-09-16  Jim Meyering  <meyering@lucent.com>
82417
82418         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
82419         * m4/jm-macros.m4: Require it.
82420
82421 2001-09-16  Jim Meyering  <meyering@lucent.com>
82422
82423         * lib/mkdir.c: New file.
82424
82425 2001-09-15  Jim Meyering  <meyering@lucent.com>
82426
82427         * m4/jm-macros.m4: Check for help2man.
82428
82429 2001-09-11  Jim Meyering  <meyering@lucent.com>
82430
82431         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
82432         The body, by Paul Eggert, was moved here from configure.in.
82433         * m4/jm-macros.m4: Require UTILS_HOST_OS.
82434
82435 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82436
82437         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
82438         (jm_PREREQ): Use it.
82439
82440 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82441
82442         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
82443         Use ssize_t, not int, to store result of readlink.
82444         Check for ssize_t overflow as well as size_t overflow,
82445         as POSIX says the result of readlink is implementation-defined
82446         when ssize_t overflows.
82447         Remove unnecessary cast to char*.
82448         Use free+malloc instead of realloc, as the storage doesn't need
82449         to be preserved and it's clearer and can be more efficient that way.
82450         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
82451         * lib/xreadlink.h (xreadlink): Update prototype.
82452
82453 2001-09-04  Paul Eggert  <eggert@twinsun.com>
82454
82455         * lib/xgetcwd.c: Revert some of the previous change; intead,
82456         fix the HAVE_GETCWD_NULL code to behave more like the
82457         !HAVE_GETCWD_NULL code used to.
82458
82459         Include "xalloc.h".
82460         (xgetcwd): Do not return NULL when memory is exhausted; instead,
82461         invoke xalloc_die.
82462
82463 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82464
82465         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
82466         sys/param.h, as pathmax.h includes them.
82467
82468 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82469
82470         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
82471         (jm_PREREQ_XGETCWD): New macro.
82472
82473         * m4/getcwd.m4: New file.
82474
82475 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82476
82477         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
82478         like the HAVE_GETCWD_NULL code.
82479         Include pathmax.h if not HAVE_GETCWD.
82480         Do not include xalloc.h.
82481         (INITIAL_BUFFER_SIZE): New symbol.
82482         Do not use xmalloc / xrealloc, since the caller is responsible for
82483         handling errors.  Preserve errno around `free' during failure.
82484         Do not overrun buffer when using getwd.
82485
82486 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82487
82488         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
82489         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
82490         getcwd (NULL, 0).
82491
82492 2001-09-03  Paul Eggert  <eggert@twinsun.com>
82493
82494         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
82495         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
82496         spotted by Jim Meyering.
82497
82498 2001-09-03  Jim Meyering  <meyering@lucent.com>
82499
82500         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
82501         failure.
82502
82503 2001-09-02  Jim Meyering  <meyering@lucent.com>
82504
82505         * lib/error.c: Update from GNU libc.
82506
82507 2001-09-01  Jim Meyering  <meyering@lucent.com>
82508
82509         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
82510         Used by df.
82511
82512 2001-09-01  Jim Meyering  <meyering@lucent.com>
82513
82514         * lib/xreadlink.c: New file.
82515         * lib/xreadlink.h: New file.
82516         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
82517         xreadlink.h.
82518
82519         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
82520         doesn't conflict with sparc Solaris 7's definition in
82521         /usr/include/sys/int_types.h.
82522
82523         * lib/exclude.c: Use `""', not `<>' to #include non-system header
82524         files.
82525         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
82526         and strncasecmp as r-values.  Unixware didn't have declarations.
82527
82528 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82529
82530         * lib/xstrtol.h: Add copyright notice.
82531         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
82532         LONGINT_INVALID_SUFFIX_CHAR.
82533
82534 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82535
82536         * lib/xstrtol.c (strtoimax): New decl.
82537
82538 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82539
82540         * lib/xgetcwd.c: Don't include pathmax.h.
82541         Include stdlib.h and unistd.h if available.
82542         Include xalloc.h.
82543         (xmalloc, xstrdup, free): Remove decls.
82544         (xgetcwd): Don't assume sizes fit in unsigned.
82545         Check for overflow when computing sizes.
82546         Simplify reallocation code.
82547
82548 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82549
82550         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
82551         a directory's st_size can have an arbitrary value, so the old
82552         usage could waste an arbitrary amount of memory.  All uses
82553         changed.
82554         * lib/savedir.h: Update prototype.
82555
82556 2001-08-31  Paul Eggert  <eggert@twinsun.com>
82557
82558         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
82559
82560         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
82561         old strtoimax.c.
82562
82563         Also, make the following further changes to make this file's
82564         configuration more similar to that of strtol.c:
82565         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
82566         (strtoumax, uintmax_t, strtoull, strtol): Remove.
82567         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
82568         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
82569         changed to signed values.
82570
82571         And make the following changes as well:
82572         Fix copyright notice, as 1999 was missing.
82573         (verify): New macro.
82574         (strtoimax): Check sizes at compile-time, not run-time.
82575         Prefer strtol to strtoll if both work.
82576         (main): Remove; it was not that useful and was a pain to maintain.
82577
82578         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
82579
82580 2001-08-31  Jim Meyering  <meyering@lucent.com>
82581
82582         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
82583         Use an initial, malloc'd, buffer of length 128 rather than
82584         a statically allocated one of length 1024.
82585
82586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82587
82588         Simplify code, partly by assuming autoconf 2.52 semantics.
82589
82590         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
82591
82592         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
82593         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
82594         All uses removed.
82595         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
82596         Move AC_REQUIRE to next-to-top level, to avoid confusion.
82597         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
82598         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
82599         jm_AC_HEADER_INTTYPES_H.
82600         * m4/jm-macros.m4 (jm_MACROS): Likewise.
82601
82602         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
82603
82604         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
82605         Quote first arg of AC_DEFUN.
82606         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
82607         since they are needed to parse the include file even if we need
82608         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
82609         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
82610         but with opposite signedness.
82611
82612 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82613
82614         Merge 'exclude' changes from tar 1.13.22.
82615         This fixes one or two unlikely storage allocation overflow bugs,
82616         but doesn't change user-visible behavior otherwise.
82617
82618 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82619
82620         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
82621         (jm_PREREQ_EXCLUDE): New macro.
82622
82623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82624
82625         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
82626         tm to be declared.
82627
82628 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82629
82630         * lib/hash.c: Remove '2001' from copyright notice.
82631
82632 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82633
82634         * lib/full-write.h: New file.
82635         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
82636         * lib/full-write.c: Correct credits, as cccp.c no longer
82637         exists and anyway it was so heavily changed from the old cccp
82638         code as to be unrecognizable.  Include full-write.h.
82639         (full_write): Return size_t, with short writes meaning failure.
82640         All callers changed.  This fixes a bug with large buffers
82641         on 64-bit hosts.
82642         * lib/utime.c: Include full-write.h.
82643
82644 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82645
82646         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
82647         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
82648         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
82649         Include if available.
82650         (<xalloc.h>): Include
82651         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
82652         (verify): New macro.  Use it to verify that EXCLUDE macros do not
82653         collide with FNM macros.
82654         (struct patopts): New struct.
82655         (struct exclude): Use it, as exclude patterns now come with options.
82656         (new_exclude): Support above changes.
82657         (new_exclude, add_exclude_file):
82658         Initial size must now be a power of two to simplify overflow checking.
82659         (free_exclude, fnmatch_no_wildcards): New function.
82660         (excluded_filename): No longer requires options arg, as the options
82661         are determined by add_exclude.  Now returns bool, not int.
82662         (excluded_filename, add_exclude):
82663         Add support for the fancy new exclusion options.
82664         (add_exclude, add_exclude_file): Now takes int options arg.
82665         Check for arithmetic overflow when computing sizes.
82666         (add_exclude_file): xrealloc might modify errno, so don't
82667         realloc until after errno might be used.
82668
82669         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
82670         New macros.
82671         (free_exclude): New decl.
82672         (add_exclude, add_exclude_file): Now takes int options arg.
82673         (excluded_filename): No longer requires options arg, as the options
82674         are determined by add_exclude.  Now returns bool, not int.
82675
82676 2001-08-30  Paul Eggert  <eggert@twinsun.com>
82677
82678         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
82679
82680 2001-08-27  Jim Meyering  <meyering@lucent.com>
82681
82682         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
82683
82684         * lib/version-etc.c (N_): Remove definition.
82685         Revert most of last change.
82686         Instead, simply don't mark the `Copyright...' string for translation.
82687         Based on advice from Paul Eggert.
82688
82689         * lib/strtoxmax.c: Tweak comment.
82690
82691 2001-08-26  Jim Meyering  <meyering@lucent.com>
82692
82693         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
82694
82695         * m4/xstrtoimax.m4: New file.
82696         * m4/xstrtoumax.m4: Add comments explaining why we
82697         AC_REPLACE_FUNCS(strtol).
82698
82699 2001-08-26  Jim Meyering  <meyering@lucent.com>
82700
82701         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
82702         of copyright with `%s' so translators don't get an untranslated
82703         message in 2002.
82704         (COPYRIGHT_YEAR): Define.
82705         (version_etc): Use fprintf rather than fputs.
82706         Suggestion from Ulrich Drepper.
82707
82708         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
82709
82710         * lib/strtoll.c: New file, from GNU libc.
82711         * lib/xstrtoimax.c: New file.
82712
82713         * lib/xstrtol.h: Add xstrtoimax.
82714         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
82715         * lib/strtoimax.c: New file.  Likewise, but first define
82716         STRTOUXMAX_SIGNED.
82717
82718         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
82719         ...
82720         * lib/strtoxmax.c: ... then renamed to this.
82721
82722 2001-08-18  Paul Eggert  <eggert@twinsun.com>
82723
82724         * m4/inttypes.m4: Add AC_PREREQ(2.13).
82725         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
82726         (jm_AC_TYPE_INTMAX_T): New macro.
82727         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
82728
82729         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
82730
82731         * m4/longlong.m4: Renamed from ulonglong.m4.
82732         * m4/inttypes.m4: Renamed from inttypes_h.m4.
82733         * m4/uintmax_t.m4: Removed.
82734
82735 2001-08-13  Paul Eggert  <eggert@twinsun.com>
82736
82737         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
82738         Port to Solaris 8, where 'sed' requires a space after the 'r'
82739         command, and where sh dislikes "$/".  Clean up the spacing a bit.
82740         Redirect output to $tmp just once.
82741
82742 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
82743
82744         * lib/addext.c (<errno.h>): Include.
82745         (errno): Declare if not defined.
82746         (addext): Work correctly when pathconf returns -1 and leaves
82747         errno alone because there is no limit.  Also, work even if
82748         pathconf returns a value greater than SIZE_MAX.
82749
82750 2001-08-12  Jim Meyering  <meyering@lucent.com>
82751
82752         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
82753         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
82754         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
82755         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
82756         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
82757         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
82758         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
82759         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
82760         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
82761         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
82762         utime.m4, utimes.m4, xstrtoumax.m4:
82763         Quote the first argument in each use of AC_DEFUN.
82764
82765 2001-08-12  Jim Meyering  <meyering@lucent.com>
82766
82767         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
82768         Simply `return getcwd (NULL, 0);'.
82769         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
82770         Use 1300 as initial value for length, not PATH_MAX.
82771
82772         * lib/pathmax.h: Clean up cpp syntax.
82773
82774 2001-08-12  Jim Meyering  <meyering@lucent.com>
82775
82776         * lib/gettimeofday.c: New file.
82777         * lib/gtod.h: New file.
82778         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
82779
82780 2001-08-05  Jim Meyering  <meyering@lucent.com>
82781
82782         * m4/jm-macros.m4: Require autoconf-2.52.
82783
82784 2001-08-04  Jim Meyering  <meyering@lucent.com>
82785
82786         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
82787         stmt, to get in sync with glibc.
82788
82789 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82790
82791         The following changes are from gettext 0.10.39 as maintained by
82792         Bruno Haible.
82793
82794         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
82795         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
82796         with inverted sense.  All uses changed.
82797
82798         * lib/mbswidth.c: Don't include <limits.h>.
82799         Include <stdlib.h> and <string.h> unconditionally.
82800         (iswcntrl, mbsinit, ISCNTRL): New macros.
82801         (mbsnwidth): Use K&R style function declarations.
82802         Don't bother checking for MB_LEN_MAX == 1, since the compiler
82803         can optimize it when MB_CUR_MAX == 1.
82804         The width of control characters is zero, not 1.
82805
82806 2001-08-03  Paul Eggert  <eggert@twinsun.com>
82807
82808         The following changes are from gettext 0.10.39 as maintained by
82809         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
82810
82811         * m4/codeset.m4: Upgrade to serial AM1.
82812         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
82813         all uses changed.  Quote first arg of AC_DEFUN.
82814         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
82815
82816         * m4/iconv.m4: Upgrade to serial AM2.
82817         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
82818         Add --with-libconv-prefix.
82819         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
82820         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
82821         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
82822         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
82823         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
82824
82825         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
82826         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
82827         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
82828         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
82829         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
82830         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
82831         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
82832         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
82833         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
82834
82835         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
82836         string.h any more.
82837
82838         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
82839         not the default value.
82840
82841         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
82842         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
82843         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
82844         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
82845         Also check for iswcntrl, used for wcwidth fallback.
82846         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
82847         to Autoconf 2.13.
82848
82849 2001-08-03  Jim Meyering  <meyering@lucent.com>
82850
82851         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
82852         as it was in the original.  Reported by Paul Eggert.
82853
82854 2001-07-16  Jim Meyering  <meyering@lucent.com>
82855
82856         * m4/gettimeofday.m4: New file.
82857         Prompted by a report from Bernhard Baehr.
82858
82859 2001-07-15  Jim Meyering  <meyering@lucent.com>
82860
82861         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
82862         stuff. Now it's in ../Makefile.cfg.
82863
82864 2001-07-15  Jim Meyering  <meyering@lucent.com>
82865
82866         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
82867         (BUILT_SOURCES): Add unlocked-io.h.
82868         (io_functions): Define.
82869         (unlocked-io.h): New rule.
82870         (DISTCLEANFILES): Add unlocked-io.h.
82871         (all-local): Depend on unlocked-io.h, to ensure it is created.
82872
82873         * lib/unlocked-io.hin: New file
82874
82875         * lib/regex.c: Update from glibc.
82876
82877 2001-07-05  Jim Meyering  <meyering@lucent.com>
82878
82879         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
82880         recommendation.
82881         (libfetish_a_SOURCES): Put all .h files here instead.
82882         Remove a thus-exposed (better checks in automake) duplicate and
82883         two unnecessary .h files.
82884
82885 2001-07-04  Jim Meyering  <meyering@lucent.com>
82886
82887         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
82888         that generates jm-glibc-io.m4 so that it doesn't trigger any make
82889         distcheck failure.
82890
82891 2001-07-02  Jim Meyering  <meyering@lucent.com>
82892
82893         The following changes were prompted by suggestions from Bruno Haible.
82894
82895         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
82896         is now generated.
82897         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
82898         definition of EXTRA_DIST.
82899         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
82900         ensure that the generated file is created/updated whenever the list
82901         of $(unlocked_functions) is changed.
82902         (jm-glibc-io.m4): New rule.
82903         (unlocked-io.h): New rule -- currently unused.
82904
82905 2001-06-24  Jim Meyering  <meyering@lucent.com>
82906
82907         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
82908         unmatched right bracket, rather than kludging it with an extra,
82909         falsely-matching quote in a comment.  Patch by Akim Demaille.
82910
82911 2001-06-11  Jim Meyering  <meyering@lucent.com>
82912
82913         * lib/regex.c: Update from GNU libc.
82914
82915 2001-05-27  Jim Meyering  <meyering@lucent.com>
82916
82917         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
82918         Check for ut_type in struct utmp.
82919
82920 2001-05-27  Jim Meyering  <meyering@lucent.com>
82921
82922         * lib/readutmp.h (UT_TYPE): Define.
82923
82924 2001-05-24  Jim Meyering  <meyering@lucent.com>
82925
82926         * lib/argmatch.c: Include "quote.h".
82927         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
82928         quote function.  Reported by Göran Uddeborg.
82929
82930 2001-05-22  Jim Meyering  <meyering@lucent.com>
82931
82932         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
82933         now that we use the package-supplied version unconditionally.
82934         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
82935
82936 2001-05-21  Jim Meyering  <meyering@lucent.com>
82937
82938         * m4/regex.m4: Change a couple backticks to single quotes to avoid
82939         shell syntax errors.
82940
82941 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
82942
82943         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
82944
82945 2001-05-20  Paul Eggert  <eggert@twinsun.com>
82946
82947         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
82948         Don't bother to check library strftime, since
82949         we'll be using our own my_strftime function anyway.
82950         Define my_strftime instead of strftime.
82951
82952 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
82953
82954         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
82955         which is not yet declared.
82956
82957 2001-05-15  Jim Meyering  <meyering@lucent.com>
82958
82959         * m4/regex.m4: Use proper quoting so brackets appear in the test
82960         program.
82961         Reported by, and with help from, Bruno Haible.
82962
82963 2001-05-13  Jim Meyering  <meyering@lucent.com>
82964
82965         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
82966         undefined.
82967
82968 2001-05-11  Paul Eggert  <eggert@twinsun.com>
82969
82970         dirname code cleanup.  base_name now behaves more compatibly
82971         with POSIX basename when given file names that have trailing
82972         slashes, and similarly for dir_name.  Add new primitives
82973         base_len and dir_len.  Put the directory-name-related decls
82974         into dirname.h.
82975
82976         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
82977         * lib/backupfile.c (base_name): Likewise.
82978         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
82979         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
82980         * lib/makepath.c (strip_trailing_slashes): Likewise.
82981         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
82982         ISSLASH): Likewise.
82983         * lib/rename.c (strip_trailing_slashes): Likewise.
82984         * lib/same.c (base_name): Likewise.
82985         * lib/stripslash.c (ISSLASH): Likewise.
82986
82987         * lib/addext.c: Include <dirname.h> after size_t is defined.
82988         * lib/backupfile.c: Likewise.
82989
82990         * lib/addext.c (addext): Use base_len to trim redundant
82991         trailing slashes instead of doing it ourselves.
82992         But do not trim the last slash if it is not redundant.
82993
82994         * lib/backupfile.c (find_backup_file_name,
82995         max_backup_version): Use base_len instead of rolling it ourselves.
82996         Handle the case of "" and (on DOS) "C:" correctly.
82997
82998         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
82999         needed. Include <string.h>, <dirname.h>.
83000         (base_name): Allow file names ending in slashes, other than names
83001         that are all slashes.  In this case, return the basename followed
83002         by the slashes.  This is more general, and can be used in places
83003         where the original base_name purposely had an assertion failure.
83004         (base_len): New function.
83005
83006         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
83007         Do not include <assert.h>; no longer needed.
83008         Include xalloc.h.
83009         (memrchr): Remove decl.
83010         (dir_name_r): Remove.
83011         (dir_len): Renamed from dirlen.  All callers changed.
83012         Rewrite in terms of base_name, for simplicity and consistency.
83013         (dir_name): Never return NULL.  All callers changed.
83014         Do not include <stdlib.h> in test program; no longer needed.
83015         return 0; is fine for test program.
83016
83017         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
83018         New macros.
83019         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
83020
83021         * lib/path-concat.c (path_concat): Use base_len to compute
83022         base length, not strlen; this means we cannot rely on memcpy
83023         to null-terminate.
83024
83025         * lib/same.c (STREQ): Remove.
83026         (same_name): Handle the case where the basename ends in trailing '/'.
83027
83028         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
83029         a slash was stripped.  Do not strip the last slash after a
83030         file system prefix.
83031
83032 2001-05-11  Paul Eggert  <eggert@twinsun.com>
83033
83034         * lib/Makefile.am (libfetish_a_SOURCES):
83035         Add strftime.c, since we now compile it on all hosts.
83036
83037         * lib/strftime.c (my_strftime):
83038         Define to nstrftime if emacs, but only if my_strftime is not defined.
83039         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
83040         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
83041         Add one more extra argument: a nanoseconds value.
83042         All uses changed.
83043         (ns): New macro.
83044         (my_strftime function): Add %N format.
83045         (emacs_strftimeu): Renamed from emacs_strftime,
83046         with extra ut argument.
83047
83048 2001-05-09  Paul Eggert  <eggert@twinsun.com>
83049
83050         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
83051
83052 2001-04-21  Jim Meyering  <meyering@lucent.com>
83053
83054         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
83055         doesn't interfere.
83056
83057 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
83058
83059         * m4/ftruncate.m4: Check for chsize.
83060         Link with ftruncate.o unconditionally if ftruncate is missing.
83061         This was required when cross-compiling to i586-mingw32msvc.
83062
83063 2001-04-08  Jim Meyering  <meyering@lucent.com>
83064
83065         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
83066         recomputed; that's necessary when the offset spans a DST transition.
83067         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
83068
83069 2001-04-02  Jim Meyering  <meyering@lucent.com>
83070
83071         * lib/regex.h, regex.c: Update from GNU libc.
83072
83073 2001-03-24  Jim Meyering  <meyering@lucent.com>
83074
83075         * m4/jm-macros.m4: Require autoconf-2.49d.
83076
83077 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
83078
83079         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
83080
83081 2001-03-19  Paul Eggert  <eggert@twinsun.com>
83082
83083         * lib/version-etc.c (version_etc_copyright): Update to 2001.
83084
83085 2001-03-17  Jim Meyering  <meyering@lucent.com>
83086
83087         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
83088         now that the version in autoconf is equivalent.
83089         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
83090
83091         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
83092         Suggestion from Akim Demaille.
83093
83094         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
83095         (jm_PREREQ_TEMPNAME): New function.
83096
83097 2001-03-16  Paul Eggert  <eggert@twinsun.com>
83098
83099         * lib/tempname.c (uint64_t): Define to uintmax_t if
83100         not defined, and if UINT64_MAX is not defined.
83101         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
83102         Reported by John David Anglin.
83103
83104 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
83105
83106         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
83107         resolve alias if codeset is empty.
83108         * lib/config.charset (BeOS): Use wildcard syntax.
83109
83110 2001-03-13  Jim Meyering  <meyering@lucent.com>
83111
83112         * lib/path-concat.c (path_concat)
83113         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
83114         concatenating e.g., `C:' and `foo'.
83115         From Bruno Haible.
83116
83117 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83118
83119         * lib/localcharset.c (locale_charset): Don't use
83120         setlocale(LC_CTYPE,NULL). Don't return NULL.
83121         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
83122
83123 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
83124
83125         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
83126         support for DOS/DJGPP.
83127
83128 2001-03-01  Paul Eggert  <eggert@twinsun.com>
83129
83130         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
83131         lacks mkstemp.  Compile our own tempname.c if we compile our own
83132         mkstemp.c, as mkstemp relies on tempname.
83133
83134 2001-03-01  Jim Meyering  <meyering@lucent.com>
83135
83136         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
83137         AH_VERBATIM really does output its argument verbatim.
83138
83139 2001-02-28  Paul Eggert  <eggert@twinsun.com>
83140
83141         * lib/Makefile.am (libfetish_a_SOURCES):
83142         Add dup-safer.c, fopen-safer.c.
83143         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
83144
83145         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
83146         * lib/unistd-safer.h: New files.
83147
83148 2001-02-25  Paul Eggert  <eggert@twinsun.com>
83149
83150         The mkstemp replacement is taken from glibc 2.2.2, with some
83151         portability fixes for use outside glibc, as follows:
83152
83153         * lib/tempname.c (struct_stat64): New macro.
83154         (direxists, __gen_tempname): Use it.
83155         This avoids a portability problem with Solaris 8.
83156
83157         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
83158         (<stddef.h>, <stdint.h>, <string.h>):
83159         Include only if STDC_HEADERS || _LIBC.
83160         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
83161         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
83162         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
83163         (__set_errno): Define this macro if <errno.h> doesn't.
83164         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
83165         Define these macros if <stdio.h> doesn't.
83166         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
83167         Define these macros if <sys/stat.h>
83168         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
83169         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
83170         __xstat64): Define if not _LIBC.
83171         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
83172         (__gen_tempname): Invoke gettimeofday only if
83173         HAVE_GETTIMEOFDAY || _LIBC;
83174         otherwise, fall back on plain "time".
83175         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
83176
83177         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
83178
83179         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
83180
83181 2001-02-18  Paul Eggert  <eggert@twinsun.com>
83182
83183         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
83184
83185 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83186
83187         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
83188         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
83189         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
83190         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
83191
83192 2001-02-17  Paul Eggert  <eggert@twinsun.com>
83193
83194         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
83195         Remove workaround macros for hosts that have mbrtowc but not
83196         mbstate_t, as we now insist on proper declarations for both
83197         before using mbrtowc.
83198
83199 2001-02-17  Jim Meyering  <meyering@lucent.com>
83200
83201         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
83202         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
83203         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
83204         UnixWare 7.1.1.
83205
83206         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
83207         rather than AC_CACHE_VAL.
83208
83209 2001-02-17  Jim Meyering  <meyering@lucent.com>
83210
83211         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
83212         around included file name.
83213
83214         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
83215
83216         * lib/strftime.c: Update from GNU libc (the only changes were to
83217         comments).
83218
83219 2001-02-17  Jim Meyering  <meyering@lucent.com>
83220
83221         * lib/regex.c: Update from libc.
83222
83223 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
83224
83225         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
83226         clash.
83227
83228 2001-02-16  Paul Eggert  <eggert@twinsun.com>
83229
83230         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
83231         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
83232         Reported by Mark Hounschell via Paul Eggert.
83233
83234 2001-02-07  Jim Meyering  <meyering@lucent.com>
83235
83236         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
83237
83238 2001-02-05  Jim Meyering  <meyering@lucent.com>
83239
83240         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
83241         it includes the patch required for `large file' support with at least
83242         HP-UX's 10.20 /bin/cc.
83243
83244 2001-02-03  Jim Meyering  <meyering@lucent.com>
83245
83246         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
83247         AS_IF, now that it works once again (mysteriously).
83248         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83249
83250 2001-01-30  Jim Meyering  <meyering@lucent.com>
83251
83252         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
83253         * m4/chown.m4: Rename conftestchown to conftest.chown.
83254         * m4/rename.m4: s/conftestdir/conftest.d1/ and
83255         s/conftestdir2/conftest.d2/.
83256         * m4/utimes.m4: s/conftestdata/conftest.data/
83257         Inspired by Pavel Roskin's change in autoconf.
83258
83259 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
83260
83261         * lib/config.charset: Update for FreeBSD 4.2.
83262
83263 2001-01-27  Jim Meyering  <meyering@lucent.com>
83264
83265         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
83266         a use of AS_IF.
83267         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
83268
83269 2001-01-26  Jim Meyering  <meyering@lucent.com>
83270
83271         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
83272         quotearg.c includes it.
83273
83274 2001-01-26  Jim Meyering  <meyering@lucent.com>
83275
83276         * lib/quotearg.c: Include stddef.h.
83277         * lib/quote.c: Include stddef.h.
83278         Reported by Axel Kittenberger.
83279
83280         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
83281         line in double quotes so that it evokes a better diagnostic.
83282         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
83283         Reported by Axel Kittenberger.
83284
83285 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
83286
83287         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
83288         as if it was a `charset'.
83289
83290 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83291
83292         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
83293         has const.
83294
83295 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
83296
83297         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
83298         to avoid a warning.  Add back 'const' to inptr.
83299
83300 2001-01-20  Jim Meyering  <meyering@lucent.com>
83301
83302         Be sure that headers are checked before used in code compiled
83303         for the type checks.
83304         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
83305         In place of that, invoke jm_CHECK_ALL_TYPES.
83306         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
83307         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
83308         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
83309         The check for ssize_t was mistakenly run before the test for unistd.h.
83310
83311         The configure-time check for stdbool.h was missing.
83312         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
83313         (jm_PREREQ_HASH): New function.
83314
83315 2001-01-17  Jim Meyering  <meyering@lucent.com>
83316
83317         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
83318         for autoconf-2.49c.
83319         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
83320
83321 2001-01-16  Jim Meyering  <meyering@lucent.com>
83322
83323         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
83324         From Bruno Haible.
83325
83326 2001-01-14  Jim Meyering  <meyering@lucent.com>
83327
83328         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
83329         foo and bar.  Create conftestdir/ in the script, not in the C code.
83330         Remove directories in the script, not in the C code.
83331         Remove conftestdir{,2} before trying to create the directory.
83332         Make the entire configure script fail if the mkdir fails.
83333
83334 2001-01-14  Jim Meyering  <meyering@lucent.com>
83335
83336         * lib/rename.c: New file.  From Volker Borchert.
83337         Include stdlib.h, string.h or strings.h, and xalloc.h.
83338         Use strip_trailing_slashes rather than open-coding it.
83339
83340 2001-01-03  Paul Eggert  <eggert@twinsun.com>
83341
83342         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
83343
83344 2001-01-03  Jim Meyering  <meyering@lucent.com>
83345
83346         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
83347         of local `inptr' to avoid warning with some system declarations of
83348         iconv.
83349
83350 2001-01-02  Volker Borchert  <bt@teknon.de>
83351
83352         * m4/rename.m4: New file.
83353         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
83354
83355 2001-01-01  Jim Meyering  <meyering@lucent.com>
83356
83357         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
83358         even on systems with utmpx.h.  It's necessary for the declaration of
83359         utmp's ut_user member.  Reported by Andreas Jaeger.
83360
83361         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
83362         available. They are required for the declarations of getgrgid and
83363         getpwuid resp.
83364         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
83365         Reported by Andreas Jaeger.
83366
83367 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
83368
83369         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
83370         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
83371         so `make install' also works in VPATH builds.
83372
83373 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
83374
83375         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
83376         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
83377         can be used in subdirectories.
83378
83379 2000-12-29  Paul Eggert  <eggert@twinsun.com>
83380
83381         * lib/modechange.c: Do not assume that mode_t uses the
83382         traditional octal encoding.  E.g. "chmod 1 FOO" should set
83383         the other-execute bit of FOO even if S_IXOTH != 1.
83384
83385         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
83386         WOTH, XOTH, ALLM): New macros.
83387         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
83388          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
83389         Use them.
83390         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
83391         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
83392         (mode_compile):
83393         No need to use uintmax_t; unsigned long is long enough.
83394         Don't bother to get suffix since we don't use it.
83395
83396 2000-12-26  Jim Meyering  <meyering@lucent.com>
83397
83398         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
83399         better with autoheader.
83400
83401 2000-12-24  Jim Meyering  <meyering@lucent.com>
83402
83403         * lib/hash.c (is_prime): Return explicit boolean values.
83404         (hash_get_first): Return NULL to appease Irix5.6's 89.
83405         Reported by Nelson Beebe.
83406
83407 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
83408
83409         * lib/localcharset.c (locale_charset): Add support for Win32.
83410
83411 2000-12-18  Paul Eggert  <eggert@twinsun.com>
83412
83413         * lib/physmem.h, lib/physmem.c: New files.
83414
83415         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
83416         (noinst_HEADERS): Add physmem.h.
83417
83418         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
83419         't' for compatibility with Solaris 8 sort.
83420
83421 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
83422
83423         * lib/config.charset: Add support for BeOS.
83424
83425 2000-12-17  Jim Meyering  <meyering@lucent.com>
83426
83427         * m4/dos.m4 (jm_AC_DOS): New file and macro.
83428         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
83429
83430 2000-12-16  Jim Meyering  <meyering@lucent.com>
83431
83432         This bug had a serious impact on chown: `chown N:M FILE' (for integer
83433         N and M) would have treated it like `chown N:N FILE'.
83434
83435         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
83436
83437 2000-12-16  Jim Meyering  <meyering@lucent.com>
83438
83439         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
83440         SHELLS_FILE to a file name that's useful on djgpp systems.
83441         Include stdlib.h.
83442         (ADDITIONAL_DEFAULT_SHELLS): Define.
83443         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
83444         Based mostly on a patch from Prashant TR.
83445
83446 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
83447
83448         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
83449         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
83450         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
83451
83452 2000-12-08  Andreas Schwab  <schwab@suse.de>
83453
83454         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
83455         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
83456
83457 2000-12-07  Jim Meyering  <meyering@lucent.com>
83458
83459         * lib/stripslash.c (ISSLASH): Define.
83460         (strip_trailing_slashes): Use ISSLASH rather than comparing against
83461         `/'.
83462         From Prashant TR.
83463
83464         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
83465         (dir_name_r): Declare this function as static.
83466         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
83467         manifest itself on a name containing a mix of slashes and
83468         backslashes.
83469         Make this function work with names starting with a DOS-style
83470         drive letter and colon prefix.
83471         (dir_name): Append `.' if necessary.
83472         Based mostly on patches from Prashant TR and Eli Zaretskii.
83473
83474         * lib/dirname.h (dir_name_r): Remove prototype.
83475
83476 2000-12-06  Paul Eggert  <eggert@twinsun.com>
83477
83478         * m4/off_t-format.m4: Remove this file.
83479         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
83480
83481 2000-12-06  Jim Meyering  <meyering@lucent.com>
83482
83483         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
83484         replacement strtoull, we may well need the replacement strtoul, too.
83485         Check for declarations of strtoul and strtoull.
83486         Check for strtol.  Mainly as a cue to cause automake to include
83487         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
83488         Check for limits.h -- strtol.c needs it.
83489
83490 2000-12-05  Jim Meyering  <meyering@lucent.com>
83491
83492         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
83493
83494 2000-12-04  Jim Meyering  <meyering@lucent.com>
83495
83496         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
83497         Also include memory.h, stdlib.h, unistd.h if appropriate.
83498         Reported by Andreas Jaeger (conflicting declaration of malloc).
83499
83500 2000-12-02  Jim Meyering  <meyering@lucent.com>
83501
83502         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
83503         * m4/jm-macros.m4 (jm_MACROS): require it.
83504
83505 2000-12-02  Jim Meyering  <meyering@lucent.com>
83506
83507         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
83508
83509 2000-12-01  Paul Eggert  <eggert@twinsun.com>
83510
83511         * lib/memrchr.c: Include <config.h> before any system include file.
83512
83513 2000-11-30  Jim Meyering  <meyering@lucent.com>
83514
83515         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
83516
83517 2000-11-30  Jim Meyering  <meyering@lucent.com>
83518
83519         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
83520
83521 2000-11-29  Paul Eggert  <eggert@twinsun.com>
83522
83523         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
83524
83525 2000-11-26  Jim Meyering  <meyering@lucent.com>
83526
83527         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
83528
83529 2000-11-22  Paul Eggert  <eggert@twinsun.com>
83530
83531         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
83532         size of (size_t) -1; it's not portable.
83533
83534 2000-11-17  Jim Meyering  <meyering@lucent.com>
83535
83536         * lib/strstr.c: Update from GNU libc.
83537
83538 2000-11-17  Akim Demaille  <akim@epita.fr>
83539
83540         * lib/obstack.h: Formatting changes.
83541         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
83542         prevent type checking.
83543         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
83544         cast the value to (void *): assigning a `foo *' to a `void *'
83545         variable is valid.
83546         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
83547
83548 2000-11-16  Jim Meyering  <meyering@lucent.com>
83549
83550         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
83551
83552 2000-11-11  Jim Meyering  <meyering@lucent.com>
83553
83554         * lib/error.c: Add a couple #includes, merging from GNU libc version.
83555
83556 2000-11-10  Jim Meyering  <meyering@lucent.com>
83557
83558         * lib/obstack.h: Update from GNU libc.
83559         * lib/obstack.c: Likewise.
83560
83561 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
83562
83563         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
83564
83565 2000-11-06  Paul Eggert  <eggert@twinsun.com>
83566
83567         * lib/getusershell.c (setusershell): Use rewind rather than
83568         fseek/fseeko, to avoid configuration hassles with fseeko.
83569         Don't bother opening SHELLS_FILE if shellstream is NULL;
83570         it's not necessary.
83571
83572 2000-11-05  Jim Meyering  <meyering@lucent.com>
83573
83574         * lib/makepath.h (make_dir): Declare.
83575         * lib/makepath.c (make_dir): Remove `static' attribute.
83576         Tweak a comment.
83577
83578 2000-11-04  Jim Meyering  <meyering@lucent.com>
83579
83580         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
83581
83582 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
83583
83584         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
83585         last one in a bucket, advance to the next bucket.
83586
83587 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
83588
83589         * lib/fnmatch.c: Do not comment out all the code if we are using
83590         the GNU C library, because in some cases we are replacing buggy
83591         code in the GNU C library itself.
83592
83593 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
83594
83595         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
83596         (regex_compile): Catch bogus \(\1\).
83597
83598 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83599
83600         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
83601         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
83602         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
83603
83604 2000-10-30  Paul Eggert  <eggert@twinsun.com>
83605
83606         * lib/error.h, getline.h, modechange.h:
83607         Remove "2000" from Copyright line, as the file hasn't been
83608         changed this year other than in the copyright notice.
83609
83610         * lib/xalloc.h: Add "2000" to Copyright line, as this file
83611         was changed this year.
83612
83613 2000-10-29  Jim Meyering  <meyering@lucent.com>
83614
83615         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
83616         renaming.
83617         * m4/ls-mntd-fs.m4: Likewise
83618
83619 2000-10-29  Jim Meyering  <meyering@lucent.com>
83620
83621         * lib/xstat.in: Fix grammar in comment.
83622
83623 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
83624
83625         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
83626         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
83627         doesn't define __restrict_arr.
83628
83629 2000-10-28  Jim Meyering  <meyering@lucent.com>
83630
83631         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
83632         (jm_PREREQ_MEMCHR): New function.
83633
83634 2000-10-28  Jim Meyering  <meyering@lucent.com>
83635
83636         * lib/memchr.c: Update from libc.
83637         Adjust for portability:
83638         [HAVE_STDLIB_H]: Include stdlib.h.
83639         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
83640         Undef __memchr, too.
83641         [!weak_alias]: Define __memchr to memchr.
83642
83643         * lib/regex.c: Update from libc.
83644         * lib/regex.h: Likewise.
83645         * lib/getopt1.c: Likewise.
83646         * lib/memcmp.c: Likewise.
83647
83648         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
83649         Avoid using fseek, when possible -- it's broken by design.
83650         Patch by Ulrich Drepper.
83651
83652 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
83653
83654         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
83655         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
83656         Giving in to popular pressure to shut up the compiler with casts.
83657
83658 2000-10-26  Jim Meyering  <meyering@lucent.com>
83659
83660         * lib/strftime.c: Update from libc.
83661
83662 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
83663
83664         * regex.c: More `unsigned char' -> `re_char' changes.
83665         Also change several `int' into `re_wchar_t'.
83666         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
83667         (PUSH_FAILURE_POINTER): Don't cast any more.
83668         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
83669         We want GCC to complain, since this piece of code makes
83670         re_match non-reentrant, which *should* be fixed.
83671         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
83672         (EXTEND_BUFFER): Use RETALLOC.
83673         (SET_LIST_BIT): Don't cast.
83674         (re_wchar_t): New type.
83675         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
83676         that those two functions will always properly return.
83677         (IMMEDIATE_QUIT_CHECK): Cast to void.
83678         (analyse_first): Use recursion rather than an explicit stack.
83679         (re_compile_fastmap): Can't fail anymore.
83680         (re_search_2): Don't check re_compile_fastmap for failure.
83681         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
83682         Now also sets the new value (passed in a new argument).
83683         (re_match_2_internal): Use it.
83684         Also, use a new var `reg' of type size_t when looping through regs
83685         rather than reuse the inappropriate `mcnt'.
83686
83687 2000-10-25  Jim Meyering  <meyering@lucent.com>
83688
83689         * lib/obstack.c: Update from libc.
83690
83691 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
83692
83693         * regex.c (regex_compile): Change the way of handling a range from
83694         a char less than 256 to a char not less than 256.
83695
83696 2000-10-24  Andrew Innes  <andrewi@gnu.org>
83697
83698         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
83699         NT-Emacs only.
83700         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
83701         so that re_search functions only quit when callers expect them to.
83702
83703 2000-10-23  Jim Meyering  <meyering@lucent.com>
83704
83705         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
83706         wrong.  That set_locale call must not have any side effects.
83707         From Paul Eggert.
83708
83709 2000-10-22  Jim Meyering  <meyering@lucent.com>
83710
83711         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
83712         [CYCLIC]: Remove now-unused definition.
83713
83714         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
83715         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
83716         Suggestion from Ulrich Drepper.
83717
83718 2000-10-21  Jim Meyering  <meyering@lucent.com>
83719
83720         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
83721         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
83722         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
83723
83724 2000-10-21  Jim Meyering  <meyering@lucent.com>
83725
83726         * lib/dirname.c (memrchr): Declare if necessary.
83727         (dir_name): Remove the restriction that there be no
83728         trailing slashes.  Now, this code skips past them, effectively
83729         ignoring them.
83730         [TEST_DIRNAME] (main): New unit tests.
83731
83732         * lib/memrchr.c: New file from GNU libc.
83733         Undef __memrchr, too.
83734         [!weak_alias]: Define __memrchr to memrchr.
83735         Guard weak_alias use with `#ifdef weak_alias'.
83736
83737 2000-10-21  Jim Meyering  <meyering@lucent.com>
83738
83739         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
83740         (dir_name): Use dir_name_r.
83741         * lib/dirname.h (dir_name_r): Declare it.
83742
83743 2000-10-17  Jim Meyering  <meyering@lucent.com>
83744
83745         * lib/quote.h (PARAMS): Define and use.
83746         Reported by Akim Demaille.
83747
83748         * lib/getopt.c: Update from libc.
83749
83750 2000-10-16  Jim Meyering  <meyering@lucent.com>
83751
83752         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
83753         setlocale.
83754         From Jan Fedak.
83755
83756 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
83757
83758         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
83759
83760 2000-09-25  Jim Meyering  <meyering@lucent.com>
83761
83762         * lib/md5.h (rol): Define (from GnuPG).
83763
83764         * lib/sha.c: Give credit (GnuPG) where due.
83765         (M): Use rol rather than open-coding it.
83766         Add a FIXME comment.
83767
83768 2000-09-21  Jim Meyering  <meyering@lucent.com>
83769
83770         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
83771         Reported by Michael Stone.
83772
83773 2000-09-20  Jim Meyering  <meyering@lucent.com>
83774
83775         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
83776         (noinst_HEADERS): Add sha.h.
83777         Based on code from Scott G. Miller and from GnuPG.
83778
83779 2000-09-18  Jim Meyering  <meyering@lucent.com>
83780
83781         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
83782         LIBS. Otherwise, everyone ends up linking with -lelf for some
83783         configurations.
83784         Reported by Mike Stone.
83785
83786 2000-09-15  Jim Meyering  <meyering@lucent.com>
83787
83788         * lib/regex.c: Update from libc.
83789
83790 2000-09-10  Jim Meyering  <meyering@lucent.com>
83791
83792         * lib/getopt.c (_getopt_internal): Update from glibc.
83793
83794 2000-09-09  Jim Meyering  <meyering@lucent.com>
83795
83796         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
83797         think it should be used as a general replacement for isascii.
83798         * lib/fnmatch.c: Likewise.
83799         * lib/mbswidth.c: Likewise
83800         * lib/regex.c: Likewise.
83801
83802         Don't use atoi.
83803         * lib/userspec.c: Include sys/param.h and limits.h.
83804         Include xstrtol.h.
83805         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
83806         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
83807         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
83808         UID, GID.  Check range.
83809
83810 2000-09-06  Jim Meyering  <meyering@lucent.com>
83811
83812         * lib/getopt.c (_getopt_internal): Update from glibc.
83813
83814 2000-08-30  Jim Meyering  <meyering@lucent.com>
83815
83816         * lib/strftime.c: Merge in changes from GNU libc.
83817
83818 2000-08-26  Jim Meyering  <meyering@lucent.com>
83819
83820         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
83821         * m4/fpending.m4: New file.
83822
83823 2000-08-26  Jim Meyering  <meyering@lucent.com>
83824
83825         * lib/closeout.c: Include "__fpending.h".
83826         (close_stdout_status): Return right away if there's nothing to flush.
83827
83828         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
83829         * lib/__fpending.c: New file.
83830         * lib/__fpending.h: New file.
83831
83832 2000-08-20  Jim Meyering  <meyering@lucent.com>
83833
83834         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
83835         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
83836         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
83837
83838 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
83839
83840         Improve fileutils installation on systems where running
83841         programs (like install) can't be unlinked.
83842         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
83843         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
83844
83845 2000-08-07  Paul Eggert  <eggert@twinsun.com>
83846
83847         Standardize on "memory exhausted" instead of "Memory exhausted"
83848         or "virtual memory exhausted".
83849         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
83850         "virtual memory exhausted".
83851         * lib/same.c (same_name): Invoke xalloc_die instead of printing
83852         our own message.
83853         * lib/userspec.c (parse_user_spec): Likewise.
83854         * lib/bumpalloc.h: comment fix
83855         * lib/same.c, userspec.c: Include xalloc.h.
83856
83857         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
83858         not char *const and pointing to a constant array.
83859         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
83860         (xrealloc): Comment fix.
83861
83862         * lib/userspec.c (parse_user_spec):
83863         Don't translate a message until just before returning,
83864         to avoid unnecessary translation.
83865
83866 2000-08-07  Jim Meyering  <meyering@lucent.com>
83867
83868         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
83869         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
83870         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
83871         getgroups.c, gethostname.c, getopt.h, group-member.c,
83872         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
83873         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
83874         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
83875         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
83876         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
83877         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
83878         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
83879         yesno.c: Back out Copyright date changes for each file with no change
83880         this year.  This eases coordination with other programs using the same
83881         source code modules.  From Paul Eggert.
83882
83883 2000-08-06  Paul Eggert  <eggert@twinsun.com>
83884
83885         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
83886         not char, for compatibility with glibc 2.1.3 strftime.c.
83887
83888 2000-08-03  Greg McGary  <greg@mcgary.org>
83889
83890         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
83891         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
83892         (EXTEND_BUFFER): Use them.
83893
83894 2000-08-01  Jim Meyering  <meyering@lucent.com>
83895
83896         * lib/dirname.c (ISSLASH): Define.
83897         (BACKSLASH_IS_PATH_SEPARATOR): Define.
83898         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
83899         both `\' and `/' may be use as path separators.
83900         Based on a patch from Prashant TR.
83901
83902 2000-07-31  Paul Eggert  <eggert@twinsun.com>
83903
83904         * lib/quotearg.c (quotearg_n_options): Don't make the initial
83905         slot vector a constant, since it might get modified.
83906
83907 2000-07-31  Jim Meyering  <meyering@lucent.com>
83908
83909         * lib/xmalloc.c: Use `virtual memory exhausted', not
83910         `Memory exhausted'.
83911         * lib/obstack.c (print_and_abort): Likewise.
83912
83913 2000-07-30  Paul Eggert  <eggert@twinsun.com>
83914
83915         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
83916         buffer, so that the caller can always quote one small
83917         component of a "memory exhausted" message in slot 0.
83918         From a suggestion by Jim Meyering.
83919
83920 2000-07-30  Jim Meyering  <meyering@lucent.com>
83921
83922         * lib/makepath.c (make_path): Quote the other instance, too.
83923
83924         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
83925         (STATIC_BUF_SIZE): Define.
83926         (quotearg_n_options): Use only statically allocated storage when
83927         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
83928         than STATIC_BUF_SIZE.
83929
83930 2000-07-29  Jim Meyering  <meyering@lucent.com>
83931
83932         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
83933         * lib/dirname.c (dir_name): Likewise.
83934
83935         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
83936         `/'.
83937
83938         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
83939         (dir_name): Assert that there are no trailing slashes.
83940
83941 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
83942
83943         * lib/mbswidth.h (mbswidth): Add a flags argument.
83944         (mbswidth): New declaration.
83945         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
83946         * lib/mbswidth.c (mbswidth): Add a flags argument.
83947         (mbsnwidth): New function.
83948
83949 2000-07-24  Jim Meyering  <meyering@lucent.com>
83950
83951         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
83952
83953 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83954
83955         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
83956
83957 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83958
83959         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
83960         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
83961         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
83962         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
83963         invoke multibyte primitives.
83964
83965 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83966
83967         * lib/quotearg.c:
83968         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
83969         so that mbstate_t is always defined.
83970
83971         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
83972         be 1 in at least one GCC installation, and this configuration
83973         error is likely to be common.  Ignoring MB_LEN_MAX hurts
83974         performance on hosts that have mbrtowc but have only unibyte
83975         locales, but I assume these hosts are rare.
83976
83977 2000-07-23  Paul Eggert  <eggert@twinsun.com>
83978
83979         * lib/mbswidth.c (_XOPEN_SOURCE):
83980         Don't define; this causes problems on Solaris 7.
83981         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
83982
83983 2000-07-23  Jim Meyering  <meyering@lucent.com>
83984
83985         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
83986         too: getgrgid, getpwuid, getuid.
83987
83988 2000-07-23  Jim Meyering  <meyering@lucent.com>
83989
83990         * lib/basename.c (base_name): Add an assertion.
83991
83992 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
83993
83994         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
83995         shadow its mbsinit function.
83996
83997 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
83998
83999         * lib/mbswidth.h: New file.
84000         * lib/mbswidth.c: New file.
84001         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
84002         (noinst_HEADERS): Add mbswidth.h.
84003
84004 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
84005
84006         * lib/config.charset: Add support for FreeBSD. Improve support for
84007         HP-UX and IRIX 6.
84008
84009 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
84010
84011         * m4/mbswidth.m4: New file.
84012         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
84013
84014 2000-07-15  Jim Meyering  <meyering@lucent.com>
84015
84016         * lib/makepath.c: Include quote.h.
84017         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
84018         corresponding argument in a `quote (...)' call.
84019         Give better diagnostics.
84020
84021         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
84022         (noinst_HEADERS): Add quote.h.
84023
84024         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
84025         from tar's src/misc.c.
84026         * lib/quote.h: New file.  Prototypes for same.
84027
84028 2000-07-14  Paul Eggert  <eggert@twinsun.com>
84029
84030         From a suggestion by Bruno Haible.
84031         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
84032         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
84033         to decide whether to define the BeOS workaround macro;
84034         this adjusts to the change to AC_MBSTATE_T.
84035
84036 2000-07-14  Jim Meyering  <meyering@lucent.com>
84037
84038         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
84039         jm_AC_TYPE_UINTMAX_T.
84040
84041 2000-07-13  Paul Eggert  <eggert@twinsun.com>
84042
84043         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
84044
84045         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
84046         quotearg_buffer_restyled): Add support for
84047         clocale_quoting_style.  Undo previous change to
84048         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
84049         and "{RIGHT QUOTATION MARK}" msgids.
84050
84051 2000-07-10  Paul Eggert  <eggert@twinsun.com>
84052
84053         From a suggestion by Bruno Haible.
84054         * m4/mbstate_t.m4 (AC_MBSTATE_T):
84055         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
84056         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
84057         and mbstate_t, to a single-part test that simply defines mbstate_t.
84058         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
84059         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
84060
84061 2000-07-10  Jim Meyering  <meyering@lucent.com>
84062
84063         * m4/strerror_r.m4: Mirror the correction made in autoconf.
84064
84065         * m4/gnu-source.m4: Output to confdefs.h directly.
84066         Suggestion from Akim Demaille.
84067
84068 2000-07-09  Paul Eggert  <eggert@twinsun.com>
84069
84070         The old behavior of quoting `like this' doesn't look good with
84071         newer, ISO-style fonts.  See:
84072         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
84073
84074         Instead, quote "like this" by default.  Let the translator
84075         tailor the locale-specific quoting behavior by providing
84076         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
84077
84078         * lib/quotearg.c (N_): New macro.
84079         (gettext_default): New function.
84080         (quotearg_buffer_restyled): Use
84081         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
84082         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
84083
84084 2000-07-09  Jim Meyering  <meyering@lucent.com>
84085
84086         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
84087         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
84088
84089         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
84090         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
84091
84092 2000-07-09  Jim Meyering  <meyering@lucent.com>
84093
84094         * lib/Most files: Update copyright dates to include 2000.
84095
84096 2000-07-08  Jim Meyering  <meyering@lucent.com>
84097
84098         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
84099         if not defined.
84100         (xgethostname): Remove now-unnecessary #ifdef.
84101         Move declaration of `err' into loop where it's used.
84102
84103 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84104         and Bruno Haible  <haible@clisp.cons.org>
84105
84106         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
84107         only if the test for an object-type mbstate_t fails.  This
84108         prevents us from mistakenly reporting that mbstate_t is a
84109         system object type after we "#define mbstate_t int" to work
84110         around its lack.
84111
84112 2000-07-05  Paul Eggert  <eggert@twinsun.com>
84113         and Bruno Haible  <haible@clisp.cons.org>
84114
84115         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
84116
84117 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84118
84119         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
84120         to strerror_r.
84121         Include <ctype.h> for use of isalpha.
84122
84123 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84124
84125         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
84126         by allocating a larger buffer. Test the gethostname return value for
84127         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
84128         returns an error and ENAMETOOLONG isn't defined.
84129
84130 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
84131
84132         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
84133         dimension.
84134
84135 2000-07-04  Jim Meyering  <meyering@lucent.com>
84136
84137         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
84138         of the deprecated AC_CHECKING.
84139
84140 2000-07-04  Jim Meyering  <meyering@lucent.com>
84141
84142         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
84143         Reported by Bruno Haible.
84144
84145 2000-07-04  Jim Meyering  <meyering@lucent.com>
84146
84147         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
84148         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
84149         lacks mbrtowc.
84150
84151 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84152
84153         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
84154         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
84155
84156 2000-07-03  Paul Eggert  <eggert@twinsun.com>
84157         and Bruno Haible  <haible@clisp.cons.org>
84158
84159         * lib/quotearg.c (mbrtowc):
84160         Assign to *pwc, and return 1 only if result is nonzero.
84161         (iswprint): Use ISPRINT when substituting our own mbrtowc.
84162
84163 2000-07-03  Jim Meyering  <meyering@lucent.com>
84164
84165         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
84166
84167 2000-07-03  Jim Meyering  <meyering@lucent.com>
84168
84169         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
84170         This is necessary to get a definition of e.g., UTMP_FILE on
84171         HP-UX 10.20.
84172         From Bob Proulx.
84173
84174 2000-07-02  Jim Meyering  <meyering@lucent.com>
84175
84176         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
84177
84178         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
84179         AC_LIBOBJ(function_name).
84180         * m4/chown.m4: Likewise.
84181         * m4/fnmatch.m4: Likewise.
84182         * m4/ftruncate.m4: Likewise.
84183         * m4/getgroups.m4: Likewise.
84184         * m4/getline.m4: Likewise.
84185         * m4/group-member.m4: Likewise.
84186         * m4/jm-macros.m4: Likewise.
84187         * m4/lstat.m4: Likewise.
84188         * m4/malloc.m4: Likewise.
84189         * m4/memcmp.m4: Likewise.
84190         * m4/nanosleep.m4: Likewise.
84191         * m4/putenv.m4: Likewise.
84192         * m4/realloc.m4: Likewise.
84193         * m4/regex.m4: Likewise.
84194         * m4/stat.m4: Likewise.
84195         * m4/strftime.m4: Likewise.
84196
84197 2000-07-02  Jim Meyering  <meyering@lucent.com>
84198
84199         * lib/quotearg.c (mbstate_t): Don't define here.
84200
84201 2000-07-02  Jim Meyering  <meyering@lucent.com>
84202
84203         * lib/nanosleep.c (SIGCONT): Define if not already defined.
84204
84205 2000-07-01  Jim Meyering  <meyering@lucent.com>
84206
84207         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
84208
84209 2000-07-01  Jim Meyering  <meyering@lucent.com>
84210
84211         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
84212         problem.
84213
84214 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84215
84216         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
84217         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
84218
84219 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
84220
84221         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
84222         per change in ../m4/ls-mntd-fs.m4.
84223         (read_filesystem_list): Ignore symbolic links.
84224
84225 2000-06-29  Jim Meyering  <meyering@lucent.com>
84226
84227         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
84228         for declaration of strcmp.
84229
84230         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
84231
84232         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
84233         Avoid warning by casting result to `char *' to remove `const'.
84234
84235 2000-06-28  Jim Meyering  <meyering@lucent.com>
84236
84237         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
84238         included by quotearg.c, for which we perform this test.  From
84239         Bruno Haible.
84240
84241 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84242
84243         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
84244         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
84245         <utmpx.h> exists, put readutmp.o into LIBOBJS.
84246
84247 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
84248
84249         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
84250
84251 2000-06-26  Paul Eggert  <eggert@twinsun.com>
84252
84253         savedir now sets errno on failure and invokes xmalloc to get memory.
84254         Fix a couple of other minor bugs while we're at it.
84255
84256         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
84257         (NAMLEN): Remove macro.
84258         (malloc, realloc): Remove decls.
84259         (stpcpy): Likewise.
84260         ("xalloc.h"): Include.
84261         (NAME_SIZE_DEFAULT): New macro.
84262         (savedir): Use xmalloc / xrealloc to allocate memory.
84263         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
84264         Skip "" directory entries.
84265         Use strlen to calculate directory entry length, since the old method
84266         is rarely used these days and isn't worth supporting.
84267         Don't use a pointer after freeing it.
84268         Check for integer overflow when calculating allocation size.
84269         Use memcpy to copy entries, instead of stpcpy.
84270         Set errno properly when returning NULL.
84271         Check for readdir error.
84272
84273 2000-06-26  Jim Meyering  <meyering@lucent.com>
84274
84275         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
84276
84277 2000-06-25  Jim Meyering  <meyering@lucent.com>
84278
84279         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
84280         Linux header bug when _XOPEN_SOURCE is defined to 500.
84281
84282 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84283
84284         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
84285         deficiency.
84286
84287 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
84288
84289         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
84290         Include xalloc.h.
84291         Don't include <stdlib.h>.  Don't declare malloc, realloc.
84292
84293 2000-06-24  Jim Meyering  <meyering@lucent.com>
84294
84295         * m4/strerror_r.m4: Revive this file -- to try out an experimental
84296         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
84297         for which strerror does return char*, but which lacks a conveniently
84298         accessible declaration of the function.  If the compile-test says
84299         strerror_r doesn't work, then resort to a `run'-test that works on
84300         BeOS and segfaults on DEC Unix.
84301
84302 2000-06-24  Jim Meyering  <meyering@lucent.com>
84303
84304         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
84305
84306 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84307
84308         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
84309         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
84310
84311 2000-06-23  Paul Eggert  <eggert@twinsun.com>
84312
84313         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
84314         (mbrtowc, mbstate_t): Define substitutes if
84315         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
84316         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
84317         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
84318
84319 2000-06-23  Jim Meyering  <meyering@lucent.com>
84320
84321         * m4/afs.m4: Add missing AC_MSG_RESULT.
84322         Reported by Bruno Haible.
84323
84324         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
84325         Suggestion from Bruno Haible.
84326
84327 2000-06-23  Jim Meyering  <meyering@lucent.com>
84328
84329         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
84330
84331 2000-06-21  Jim Meyering  <meyering@lucent.com>
84332
84333         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
84334
84335 2000-06-21  Jim Meyering  <meyering@lucent.com>
84336
84337         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
84338         (noinst_HEADERS): Add getstr.h.
84339
84340         * lib/getline.c (getstr): Move into a separate file.
84341         * lib/getstr.c (getstr): New file, extracted from getline.c, with
84342         the following changes: new parameter, delim2; both delim[12]
84343         parameters have type `int', not `char'.  The latter would lose
84344         with 8-bit delimiters.
84345         * lib/getstr.h: New file.
84346
84347 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84348
84349         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
84350         than 1024, return a memory chunk of least possible size, instead
84351         of size PATH_MAX + 2. In the loop, increment the size proportionally.
84352         Use free/xmalloc instead of xrealloc to avoid copying for very long
84353         paths.
84354
84355 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84356
84357         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
84358         the empty string.
84359
84360 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
84361
84362         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
84363         address, not strdup.  Include <stdlib.h> and don't declare free().
84364
84365 2000-06-19  Jim Meyering  <meyering@lucent.com>
84366
84367         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
84368
84369 2000-06-18  Jim Meyering  <meyering@lucent.com>
84370
84371         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
84372
84373         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
84374         `checking whether...' message to be consistent with that of the
84375         lstat test.
84376
84377 2000-06-18  Jim Meyering  <meyering@lucent.com>
84378
84379         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
84380         Besides, these days every porting target provides a mkdir function.
84381
84382         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
84383         needed. (this snippet comes from src/system.h).
84384
84385 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
84386
84387         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
84388
84389 2000-06-15  Paul Eggert  <eggert@twinsun.com>
84390
84391         * lib/human.c (adjust_value): New function.
84392         (human_readable_inexact): Apply rounding style even when
84393         printing approximate values.
84394
84395 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84396
84397         * lib/human.c (human_readable_inexact): Allow an input block
84398         size that is not a multiple of the output block size, and vice versa.
84399         Reported by Piergiorgio Sartor.
84400
84401 2000-06-14  Paul Eggert  <eggert@twinsun.com>
84402
84403         * lib/getdate.y (get_date): Apply relative times after time
84404         zone indicator, not before.  Reported by Todd A. Jacobs.
84405
84406 2000-06-13  Jim Meyering  <meyering@lucent.com>
84407
84408         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
84409
84410         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
84411
84412 2000-06-12  Paul Eggert  <eggert@twinsun.com>
84413
84414         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
84415
84416 2000-06-12  Jim Meyering  <meyering@lucent.com>
84417
84418         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
84419         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
84420         optional argument.
84421         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
84422         the optional argument, `lib'.
84423
84424 2000-06-08  Jim Meyering  <meyering@lucent.com>
84425
84426         * m4/largefile.m4: Remove file (now that it's part of autoconf).
84427
84428 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84429
84430         Rewrite largefile configuration so that we don't need to run
84431         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
84432         AC_CANONICAL_HOST in configure.in -- jmm]
84433
84434         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
84435         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
84436         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
84437         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
84438         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
84439         All uses changed.
84440         Instead of inspecting the output of getconf, try to compile the
84441         test program without and with the macro definition.
84442         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
84443         for getconf.  Instead, check for the needed flags by compiling
84444         test programs.
84445
84446 2000-06-04  Paul Eggert  <eggert@twinsun.com>
84447
84448         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
84449
84450 2000-06-04  Jim Meyering  <meyering@lucent.com>
84451
84452         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
84453         SunOS 4.1.4 for which gid_t is an unsigned type.
84454
84455 2000-06-03  Jim Meyering  <meyering@lucent.com>
84456
84457         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
84458         now that autoconf requires that.
84459
84460         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
84461         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
84462         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
84463
84464 2000-06-03  Jim Meyering  <meyering@lucent.com>
84465
84466         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
84467
84468 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84469
84470         * m4/glibc21.m4: New file.
84471         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
84472
84473 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
84474
84475         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
84476         newer, don't install charset.alias.
84477         * lib/config.charset: Change the Linux/glibc rules so they become empty
84478         on glibc-2.1 or newer.
84479
84480 2000-06-02  Jim Meyering  <meyering@lucent.com>
84481
84482         * lib/mountlist.c: Back out last change.  Instead, do this...
84483         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
84484         me_dummy member using the same `ignore'-testing code.
84485         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
84486         fs_type strings.
84487         From Mark D. Roth.
84488
84489 2000-05-29  Jim Meyering  <meyering@lucent.com>
84490
84491         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
84492         mounts with the `ignore' attribute.  Based on a patch from
84493         Mark D. Roth.
84494
84495 2000-05-28  Jim Meyering  <meyering@lucent.com>
84496
84497         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
84498         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84499         * m4/stat.m4: Likewise.
84500         * m4/lstat.m4: Likewise.
84501         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
84502
84503         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
84504         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
84505
84506 2000-05-26  Jim Meyering  <meyering@lucent.com>
84507
84508         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
84509
84510 2000-05-24  Jim Meyering  <meyering@lucent.com>
84511
84512         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
84513         autoconf requires that.
84514         * m4/lib-check.m4: Likewise.
84515         * m4/jm-macros.m4: Likewise.
84516         * m4/strftime.m4: Likewise.
84517
84518         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
84519         AC_CHECK_DECLS, now that autoconf requires that.
84520
84521 2000-05-22  Jim Meyering  <meyering@lucent.com>
84522
84523         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84524         * m4/lstat.m4: Likewise.
84525
84526 2000-05-22  Jim Meyering  <meyering@lucent.com>
84527
84528         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
84529
84530 2000-05-20  Jim Meyering  <meyering@lucent.com>
84531
84532         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
84533         (jm_PREREQ): Use it.
84534
84535 2000-05-18  Jim Meyering  <meyering@lucent.com>
84536
84537         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
84538         back, too, since it may have been modified by allocate_entry.
84539         (hash_delete): Rewrite to use neither the assignment operator
84540         nor the comma operator in an if-expression.
84541
84542 2000-05-15  Paul Eggert  <eggert@twinsun.com>
84543
84544         * lib/closeout.c:
84545         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
84546         Remove; no longer needed.
84547         "quotearg.h": Add include.
84548         (file_name): Do not bother to explicitly initialize to NULL; it's less
84549         efficient on some hosts.
84550         (close_stdout_status): Remove test as to whether stdout was already
84551         closed; it breaks for the case "echo x | sort >&-".
84552         Quote file name colons.
84553         Do not assume that _("write error") lacks format strings.
84554
84555 2000-05-15  Jim Meyering  <meyering@lucent.com>
84556
84557         * lib/version-etc.c (version_etc_copyright): Update the copyright
84558         string used in all --version output.
84559
84560 2000-05-14  Jim Meyering  <meyering@lucent.com>
84561
84562         * lib/closeout.c (close_stdout_set_file_name): New function.
84563         (close_stdout_status): Use new file-scoped global.
84564         Return right away if fstat says the stdout file descriptor is invalid.
84565         * lib/closeout.h (close_stdout_set_file_name): Declare.
84566
84567 2000-05-10  Jim Meyering  <meyering@lucent.com>
84568
84569         * lib/closeout.c [default_exit_status]: New file-scoped variable.
84570         (close_stdout_set_status): New function.
84571         * lib/closeout.h (close_stdout_set_status): Declare.
84572
84573 2000-05-09  Jim Meyering  <meyering@lucent.com>
84574
84575         * m4/gettext.m4: Rename this...
84576         * m4/libintl.m4: ...to this.
84577
84578 2000-05-08  Jim Meyering  <meyering@lucent.com>
84579
84580         * lib/long-options.c: Don't include closeout.h.
84581         (parse_long_options): Don't call close_stdout for --version.
84582
84583 2000-05-06  Paul Eggert  <eggert@twinsun.com>
84584
84585         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
84586         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
84587         2.1.3 bug.  This avoids a clash when files like regex.c define
84588         _GNU_SOURCE.
84589
84590 2000-05-06  Jim Meyering  <meyering@lucent.com>
84591
84592         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
84593         (AC_REPLACE_FUNCS): Add strnlen.
84594
84595         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
84596         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
84597
84598         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
84599         AC_SEARCH_LIBS call for nanosleep.
84600         (LIB_NANOSLEEP): Set and AC_SUBST.
84601
84602 2000-05-06  Jim Meyering  <meyering@lucent.com>
84603
84604         * lib/strnlen.c: Undefine __strnlen and strnlen.
84605         [!weak_alias]: Define __strnlen to strnlen.
84606
84607         * lib/atexit.c: New file, from libiberty.
84608
84609 2000-05-06  Jim Meyering  <meyering@lucent.com>
84610
84611         * lib/closeout.c (close_stdout_status): Also check for errors on the
84612         stderr stream.
84613
84614 2000-05-05  Jim Meyering  <meyering@lucent.com>
84615
84616         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
84617         AC_SEARCH_LIBS call for clock_gettime.
84618         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
84619
84620         * m4/search-libs.m4: Update from autoconf.
84621
84622         su doesn't work on Solaris 2.6.
84623         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
84624         <shadow.h>.  Reported by Dragos Harabor.
84625
84626 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
84627
84628         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
84629         memcpy instead of xmalloc, xrealloc, path_concat.
84630         (locale_charset): Treat empty environment variables as absent.
84631         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
84632
84633 2000-05-04  Jim Meyering  <meyering@lucent.com>
84634
84635         * lib/getopt.c: Update from glibc.
84636         * lib/obstack.c: Likewise.
84637         * lib/obstack.h: Likewise.
84638         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
84639         file
84640
84641         * lib/regex.h: Likewise.
84642         * lib/strndup.c: Likewise.
84643         * lib/strnlen.c: New file, from glibc.
84644
84645 2000-05-03  Jim Meyering  <meyering@lucent.com>
84646
84647         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
84648
84649 2000-05-02  Paul Eggert  <eggert@twinsun.com>
84650
84651         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
84652         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
84653         compile-time test, rather than inspecting host and OS, to
84654         decide whether to define _LARGEFILE_SOURCE.
84655
84656 2000-05-01  Jim Meyering  <meyering@lucent.com>
84657
84658         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
84659
84660         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
84661         Based on a patch from Bruno Haible.
84662
84663 2000-05-01  Jim Meyering  <meyering@lucent.com>
84664
84665         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
84666
84667 2000-04-29  Jim Meyering  <meyering@lucent.com>
84668
84669         * lib/path-concat.c: Declare strdup only if it's not defined.
84670         * lib/canon-host.c: Likewise.
84671
84672 2000-04-28  Jim Meyering  <meyering@lucent.com>
84673
84674         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
84675         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
84676         is included first, then limits.h is included by locale.h by libintl.h.
84677         From John David Anglin.
84678
84679 2000-04-25  Jim Meyering  <meyering@lucent.com>
84680
84681         * lib/makepath.c (S_IRWXUGO): Define.
84682         (make_path): Always perform explicit chmod if MODE specifies any
84683         of the `special' permission bits.  Prompted by a bug report against
84684         install from Mate Wierdl and Joost van Baal.
84685
84686 2000-04-18  Jim Meyering  <meyering@lucent.com>
84687
84688         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
84689         (jm_PREREQ): Use it.
84690
84691 2000-04-18  Jim Meyering  <meyering@lucent.com>
84692
84693         * lib/README: New file.
84694
84695         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
84696         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
84697
84698 2000-04-17  Jim Meyering  <meyering@lucent.com>
84699
84700         Get it right :-)
84701         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
84702         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
84703         Suggestion from Akim Demaille.
84704
84705 2000-04-17  Jim Meyering  <meyering@lucent.com>
84706
84707         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
84708         the definition of it to rpl_strftime also defined-away the system's
84709         declaration.
84710
84711 2000-04-15  Jim Meyering  <meyering@lucent.com>
84712
84713         Use `C' to denote so-called `contiguous' files, the same way
84714         that tar does.
84715         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
84716         (ftypelet): Use S_ISCTG.
84717         From Michael Deutschmann.
84718
84719 2000-04-14  Jim Meyering  <meyering@lucent.com>
84720
84721         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
84722         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
84723         clobbered.
84724
84725 2000-04-14  Jim Meyering  <meyering@lucent.com>
84726
84727         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
84728
84729 2000-04-13  Jim Meyering  <meyering@lucent.com>
84730
84731         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
84732         AH_VERBATIM to insert required #ifndef into config.h.in.
84733         Suggestion from Akim Demaille.
84734
84735 2000-04-12  Jim Meyering  <meyering@lucent.com>
84736
84737         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
84738         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
84739         Christian Krackowizer.
84740
84741         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
84742         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
84743         (AC_SYS_LARGEFILE): Require.
84744         (AM_C_PROTOTYPES): Require.
84745
84746 2000-04-08  Jim Meyering  <meyering@lucent.com>
84747
84748         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
84749         names don't conflict.  Reported by Eli Zaretskii.
84750
84751 2000-04-07  Jim Meyering  <meyering@lucent.com>
84752
84753         * lib/putenv.c: Move inclusion of errno.h so it follows that of
84754         sys/types.h, to work around system header problems on AIX 3.2.5.
84755         From Bruno Haible.
84756
84757 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
84758
84759         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
84760         bug.  Deal with the different error behavior of Irix iconv.
84761
84762 2000-04-05  Paul Eggert  <eggert@twinsun.com>
84763
84764         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
84765         IRIX if the installer said otherwise.
84766
84767 2000-04-05  Jim Meyering  <meyering@lucent.com>
84768
84769         Portability tweaks required for ultrix4.3.
84770         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
84771         (jm_CHECK_DECLS): Add getutent to the list of functions.
84772         (_jm_DECL_HEADERS): Add utmpx.h.
84773         From John David Anglin.
84774
84775         * m4/strftime.m4: Back out the 2000-04-02 change.
84776         Instead of that change, simply undefine putenv in the test program.
84777
84778 2000-04-05  Jim Meyering  <meyering@lucent.com>
84779
84780         Portability tweaks required for ultrix4.3.
84781         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
84782         getutent.
84783         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
84784         * lib/canon-host.c: Declare strdup.
84785         * lib/path-concat.c: Likewise.
84786         From John David Anglin.
84787
84788 2000-04-04  Jim Meyering  <meyering@lucent.com>
84789
84790         Be more DOS 8.3-friendly.
84791         * lib/ref-add.sin: Renamed from ref-add.sed.in.
84792         * lib/ref-del.sin: Renamed from ref-del.sed.in.
84793         * lib/Makefile.am: Reflect renaming.
84794         Reported by Eli Zaretskii.
84795
84796         Use a temporary file name that won't clash with `charset.alias'
84797         in the DOS 8.3 name space.
84798         * lib/Makefile.am (charset_tmp): Define.
84799         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
84800         (uninstall-local): Likewise.
84801         Reported by Eli Zaretskii.
84802
84803 2000-04-03  Jim Meyering  <meyering@lucent.com>
84804
84805         * m4/gettext.m4: Fix typo in comment.
84806
84807         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
84808         textutils/configure.in).  Suggestion from Paul Eggert.
84809         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
84810
84811 2000-04-02  Paul Eggert  <eggert@twinsun.com>
84812
84813         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
84814         variable in the shell rather than using putenv, which isn't
84815         portable.  This avoids the configure-time inter-test dependency
84816         on the potentially-renamed putenv function.
84817
84818 2000-03-30  Paul Eggert  <eggert@twinsun.com>
84819
84820         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
84821         before checking struct stat.st_blksize, so that
84822         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
84823
84824 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84825
84826         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
84827         since strftime.c uses HAVE_STRFTIME to decide whether to use
84828         the underlying strftime.
84829
84830 2000-03-29  Paul Eggert  <eggert@twinsun.com>
84831
84832         * lib/time/strftime.c (my_strftime): Make sure we call the system
84833         strftime, not ourselves, when invoking the underlying strftime.
84834
84835 2000-03-24  Jim Meyering  <meyering@lucent.com>
84836
84837         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
84838         (charset_alias): Define.
84839         (install-exec-local): Factor out common code.
84840         (uninstall-local): Split lines longer than 80.
84841         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
84842         (SUFFIXES): Define.
84843         (.sed.in.sed): New rule.  Don't redirect directly to $@.
84844         (CLEANFILES): Add ref-add.sed and ref-del.sed.
84845
84846 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
84847
84848         * lib/config.charset: Output a line containing "Packages using this
84849         file".
84850         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
84851         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
84852         ref-del.sed): New rules.
84853
84854 2000-03-17  Jim Meyering  <meyering@lucent.com>
84855
84856         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
84857         Otherwise, include <strings.h>
84858
84859 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
84860
84861         * lib/unicodeio.c (utf8_wctomb): New function.
84862         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
84863         format instead of in UCS-4 with platform dependent endianness.
84864
84865 2000-03-10  Jim Meyering  <meyering@lucent.com>
84866
84867         * m4/lib-check.m4: Look for getspnam in -lgen, too.
84868         From Marco Franzen.
84869
84870 2000-03-07  Paul Eggert  <eggert@twinsun.com>
84871
84872         * lib/savedir.c (savedir): Work even if directory size is
84873         negative; this can happen with some screwy NFS configurations.
84874
84875 2000-03-06  Jim Meyering  <meyering@lucent.com>
84876
84877         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
84878         if it's NULL (because we ran out of memory).  From Bruno Haible.
84879
84880 2000-03-05  Jim Meyering  <meyering@lucent.com>
84881
84882         * lib/localcharset.c ("path-concat.h"): Include.
84883         (get_charset_aliases): Use path_concat instead of ANSI string
84884         concatenation.
84885
84886         * lib/unicodeio.h (PARAMS): Define.
84887         Use it to guard prototype.
84888
84889 2000-03-04  Jim Meyering  <meyering@lucent.com>
84890
84891         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
84892         for lib/localcharset.c.
84893
84894 2000-03-04  Jim Meyering  <meyering@lucent.com>
84895
84896         * lib/Makefile.am (install-exec-local): Create $(libdir) before
84897         installing into it.
84898         (uninstall-local): Uncomment this rule so `make distcheck' works
84899         once again.
84900
84901         * lib/unicodeio.c (<errno.h>): Include it.
84902         (errno): Declare if not defined.
84903
84904         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
84905
84906         * lib/config.charset: New version, incorporating remarks from a linux
84907         i18n mailing list.  From Bruno Haible.
84908
84909 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
84910
84911         * m4/codeset.m4: New file.
84912         * m4/iconv.m4: New file.
84913         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
84914
84915 2000-03-03  Jim Meyering  <meyering@lucent.com>
84916
84917         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
84918
84919 2000-03-02  Jim Meyering  <meyering@lucent.com>
84920
84921         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
84922         the messages come out on separate lines.
84923
84924         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
84925         rather than jm_CHECK_DECLARATIONS.
84926         * m4/decl.m4: Remove now-unused file.
84927
84928         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
84929         geteuid.
84930
84931 2000-03-02  Jim Meyering  <meyering@lucent.com>
84932
84933         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
84934
84935 2000-03-01  Jim Meyering  <meyering@lucent.com>
84936
84937         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
84938         * lib/unicodeio.c: Likewise.
84939
84940 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
84941
84942         * lib/config.charset: New file.
84943         * lib/localcharset.c: New file.
84944         * lib/unicodeio.h, lib/unicodeio.c: New files.
84945         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
84946         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
84947         (noinst_HEADERS): Add unicodeio.h.
84948         (all-local, install-exec-local, charset.alias): New targets.
84949
84950 2000-02-28  Paul Eggert  <eggert@twinsun.com>
84951
84952         * lib/quotearg.c (ALERT_CHAR): New macro.
84953         (quotearg_buffer_restyled): Use it.
84954
84955 2000-02-27  Jim Meyering  <meyering@lucent.com>
84956
84957         * m4/check-decl.m4: Add getenv to the list.
84958
84959 2000-02-27  Jim Meyering  <meyering@lucent.com>
84960
84961         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
84962         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
84963
84964         * lib/backupfile.c: Guard inclusion of stdlib.h with
84965         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
84966         Declare malloc if needed.
84967
84968         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
84969         `#ifndef HAVE_DECL..'
84970         now that autoconf always defines the HAVE_DECL_ symbols.
84971         * lib/human.c: Likewise.
84972         * lib/same.c: Likewise.
84973         * lib/strtoumax.c: Likewise.
84974
84975         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
84976         declaration check was not run.
84977         * lib/hash.c: Likewise.
84978         * lib/human.c: Likewise.
84979         * lib/same.c: Likewise.
84980         * lib/strtoumax.c: Likewise.
84981
84982         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
84983         `.', then first look up the entire `.'-containing string as a login
84984         name.
84985
84986 2000-02-23  Jim Meyering  <meyering@lucent.com>
84987
84988         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
84989         in place of my hack.
84990
84991 2000-02-18  Paul Eggert  <eggert@twinsun.com>
84992
84993         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
84994         (textint): New typedef.
84995         (parser_control): Member year changed from int to textint.
84996         All uses changed.
84997         (YYSTYPE): Removed; replaced by %union with int and textint members.
84998         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
84999         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
85000         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
85001         (tSNUMBER, tUNUMBER): Now of type <textintval>.
85002         (date, number, to_year): Use width of number in digits, not its value,
85003         to determine whether it's a 2-digit year, or a 2-digit time.
85004         (yylex): Store number of digits of numeric tokens.
85005         Reported by John Kendall.
85006
85007         (parser_control): Changed from struct parser_control to typedef (for
85008         consistency).  All uses changed.
85009
85010         (tID): Removed; not used.
85011         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
85012
85013 2000-02-14  Paul Eggert  <eggert@twinsun.com>
85014
85015         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
85016         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
85017
85018 2000-02-12  Jim Meyering  <meyering@lucent.com>
85019
85020         * lib/userspec.c (ISDIGIT): Define it.
85021         (isdigit): Remove definition.
85022         (is_number): Use ISDIGIT, not isdigit.
85023         <libintl.h>: Include.
85024         (_ and N_): Define.
85025         (parse_user_spec): Mark translatable strings.
85026
85027 2000-02-10  Jim Meyering  <meyering@lucent.com>
85028
85029         With these changes, nanosleep.[ch] are finally enough like the other
85030         lib/* replacement files to compile on a few more losing systems.
85031
85032         * lib/nanosleep.h: Don't include config.h.
85033         Remove prototype from declaration of nanosleep.
85034         (PARAMS): Remove now-unneeded definition.
85035         * lib/nanosleep.c: #undef nanosleep.
85036         (rpl_nanosleep): Rename from nanosleep.
85037
85038 2000-02-10  Jim Meyering  <meyering@lucent.com>
85039
85040         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
85041         gnu_nanosleep to rpl_nanosleep.
85042
85043 2000-02-09  Jim Meyering  <meyering@lucent.com>
85044
85045         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
85046         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
85047
85048 2000-02-08  Akim Demaille  <akim@epita.fr>
85049
85050         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
85051         `[' and `]' and remove uses of `changequote'.
85052         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
85053         (AC_SYS_LARGEFILE): Likewise.
85054         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
85055         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
85056         of changequote.
85057         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
85058         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
85059         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
85060         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
85061
85062 2000-02-05  Jim Meyering  <meyering@lucent.com>
85063
85064         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
85065         Remove explicit use of AC_HEADER_TIME.  It is required by
85066         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
85067         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
85068         in autoconf whereby the expansion of the latter ended up preceding
85069         the expansion of its prerequisite, AC_HEADER_TIME.
85070         Reported by Volker Borchert.
85071
85072 2000-02-03  Jim Meyering  <meyering@lucent.com>
85073
85074         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
85075
85076 2000-02-03  Jim Meyering  <meyering@lucent.com>
85077
85078         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
85079         rather than with `#if HAVE_UTMPNAME'.
85080
85081 2000-02-02  Jim Meyering  <meyering@lucent.com>
85082
85083         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
85084         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
85085         Reported by Eli Zaretskii.
85086
85087 2000-02-01  Jim Meyering  <meyering@lucent.com>
85088
85089         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
85090
85091 2000-01-31  Jim Meyering  <meyering@lucent.com>
85092
85093         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
85094         functions.  Add the time.h and sys/time.h headers along with the
85095         AC_REQUIRE'ment of AC_HEADER_TIME.
85096
85097 2000-01-31  Jim Meyering  <meyering@lucent.com>
85098
85099         * lib/nanosleep.h (nanosleep): Guard declaration with
85100         `#if ! HAVE_DECL_NANOSLEEP'.
85101         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
85102         the declaration in that vendor's sys/timers.h.
85103         Reported by Christian Krackowizer.
85104
85105         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
85106         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
85107         (ISPRINT): Likewise.
85108         Reported by Tom Tromey.
85109
85110 2000-01-30  Jim Meyering  <meyering@lucent.com>
85111
85112         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
85113
85114         * m4/prereq.m4 (utmp_includes): Define.
85115         Check for ut_user and ut_name members in both struct utmpx
85116         and struct utmp.
85117
85118 2000-01-30  Jim Meyering  <meyering@lucent.com>
85119
85120         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
85121         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
85122         header files where only utmpx.ut_user is declared.
85123
85124         * lib/readutmp.h (UT_USER): Define.
85125
85126 2000-01-29  Jim Meyering  <meyering@lucent.com>
85127
85128         * m4/lib-check.m4: New file containing library-related checks from
85129         fileutils and sh-utils (textutils had none).
85130
85131 2000-01-28  Jim Meyering  <meyering@lucent.com>
85132
85133         * m4/perl.m4: Change format of warning message to look more like that
85134         from the missing script.  Suggestion from François Pinard.
85135
85136 2000-01-25  Jim Meyering  <meyering@lucent.com>
85137
85138         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
85139         well as time.h in the compile check.
85140         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
85141         Fix typo in cross-compiling case: s/yes/no/.
85142
85143 2000-01-23  Jim Meyering  <meyering@lucent.com>
85144
85145         * m4/jm-macros.m4: Move df-related tests here from
85146         fileutils/configure.in
85147
85148         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
85149         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
85150
85151         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
85152         s/space/ac_fsusage_space/.
85153         (jm_FILE_SYSTEM_USAGE): Take two parameters.
85154
85155         * m4/ftruncate.m4: New file (derived from part of
85156         fileutils/configure.in).
85157         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
85158         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
85159
85160         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
85161         AC_SUBST these here, rather than just in sh-util/configure.in, so
85162         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
85163         all the same.
85164         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
85165         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
85166         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
85167         (AC_SUBST(POW_LIBM)): Likewise.
85168         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
85169
85170 2000-01-23  Jim Meyering  <meyering@lucent.com>
85171
85172         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
85173         obstack.c.
85174
85175 2000-01-22  Jim Meyering  <meyering@lucent.com>
85176
85177         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
85178
85179         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
85180
85181         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
85182         configure.in
85183         (AC_CHECK_HEADERS): Likewise for sh-utils.
85184         (AC_CHECK_HEADERS): Likewise for textutils.
85185         Merge the three lists of headers.
85186
85187         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
85188         from fileutils' configure.in.
85189
85190         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
85191         code. Moved tests into their own function (_jm_DECL_HEADERS) in
85192         check-decl.m4.
85193
85194         * m4/check-decl.m4: Use #if rather than #ifdef.
85195         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
85196         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
85197         (_jm_DECL_HEADERS): Define new function.
85198         (jm_CHECK_DECLARATIONS): Require it.
85199
85200 2000-01-22  Jim Meyering  <meyering@lucent.com>
85201
85202         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
85203         [! HAVE_DECL_STRTOULL]: Declare strtoull.
85204         Required for some AIX systems.  Reported by Christian Krackowizer.
85205         [TESTING] (main): New function.
85206
85207         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
85208         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
85209         letters.
85210
85211         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
85212         iswprint.
85213
85214         * lib/strverscmp.c (ISDIGIT): Define.
85215         (strverscmp): Use ISDIGIT, not isdigit.
85216
85217 2000-01-19  Jim Meyering  <meyering@lucent.com>
85218
85219         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
85220         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
85221         defines `struct timespec' in <sys/time.h>
85222
85223         * m4/c-bs-a.m4: Remove uses of changequote altogether.
85224         Thanks to Akim for explaining.
85225
85226 2000-01-17  Paul Eggert  <eggert@twinsun.com>
85227
85228         * lib/nanosleep.c (nanosleep):
85229         Don't use SA_INTERRUPT to decide whether to call sigaction, as
85230         POSIX.1 doesn't require SA_INTERRUPT and some systems
85231         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
85232         it's been part of POSIX.1 since day 1 (in 1988).
85233
85234 2000-01-17  Jim Meyering  <meyering@lucent.com>
85235
85236         * lib/interlock: Remove unused file.  Reported by François Pinard.
85237
85238 2000-01-16  Paul Eggert  <eggert@twinsun.com>
85239
85240         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
85241         alert, backslash, formfeed, and vertical tab unnecessarily in
85242         shell quoting style.
85243
85244 2000-01-16  Jim Meyering  <meyering@lucent.com>
85245
85246         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
85247         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
85248         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
85249         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
85250
85251 2000-01-16  Jim Meyering  <meyering@lucent.com>
85252
85253         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
85254         because the latter didn't work.
85255
85256 2000-01-15  Jim Meyering  <meyering@lucent.com>
85257
85258         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
85259         (AC_REPLACE_FUNCS): Add memcpy and memset.
85260         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
85261         Add strpbrk.
85262         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
85263
85264 2000-01-12  Jim Meyering  <meyering@lucent.com>
85265
85266         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
85267         (jm_PREREQ): Use it.
85268         (jm_PREREQ_READUTMP): New macro.
85269         (jm_PREREQ): Use it.
85270
85271 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85272
85273         Quote multibyte characters correctly.
85274         * m4/c-bs-a.m4: New file.
85275         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
85276         (jm_PREREQ): Use it.
85277
85278 2000-01-11  Paul Eggert  <eggert@twinsun.com>
85279
85280         * m4/uintmax_t.m4: Port to autoconf 2.13.
85281
85282 2000-01-08  Jim Meyering  <meyering@ascend.com>
85283
85284         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
85285         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
85286
85287 2000-01-04  Jim Meyering  <meyering@ascend.com>
85288
85289         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
85290         jm_STRUCT_DIRENT_D_TYPE.
85291         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
85292         jm_STRUCT_DIRENT_D_INO.
85293         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
85294         jm_STRUCT_UTIMBUF.
85295         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
85296         renamings.
85297         * m4/utime.m4: Likewise.
85298
85299         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
85300         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
85301
85302 2000-01-03  Paul Eggert  <eggert@twinsun.com>
85303
85304         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
85305         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
85306
85307 2000-01-02  Jim Meyering  <meyering@ascend.com>
85308
85309         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
85310         remember if this is necessary.
85311
85312 1999-12-26  Jim Meyering  <meyering@ascend.com>
85313
85314         * m4/jm-macros.m4: Use it here.
85315         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
85316
85317 1999-12-23  Jim Meyering  <meyering@ascend.com>
85318
85319         * m4/jm-macros.m4: Check for clock_gettime (moved from
85320         fileutils/configure.in)
85321         Check for gettimeofday.
85322
85323 1999-12-20  Jim Meyering  <meyering@ascend.com>
85324
85325         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
85326         autoconf-2.14a-1999-12-20.
85327
85328 1999-12-19  Jim Meyering  <meyering@ascend.com>
85329
85330         * m4/lstat-slash.m4: New file.
85331         * m4/jm-macros.m4: Use the new macro:
85332         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85333
85334 1999-12-07  Jim Meyering  <meyering@ascend.com>
85335
85336         * m4/perl.m4: Require that File::Compare be available, too.
85337         Too many systems seem to lack it.
85338
85339         * m4/strftime.m4: Add checks for most of the cpp macros tested in
85340         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
85341
85342 1999-11-18  Paul Eggert  <eggert@twinsun.com>
85343
85344         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
85345         problem with the QNX 4.25 shell, which doesn't propagate exit
85346         status of failed commands inside shell assignments.
85347
85348 1999-11-17  Jim Meyering  <meyering@ascend.com>
85349
85350         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
85351
85352 1999-11-07  Jim Meyering  <meyering@ascend.com>
85353
85354         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
85355
85356 1999-11-06  Jim Meyering  <meyering@ascend.com>
85357
85358         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
85359         * m4/jm-macros.m4 (jm_MACROS): Use it here.
85360
85361 1999-11-05  Jim Meyering  <meyering@ascend.com>
85362
85363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
85364         configure.in of textutils, fileutils, and sh-utils into this one
85365         (shared between those packages) file.
85366         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
85367         AC_STRUCT_ST_BLKSIZE.
85368
85369 1999-11-03  Jim Meyering  <meyering@ascend.com>
85370
85371         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
85372         of AC_CHECK_TYPE checks includes unistd.h.
85373         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
85374         Suggestion from Akim Demaille.
85375
85376 1999-10-30  Jim Meyering  <meyering@ascend.com>
85377
85378         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
85379         m4-quoted string.
85380         * m4/ls-mntd-fs.m4: Likewise.
85381         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
85382         * m4/jm-winsz1.m4: Likewise.
85383
85384         * m4/const.m4: Remove file, since the fix made it into the experimental
85385         version of autoconf.
85386         * m4/mktime.m4: Likewise.
85387
85388         * m4/check-type.m4: Remove file, now that the latest version of
85389         AC_CHECK_TYPE takes a third arg to specify additional #includes.
85390
85391         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
85392         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
85393         AC_CHECK_TYPE.
85394
85395 1999-10-04  Jim Meyering  <meyering@ascend.com>
85396
85397         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
85398
85399 1999-09-22  Paul Eggert  <eggert@twinsun.com>
85400
85401         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
85402         2.95.1 bug with HP-UX 10.20.
85403
85404 1999-09-17  Jim Meyering  <meyering@ascend.com>
85405
85406         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
85407         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
85408         due to missing strdup (against sh-utils-2.0).
85409
85410 1999-08-29  Jim Meyering  <meyering@ascend.com>
85411
85412         * m4/jm-macros.m4: Require jm_BISON.
85413         * m4/bison.m4: New file.
85414
85415 1999-08-17  Paul Eggert  <eggert@twinsun.com>
85416
85417         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
85418         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
85419
85420 1999-08-05  Jim Meyering  <meyering@ascend.com>
85421
85422         * m4/getline.m4: Rename test file from conftestdata to conftest.data
85423         to avoid conflicts with `conftest' on 8+3 filesystems.
85424         Suggestion from Eli Zaretskii.
85425
85426 1999-08-04  Jim Meyering  <meyering@ascend.com>
85427
85428         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
85429         fileutils and sh-utils (textutils's getline test was inadequate).
85430         (AM_FUNC_GETLINE): Run this test.
85431         (AC_CHECK_FUNCS): Check for getdelim.
85432         Reported by Bob Proulx.
85433
85434 1999-08-02  Jim Meyering  <meyering@ascend.com>
85435
85436         * m4/jm-macros.m4: Add a comment.
85437
85438 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85439
85440         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
85441         <inttypes.h> defines strtoumax as a macro (and not as a
85442         function).
85443
85444 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85445
85446         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
85447         that we can shift, multiply and divide unsigned long long
85448         values; Ultrix cc can't do it.
85449
85450 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85451
85452         * m4/mktime.m4: New file, which is a preview of what should appear
85453         in the next public autoconf release.
85454
85455 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85456
85457         * m4/lfs.m4: Remove this file.
85458         * m4/largefile.m4: New file.  It contains the old contents of
85459         lfs.m4, except that all names with prefix AC_LFS have been
85460         changed to use the prefix AC_SYS_LARGEFILE instead, to be
85461         compatible with future autoconf versions.  Also, some minor m4
85462         quoting problems have been fixed.
85463
85464 1999-08-01  Paul Eggert  <eggert@twinsun.com>
85465
85466         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
85467         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
85468         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
85469         and simplify the shell code.
85470
85471 1999-08-01  Jim Meyering  <meyering@ascend.com>
85472
85473         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
85474         m4.
85475
85476 1999-07-20  Jim Meyering  <meyering@ascend.com>
85477
85478         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
85479
85480 1999-07-15  Jim Meyering  <meyering@ascend.com>
85481
85482         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
85483
85484 1999-05-22  Jim Meyering  <meyering@ascend.com>
85485
85486         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
85487
85488 1999-05-20  Jim Meyering  <meyering@ascend.com>
85489
85490         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
85491         Add a colon after each `then' in case $4 is empty.
85492
85493 1999-05-16  Jim Meyering  <meyering@ascend.com>
85494
85495         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
85496
85497 1999-05-10  Jim Meyering  <meyering@ascend.com>
85498
85499         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
85500
85501         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
85502         AC_FUNC_MKTIME.
85503
85504 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
85505
85506         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
85507
85508 1999-05-04  Paul Eggert  <eggert@twinsun.com>
85509
85510         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
85511         not CPPFLAGS, so that linking works correctly in IRIX.
85512
85513 1999-04-30  Paul Eggert  <eggert@twinsun.com>
85514
85515         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
85516
85517 1999-04-20  Paul Eggert  <eggert@twinsun.com>
85518
85519         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
85520         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
85521         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
85522         jm_AC_TYPE_UNSIGNED_LONG_LONG.
85523         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
85524
85525         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
85526
85527 1999-04-20  Jim Meyering  <meyering@ascend.com>
85528
85529         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
85530         AC_REPLACE xstroull if necessary.  From Paul Eggert.
85531         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
85532
85533 1999-04-18  Jim Meyering  <meyering@ascend.com>
85534
85535         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
85536         * m4/jm-macros.m4: Use it.
85537
85538 1999-04-06  Jim Meyering  <meyering@ascend.com>
85539
85540         * m4/strftime.m4: Remove test for %f.
85541
85542 1999-03-29  Jim Meyering  <meyering@ascend.com>
85543
85544         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
85545         superset of the AC_TYPE_* checks in the textutils, fileutils,
85546         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
85547         AC_TYPE_PID_T.
85548
85549 1999-03-28  Jim Meyering  <meyering@ascend.com>
85550
85551         * m4/jm-macros.m4: Define GNU_PACKAGE here.
85552         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
85553         replaced e.g., in the *.sh files of the sh-utils.
85554
85555 1999-03-20  Jim Meyering  <meyering@ascend.com>
85556
85557         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
85558         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
85559         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
85560
85561 1999-03-19  Jim Meyering  <meyering@ascend.com>
85562
85563         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
85564
85565 1999-03-12  Jim Meyering  <meyering@ascend.com>
85566
85567         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
85568
85569 1999-03-07  Jim Meyering  <meyering@ascend.com>
85570
85571         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
85572         declared.
85573
85574 1999-02-17  Jim Meyering  <meyering@ascend.com>
85575
85576         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
85577         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
85578
85579 1999-02-07  Jim Meyering  <meyering@ascend.com>
85580
85581         * m4/group-member.m4: New file -- extracted from sh-utils'
85582         configure.in.
85583
85584         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
85585         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
85586
85587 1999-02-06  Jim Meyering  <meyering@ascend.com>
85588
85589         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
85590         * m4/fnmatch.m4: Likewise.
85591         * m4/getgroups.m4: Likewise.
85592         * m4/lstat.m4: Likewise.
85593         * m4/malloc.m4: Likewise.
85594         * m4/putenv.m4: Likewise.
85595         * m4/realloc.m4: Likewise.
85596         * m4/regex.m4: Likewise.
85597         * m4/stat.m4: Likewise.
85598         * m4/strftime.m4: Likewise.
85599         Suggestion from Alain Magloire.
85600
85601         * m4/chown.m4: Use `.$ac_objext', not `.o'.
85602         * m4/fnmatch.m4: Likewise.
85603         * m4/getgroups.m4: Likewise.
85604         * m4/getline.m4: Likewise.
85605         * m4/lstat.m4: Likewise.
85606         * m4/malloc.m4: Likewise.
85607         * m4/memcmp.m4: Likewise.
85608         * m4/putenv.m4: Likewise.
85609         * m4/realloc.m4: Likewise.
85610         * m4/regex.m4: Likewise.
85611         * m4/stat.m4: Likewise.
85612         * m4/strftime.m4: Likewise.
85613         Suggestion from Alain Magloire.
85614
85615         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
85616         an argument.
85617
85618         * m4/regex.m4: Add a run-time Test for proper operation of
85619         re_compile_pattern.
85620
85621 1999-01-31  Jim Meyering  <meyering@ascend.com>
85622
85623         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
85624
85625 1999-01-30  Jim Meyering  <meyering@ascend.com>
85626
85627         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
85628
85629         * m4/jm-mktime.m4: Make this a wrapper around the official
85630         AM_FUNC_MKTIME rather than my private copy, now that the official one
85631         is up to date.
85632         * m4/mktime.m4: Remove file.
85633
85634         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
85635         * m4/uptime.m4: Likewise.
85636         * m4/uintmax_t.m4: Likewise.
85637
85638 1999-01-28  Jim Meyering  <meyering@ascend.com>
85639
85640         * m4/jm-macros.m4: Use jm_AFS.
85641         * m4/afs.m4: New file (from fileutils' configure.in).
85642
85643         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
85644         * m4/chown.m4: Likewise.
85645         * m4/d-ino.m4: Likewise.
85646         * m4/d-type.m4: Likewise.
85647         * m4/fnmatch.m4: Likewise.
85648         * m4/getgroups.m4: Likewise.
85649         * m4/gettext.m4: Likewise.
85650         * m4/jm-mktime.m4: Likewise.
85651         * m4/jm-winsz2.m4: Likewise.
85652         * m4/lcmessage.m4: Likewise.
85653         * m4/ls-mntd-fs.m4: Likewise.
85654         * m4/malloc.m4: Likewise.
85655         * m4/memcmp.m4: Likewise.
85656         * m4/putenv.m4: Likewise.
85657         * m4/realloc.m4: Likewise.
85658         * m4/st_mtim.m4: Likewise.
85659         * m4/strftime.m4: Likewise.
85660
85661 1999-01-16  Jim Meyering  <meyering@ascend.com>
85662
85663         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
85664         (ARGMATCH_DIE_DECL): Define.
85665
85666 1999-01-12  Jim Meyering  <meyering@ascend.com>
85667
85668         * m4/Makefile.am.in: Rewrite to avoid using fmt.
85669         Reported by Lars Hecking.
85670
85671 1999-01-10  Jim Meyering  <meyering@ascend.com>
85672
85673         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
85674         gross kludge.
85675         * m4/inttypes_h.m4: Likewise.
85676         * m4/lstat.m4: Likewise.
85677         * m4/malloc.m4: Likewise.
85678         * m4/readdir.m4: Likewise.
85679         * m4/realloc.m4: Likewise.
85680         * m4/st_dm_mode.m4: Likewise.
85681         * m4/stat.m4: Likewise.
85682         * m4/utimbuf.m4: Likewise.
85683         * m4/utimes.m4: Likewise.
85684
85685         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
85686         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
85687         comments in config.h.in are meaningful.
85688
85689         * m4/jm-macros.m4: Require autoconf-2.13 here.
85690
85691         * m4/regex.m4: By default, don't use the included regex.c on systems
85692         with glibc 2.  Suggestion from Uli Drepper.
85693
85694 1999-01-02  Jim Meyering  <meyering@ascend.com>
85695
85696         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
85697
85698 1998-12-18  Jim Meyering  <meyering@ascend.com>
85699
85700         * m4/Makefile.am.in (Makefile.am): Simplify rule.
85701         Based on a suggestion from Lars Hecking.
85702
85703 1998-11-16  Paul Eggert  <eggert@twinsun.com>
85704
85705         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
85706
85707 1998-11-16  Jim Meyering  <meyering@ascend.com>
85708
85709         * m4/lfs.m4: Double-quote the `uname...` expression.
85710
85711 1998-11-14  Jim Meyering  <meyering@ascend.com>
85712
85713         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
85714         * m4/stat.m4: Likewise.
85715
85716 1998-11-03  Jim Meyering  <meyering@ascend.com>
85717
85718         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
85719         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
85720
85721 1998-10-18  Jim Meyering  <meyering@ascend.com>
85722
85723         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
85724
85725 1998-10-17  Jim Meyering  <meyering@ascend.com>
85726
85727         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
85728         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
85729         calls for those previously hard-coded headers.  Instead, take a new
85730         parameter.
85731         (jm_CHECK_DECLARATIONS): Reflect interface change.
85732         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
85733         (jm_CHECK_DECL_LOCALTIME_R): New macro.
85734
85735         * m4/mktime.m4: Test for spring-forward gap before long-running test.
85736
85737 1998-10-14  Jim Meyering  <meyering@ascend.com>
85738
85739         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
85740         instead of "TZ=America/Vancouver".  From Paul Eggert.
85741
85742 1998-10-11  Jim Meyering  <meyering@ascend.com>
85743
85744         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
85745         This adds a test for a recently added compatibility fix for mktime.c.
85746         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
85747
85748 1998-09-27  Jim Meyering  <meyering@ascend.com>
85749
85750         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
85751
85752         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
85753         ../configure.in, including a change from Gordon Matzigkeit to allow
85754         cross-compiling for the Hurd.
85755
85756         * m4/glibc.m4: New file/macro to test for the GNU C Library
85757         versions 1 and 2.  From Gordon Matzigkeit.
85758         Indent.
85759
85760 1998-09-21  Jim Meyering  <meyering@ascend.com>
85761
85762         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
85763
85764 1998-08-18  Paul Eggert  <eggert@twinsun.com>
85765
85766         Port nanosecond-resolution times to UnixWare 2.1.2 and
85767         pedantic Solaris 2.6.
85768
85769         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
85770         AC_STRUCT_ST_MTIM.
85771         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
85772         Generate name of ns member, instead of just 1 or undef.
85773         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
85774
85775 1998-08-15  Jim Meyering  <meyering@ascend.com>
85776
85777         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
85778         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
85779         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
85780         instead of jm_TYPE_SSIZE_T.
85781
85782 1998-08-12  Jim Meyering  <meyering@ascend.com>
85783
85784         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
85785
85786 1998-08-02  Jim Meyering  <meyering@ascend.com>
85787
85788         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
85789         in acconfig.h manually.
85790
85791 1998-07-31  Paul Eggert  <eggert@twinsun.com>
85792
85793         * m4/st_mtim.m4: New file.
85794
85795 1998-07-28  Jim Meyering  <meyering@ascend.com>
85796
85797         * m4/utimes.m4: Undef stat.
85798
85799 1998-07-25  Jim Meyering  <meyering@ascend.com>
85800
85801         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
85802         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
85803
85804 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
85805
85806         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
85807         uid and gid actually remain unchanged.
85808
85809 1998-07-07  Jim Meyering  <meyering@ascend.com>
85810
85811         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
85812
85813 1998-07-04  Jim Meyering  <meyering@ascend.com>
85814
85815         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
85816         to prove that this macro can be used in packages without regex.c.
85817
85818 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
85819
85820         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
85821         is to be used.
85822
85823 1998-07-03  Jim Meyering  <meyering@ascend.com>
85824
85825         * m4/gettext.m4: Add -lintl if it's found to be necessary.
85826
85827         * m4/gettext.m4: New file -- from gettext-0.10.35.
85828         * m4/lcmessage.m4: Likewise.
85829         * m4/progtest.m4: Likewise.
85830
85831         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
85832         * m4/jm-macros.m4: Require the new macro.
85833
85834 1998-06-29  Jim Meyering  <meyering@ascend.com>
85835
85836         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
85837         for the definition of NGROUPS (used in a system header included
85838         by sys/mount.h).
85839
85840 1998-06-28  Jim Meyering  <meyering@ascend.com>
85841
85842         * m4/ls-mntd-fs.m4: New file.
85843         * m4/fstypename.m4: New file.
85844
85845         * m4/jm-macros.m4: Require the new macro.
85846         * m4/jm-glibc-io.m4: New file.
85847
85848 1998-05-19  Jim Meyering  <meyering@ascend.com>
85849
85850         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
85851         * m4/lchown.m4: New file.
85852
85853         * m4/Makefile.am.in: New file.
85854         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
85855
85856 1998-05-14  Jim Meyering  <meyering@ascend.com>
85857
85858         * m4/Makefile.am (EXTRA_DIST): Add them.
85859         * m4/jm-macros.m4: New file.
85860         * m4/utimbuf.m4: New file.
85861
85862 1998-05-12  Jim Meyering  <meyering@ascend.com>
85863
85864         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
85865
85866 1998-05-11  Jim Meyering  <meyering@ascend.com>
85867
85868         * m4/isc-posix.m4: New file.
85869
85870 1998-05-10  Jim Meyering  <meyering@ascend.com>
85871
85872         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
85873
85874 1998-05-09  Jim Meyering  <meyering@ascend.com>
85875
85876         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
85877         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
85878         with automake.
85879
85880         * m4/ssize_t.m4: New file.
85881         * m4/mktime.m4: Remove file -- the new automake has this now.
85882
85883 1998-04-26  Jim Meyering  <meyering@ascend.com>
85884
85885         * m4/assert.m4: New file.
85886         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
85887
85888 1998-04-05  Jim Meyering  <meyering@ascend.com>
85889
85890         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
85891         (jm_PREREQ): Use it here.
85892
85893 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
85894
85895         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
85896         in acconfig.h.
85897
85898 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
85899
85900         * m4/prereq.m4: New file.
85901         * m4/error.m4: New file.
85902         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
85903
85904 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
85905
85906         * m4/getline.m4: Don't set am_cv_func_working_getline before the
85907         cache-check for the same variable -- that defeated the purpose of
85908         the test; the test program was never run.  This was a problem only
85909         on systems with losing getline functions -- HP-UX 10.20 is one.
85910         Reported by Bjorn Helgaas.
85911
85912 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
85913
85914         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
85915
85916 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
85917
85918         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
85919
85920         * m4/const.m4: New file.  Use an initializer in this declaration
85921         typedef int charset[2]; const charset x;
85922         Reported by Bob Glickstein.
85923
85924 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
85925
85926         * m4/chown.m4: Fix reversed types on -1 args to chown.
85927         From Kaveh Ghazi.
85928
85929 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
85930
85931         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
85932         Add lseek and memchr.
85933
85934         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
85935         T.E.Dickey <dickey@clark.net> said that some older preprocessors
85936         have a 20-character limit on names.
85937
85938 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
85939
85940         * m4/inttypes_h.m4: New file.
85941         * m4/uintmax_t.m4: New file.
85942         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
85943
85944
85945         -----
85946
85947         Local Variables:
85948         coding: utf-8
85949         End:
85950
85951         Copyright (C) 1997-2011 Free Software Foundation, Inc.
85952
85953         Copying and distribution of this file, with or without
85954         modification, are permitted provided the copyright notice
85955         and this notice are preserved.